Imported Upstream version 0.27.1
[platform/upstream/pkg-config.git] / glib / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glib 2.32.4.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
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: http://bugzilla.gnome.org/enter_bug.cgi?product=glib
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='glib'
573 PACKAGE_TARNAME='glib'
574 PACKAGE_VERSION='2.32.4'
575 PACKAGE_STRING='glib 2.32.4'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib'
577 PACKAGE_URL=''
578
579 ac_unique_file="glib/glib.h"
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 gio_INCLUDES
621 gmodule_INCLUDES
622 gobject_INCLUDES
623 gthread_INCLUDES
624 glib_INCLUDES
625 config_h_INCLUDES
626 GLIB_LINK_FLAGS
627 HAVE_DBUS1_FALSE
628 HAVE_DBUS1_TRUE
629 LTP_GENHTML
630 LTP
631 SHTOOL
632 G_LIBS_EXTRA
633 HAVE_EVENTFD_FALSE
634 HAVE_EVENTFD_TRUE
635 G_THREAD_LIBS_EXTRA
636 G_THREAD_LIBS_FOR_GTHREAD
637 G_THREAD_LIBS
638 G_THREAD_CFLAGS
639 GTHREAD_COMPILE_IMPL_DEFINES
640 PLATFORM_WIN32_FALSE
641 PLATFORM_WIN32_TRUE
642 ENABLE_TIMELOOP_FALSE
643 ENABLE_TIMELOOP_TRUE
644 PLATFORMDEP
645 XATTR_LIBS
646 HAVE_FEN_FALSE
647 HAVE_FEN_TRUE
648 HAVE_INOTIFY_FALSE
649 HAVE_INOTIFY_TRUE
650 SELINUX_LIBS
651 GIO_MODULE_DIR
652 GIO
653 GSPAWN
654 GLIB_DEBUG_FLAGS
655 G_MODULE_NEED_USCORE
656 G_MODULE_BROKEN_RTLD_GLOBAL
657 G_MODULE_HAVE_DLERROR
658 G_MODULE_LDFLAGS
659 G_MODULE_PLUGIN_LIBS
660 G_MODULE_LIBS_EXTRA
661 G_MODULE_LIBS
662 G_MODULE_IMPL
663 G_MODULE_SUPPORTED
664 HAVE_GOOD_PRINTF_FALSE
665 HAVE_GOOD_PRINTF_TRUE
666 HAVE_NETLINK_FALSE
667 HAVE_NETLINK_TRUE
668 NETWORK_LIBS
669 HAVE_SUNSTUDIO_VISIBILITY_FALSE
670 HAVE_SUNSTUDIO_VISIBILITY_TRUE
671 HAVE_GNUC_VISIBILITY_FALSE
672 HAVE_GNUC_VISIBILITY_TRUE
673 ALLOCA
674 OS_WIN32_AND_DLL_COMPILATION_FALSE
675 OS_WIN32_AND_DLL_COMPILATION_TRUE
676 GLIB_WIN32_STATIC_COMPILATION_DEFINE
677 CXXCPP
678 OTOOL64
679 OTOOL
680 LIPO
681 NMEDIT
682 DSYMUTIL
683 MANIFEST_TOOL
684 ac_ct_AR
685 AR
686 LN_S
687 ac_ct_DUMPBIN
688 DUMPBIN
689 LD
690 FGREP
691 SED
692 LIBTOOL
693 OBJDUMP
694 DLLTOOL
695 AS
696 ICONV_LIBS
697 GETTEXT_PACKAGE
698 pkgpyexecdir
699 pyexecdir
700 pkgpythondir
701 pythondir
702 PYTHON_PLATFORM
703 PYTHON_EXEC_PREFIX
704 PYTHON_PREFIX
705 PYTHON_VERSION
706 PYTHON
707 PERL_PATH
708 REBUILD
709 INDENT
710 PERL
711 GLIB_EXTRA_CFLAGS
712 HAVE_CXX_FALSE
713 HAVE_CXX_TRUE
714 am__fastdepCXX_FALSE
715 am__fastdepCXX_TRUE
716 CXXDEPMODE
717 CXXFLAGS
718 ac_ct_CXX
719 CXX
720 HAVE_GLIB_RUNTIME_LIBDIR_FALSE
721 HAVE_GLIB_RUNTIME_LIBDIR_TRUE
722 ABS_GLIB_RUNTIME_LIBDIR
723 GLIB_RUNTIME_LIBDIR
724 GLIBC21
725 EGREP
726 GREP
727 LIBTOOL_EXPORT_OPTIONS
728 MS_LIB_AVAILABLE_FALSE
729 MS_LIB_AVAILABLE_TRUE
730 ms_librarian
731 RANLIB
732 NM
733 WINDRES
734 OS_COCOA_FALSE
735 OS_COCOA_TRUE
736 OS_CARBON_FALSE
737 OS_CARBON_TRUE
738 OS_LINUX_FALSE
739 OS_LINUX_TRUE
740 OS_UNIX_FALSE
741 OS_UNIX_TRUE
742 OS_WIN32_X64_FALSE
743 OS_WIN32_X64_TRUE
744 OS_WIN32_FALSE
745 OS_WIN32_TRUE
746 LIB_EXE_MACHINE_FLAG
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 HAVE_GCC_FALSE
756 HAVE_GCC_TRUE
757 CPP
758 am__fastdepCC_FALSE
759 am__fastdepCC_TRUE
760 CCDEPMODE
761 AMDEPBACKSLASH
762 AMDEP_FALSE
763 AMDEP_TRUE
764 am__quote
765 am__include
766 DEPDIR
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 LT_CURRENT_MINUS_AGE
775 LT_AGE
776 LT_REVISION
777 LT_CURRENT
778 LT_RELEASE
779 GLIB_BINARY_AGE
780 GLIB_INTERFACE_AGE
781 GLIB_VERSION
782 GLIB_MICRO_VERSION
783 GLIB_MINOR_VERSION
784 GLIB_MAJOR_VERSION
785 AM_BACKSLASH
786 AM_DEFAULT_VERBOSITY
787 MAINT
788 MAINTAINER_MODE_FALSE
789 MAINTAINER_MODE_TRUE
790 am__untar
791 am__tar
792 AMTAR
793 am__leading_dot
794 SET_MAKE
795 AWK
796 mkdir_p
797 MKDIR_P
798 INSTALL_STRIP_PROGRAM
799 STRIP
800 install_sh
801 MAKEINFO
802 AUTOHEADER
803 AUTOMAKE
804 AUTOCONF
805 ACLOCAL
806 VERSION
807 PACKAGE
808 CYGPATH_W
809 am__isrc
810 INSTALL_DATA
811 INSTALL_SCRIPT
812 INSTALL_PROGRAM
813 target_alias
814 host_alias
815 build_alias
816 LIBS
817 ECHO_T
818 ECHO_N
819 ECHO_C
820 DEFS
821 mandir
822 localedir
823 libdir
824 psdir
825 pdfdir
826 dvidir
827 htmldir
828 infodir
829 docdir
830 oldincludedir
831 includedir
832 localstatedir
833 sharedstatedir
834 sysconfdir
835 datadir
836 datarootdir
837 libexecdir
838 sbindir
839 bindir
840 program_transform_name
841 prefix
842 exec_prefix
843 PACKAGE_URL
844 PACKAGE_BUGREPORT
845 PACKAGE_STRING
846 PACKAGE_VERSION
847 PACKAGE_TARNAME
848 PACKAGE_NAME
849 PATH_SEPARATOR
850 SHELL'
851 ac_subst_files=''
852 ac_user_opts='
853 enable_option_checking
854 enable_maintainer_mode
855 enable_silent_rules
856 enable_dependency_tracking
857 enable_debug
858 enable_gc_friendly
859 enable_mem_pools
860 enable_rebuilds
861 with_runtime_libdir
862 enable_largefile
863 with_libiconv
864 enable_iconv_cache
865 enable_static
866 enable_shared
867 with_pic
868 enable_fast_install
869 with_gnu_ld
870 with_sysroot
871 enable_libtool_lock
872 enable_included_printf
873 with_gio_module_dir
874 enable_selinux
875 enable_xattr
876 with_threads
877 enable_gcov
878 enable_Bsymbolic
879 '
880       ac_precious_vars='build_alias
881 host_alias
882 target_alias
883 CC
884 CFLAGS
885 LDFLAGS
886 LIBS
887 CPPFLAGS
888 CPP
889 CXX
890 CXXFLAGS
891 CCC
892 CXXCPP'
893
894
895 # Initialize some variables set by options.
896 ac_init_help=
897 ac_init_version=false
898 ac_unrecognized_opts=
899 ac_unrecognized_sep=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
902 cache_file=/dev/null
903 exec_prefix=NONE
904 no_create=
905 no_recursion=
906 prefix=NONE
907 program_prefix=NONE
908 program_suffix=NONE
909 program_transform_name=s,x,x,
910 silent=
911 site=
912 srcdir=
913 verbose=
914 x_includes=NONE
915 x_libraries=NONE
916
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir='${exec_prefix}/bin'
924 sbindir='${exec_prefix}/sbin'
925 libexecdir='${exec_prefix}/libexec'
926 datarootdir='${prefix}/share'
927 datadir='${datarootdir}'
928 sysconfdir='${prefix}/etc'
929 sharedstatedir='${prefix}/com'
930 localstatedir='${prefix}/var'
931 includedir='${prefix}/include'
932 oldincludedir='/usr/include'
933 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
934 infodir='${datarootdir}/info'
935 htmldir='${docdir}'
936 dvidir='${docdir}'
937 pdfdir='${docdir}'
938 psdir='${docdir}'
939 libdir='${exec_prefix}/lib'
940 localedir='${datarootdir}/locale'
941 mandir='${datarootdir}/man'
942
943 ac_prev=
944 ac_dashdash=
945 for ac_option
946 do
947   # If the previous option needs an argument, assign it.
948   if test -n "$ac_prev"; then
949     eval $ac_prev=\$ac_option
950     ac_prev=
951     continue
952   fi
953
954   case $ac_option in
955   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
956   *=)   ac_optarg= ;;
957   *)    ac_optarg=yes ;;
958   esac
959
960   # Accept the important Cygnus configure options, so we can diagnose typos.
961
962   case $ac_dashdash$ac_option in
963   --)
964     ac_dashdash=yes ;;
965
966   -bindir | --bindir | --bindi | --bind | --bin | --bi)
967     ac_prev=bindir ;;
968   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969     bindir=$ac_optarg ;;
970
971   -build | --build | --buil | --bui | --bu)
972     ac_prev=build_alias ;;
973   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974     build_alias=$ac_optarg ;;
975
976   -cache-file | --cache-file | --cache-fil | --cache-fi \
977   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978     ac_prev=cache_file ;;
979   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981     cache_file=$ac_optarg ;;
982
983   --config-cache | -C)
984     cache_file=config.cache ;;
985
986   -datadir | --datadir | --datadi | --datad)
987     ac_prev=datadir ;;
988   -datadir=* | --datadir=* | --datadi=* | --datad=*)
989     datadir=$ac_optarg ;;
990
991   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992   | --dataroo | --dataro | --datar)
993     ac_prev=datarootdir ;;
994   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996     datarootdir=$ac_optarg ;;
997
998   -disable-* | --disable-*)
999     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000     # Reject names that are not valid shell variable names.
1001     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1002       as_fn_error $? "invalid feature name: $ac_useropt"
1003     ac_useropt_orig=$ac_useropt
1004     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005     case $ac_user_opts in
1006       *"
1007 "enable_$ac_useropt"
1008 "*) ;;
1009       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010          ac_unrecognized_sep=', ';;
1011     esac
1012     eval enable_$ac_useropt=no ;;
1013
1014   -docdir | --docdir | --docdi | --doc | --do)
1015     ac_prev=docdir ;;
1016   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1017     docdir=$ac_optarg ;;
1018
1019   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1020     ac_prev=dvidir ;;
1021   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1022     dvidir=$ac_optarg ;;
1023
1024   -enable-* | --enable-*)
1025     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026     # Reject names that are not valid shell variable names.
1027     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028       as_fn_error $? "invalid feature name: $ac_useropt"
1029     ac_useropt_orig=$ac_useropt
1030     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031     case $ac_user_opts in
1032       *"
1033 "enable_$ac_useropt"
1034 "*) ;;
1035       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036          ac_unrecognized_sep=', ';;
1037     esac
1038     eval enable_$ac_useropt=\$ac_optarg ;;
1039
1040   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1041   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1042   | --exec | --exe | --ex)
1043     ac_prev=exec_prefix ;;
1044   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1045   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1046   | --exec=* | --exe=* | --ex=*)
1047     exec_prefix=$ac_optarg ;;
1048
1049   -gas | --gas | --ga | --g)
1050     # Obsolete; use --with-gas.
1051     with_gas=yes ;;
1052
1053   -help | --help | --hel | --he | -h)
1054     ac_init_help=long ;;
1055   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1056     ac_init_help=recursive ;;
1057   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1058     ac_init_help=short ;;
1059
1060   -host | --host | --hos | --ho)
1061     ac_prev=host_alias ;;
1062   -host=* | --host=* | --hos=* | --ho=*)
1063     host_alias=$ac_optarg ;;
1064
1065   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066     ac_prev=htmldir ;;
1067   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068   | --ht=*)
1069     htmldir=$ac_optarg ;;
1070
1071   -includedir | --includedir | --includedi | --included | --include \
1072   | --includ | --inclu | --incl | --inc)
1073     ac_prev=includedir ;;
1074   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1075   | --includ=* | --inclu=* | --incl=* | --inc=*)
1076     includedir=$ac_optarg ;;
1077
1078   -infodir | --infodir | --infodi | --infod | --info | --inf)
1079     ac_prev=infodir ;;
1080   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1081     infodir=$ac_optarg ;;
1082
1083   -libdir | --libdir | --libdi | --libd)
1084     ac_prev=libdir ;;
1085   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1086     libdir=$ac_optarg ;;
1087
1088   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1089   | --libexe | --libex | --libe)
1090     ac_prev=libexecdir ;;
1091   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1092   | --libexe=* | --libex=* | --libe=*)
1093     libexecdir=$ac_optarg ;;
1094
1095   -localedir | --localedir | --localedi | --localed | --locale)
1096     ac_prev=localedir ;;
1097   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1098     localedir=$ac_optarg ;;
1099
1100   -localstatedir | --localstatedir | --localstatedi | --localstated \
1101   | --localstate | --localstat | --localsta | --localst | --locals)
1102     ac_prev=localstatedir ;;
1103   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1104   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1105     localstatedir=$ac_optarg ;;
1106
1107   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108     ac_prev=mandir ;;
1109   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1110     mandir=$ac_optarg ;;
1111
1112   -nfp | --nfp | --nf)
1113     # Obsolete; use --without-fp.
1114     with_fp=no ;;
1115
1116   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1117   | --no-cr | --no-c | -n)
1118     no_create=yes ;;
1119
1120   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1121   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122     no_recursion=yes ;;
1123
1124   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1125   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1126   | --oldin | --oldi | --old | --ol | --o)
1127     ac_prev=oldincludedir ;;
1128   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1129   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1130   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1131     oldincludedir=$ac_optarg ;;
1132
1133   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134     ac_prev=prefix ;;
1135   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1136     prefix=$ac_optarg ;;
1137
1138   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1139   | --program-pre | --program-pr | --program-p)
1140     ac_prev=program_prefix ;;
1141   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1142   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1143     program_prefix=$ac_optarg ;;
1144
1145   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1146   | --program-suf | --program-su | --program-s)
1147     ac_prev=program_suffix ;;
1148   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1149   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1150     program_suffix=$ac_optarg ;;
1151
1152   -program-transform-name | --program-transform-name \
1153   | --program-transform-nam | --program-transform-na \
1154   | --program-transform-n | --program-transform- \
1155   | --program-transform | --program-transfor \
1156   | --program-transfo | --program-transf \
1157   | --program-trans | --program-tran \
1158   | --progr-tra | --program-tr | --program-t)
1159     ac_prev=program_transform_name ;;
1160   -program-transform-name=* | --program-transform-name=* \
1161   | --program-transform-nam=* | --program-transform-na=* \
1162   | --program-transform-n=* | --program-transform-=* \
1163   | --program-transform=* | --program-transfor=* \
1164   | --program-transfo=* | --program-transf=* \
1165   | --program-trans=* | --program-tran=* \
1166   | --progr-tra=* | --program-tr=* | --program-t=*)
1167     program_transform_name=$ac_optarg ;;
1168
1169   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170     ac_prev=pdfdir ;;
1171   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1172     pdfdir=$ac_optarg ;;
1173
1174   -psdir | --psdir | --psdi | --psd | --ps)
1175     ac_prev=psdir ;;
1176   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177     psdir=$ac_optarg ;;
1178
1179   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1180   | -silent | --silent | --silen | --sile | --sil)
1181     silent=yes ;;
1182
1183   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184     ac_prev=sbindir ;;
1185   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186   | --sbi=* | --sb=*)
1187     sbindir=$ac_optarg ;;
1188
1189   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1190   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1191   | --sharedst | --shareds | --shared | --share | --shar \
1192   | --sha | --sh)
1193     ac_prev=sharedstatedir ;;
1194   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1195   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1196   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197   | --sha=* | --sh=*)
1198     sharedstatedir=$ac_optarg ;;
1199
1200   -site | --site | --sit)
1201     ac_prev=site ;;
1202   -site=* | --site=* | --sit=*)
1203     site=$ac_optarg ;;
1204
1205   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206     ac_prev=srcdir ;;
1207   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1208     srcdir=$ac_optarg ;;
1209
1210   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1211   | --syscon | --sysco | --sysc | --sys | --sy)
1212     ac_prev=sysconfdir ;;
1213   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1214   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1215     sysconfdir=$ac_optarg ;;
1216
1217   -target | --target | --targe | --targ | --tar | --ta | --t)
1218     ac_prev=target_alias ;;
1219   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1220     target_alias=$ac_optarg ;;
1221
1222   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223     verbose=yes ;;
1224
1225   -version | --version | --versio | --versi | --vers | -V)
1226     ac_init_version=: ;;
1227
1228   -with-* | --with-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error $? "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=\$ac_optarg ;;
1243
1244   -without-* | --without-*)
1245     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246     # Reject names that are not valid shell variable names.
1247     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248       as_fn_error $? "invalid package name: $ac_useropt"
1249     ac_useropt_orig=$ac_useropt
1250     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251     case $ac_user_opts in
1252       *"
1253 "with_$ac_useropt"
1254 "*) ;;
1255       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256          ac_unrecognized_sep=', ';;
1257     esac
1258     eval with_$ac_useropt=no ;;
1259
1260   --x)
1261     # Obsolete; use --with-x.
1262     with_x=yes ;;
1263
1264   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1265   | --x-incl | --x-inc | --x-in | --x-i)
1266     ac_prev=x_includes ;;
1267   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1268   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1269     x_includes=$ac_optarg ;;
1270
1271   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1272   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1273     ac_prev=x_libraries ;;
1274   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1275   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1276     x_libraries=$ac_optarg ;;
1277
1278   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1280     ;;
1281
1282   *=*)
1283     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1284     # Reject names that are not valid shell variable names.
1285     case $ac_envvar in #(
1286       '' | [0-9]* | *[!_$as_cr_alnum]* )
1287       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1288     esac
1289     eval $ac_envvar=\$ac_optarg
1290     export $ac_envvar ;;
1291
1292   *)
1293     # FIXME: should be removed in autoconf 3.0.
1294     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1296       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298     ;;
1299
1300   esac
1301 done
1302
1303 if test -n "$ac_prev"; then
1304   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1305   as_fn_error $? "missing argument to $ac_option"
1306 fi
1307
1308 if test -n "$ac_unrecognized_opts"; then
1309   case $enable_option_checking in
1310     no) ;;
1311     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1312     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1313   esac
1314 fi
1315
1316 # Check all directory arguments for consistency.
1317 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318                 datadir sysconfdir sharedstatedir localstatedir includedir \
1319                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320                 libdir localedir mandir
1321 do
1322   eval ac_val=\$$ac_var
1323   # Remove trailing slashes.
1324   case $ac_val in
1325     */ )
1326       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327       eval $ac_var=\$ac_val;;
1328   esac
1329   # Be sure to have absolute directory names.
1330   case $ac_val in
1331     [\\/$]* | ?:[\\/]* )  continue;;
1332     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1333   esac
1334   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1335 done
1336
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1340 build=$build_alias
1341 host=$host_alias
1342 target=$target_alias
1343
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x; then
1346   if test "x$build_alias" = x; then
1347     cross_compiling=maybe
1348     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1349     If a cross compiler is detected then cross compile mode will be used" >&2
1350   elif test "x$build_alias" != "x$host_alias"; then
1351     cross_compiling=yes
1352   fi
1353 fi
1354
1355 ac_tool_prefix=
1356 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1357
1358 test "$silent" = yes && exec 6>/dev/null
1359
1360
1361 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di=`ls -di .` &&
1363 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1364   as_fn_error $? "working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366   as_fn_error $? "pwd does not report name of working directory"
1367
1368
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371   ac_srcdir_defaulted=yes
1372   # Try the directory containing this script, then the parent directory.
1373   ac_confdir=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375          X"$as_myself" : 'X\(//\)[^/]' \| \
1376          X"$as_myself" : 'X\(//\)$' \| \
1377          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1380             s//\1/
1381             q
1382           }
1383           /^X\(\/\/\)[^/].*/{
1384             s//\1/
1385             q
1386           }
1387           /^X\(\/\/\)$/{
1388             s//\1/
1389             q
1390           }
1391           /^X\(\/\).*/{
1392             s//\1/
1393             q
1394           }
1395           s/.*/./; q'`
1396   srcdir=$ac_confdir
1397   if test ! -r "$srcdir/$ac_unique_file"; then
1398     srcdir=..
1399   fi
1400 else
1401   ac_srcdir_defaulted=no
1402 fi
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1405   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1406 fi
1407 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1408 ac_abs_confdir=`(
1409         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1410         pwd)`
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413   srcdir=.
1414 fi
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1418 case $srcdir in
1419 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1420 esac
1421 for ac_var in $ac_precious_vars; do
1422   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1423   eval ac_env_${ac_var}_value=\$${ac_var}
1424   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1426 done
1427
1428 #
1429 # Report the --help message.
1430 #
1431 if test "$ac_init_help" = "long"; then
1432   # Omit some internal or obsolete options to make the list less imposing.
1433   # This message is too long to be a string in the A/UX 3.1 sh.
1434   cat <<_ACEOF
1435 \`configure' configures glib 2.32.4 to adapt to many kinds of systems.
1436
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1438
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE.  See below for descriptions of some of the useful variables.
1441
1442 Defaults for the options are specified in brackets.
1443
1444 Configuration:
1445   -h, --help              display this help and exit
1446       --help=short        display options specific to this package
1447       --help=recursive    display the short help of all the included packages
1448   -V, --version           display version information and exit
1449   -q, --quiet, --silent   do not print \`checking ...' messages
1450       --cache-file=FILE   cache test results in FILE [disabled]
1451   -C, --config-cache      alias for \`--cache-file=config.cache'
1452   -n, --no-create         do not create output files
1453       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1454
1455 Installation directories:
1456   --prefix=PREFIX         install architecture-independent files in PREFIX
1457                           [$ac_default_prefix]
1458   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1459                           [PREFIX]
1460
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1465
1466 For better control, use the options below.
1467
1468 Fine tuning of the installation directories:
1469   --bindir=DIR            user executables [EPREFIX/bin]
1470   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1471   --libexecdir=DIR        program executables [EPREFIX/libexec]
1472   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1473   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1474   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1475   --libdir=DIR            object code libraries [EPREFIX/lib]
1476   --includedir=DIR        C header files [PREFIX/include]
1477   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1478   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1479   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1480   --infodir=DIR           info documentation [DATAROOTDIR/info]
1481   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1482   --mandir=DIR            man documentation [DATAROOTDIR/man]
1483   --docdir=DIR            documentation root [DATAROOTDIR/doc/glib]
1484   --htmldir=DIR           html documentation [DOCDIR]
1485   --dvidir=DIR            dvi documentation [DOCDIR]
1486   --pdfdir=DIR            pdf documentation [DOCDIR]
1487   --psdir=DIR             ps documentation [DOCDIR]
1488 _ACEOF
1489
1490   cat <<\_ACEOF
1491
1492 Program names:
1493   --program-prefix=PREFIX            prepend PREFIX to installed program names
1494   --program-suffix=SUFFIX            append SUFFIX to installed program names
1495   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1496
1497 System types:
1498   --build=BUILD     configure for building on BUILD [guessed]
1499   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1500 _ACEOF
1501 fi
1502
1503 if test -n "$ac_init_help"; then
1504   case $ac_init_help in
1505      short | recursive ) echo "Configuration of glib 2.32.4:";;
1506    esac
1507   cat <<\_ACEOF
1508
1509 Optional Features:
1510   --disable-option-checking  ignore unrecognized --enable/--with options
1511   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1512   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1513   --disable-maintainer-mode  disable make rules and dependencies not useful
1514                           (and sometimes confusing) to the casual installer
1515   --enable-silent-rules          less verbose build output (undo: `make V=1')
1516   --disable-silent-rules         verbose build output (undo: `make V=0')
1517   --disable-dependency-tracking  speeds up one-time build
1518   --enable-dependency-tracking   do not reject slow dependency extractors
1519   --enable-debug=[no/minimum/yes]
1520                           turn on debugging [default=minimum]
1521   --enable-gc-friendly    turn on garbage collector friendliness [default=no]
1522   --disable-mem-pools     disable all glib memory pools
1523   --disable-rebuilds      disable all source autogeneration rules
1524   --disable-largefile     omit support for large files
1525   --enable-iconv-cache=[yes/no/auto]
1526                           cache iconv descriptors [default=auto]
1527   --enable-static[=PKGS]  build static libraries [default=no]
1528   --enable-shared[=PKGS]  build shared libraries [default=yes]
1529   --enable-fast-install[=PKGS]
1530                           optimize for fast installation [default=yes]
1531   --disable-libtool-lock  avoid locking (might break parallel builds)
1532   --enable-included-printf
1533                           use included printf [default=auto]
1534   --disable-selinux       build without selinux support
1535   --disable-xattr         build without xattr support
1536   --enable-gcov           enable coverage testing with gcov
1537   --disable-Bsymbolic     avoid linking with -Bsymbolic
1538
1539 Optional Packages:
1540   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1541   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1542   --with-runtime-libdir=RELPATH
1543                           install runtime libraries relative to libdir
1544   --with-libiconv=[no/gnu/native]
1545                           use the libiconv library
1546   --with-pic              try to use only PIC/non-PIC objects [default=use
1547                           both]
1548   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1549   --with-sysroot=DIR Search for dependent libraries within DIR
1550                         (or the compiler's sysroot if not specified).
1551   --with-gio-module-dir=DIR
1552                           load gio modules from this directory
1553                           [LIBDIR/gio/modules]
1554   --with-threads=[posix/win32]
1555                           specify a thread implementation to use
1556
1557 Some influential environment variables:
1558   CC          C compiler command
1559   CFLAGS      C compiler flags
1560   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1561               nonstandard directory <lib dir>
1562   LIBS        libraries to pass to the linker, e.g. -l<library>
1563   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1564               you have headers in a nonstandard directory <include dir>
1565   CPP         C preprocessor
1566   CXX         C++ compiler command
1567   CXXFLAGS    C++ compiler flags
1568   CXXCPP      C++ preprocessor
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
1574 _ACEOF
1575 ac_status=$?
1576 fi
1577
1578 if test "$ac_init_help" = "recursive"; then
1579   # If there are subdirs, report their specific --help.
1580   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1581     test -d "$ac_dir" ||
1582       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1583       continue
1584     ac_builddir=.
1585
1586 case "$ac_dir" in
1587 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 *)
1589   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1590   # A ".." for each directory in $ac_dir_suffix.
1591   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1592   case $ac_top_builddir_sub in
1593   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1594   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1595   esac ;;
1596 esac
1597 ac_abs_top_builddir=$ac_pwd
1598 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1599 # for backward compatibility:
1600 ac_top_builddir=$ac_top_build_prefix
1601
1602 case $srcdir in
1603   .)  # We are building in place.
1604     ac_srcdir=.
1605     ac_top_srcdir=$ac_top_builddir_sub
1606     ac_abs_top_srcdir=$ac_pwd ;;
1607   [\\/]* | ?:[\\/]* )  # Absolute name.
1608     ac_srcdir=$srcdir$ac_dir_suffix;
1609     ac_top_srcdir=$srcdir
1610     ac_abs_top_srcdir=$srcdir ;;
1611   *) # Relative name.
1612     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1613     ac_top_srcdir=$ac_top_build_prefix$srcdir
1614     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1615 esac
1616 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617
1618     cd "$ac_dir" || { ac_status=$?; continue; }
1619     # Check for guested configure.
1620     if test -f "$ac_srcdir/configure.gnu"; then
1621       echo &&
1622       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1623     elif test -f "$ac_srcdir/configure"; then
1624       echo &&
1625       $SHELL "$ac_srcdir/configure" --help=recursive
1626     else
1627       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1628     fi || ac_status=$?
1629     cd "$ac_pwd" || { ac_status=$?; break; }
1630   done
1631 fi
1632
1633 test -n "$ac_init_help" && exit $ac_status
1634 if $ac_init_version; then
1635   cat <<\_ACEOF
1636 glib configure 2.32.4
1637 generated by GNU Autoconf 2.68
1638
1639 Copyright (C) 2010 Free Software Foundation, Inc.
1640 This configure script is free software; the Free Software Foundation
1641 gives unlimited permission to copy, distribute and modify it.
1642 _ACEOF
1643   exit
1644 fi
1645
1646 ## ------------------------ ##
1647 ## Autoconf initialization. ##
1648 ## ------------------------ ##
1649
1650 # ac_fn_c_try_compile LINENO
1651 # --------------------------
1652 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1653 ac_fn_c_try_compile ()
1654 {
1655   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1656   rm -f conftest.$ac_objext
1657   if { { ac_try="$ac_compile"
1658 case "(($ac_try" in
1659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660   *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664   (eval "$ac_compile") 2>conftest.err
1665   ac_status=$?
1666   if test -s conftest.err; then
1667     grep -v '^ *+' conftest.err >conftest.er1
1668     cat conftest.er1 >&5
1669     mv -f conftest.er1 conftest.err
1670   fi
1671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672   test $ac_status = 0; } && {
1673          test -z "$ac_c_werror_flag" ||
1674          test ! -s conftest.err
1675        } && test -s conftest.$ac_objext; then :
1676   ac_retval=0
1677 else
1678   $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681         ac_retval=1
1682 fi
1683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684   as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_compile
1687
1688 # ac_fn_c_try_cpp LINENO
1689 # ----------------------
1690 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_cpp ()
1692 {
1693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694   if { { ac_try="$ac_cpp conftest.$ac_ext"
1695 case "(($ac_try" in
1696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697   *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 $as_echo "$ac_try_echo"; } >&5
1701   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1702   ac_status=$?
1703   if test -s conftest.err; then
1704     grep -v '^ *+' conftest.err >conftest.er1
1705     cat conftest.er1 >&5
1706     mv -f conftest.er1 conftest.err
1707   fi
1708   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709   test $ac_status = 0; } > conftest.i && {
1710          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711          test ! -s conftest.err
1712        }; then :
1713   ac_retval=0
1714 else
1715   $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1717
1718     ac_retval=1
1719 fi
1720   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721   as_fn_set_status $ac_retval
1722
1723 } # ac_fn_c_try_cpp
1724
1725 # ac_fn_cxx_try_compile LINENO
1726 # ----------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_cxx_try_compile ()
1729 {
1730   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731   rm -f conftest.$ac_objext
1732   if { { ac_try="$ac_compile"
1733 case "(($ac_try" in
1734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735   *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739   (eval "$ac_compile") 2>conftest.err
1740   ac_status=$?
1741   if test -s conftest.err; then
1742     grep -v '^ *+' conftest.err >conftest.er1
1743     cat conftest.er1 >&5
1744     mv -f conftest.er1 conftest.err
1745   fi
1746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747   test $ac_status = 0; } && {
1748          test -z "$ac_cxx_werror_flag" ||
1749          test ! -s conftest.err
1750        } && test -s conftest.$ac_objext; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756         ac_retval=1
1757 fi
1758   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759   as_fn_set_status $ac_retval
1760
1761 } # ac_fn_cxx_try_compile
1762
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1767 {
1768   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769   rm -f conftest.$ac_objext conftest$ac_exeext
1770   if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773   *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777   (eval "$ac_link") 2>conftest.err
1778   ac_status=$?
1779   if test -s conftest.err; then
1780     grep -v '^ *+' conftest.err >conftest.er1
1781     cat conftest.er1 >&5
1782     mv -f conftest.er1 conftest.err
1783   fi
1784   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785   test $ac_status = 0; } && {
1786          test -z "$ac_c_werror_flag" ||
1787          test ! -s conftest.err
1788        } && test -s conftest$ac_exeext && {
1789          test "$cross_compiling" = yes ||
1790          $as_test_x conftest$ac_exeext
1791        }; then :
1792   ac_retval=0
1793 else
1794   $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1796
1797         ac_retval=1
1798 fi
1799   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801   # interfere with the next link command; also delete a directory that is
1802   # left behind by Apple's compiler.  We do this before executing the actions.
1803   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_link
1808
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if eval \${$3+:} false; then :
1818   $as_echo_n "(cached) " >&6
1819 else
1820   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h.  */
1822 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1824 #define $2 innocuous_$2
1825
1826 /* System header to define __stub macros and hopefully few prototypes,
1827     which can conflict with char $2 (); below.
1828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1829     <limits.h> exists even on freestanding compilers.  */
1830
1831 #ifdef __STDC__
1832 # include <limits.h>
1833 #else
1834 # include <assert.h>
1835 #endif
1836
1837 #undef $2
1838
1839 /* Override any GCC internal prototype to avoid an error.
1840    Use char because int might match the return type of a GCC
1841    builtin and then its argument prototype would still apply.  */
1842 #ifdef __cplusplus
1843 extern "C"
1844 #endif
1845 char $2 ();
1846 /* The GNU C library defines this for functions which it implements
1847     to always fail with ENOSYS.  Some functions are actually named
1848     something starting with __ and the normal name is an alias.  */
1849 #if defined __stub_$2 || defined __stub___$2
1850 choke me
1851 #endif
1852
1853 int
1854 main ()
1855 {
1856 return $2 ();
1857   ;
1858   return 0;
1859 }
1860 _ACEOF
1861 if ac_fn_c_try_link "$LINENO"; then :
1862   eval "$3=yes"
1863 else
1864   eval "$3=no"
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext \
1867     conftest$ac_exeext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_func
1875
1876 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1877 # -------------------------------------------------------
1878 # Tests whether HEADER exists and can be compiled using the include files in
1879 # INCLUDES, setting the cache variable VAR accordingly.
1880 ac_fn_c_check_header_compile ()
1881 {
1882   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1884 $as_echo_n "checking for $2... " >&6; }
1885 if eval \${$3+:} false; then :
1886   $as_echo_n "(cached) " >&6
1887 else
1888   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 $4
1891 #include <$2>
1892 _ACEOF
1893 if ac_fn_c_try_compile "$LINENO"; then :
1894   eval "$3=yes"
1895 else
1896   eval "$3=no"
1897 fi
1898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1899 fi
1900 eval ac_res=\$$3
1901                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1902 $as_echo "$ac_res" >&6; }
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904
1905 } # ac_fn_c_check_header_compile
1906
1907 # ac_fn_c_try_run LINENO
1908 # ----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1910 # that executables *can* be run.
1911 ac_fn_c_try_run ()
1912 {
1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914   if { { ac_try="$ac_link"
1915 case "(($ac_try" in
1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917   *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921   (eval "$ac_link") 2>&5
1922   ac_status=$?
1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1925   { { case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_try") 2>&5
1932   ac_status=$?
1933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934   test $ac_status = 0; }; }; then :
1935   ac_retval=0
1936 else
1937   $as_echo "$as_me: program exited with status $ac_status" >&5
1938        $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.$ac_ext >&5
1940
1941        ac_retval=$ac_status
1942 fi
1943   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1944   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1945   as_fn_set_status $ac_retval
1946
1947 } # ac_fn_c_try_run
1948
1949 # ac_fn_cxx_try_cpp LINENO
1950 # ------------------------
1951 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_cxx_try_cpp ()
1953 {
1954   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955   if { { ac_try="$ac_cpp conftest.$ac_ext"
1956 case "(($ac_try" in
1957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1958   *) ac_try_echo=$ac_try;;
1959 esac
1960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1961 $as_echo "$ac_try_echo"; } >&5
1962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1963   ac_status=$?
1964   if test -s conftest.err; then
1965     grep -v '^ *+' conftest.err >conftest.er1
1966     cat conftest.er1 >&5
1967     mv -f conftest.er1 conftest.err
1968   fi
1969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970   test $ac_status = 0; } > conftest.i && {
1971          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1972          test ! -s conftest.err
1973        }; then :
1974   ac_retval=0
1975 else
1976   $as_echo "$as_me: failed program was:" >&5
1977 sed 's/^/| /' conftest.$ac_ext >&5
1978
1979     ac_retval=1
1980 fi
1981   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982   as_fn_set_status $ac_retval
1983
1984 } # ac_fn_cxx_try_cpp
1985
1986 # ac_fn_cxx_try_link LINENO
1987 # -------------------------
1988 # Try to link conftest.$ac_ext, and return whether this succeeded.
1989 ac_fn_cxx_try_link ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   rm -f conftest.$ac_objext conftest$ac_exeext
1993   if { { ac_try="$ac_link"
1994 case "(($ac_try" in
1995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1996   *) ac_try_echo=$ac_try;;
1997 esac
1998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1999 $as_echo "$ac_try_echo"; } >&5
2000   (eval "$ac_link") 2>conftest.err
2001   ac_status=$?
2002   if test -s conftest.err; then
2003     grep -v '^ *+' conftest.err >conftest.er1
2004     cat conftest.er1 >&5
2005     mv -f conftest.er1 conftest.err
2006   fi
2007   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2008   test $ac_status = 0; } && {
2009          test -z "$ac_cxx_werror_flag" ||
2010          test ! -s conftest.err
2011        } && test -s conftest$ac_exeext && {
2012          test "$cross_compiling" = yes ||
2013          $as_test_x conftest$ac_exeext
2014        }; then :
2015   ac_retval=0
2016 else
2017   $as_echo "$as_me: failed program was:" >&5
2018 sed 's/^/| /' conftest.$ac_ext >&5
2019
2020         ac_retval=1
2021 fi
2022   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2023   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2024   # interfere with the next link command; also delete a directory that is
2025   # left behind by Apple's compiler.  We do this before executing the actions.
2026   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2027   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2028   as_fn_set_status $ac_retval
2029
2030 } # ac_fn_cxx_try_link
2031
2032 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2033 # -------------------------------------------
2034 # Tests whether TYPE exists after having included INCLUDES, setting cache
2035 # variable VAR accordingly.
2036 ac_fn_c_check_type ()
2037 {
2038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042   $as_echo_n "(cached) " >&6
2043 else
2044   eval "$3=no"
2045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h.  */
2047 $4
2048 int
2049 main ()
2050 {
2051 if (sizeof ($2))
2052          return 0;
2053   ;
2054   return 0;
2055 }
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2059 /* end confdefs.h.  */
2060 $4
2061 int
2062 main ()
2063 {
2064 if (sizeof (($2)))
2065             return 0;
2066   ;
2067   return 0;
2068 }
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071
2072 else
2073   eval "$3=yes"
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 fi
2079 eval ac_res=\$$3
2080                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2081 $as_echo "$ac_res" >&6; }
2082   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083
2084 } # ac_fn_c_check_type
2085
2086 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2087 # --------------------------------------------
2088 # Tries to find the compile-time value of EXPR in a program that includes
2089 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2090 # computed
2091 ac_fn_c_compute_int ()
2092 {
2093   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094   if test "$cross_compiling" = yes; then
2095     # Depending upon the size, compute the lo and hi bounds.
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097 /* end confdefs.h.  */
2098 $4
2099 int
2100 main ()
2101 {
2102 static int test_array [1 - 2 * !(($2) >= 0)];
2103 test_array [0] = 0
2104
2105   ;
2106   return 0;
2107 }
2108 _ACEOF
2109 if ac_fn_c_try_compile "$LINENO"; then :
2110   ac_lo=0 ac_mid=0
2111   while :; do
2112     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h.  */
2114 $4
2115 int
2116 main ()
2117 {
2118 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2119 test_array [0] = 0
2120
2121   ;
2122   return 0;
2123 }
2124 _ACEOF
2125 if ac_fn_c_try_compile "$LINENO"; then :
2126   ac_hi=$ac_mid; break
2127 else
2128   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2129                         if test $ac_lo -le $ac_mid; then
2130                           ac_lo= ac_hi=
2131                           break
2132                         fi
2133                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2134 fi
2135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2136   done
2137 else
2138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h.  */
2140 $4
2141 int
2142 main ()
2143 {
2144 static int test_array [1 - 2 * !(($2) < 0)];
2145 test_array [0] = 0
2146
2147   ;
2148   return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152   ac_hi=-1 ac_mid=-1
2153   while :; do
2154     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h.  */
2156 $4
2157 int
2158 main ()
2159 {
2160 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2161 test_array [0] = 0
2162
2163   ;
2164   return 0;
2165 }
2166 _ACEOF
2167 if ac_fn_c_try_compile "$LINENO"; then :
2168   ac_lo=$ac_mid; break
2169 else
2170   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2171                         if test $ac_mid -le $ac_hi; then
2172                           ac_lo= ac_hi=
2173                           break
2174                         fi
2175                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178   done
2179 else
2180   ac_lo= ac_hi=
2181 fi
2182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183 fi
2184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 # Binary search between lo and hi bounds.
2186 while test "x$ac_lo" != "x$ac_hi"; do
2187   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h.  */
2190 $4
2191 int
2192 main ()
2193 {
2194 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2195 test_array [0] = 0
2196
2197   ;
2198   return 0;
2199 }
2200 _ACEOF
2201 if ac_fn_c_try_compile "$LINENO"; then :
2202   ac_hi=$ac_mid
2203 else
2204   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 done
2208 case $ac_lo in #((
2209 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2210 '') ac_retval=1 ;;
2211 esac
2212   else
2213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214 /* end confdefs.h.  */
2215 $4
2216 static long int longval () { return $2; }
2217 static unsigned long int ulongval () { return $2; }
2218 #include <stdio.h>
2219 #include <stdlib.h>
2220 int
2221 main ()
2222 {
2223
2224   FILE *f = fopen ("conftest.val", "w");
2225   if (! f)
2226     return 1;
2227   if (($2) < 0)
2228     {
2229       long int i = longval ();
2230       if (i != ($2))
2231         return 1;
2232       fprintf (f, "%ld", i);
2233     }
2234   else
2235     {
2236       unsigned long int i = ulongval ();
2237       if (i != ($2))
2238         return 1;
2239       fprintf (f, "%lu", i);
2240     }
2241   /* Do not output a trailing newline, as this causes \r\n confusion
2242      on some platforms.  */
2243   return ferror (f) || fclose (f) != 0;
2244
2245   ;
2246   return 0;
2247 }
2248 _ACEOF
2249 if ac_fn_c_try_run "$LINENO"; then :
2250   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2251 else
2252   ac_retval=1
2253 fi
2254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2255   conftest.$ac_objext conftest.beam conftest.$ac_ext
2256 rm -f conftest.val
2257
2258   fi
2259   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260   as_fn_set_status $ac_retval
2261
2262 } # ac_fn_c_compute_int
2263
2264 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2265 # -------------------------------------------------------
2266 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2267 # the include files in INCLUDES and setting the cache variable VAR
2268 # accordingly.
2269 ac_fn_c_check_header_mongrel ()
2270 {
2271   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272   if eval \${$3+:} false; then :
2273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2274 $as_echo_n "checking for $2... " >&6; }
2275 if eval \${$3+:} false; then :
2276   $as_echo_n "(cached) " >&6
2277 fi
2278 eval ac_res=\$$3
2279                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2280 $as_echo "$ac_res" >&6; }
2281 else
2282   # Is the header compilable?
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2284 $as_echo_n "checking $2 usability... " >&6; }
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h.  */
2287 $4
2288 #include <$2>
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291   ac_header_compiler=yes
2292 else
2293   ac_header_compiler=no
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2297 $as_echo "$ac_header_compiler" >&6; }
2298
2299 # Is the header present?
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2301 $as_echo_n "checking $2 presence... " >&6; }
2302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h.  */
2304 #include <$2>
2305 _ACEOF
2306 if ac_fn_c_try_cpp "$LINENO"; then :
2307   ac_header_preproc=yes
2308 else
2309   ac_header_preproc=no
2310 fi
2311 rm -f conftest.err conftest.i conftest.$ac_ext
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2313 $as_echo "$ac_header_preproc" >&6; }
2314
2315 # So?  What about this header?
2316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2317   yes:no: )
2318     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2319 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2321 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2322     ;;
2323   no:yes:* )
2324     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2325 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2327 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2328     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2329 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2331 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2332     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2333 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2334 ( $as_echo "## ------------------------------------------------------------------- ##
2335 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ##
2336 ## ------------------------------------------------------------------- ##"
2337      ) | sed "s/^/$as_me: WARNING:     /" >&2
2338     ;;
2339 esac
2340   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2341 $as_echo_n "checking for $2... " >&6; }
2342 if eval \${$3+:} false; then :
2343   $as_echo_n "(cached) " >&6
2344 else
2345   eval "$3=\$ac_header_compiler"
2346 fi
2347 eval ac_res=\$$3
2348                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2349 $as_echo "$ac_res" >&6; }
2350 fi
2351   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352
2353 } # ac_fn_c_check_header_mongrel
2354
2355 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2356 # ----------------------------------------------------
2357 # Tries to find if the field MEMBER exists in type AGGR, after including
2358 # INCLUDES, setting cache variable VAR accordingly.
2359 ac_fn_c_check_member ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2363 $as_echo_n "checking for $2.$3... " >&6; }
2364 if eval \${$4+:} false; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2368 /* end confdefs.h.  */
2369 $5
2370 int
2371 main ()
2372 {
2373 static $2 ac_aggr;
2374 if (ac_aggr.$3)
2375 return 0;
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381   eval "$4=yes"
2382 else
2383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h.  */
2385 $5
2386 int
2387 main ()
2388 {
2389 static $2 ac_aggr;
2390 if (sizeof ac_aggr.$3)
2391 return 0;
2392   ;
2393   return 0;
2394 }
2395 _ACEOF
2396 if ac_fn_c_try_compile "$LINENO"; then :
2397   eval "$4=yes"
2398 else
2399   eval "$4=no"
2400 fi
2401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 fi
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2404 fi
2405 eval ac_res=\$$4
2406                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2409
2410 } # ac_fn_c_check_member
2411 cat >config.log <<_ACEOF
2412 This file contains any messages produced by compilers while
2413 running configure, to aid debugging if configure makes a mistake.
2414
2415 It was created by glib $as_me 2.32.4, which was
2416 generated by GNU Autoconf 2.68.  Invocation command line was
2417
2418   $ $0 $@
2419
2420 _ACEOF
2421 exec 5>>config.log
2422 {
2423 cat <<_ASUNAME
2424 ## --------- ##
2425 ## Platform. ##
2426 ## --------- ##
2427
2428 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2429 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2430 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2431 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2432 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2433
2434 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2435 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2436
2437 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2438 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2439 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2440 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2441 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2442 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2443 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2444
2445 _ASUNAME
2446
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2448 for as_dir in $PATH
2449 do
2450   IFS=$as_save_IFS
2451   test -z "$as_dir" && as_dir=.
2452     $as_echo "PATH: $as_dir"
2453   done
2454 IFS=$as_save_IFS
2455
2456 } >&5
2457
2458 cat >&5 <<_ACEOF
2459
2460
2461 ## ----------- ##
2462 ## Core tests. ##
2463 ## ----------- ##
2464
2465 _ACEOF
2466
2467
2468 # Keep a trace of the command line.
2469 # Strip out --no-create and --no-recursion so they do not pile up.
2470 # Strip out --silent because we don't want to record it for future runs.
2471 # Also quote any args containing shell meta-characters.
2472 # Make two passes to allow for proper duplicate-argument suppression.
2473 ac_configure_args=
2474 ac_configure_args0=
2475 ac_configure_args1=
2476 ac_must_keep_next=false
2477 for ac_pass in 1 2
2478 do
2479   for ac_arg
2480   do
2481     case $ac_arg in
2482     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2483     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2484     | -silent | --silent | --silen | --sile | --sil)
2485       continue ;;
2486     *\'*)
2487       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2488     esac
2489     case $ac_pass in
2490     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2491     2)
2492       as_fn_append ac_configure_args1 " '$ac_arg'"
2493       if test $ac_must_keep_next = true; then
2494         ac_must_keep_next=false # Got value, back to normal.
2495       else
2496         case $ac_arg in
2497           *=* | --config-cache | -C | -disable-* | --disable-* \
2498           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2499           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2500           | -with-* | --with-* | -without-* | --without-* | --x)
2501             case "$ac_configure_args0 " in
2502               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2503             esac
2504             ;;
2505           -* ) ac_must_keep_next=true ;;
2506         esac
2507       fi
2508       as_fn_append ac_configure_args " '$ac_arg'"
2509       ;;
2510     esac
2511   done
2512 done
2513 { ac_configure_args0=; unset ac_configure_args0;}
2514 { ac_configure_args1=; unset ac_configure_args1;}
2515
2516 # When interrupted or exit'd, cleanup temporary files, and complete
2517 # config.log.  We remove comments because anyway the quotes in there
2518 # would cause problems or look ugly.
2519 # WARNING: Use '\'' to represent an apostrophe within the trap.
2520 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2521 trap 'exit_status=$?
2522   # Save into config.log some information that might help in debugging.
2523   {
2524     echo
2525
2526     $as_echo "## ---------------- ##
2527 ## Cache variables. ##
2528 ## ---------------- ##"
2529     echo
2530     # The following way of writing the cache mishandles newlines in values,
2531 (
2532   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2533     eval ac_val=\$$ac_var
2534     case $ac_val in #(
2535     *${as_nl}*)
2536       case $ac_var in #(
2537       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2538 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2539       esac
2540       case $ac_var in #(
2541       _ | IFS | as_nl) ;; #(
2542       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2543       *) { eval $ac_var=; unset $ac_var;} ;;
2544       esac ;;
2545     esac
2546   done
2547   (set) 2>&1 |
2548     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2549     *${as_nl}ac_space=\ *)
2550       sed -n \
2551         "s/'\''/'\''\\\\'\'''\''/g;
2552           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2553       ;; #(
2554     *)
2555       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2556       ;;
2557     esac |
2558     sort
2559 )
2560     echo
2561
2562     $as_echo "## ----------------- ##
2563 ## Output variables. ##
2564 ## ----------------- ##"
2565     echo
2566     for ac_var in $ac_subst_vars
2567     do
2568       eval ac_val=\$$ac_var
2569       case $ac_val in
2570       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571       esac
2572       $as_echo "$ac_var='\''$ac_val'\''"
2573     done | sort
2574     echo
2575
2576     if test -n "$ac_subst_files"; then
2577       $as_echo "## ------------------- ##
2578 ## File substitutions. ##
2579 ## ------------------- ##"
2580       echo
2581       for ac_var in $ac_subst_files
2582       do
2583         eval ac_val=\$$ac_var
2584         case $ac_val in
2585         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2586         esac
2587         $as_echo "$ac_var='\''$ac_val'\''"
2588       done | sort
2589       echo
2590     fi
2591
2592     if test -s confdefs.h; then
2593       $as_echo "## ----------- ##
2594 ## confdefs.h. ##
2595 ## ----------- ##"
2596       echo
2597       cat confdefs.h
2598       echo
2599     fi
2600     test "$ac_signal" != 0 &&
2601       $as_echo "$as_me: caught signal $ac_signal"
2602     $as_echo "$as_me: exit $exit_status"
2603   } >&5
2604   rm -f core *.core core.conftest.* &&
2605     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2606     exit $exit_status
2607 ' 0
2608 for ac_signal in 1 2 13 15; do
2609   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2610 done
2611 ac_signal=0
2612
2613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2614 rm -f -r conftest* confdefs.h
2615
2616 $as_echo "/* confdefs.h */" > confdefs.h
2617
2618 # Predefined preprocessor variables.
2619
2620 cat >>confdefs.h <<_ACEOF
2621 #define PACKAGE_NAME "$PACKAGE_NAME"
2622 _ACEOF
2623
2624 cat >>confdefs.h <<_ACEOF
2625 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2626 _ACEOF
2627
2628 cat >>confdefs.h <<_ACEOF
2629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2630 _ACEOF
2631
2632 cat >>confdefs.h <<_ACEOF
2633 #define PACKAGE_STRING "$PACKAGE_STRING"
2634 _ACEOF
2635
2636 cat >>confdefs.h <<_ACEOF
2637 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2638 _ACEOF
2639
2640 cat >>confdefs.h <<_ACEOF
2641 #define PACKAGE_URL "$PACKAGE_URL"
2642 _ACEOF
2643
2644
2645 # Let the site file select an alternate cache file if it wants to.
2646 # Prefer an explicitly selected file to automatically selected ones.
2647 ac_site_file1=NONE
2648 ac_site_file2=NONE
2649 if test -n "$CONFIG_SITE"; then
2650   # We do not want a PATH search for config.site.
2651   case $CONFIG_SITE in #((
2652     -*)  ac_site_file1=./$CONFIG_SITE;;
2653     */*) ac_site_file1=$CONFIG_SITE;;
2654     *)   ac_site_file1=./$CONFIG_SITE;;
2655   esac
2656 elif test "x$prefix" != xNONE; then
2657   ac_site_file1=$prefix/share/config.site
2658   ac_site_file2=$prefix/etc/config.site
2659 else
2660   ac_site_file1=$ac_default_prefix/share/config.site
2661   ac_site_file2=$ac_default_prefix/etc/config.site
2662 fi
2663 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2664 do
2665   test "x$ac_site_file" = xNONE && continue
2666   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2667     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2668 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2669     sed 's/^/| /' "$ac_site_file" >&5
2670     . "$ac_site_file" \
2671       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2672 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2673 as_fn_error $? "failed to load site script $ac_site_file
2674 See \`config.log' for more details" "$LINENO" 5; }
2675   fi
2676 done
2677
2678 if test -r "$cache_file"; then
2679   # Some versions of bash will fail to source /dev/null (special files
2680   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2681   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2682     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2683 $as_echo "$as_me: loading cache $cache_file" >&6;}
2684     case $cache_file in
2685       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2686       *)                      . "./$cache_file";;
2687     esac
2688   fi
2689 else
2690   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2691 $as_echo "$as_me: creating cache $cache_file" >&6;}
2692   >$cache_file
2693 fi
2694
2695 # Check that the precious variables saved in the cache have kept the same
2696 # value.
2697 ac_cache_corrupted=false
2698 for ac_var in $ac_precious_vars; do
2699   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2700   eval ac_new_set=\$ac_env_${ac_var}_set
2701   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2702   eval ac_new_val=\$ac_env_${ac_var}_value
2703   case $ac_old_set,$ac_new_set in
2704     set,)
2705       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2706 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2707       ac_cache_corrupted=: ;;
2708     ,set)
2709       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2710 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2711       ac_cache_corrupted=: ;;
2712     ,);;
2713     *)
2714       if test "x$ac_old_val" != "x$ac_new_val"; then
2715         # differences in whitespace do not lead to failure.
2716         ac_old_val_w=`echo x $ac_old_val`
2717         ac_new_val_w=`echo x $ac_new_val`
2718         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2719           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2720 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2721           ac_cache_corrupted=:
2722         else
2723           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2724 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2725           eval $ac_var=\$ac_old_val
2726         fi
2727         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2728 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2729         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2730 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2731       fi;;
2732   esac
2733   # Pass precious variables to config.status.
2734   if test "$ac_new_set" = set; then
2735     case $ac_new_val in
2736     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2737     *) ac_arg=$ac_var=$ac_new_val ;;
2738     esac
2739     case " $ac_configure_args " in
2740       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2741       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2742     esac
2743   fi
2744 done
2745 if $ac_cache_corrupted; then
2746   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2749 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2750   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2751 fi
2752 ## -------------------- ##
2753 ## Main body of script. ##
2754 ## -------------------- ##
2755
2756 ac_ext=c
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761
2762
2763
2764 ac_config_headers="$ac_config_headers config.h"
2765
2766
2767
2768
2769 # Save this value here, since automake will set cflags later
2770 cflags_set=${CFLAGS+set}
2771
2772 am__api_version='1.11'
2773
2774 ac_aux_dir=
2775 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2776   if test -f "$ac_dir/install-sh"; then
2777     ac_aux_dir=$ac_dir
2778     ac_install_sh="$ac_aux_dir/install-sh -c"
2779     break
2780   elif test -f "$ac_dir/install.sh"; then
2781     ac_aux_dir=$ac_dir
2782     ac_install_sh="$ac_aux_dir/install.sh -c"
2783     break
2784   elif test -f "$ac_dir/shtool"; then
2785     ac_aux_dir=$ac_dir
2786     ac_install_sh="$ac_aux_dir/shtool install -c"
2787     break
2788   fi
2789 done
2790 if test -z "$ac_aux_dir"; then
2791   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2792 fi
2793
2794 # These three variables are undocumented and unsupported,
2795 # and are intended to be withdrawn in a future Autoconf release.
2796 # They can cause serious problems if a builder's source tree is in a directory
2797 # whose full name contains unusual characters.
2798 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2799 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2800 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2801
2802
2803 # Find a good install program.  We prefer a C program (faster),
2804 # so one script is as good as another.  But avoid the broken or
2805 # incompatible versions:
2806 # SysV /etc/install, /usr/sbin/install
2807 # SunOS /usr/etc/install
2808 # IRIX /sbin/install
2809 # AIX /bin/install
2810 # AmigaOS /C/install, which installs bootblocks on floppy discs
2811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814 # OS/2's system install, which has a completely different semantic
2815 # ./install, which can be erroneously created by make from ./install.sh.
2816 # Reject install programs that cannot install multiple files.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2818 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2819 if test -z "$INSTALL"; then
2820 if ${ac_cv_path_install+:} false; then :
2821   $as_echo_n "(cached) " >&6
2822 else
2823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in #((
2830   ./ | .// | /[cC]/* | \
2831   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2833   /usr/ucb/* ) ;;
2834   *)
2835     # OSF1 and SCO ODT 3.0 have their own names for install.
2836     # Don't use installbsd from OSF since it installs stuff as root
2837     # by default.
2838     for ac_prog in ginstall scoinst install; do
2839       for ac_exec_ext in '' $ac_executable_extensions; do
2840         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2841           if test $ac_prog = install &&
2842             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843             # AIX install.  It has an incompatible calling convention.
2844             :
2845           elif test $ac_prog = install &&
2846             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847             # program-specific install script used by HP pwplus--don't use.
2848             :
2849           else
2850             rm -rf conftest.one conftest.two conftest.dir
2851             echo one > conftest.one
2852             echo two > conftest.two
2853             mkdir conftest.dir
2854             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2855               test -s conftest.one && test -s conftest.two &&
2856               test -s conftest.dir/conftest.one &&
2857               test -s conftest.dir/conftest.two
2858             then
2859               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2860               break 3
2861             fi
2862           fi
2863         fi
2864       done
2865     done
2866     ;;
2867 esac
2868
2869   done
2870 IFS=$as_save_IFS
2871
2872 rm -rf conftest.one conftest.two conftest.dir
2873
2874 fi
2875   if test "${ac_cv_path_install+set}" = set; then
2876     INSTALL=$ac_cv_path_install
2877   else
2878     # As a last resort, use the slow shell script.  Don't cache a
2879     # value for INSTALL within a source directory, because that will
2880     # break other packages using the cache if that directory is
2881     # removed, or if the value is a relative name.
2882     INSTALL=$ac_install_sh
2883   fi
2884 fi
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2886 $as_echo "$INSTALL" >&6; }
2887
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2891
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2893
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2895
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2897 $as_echo_n "checking whether build environment is sane... " >&6; }
2898 # Just in case
2899 sleep 1
2900 echo timestamp > conftest.file
2901 # Reject unsafe characters in $srcdir or the absolute working directory
2902 # name.  Accept space and tab only in the latter.
2903 am_lf='
2904 '
2905 case `pwd` in
2906   *[\\\"\#\$\&\'\`$am_lf]*)
2907     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2908 esac
2909 case $srcdir in
2910   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2911     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2912 esac
2913
2914 # Do `set' in a subshell so we don't clobber the current shell's
2915 # arguments.  Must try -L first in case configure is actually a
2916 # symlink; some systems play weird games with the mod time of symlinks
2917 # (eg FreeBSD returns the mod time of the symlink's containing
2918 # directory).
2919 if (
2920    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2921    if test "$*" = "X"; then
2922       # -L didn't work.
2923       set X `ls -t "$srcdir/configure" conftest.file`
2924    fi
2925    rm -f conftest.file
2926    if test "$*" != "X $srcdir/configure conftest.file" \
2927       && test "$*" != "X conftest.file $srcdir/configure"; then
2928
2929       # If neither matched, then we have a broken ls.  This can happen
2930       # if, for instance, CONFIG_SHELL is bash and it inherits a
2931       # broken ls alias from the environment.  This has actually
2932       # happened.  Such a system could not be considered "sane".
2933       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2934 alias in your environment" "$LINENO" 5
2935    fi
2936
2937    test "$2" = conftest.file
2938    )
2939 then
2940    # Ok.
2941    :
2942 else
2943    as_fn_error $? "newly created file is older than distributed files!
2944 Check your system clock" "$LINENO" 5
2945 fi
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2948 test "$program_prefix" != NONE &&
2949   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2950 # Use a double $ so make ignores it.
2951 test "$program_suffix" != NONE &&
2952   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2953 # Double any \ or $.
2954 # By default was `s,x,x', remove it if useless.
2955 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2956 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2957
2958 # expand $ac_aux_dir to an absolute path
2959 am_aux_dir=`cd $ac_aux_dir && pwd`
2960
2961 if test x"${MISSING+set}" != xset; then
2962   case $am_aux_dir in
2963   *\ * | *\     *)
2964     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2965   *)
2966     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2967   esac
2968 fi
2969 # Use eval to expand $SHELL
2970 if eval "$MISSING --run true"; then
2971   am_missing_run="$MISSING --run "
2972 else
2973   am_missing_run=
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2975 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2976 fi
2977
2978 if test x"${install_sh}" != xset; then
2979   case $am_aux_dir in
2980   *\ * | *\     *)
2981     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2982   *)
2983     install_sh="\${SHELL} $am_aux_dir/install-sh"
2984   esac
2985 fi
2986
2987 # Installed binaries are usually stripped using `strip' when the user
2988 # run `make install-strip'.  However `strip' might not be the right
2989 # tool to use in cross-compilation environments, therefore Automake
2990 # will honor the `STRIP' environment variable to overrule this program.
2991 if test "$cross_compiling" != no; then
2992   if test -n "$ac_tool_prefix"; then
2993   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}strip; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_STRIP+:} false; then :
2998   $as_echo_n "(cached) " >&6
2999 else
3000   if test -n "$STRIP"; then
3001   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006   IFS=$as_save_IFS
3007   test -z "$as_dir" && as_dir=.
3008     for ac_exec_ext in '' $ac_executable_extensions; do
3009   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3010     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012     break 2
3013   fi
3014 done
3015   done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 STRIP=$ac_cv_prog_STRIP
3021 if test -n "$STRIP"; then
3022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3023 $as_echo "$STRIP" >&6; }
3024 else
3025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030 fi
3031 if test -z "$ac_cv_prog_STRIP"; then
3032   ac_ct_STRIP=$STRIP
3033   # Extract the first word of "strip", so it can be a program name with args.
3034 set dummy strip; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3038   $as_echo_n "(cached) " >&6
3039 else
3040   if test -n "$ac_ct_STRIP"; then
3041   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046   IFS=$as_save_IFS
3047   test -z "$as_dir" && as_dir=.
3048     for ac_exec_ext in '' $ac_executable_extensions; do
3049   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050     ac_cv_prog_ac_ct_STRIP="strip"
3051     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052     break 2
3053   fi
3054 done
3055   done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3061 if test -n "$ac_ct_STRIP"; then
3062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3063 $as_echo "$ac_ct_STRIP" >&6; }
3064 else
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069   if test "x$ac_ct_STRIP" = x; then
3070     STRIP=":"
3071   else
3072     case $cross_compiling:$ac_tool_warned in
3073 yes:)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078     STRIP=$ac_ct_STRIP
3079   fi
3080 else
3081   STRIP="$ac_cv_prog_STRIP"
3082 fi
3083
3084 fi
3085 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3086
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3088 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3089 if test -z "$MKDIR_P"; then
3090   if ${ac_cv_path_mkdir+:} false; then :
3091   $as_echo_n "(cached) " >&6
3092 else
3093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098     for ac_prog in mkdir gmkdir; do
3099          for ac_exec_ext in '' $ac_executable_extensions; do
3100            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3101            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3102              'mkdir (GNU coreutils) '* | \
3103              'mkdir (coreutils) '* | \
3104              'mkdir (fileutils) '4.1*)
3105                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3106                break 3;;
3107            esac
3108          done
3109        done
3110   done
3111 IFS=$as_save_IFS
3112
3113 fi
3114
3115   test -d ./--version && rmdir ./--version
3116   if test "${ac_cv_path_mkdir+set}" = set; then
3117     MKDIR_P="$ac_cv_path_mkdir -p"
3118   else
3119     # As a last resort, use the slow shell script.  Don't cache a
3120     # value for MKDIR_P within a source directory, because that will
3121     # break other packages using the cache if that directory is
3122     # removed, or if the value is a relative name.
3123     MKDIR_P="$ac_install_sh -d"
3124   fi
3125 fi
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3127 $as_echo "$MKDIR_P" >&6; }
3128
3129 mkdir_p="$MKDIR_P"
3130 case $mkdir_p in
3131   [\\/$]* | ?:[\\/]*) ;;
3132   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3133 esac
3134
3135 for ac_prog in gawk mawk nawk awk
3136 do
3137   # Extract the first word of "$ac_prog", so it can be a program name with args.
3138 set dummy $ac_prog; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_AWK+:} false; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test -n "$AWK"; then
3145   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3149 do
3150   IFS=$as_save_IFS
3151   test -z "$as_dir" && as_dir=.
3152     for ac_exec_ext in '' $ac_executable_extensions; do
3153   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3154     ac_cv_prog_AWK="$ac_prog"
3155     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156     break 2
3157   fi
3158 done
3159   done
3160 IFS=$as_save_IFS
3161
3162 fi
3163 fi
3164 AWK=$ac_cv_prog_AWK
3165 if test -n "$AWK"; then
3166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3167 $as_echo "$AWK" >&6; }
3168 else
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3171 fi
3172
3173
3174   test -n "$AWK" && break
3175 done
3176
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3178 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3179 set x ${MAKE-make}
3180 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3181 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   cat >conftest.make <<\_ACEOF
3185 SHELL = /bin/sh
3186 all:
3187         @echo '@@@%%%=$(MAKE)=@@@%%%'
3188 _ACEOF
3189 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3190 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3191   *@@@%%%=?*=@@@%%%*)
3192     eval ac_cv_prog_make_${ac_make}_set=yes;;
3193   *)
3194     eval ac_cv_prog_make_${ac_make}_set=no;;
3195 esac
3196 rm -f conftest.make
3197 fi
3198 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3201   SET_MAKE=
3202 else
3203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3204 $as_echo "no" >&6; }
3205   SET_MAKE="MAKE=${MAKE-make}"
3206 fi
3207
3208 rm -rf .tst 2>/dev/null
3209 mkdir .tst 2>/dev/null
3210 if test -d .tst; then
3211   am__leading_dot=.
3212 else
3213   am__leading_dot=_
3214 fi
3215 rmdir .tst 2>/dev/null
3216
3217 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3218   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3219   # is not polluted with repeated "-I."
3220   am__isrc=' -I$(srcdir)'
3221   # test to see if srcdir already configured
3222   if test -f $srcdir/config.status; then
3223     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3224   fi
3225 fi
3226
3227 # test whether we have cygpath
3228 if test -z "$CYGPATH_W"; then
3229   if (cygpath --version) >/dev/null 2>/dev/null; then
3230     CYGPATH_W='cygpath -w'
3231   else
3232     CYGPATH_W=echo
3233   fi
3234 fi
3235
3236
3237 # Define the identity of the package.
3238  PACKAGE='glib'
3239  VERSION='2.32.4'
3240
3241
3242 # Some tools Automake needs.
3243
3244 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3245
3246
3247 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3248
3249
3250 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3251
3252
3253 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3254
3255
3256 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3257
3258 # We need awk for the "check" target.  The system "awk" is bad on
3259 # some platforms.
3260 # Always define AMTAR for backward compatibility.
3261
3262 AMTAR=${AMTAR-"${am_missing_run}tar"}
3263
3264
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3266 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3267 # Loop over all known methods to create a tar archive until one works.
3268 _am_tools='gnutar plaintar pax cpio none'
3269 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3270 # Do not fold the above two line into one, because Tru64 sh and
3271 # Solaris sh will not grok spaces in the rhs of `-'.
3272 for _am_tool in $_am_tools
3273 do
3274   case $_am_tool in
3275   gnutar)
3276     for _am_tar in tar gnutar gtar;
3277     do
3278       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3279    ($_am_tar --version) >&5 2>&5
3280    ac_status=$?
3281    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282    (exit $ac_status); } && break
3283     done
3284     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3285     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3286     am__untar="$_am_tar -xf -"
3287     ;;
3288   plaintar)
3289     # Must skip GNU tar: if it does not support --format= it doesn't create
3290     # ustar tarball either.
3291     (tar --version) >/dev/null 2>&1 && continue
3292     am__tar='tar chf - "$$tardir"'
3293     am__tar_='tar chf - "$tardir"'
3294     am__untar='tar xf -'
3295     ;;
3296   pax)
3297     am__tar='pax -L -x ustar -w "$$tardir"'
3298     am__tar_='pax -L -x ustar -w "$tardir"'
3299     am__untar='pax -r'
3300     ;;
3301   cpio)
3302     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3303     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3304     am__untar='cpio -i -H ustar -d'
3305     ;;
3306   none)
3307     am__tar=false
3308     am__tar_=false
3309     am__untar=false
3310     ;;
3311   esac
3312
3313   # If the value was cached, stop now.  We just wanted to have am__tar
3314   # and am__untar set.
3315   test -n "${am_cv_prog_tar_ustar}" && break
3316
3317   # tar/untar a dummy directory, and stop if the command works
3318   rm -rf conftest.dir
3319   mkdir conftest.dir
3320   echo GrepMe > conftest.dir/file
3321   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3322    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3323    ac_status=$?
3324    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325    (exit $ac_status); }
3326   rm -rf conftest.dir
3327   if test -s conftest.tar; then
3328     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3329    ($am__untar <conftest.tar) >&5 2>&5
3330    ac_status=$?
3331    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332    (exit $ac_status); }
3333     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3334   fi
3335 done
3336 rm -rf conftest.dir
3337
3338 if ${am_cv_prog_tar_ustar+:} false; then :
3339   $as_echo_n "(cached) " >&6
3340 else
3341   am_cv_prog_tar_ustar=$_am_tool
3342 fi
3343
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3345 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3346
3347
3348
3349
3350
3351
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3353 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3354     # Check whether --enable-maintainer-mode was given.
3355 if test "${enable_maintainer_mode+set}" = set; then :
3356   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3357 else
3358   USE_MAINTAINER_MODE=yes
3359 fi
3360
3361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3362 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3363    if test $USE_MAINTAINER_MODE = yes; then
3364   MAINTAINER_MODE_TRUE=
3365   MAINTAINER_MODE_FALSE='#'
3366 else
3367   MAINTAINER_MODE_TRUE='#'
3368   MAINTAINER_MODE_FALSE=
3369 fi
3370
3371   MAINT=$MAINTAINER_MODE_TRUE
3372
3373
3374
3375 # Support silent build rules. Disable
3376 # by either passing --disable-silent-rules to configure or passing V=1
3377 # to make
3378 # Check whether --enable-silent-rules was given.
3379 if test "${enable_silent_rules+set}" = set; then :
3380   enableval=$enable_silent_rules;
3381 fi
3382
3383 case $enable_silent_rules in
3384 yes) AM_DEFAULT_VERBOSITY=0;;
3385 no)  AM_DEFAULT_VERBOSITY=1;;
3386 *)   AM_DEFAULT_VERBOSITY=0;;
3387 esac
3388 AM_BACKSLASH='\'
3389
3390
3391 GLIB_MAJOR_VERSION=2
3392 GLIB_MINOR_VERSION=32
3393 GLIB_MICRO_VERSION=4
3394 GLIB_INTERFACE_AGE=4
3395 GLIB_BINARY_AGE=3204
3396 GLIB_VERSION=2.32.4
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406 $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h
3407
3408
3409 $as_echo "#define GLIB_MINOR_VERSION 32" >>confdefs.h
3410
3411
3412 $as_echo "#define GLIB_MICRO_VERSION 4" >>confdefs.h
3413
3414
3415 $as_echo "#define GLIB_INTERFACE_AGE 4" >>confdefs.h
3416
3417
3418 $as_echo "#define GLIB_BINARY_AGE 3204" >>confdefs.h
3419
3420
3421 # libtool versioning
3422 LT_RELEASE=2.32
3423 LT_CURRENT=3200
3424 LT_REVISION=4
3425 LT_AGE=3200
3426 LT_CURRENT_MINUS_AGE=0
3427
3428
3429
3430
3431
3432
3433 ac_ext=c
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 if test -n "$ac_tool_prefix"; then
3439   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3440 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_CC+:} false; then :
3444   $as_echo_n "(cached) " >&6
3445 else
3446   if test -n "$CC"; then
3447   ac_cv_prog_CC="$CC" # Let the user override the test.
3448 else
3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450 for as_dir in $PATH
3451 do
3452   IFS=$as_save_IFS
3453   test -z "$as_dir" && as_dir=.
3454     for ac_exec_ext in '' $ac_executable_extensions; do
3455   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461   done
3462 IFS=$as_save_IFS
3463
3464 fi
3465 fi
3466 CC=$ac_cv_prog_CC
3467 if test -n "$CC"; then
3468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469 $as_echo "$CC" >&6; }
3470 else
3471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472 $as_echo "no" >&6; }
3473 fi
3474
3475
3476 fi
3477 if test -z "$ac_cv_prog_CC"; then
3478   ac_ct_CC=$CC
3479   # Extract the first word of "gcc", so it can be a program name with args.
3480 set dummy gcc; ac_word=$2
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3482 $as_echo_n "checking for $ac_word... " >&6; }
3483 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3484   $as_echo_n "(cached) " >&6
3485 else
3486   if test -n "$ac_ct_CC"; then
3487   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3488 else
3489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3490 for as_dir in $PATH
3491 do
3492   IFS=$as_save_IFS
3493   test -z "$as_dir" && as_dir=.
3494     for ac_exec_ext in '' $ac_executable_extensions; do
3495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496     ac_cv_prog_ac_ct_CC="gcc"
3497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3498     break 2
3499   fi
3500 done
3501   done
3502 IFS=$as_save_IFS
3503
3504 fi
3505 fi
3506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3507 if test -n "$ac_ct_CC"; then
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3509 $as_echo "$ac_ct_CC" >&6; }
3510 else
3511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3512 $as_echo "no" >&6; }
3513 fi
3514
3515   if test "x$ac_ct_CC" = x; then
3516     CC=""
3517   else
3518     case $cross_compiling:$ac_tool_warned in
3519 yes:)
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3522 ac_tool_warned=yes ;;
3523 esac
3524     CC=$ac_ct_CC
3525   fi
3526 else
3527   CC="$ac_cv_prog_CC"
3528 fi
3529
3530 if test -z "$CC"; then
3531           if test -n "$ac_tool_prefix"; then
3532     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}cc; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_CC+:} false; then :
3537   $as_echo_n "(cached) " >&6
3538 else
3539   if test -n "$CC"; then
3540   ac_cv_prog_CC="$CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545   IFS=$as_save_IFS
3546   test -z "$as_dir" && as_dir=.
3547     for ac_exec_ext in '' $ac_executable_extensions; do
3548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549     ac_cv_prog_CC="${ac_tool_prefix}cc"
3550     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551     break 2
3552   fi
3553 done
3554   done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 CC=$ac_cv_prog_CC
3560 if test -n "$CC"; then
3561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3562 $as_echo "$CC" >&6; }
3563 else
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3566 fi
3567
3568
3569   fi
3570 fi
3571 if test -z "$CC"; then
3572   # Extract the first word of "cc", so it can be a program name with args.
3573 set dummy cc; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if ${ac_cv_prog_CC+:} false; then :
3577   $as_echo_n "(cached) " >&6
3578 else
3579   if test -n "$CC"; then
3580   ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582   ac_prog_rejected=no
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 for as_dir in $PATH
3585 do
3586   IFS=$as_save_IFS
3587   test -z "$as_dir" && as_dir=.
3588     for ac_exec_ext in '' $ac_executable_extensions; do
3589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3591        ac_prog_rejected=yes
3592        continue
3593      fi
3594     ac_cv_prog_CC="cc"
3595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599   done
3600 IFS=$as_save_IFS
3601
3602 if test $ac_prog_rejected = yes; then
3603   # We found a bogon in the path, so make sure we never use it.
3604   set dummy $ac_cv_prog_CC
3605   shift
3606   if test $# != 0; then
3607     # We chose a different compiler from the bogus one.
3608     # However, it has the same basename, so the bogon will be chosen
3609     # first if we set CC to just the basename; use the full file name.
3610     shift
3611     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3612   fi
3613 fi
3614 fi
3615 fi
3616 CC=$ac_cv_prog_CC
3617 if test -n "$CC"; then
3618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3619 $as_echo "$CC" >&6; }
3620 else
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3622 $as_echo "no" >&6; }
3623 fi
3624
3625
3626 fi
3627 if test -z "$CC"; then
3628   if test -n "$ac_tool_prefix"; then
3629   for ac_prog in cl.exe
3630   do
3631     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3632 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_CC+:} false; then :
3636   $as_echo_n "(cached) " >&6
3637 else
3638   if test -n "$CC"; then
3639   ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3643 do
3644   IFS=$as_save_IFS
3645   test -z "$as_dir" && as_dir=.
3646     for ac_exec_ext in '' $ac_executable_extensions; do
3647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650     break 2
3651   fi
3652 done
3653   done
3654 IFS=$as_save_IFS
3655
3656 fi
3657 fi
3658 CC=$ac_cv_prog_CC
3659 if test -n "$CC"; then
3660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3662 else
3663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3665 fi
3666
3667
3668     test -n "$CC" && break
3669   done
3670 fi
3671 if test -z "$CC"; then
3672   ac_ct_CC=$CC
3673   for ac_prog in cl.exe
3674 do
3675   # Extract the first word of "$ac_prog", so it can be a program name with args.
3676 set dummy $ac_prog; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3680   $as_echo_n "(cached) " >&6
3681 else
3682   if test -n "$ac_ct_CC"; then
3683   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3684 else
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in $PATH
3687 do
3688   IFS=$as_save_IFS
3689   test -z "$as_dir" && as_dir=.
3690     for ac_exec_ext in '' $ac_executable_extensions; do
3691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692     ac_cv_prog_ac_ct_CC="$ac_prog"
3693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3694     break 2
3695   fi
3696 done
3697   done
3698 IFS=$as_save_IFS
3699
3700 fi
3701 fi
3702 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3703 if test -n "$ac_ct_CC"; then
3704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3705 $as_echo "$ac_ct_CC" >&6; }
3706 else
3707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3709 fi
3710
3711
3712   test -n "$ac_ct_CC" && break
3713 done
3714
3715   if test "x$ac_ct_CC" = x; then
3716     CC=""
3717   else
3718     case $cross_compiling:$ac_tool_warned in
3719 yes:)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3722 ac_tool_warned=yes ;;
3723 esac
3724     CC=$ac_ct_CC
3725   fi
3726 fi
3727
3728 fi
3729
3730
3731 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3732 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3733 as_fn_error $? "no acceptable C compiler found in \$PATH
3734 See \`config.log' for more details" "$LINENO" 5; }
3735
3736 # Provide some information about the compiler.
3737 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3738 set X $ac_compile
3739 ac_compiler=$2
3740 for ac_option in --version -v -V -qversion; do
3741   { { ac_try="$ac_compiler $ac_option >&5"
3742 case "(($ac_try" in
3743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744   *) ac_try_echo=$ac_try;;
3745 esac
3746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3747 $as_echo "$ac_try_echo"; } >&5
3748   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3749   ac_status=$?
3750   if test -s conftest.err; then
3751     sed '10a\
3752 ... rest of stderr output deleted ...
3753          10q' conftest.err >conftest.er1
3754     cat conftest.er1 >&5
3755   fi
3756   rm -f conftest.er1 conftest.err
3757   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758   test $ac_status = 0; }
3759 done
3760
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763
3764 int
3765 main ()
3766 {
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 ac_clean_files_save=$ac_clean_files
3773 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3774 # Try to create an executable without -o first, disregard a.out.
3775 # It will help us diagnose broken compilers, and finding out an intuition
3776 # of exeext.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3778 $as_echo_n "checking whether the C compiler works... " >&6; }
3779 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3780
3781 # The possible output files:
3782 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3783
3784 ac_rmfiles=
3785 for ac_file in $ac_files
3786 do
3787   case $ac_file in
3788     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3789     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3790   esac
3791 done
3792 rm -f $ac_rmfiles
3793
3794 if { { ac_try="$ac_link_default"
3795 case "(($ac_try" in
3796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3797   *) ac_try_echo=$ac_try;;
3798 esac
3799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3800 $as_echo "$ac_try_echo"; } >&5
3801   (eval "$ac_link_default") 2>&5
3802   ac_status=$?
3803   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804   test $ac_status = 0; }; then :
3805   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3806 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3807 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3808 # so that the user can short-circuit this test for compilers unknown to
3809 # Autoconf.
3810 for ac_file in $ac_files ''
3811 do
3812   test -f "$ac_file" || continue
3813   case $ac_file in
3814     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3815         ;;
3816     [ab].out )
3817         # We found the default executable, but exeext='' is most
3818         # certainly right.
3819         break;;
3820     *.* )
3821         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3822         then :; else
3823            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3824         fi
3825         # We set ac_cv_exeext here because the later test for it is not
3826         # safe: cross compilers may not add the suffix if given an `-o'
3827         # argument, so we may need to know it at that point already.
3828         # Even if this section looks crufty: it has the advantage of
3829         # actually working.
3830         break;;
3831     * )
3832         break;;
3833   esac
3834 done
3835 test "$ac_cv_exeext" = no && ac_cv_exeext=
3836
3837 else
3838   ac_file=''
3839 fi
3840 if test -z "$ac_file"; then :
3841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3842 $as_echo "no" >&6; }
3843 $as_echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3845
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error 77 "C compiler cannot create executables
3849 See \`config.log' for more details" "$LINENO" 5; }
3850 else
3851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3852 $as_echo "yes" >&6; }
3853 fi
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3855 $as_echo_n "checking for C compiler default output file name... " >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3857 $as_echo "$ac_file" >&6; }
3858 ac_exeext=$ac_cv_exeext
3859
3860 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3861 ac_clean_files=$ac_clean_files_save
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3863 $as_echo_n "checking for suffix of executables... " >&6; }
3864 if { { ac_try="$ac_link"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871   (eval "$ac_link") 2>&5
3872   ac_status=$?
3873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874   test $ac_status = 0; }; then :
3875   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3876 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3877 # work properly (i.e., refer to `conftest.exe'), while it won't with
3878 # `rm'.
3879 for ac_file in conftest.exe conftest conftest.*; do
3880   test -f "$ac_file" || continue
3881   case $ac_file in
3882     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3883     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3884           break;;
3885     * ) break;;
3886   esac
3887 done
3888 else
3889   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3891 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3892 See \`config.log' for more details" "$LINENO" 5; }
3893 fi
3894 rm -f conftest conftest$ac_cv_exeext
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3896 $as_echo "$ac_cv_exeext" >&6; }
3897
3898 rm -f conftest.$ac_ext
3899 EXEEXT=$ac_cv_exeext
3900 ac_exeext=$EXEEXT
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h.  */
3903 #include <stdio.h>
3904 int
3905 main ()
3906 {
3907 FILE *f = fopen ("conftest.out", "w");
3908  return ferror (f) || fclose (f) != 0;
3909
3910   ;
3911   return 0;
3912 }
3913 _ACEOF
3914 ac_clean_files="$ac_clean_files conftest.out"
3915 # Check that the compiler produces executables we can run.  If not, either
3916 # the compiler is broken, or we cross compile.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3918 $as_echo_n "checking whether we are cross compiling... " >&6; }
3919 if test "$cross_compiling" != yes; then
3920   { { ac_try="$ac_link"
3921 case "(($ac_try" in
3922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923   *) ac_try_echo=$ac_try;;
3924 esac
3925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3926 $as_echo "$ac_try_echo"; } >&5
3927   (eval "$ac_link") 2>&5
3928   ac_status=$?
3929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3930   test $ac_status = 0; }
3931   if { ac_try='./conftest$ac_cv_exeext'
3932   { { case "(($ac_try" in
3933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934   *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938   (eval "$ac_try") 2>&5
3939   ac_status=$?
3940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941   test $ac_status = 0; }; }; then
3942     cross_compiling=no
3943   else
3944     if test "$cross_compiling" = maybe; then
3945         cross_compiling=yes
3946     else
3947         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error $? "cannot run C compiled programs.
3950 If you meant to cross compile, use \`--host'.
3951 See \`config.log' for more details" "$LINENO" 5; }
3952     fi
3953   fi
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3956 $as_echo "$cross_compiling" >&6; }
3957
3958 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3959 ac_clean_files=$ac_clean_files_save
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3961 $as_echo_n "checking for suffix of object files... " >&6; }
3962 if ${ac_cv_objext+:} false; then :
3963   $as_echo_n "(cached) " >&6
3964 else
3965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h.  */
3967
3968 int
3969 main ()
3970 {
3971
3972   ;
3973   return 0;
3974 }
3975 _ACEOF
3976 rm -f conftest.o conftest.obj
3977 if { { ac_try="$ac_compile"
3978 case "(($ac_try" in
3979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980   *) ac_try_echo=$ac_try;;
3981 esac
3982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3983 $as_echo "$ac_try_echo"; } >&5
3984   (eval "$ac_compile") 2>&5
3985   ac_status=$?
3986   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3987   test $ac_status = 0; }; then :
3988   for ac_file in conftest.o conftest.obj conftest.*; do
3989   test -f "$ac_file" || continue;
3990   case $ac_file in
3991     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3992     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3993        break;;
3994   esac
3995 done
3996 else
3997   $as_echo "$as_me: failed program was:" >&5
3998 sed 's/^/| /' conftest.$ac_ext >&5
3999
4000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4001 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4002 as_fn_error $? "cannot compute suffix of object files: cannot compile
4003 See \`config.log' for more details" "$LINENO" 5; }
4004 fi
4005 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4008 $as_echo "$ac_cv_objext" >&6; }
4009 OBJEXT=$ac_cv_objext
4010 ac_objext=$OBJEXT
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4012 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4013 if ${ac_cv_c_compiler_gnu+:} false; then :
4014   $as_echo_n "(cached) " >&6
4015 else
4016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h.  */
4018
4019 int
4020 main ()
4021 {
4022 #ifndef __GNUC__
4023        choke me
4024 #endif
4025
4026   ;
4027   return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031   ac_compiler_gnu=yes
4032 else
4033   ac_compiler_gnu=no
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4037
4038 fi
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4040 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4041 if test $ac_compiler_gnu = yes; then
4042   GCC=yes
4043 else
4044   GCC=
4045 fi
4046 ac_test_CFLAGS=${CFLAGS+set}
4047 ac_save_CFLAGS=$CFLAGS
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4049 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4050 if ${ac_cv_prog_cc_g+:} false; then :
4051   $as_echo_n "(cached) " >&6
4052 else
4053   ac_save_c_werror_flag=$ac_c_werror_flag
4054    ac_c_werror_flag=yes
4055    ac_cv_prog_cc_g=no
4056    CFLAGS="-g"
4057    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h.  */
4059
4060 int
4061 main ()
4062 {
4063
4064   ;
4065   return 0;
4066 }
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069   ac_cv_prog_cc_g=yes
4070 else
4071   CFLAGS=""
4072       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h.  */
4074
4075 int
4076 main ()
4077 {
4078
4079   ;
4080   return 0;
4081 }
4082 _ACEOF
4083 if ac_fn_c_try_compile "$LINENO"; then :
4084
4085 else
4086   ac_c_werror_flag=$ac_save_c_werror_flag
4087          CFLAGS="-g"
4088          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h.  */
4090
4091 int
4092 main ()
4093 {
4094
4095   ;
4096   return 0;
4097 }
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100   ac_cv_prog_cc_g=yes
4101 fi
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 fi
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105 fi
4106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107    ac_c_werror_flag=$ac_save_c_werror_flag
4108 fi
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4110 $as_echo "$ac_cv_prog_cc_g" >&6; }
4111 if test "$ac_test_CFLAGS" = set; then
4112   CFLAGS=$ac_save_CFLAGS
4113 elif test $ac_cv_prog_cc_g = yes; then
4114   if test "$GCC" = yes; then
4115     CFLAGS="-g -O2"
4116   else
4117     CFLAGS="-g"
4118   fi
4119 else
4120   if test "$GCC" = yes; then
4121     CFLAGS="-O2"
4122   else
4123     CFLAGS=
4124   fi
4125 fi
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4127 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4128 if ${ac_cv_prog_cc_c89+:} false; then :
4129   $as_echo_n "(cached) " >&6
4130 else
4131   ac_cv_prog_cc_c89=no
4132 ac_save_CC=$CC
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h.  */
4135 #include <stdarg.h>
4136 #include <stdio.h>
4137 #include <sys/types.h>
4138 #include <sys/stat.h>
4139 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4140 struct buf { int x; };
4141 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4142 static char *e (p, i)
4143      char **p;
4144      int i;
4145 {
4146   return p[i];
4147 }
4148 static char *f (char * (*g) (char **, int), char **p, ...)
4149 {
4150   char *s;
4151   va_list v;
4152   va_start (v,p);
4153   s = g (p, va_arg (v,int));
4154   va_end (v);
4155   return s;
4156 }
4157
4158 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4159    function prototypes and stuff, but not '\xHH' hex character constants.
4160    These don't provoke an error unfortunately, instead are silently treated
4161    as 'x'.  The following induces an error, until -std is added to get
4162    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4163    array size at least.  It's necessary to write '\x00'==0 to get something
4164    that's true only with -std.  */
4165 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4166
4167 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4168    inside strings and character constants.  */
4169 #define FOO(x) 'x'
4170 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4171
4172 int test (int i, double x);
4173 struct s1 {int (*f) (int a);};
4174 struct s2 {int (*f) (double a);};
4175 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4176 int argc;
4177 char **argv;
4178 int
4179 main ()
4180 {
4181 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4187         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4188 do
4189   CC="$ac_save_CC $ac_arg"
4190   if ac_fn_c_try_compile "$LINENO"; then :
4191   ac_cv_prog_cc_c89=$ac_arg
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext
4194   test "x$ac_cv_prog_cc_c89" != "xno" && break
4195 done
4196 rm -f conftest.$ac_ext
4197 CC=$ac_save_CC
4198
4199 fi
4200 # AC_CACHE_VAL
4201 case "x$ac_cv_prog_cc_c89" in
4202   x)
4203     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4204 $as_echo "none needed" >&6; } ;;
4205   xno)
4206     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4207 $as_echo "unsupported" >&6; } ;;
4208   *)
4209     CC="$CC $ac_cv_prog_cc_c89"
4210     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4211 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4212 esac
4213 if test "x$ac_cv_prog_cc_c89" != xno; then :
4214
4215 fi
4216
4217 ac_ext=c
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222 DEPDIR="${am__leading_dot}deps"
4223
4224 ac_config_commands="$ac_config_commands depfiles"
4225
4226
4227 am_make=${MAKE-make}
4228 cat > confinc << 'END'
4229 am__doit:
4230         @echo this is the am__doit target
4231 .PHONY: am__doit
4232 END
4233 # If we don't find an include directive, just comment out the code.
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4235 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4236 am__include="#"
4237 am__quote=
4238 _am_result=none
4239 # First try GNU make style include.
4240 echo "include confinc" > confmf
4241 # Ignore all kinds of additional output from `make'.
4242 case `$am_make -s -f confmf 2> /dev/null` in #(
4243 *the\ am__doit\ target*)
4244   am__include=include
4245   am__quote=
4246   _am_result=GNU
4247   ;;
4248 esac
4249 # Now try BSD make style include.
4250 if test "$am__include" = "#"; then
4251    echo '.include "confinc"' > confmf
4252    case `$am_make -s -f confmf 2> /dev/null` in #(
4253    *the\ am__doit\ target*)
4254      am__include=.include
4255      am__quote="\""
4256      _am_result=BSD
4257      ;;
4258    esac
4259 fi
4260
4261
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4263 $as_echo "$_am_result" >&6; }
4264 rm -f confinc confmf
4265
4266 # Check whether --enable-dependency-tracking was given.
4267 if test "${enable_dependency_tracking+set}" = set; then :
4268   enableval=$enable_dependency_tracking;
4269 fi
4270
4271 if test "x$enable_dependency_tracking" != xno; then
4272   am_depcomp="$ac_aux_dir/depcomp"
4273   AMDEPBACKSLASH='\'
4274 fi
4275  if test "x$enable_dependency_tracking" != xno; then
4276   AMDEP_TRUE=
4277   AMDEP_FALSE='#'
4278 else
4279   AMDEP_TRUE='#'
4280   AMDEP_FALSE=
4281 fi
4282
4283
4284
4285 depcc="$CC"   am_compiler_list=
4286
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4288 $as_echo_n "checking dependency style of $depcc... " >&6; }
4289 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4290   $as_echo_n "(cached) " >&6
4291 else
4292   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4293   # We make a subdir and do the tests there.  Otherwise we can end up
4294   # making bogus files that we don't know about and never remove.  For
4295   # instance it was reported that on HP-UX the gcc test will end up
4296   # making a dummy file named `D' -- because `-MD' means `put the output
4297   # in D'.
4298   mkdir conftest.dir
4299   # Copy depcomp to subdir because otherwise we won't find it if we're
4300   # using a relative directory.
4301   cp "$am_depcomp" conftest.dir
4302   cd conftest.dir
4303   # We will build objects and dependencies in a subdirectory because
4304   # it helps to detect inapplicable dependency modes.  For instance
4305   # both Tru64's cc and ICC support -MD to output dependencies as a
4306   # side effect of compilation, but ICC will put the dependencies in
4307   # the current directory while Tru64 will put them in the object
4308   # directory.
4309   mkdir sub
4310
4311   am_cv_CC_dependencies_compiler_type=none
4312   if test "$am_compiler_list" = ""; then
4313      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4314   fi
4315   am__universal=false
4316   case " $depcc " in #(
4317      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4318      esac
4319
4320   for depmode in $am_compiler_list; do
4321     # Setup a source with many dependencies, because some compilers
4322     # like to wrap large dependency lists on column 80 (with \), and
4323     # we should not choose a depcomp mode which is confused by this.
4324     #
4325     # We need to recreate these files for each test, as the compiler may
4326     # overwrite some of them when testing with obscure command lines.
4327     # This happens at least with the AIX C compiler.
4328     : > sub/conftest.c
4329     for i in 1 2 3 4 5 6; do
4330       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4331       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4332       # Solaris 8's {/usr,}/bin/sh.
4333       touch sub/conftst$i.h
4334     done
4335     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4336
4337     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4338     # mode.  It turns out that the SunPro C++ compiler does not properly
4339     # handle `-M -o', and we need to detect this.  Also, some Intel
4340     # versions had trouble with output in subdirs
4341     am__obj=sub/conftest.${OBJEXT-o}
4342     am__minus_obj="-o $am__obj"
4343     case $depmode in
4344     gcc)
4345       # This depmode causes a compiler race in universal mode.
4346       test "$am__universal" = false || continue
4347       ;;
4348     nosideeffect)
4349       # after this tag, mechanisms are not by side-effect, so they'll
4350       # only be used when explicitly requested
4351       if test "x$enable_dependency_tracking" = xyes; then
4352         continue
4353       else
4354         break
4355       fi
4356       ;;
4357     msvisualcpp | msvcmsys)
4358       # This compiler won't grok `-c -o', but also, the minuso test has
4359       # not run yet.  These depmodes are late enough in the game, and
4360       # so weak that their functioning should not be impacted.
4361       am__obj=conftest.${OBJEXT-o}
4362       am__minus_obj=
4363       ;;
4364     none) break ;;
4365     esac
4366     if depmode=$depmode \
4367        source=sub/conftest.c object=$am__obj \
4368        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4369        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4370          >/dev/null 2>conftest.err &&
4371        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4372        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4373        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4374        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4375       # icc doesn't choke on unknown options, it will just issue warnings
4376       # or remarks (even with -Werror).  So we grep stderr for any message
4377       # that says an option was ignored or not supported.
4378       # When given -MP, icc 7.0 and 7.1 complain thusly:
4379       #   icc: Command line warning: ignoring option '-M'; no argument required
4380       # The diagnosis changed in icc 8.0:
4381       #   icc: Command line remark: option '-MP' not supported
4382       if (grep 'ignoring option' conftest.err ||
4383           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4384         am_cv_CC_dependencies_compiler_type=$depmode
4385         break
4386       fi
4387     fi
4388   done
4389
4390   cd ..
4391   rm -rf conftest.dir
4392 else
4393   am_cv_CC_dependencies_compiler_type=none
4394 fi
4395
4396 fi
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4398 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4399 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4400
4401  if
4402   test "x$enable_dependency_tracking" != xno \
4403   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4404   am__fastdepCC_TRUE=
4405   am__fastdepCC_FALSE='#'
4406 else
4407   am__fastdepCC_TRUE='#'
4408   am__fastdepCC_FALSE=
4409 fi
4410
4411
4412 ac_ext=c
4413 ac_cpp='$CPP $CPPFLAGS'
4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4418 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4419 # On Suns, sometimes $CPP names a directory.
4420 if test -n "$CPP" && test -d "$CPP"; then
4421   CPP=
4422 fi
4423 if test -z "$CPP"; then
4424   if ${ac_cv_prog_CPP+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427       # Double quotes because CPP needs to be expanded
4428     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4429     do
4430       ac_preproc_ok=false
4431 for ac_c_preproc_warn_flag in '' yes
4432 do
4433   # Use a header file that comes with gcc, so configuring glibc
4434   # with a fresh cross-compiler works.
4435   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4436   # <limits.h> exists even on freestanding compilers.
4437   # On the NeXT, cc -E runs the code through the compiler's parser,
4438   # not just through cpp. "Syntax error" is here to catch this case.
4439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4440 /* end confdefs.h.  */
4441 #ifdef __STDC__
4442 # include <limits.h>
4443 #else
4444 # include <assert.h>
4445 #endif
4446                      Syntax error
4447 _ACEOF
4448 if ac_fn_c_try_cpp "$LINENO"; then :
4449
4450 else
4451   # Broken: fails on valid input.
4452 continue
4453 fi
4454 rm -f conftest.err conftest.i conftest.$ac_ext
4455
4456   # OK, works on sane cases.  Now check whether nonexistent headers
4457   # can be detected and how.
4458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h.  */
4460 #include <ac_nonexistent.h>
4461 _ACEOF
4462 if ac_fn_c_try_cpp "$LINENO"; then :
4463   # Broken: success on invalid input.
4464 continue
4465 else
4466   # Passes both tests.
4467 ac_preproc_ok=:
4468 break
4469 fi
4470 rm -f conftest.err conftest.i conftest.$ac_ext
4471
4472 done
4473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4474 rm -f conftest.i conftest.err conftest.$ac_ext
4475 if $ac_preproc_ok; then :
4476   break
4477 fi
4478
4479     done
4480     ac_cv_prog_CPP=$CPP
4481
4482 fi
4483   CPP=$ac_cv_prog_CPP
4484 else
4485   ac_cv_prog_CPP=$CPP
4486 fi
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4488 $as_echo "$CPP" >&6; }
4489 ac_preproc_ok=false
4490 for ac_c_preproc_warn_flag in '' yes
4491 do
4492   # Use a header file that comes with gcc, so configuring glibc
4493   # with a fresh cross-compiler works.
4494   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4495   # <limits.h> exists even on freestanding compilers.
4496   # On the NeXT, cc -E runs the code through the compiler's parser,
4497   # not just through cpp. "Syntax error" is here to catch this case.
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500 #ifdef __STDC__
4501 # include <limits.h>
4502 #else
4503 # include <assert.h>
4504 #endif
4505                      Syntax error
4506 _ACEOF
4507 if ac_fn_c_try_cpp "$LINENO"; then :
4508
4509 else
4510   # Broken: fails on valid input.
4511 continue
4512 fi
4513 rm -f conftest.err conftest.i conftest.$ac_ext
4514
4515   # OK, works on sane cases.  Now check whether nonexistent headers
4516   # can be detected and how.
4517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h.  */
4519 #include <ac_nonexistent.h>
4520 _ACEOF
4521 if ac_fn_c_try_cpp "$LINENO"; then :
4522   # Broken: success on invalid input.
4523 continue
4524 else
4525   # Passes both tests.
4526 ac_preproc_ok=:
4527 break
4528 fi
4529 rm -f conftest.err conftest.i conftest.$ac_ext
4530
4531 done
4532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533 rm -f conftest.i conftest.err conftest.$ac_ext
4534 if $ac_preproc_ok; then :
4535
4536 else
4537   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4539 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4540 See \`config.log' for more details" "$LINENO" 5; }
4541 fi
4542
4543 ac_ext=c
4544 ac_cpp='$CPP $CPPFLAGS'
4545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4548
4549
4550  if test "$GCC" = "yes"; then
4551   HAVE_GCC_TRUE=
4552   HAVE_GCC_FALSE='#'
4553 else
4554   HAVE_GCC_TRUE='#'
4555   HAVE_GCC_FALSE=
4556 fi
4557
4558
4559 # Make sure we can run config.sub.
4560 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4561   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4562
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4564 $as_echo_n "checking build system type... " >&6; }
4565 if ${ac_cv_build+:} false; then :
4566   $as_echo_n "(cached) " >&6
4567 else
4568   ac_build_alias=$build_alias
4569 test "x$ac_build_alias" = x &&
4570   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4571 test "x$ac_build_alias" = x &&
4572   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4573 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4574   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4575
4576 fi
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4578 $as_echo "$ac_cv_build" >&6; }
4579 case $ac_cv_build in
4580 *-*-*) ;;
4581 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4582 esac
4583 build=$ac_cv_build
4584 ac_save_IFS=$IFS; IFS='-'
4585 set x $ac_cv_build
4586 shift
4587 build_cpu=$1
4588 build_vendor=$2
4589 shift; shift
4590 # Remember, the first character of IFS is used to create $*,
4591 # except with old shells:
4592 build_os=$*
4593 IFS=$ac_save_IFS
4594 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4595
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4598 $as_echo_n "checking host system type... " >&6; }
4599 if ${ac_cv_host+:} false; then :
4600   $as_echo_n "(cached) " >&6
4601 else
4602   if test "x$host_alias" = x; then
4603   ac_cv_host=$ac_cv_build
4604 else
4605   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4606     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4607 fi
4608
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4611 $as_echo "$ac_cv_host" >&6; }
4612 case $ac_cv_host in
4613 *-*-*) ;;
4614 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4615 esac
4616 host=$ac_cv_host
4617 ac_save_IFS=$IFS; IFS='-'
4618 set x $ac_cv_host
4619 shift
4620 host_cpu=$1
4621 host_vendor=$2
4622 shift; shift
4623 # Remember, the first character of IFS is used to create $*,
4624 # except with old shells:
4625 host_os=$*
4626 IFS=$ac_save_IFS
4627 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4628
4629
4630
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the BeOS" >&5
4632 $as_echo_n "checking for the BeOS... " >&6; }
4633 case $host in
4634   *-*-beos*)
4635     glib_native_beos="yes"
4636     ;;
4637   *)
4638     glib_native_beos="no"
4639     ;;
4640 esac
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_beos" >&5
4642 $as_echo "$glib_native_beos" >&6; }
4643
4644
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
4646 $as_echo_n "checking for Win32... " >&6; }
4647 LIB_EXE_MACHINE_FLAG=X86
4648 case "$host" in
4649   *-*-mingw*)
4650     glib_native_win32=yes
4651     glib_pid_type='void *'
4652     glib_cv_stack_grows=no
4653     # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf
4654     # don't seem to be quite good enough, at least not in mingw-runtime-3.14.
4655     # (Sorry, I don't know exactly what is the problem, but it is related to
4656     # floating point formatting and decimal point vs. comma.)
4657     # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't
4658     # rigorous enough to notice, though.
4659     # So preset the autoconf cache variables.
4660     ac_cv_func_vsnprintf_c99=no
4661     ac_cv_func_snprintf_c99=no
4662     case "$host" in
4663     x86_64-*-*)
4664       LIB_EXE_MACHINE_FLAG=X64
4665       ;;
4666     esac
4667     ;;
4668   *)
4669     glib_native_win32=no
4670     glib_pid_type=int
4671     ;;
4672 esac
4673 case $host in
4674   *-*-linux*)
4675     glib_os_linux=yes
4676     ;;
4677 esac
4678
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5
4680 $as_echo "$glib_native_win32" >&6; }
4681
4682
4683
4684 glib_have_carbon=no
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5
4686 $as_echo_n "checking for Mac OS X Carbon support... " >&6; }
4687
4688
4689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691
4692 #include <Carbon/Carbon.h>
4693 #include <CoreServices/CoreServices.h>
4694
4695 _ACEOF
4696 if ac_fn_c_try_cpp "$LINENO"; then :
4697   glib_have_carbon=yes
4698 fi
4699 rm -f conftest.err conftest.i conftest.$ac_ext
4700
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5
4702 $as_echo "$glib_have_carbon" >&6; }
4703
4704 glib_have_cocoa=no
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Cocoa support" >&5
4706 $as_echo_n "checking for Mac OS X Cocoa support... " >&6; }
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h.  */
4709
4710 #include <Cocoa/Cocoa.h>
4711 #ifdef GNUSTEP_BASE_VERSION
4712 #error "Detected GNUstep, not Cocoa"
4713 #endif
4714
4715 _ACEOF
4716 if ac_fn_c_try_cpp "$LINENO"; then :
4717   glib_have_cocoa=yes
4718 fi
4719 rm -f conftest.err conftest.i conftest.$ac_ext
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_cocoa" >&5
4722 $as_echo "$glib_have_cocoa" >&6; }
4723
4724  if test "$glib_native_win32" = "yes"; then
4725   OS_WIN32_TRUE=
4726   OS_WIN32_FALSE='#'
4727 else
4728   OS_WIN32_TRUE='#'
4729   OS_WIN32_FALSE=
4730 fi
4731
4732  if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
4733   OS_WIN32_X64_TRUE=
4734   OS_WIN32_X64_FALSE='#'
4735 else
4736   OS_WIN32_X64_TRUE='#'
4737   OS_WIN32_X64_FALSE=
4738 fi
4739
4740  if test "$glib_native_win32" != "yes"; then
4741   OS_UNIX_TRUE=
4742   OS_UNIX_FALSE='#'
4743 else
4744   OS_UNIX_TRUE='#'
4745   OS_UNIX_FALSE=
4746 fi
4747
4748  if test "$glib_os_linux" = "yes"; then
4749   OS_LINUX_TRUE=
4750   OS_LINUX_FALSE='#'
4751 else
4752   OS_LINUX_TRUE='#'
4753   OS_LINUX_FALSE=
4754 fi
4755
4756  if test "$glib_have_carbon" = "yes"; then
4757   OS_CARBON_TRUE=
4758   OS_CARBON_FALSE='#'
4759 else
4760   OS_CARBON_TRUE='#'
4761   OS_CARBON_FALSE=
4762 fi
4763
4764  if test "$glib_have_cocoa" = "yes"; then
4765   OS_COCOA_TRUE=
4766   OS_COCOA_FALSE='#'
4767 else
4768   OS_COCOA_TRUE='#'
4769   OS_COCOA_FALSE=
4770 fi
4771
4772
4773 if test "$glib_native_win32" = "yes"; then
4774   if test -n "$ac_tool_prefix"; then
4775   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4776 set dummy ${ac_tool_prefix}windres; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_prog_WINDRES+:} false; then :
4780   $as_echo_n "(cached) " >&6
4781 else
4782   if test -n "$WINDRES"; then
4783   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4787 do
4788   IFS=$as_save_IFS
4789   test -z "$as_dir" && as_dir=.
4790     for ac_exec_ext in '' $ac_executable_extensions; do
4791   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4793     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794     break 2
4795   fi
4796 done
4797   done
4798 IFS=$as_save_IFS
4799
4800 fi
4801 fi
4802 WINDRES=$ac_cv_prog_WINDRES
4803 if test -n "$WINDRES"; then
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4805 $as_echo "$WINDRES" >&6; }
4806 else
4807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4809 fi
4810
4811
4812 fi
4813 if test -z "$ac_cv_prog_WINDRES"; then
4814   ac_ct_WINDRES=$WINDRES
4815   # Extract the first word of "windres", so it can be a program name with args.
4816 set dummy windres; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
4820   $as_echo_n "(cached) " >&6
4821 else
4822   if test -n "$ac_ct_WINDRES"; then
4823   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830     for ac_exec_ext in '' $ac_executable_extensions; do
4831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832     ac_cv_prog_ac_ct_WINDRES="windres"
4833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834     break 2
4835   fi
4836 done
4837   done
4838 IFS=$as_save_IFS
4839
4840 fi
4841 fi
4842 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4843 if test -n "$ac_ct_WINDRES"; then
4844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
4845 $as_echo "$ac_ct_WINDRES" >&6; }
4846 else
4847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4849 fi
4850
4851   if test "x$ac_ct_WINDRES" = x; then
4852     WINDRES="no"
4853   else
4854     case $cross_compiling:$ac_tool_warned in
4855 yes:)
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4858 ac_tool_warned=yes ;;
4859 esac
4860     WINDRES=$ac_ct_WINDRES
4861   fi
4862 else
4863   WINDRES="$ac_cv_prog_WINDRES"
4864 fi
4865
4866   if test "$WINDRES" = no; then
4867     as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
4868   fi
4869   if test -n "$ac_tool_prefix"; then
4870   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}nm; ac_word=$2
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4873 $as_echo_n "checking for $ac_word... " >&6; }
4874 if ${ac_cv_prog_NM+:} false; then :
4875   $as_echo_n "(cached) " >&6
4876 else
4877   if test -n "$NM"; then
4878   ac_cv_prog_NM="$NM" # Let the user override the test.
4879 else
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881 for as_dir in $PATH
4882 do
4883   IFS=$as_save_IFS
4884   test -z "$as_dir" && as_dir=.
4885     for ac_exec_ext in '' $ac_executable_extensions; do
4886   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4887     ac_cv_prog_NM="${ac_tool_prefix}nm"
4888     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4889     break 2
4890   fi
4891 done
4892   done
4893 IFS=$as_save_IFS
4894
4895 fi
4896 fi
4897 NM=$ac_cv_prog_NM
4898 if test -n "$NM"; then
4899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
4900 $as_echo "$NM" >&6; }
4901 else
4902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4903 $as_echo "no" >&6; }
4904 fi
4905
4906
4907 fi
4908 if test -z "$ac_cv_prog_NM"; then
4909   ac_ct_NM=$NM
4910   # Extract the first word of "nm", so it can be a program name with args.
4911 set dummy nm; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_ac_ct_NM+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -n "$ac_ct_NM"; then
4918   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     ac_cv_prog_ac_ct_NM="nm"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4938 if test -n "$ac_ct_NM"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
4940 $as_echo "$ac_ct_NM" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946   if test "x$ac_ct_NM" = x; then
4947     NM="no"
4948   else
4949     case $cross_compiling:$ac_tool_warned in
4950 yes:)
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4953 ac_tool_warned=yes ;;
4954 esac
4955     NM=$ac_ct_NM
4956   fi
4957 else
4958   NM="$ac_cv_prog_NM"
4959 fi
4960
4961   if test "$NM" = no; then
4962     as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
4963   fi
4964   if test -n "$ac_tool_prefix"; then
4965   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_RANLIB+:} false; then :
4970   $as_echo_n "(cached) " >&6
4971 else
4972   if test -n "$RANLIB"; then
4973   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978   IFS=$as_save_IFS
4979   test -z "$as_dir" && as_dir=.
4980     for ac_exec_ext in '' $ac_executable_extensions; do
4981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984     break 2
4985   fi
4986 done
4987   done
4988 IFS=$as_save_IFS
4989
4990 fi
4991 fi
4992 RANLIB=$ac_cv_prog_RANLIB
4993 if test -n "$RANLIB"; then
4994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4995 $as_echo "$RANLIB" >&6; }
4996 else
4997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
4999 fi
5000
5001
5002 fi
5003 if test -z "$ac_cv_prog_RANLIB"; then
5004   ac_ct_RANLIB=$RANLIB
5005   # Extract the first word of "ranlib", so it can be a program name with args.
5006 set dummy ranlib; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5010   $as_echo_n "(cached) " >&6
5011 else
5012   if test -n "$ac_ct_RANLIB"; then
5013   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018   IFS=$as_save_IFS
5019   test -z "$as_dir" && as_dir=.
5020     for ac_exec_ext in '' $ac_executable_extensions; do
5021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022     ac_cv_prog_ac_ct_RANLIB="ranlib"
5023     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024     break 2
5025   fi
5026 done
5027   done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5033 if test -n "$ac_ct_RANLIB"; then
5034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5035 $as_echo "$ac_ct_RANLIB" >&6; }
5036 else
5037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5039 fi
5040
5041   if test "x$ac_ct_RANLIB" = x; then
5042     RANLIB=":"
5043   else
5044     case $cross_compiling:$ac_tool_warned in
5045 yes:)
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048 ac_tool_warned=yes ;;
5049 esac
5050     RANLIB=$ac_ct_RANLIB
5051   fi
5052 else
5053   RANLIB="$ac_cv_prog_RANLIB"
5054 fi
5055
5056   # Extract the first word of "lib.exe", so it can be a program name with args.
5057 set dummy lib.exe; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if ${ac_cv_prog_ms_librarian+:} false; then :
5061   $as_echo_n "(cached) " >&6
5062 else
5063   if test -n "$ms_librarian"; then
5064   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_ms_librarian="yes"
5074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078   done
5079 IFS=$as_save_IFS
5080
5081   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
5082 fi
5083 fi
5084 ms_librarian=$ac_cv_prog_ms_librarian
5085 if test -n "$ms_librarian"; then
5086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
5087 $as_echo "$ms_librarian" >&6; }
5088 else
5089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5091 fi
5092
5093
5094 fi
5095  if test x$ms_librarian = xyes; then
5096   MS_LIB_AVAILABLE_TRUE=
5097   MS_LIB_AVAILABLE_FALSE='#'
5098 else
5099   MS_LIB_AVAILABLE_TRUE='#'
5100   MS_LIB_AVAILABLE_FALSE=
5101 fi
5102
5103
5104 if test "$glib_native_win32" != yes; then
5105     # libtool option to control which symbols are exported
5106     # right now, symbols starting with _ are not exported
5107     LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
5108 else
5109     # We currently use .def files on Windows
5110     LIBTOOL_EXPORT_OPTIONS=
5111 fi
5112
5113
5114 if test "x$glib_have_carbon" = "xyes"; then
5115
5116 $as_echo "#define HAVE_CARBON 1" >>confdefs.h
5117
5118   LDFLAGS="$LDFLAGS -framework Carbon"
5119 fi
5120
5121 if test "x$glib_have_cocoa" = "xyes"; then
5122
5123 $as_echo "#define HAVE_COCOA 1" >>confdefs.h
5124
5125   LDFLAGS="$LDFLAGS -framework Foundation"
5126 fi
5127
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5129 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5130 if ${ac_cv_path_GREP+:} false; then :
5131   $as_echo_n "(cached) " >&6
5132 else
5133   if test -z "$GREP"; then
5134   ac_path_GREP_found=false
5135   # Loop through the user's path and test for each of PROGNAME-LIST
5136   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5138 do
5139   IFS=$as_save_IFS
5140   test -z "$as_dir" && as_dir=.
5141     for ac_prog in grep ggrep; do
5142     for ac_exec_ext in '' $ac_executable_extensions; do
5143       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5144       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5145 # Check for GNU ac_path_GREP and select it if it is found.
5146   # Check for GNU $ac_path_GREP
5147 case `"$ac_path_GREP" --version 2>&1` in
5148 *GNU*)
5149   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5150 *)
5151   ac_count=0
5152   $as_echo_n 0123456789 >"conftest.in"
5153   while :
5154   do
5155     cat "conftest.in" "conftest.in" >"conftest.tmp"
5156     mv "conftest.tmp" "conftest.in"
5157     cp "conftest.in" "conftest.nl"
5158     $as_echo 'GREP' >> "conftest.nl"
5159     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5160     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5161     as_fn_arith $ac_count + 1 && ac_count=$as_val
5162     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5163       # Best one so far, save it but keep looking for a better one
5164       ac_cv_path_GREP="$ac_path_GREP"
5165       ac_path_GREP_max=$ac_count
5166     fi
5167     # 10*(2^10) chars as input seems more than enough
5168     test $ac_count -gt 10 && break
5169   done
5170   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5171 esac
5172
5173       $ac_path_GREP_found && break 3
5174     done
5175   done
5176   done
5177 IFS=$as_save_IFS
5178   if test -z "$ac_cv_path_GREP"; then
5179     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5180   fi
5181 else
5182   ac_cv_path_GREP=$GREP
5183 fi
5184
5185 fi
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5187 $as_echo "$ac_cv_path_GREP" >&6; }
5188  GREP="$ac_cv_path_GREP"
5189
5190
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5192 $as_echo_n "checking for egrep... " >&6; }
5193 if ${ac_cv_path_EGREP+:} false; then :
5194   $as_echo_n "(cached) " >&6
5195 else
5196   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5197    then ac_cv_path_EGREP="$GREP -E"
5198    else
5199      if test -z "$EGREP"; then
5200   ac_path_EGREP_found=false
5201   # Loop through the user's path and test for each of PROGNAME-LIST
5202   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5204 do
5205   IFS=$as_save_IFS
5206   test -z "$as_dir" && as_dir=.
5207     for ac_prog in egrep; do
5208     for ac_exec_ext in '' $ac_executable_extensions; do
5209       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5210       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5211 # Check for GNU ac_path_EGREP and select it if it is found.
5212   # Check for GNU $ac_path_EGREP
5213 case `"$ac_path_EGREP" --version 2>&1` in
5214 *GNU*)
5215   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5216 *)
5217   ac_count=0
5218   $as_echo_n 0123456789 >"conftest.in"
5219   while :
5220   do
5221     cat "conftest.in" "conftest.in" >"conftest.tmp"
5222     mv "conftest.tmp" "conftest.in"
5223     cp "conftest.in" "conftest.nl"
5224     $as_echo 'EGREP' >> "conftest.nl"
5225     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5226     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5227     as_fn_arith $ac_count + 1 && ac_count=$as_val
5228     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5229       # Best one so far, save it but keep looking for a better one
5230       ac_cv_path_EGREP="$ac_path_EGREP"
5231       ac_path_EGREP_max=$ac_count
5232     fi
5233     # 10*(2^10) chars as input seems more than enough
5234     test $ac_count -gt 10 && break
5235   done
5236   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5237 esac
5238
5239       $ac_path_EGREP_found && break 3
5240     done
5241   done
5242   done
5243 IFS=$as_save_IFS
5244   if test -z "$ac_cv_path_EGREP"; then
5245     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5246   fi
5247 else
5248   ac_cv_path_EGREP=$EGREP
5249 fi
5250
5251    fi
5252 fi
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5254 $as_echo "$ac_cv_path_EGREP" >&6; }
5255  EGREP="$ac_cv_path_EGREP"
5256
5257
5258
5259     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5260 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5261 if ${ac_cv_gnu_library_2_1+:} false; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265 /* end confdefs.h.  */
5266
5267 #include <features.h>
5268 #ifdef __GNU_LIBRARY__
5269  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5270   Lucky GNU user
5271  #endif
5272 #endif
5273
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5277   ac_cv_gnu_library_2_1=yes
5278 else
5279   ac_cv_gnu_library_2_1=no
5280 fi
5281 rm -f conftest*
5282
5283
5284
5285 fi
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5287 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
5288
5289     GLIBC21="$ac_cv_gnu_library_2_1"
5290
5291
5292 if test "x$GLIBC21" = "xyes"; then
5293
5294 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5295
5296 fi
5297
5298 # Check whether --enable-debug was given.
5299 if test "${enable_debug+set}" = set; then :
5300   enableval=$enable_debug;
5301 else
5302   enable_debug=minimum
5303 fi
5304
5305
5306 # Check whether --enable-gc_friendly was given.
5307 if test "${enable_gc_friendly+set}" = set; then :
5308   enableval=$enable_gc_friendly;
5309 else
5310   enable_gc_friendly=no
5311 fi
5312
5313 # Check whether --enable-mem_pools was given.
5314 if test "${enable_mem_pools+set}" = set; then :
5315   enableval=$enable_mem_pools;
5316 else
5317   disable_mem_pools=no
5318 fi
5319
5320 # Check whether --enable-rebuilds was given.
5321 if test "${enable_rebuilds+set}" = set; then :
5322   enableval=$enable_rebuilds;
5323 else
5324   enable_rebuilds=yes
5325 fi
5326
5327
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5
5329 $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; }
5330 if test "x$enable_gc_friendly" = "xyes"; then
5331
5332 $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h
5333
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5335 $as_echo "yes" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5
5342 $as_echo_n "checking whether to disable memory pools... " >&6; }
5343 if test "x$disable_mem_pools" = "xno"; then
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 else
5347
5348 $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h
5349
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5351 $as_echo "yes" >&6; }
5352 fi
5353
5354
5355 # Check whether --with-runtime-libdir was given.
5356 if test "${with_runtime_libdir+set}" = set; then :
5357   withval=$with_runtime_libdir;
5358 else
5359   with_runtime_libdir=""
5360 fi
5361
5362 GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
5363 ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
5364
5365
5366  if test "x$with_runtime_libdir" != "x"; then
5367   HAVE_GLIB_RUNTIME_LIBDIR_TRUE=
5368   HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#'
5369 else
5370   HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#'
5371   HAVE_GLIB_RUNTIME_LIBDIR_FALSE=
5372 fi
5373
5374
5375 if test -n "$ac_tool_prefix"; then
5376   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5377   do
5378     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5381 $as_echo_n "checking for $ac_word... " >&6; }
5382 if ${ac_cv_prog_CXX+:} false; then :
5383   $as_echo_n "(cached) " >&6
5384 else
5385   if test -n "$CXX"; then
5386   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5387 else
5388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5395     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402
5403 fi
5404 fi
5405 CXX=$ac_cv_prog_CXX
5406 if test -n "$CXX"; then
5407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5408 $as_echo "$CXX" >&6; }
5409 else
5410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5412 fi
5413
5414
5415     test -n "$CXX" && break
5416   done
5417 fi
5418 if test -z "$CXX"; then
5419   ac_ct_CXX=$CXX
5420   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5421 do
5422   # Extract the first word of "$ac_prog", so it can be a program name with args.
5423 set dummy $ac_prog; ac_word=$2
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5425 $as_echo_n "checking for $ac_word... " >&6; }
5426 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   if test -n "$ac_ct_CXX"; then
5430   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5431 else
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH
5434 do
5435   IFS=$as_save_IFS
5436   test -z "$as_dir" && as_dir=.
5437     for ac_exec_ext in '' $ac_executable_extensions; do
5438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5439     ac_cv_prog_ac_ct_CXX="$ac_prog"
5440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5441     break 2
5442   fi
5443 done
5444   done
5445 IFS=$as_save_IFS
5446
5447 fi
5448 fi
5449 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5450 if test -n "$ac_ct_CXX"; then
5451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5452 $as_echo "$ac_ct_CXX" >&6; }
5453 else
5454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5455 $as_echo "no" >&6; }
5456 fi
5457
5458
5459   test -n "$ac_ct_CXX" && break
5460 done
5461
5462   if test "x$ac_ct_CXX" = x; then
5463     CXX="gcc"
5464   else
5465     case $cross_compiling:$ac_tool_warned in
5466 yes:)
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5469 ac_tool_warned=yes ;;
5470 esac
5471     CXX=$ac_ct_CXX
5472   fi
5473 fi
5474
5475
5476 ac_ext=cpp
5477 ac_cpp='$CXXCPP $CPPFLAGS'
5478 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5479 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5480 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5481
5482 ac_ext=cpp
5483 ac_cpp='$CXXCPP $CPPFLAGS'
5484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5487 if test -z "$CXX"; then
5488   if test -n "$CCC"; then
5489     CXX=$CCC
5490   else
5491     if test -n "$ac_tool_prefix"; then
5492   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5493   do
5494     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5497 $as_echo_n "checking for $ac_word... " >&6; }
5498 if ${ac_cv_prog_CXX+:} false; then :
5499   $as_echo_n "(cached) " >&6
5500 else
5501   if test -n "$CXX"; then
5502   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5503 else
5504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505 for as_dir in $PATH
5506 do
5507   IFS=$as_save_IFS
5508   test -z "$as_dir" && as_dir=.
5509     for ac_exec_ext in '' $ac_executable_extensions; do
5510   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5511     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5512     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513     break 2
5514   fi
5515 done
5516   done
5517 IFS=$as_save_IFS
5518
5519 fi
5520 fi
5521 CXX=$ac_cv_prog_CXX
5522 if test -n "$CXX"; then
5523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5524 $as_echo "$CXX" >&6; }
5525 else
5526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5527 $as_echo "no" >&6; }
5528 fi
5529
5530
5531     test -n "$CXX" && break
5532   done
5533 fi
5534 if test -z "$CXX"; then
5535   ac_ct_CXX=$CXX
5536   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5537 do
5538   # Extract the first word of "$ac_prog", so it can be a program name with args.
5539 set dummy $ac_prog; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5543   $as_echo_n "(cached) " >&6
5544 else
5545   if test -n "$ac_ct_CXX"; then
5546   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5547 else
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553     for ac_exec_ext in '' $ac_executable_extensions; do
5554   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555     ac_cv_prog_ac_ct_CXX="$ac_prog"
5556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5557     break 2
5558   fi
5559 done
5560   done
5561 IFS=$as_save_IFS
5562
5563 fi
5564 fi
5565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5566 if test -n "$ac_ct_CXX"; then
5567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5568 $as_echo "$ac_ct_CXX" >&6; }
5569 else
5570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5572 fi
5573
5574
5575   test -n "$ac_ct_CXX" && break
5576 done
5577
5578   if test "x$ac_ct_CXX" = x; then
5579     CXX="g++"
5580   else
5581     case $cross_compiling:$ac_tool_warned in
5582 yes:)
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned=yes ;;
5586 esac
5587     CXX=$ac_ct_CXX
5588   fi
5589 fi
5590
5591   fi
5592 fi
5593 # Provide some information about the compiler.
5594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5595 set X $ac_compile
5596 ac_compiler=$2
5597 for ac_option in --version -v -V -qversion; do
5598   { { ac_try="$ac_compiler $ac_option >&5"
5599 case "(($ac_try" in
5600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5601   *) ac_try_echo=$ac_try;;
5602 esac
5603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5604 $as_echo "$ac_try_echo"; } >&5
5605   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5606   ac_status=$?
5607   if test -s conftest.err; then
5608     sed '10a\
5609 ... rest of stderr output deleted ...
5610          10q' conftest.err >conftest.er1
5611     cat conftest.er1 >&5
5612   fi
5613   rm -f conftest.er1 conftest.err
5614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5615   test $ac_status = 0; }
5616 done
5617
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5620 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5621   $as_echo_n "(cached) " >&6
5622 else
5623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5624 /* end confdefs.h.  */
5625
5626 int
5627 main ()
5628 {
5629 #ifndef __GNUC__
5630        choke me
5631 #endif
5632
5633   ;
5634   return 0;
5635 }
5636 _ACEOF
5637 if ac_fn_cxx_try_compile "$LINENO"; then :
5638   ac_compiler_gnu=yes
5639 else
5640   ac_compiler_gnu=no
5641 fi
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5644
5645 fi
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5647 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5648 if test $ac_compiler_gnu = yes; then
5649   GXX=yes
5650 else
5651   GXX=
5652 fi
5653 ac_test_CXXFLAGS=${CXXFLAGS+set}
5654 ac_save_CXXFLAGS=$CXXFLAGS
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5656 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5657 if ${ac_cv_prog_cxx_g+:} false; then :
5658   $as_echo_n "(cached) " >&6
5659 else
5660   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5661    ac_cxx_werror_flag=yes
5662    ac_cv_prog_cxx_g=no
5663    CXXFLAGS="-g"
5664    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h.  */
5666
5667 int
5668 main ()
5669 {
5670
5671   ;
5672   return 0;
5673 }
5674 _ACEOF
5675 if ac_fn_cxx_try_compile "$LINENO"; then :
5676   ac_cv_prog_cxx_g=yes
5677 else
5678   CXXFLAGS=""
5679       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680 /* end confdefs.h.  */
5681
5682 int
5683 main ()
5684 {
5685
5686   ;
5687   return 0;
5688 }
5689 _ACEOF
5690 if ac_fn_cxx_try_compile "$LINENO"; then :
5691
5692 else
5693   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5694          CXXFLAGS="-g"
5695          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h.  */
5697
5698 int
5699 main ()
5700 {
5701
5702   ;
5703   return 0;
5704 }
5705 _ACEOF
5706 if ac_fn_cxx_try_compile "$LINENO"; then :
5707   ac_cv_prog_cxx_g=yes
5708 fi
5709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5710 fi
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 fi
5713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5714    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5715 fi
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5717 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5718 if test "$ac_test_CXXFLAGS" = set; then
5719   CXXFLAGS=$ac_save_CXXFLAGS
5720 elif test $ac_cv_prog_cxx_g = yes; then
5721   if test "$GXX" = yes; then
5722     CXXFLAGS="-g -O2"
5723   else
5724     CXXFLAGS="-g"
5725   fi
5726 else
5727   if test "$GXX" = yes; then
5728     CXXFLAGS="-O2"
5729   else
5730     CXXFLAGS=
5731   fi
5732 fi
5733 ac_ext=cpp
5734 ac_cpp='$CXXCPP $CPPFLAGS'
5735 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5738
5739 depcc="$CXX"  am_compiler_list=
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5742 $as_echo_n "checking dependency style of $depcc... " >&6; }
5743 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5747   # We make a subdir and do the tests there.  Otherwise we can end up
5748   # making bogus files that we don't know about and never remove.  For
5749   # instance it was reported that on HP-UX the gcc test will end up
5750   # making a dummy file named `D' -- because `-MD' means `put the output
5751   # in D'.
5752   mkdir conftest.dir
5753   # Copy depcomp to subdir because otherwise we won't find it if we're
5754   # using a relative directory.
5755   cp "$am_depcomp" conftest.dir
5756   cd conftest.dir
5757   # We will build objects and dependencies in a subdirectory because
5758   # it helps to detect inapplicable dependency modes.  For instance
5759   # both Tru64's cc and ICC support -MD to output dependencies as a
5760   # side effect of compilation, but ICC will put the dependencies in
5761   # the current directory while Tru64 will put them in the object
5762   # directory.
5763   mkdir sub
5764
5765   am_cv_CXX_dependencies_compiler_type=none
5766   if test "$am_compiler_list" = ""; then
5767      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5768   fi
5769   am__universal=false
5770   case " $depcc " in #(
5771      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5772      esac
5773
5774   for depmode in $am_compiler_list; do
5775     # Setup a source with many dependencies, because some compilers
5776     # like to wrap large dependency lists on column 80 (with \), and
5777     # we should not choose a depcomp mode which is confused by this.
5778     #
5779     # We need to recreate these files for each test, as the compiler may
5780     # overwrite some of them when testing with obscure command lines.
5781     # This happens at least with the AIX C compiler.
5782     : > sub/conftest.c
5783     for i in 1 2 3 4 5 6; do
5784       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5785       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5786       # Solaris 8's {/usr,}/bin/sh.
5787       touch sub/conftst$i.h
5788     done
5789     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5790
5791     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5792     # mode.  It turns out that the SunPro C++ compiler does not properly
5793     # handle `-M -o', and we need to detect this.  Also, some Intel
5794     # versions had trouble with output in subdirs
5795     am__obj=sub/conftest.${OBJEXT-o}
5796     am__minus_obj="-o $am__obj"
5797     case $depmode in
5798     gcc)
5799       # This depmode causes a compiler race in universal mode.
5800       test "$am__universal" = false || continue
5801       ;;
5802     nosideeffect)
5803       # after this tag, mechanisms are not by side-effect, so they'll
5804       # only be used when explicitly requested
5805       if test "x$enable_dependency_tracking" = xyes; then
5806         continue
5807       else
5808         break
5809       fi
5810       ;;
5811     msvisualcpp | msvcmsys)
5812       # This compiler won't grok `-c -o', but also, the minuso test has
5813       # not run yet.  These depmodes are late enough in the game, and
5814       # so weak that their functioning should not be impacted.
5815       am__obj=conftest.${OBJEXT-o}
5816       am__minus_obj=
5817       ;;
5818     none) break ;;
5819     esac
5820     if depmode=$depmode \
5821        source=sub/conftest.c object=$am__obj \
5822        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5823        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5824          >/dev/null 2>conftest.err &&
5825        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5826        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5827        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5828        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5829       # icc doesn't choke on unknown options, it will just issue warnings
5830       # or remarks (even with -Werror).  So we grep stderr for any message
5831       # that says an option was ignored or not supported.
5832       # When given -MP, icc 7.0 and 7.1 complain thusly:
5833       #   icc: Command line warning: ignoring option '-M'; no argument required
5834       # The diagnosis changed in icc 8.0:
5835       #   icc: Command line remark: option '-MP' not supported
5836       if (grep 'ignoring option' conftest.err ||
5837           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5838         am_cv_CXX_dependencies_compiler_type=$depmode
5839         break
5840       fi
5841     fi
5842   done
5843
5844   cd ..
5845   rm -rf conftest.dir
5846 else
5847   am_cv_CXX_dependencies_compiler_type=none
5848 fi
5849
5850 fi
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5852 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5853 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5854
5855  if
5856   test "x$enable_dependency_tracking" != xno \
5857   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5858   am__fastdepCXX_TRUE=
5859   am__fastdepCXX_FALSE='#'
5860 else
5861   am__fastdepCXX_TRUE='#'
5862   am__fastdepCXX_FALSE=
5863 fi
5864
5865
5866
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h.  */
5869
5870 int
5871 main ()
5872 {
5873 class a { int b; } c;
5874   ;
5875   return 0;
5876 }
5877 _ACEOF
5878 if ac_fn_cxx_try_compile "$LINENO"; then :
5879
5880 else
5881   CXX=
5882 fi
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884  if test "$CXX" != ""; then
5885   HAVE_CXX_TRUE=
5886   HAVE_CXX_FALSE='#'
5887 else
5888   HAVE_CXX_TRUE='#'
5889   HAVE_CXX_FALSE=
5890 fi
5891
5892 ac_ext=c
5893 ac_cpp='$CPP $CPPFLAGS'
5894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5897
5898
5899 ac_ext=c
5900 ac_cpp='$CPP $CPPFLAGS'
5901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5904 if test -n "$ac_tool_prefix"; then
5905   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5906 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_CC+:} false; then :
5910   $as_echo_n "(cached) " >&6
5911 else
5912   if test -n "$CC"; then
5913   ac_cv_prog_CC="$CC" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918   IFS=$as_save_IFS
5919   test -z "$as_dir" && as_dir=.
5920     for ac_exec_ext in '' $ac_executable_extensions; do
5921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5922     ac_cv_prog_CC="${ac_tool_prefix}gcc"
5923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924     break 2
5925   fi
5926 done
5927   done
5928 IFS=$as_save_IFS
5929
5930 fi
5931 fi
5932 CC=$ac_cv_prog_CC
5933 if test -n "$CC"; then
5934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5935 $as_echo "$CC" >&6; }
5936 else
5937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5940
5941
5942 fi
5943 if test -z "$ac_cv_prog_CC"; then
5944   ac_ct_CC=$CC
5945   # Extract the first word of "gcc", so it can be a program name with args.
5946 set dummy gcc; ac_word=$2
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5948 $as_echo_n "checking for $ac_word... " >&6; }
5949 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5950   $as_echo_n "(cached) " >&6
5951 else
5952   if test -n "$ac_ct_CC"; then
5953   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5954 else
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH
5957 do
5958   IFS=$as_save_IFS
5959   test -z "$as_dir" && as_dir=.
5960     for ac_exec_ext in '' $ac_executable_extensions; do
5961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5962     ac_cv_prog_ac_ct_CC="gcc"
5963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5964     break 2
5965   fi
5966 done
5967   done
5968 IFS=$as_save_IFS
5969
5970 fi
5971 fi
5972 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5973 if test -n "$ac_ct_CC"; then
5974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5975 $as_echo "$ac_ct_CC" >&6; }
5976 else
5977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5978 $as_echo "no" >&6; }
5979 fi
5980
5981   if test "x$ac_ct_CC" = x; then
5982     CC=""
5983   else
5984     case $cross_compiling:$ac_tool_warned in
5985 yes:)
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5988 ac_tool_warned=yes ;;
5989 esac
5990     CC=$ac_ct_CC
5991   fi
5992 else
5993   CC="$ac_cv_prog_CC"
5994 fi
5995
5996 if test -z "$CC"; then
5997           if test -n "$ac_tool_prefix"; then
5998     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5999 set dummy ${ac_tool_prefix}cc; ac_word=$2
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6001 $as_echo_n "checking for $ac_word... " >&6; }
6002 if ${ac_cv_prog_CC+:} false; then :
6003   $as_echo_n "(cached) " >&6
6004 else
6005   if test -n "$CC"; then
6006   ac_cv_prog_CC="$CC" # Let the user override the test.
6007 else
6008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 for as_dir in $PATH
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013     for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_prog_CC="${ac_tool_prefix}cc"
6016     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020   done
6021 IFS=$as_save_IFS
6022
6023 fi
6024 fi
6025 CC=$ac_cv_prog_CC
6026 if test -n "$CC"; then
6027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6028 $as_echo "$CC" >&6; }
6029 else
6030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6031 $as_echo "no" >&6; }
6032 fi
6033
6034
6035   fi
6036 fi
6037 if test -z "$CC"; then
6038   # Extract the first word of "cc", so it can be a program name with args.
6039 set dummy cc; ac_word=$2
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041 $as_echo_n "checking for $ac_word... " >&6; }
6042 if ${ac_cv_prog_CC+:} false; then :
6043   $as_echo_n "(cached) " >&6
6044 else
6045   if test -n "$CC"; then
6046   ac_cv_prog_CC="$CC" # Let the user override the test.
6047 else
6048   ac_prog_rejected=no
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054     for ac_exec_ext in '' $ac_executable_extensions; do
6055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6057        ac_prog_rejected=yes
6058        continue
6059      fi
6060     ac_cv_prog_CC="cc"
6061     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6062     break 2
6063   fi
6064 done
6065   done
6066 IFS=$as_save_IFS
6067
6068 if test $ac_prog_rejected = yes; then
6069   # We found a bogon in the path, so make sure we never use it.
6070   set dummy $ac_cv_prog_CC
6071   shift
6072   if test $# != 0; then
6073     # We chose a different compiler from the bogus one.
6074     # However, it has the same basename, so the bogon will be chosen
6075     # first if we set CC to just the basename; use the full file name.
6076     shift
6077     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6078   fi
6079 fi
6080 fi
6081 fi
6082 CC=$ac_cv_prog_CC
6083 if test -n "$CC"; then
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6085 $as_echo "$CC" >&6; }
6086 else
6087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 $as_echo "no" >&6; }
6089 fi
6090
6091
6092 fi
6093 if test -z "$CC"; then
6094   if test -n "$ac_tool_prefix"; then
6095   for ac_prog in cl.exe
6096   do
6097     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6100 $as_echo_n "checking for $ac_word... " >&6; }
6101 if ${ac_cv_prog_CC+:} false; then :
6102   $as_echo_n "(cached) " >&6
6103 else
6104   if test -n "$CC"; then
6105   ac_cv_prog_CC="$CC" # Let the user override the test.
6106 else
6107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6108 for as_dir in $PATH
6109 do
6110   IFS=$as_save_IFS
6111   test -z "$as_dir" && as_dir=.
6112     for ac_exec_ext in '' $ac_executable_extensions; do
6113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6114     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6116     break 2
6117   fi
6118 done
6119   done
6120 IFS=$as_save_IFS
6121
6122 fi
6123 fi
6124 CC=$ac_cv_prog_CC
6125 if test -n "$CC"; then
6126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6127 $as_echo "$CC" >&6; }
6128 else
6129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6130 $as_echo "no" >&6; }
6131 fi
6132
6133
6134     test -n "$CC" && break
6135   done
6136 fi
6137 if test -z "$CC"; then
6138   ac_ct_CC=$CC
6139   for ac_prog in cl.exe
6140 do
6141   # Extract the first word of "$ac_prog", so it can be a program name with args.
6142 set dummy $ac_prog; ac_word=$2
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6144 $as_echo_n "checking for $ac_word... " >&6; }
6145 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6146   $as_echo_n "(cached) " >&6
6147 else
6148   if test -n "$ac_ct_CC"; then
6149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6150 else
6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6152 for as_dir in $PATH
6153 do
6154   IFS=$as_save_IFS
6155   test -z "$as_dir" && as_dir=.
6156     for ac_exec_ext in '' $ac_executable_extensions; do
6157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6158     ac_cv_prog_ac_ct_CC="$ac_prog"
6159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6160     break 2
6161   fi
6162 done
6163   done
6164 IFS=$as_save_IFS
6165
6166 fi
6167 fi
6168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6169 if test -n "$ac_ct_CC"; then
6170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6171 $as_echo "$ac_ct_CC" >&6; }
6172 else
6173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6174 $as_echo "no" >&6; }
6175 fi
6176
6177
6178   test -n "$ac_ct_CC" && break
6179 done
6180
6181   if test "x$ac_ct_CC" = x; then
6182     CC=""
6183   else
6184     case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190     CC=$ac_ct_CC
6191   fi
6192 fi
6193
6194 fi
6195
6196
6197 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6199 as_fn_error $? "no acceptable C compiler found in \$PATH
6200 See \`config.log' for more details" "$LINENO" 5; }
6201
6202 # Provide some information about the compiler.
6203 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6204 set X $ac_compile
6205 ac_compiler=$2
6206 for ac_option in --version -v -V -qversion; do
6207   { { ac_try="$ac_compiler $ac_option >&5"
6208 case "(($ac_try" in
6209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210   *) ac_try_echo=$ac_try;;
6211 esac
6212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6213 $as_echo "$ac_try_echo"; } >&5
6214   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6215   ac_status=$?
6216   if test -s conftest.err; then
6217     sed '10a\
6218 ... rest of stderr output deleted ...
6219          10q' conftest.err >conftest.er1
6220     cat conftest.er1 >&5
6221   fi
6222   rm -f conftest.er1 conftest.err
6223   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6224   test $ac_status = 0; }
6225 done
6226
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6228 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6229 if ${ac_cv_c_compiler_gnu+:} false; then :
6230   $as_echo_n "(cached) " >&6
6231 else
6232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h.  */
6234
6235 int
6236 main ()
6237 {
6238 #ifndef __GNUC__
6239        choke me
6240 #endif
6241
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 if ac_fn_c_try_compile "$LINENO"; then :
6247   ac_compiler_gnu=yes
6248 else
6249   ac_compiler_gnu=no
6250 fi
6251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6252 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6253
6254 fi
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6256 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6257 if test $ac_compiler_gnu = yes; then
6258   GCC=yes
6259 else
6260   GCC=
6261 fi
6262 ac_test_CFLAGS=${CFLAGS+set}
6263 ac_save_CFLAGS=$CFLAGS
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6265 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6266 if ${ac_cv_prog_cc_g+:} false; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   ac_save_c_werror_flag=$ac_c_werror_flag
6270    ac_c_werror_flag=yes
6271    ac_cv_prog_cc_g=no
6272    CFLAGS="-g"
6273    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h.  */
6275
6276 int
6277 main ()
6278 {
6279
6280   ;
6281   return 0;
6282 }
6283 _ACEOF
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285   ac_cv_prog_cc_g=yes
6286 else
6287   CFLAGS=""
6288       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6289 /* end confdefs.h.  */
6290
6291 int
6292 main ()
6293 {
6294
6295   ;
6296   return 0;
6297 }
6298 _ACEOF
6299 if ac_fn_c_try_compile "$LINENO"; then :
6300
6301 else
6302   ac_c_werror_flag=$ac_save_c_werror_flag
6303          CFLAGS="-g"
6304          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6305 /* end confdefs.h.  */
6306
6307 int
6308 main ()
6309 {
6310
6311   ;
6312   return 0;
6313 }
6314 _ACEOF
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316   ac_cv_prog_cc_g=yes
6317 fi
6318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6319 fi
6320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6321 fi
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323    ac_c_werror_flag=$ac_save_c_werror_flag
6324 fi
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6326 $as_echo "$ac_cv_prog_cc_g" >&6; }
6327 if test "$ac_test_CFLAGS" = set; then
6328   CFLAGS=$ac_save_CFLAGS
6329 elif test $ac_cv_prog_cc_g = yes; then
6330   if test "$GCC" = yes; then
6331     CFLAGS="-g -O2"
6332   else
6333     CFLAGS="-g"
6334   fi
6335 else
6336   if test "$GCC" = yes; then
6337     CFLAGS="-O2"
6338   else
6339     CFLAGS=
6340   fi
6341 fi
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6343 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6344 if ${ac_cv_prog_cc_c89+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   ac_cv_prog_cc_c89=no
6348 ac_save_CC=$CC
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h.  */
6351 #include <stdarg.h>
6352 #include <stdio.h>
6353 #include <sys/types.h>
6354 #include <sys/stat.h>
6355 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6356 struct buf { int x; };
6357 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6358 static char *e (p, i)
6359      char **p;
6360      int i;
6361 {
6362   return p[i];
6363 }
6364 static char *f (char * (*g) (char **, int), char **p, ...)
6365 {
6366   char *s;
6367   va_list v;
6368   va_start (v,p);
6369   s = g (p, va_arg (v,int));
6370   va_end (v);
6371   return s;
6372 }
6373
6374 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6375    function prototypes and stuff, but not '\xHH' hex character constants.
6376    These don't provoke an error unfortunately, instead are silently treated
6377    as 'x'.  The following induces an error, until -std is added to get
6378    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6379    array size at least.  It's necessary to write '\x00'==0 to get something
6380    that's true only with -std.  */
6381 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6382
6383 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6384    inside strings and character constants.  */
6385 #define FOO(x) 'x'
6386 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6387
6388 int test (int i, double x);
6389 struct s1 {int (*f) (int a);};
6390 struct s2 {int (*f) (double a);};
6391 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6392 int argc;
6393 char **argv;
6394 int
6395 main ()
6396 {
6397 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6398   ;
6399   return 0;
6400 }
6401 _ACEOF
6402 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6403         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6404 do
6405   CC="$ac_save_CC $ac_arg"
6406   if ac_fn_c_try_compile "$LINENO"; then :
6407   ac_cv_prog_cc_c89=$ac_arg
6408 fi
6409 rm -f core conftest.err conftest.$ac_objext
6410   test "x$ac_cv_prog_cc_c89" != "xno" && break
6411 done
6412 rm -f conftest.$ac_ext
6413 CC=$ac_save_CC
6414
6415 fi
6416 # AC_CACHE_VAL
6417 case "x$ac_cv_prog_cc_c89" in
6418   x)
6419     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6420 $as_echo "none needed" >&6; } ;;
6421   xno)
6422     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6423 $as_echo "unsupported" >&6; } ;;
6424   *)
6425     CC="$CC $ac_cv_prog_cc_c89"
6426     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6427 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6428 esac
6429 if test "x$ac_cv_prog_cc_c89" != xno; then :
6430
6431 fi
6432
6433 ac_ext=c
6434 ac_cpp='$CPP $CPPFLAGS'
6435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6438
6439 depcc="$CC"   am_compiler_list=
6440
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6442 $as_echo_n "checking dependency style of $depcc... " >&6; }
6443 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6444   $as_echo_n "(cached) " >&6
6445 else
6446   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6447   # We make a subdir and do the tests there.  Otherwise we can end up
6448   # making bogus files that we don't know about and never remove.  For
6449   # instance it was reported that on HP-UX the gcc test will end up
6450   # making a dummy file named `D' -- because `-MD' means `put the output
6451   # in D'.
6452   mkdir conftest.dir
6453   # Copy depcomp to subdir because otherwise we won't find it if we're
6454   # using a relative directory.
6455   cp "$am_depcomp" conftest.dir
6456   cd conftest.dir
6457   # We will build objects and dependencies in a subdirectory because
6458   # it helps to detect inapplicable dependency modes.  For instance
6459   # both Tru64's cc and ICC support -MD to output dependencies as a
6460   # side effect of compilation, but ICC will put the dependencies in
6461   # the current directory while Tru64 will put them in the object
6462   # directory.
6463   mkdir sub
6464
6465   am_cv_CC_dependencies_compiler_type=none
6466   if test "$am_compiler_list" = ""; then
6467      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6468   fi
6469   am__universal=false
6470   case " $depcc " in #(
6471      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6472      esac
6473
6474   for depmode in $am_compiler_list; do
6475     # Setup a source with many dependencies, because some compilers
6476     # like to wrap large dependency lists on column 80 (with \), and
6477     # we should not choose a depcomp mode which is confused by this.
6478     #
6479     # We need to recreate these files for each test, as the compiler may
6480     # overwrite some of them when testing with obscure command lines.
6481     # This happens at least with the AIX C compiler.
6482     : > sub/conftest.c
6483     for i in 1 2 3 4 5 6; do
6484       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6485       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6486       # Solaris 8's {/usr,}/bin/sh.
6487       touch sub/conftst$i.h
6488     done
6489     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6490
6491     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6492     # mode.  It turns out that the SunPro C++ compiler does not properly
6493     # handle `-M -o', and we need to detect this.  Also, some Intel
6494     # versions had trouble with output in subdirs
6495     am__obj=sub/conftest.${OBJEXT-o}
6496     am__minus_obj="-o $am__obj"
6497     case $depmode in
6498     gcc)
6499       # This depmode causes a compiler race in universal mode.
6500       test "$am__universal" = false || continue
6501       ;;
6502     nosideeffect)
6503       # after this tag, mechanisms are not by side-effect, so they'll
6504       # only be used when explicitly requested
6505       if test "x$enable_dependency_tracking" = xyes; then
6506         continue
6507       else
6508         break
6509       fi
6510       ;;
6511     msvisualcpp | msvcmsys)
6512       # This compiler won't grok `-c -o', but also, the minuso test has
6513       # not run yet.  These depmodes are late enough in the game, and
6514       # so weak that their functioning should not be impacted.
6515       am__obj=conftest.${OBJEXT-o}
6516       am__minus_obj=
6517       ;;
6518     none) break ;;
6519     esac
6520     if depmode=$depmode \
6521        source=sub/conftest.c object=$am__obj \
6522        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6523        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6524          >/dev/null 2>conftest.err &&
6525        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6526        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6527        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6528        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6529       # icc doesn't choke on unknown options, it will just issue warnings
6530       # or remarks (even with -Werror).  So we grep stderr for any message
6531       # that says an option was ignored or not supported.
6532       # When given -MP, icc 7.0 and 7.1 complain thusly:
6533       #   icc: Command line warning: ignoring option '-M'; no argument required
6534       # The diagnosis changed in icc 8.0:
6535       #   icc: Command line remark: option '-MP' not supported
6536       if (grep 'ignoring option' conftest.err ||
6537           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6538         am_cv_CC_dependencies_compiler_type=$depmode
6539         break
6540       fi
6541     fi
6542   done
6543
6544   cd ..
6545   rm -rf conftest.dir
6546 else
6547   am_cv_CC_dependencies_compiler_type=none
6548 fi
6549
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6552 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6553 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6554
6555  if
6556   test "x$enable_dependency_tracking" != xno \
6557   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6558   am__fastdepCC_TRUE=
6559   am__fastdepCC_FALSE='#'
6560 else
6561   am__fastdepCC_TRUE='#'
6562   am__fastdepCC_FALSE=
6563 fi
6564
6565
6566
6567 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6568
6569 if test "x$CC" != xcc; then
6570   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6571 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6572 else
6573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6574 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6575 fi
6576 set dummy $CC; ac_cc=`$as_echo "$2" |
6577                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6578 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6579   $as_echo_n "(cached) " >&6
6580 else
6581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582 /* end confdefs.h.  */
6583
6584 int
6585 main ()
6586 {
6587
6588   ;
6589   return 0;
6590 }
6591 _ACEOF
6592 # Make sure it works both with $CC and with simple cc.
6593 # We do the test twice because some compilers refuse to overwrite an
6594 # existing .o file with -o, though they will create one.
6595 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6596 rm -f conftest2.*
6597 if { { case "(($ac_try" in
6598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599   *) ac_try_echo=$ac_try;;
6600 esac
6601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6602 $as_echo "$ac_try_echo"; } >&5
6603   (eval "$ac_try") 2>&5
6604   ac_status=$?
6605   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6606   test $ac_status = 0; } &&
6607    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609   *) ac_try_echo=$ac_try;;
6610 esac
6611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6612 $as_echo "$ac_try_echo"; } >&5
6613   (eval "$ac_try") 2>&5
6614   ac_status=$?
6615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6616   test $ac_status = 0; };
6617 then
6618   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6619   if test "x$CC" != xcc; then
6620     # Test first that cc exists at all.
6621     if { ac_try='cc -c conftest.$ac_ext >&5'
6622   { { case "(($ac_try" in
6623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624   *) ac_try_echo=$ac_try;;
6625 esac
6626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6627 $as_echo "$ac_try_echo"; } >&5
6628   (eval "$ac_try") 2>&5
6629   ac_status=$?
6630   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631   test $ac_status = 0; }; }; then
6632       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6633       rm -f conftest2.*
6634       if { { case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6639 $as_echo "$ac_try_echo"; } >&5
6640   (eval "$ac_try") 2>&5
6641   ac_status=$?
6642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6643   test $ac_status = 0; } &&
6644          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646   *) ac_try_echo=$ac_try;;
6647 esac
6648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6649 $as_echo "$ac_try_echo"; } >&5
6650   (eval "$ac_try") 2>&5
6651   ac_status=$?
6652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6653   test $ac_status = 0; };
6654       then
6655         # cc works too.
6656         :
6657       else
6658         # cc exists but doesn't like -o.
6659         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6660       fi
6661     fi
6662   fi
6663 else
6664   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6665 fi
6666 rm -f core conftest*
6667
6668 fi
6669 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6671 $as_echo "yes" >&6; }
6672 else
6673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674 $as_echo "no" >&6; }
6675
6676 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6677
6678 fi
6679
6680 # FIXME: we rely on the cache variable name because
6681 # there is no other way.
6682 set dummy $CC
6683 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6684 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6685 if test "$am_t" != yes; then
6686    # Losing compiler, so override with the script.
6687    # FIXME: It is wrong to rewrite CC.
6688    # But if we don't then we get into trouble of one sort or another.
6689    # A longer-term fix would be to have automake use am__CC in this case,
6690    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6691    CC="$am_aux_dir/compile $CC"
6692 fi
6693
6694
6695
6696
6697 # Check whether --enable-largefile was given.
6698 if test "${enable_largefile+set}" = set; then :
6699   enableval=$enable_largefile;
6700 fi
6701
6702 if test "$enable_largefile" != no; then
6703
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6705 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6706 if ${ac_cv_sys_largefile_CC+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   ac_cv_sys_largefile_CC=no
6710      if test "$GCC" != yes; then
6711        ac_save_CC=$CC
6712        while :; do
6713          # IRIX 6.2 and later do not support large files by default,
6714          # so use the C compiler's -n32 option if that helps.
6715          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6716 /* end confdefs.h.  */
6717 #include <sys/types.h>
6718  /* Check that off_t can represent 2**63 - 1 correctly.
6719     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6720     since some C++ compilers masquerading as C compilers
6721     incorrectly reject 9223372036854775807.  */
6722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6723   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6724                        && LARGE_OFF_T % 2147483647 == 1)
6725                       ? 1 : -1];
6726 int
6727 main ()
6728 {
6729
6730   ;
6731   return 0;
6732 }
6733 _ACEOF
6734          if ac_fn_c_try_compile "$LINENO"; then :
6735   break
6736 fi
6737 rm -f core conftest.err conftest.$ac_objext
6738          CC="$CC -n32"
6739          if ac_fn_c_try_compile "$LINENO"; then :
6740   ac_cv_sys_largefile_CC=' -n32'; break
6741 fi
6742 rm -f core conftest.err conftest.$ac_objext
6743          break
6744        done
6745        CC=$ac_save_CC
6746        rm -f conftest.$ac_ext
6747     fi
6748 fi
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6750 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6751   if test "$ac_cv_sys_largefile_CC" != no; then
6752     CC=$CC$ac_cv_sys_largefile_CC
6753   fi
6754
6755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6756 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6757 if ${ac_cv_sys_file_offset_bits+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   while :; do
6761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h.  */
6763 #include <sys/types.h>
6764  /* Check that off_t can represent 2**63 - 1 correctly.
6765     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6766     since some C++ compilers masquerading as C compilers
6767     incorrectly reject 9223372036854775807.  */
6768 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6769   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6770                        && LARGE_OFF_T % 2147483647 == 1)
6771                       ? 1 : -1];
6772 int
6773 main ()
6774 {
6775
6776   ;
6777   return 0;
6778 }
6779 _ACEOF
6780 if ac_fn_c_try_compile "$LINENO"; then :
6781   ac_cv_sys_file_offset_bits=no; break
6782 fi
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785 /* end confdefs.h.  */
6786 #define _FILE_OFFSET_BITS 64
6787 #include <sys/types.h>
6788  /* Check that off_t can represent 2**63 - 1 correctly.
6789     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6790     since some C++ compilers masquerading as C compilers
6791     incorrectly reject 9223372036854775807.  */
6792 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6793   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6794                        && LARGE_OFF_T % 2147483647 == 1)
6795                       ? 1 : -1];
6796 int
6797 main ()
6798 {
6799
6800   ;
6801   return 0;
6802 }
6803 _ACEOF
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805   ac_cv_sys_file_offset_bits=64; break
6806 fi
6807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6808   ac_cv_sys_file_offset_bits=unknown
6809   break
6810 done
6811 fi
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6813 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6814 case $ac_cv_sys_file_offset_bits in #(
6815   no | unknown) ;;
6816   *)
6817 cat >>confdefs.h <<_ACEOF
6818 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6819 _ACEOF
6820 ;;
6821 esac
6822 rm -rf conftest*
6823   if test $ac_cv_sys_file_offset_bits = unknown; then
6824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6825 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6826 if ${ac_cv_sys_large_files+:} false; then :
6827   $as_echo_n "(cached) " >&6
6828 else
6829   while :; do
6830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6831 /* end confdefs.h.  */
6832 #include <sys/types.h>
6833  /* Check that off_t can represent 2**63 - 1 correctly.
6834     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6835     since some C++ compilers masquerading as C compilers
6836     incorrectly reject 9223372036854775807.  */
6837 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6838   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6839                        && LARGE_OFF_T % 2147483647 == 1)
6840                       ? 1 : -1];
6841 int
6842 main ()
6843 {
6844
6845   ;
6846   return 0;
6847 }
6848 _ACEOF
6849 if ac_fn_c_try_compile "$LINENO"; then :
6850   ac_cv_sys_large_files=no; break
6851 fi
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h.  */
6855 #define _LARGE_FILES 1
6856 #include <sys/types.h>
6857  /* Check that off_t can represent 2**63 - 1 correctly.
6858     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6859     since some C++ compilers masquerading as C compilers
6860     incorrectly reject 9223372036854775807.  */
6861 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6862   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6863                        && LARGE_OFF_T % 2147483647 == 1)
6864                       ? 1 : -1];
6865 int
6866 main ()
6867 {
6868
6869   ;
6870   return 0;
6871 }
6872 _ACEOF
6873 if ac_fn_c_try_compile "$LINENO"; then :
6874   ac_cv_sys_large_files=1; break
6875 fi
6876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6877   ac_cv_sys_large_files=unknown
6878   break
6879 done
6880 fi
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6882 $as_echo "$ac_cv_sys_large_files" >&6; }
6883 case $ac_cv_sys_large_files in #(
6884   no | unknown) ;;
6885   *)
6886 cat >>confdefs.h <<_ACEOF
6887 #define _LARGE_FILES $ac_cv_sys_large_files
6888 _ACEOF
6889 ;;
6890 esac
6891 rm -rf conftest*
6892   fi
6893 fi
6894
6895
6896 if test "x$enable_debug" = "xyes"; then
6897   if test x$cflags_set != xset ; then
6898       case " $CFLAGS " in
6899       *[\ \     ]-g[\ \ ]*) ;;
6900       *) CFLAGS="$CFLAGS -g" ;;
6901       esac
6902   fi
6903   GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
6904 else
6905   GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
6906
6907   if test "x$enable_debug" = "xno"; then
6908     GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
6909   fi
6910 fi
6911
6912 # Ensure MSVC-compatible struct packing convention is used when
6913 # compiling for Win32 with gcc.
6914 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
6915 # gcc2 uses "-fnative-struct".
6916 if test x"$glib_native_win32" = xyes; then
6917   if test x"$GCC" = xyes; then
6918     msnative_struct=''
6919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
6920 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
6921     if test -z "$ac_cv_prog_CC"; then
6922       our_gcc="$CC"
6923     else
6924       our_gcc="$ac_cv_prog_CC"
6925     fi
6926     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
6927       2.)
6928         if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
6929           msnative_struct='-fnative-struct'
6930         fi
6931         ;;
6932       *)
6933         if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
6934           msnative_struct='-mms-bitfields'
6935         fi
6936         ;;
6937     esac
6938     if test x"$msnative_struct" = x ; then
6939       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
6940 $as_echo "no way" >&6; }
6941       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
6942 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
6943     else
6944       CFLAGS="$CFLAGS $msnative_struct"
6945       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
6946 $as_echo "${msnative_struct}" >&6; }
6947     fi
6948   fi
6949 fi
6950 GLIB_EXTRA_CFLAGS="${msnative_struct}"
6951
6952
6953
6954
6955 # define a MAINT-like variable REBUILD which is set if Perl
6956 # and awk are found, so autogenerated sources can be rebuilt
6957 for ac_prog in gawk mawk nawk awk
6958 do
6959   # Extract the first word of "$ac_prog", so it can be a program name with args.
6960 set dummy $ac_prog; ac_word=$2
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962 $as_echo_n "checking for $ac_word... " >&6; }
6963 if ${ac_cv_prog_AWK+:} false; then :
6964   $as_echo_n "(cached) " >&6
6965 else
6966   if test -n "$AWK"; then
6967   ac_cv_prog_AWK="$AWK" # Let the user override the test.
6968 else
6969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 for as_dir in $PATH
6971 do
6972   IFS=$as_save_IFS
6973   test -z "$as_dir" && as_dir=.
6974     for ac_exec_ext in '' $ac_executable_extensions; do
6975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6976     ac_cv_prog_AWK="$ac_prog"
6977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6978     break 2
6979   fi
6980 done
6981   done
6982 IFS=$as_save_IFS
6983
6984 fi
6985 fi
6986 AWK=$ac_cv_prog_AWK
6987 if test -n "$AWK"; then
6988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6989 $as_echo "$AWK" >&6; }
6990 else
6991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6992 $as_echo "no" >&6; }
6993 fi
6994
6995
6996   test -n "$AWK" && break
6997 done
6998
6999 for ac_prog in perl5 perl
7000 do
7001   # Extract the first word of "$ac_prog", so it can be a program name with args.
7002 set dummy $ac_prog; ac_word=$2
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7004 $as_echo_n "checking for $ac_word... " >&6; }
7005 if ${ac_cv_prog_PERL+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   if test -n "$PERL"; then
7009   ac_cv_prog_PERL="$PERL" # Let the user override the test.
7010 else
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7012 for as_dir in $PATH
7013 do
7014   IFS=$as_save_IFS
7015   test -z "$as_dir" && as_dir=.
7016     for ac_exec_ext in '' $ac_executable_extensions; do
7017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7018     ac_cv_prog_PERL="$ac_prog"
7019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020     break 2
7021   fi
7022 done
7023   done
7024 IFS=$as_save_IFS
7025
7026 fi
7027 fi
7028 PERL=$ac_cv_prog_PERL
7029 if test -n "$PERL"; then
7030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7031 $as_echo "$PERL" >&6; }
7032 else
7033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7034 $as_echo "no" >&6; }
7035 fi
7036
7037
7038   test -n "$PERL" && break
7039 done
7040
7041 # We would like indent, but don't require it.
7042 # Extract the first word of "indent", so it can be a program name with args.
7043 set dummy indent; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if ${ac_cv_prog_INDENT+:} false; then :
7047   $as_echo_n "(cached) " >&6
7048 else
7049   if test -n "$INDENT"; then
7050   ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7054 do
7055   IFS=$as_save_IFS
7056   test -z "$as_dir" && as_dir=.
7057     for ac_exec_ext in '' $ac_executable_extensions; do
7058   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059     ac_cv_prog_INDENT="indent"
7060     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061     break 2
7062   fi
7063 done
7064   done
7065 IFS=$as_save_IFS
7066
7067 fi
7068 fi
7069 INDENT=$ac_cv_prog_INDENT
7070 if test -n "$INDENT"; then
7071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7072 $as_echo "$INDENT" >&6; }
7073 else
7074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7076 fi
7077
7078
7079 REBUILD=\#
7080 if test "x$enable_rebuilds" = "xyes" && \
7081      test -n "$PERL" && \
7082      $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
7083      test -n "$AWK" ; then
7084   REBUILD=
7085 fi
7086
7087
7088 # Need full path to Perl for glib-mkenums
7089 #
7090 if test "x$PERL" != x ; then
7091   # Extract the first word of "$PERL", so it can be a program name with args.
7092 set dummy $PERL; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_path_PERL_PATH+:} false; then :
7096   $as_echo_n "(cached) " >&6
7097 else
7098   case $PERL_PATH in
7099   [\\/]* | ?:[\\/]*)
7100   ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
7101   ;;
7102   *)
7103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH
7105 do
7106   IFS=$as_save_IFS
7107   test -z "$as_dir" && as_dir=.
7108     for ac_exec_ext in '' $ac_executable_extensions; do
7109   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7110     ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
7111     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7112     break 2
7113   fi
7114 done
7115   done
7116 IFS=$as_save_IFS
7117
7118   ;;
7119 esac
7120 fi
7121 PERL_PATH=$ac_cv_path_PERL_PATH
7122 if test -n "$PERL_PATH"; then
7123   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
7124 $as_echo "$PERL_PATH" >&6; }
7125 else
7126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7128 fi
7129
7130
7131 fi
7132 if test "x$PERL_PATH" = x ; then
7133   PERL_PATH="/usr/bin/env perl"
7134 fi
7135
7136
7137 # Need suitable python path for greport
7138
7139
7140
7141
7142         if test -n "$PYTHON"; then
7143       # If the user set $PYTHON, use it and don't search something else.
7144       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
7145 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
7146       prog="import sys
7147 # split strings by '.' and convert to numeric.  Append some zeros
7148 # because we need at least 4 digits for the hex conversion.
7149 # map returns an iterator in Python 3.0 and a list in 2.x
7150 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7151 minverhex = 0
7152 # xrange is not present in Python 3.0 and range returns an iterator
7153 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7154 sys.exit(sys.hexversion < minverhex)"
7155   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7156    ($PYTHON -c "$prog") >&5 2>&5
7157    ac_status=$?
7158    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159    (exit $ac_status); }; then :
7160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7161 $as_echo "yes" >&6; }
7162 else
7163   as_fn_error $? "too old" "$LINENO" 5
7164 fi
7165       am_display_PYTHON=$PYTHON
7166     else
7167       # Otherwise, try each interpreter until we find one that satisfies
7168       # VERSION.
7169       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
7170 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
7171 if ${am_cv_pathless_PYTHON+:} false; then :
7172   $as_echo_n "(cached) " >&6
7173 else
7174
7175         for am_cv_pathless_PYTHON in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7176           test "$am_cv_pathless_PYTHON" = none && break
7177           prog="import sys
7178 # split strings by '.' and convert to numeric.  Append some zeros
7179 # because we need at least 4 digits for the hex conversion.
7180 # map returns an iterator in Python 3.0 and a list in 2.x
7181 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7182 minverhex = 0
7183 # xrange is not present in Python 3.0 and range returns an iterator
7184 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7185 sys.exit(sys.hexversion < minverhex)"
7186   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7187    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7188    ac_status=$?
7189    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190    (exit $ac_status); }; then :
7191   break
7192 fi
7193         done
7194 fi
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7196 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7197       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7198       if test "$am_cv_pathless_PYTHON" = none; then
7199         PYTHON=:
7200       else
7201         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7202 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_path_PYTHON+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   case $PYTHON in
7209   [\\/]* | ?:[\\/]*)
7210   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7211   ;;
7212   *)
7213   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228   ;;
7229 esac
7230 fi
7231 PYTHON=$ac_cv_path_PYTHON
7232 if test -n "$PYTHON"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7234 $as_echo "$PYTHON" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241       fi
7242       am_display_PYTHON=$am_cv_pathless_PYTHON
7243     fi
7244
7245
7246   if test "$PYTHON" = :; then
7247       PYTHON="/usr/bin/env python2.5"
7248   else
7249
7250
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7252 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7253 if ${am_cv_python_version+:} false; then :
7254   $as_echo_n "(cached) " >&6
7255 else
7256   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7257 fi
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7259 $as_echo "$am_cv_python_version" >&6; }
7260   PYTHON_VERSION=$am_cv_python_version
7261
7262
7263
7264   PYTHON_PREFIX='${prefix}'
7265
7266   PYTHON_EXEC_PREFIX='${exec_prefix}'
7267
7268
7269
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7271 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7272 if ${am_cv_python_platform+:} false; then :
7273   $as_echo_n "(cached) " >&6
7274 else
7275   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7276 fi
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7278 $as_echo "$am_cv_python_platform" >&6; }
7279   PYTHON_PLATFORM=$am_cv_python_platform
7280
7281
7282
7283
7284                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7285 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7286 if ${am_cv_python_pythondir+:} false; then :
7287   $as_echo_n "(cached) " >&6
7288 else
7289   if test "x$prefix" = xNONE
7290      then
7291        am_py_prefix=$ac_default_prefix
7292      else
7293        am_py_prefix=$prefix
7294      fi
7295      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
7296      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7297      case $am_cv_python_pythondir in
7298      $am_py_prefix*)
7299        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7300        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7301        ;;
7302      *)
7303        case $am_py_prefix in
7304          /usr|/System*) ;;
7305          *)
7306           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7307           ;;
7308        esac
7309        ;;
7310      esac
7311
7312 fi
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7314 $as_echo "$am_cv_python_pythondir" >&6; }
7315   pythondir=$am_cv_python_pythondir
7316
7317
7318
7319   pkgpythondir=\${pythondir}/$PACKAGE
7320
7321
7322             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7323 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7324 if ${am_cv_python_pyexecdir+:} false; then :
7325   $as_echo_n "(cached) " >&6
7326 else
7327   if test "x$exec_prefix" = xNONE
7328      then
7329        am_py_exec_prefix=$am_py_prefix
7330      else
7331        am_py_exec_prefix=$exec_prefix
7332      fi
7333      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
7334      echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
7335      case $am_cv_python_pyexecdir in
7336      $am_py_exec_prefix*)
7337        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7338        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7339        ;;
7340      *)
7341        case $am_py_exec_prefix in
7342          /usr|/System*) ;;
7343          *)
7344            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7345            ;;
7346        esac
7347        ;;
7348      esac
7349
7350 fi
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7352 $as_echo "$am_cv_python_pyexecdir" >&6; }
7353   pyexecdir=$am_cv_python_pyexecdir
7354
7355
7356
7357   pkgpyexecdir=\${pyexecdir}/$PACKAGE
7358
7359
7360
7361   fi
7362
7363
7364
7365
7366
7367
7368 if test x"$glib_native_win32" = xyes; then
7369   with_libiconv=native
7370 else
7371
7372 # Check whether --with-libiconv was given.
7373 if test "${with_libiconv+set}" = set; then :
7374   withval=$with_libiconv;
7375 else
7376   with_libiconv=maybe
7377 fi
7378
7379
7380   found_iconv=no
7381   case $with_libiconv in
7382     maybe)
7383       # Check in the C library first
7384       ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7385 if test "x$ac_cv_func_iconv_open" = xyes; then :
7386   with_libiconv=no; found_iconv=yes
7387 fi
7388
7389       # Check if we have GNU libiconv
7390       if test $found_iconv = "no"; then
7391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7392 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7393 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7394   $as_echo_n "(cached) " >&6
7395 else
7396   ac_check_lib_save_LIBS=$LIBS
7397 LIBS="-liconv  $LIBS"
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h.  */
7400
7401 /* Override any GCC internal prototype to avoid an error.
7402    Use char because int might match the return type of a GCC
7403    builtin and then its argument prototype would still apply.  */
7404 #ifdef __cplusplus
7405 extern "C"
7406 #endif
7407 char libiconv_open ();
7408 int
7409 main ()
7410 {
7411 return libiconv_open ();
7412   ;
7413   return 0;
7414 }
7415 _ACEOF
7416 if ac_fn_c_try_link "$LINENO"; then :
7417   ac_cv_lib_iconv_libiconv_open=yes
7418 else
7419   ac_cv_lib_iconv_libiconv_open=no
7420 fi
7421 rm -f core conftest.err conftest.$ac_objext \
7422     conftest$ac_exeext conftest.$ac_ext
7423 LIBS=$ac_check_lib_save_LIBS
7424 fi
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7426 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7427 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7428   with_libiconv=gnu; found_iconv=yes
7429 fi
7430
7431       fi
7432       # Check if we have a iconv in -liconv, possibly from vendor
7433       if test $found_iconv = "no"; then
7434         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7435 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7436 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   ac_check_lib_save_LIBS=$LIBS
7440 LIBS="-liconv  $LIBS"
7441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7442 /* end confdefs.h.  */
7443
7444 /* Override any GCC internal prototype to avoid an error.
7445    Use char because int might match the return type of a GCC
7446    builtin and then its argument prototype would still apply.  */
7447 #ifdef __cplusplus
7448 extern "C"
7449 #endif
7450 char iconv_open ();
7451 int
7452 main ()
7453 {
7454 return iconv_open ();
7455   ;
7456   return 0;
7457 }
7458 _ACEOF
7459 if ac_fn_c_try_link "$LINENO"; then :
7460   ac_cv_lib_iconv_iconv_open=yes
7461 else
7462   ac_cv_lib_iconv_iconv_open=no
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext \
7465     conftest$ac_exeext conftest.$ac_ext
7466 LIBS=$ac_check_lib_save_LIBS
7467 fi
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7469 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7470 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7471   with_libiconv=native; found_iconv=yes
7472 fi
7473
7474       fi
7475       ;;
7476     no)
7477       ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7478 if test "x$ac_cv_func_iconv_open" = xyes; then :
7479   with_libiconv=no; found_iconv=yes
7480 fi
7481
7482       ;;
7483     gnu|yes)
7484       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7485 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7486 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7487   $as_echo_n "(cached) " >&6
7488 else
7489   ac_check_lib_save_LIBS=$LIBS
7490 LIBS="-liconv  $LIBS"
7491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7492 /* end confdefs.h.  */
7493
7494 /* Override any GCC internal prototype to avoid an error.
7495    Use char because int might match the return type of a GCC
7496    builtin and then its argument prototype would still apply.  */
7497 #ifdef __cplusplus
7498 extern "C"
7499 #endif
7500 char libiconv_open ();
7501 int
7502 main ()
7503 {
7504 return libiconv_open ();
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 if ac_fn_c_try_link "$LINENO"; then :
7510   ac_cv_lib_iconv_libiconv_open=yes
7511 else
7512   ac_cv_lib_iconv_libiconv_open=no
7513 fi
7514 rm -f core conftest.err conftest.$ac_objext \
7515     conftest$ac_exeext conftest.$ac_ext
7516 LIBS=$ac_check_lib_save_LIBS
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7519 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7520 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7521   with_libiconv=gnu; found_iconv=yes
7522 fi
7523
7524       ;;
7525     native)
7526       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7527 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7528 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   ac_check_lib_save_LIBS=$LIBS
7532 LIBS="-liconv  $LIBS"
7533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7534 /* end confdefs.h.  */
7535
7536 /* Override any GCC internal prototype to avoid an error.
7537    Use char because int might match the return type of a GCC
7538    builtin and then its argument prototype would still apply.  */
7539 #ifdef __cplusplus
7540 extern "C"
7541 #endif
7542 char iconv_open ();
7543 int
7544 main ()
7545 {
7546 return iconv_open ();
7547   ;
7548   return 0;
7549 }
7550 _ACEOF
7551 if ac_fn_c_try_link "$LINENO"; then :
7552   ac_cv_lib_iconv_iconv_open=yes
7553 else
7554   ac_cv_lib_iconv_iconv_open=no
7555 fi
7556 rm -f core conftest.err conftest.$ac_objext \
7557     conftest$ac_exeext conftest.$ac_ext
7558 LIBS=$ac_check_lib_save_LIBS
7559 fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7561 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7562 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7563   with_libiconv=native; found_iconv=yes
7564 fi
7565
7566       ;;
7567   esac
7568
7569   if test "x$found_iconv" = "xno" ; then
7570      as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
7571   fi
7572 fi
7573
7574 # Check whether --enable-iconv-cache was given.
7575 if test "${enable_iconv_cache+set}" = set; then :
7576   enableval=$enable_iconv_cache;
7577 else
7578   enable_iconv_cache=auto
7579 fi
7580
7581
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to cache iconv descriptors" >&5
7583 $as_echo_n "checking whether to cache iconv descriptors... " >&6; }
7584 case $enable_iconv_cache in
7585   auto)
7586     if test $ac_cv_gnu_library_2_1 = yes; then
7587       enable_iconv_cache=no
7588     else
7589       enable_iconv_cache=yes
7590     fi
7591   ;;
7592   yes|no)
7593   ;;
7594   *) as_fn_error $? "Value given to --enable-iconv-cache must be one of yes, no or auto" "$LINENO" 5
7595   ;;
7596 esac
7597
7598 if test $enable_iconv_cache = yes; then
7599
7600 $as_echo "#define NEED_ICONV_CACHE 1" >>confdefs.h
7601
7602 fi
7603
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_iconv_cache" >&5
7605 $as_echo "$enable_iconv_cache" >&6; }
7606
7607
7608
7609 GETTEXT_PACKAGE=glib20
7610
7611
7612 cat >>confdefs.h <<_ACEOF
7613 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7614 _ACEOF
7615
7616
7617
7618 cat >>confdefs.h <<_ACEOF
7619 #define GLIB_LOCALE_DIR ""
7620 _ACEOF
7621
7622
7623
7624 if test x"$glib_native_win32" != xyes; then
7625   if test x$with_libiconv != xno ; then
7626     case " $INTLLIBS " in
7627     *[\ \       ]-liconv[\ \    ]*) ;;
7628     *) ICONV_LIBS="-liconv" ;;
7629     esac
7630   fi
7631 fi
7632
7633
7634 case $with_libiconv in
7635   gnu)
7636
7637 $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
7638
7639     ;;
7640   native)
7641
7642 $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
7643
7644     ;;
7645 esac
7646
7647 enable_static=yes
7648 enable_shared=no
7649
7650
7651 case `pwd` in
7652   *\ * | *\     *)
7653     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7654 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7655 esac
7656
7657
7658
7659 macro_version='2.4'
7660 macro_revision='1.3293'
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674 ltmain="$ac_aux_dir/ltmain.sh"
7675
7676 # Backslashify metacharacters that are still active within
7677 # double-quoted strings.
7678 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7679
7680 # Same as above, but do not quote variable references.
7681 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7682
7683 # Sed substitution to delay expansion of an escaped shell variable in a
7684 # double_quote_subst'ed string.
7685 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7686
7687 # Sed substitution to delay expansion of an escaped single quote.
7688 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7689
7690 # Sed substitution to avoid accidental globbing in evaled expressions
7691 no_glob_subst='s/\*/\\\*/g'
7692
7693 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7694 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7695 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7696
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7698 $as_echo_n "checking how to print strings... " >&6; }
7699 # Test print first, because it will be a builtin if present.
7700 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7701    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7702   ECHO='print -r --'
7703 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7704   ECHO='printf %s\n'
7705 else
7706   # Use this function as a fallback that always works.
7707   func_fallback_echo ()
7708   {
7709     eval 'cat <<_LTECHO_EOF
7710 $1
7711 _LTECHO_EOF'
7712   }
7713   ECHO='func_fallback_echo'
7714 fi
7715
7716 # func_echo_all arg...
7717 # Invoke $ECHO with all args, space-separated.
7718 func_echo_all ()
7719 {
7720     $ECHO ""
7721 }
7722
7723 case "$ECHO" in
7724   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7725 $as_echo "printf" >&6; } ;;
7726   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7727 $as_echo "print -r" >&6; } ;;
7728   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7729 $as_echo "cat" >&6; } ;;
7730 esac
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7746 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7747 if ${ac_cv_path_SED+:} false; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7751      for ac_i in 1 2 3 4 5 6 7; do
7752        ac_script="$ac_script$as_nl$ac_script"
7753      done
7754      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7755      { ac_script=; unset ac_script;}
7756      if test -z "$SED"; then
7757   ac_path_SED_found=false
7758   # Loop through the user's path and test for each of PROGNAME-LIST
7759   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 for as_dir in $PATH
7761 do
7762   IFS=$as_save_IFS
7763   test -z "$as_dir" && as_dir=.
7764     for ac_prog in sed gsed; do
7765     for ac_exec_ext in '' $ac_executable_extensions; do
7766       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7767       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7768 # Check for GNU ac_path_SED and select it if it is found.
7769   # Check for GNU $ac_path_SED
7770 case `"$ac_path_SED" --version 2>&1` in
7771 *GNU*)
7772   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7773 *)
7774   ac_count=0
7775   $as_echo_n 0123456789 >"conftest.in"
7776   while :
7777   do
7778     cat "conftest.in" "conftest.in" >"conftest.tmp"
7779     mv "conftest.tmp" "conftest.in"
7780     cp "conftest.in" "conftest.nl"
7781     $as_echo '' >> "conftest.nl"
7782     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7783     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7784     as_fn_arith $ac_count + 1 && ac_count=$as_val
7785     if test $ac_count -gt ${ac_path_SED_max-0}; then
7786       # Best one so far, save it but keep looking for a better one
7787       ac_cv_path_SED="$ac_path_SED"
7788       ac_path_SED_max=$ac_count
7789     fi
7790     # 10*(2^10) chars as input seems more than enough
7791     test $ac_count -gt 10 && break
7792   done
7793   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7794 esac
7795
7796       $ac_path_SED_found && break 3
7797     done
7798   done
7799   done
7800 IFS=$as_save_IFS
7801   if test -z "$ac_cv_path_SED"; then
7802     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7803   fi
7804 else
7805   ac_cv_path_SED=$SED
7806 fi
7807
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7810 $as_echo "$ac_cv_path_SED" >&6; }
7811  SED="$ac_cv_path_SED"
7812   rm -f conftest.sed
7813
7814 test -z "$SED" && SED=sed
7815 Xsed="$SED -e 1s/^X//"
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7828 $as_echo_n "checking for fgrep... " >&6; }
7829 if ${ac_cv_path_FGREP+:} false; then :
7830   $as_echo_n "(cached) " >&6
7831 else
7832   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7833    then ac_cv_path_FGREP="$GREP -F"
7834    else
7835      if test -z "$FGREP"; then
7836   ac_path_FGREP_found=false
7837   # Loop through the user's path and test for each of PROGNAME-LIST
7838   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7840 do
7841   IFS=$as_save_IFS
7842   test -z "$as_dir" && as_dir=.
7843     for ac_prog in fgrep; do
7844     for ac_exec_ext in '' $ac_executable_extensions; do
7845       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7846       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7847 # Check for GNU ac_path_FGREP and select it if it is found.
7848   # Check for GNU $ac_path_FGREP
7849 case `"$ac_path_FGREP" --version 2>&1` in
7850 *GNU*)
7851   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7852 *)
7853   ac_count=0
7854   $as_echo_n 0123456789 >"conftest.in"
7855   while :
7856   do
7857     cat "conftest.in" "conftest.in" >"conftest.tmp"
7858     mv "conftest.tmp" "conftest.in"
7859     cp "conftest.in" "conftest.nl"
7860     $as_echo 'FGREP' >> "conftest.nl"
7861     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7862     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7863     as_fn_arith $ac_count + 1 && ac_count=$as_val
7864     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7865       # Best one so far, save it but keep looking for a better one
7866       ac_cv_path_FGREP="$ac_path_FGREP"
7867       ac_path_FGREP_max=$ac_count
7868     fi
7869     # 10*(2^10) chars as input seems more than enough
7870     test $ac_count -gt 10 && break
7871   done
7872   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7873 esac
7874
7875       $ac_path_FGREP_found && break 3
7876     done
7877   done
7878   done
7879 IFS=$as_save_IFS
7880   if test -z "$ac_cv_path_FGREP"; then
7881     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7882   fi
7883 else
7884   ac_cv_path_FGREP=$FGREP
7885 fi
7886
7887    fi
7888 fi
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7890 $as_echo "$ac_cv_path_FGREP" >&6; }
7891  FGREP="$ac_cv_path_FGREP"
7892
7893
7894 test -z "$GREP" && GREP=grep
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914 # Check whether --with-gnu-ld was given.
7915 if test "${with_gnu_ld+set}" = set; then :
7916   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7917 else
7918   with_gnu_ld=no
7919 fi
7920
7921 ac_prog=ld
7922 if test "$GCC" = yes; then
7923   # Check if gcc -print-prog-name=ld gives a path.
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7925 $as_echo_n "checking for ld used by $CC... " >&6; }
7926   case $host in
7927   *-*-mingw*)
7928     # gcc leaves a trailing carriage return which upsets mingw
7929     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7930   *)
7931     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7932   esac
7933   case $ac_prog in
7934     # Accept absolute paths.
7935     [\\/]* | ?:[\\/]*)
7936       re_direlt='/[^/][^/]*/\.\./'
7937       # Canonicalize the pathname of ld
7938       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7939       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7940         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7941       done
7942       test -z "$LD" && LD="$ac_prog"
7943       ;;
7944   "")
7945     # If it fails, then pretend we aren't using GCC.
7946     ac_prog=ld
7947     ;;
7948   *)
7949     # If it is relative, then search for the first ld in PATH.
7950     with_gnu_ld=unknown
7951     ;;
7952   esac
7953 elif test "$with_gnu_ld" = yes; then
7954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7955 $as_echo_n "checking for GNU ld... " >&6; }
7956 else
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7958 $as_echo_n "checking for non-GNU ld... " >&6; }
7959 fi
7960 if ${lt_cv_path_LD+:} false; then :
7961   $as_echo_n "(cached) " >&6
7962 else
7963   if test -z "$LD"; then
7964   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7965   for ac_dir in $PATH; do
7966     IFS="$lt_save_ifs"
7967     test -z "$ac_dir" && ac_dir=.
7968     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7969       lt_cv_path_LD="$ac_dir/$ac_prog"
7970       # Check to see if the program is GNU ld.  I'd rather use --version,
7971       # but apparently some variants of GNU ld only accept -v.
7972       # Break only if it was the GNU/non-GNU ld that we prefer.
7973       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7974       *GNU* | *'with BFD'*)
7975         test "$with_gnu_ld" != no && break
7976         ;;
7977       *)
7978         test "$with_gnu_ld" != yes && break
7979         ;;
7980       esac
7981     fi
7982   done
7983   IFS="$lt_save_ifs"
7984 else
7985   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7986 fi
7987 fi
7988
7989 LD="$lt_cv_path_LD"
7990 if test -n "$LD"; then
7991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7992 $as_echo "$LD" >&6; }
7993 else
7994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7996 fi
7997 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7999 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8000 if ${lt_cv_prog_gnu_ld+:} false; then :
8001   $as_echo_n "(cached) " >&6
8002 else
8003   # I'd rather use --version here, but apparently some GNU lds only accept -v.
8004 case `$LD -v 2>&1 </dev/null` in
8005 *GNU* | *'with BFD'*)
8006   lt_cv_prog_gnu_ld=yes
8007   ;;
8008 *)
8009   lt_cv_prog_gnu_ld=no
8010   ;;
8011 esac
8012 fi
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8014 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8015 with_gnu_ld=$lt_cv_prog_gnu_ld
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8026 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8027 if ${lt_cv_path_NM+:} false; then :
8028   $as_echo_n "(cached) " >&6
8029 else
8030   if test -n "$NM"; then
8031   # Let the user override the test.
8032   lt_cv_path_NM="$NM"
8033 else
8034   lt_nm_to_check="${ac_tool_prefix}nm"
8035   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8036     lt_nm_to_check="$lt_nm_to_check nm"
8037   fi
8038   for lt_tmp_nm in $lt_nm_to_check; do
8039     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8040     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8041       IFS="$lt_save_ifs"
8042       test -z "$ac_dir" && ac_dir=.
8043       tmp_nm="$ac_dir/$lt_tmp_nm"
8044       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8045         # Check to see if the nm accepts a BSD-compat flag.
8046         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8047         #   nm: unknown option "B" ignored
8048         # Tru64's nm complains that /dev/null is an invalid object file
8049         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8050         */dev/null* | *'Invalid file or object type'*)
8051           lt_cv_path_NM="$tmp_nm -B"
8052           break
8053           ;;
8054         *)
8055           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8056           */dev/null*)
8057             lt_cv_path_NM="$tmp_nm -p"
8058             break
8059             ;;
8060           *)
8061             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8062             continue # so that we can try to find one that supports BSD flags
8063             ;;
8064           esac
8065           ;;
8066         esac
8067       fi
8068     done
8069     IFS="$lt_save_ifs"
8070   done
8071   : ${lt_cv_path_NM=no}
8072 fi
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8075 $as_echo "$lt_cv_path_NM" >&6; }
8076 if test "$lt_cv_path_NM" != "no"; then
8077   NM="$lt_cv_path_NM"
8078 else
8079   # Didn't find any BSD compatible name lister, look for dumpbin.
8080   if test -n "$DUMPBIN"; then :
8081     # Let the user override the test.
8082   else
8083     if test -n "$ac_tool_prefix"; then
8084   for ac_prog in dumpbin "link -dump"
8085   do
8086     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8089 $as_echo_n "checking for $ac_word... " >&6; }
8090 if ${ac_cv_prog_DUMPBIN+:} false; then :
8091   $as_echo_n "(cached) " >&6
8092 else
8093   if test -n "$DUMPBIN"; then
8094   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8095 else
8096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8097 for as_dir in $PATH
8098 do
8099   IFS=$as_save_IFS
8100   test -z "$as_dir" && as_dir=.
8101     for ac_exec_ext in '' $ac_executable_extensions; do
8102   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8103     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8104     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105     break 2
8106   fi
8107 done
8108   done
8109 IFS=$as_save_IFS
8110
8111 fi
8112 fi
8113 DUMPBIN=$ac_cv_prog_DUMPBIN
8114 if test -n "$DUMPBIN"; then
8115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8116 $as_echo "$DUMPBIN" >&6; }
8117 else
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8119 $as_echo "no" >&6; }
8120 fi
8121
8122
8123     test -n "$DUMPBIN" && break
8124   done
8125 fi
8126 if test -z "$DUMPBIN"; then
8127   ac_ct_DUMPBIN=$DUMPBIN
8128   for ac_prog in dumpbin "link -dump"
8129 do
8130   # Extract the first word of "$ac_prog", so it can be a program name with args.
8131 set dummy $ac_prog; ac_word=$2
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8133 $as_echo_n "checking for $ac_word... " >&6; }
8134 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8135   $as_echo_n "(cached) " >&6
8136 else
8137   if test -n "$ac_ct_DUMPBIN"; then
8138   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8139 else
8140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 for as_dir in $PATH
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145     for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152   done
8153 IFS=$as_save_IFS
8154
8155 fi
8156 fi
8157 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8158 if test -n "$ac_ct_DUMPBIN"; then
8159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8160 $as_echo "$ac_ct_DUMPBIN" >&6; }
8161 else
8162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167   test -n "$ac_ct_DUMPBIN" && break
8168 done
8169
8170   if test "x$ac_ct_DUMPBIN" = x; then
8171     DUMPBIN=":"
8172   else
8173     case $cross_compiling:$ac_tool_warned in
8174 yes:)
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8177 ac_tool_warned=yes ;;
8178 esac
8179     DUMPBIN=$ac_ct_DUMPBIN
8180   fi
8181 fi
8182
8183     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8184     *COFF*)
8185       DUMPBIN="$DUMPBIN -symbols"
8186       ;;
8187     *)
8188       DUMPBIN=:
8189       ;;
8190     esac
8191   fi
8192
8193   if test "$DUMPBIN" != ":"; then
8194     NM="$DUMPBIN"
8195   fi
8196 fi
8197 test -z "$NM" && NM=nm
8198
8199
8200
8201
8202
8203
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8205 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8206 if ${lt_cv_nm_interface+:} false; then :
8207   $as_echo_n "(cached) " >&6
8208 else
8209   lt_cv_nm_interface="BSD nm"
8210   echo "int some_variable = 0;" > conftest.$ac_ext
8211   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8212   (eval "$ac_compile" 2>conftest.err)
8213   cat conftest.err >&5
8214   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8215   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8216   cat conftest.err >&5
8217   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8218   cat conftest.out >&5
8219   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8220     lt_cv_nm_interface="MS dumpbin"
8221   fi
8222   rm -f conftest*
8223 fi
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8225 $as_echo "$lt_cv_nm_interface" >&6; }
8226
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8228 $as_echo_n "checking whether ln -s works... " >&6; }
8229 LN_S=$as_ln_s
8230 if test "$LN_S" = "ln -s"; then
8231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8232 $as_echo "yes" >&6; }
8233 else
8234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8235 $as_echo "no, using $LN_S" >&6; }
8236 fi
8237
8238 # find the maximum length of command line arguments
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8240 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8241 if ${lt_cv_sys_max_cmd_len+:} false; then :
8242   $as_echo_n "(cached) " >&6
8243 else
8244     i=0
8245   teststring="ABCD"
8246
8247   case $build_os in
8248   msdosdjgpp*)
8249     # On DJGPP, this test can blow up pretty badly due to problems in libc
8250     # (any single argument exceeding 2000 bytes causes a buffer overrun
8251     # during glob expansion).  Even if it were fixed, the result of this
8252     # check would be larger than it should be.
8253     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8254     ;;
8255
8256   gnu*)
8257     # Under GNU Hurd, this test is not required because there is
8258     # no limit to the length of command line arguments.
8259     # Libtool will interpret -1 as no limit whatsoever
8260     lt_cv_sys_max_cmd_len=-1;
8261     ;;
8262
8263   cygwin* | mingw* | cegcc*)
8264     # On Win9x/ME, this test blows up -- it succeeds, but takes
8265     # about 5 minutes as the teststring grows exponentially.
8266     # Worse, since 9x/ME are not pre-emptively multitasking,
8267     # you end up with a "frozen" computer, even though with patience
8268     # the test eventually succeeds (with a max line length of 256k).
8269     # Instead, let's just punt: use the minimum linelength reported by
8270     # all of the supported platforms: 8192 (on NT/2K/XP).
8271     lt_cv_sys_max_cmd_len=8192;
8272     ;;
8273
8274   mint*)
8275     # On MiNT this can take a long time and run out of memory.
8276     lt_cv_sys_max_cmd_len=8192;
8277     ;;
8278
8279   amigaos*)
8280     # On AmigaOS with pdksh, this test takes hours, literally.
8281     # So we just punt and use a minimum line length of 8192.
8282     lt_cv_sys_max_cmd_len=8192;
8283     ;;
8284
8285   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8286     # This has been around since 386BSD, at least.  Likely further.
8287     if test -x /sbin/sysctl; then
8288       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8289     elif test -x /usr/sbin/sysctl; then
8290       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8291     else
8292       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
8293     fi
8294     # And add a safety zone
8295     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8296     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8297     ;;
8298
8299   interix*)
8300     # We know the value 262144 and hardcode it with a safety zone (like BSD)
8301     lt_cv_sys_max_cmd_len=196608
8302     ;;
8303
8304   osf*)
8305     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8306     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8307     # nice to cause kernel panics so lets avoid the loop below.
8308     # First set a reasonable default.
8309     lt_cv_sys_max_cmd_len=16384
8310     #
8311     if test -x /sbin/sysconfig; then
8312       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8313         *1*) lt_cv_sys_max_cmd_len=-1 ;;
8314       esac
8315     fi
8316     ;;
8317   sco3.2v5*)
8318     lt_cv_sys_max_cmd_len=102400
8319     ;;
8320   sysv5* | sco5v6* | sysv4.2uw2*)
8321     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8322     if test -n "$kargmax"; then
8323       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
8324     else
8325       lt_cv_sys_max_cmd_len=32768
8326     fi
8327     ;;
8328   *)
8329     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8330     if test -n "$lt_cv_sys_max_cmd_len"; then
8331       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8332       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8333     else
8334       # Make teststring a little bigger before we do anything with it.
8335       # a 1K string should be a reasonable start.
8336       for i in 1 2 3 4 5 6 7 8 ; do
8337         teststring=$teststring$teststring
8338       done
8339       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8340       # If test is not a shell built-in, we'll probably end up computing a
8341       # maximum length that is only half of the actual maximum length, but
8342       # we can't tell.
8343       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8344                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8345               test $i != 17 # 1/2 MB should be enough
8346       do
8347         i=`expr $i + 1`
8348         teststring=$teststring$teststring
8349       done
8350       # Only check the string length outside the loop.
8351       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8352       teststring=
8353       # Add a significant safety factor because C++ compilers can tack on
8354       # massive amounts of additional arguments before passing them to the
8355       # linker.  It appears as though 1/2 is a usable value.
8356       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8357     fi
8358     ;;
8359   esac
8360
8361 fi
8362
8363 if test -n $lt_cv_sys_max_cmd_len ; then
8364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8365 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8366 else
8367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8368 $as_echo "none" >&6; }
8369 fi
8370 max_cmd_len=$lt_cv_sys_max_cmd_len
8371
8372
8373
8374
8375
8376
8377 : ${CP="cp -f"}
8378 : ${MV="mv -f"}
8379 : ${RM="rm -f"}
8380
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8382 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8383 # Try some XSI features
8384 xsi_shell=no
8385 ( _lt_dummy="a/b/c"
8386   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8387       = c,a/b,b/c, \
8388     && eval 'test $(( 1 + 1 )) -eq 2 \
8389     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8390   && xsi_shell=yes
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8392 $as_echo "$xsi_shell" >&6; }
8393
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8396 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8397 lt_shell_append=no
8398 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8399     >/dev/null 2>&1 \
8400   && lt_shell_append=yes
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8402 $as_echo "$lt_shell_append" >&6; }
8403
8404
8405 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8406   lt_unset=unset
8407 else
8408   lt_unset=false
8409 fi
8410
8411
8412
8413
8414
8415 # test EBCDIC or ASCII
8416 case `echo X|tr X '\101'` in
8417  A) # ASCII based system
8418     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8419   lt_SP2NL='tr \040 \012'
8420   lt_NL2SP='tr \015\012 \040\040'
8421   ;;
8422  *) # EBCDIC based system
8423   lt_SP2NL='tr \100 \n'
8424   lt_NL2SP='tr \r\n \100\100'
8425   ;;
8426 esac
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8437 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8438 if ${lt_cv_to_host_file_cmd+:} false; then :
8439   $as_echo_n "(cached) " >&6
8440 else
8441   case $host in
8442   *-*-mingw* )
8443     case $build in
8444       *-*-mingw* ) # actually msys
8445         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8446         ;;
8447       *-*-cygwin* )
8448         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8449         ;;
8450       * ) # otherwise, assume *nix
8451         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8452         ;;
8453     esac
8454     ;;
8455   *-*-cygwin* )
8456     case $build in
8457       *-*-mingw* ) # actually msys
8458         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8459         ;;
8460       *-*-cygwin* )
8461         lt_cv_to_host_file_cmd=func_convert_file_noop
8462         ;;
8463       * ) # otherwise, assume *nix
8464         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8465         ;;
8466     esac
8467     ;;
8468   * ) # unhandled hosts (and "normal" native builds)
8469     lt_cv_to_host_file_cmd=func_convert_file_noop
8470     ;;
8471 esac
8472
8473 fi
8474
8475 to_host_file_cmd=$lt_cv_to_host_file_cmd
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8477 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8478
8479
8480
8481
8482
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8484 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8485 if ${lt_cv_to_tool_file_cmd+:} false; then :
8486   $as_echo_n "(cached) " >&6
8487 else
8488   #assume ordinary cross tools, or native build.
8489 lt_cv_to_tool_file_cmd=func_convert_file_noop
8490 case $host in
8491   *-*-mingw* )
8492     case $build in
8493       *-*-mingw* ) # actually msys
8494         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8495         ;;
8496     esac
8497     ;;
8498 esac
8499
8500 fi
8501
8502 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8504 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8505
8506
8507
8508
8509
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8511 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8512 if ${lt_cv_ld_reload_flag+:} false; then :
8513   $as_echo_n "(cached) " >&6
8514 else
8515   lt_cv_ld_reload_flag='-r'
8516 fi
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8518 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8519 reload_flag=$lt_cv_ld_reload_flag
8520 case $reload_flag in
8521 "" | " "*) ;;
8522 *) reload_flag=" $reload_flag" ;;
8523 esac
8524 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8525 case $host_os in
8526   cygwin* | mingw* | pw32* | cegcc*)
8527     if test "$GCC" != yes; then
8528       reload_cmds=false
8529     fi
8530     ;;
8531   darwin*)
8532     if test "$GCC" = yes; then
8533       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8534     else
8535       reload_cmds='$LD$reload_flag -o $output$reload_objs'
8536     fi
8537     ;;
8538 esac
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548 if test -n "$ac_tool_prefix"; then
8549   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8550 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8552 $as_echo_n "checking for $ac_word... " >&6; }
8553 if ${ac_cv_prog_OBJDUMP+:} false; then :
8554   $as_echo_n "(cached) " >&6
8555 else
8556   if test -n "$OBJDUMP"; then
8557   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8558 else
8559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 for as_dir in $PATH
8561 do
8562   IFS=$as_save_IFS
8563   test -z "$as_dir" && as_dir=.
8564     for ac_exec_ext in '' $ac_executable_extensions; do
8565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8566     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8568     break 2
8569   fi
8570 done
8571   done
8572 IFS=$as_save_IFS
8573
8574 fi
8575 fi
8576 OBJDUMP=$ac_cv_prog_OBJDUMP
8577 if test -n "$OBJDUMP"; then
8578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8579 $as_echo "$OBJDUMP" >&6; }
8580 else
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8582 $as_echo "no" >&6; }
8583 fi
8584
8585
8586 fi
8587 if test -z "$ac_cv_prog_OBJDUMP"; then
8588   ac_ct_OBJDUMP=$OBJDUMP
8589   # Extract the first word of "objdump", so it can be a program name with args.
8590 set dummy objdump; ac_word=$2
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8592 $as_echo_n "checking for $ac_word... " >&6; }
8593 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8594   $as_echo_n "(cached) " >&6
8595 else
8596   if test -n "$ac_ct_OBJDUMP"; then
8597   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8598 else
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8601 do
8602   IFS=$as_save_IFS
8603   test -z "$as_dir" && as_dir=.
8604     for ac_exec_ext in '' $ac_executable_extensions; do
8605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8606     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608     break 2
8609   fi
8610 done
8611   done
8612 IFS=$as_save_IFS
8613
8614 fi
8615 fi
8616 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8617 if test -n "$ac_ct_OBJDUMP"; then
8618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8619 $as_echo "$ac_ct_OBJDUMP" >&6; }
8620 else
8621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8622 $as_echo "no" >&6; }
8623 fi
8624
8625   if test "x$ac_ct_OBJDUMP" = x; then
8626     OBJDUMP="false"
8627   else
8628     case $cross_compiling:$ac_tool_warned in
8629 yes:)
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8631 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8632 ac_tool_warned=yes ;;
8633 esac
8634     OBJDUMP=$ac_ct_OBJDUMP
8635   fi
8636 else
8637   OBJDUMP="$ac_cv_prog_OBJDUMP"
8638 fi
8639
8640 test -z "$OBJDUMP" && OBJDUMP=objdump
8641
8642
8643
8644
8645
8646
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8648 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8649 if ${lt_cv_deplibs_check_method+:} false; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652   lt_cv_file_magic_cmd='$MAGIC_CMD'
8653 lt_cv_file_magic_test_file=
8654 lt_cv_deplibs_check_method='unknown'
8655 # Need to set the preceding variable on all platforms that support
8656 # interlibrary dependencies.
8657 # 'none' -- dependencies not supported.
8658 # `unknown' -- same as none, but documents that we really don't know.
8659 # 'pass_all' -- all dependencies passed with no checks.
8660 # 'test_compile' -- check by making test program.
8661 # 'file_magic [[regex]]' -- check by looking for files in library path
8662 # which responds to the $file_magic_cmd with a given extended regex.
8663 # If you have `file' or equivalent on your system and you're not sure
8664 # whether `pass_all' will *always* work, you probably want this one.
8665
8666 case $host_os in
8667 aix[4-9]*)
8668   lt_cv_deplibs_check_method=pass_all
8669   ;;
8670
8671 beos*)
8672   lt_cv_deplibs_check_method=pass_all
8673   ;;
8674
8675 bsdi[45]*)
8676   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8677   lt_cv_file_magic_cmd='/usr/bin/file -L'
8678   lt_cv_file_magic_test_file=/shlib/libc.so
8679   ;;
8680
8681 cygwin*)
8682   # func_win32_libid is a shell function defined in ltmain.sh
8683   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8684   lt_cv_file_magic_cmd='func_win32_libid'
8685   ;;
8686
8687 mingw* | pw32*)
8688   # Base MSYS/MinGW do not provide the 'file' command needed by
8689   # func_win32_libid shell function, so use a weaker test based on 'objdump',
8690   # unless we find 'file', for example because we are cross-compiling.
8691   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8692   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8693     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8694     lt_cv_file_magic_cmd='func_win32_libid'
8695   else
8696     # Keep this pattern in sync with the one in func_win32_libid.
8697     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8698     lt_cv_file_magic_cmd='$OBJDUMP -f'
8699   fi
8700   ;;
8701
8702 cegcc*)
8703   # use the weaker test based on 'objdump'. See mingw*.
8704   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8705   lt_cv_file_magic_cmd='$OBJDUMP -f'
8706   ;;
8707
8708 darwin* | rhapsody*)
8709   lt_cv_deplibs_check_method=pass_all
8710   ;;
8711
8712 freebsd* | dragonfly*)
8713   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8714     case $host_cpu in
8715     i*86 )
8716       # Not sure whether the presence of OpenBSD here was a mistake.
8717       # Let's accept both of them until this is cleared up.
8718       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8719       lt_cv_file_magic_cmd=/usr/bin/file
8720       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8721       ;;
8722     esac
8723   else
8724     lt_cv_deplibs_check_method=pass_all
8725   fi
8726   ;;
8727
8728 gnu*)
8729   lt_cv_deplibs_check_method=pass_all
8730   ;;
8731
8732 haiku*)
8733   lt_cv_deplibs_check_method=pass_all
8734   ;;
8735
8736 hpux10.20* | hpux11*)
8737   lt_cv_file_magic_cmd=/usr/bin/file
8738   case $host_cpu in
8739   ia64*)
8740     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8741     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8742     ;;
8743   hppa*64*)
8744     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]'
8745     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8746     ;;
8747   *)
8748     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8749     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8750     ;;
8751   esac
8752   ;;
8753
8754 interix[3-9]*)
8755   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8756   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8757   ;;
8758
8759 irix5* | irix6* | nonstopux*)
8760   case $LD in
8761   *-32|*"-32 ") libmagic=32-bit;;
8762   *-n32|*"-n32 ") libmagic=N32;;
8763   *-64|*"-64 ") libmagic=64-bit;;
8764   *) libmagic=never-match;;
8765   esac
8766   lt_cv_deplibs_check_method=pass_all
8767   ;;
8768
8769 # This must be Linux ELF.
8770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8771   lt_cv_deplibs_check_method=pass_all
8772   ;;
8773
8774 netbsd*)
8775   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8776     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8777   else
8778     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8779   fi
8780   ;;
8781
8782 newos6*)
8783   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8784   lt_cv_file_magic_cmd=/usr/bin/file
8785   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8786   ;;
8787
8788 *nto* | *qnx*)
8789   lt_cv_deplibs_check_method=pass_all
8790   ;;
8791
8792 openbsd*)
8793   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8794     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8795   else
8796     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8797   fi
8798   ;;
8799
8800 osf3* | osf4* | osf5*)
8801   lt_cv_deplibs_check_method=pass_all
8802   ;;
8803
8804 rdos*)
8805   lt_cv_deplibs_check_method=pass_all
8806   ;;
8807
8808 solaris*)
8809   lt_cv_deplibs_check_method=pass_all
8810   ;;
8811
8812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8813   lt_cv_deplibs_check_method=pass_all
8814   ;;
8815
8816 sysv4 | sysv4.3*)
8817   case $host_vendor in
8818   motorola)
8819     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]'
8820     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8821     ;;
8822   ncr)
8823     lt_cv_deplibs_check_method=pass_all
8824     ;;
8825   sequent)
8826     lt_cv_file_magic_cmd='/bin/file'
8827     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8828     ;;
8829   sni)
8830     lt_cv_file_magic_cmd='/bin/file'
8831     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8832     lt_cv_file_magic_test_file=/lib/libc.so
8833     ;;
8834   siemens)
8835     lt_cv_deplibs_check_method=pass_all
8836     ;;
8837   pc)
8838     lt_cv_deplibs_check_method=pass_all
8839     ;;
8840   esac
8841   ;;
8842
8843 tpf*)
8844   lt_cv_deplibs_check_method=pass_all
8845   ;;
8846 esac
8847
8848 fi
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8850 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8851
8852 file_magic_glob=
8853 want_nocaseglob=no
8854 if test "$build" = "$host"; then
8855   case $host_os in
8856   mingw* | pw32*)
8857     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8858       want_nocaseglob=yes
8859     else
8860       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8861     fi
8862     ;;
8863   esac
8864 fi
8865
8866 file_magic_cmd=$lt_cv_file_magic_cmd
8867 deplibs_check_method=$lt_cv_deplibs_check_method
8868 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891 if test -n "$ac_tool_prefix"; then
8892   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8893 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8895 $as_echo_n "checking for $ac_word... " >&6; }
8896 if ${ac_cv_prog_DLLTOOL+:} false; then :
8897   $as_echo_n "(cached) " >&6
8898 else
8899   if test -n "$DLLTOOL"; then
8900   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8901 else
8902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8903 for as_dir in $PATH
8904 do
8905   IFS=$as_save_IFS
8906   test -z "$as_dir" && as_dir=.
8907     for ac_exec_ext in '' $ac_executable_extensions; do
8908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8909     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8911     break 2
8912   fi
8913 done
8914   done
8915 IFS=$as_save_IFS
8916
8917 fi
8918 fi
8919 DLLTOOL=$ac_cv_prog_DLLTOOL
8920 if test -n "$DLLTOOL"; then
8921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8922 $as_echo "$DLLTOOL" >&6; }
8923 else
8924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8925 $as_echo "no" >&6; }
8926 fi
8927
8928
8929 fi
8930 if test -z "$ac_cv_prog_DLLTOOL"; then
8931   ac_ct_DLLTOOL=$DLLTOOL
8932   # Extract the first word of "dlltool", so it can be a program name with args.
8933 set dummy dlltool; ac_word=$2
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8935 $as_echo_n "checking for $ac_word... " >&6; }
8936 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8937   $as_echo_n "(cached) " >&6
8938 else
8939   if test -n "$ac_ct_DLLTOOL"; then
8940   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8941 else
8942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8943 for as_dir in $PATH
8944 do
8945   IFS=$as_save_IFS
8946   test -z "$as_dir" && as_dir=.
8947     for ac_exec_ext in '' $ac_executable_extensions; do
8948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8949     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8951     break 2
8952   fi
8953 done
8954   done
8955 IFS=$as_save_IFS
8956
8957 fi
8958 fi
8959 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8960 if test -n "$ac_ct_DLLTOOL"; then
8961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8962 $as_echo "$ac_ct_DLLTOOL" >&6; }
8963 else
8964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8966 fi
8967
8968   if test "x$ac_ct_DLLTOOL" = x; then
8969     DLLTOOL="false"
8970   else
8971     case $cross_compiling:$ac_tool_warned in
8972 yes:)
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8975 ac_tool_warned=yes ;;
8976 esac
8977     DLLTOOL=$ac_ct_DLLTOOL
8978   fi
8979 else
8980   DLLTOOL="$ac_cv_prog_DLLTOOL"
8981 fi
8982
8983 test -z "$DLLTOOL" && DLLTOOL=dlltool
8984
8985
8986
8987
8988
8989
8990
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8992 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8993 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   lt_cv_sharedlib_from_linklib_cmd='unknown'
8997
8998 case $host_os in
8999 cygwin* | mingw* | pw32* | cegcc*)
9000   # two different shell functions defined in ltmain.sh
9001   # decide which to use based on capabilities of $DLLTOOL
9002   case `$DLLTOOL --help 2>&1` in
9003   *--identify-strict*)
9004     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9005     ;;
9006   *)
9007     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9008     ;;
9009   esac
9010   ;;
9011 *)
9012   # fallback: assume linklib IS sharedlib
9013   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9014   ;;
9015 esac
9016
9017 fi
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9019 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9020 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9021 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9022
9023
9024
9025
9026
9027
9028
9029 if test -n "$ac_tool_prefix"; then
9030   for ac_prog in ar
9031   do
9032     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9033 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9035 $as_echo_n "checking for $ac_word... " >&6; }
9036 if ${ac_cv_prog_AR+:} false; then :
9037   $as_echo_n "(cached) " >&6
9038 else
9039   if test -n "$AR"; then
9040   ac_cv_prog_AR="$AR" # Let the user override the test.
9041 else
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in $PATH
9044 do
9045   IFS=$as_save_IFS
9046   test -z "$as_dir" && as_dir=.
9047     for ac_exec_ext in '' $ac_executable_extensions; do
9048   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051     break 2
9052   fi
9053 done
9054   done
9055 IFS=$as_save_IFS
9056
9057 fi
9058 fi
9059 AR=$ac_cv_prog_AR
9060 if test -n "$AR"; then
9061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9062 $as_echo "$AR" >&6; }
9063 else
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9065 $as_echo "no" >&6; }
9066 fi
9067
9068
9069     test -n "$AR" && break
9070   done
9071 fi
9072 if test -z "$AR"; then
9073   ac_ct_AR=$AR
9074   for ac_prog in ar
9075 do
9076   # Extract the first word of "$ac_prog", so it can be a program name with args.
9077 set dummy $ac_prog; ac_word=$2
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9079 $as_echo_n "checking for $ac_word... " >&6; }
9080 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9081   $as_echo_n "(cached) " >&6
9082 else
9083   if test -n "$ac_ct_AR"; then
9084   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9085 else
9086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9087 for as_dir in $PATH
9088 do
9089   IFS=$as_save_IFS
9090   test -z "$as_dir" && as_dir=.
9091     for ac_exec_ext in '' $ac_executable_extensions; do
9092   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9093     ac_cv_prog_ac_ct_AR="$ac_prog"
9094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9095     break 2
9096   fi
9097 done
9098   done
9099 IFS=$as_save_IFS
9100
9101 fi
9102 fi
9103 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9104 if test -n "$ac_ct_AR"; then
9105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9106 $as_echo "$ac_ct_AR" >&6; }
9107 else
9108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9109 $as_echo "no" >&6; }
9110 fi
9111
9112
9113   test -n "$ac_ct_AR" && break
9114 done
9115
9116   if test "x$ac_ct_AR" = x; then
9117     AR="false"
9118   else
9119     case $cross_compiling:$ac_tool_warned in
9120 yes:)
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9122 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9123 ac_tool_warned=yes ;;
9124 esac
9125     AR=$ac_ct_AR
9126   fi
9127 fi
9128
9129 : ${AR=ar}
9130 : ${AR_FLAGS=cru}
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9143 $as_echo_n "checking for archiver @FILE support... " >&6; }
9144 if ${lt_cv_ar_at_file+:} false; then :
9145   $as_echo_n "(cached) " >&6
9146 else
9147   lt_cv_ar_at_file=no
9148    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h.  */
9150
9151 int
9152 main ()
9153 {
9154
9155   ;
9156   return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_compile "$LINENO"; then :
9160   echo conftest.$ac_objext > conftest.lst
9161       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9162       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9163   (eval $lt_ar_try) 2>&5
9164   ac_status=$?
9165   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9166   test $ac_status = 0; }
9167       if test "$ac_status" -eq 0; then
9168         # Ensure the archiver fails upon bogus file names.
9169         rm -f conftest.$ac_objext libconftest.a
9170         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9171   (eval $lt_ar_try) 2>&5
9172   ac_status=$?
9173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9174   test $ac_status = 0; }
9175         if test "$ac_status" -ne 0; then
9176           lt_cv_ar_at_file=@
9177         fi
9178       fi
9179       rm -f conftest.* libconftest.a
9180
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9183
9184 fi
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9186 $as_echo "$lt_cv_ar_at_file" >&6; }
9187
9188 if test "x$lt_cv_ar_at_file" = xno; then
9189   archiver_list_spec=
9190 else
9191   archiver_list_spec=$lt_cv_ar_at_file
9192 fi
9193
9194
9195
9196
9197
9198
9199
9200 if test -n "$ac_tool_prefix"; then
9201   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9202 set dummy ${ac_tool_prefix}strip; ac_word=$2
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9204 $as_echo_n "checking for $ac_word... " >&6; }
9205 if ${ac_cv_prog_STRIP+:} false; then :
9206   $as_echo_n "(cached) " >&6
9207 else
9208   if test -n "$STRIP"; then
9209   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9210 else
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9213 do
9214   IFS=$as_save_IFS
9215   test -z "$as_dir" && as_dir=.
9216     for ac_exec_ext in '' $ac_executable_extensions; do
9217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220     break 2
9221   fi
9222 done
9223   done
9224 IFS=$as_save_IFS
9225
9226 fi
9227 fi
9228 STRIP=$ac_cv_prog_STRIP
9229 if test -n "$STRIP"; then
9230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9231 $as_echo "$STRIP" >&6; }
9232 else
9233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; }
9235 fi
9236
9237
9238 fi
9239 if test -z "$ac_cv_prog_STRIP"; then
9240   ac_ct_STRIP=$STRIP
9241   # Extract the first word of "strip", so it can be a program name with args.
9242 set dummy strip; ac_word=$2
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9244 $as_echo_n "checking for $ac_word... " >&6; }
9245 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9246   $as_echo_n "(cached) " >&6
9247 else
9248   if test -n "$ac_ct_STRIP"; then
9249   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9250 else
9251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9252 for as_dir in $PATH
9253 do
9254   IFS=$as_save_IFS
9255   test -z "$as_dir" && as_dir=.
9256     for ac_exec_ext in '' $ac_executable_extensions; do
9257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9258     ac_cv_prog_ac_ct_STRIP="strip"
9259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9260     break 2
9261   fi
9262 done
9263   done
9264 IFS=$as_save_IFS
9265
9266 fi
9267 fi
9268 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9269 if test -n "$ac_ct_STRIP"; then
9270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9271 $as_echo "$ac_ct_STRIP" >&6; }
9272 else
9273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9275 fi
9276
9277   if test "x$ac_ct_STRIP" = x; then
9278     STRIP=":"
9279   else
9280     case $cross_compiling:$ac_tool_warned in
9281 yes:)
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9284 ac_tool_warned=yes ;;
9285 esac
9286     STRIP=$ac_ct_STRIP
9287   fi
9288 else
9289   STRIP="$ac_cv_prog_STRIP"
9290 fi
9291
9292 test -z "$STRIP" && STRIP=:
9293
9294
9295
9296
9297
9298
9299 if test -n "$ac_tool_prefix"; then
9300   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9301 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9303 $as_echo_n "checking for $ac_word... " >&6; }
9304 if ${ac_cv_prog_RANLIB+:} false; then :
9305   $as_echo_n "(cached) " >&6
9306 else
9307   if test -n "$RANLIB"; then
9308   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9309 else
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 for as_dir in $PATH
9312 do
9313   IFS=$as_save_IFS
9314   test -z "$as_dir" && as_dir=.
9315     for ac_exec_ext in '' $ac_executable_extensions; do
9316   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9317     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319     break 2
9320   fi
9321 done
9322   done
9323 IFS=$as_save_IFS
9324
9325 fi
9326 fi
9327 RANLIB=$ac_cv_prog_RANLIB
9328 if test -n "$RANLIB"; then
9329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9330 $as_echo "$RANLIB" >&6; }
9331 else
9332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9333 $as_echo "no" >&6; }
9334 fi
9335
9336
9337 fi
9338 if test -z "$ac_cv_prog_RANLIB"; then
9339   ac_ct_RANLIB=$RANLIB
9340   # Extract the first word of "ranlib", so it can be a program name with args.
9341 set dummy ranlib; ac_word=$2
9342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9343 $as_echo_n "checking for $ac_word... " >&6; }
9344 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9345   $as_echo_n "(cached) " >&6
9346 else
9347   if test -n "$ac_ct_RANLIB"; then
9348   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9349 else
9350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9351 for as_dir in $PATH
9352 do
9353   IFS=$as_save_IFS
9354   test -z "$as_dir" && as_dir=.
9355     for ac_exec_ext in '' $ac_executable_extensions; do
9356   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9357     ac_cv_prog_ac_ct_RANLIB="ranlib"
9358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9359     break 2
9360   fi
9361 done
9362   done
9363 IFS=$as_save_IFS
9364
9365 fi
9366 fi
9367 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9368 if test -n "$ac_ct_RANLIB"; then
9369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9370 $as_echo "$ac_ct_RANLIB" >&6; }
9371 else
9372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9374 fi
9375
9376   if test "x$ac_ct_RANLIB" = x; then
9377     RANLIB=":"
9378   else
9379     case $cross_compiling:$ac_tool_warned in
9380 yes:)
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9383 ac_tool_warned=yes ;;
9384 esac
9385     RANLIB=$ac_ct_RANLIB
9386   fi
9387 else
9388   RANLIB="$ac_cv_prog_RANLIB"
9389 fi
9390
9391 test -z "$RANLIB" && RANLIB=:
9392
9393
9394
9395
9396
9397
9398 # Determine commands to create old-style static archives.
9399 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9400 old_postinstall_cmds='chmod 644 $oldlib'
9401 old_postuninstall_cmds=
9402
9403 if test -n "$RANLIB"; then
9404   case $host_os in
9405   openbsd*)
9406     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9407     ;;
9408   *)
9409     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9410     ;;
9411   esac
9412   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9413 fi
9414
9415 case $host_os in
9416   darwin*)
9417     lock_old_archive_extraction=yes ;;
9418   *)
9419     lock_old_archive_extraction=no ;;
9420 esac
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460 # If no C compiler was specified, use CC.
9461 LTCC=${LTCC-"$CC"}
9462
9463 # If no C compiler flags were specified, use CFLAGS.
9464 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9465
9466 # Allow CC to be a program name with arguments.
9467 compiler=$CC
9468
9469
9470 # Check for command to grab the raw symbol name followed by C symbol from nm.
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9472 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9473 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9474   $as_echo_n "(cached) " >&6
9475 else
9476
9477 # These are sane defaults that work on at least a few old systems.
9478 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9479
9480 # Character class describing NM global symbol codes.
9481 symcode='[BCDEGRST]'
9482
9483 # Regexp to match symbols that can be accessed directly from C.
9484 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9485
9486 # Define system-specific variables.
9487 case $host_os in
9488 aix*)
9489   symcode='[BCDT]'
9490   ;;
9491 cygwin* | mingw* | pw32* | cegcc*)
9492   symcode='[ABCDGISTW]'
9493   ;;
9494 hpux*)
9495   if test "$host_cpu" = ia64; then
9496     symcode='[ABCDEGRST]'
9497   fi
9498   ;;
9499 irix* | nonstopux*)
9500   symcode='[BCDEGRST]'
9501   ;;
9502 osf*)
9503   symcode='[BCDEGQRST]'
9504   ;;
9505 solaris*)
9506   symcode='[BDRT]'
9507   ;;
9508 sco3.2v5*)
9509   symcode='[DT]'
9510   ;;
9511 sysv4.2uw2*)
9512   symcode='[DT]'
9513   ;;
9514 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9515   symcode='[ABDT]'
9516   ;;
9517 sysv4)
9518   symcode='[DFNSTU]'
9519   ;;
9520 esac
9521
9522 # If we're using GNU nm, then use its standard symbol codes.
9523 case `$NM -V 2>&1` in
9524 *GNU* | *'with BFD'*)
9525   symcode='[ABCDGIRSTW]' ;;
9526 esac
9527
9528 # Transform an extracted symbol line into a proper C declaration.
9529 # Some systems (esp. on ia64) link data and code symbols differently,
9530 # so use this general approach.
9531 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9532
9533 # Transform an extracted symbol line into symbol name and symbol address
9534 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9535 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'"
9536
9537 # Handle CRLF in mingw tool chain
9538 opt_cr=
9539 case $build_os in
9540 mingw*)
9541   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9542   ;;
9543 esac
9544
9545 # Try without a prefix underscore, then with it.
9546 for ac_symprfx in "" "_"; do
9547
9548   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9549   symxfrm="\\1 $ac_symprfx\\2 \\2"
9550
9551   # Write the raw and C identifiers.
9552   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9553     # Fake it for dumpbin and say T for any non-static function
9554     # and D for any global variable.
9555     # Also find C++ and __fastcall symbols from MSVC++,
9556     # which start with @ or ?.
9557     lt_cv_sys_global_symbol_pipe="$AWK '"\
9558 "     {last_section=section; section=\$ 3};"\
9559 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9560 "     \$ 0!~/External *\|/{next};"\
9561 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9562 "     {if(hide[section]) next};"\
9563 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9564 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9565 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9566 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9567 "     ' prfx=^$ac_symprfx"
9568   else
9569     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9570   fi
9571   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9572
9573   # Check to see that the pipe works correctly.
9574   pipe_works=no
9575
9576   rm -f conftest*
9577   cat > conftest.$ac_ext <<_LT_EOF
9578 #ifdef __cplusplus
9579 extern "C" {
9580 #endif
9581 char nm_test_var;
9582 void nm_test_func(void);
9583 void nm_test_func(void){}
9584 #ifdef __cplusplus
9585 }
9586 #endif
9587 int main(){nm_test_var='a';nm_test_func();return(0);}
9588 _LT_EOF
9589
9590   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9591   (eval $ac_compile) 2>&5
9592   ac_status=$?
9593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9594   test $ac_status = 0; }; then
9595     # Now try to grab the symbols.
9596     nlist=conftest.nm
9597     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9598   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9599   ac_status=$?
9600   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9601   test $ac_status = 0; } && test -s "$nlist"; then
9602       # Try sorting and uniquifying the output.
9603       if sort "$nlist" | uniq > "$nlist"T; then
9604         mv -f "$nlist"T "$nlist"
9605       else
9606         rm -f "$nlist"T
9607       fi
9608
9609       # Make sure that we snagged all the symbols we need.
9610       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9611         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9612           cat <<_LT_EOF > conftest.$ac_ext
9613 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9614 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9615 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9616    relocations are performed -- see ld's documentation on pseudo-relocs.  */
9617 # define LT_DLSYM_CONST
9618 #elif defined(__osf__)
9619 /* This system does not cope well with relocations in const data.  */
9620 # define LT_DLSYM_CONST
9621 #else
9622 # define LT_DLSYM_CONST const
9623 #endif
9624
9625 #ifdef __cplusplus
9626 extern "C" {
9627 #endif
9628
9629 _LT_EOF
9630           # Now generate the symbol file.
9631           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9632
9633           cat <<_LT_EOF >> conftest.$ac_ext
9634
9635 /* The mapping between symbol names and symbols.  */
9636 LT_DLSYM_CONST struct {
9637   const char *name;
9638   void       *address;
9639 }
9640 lt__PROGRAM__LTX_preloaded_symbols[] =
9641 {
9642   { "@PROGRAM@", (void *) 0 },
9643 _LT_EOF
9644           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9645           cat <<\_LT_EOF >> conftest.$ac_ext
9646   {0, (void *) 0}
9647 };
9648
9649 /* This works around a problem in FreeBSD linker */
9650 #ifdef FREEBSD_WORKAROUND
9651 static const void *lt_preloaded_setup() {
9652   return lt__PROGRAM__LTX_preloaded_symbols;
9653 }
9654 #endif
9655
9656 #ifdef __cplusplus
9657 }
9658 #endif
9659 _LT_EOF
9660           # Now try linking the two files.
9661           mv conftest.$ac_objext conftstm.$ac_objext
9662           lt_globsym_save_LIBS=$LIBS
9663           lt_globsym_save_CFLAGS=$CFLAGS
9664           LIBS="conftstm.$ac_objext"
9665           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9666           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9667   (eval $ac_link) 2>&5
9668   ac_status=$?
9669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9670   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9671             pipe_works=yes
9672           fi
9673           LIBS=$lt_globsym_save_LIBS
9674           CFLAGS=$lt_globsym_save_CFLAGS
9675         else
9676           echo "cannot find nm_test_func in $nlist" >&5
9677         fi
9678       else
9679         echo "cannot find nm_test_var in $nlist" >&5
9680       fi
9681     else
9682       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9683     fi
9684   else
9685     echo "$progname: failed program was:" >&5
9686     cat conftest.$ac_ext >&5
9687   fi
9688   rm -rf conftest* conftst*
9689
9690   # Do not use the global_symbol_pipe unless it works.
9691   if test "$pipe_works" = yes; then
9692     break
9693   else
9694     lt_cv_sys_global_symbol_pipe=
9695   fi
9696 done
9697
9698 fi
9699
9700 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9701   lt_cv_sys_global_symbol_to_cdecl=
9702 fi
9703 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9705 $as_echo "failed" >&6; }
9706 else
9707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9708 $as_echo "ok" >&6; }
9709 fi
9710
9711 # Response file support.
9712 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9713   nm_file_list_spec='@'
9714 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9715   nm_file_list_spec='@'
9716 fi
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9745 $as_echo_n "checking for sysroot... " >&6; }
9746
9747 # Check whether --with-sysroot was given.
9748 if test "${with_sysroot+set}" = set; then :
9749   withval=$with_sysroot;
9750 else
9751   with_sysroot=no
9752 fi
9753
9754
9755 lt_sysroot=
9756 case ${with_sysroot} in #(
9757  yes)
9758    if test "$GCC" = yes; then
9759      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9760    fi
9761    ;; #(
9762  /*)
9763    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9764    ;; #(
9765  no|'')
9766    ;; #(
9767  *)
9768    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9769 $as_echo "${with_sysroot}" >&6; }
9770    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9771    ;;
9772 esac
9773
9774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9775 $as_echo "${lt_sysroot:-no}" >&6; }
9776
9777
9778
9779
9780
9781 # Check whether --enable-libtool-lock was given.
9782 if test "${enable_libtool_lock+set}" = set; then :
9783   enableval=$enable_libtool_lock;
9784 fi
9785
9786 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9787
9788 # Some flags need to be propagated to the compiler or linker for good
9789 # libtool support.
9790 case $host in
9791 ia64-*-hpux*)
9792   # Find out which ABI we are using.
9793   echo 'int i;' > conftest.$ac_ext
9794   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9795   (eval $ac_compile) 2>&5
9796   ac_status=$?
9797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9798   test $ac_status = 0; }; then
9799     case `/usr/bin/file conftest.$ac_objext` in
9800       *ELF-32*)
9801         HPUX_IA64_MODE="32"
9802         ;;
9803       *ELF-64*)
9804         HPUX_IA64_MODE="64"
9805         ;;
9806     esac
9807   fi
9808   rm -rf conftest*
9809   ;;
9810 *-*-irix6*)
9811   # Find out which ABI we are using.
9812   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9813   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9814   (eval $ac_compile) 2>&5
9815   ac_status=$?
9816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9817   test $ac_status = 0; }; then
9818     if test "$lt_cv_prog_gnu_ld" = yes; then
9819       case `/usr/bin/file conftest.$ac_objext` in
9820         *32-bit*)
9821           LD="${LD-ld} -melf32bsmip"
9822           ;;
9823         *N32*)
9824           LD="${LD-ld} -melf32bmipn32"
9825           ;;
9826         *64-bit*)
9827           LD="${LD-ld} -melf64bmip"
9828         ;;
9829       esac
9830     else
9831       case `/usr/bin/file conftest.$ac_objext` in
9832         *32-bit*)
9833           LD="${LD-ld} -32"
9834           ;;
9835         *N32*)
9836           LD="${LD-ld} -n32"
9837           ;;
9838         *64-bit*)
9839           LD="${LD-ld} -64"
9840           ;;
9841       esac
9842     fi
9843   fi
9844   rm -rf conftest*
9845   ;;
9846
9847 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9848 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9849   # Find out which ABI we are using.
9850   echo 'int i;' > conftest.$ac_ext
9851   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9852   (eval $ac_compile) 2>&5
9853   ac_status=$?
9854   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9855   test $ac_status = 0; }; then
9856     case `/usr/bin/file conftest.o` in
9857       *32-bit*)
9858         case $host in
9859           x86_64-*kfreebsd*-gnu)
9860             LD="${LD-ld} -m elf_i386_fbsd"
9861             ;;
9862           x86_64-*linux*)
9863             LD="${LD-ld} -m elf_i386"
9864             ;;
9865           ppc64-*linux*|powerpc64-*linux*)
9866             LD="${LD-ld} -m elf32ppclinux"
9867             ;;
9868           s390x-*linux*)
9869             LD="${LD-ld} -m elf_s390"
9870             ;;
9871           sparc64-*linux*)
9872             LD="${LD-ld} -m elf32_sparc"
9873             ;;
9874         esac
9875         ;;
9876       *64-bit*)
9877         case $host in
9878           x86_64-*kfreebsd*-gnu)
9879             LD="${LD-ld} -m elf_x86_64_fbsd"
9880             ;;
9881           x86_64-*linux*)
9882             LD="${LD-ld} -m elf_x86_64"
9883             ;;
9884           ppc*-*linux*|powerpc*-*linux*)
9885             LD="${LD-ld} -m elf64ppc"
9886             ;;
9887           s390*-*linux*|s390*-*tpf*)
9888             LD="${LD-ld} -m elf64_s390"
9889             ;;
9890           sparc*-*linux*)
9891             LD="${LD-ld} -m elf64_sparc"
9892             ;;
9893         esac
9894         ;;
9895     esac
9896   fi
9897   rm -rf conftest*
9898   ;;
9899
9900 *-*-sco3.2v5*)
9901   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9902   SAVE_CFLAGS="$CFLAGS"
9903   CFLAGS="$CFLAGS -belf"
9904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9905 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9906 if ${lt_cv_cc_needs_belf+:} false; then :
9907   $as_echo_n "(cached) " >&6
9908 else
9909   ac_ext=c
9910 ac_cpp='$CPP $CPPFLAGS'
9911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9914
9915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h.  */
9917
9918 int
9919 main ()
9920 {
9921
9922   ;
9923   return 0;
9924 }
9925 _ACEOF
9926 if ac_fn_c_try_link "$LINENO"; then :
9927   lt_cv_cc_needs_belf=yes
9928 else
9929   lt_cv_cc_needs_belf=no
9930 fi
9931 rm -f core conftest.err conftest.$ac_objext \
9932     conftest$ac_exeext conftest.$ac_ext
9933      ac_ext=c
9934 ac_cpp='$CPP $CPPFLAGS'
9935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9938
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9942   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9943     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9944     CFLAGS="$SAVE_CFLAGS"
9945   fi
9946   ;;
9947 sparc*-*solaris*)
9948   # Find out which ABI we are using.
9949   echo 'int i;' > conftest.$ac_ext
9950   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9951   (eval $ac_compile) 2>&5
9952   ac_status=$?
9953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9954   test $ac_status = 0; }; then
9955     case `/usr/bin/file conftest.o` in
9956     *64-bit*)
9957       case $lt_cv_prog_gnu_ld in
9958       yes*) LD="${LD-ld} -m elf64_sparc" ;;
9959       *)
9960         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9961           LD="${LD-ld} -64"
9962         fi
9963         ;;
9964       esac
9965       ;;
9966     esac
9967   fi
9968   rm -rf conftest*
9969   ;;
9970 esac
9971
9972 need_locks="$enable_libtool_lock"
9973
9974 if test -n "$ac_tool_prefix"; then
9975   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9976 set dummy ${ac_tool_prefix}mt; ac_word=$2
9977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9978 $as_echo_n "checking for $ac_word... " >&6; }
9979 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9980   $as_echo_n "(cached) " >&6
9981 else
9982   if test -n "$MANIFEST_TOOL"; then
9983   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9984 else
9985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9986 for as_dir in $PATH
9987 do
9988   IFS=$as_save_IFS
9989   test -z "$as_dir" && as_dir=.
9990     for ac_exec_ext in '' $ac_executable_extensions; do
9991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9992     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9994     break 2
9995   fi
9996 done
9997   done
9998 IFS=$as_save_IFS
9999
10000 fi
10001 fi
10002 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10003 if test -n "$MANIFEST_TOOL"; then
10004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10005 $as_echo "$MANIFEST_TOOL" >&6; }
10006 else
10007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10008 $as_echo "no" >&6; }
10009 fi
10010
10011
10012 fi
10013 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10014   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10015   # Extract the first word of "mt", so it can be a program name with args.
10016 set dummy mt; ac_word=$2
10017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018 $as_echo_n "checking for $ac_word... " >&6; }
10019 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10020   $as_echo_n "(cached) " >&6
10021 else
10022   if test -n "$ac_ct_MANIFEST_TOOL"; then
10023   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10024 else
10025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026 for as_dir in $PATH
10027 do
10028   IFS=$as_save_IFS
10029   test -z "$as_dir" && as_dir=.
10030     for ac_exec_ext in '' $ac_executable_extensions; do
10031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034     break 2
10035   fi
10036 done
10037   done
10038 IFS=$as_save_IFS
10039
10040 fi
10041 fi
10042 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10043 if test -n "$ac_ct_MANIFEST_TOOL"; then
10044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10045 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10046 else
10047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048 $as_echo "no" >&6; }
10049 fi
10050
10051   if test "x$ac_ct_MANIFEST_TOOL" = x; then
10052     MANIFEST_TOOL=":"
10053   else
10054     case $cross_compiling:$ac_tool_warned in
10055 yes:)
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10057 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10058 ac_tool_warned=yes ;;
10059 esac
10060     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10061   fi
10062 else
10063   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10064 fi
10065
10066 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10068 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10069 if ${lt_cv_path_mainfest_tool+:} false; then :
10070   $as_echo_n "(cached) " >&6
10071 else
10072   lt_cv_path_mainfest_tool=no
10073   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10074   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10075   cat conftest.err >&5
10076   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10077     lt_cv_path_mainfest_tool=yes
10078   fi
10079   rm -f conftest*
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10082 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10083 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10084   MANIFEST_TOOL=:
10085 fi
10086
10087
10088
10089
10090
10091
10092   case $host_os in
10093     rhapsody* | darwin*)
10094     if test -n "$ac_tool_prefix"; then
10095   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10096 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10098 $as_echo_n "checking for $ac_word... " >&6; }
10099 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10100   $as_echo_n "(cached) " >&6
10101 else
10102   if test -n "$DSYMUTIL"; then
10103   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10104 else
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10107 do
10108   IFS=$as_save_IFS
10109   test -z "$as_dir" && as_dir=.
10110     for ac_exec_ext in '' $ac_executable_extensions; do
10111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10112     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10114     break 2
10115   fi
10116 done
10117   done
10118 IFS=$as_save_IFS
10119
10120 fi
10121 fi
10122 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10123 if test -n "$DSYMUTIL"; then
10124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10125 $as_echo "$DSYMUTIL" >&6; }
10126 else
10127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10128 $as_echo "no" >&6; }
10129 fi
10130
10131
10132 fi
10133 if test -z "$ac_cv_prog_DSYMUTIL"; then
10134   ac_ct_DSYMUTIL=$DSYMUTIL
10135   # Extract the first word of "dsymutil", so it can be a program name with args.
10136 set dummy dsymutil; ac_word=$2
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10138 $as_echo_n "checking for $ac_word... " >&6; }
10139 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10140   $as_echo_n "(cached) " >&6
10141 else
10142   if test -n "$ac_ct_DSYMUTIL"; then
10143   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10144 else
10145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10146 for as_dir in $PATH
10147 do
10148   IFS=$as_save_IFS
10149   test -z "$as_dir" && as_dir=.
10150     for ac_exec_ext in '' $ac_executable_extensions; do
10151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10152     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10154     break 2
10155   fi
10156 done
10157   done
10158 IFS=$as_save_IFS
10159
10160 fi
10161 fi
10162 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10163 if test -n "$ac_ct_DSYMUTIL"; then
10164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10165 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10166 else
10167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10168 $as_echo "no" >&6; }
10169 fi
10170
10171   if test "x$ac_ct_DSYMUTIL" = x; then
10172     DSYMUTIL=":"
10173   else
10174     case $cross_compiling:$ac_tool_warned in
10175 yes:)
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10178 ac_tool_warned=yes ;;
10179 esac
10180     DSYMUTIL=$ac_ct_DSYMUTIL
10181   fi
10182 else
10183   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10184 fi
10185
10186     if test -n "$ac_tool_prefix"; then
10187   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10188 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10190 $as_echo_n "checking for $ac_word... " >&6; }
10191 if ${ac_cv_prog_NMEDIT+:} false; then :
10192   $as_echo_n "(cached) " >&6
10193 else
10194   if test -n "$NMEDIT"; then
10195   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10196 else
10197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10198 for as_dir in $PATH
10199 do
10200   IFS=$as_save_IFS
10201   test -z "$as_dir" && as_dir=.
10202     for ac_exec_ext in '' $ac_executable_extensions; do
10203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10204     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10206     break 2
10207   fi
10208 done
10209   done
10210 IFS=$as_save_IFS
10211
10212 fi
10213 fi
10214 NMEDIT=$ac_cv_prog_NMEDIT
10215 if test -n "$NMEDIT"; then
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10217 $as_echo "$NMEDIT" >&6; }
10218 else
10219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10221 fi
10222
10223
10224 fi
10225 if test -z "$ac_cv_prog_NMEDIT"; then
10226   ac_ct_NMEDIT=$NMEDIT
10227   # Extract the first word of "nmedit", so it can be a program name with args.
10228 set dummy nmedit; ac_word=$2
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10230 $as_echo_n "checking for $ac_word... " >&6; }
10231 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10232   $as_echo_n "(cached) " >&6
10233 else
10234   if test -n "$ac_ct_NMEDIT"; then
10235   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10236 else
10237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10238 for as_dir in $PATH
10239 do
10240   IFS=$as_save_IFS
10241   test -z "$as_dir" && as_dir=.
10242     for ac_exec_ext in '' $ac_executable_extensions; do
10243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10244     ac_cv_prog_ac_ct_NMEDIT="nmedit"
10245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10246     break 2
10247   fi
10248 done
10249   done
10250 IFS=$as_save_IFS
10251
10252 fi
10253 fi
10254 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10255 if test -n "$ac_ct_NMEDIT"; then
10256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10257 $as_echo "$ac_ct_NMEDIT" >&6; }
10258 else
10259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10260 $as_echo "no" >&6; }
10261 fi
10262
10263   if test "x$ac_ct_NMEDIT" = x; then
10264     NMEDIT=":"
10265   else
10266     case $cross_compiling:$ac_tool_warned in
10267 yes:)
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10270 ac_tool_warned=yes ;;
10271 esac
10272     NMEDIT=$ac_ct_NMEDIT
10273   fi
10274 else
10275   NMEDIT="$ac_cv_prog_NMEDIT"
10276 fi
10277
10278     if test -n "$ac_tool_prefix"; then
10279   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10280 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10282 $as_echo_n "checking for $ac_word... " >&6; }
10283 if ${ac_cv_prog_LIPO+:} false; then :
10284   $as_echo_n "(cached) " >&6
10285 else
10286   if test -n "$LIPO"; then
10287   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10288 else
10289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10290 for as_dir in $PATH
10291 do
10292   IFS=$as_save_IFS
10293   test -z "$as_dir" && as_dir=.
10294     for ac_exec_ext in '' $ac_executable_extensions; do
10295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10296     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10298     break 2
10299   fi
10300 done
10301   done
10302 IFS=$as_save_IFS
10303
10304 fi
10305 fi
10306 LIPO=$ac_cv_prog_LIPO
10307 if test -n "$LIPO"; then
10308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10309 $as_echo "$LIPO" >&6; }
10310 else
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10312 $as_echo "no" >&6; }
10313 fi
10314
10315
10316 fi
10317 if test -z "$ac_cv_prog_LIPO"; then
10318   ac_ct_LIPO=$LIPO
10319   # Extract the first word of "lipo", so it can be a program name with args.
10320 set dummy lipo; ac_word=$2
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10322 $as_echo_n "checking for $ac_word... " >&6; }
10323 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10324   $as_echo_n "(cached) " >&6
10325 else
10326   if test -n "$ac_ct_LIPO"; then
10327   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10328 else
10329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10330 for as_dir in $PATH
10331 do
10332   IFS=$as_save_IFS
10333   test -z "$as_dir" && as_dir=.
10334     for ac_exec_ext in '' $ac_executable_extensions; do
10335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10336     ac_cv_prog_ac_ct_LIPO="lipo"
10337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10338     break 2
10339   fi
10340 done
10341   done
10342 IFS=$as_save_IFS
10343
10344 fi
10345 fi
10346 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10347 if test -n "$ac_ct_LIPO"; then
10348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10349 $as_echo "$ac_ct_LIPO" >&6; }
10350 else
10351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10352 $as_echo "no" >&6; }
10353 fi
10354
10355   if test "x$ac_ct_LIPO" = x; then
10356     LIPO=":"
10357   else
10358     case $cross_compiling:$ac_tool_warned in
10359 yes:)
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10362 ac_tool_warned=yes ;;
10363 esac
10364     LIPO=$ac_ct_LIPO
10365   fi
10366 else
10367   LIPO="$ac_cv_prog_LIPO"
10368 fi
10369
10370     if test -n "$ac_tool_prefix"; then
10371   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10372 set dummy ${ac_tool_prefix}otool; ac_word=$2
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10374 $as_echo_n "checking for $ac_word... " >&6; }
10375 if ${ac_cv_prog_OTOOL+:} false; then :
10376   $as_echo_n "(cached) " >&6
10377 else
10378   if test -n "$OTOOL"; then
10379   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10380 else
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382 for as_dir in $PATH
10383 do
10384   IFS=$as_save_IFS
10385   test -z "$as_dir" && as_dir=.
10386     for ac_exec_ext in '' $ac_executable_extensions; do
10387   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10388     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10390     break 2
10391   fi
10392 done
10393   done
10394 IFS=$as_save_IFS
10395
10396 fi
10397 fi
10398 OTOOL=$ac_cv_prog_OTOOL
10399 if test -n "$OTOOL"; then
10400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10401 $as_echo "$OTOOL" >&6; }
10402 else
10403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10404 $as_echo "no" >&6; }
10405 fi
10406
10407
10408 fi
10409 if test -z "$ac_cv_prog_OTOOL"; then
10410   ac_ct_OTOOL=$OTOOL
10411   # Extract the first word of "otool", so it can be a program name with args.
10412 set dummy otool; ac_word=$2
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10414 $as_echo_n "checking for $ac_word... " >&6; }
10415 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10416   $as_echo_n "(cached) " >&6
10417 else
10418   if test -n "$ac_ct_OTOOL"; then
10419   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10420 else
10421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10422 for as_dir in $PATH
10423 do
10424   IFS=$as_save_IFS
10425   test -z "$as_dir" && as_dir=.
10426     for ac_exec_ext in '' $ac_executable_extensions; do
10427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10428     ac_cv_prog_ac_ct_OTOOL="otool"
10429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10430     break 2
10431   fi
10432 done
10433   done
10434 IFS=$as_save_IFS
10435
10436 fi
10437 fi
10438 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10439 if test -n "$ac_ct_OTOOL"; then
10440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10441 $as_echo "$ac_ct_OTOOL" >&6; }
10442 else
10443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10444 $as_echo "no" >&6; }
10445 fi
10446
10447   if test "x$ac_ct_OTOOL" = x; then
10448     OTOOL=":"
10449   else
10450     case $cross_compiling:$ac_tool_warned in
10451 yes:)
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10454 ac_tool_warned=yes ;;
10455 esac
10456     OTOOL=$ac_ct_OTOOL
10457   fi
10458 else
10459   OTOOL="$ac_cv_prog_OTOOL"
10460 fi
10461
10462     if test -n "$ac_tool_prefix"; then
10463   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10464 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10466 $as_echo_n "checking for $ac_word... " >&6; }
10467 if ${ac_cv_prog_OTOOL64+:} false; then :
10468   $as_echo_n "(cached) " >&6
10469 else
10470   if test -n "$OTOOL64"; then
10471   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10472 else
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10475 do
10476   IFS=$as_save_IFS
10477   test -z "$as_dir" && as_dir=.
10478     for ac_exec_ext in '' $ac_executable_extensions; do
10479   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482     break 2
10483   fi
10484 done
10485   done
10486 IFS=$as_save_IFS
10487
10488 fi
10489 fi
10490 OTOOL64=$ac_cv_prog_OTOOL64
10491 if test -n "$OTOOL64"; then
10492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10493 $as_echo "$OTOOL64" >&6; }
10494 else
10495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10496 $as_echo "no" >&6; }
10497 fi
10498
10499
10500 fi
10501 if test -z "$ac_cv_prog_OTOOL64"; then
10502   ac_ct_OTOOL64=$OTOOL64
10503   # Extract the first word of "otool64", so it can be a program name with args.
10504 set dummy otool64; ac_word=$2
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10506 $as_echo_n "checking for $ac_word... " >&6; }
10507 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10508   $as_echo_n "(cached) " >&6
10509 else
10510   if test -n "$ac_ct_OTOOL64"; then
10511   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10512 else
10513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10514 for as_dir in $PATH
10515 do
10516   IFS=$as_save_IFS
10517   test -z "$as_dir" && as_dir=.
10518     for ac_exec_ext in '' $ac_executable_extensions; do
10519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10520     ac_cv_prog_ac_ct_OTOOL64="otool64"
10521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10522     break 2
10523   fi
10524 done
10525   done
10526 IFS=$as_save_IFS
10527
10528 fi
10529 fi
10530 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10531 if test -n "$ac_ct_OTOOL64"; then
10532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10533 $as_echo "$ac_ct_OTOOL64" >&6; }
10534 else
10535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10537 fi
10538
10539   if test "x$ac_ct_OTOOL64" = x; then
10540     OTOOL64=":"
10541   else
10542     case $cross_compiling:$ac_tool_warned in
10543 yes:)
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10546 ac_tool_warned=yes ;;
10547 esac
10548     OTOOL64=$ac_ct_OTOOL64
10549   fi
10550 else
10551   OTOOL64="$ac_cv_prog_OTOOL64"
10552 fi
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10581 $as_echo_n "checking for -single_module linker flag... " >&6; }
10582 if ${lt_cv_apple_cc_single_mod+:} false; then :
10583   $as_echo_n "(cached) " >&6
10584 else
10585   lt_cv_apple_cc_single_mod=no
10586       if test -z "${LT_MULTI_MODULE}"; then
10587         # By default we will add the -single_module flag. You can override
10588         # by either setting the environment variable LT_MULTI_MODULE
10589         # non-empty at configure time, or by adding -multi_module to the
10590         # link flags.
10591         rm -rf libconftest.dylib*
10592         echo "int foo(void){return 1;}" > conftest.c
10593         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10594 -dynamiclib -Wl,-single_module conftest.c" >&5
10595         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10596           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10597         _lt_result=$?
10598         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10599           lt_cv_apple_cc_single_mod=yes
10600         else
10601           cat conftest.err >&5
10602         fi
10603         rm -rf libconftest.dylib*
10604         rm -f conftest.*
10605       fi
10606 fi
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10608 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10609     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10610 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10611 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10612   $as_echo_n "(cached) " >&6
10613 else
10614   lt_cv_ld_exported_symbols_list=no
10615       save_LDFLAGS=$LDFLAGS
10616       echo "_main" > conftest.sym
10617       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10618       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10619 /* end confdefs.h.  */
10620
10621 int
10622 main ()
10623 {
10624
10625   ;
10626   return 0;
10627 }
10628 _ACEOF
10629 if ac_fn_c_try_link "$LINENO"; then :
10630   lt_cv_ld_exported_symbols_list=yes
10631 else
10632   lt_cv_ld_exported_symbols_list=no
10633 fi
10634 rm -f core conftest.err conftest.$ac_objext \
10635     conftest$ac_exeext conftest.$ac_ext
10636         LDFLAGS="$save_LDFLAGS"
10637
10638 fi
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10640 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10641     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10642 $as_echo_n "checking for -force_load linker flag... " >&6; }
10643 if ${lt_cv_ld_force_load+:} false; then :
10644   $as_echo_n "(cached) " >&6
10645 else
10646   lt_cv_ld_force_load=no
10647       cat > conftest.c << _LT_EOF
10648 int forced_loaded() { return 2;}
10649 _LT_EOF
10650       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10651       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10652       echo "$AR cru libconftest.a conftest.o" >&5
10653       $AR cru libconftest.a conftest.o 2>&5
10654       echo "$RANLIB libconftest.a" >&5
10655       $RANLIB libconftest.a 2>&5
10656       cat > conftest.c << _LT_EOF
10657 int main() { return 0;}
10658 _LT_EOF
10659       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10660       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10661       _lt_result=$?
10662       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10663         lt_cv_ld_force_load=yes
10664       else
10665         cat conftest.err >&5
10666       fi
10667         rm -f conftest.err libconftest.a conftest conftest.c
10668         rm -rf conftest.dSYM
10669
10670 fi
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10672 $as_echo "$lt_cv_ld_force_load" >&6; }
10673     case $host_os in
10674     rhapsody* | darwin1.[012])
10675       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10676     darwin1.*)
10677       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10678     darwin*) # darwin 5.x on
10679       # if running on 10.5 or later, the deployment target defaults
10680       # to the OS version, if on x86, and 10.4, the deployment
10681       # target defaults to 10.4. Don't you love it?
10682       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10683         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10684           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10685         10.[012]*)
10686           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10687         10.*)
10688           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10689       esac
10690     ;;
10691   esac
10692     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10693       _lt_dar_single_mod='$single_module'
10694     fi
10695     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10696       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10697     else
10698       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10699     fi
10700     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10701       _lt_dsymutil='~$DSYMUTIL $lib || :'
10702     else
10703       _lt_dsymutil=
10704     fi
10705     ;;
10706   esac
10707
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10709 $as_echo_n "checking for ANSI C header files... " >&6; }
10710 if ${ac_cv_header_stdc+:} false; then :
10711   $as_echo_n "(cached) " >&6
10712 else
10713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10714 /* end confdefs.h.  */
10715 #include <stdlib.h>
10716 #include <stdarg.h>
10717 #include <string.h>
10718 #include <float.h>
10719
10720 int
10721 main ()
10722 {
10723
10724   ;
10725   return 0;
10726 }
10727 _ACEOF
10728 if ac_fn_c_try_compile "$LINENO"; then :
10729   ac_cv_header_stdc=yes
10730 else
10731   ac_cv_header_stdc=no
10732 fi
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10734
10735 if test $ac_cv_header_stdc = yes; then
10736   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10737   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10738 /* end confdefs.h.  */
10739 #include <string.h>
10740
10741 _ACEOF
10742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10743   $EGREP "memchr" >/dev/null 2>&1; then :
10744
10745 else
10746   ac_cv_header_stdc=no
10747 fi
10748 rm -f conftest*
10749
10750 fi
10751
10752 if test $ac_cv_header_stdc = yes; then
10753   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10755 /* end confdefs.h.  */
10756 #include <stdlib.h>
10757
10758 _ACEOF
10759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10760   $EGREP "free" >/dev/null 2>&1; then :
10761
10762 else
10763   ac_cv_header_stdc=no
10764 fi
10765 rm -f conftest*
10766
10767 fi
10768
10769 if test $ac_cv_header_stdc = yes; then
10770   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10771   if test "$cross_compiling" = yes; then :
10772   :
10773 else
10774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10775 /* end confdefs.h.  */
10776 #include <ctype.h>
10777 #include <stdlib.h>
10778 #if ((' ' & 0x0FF) == 0x020)
10779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10781 #else
10782 # define ISLOWER(c) \
10783                    (('a' <= (c) && (c) <= 'i') \
10784                      || ('j' <= (c) && (c) <= 'r') \
10785                      || ('s' <= (c) && (c) <= 'z'))
10786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10787 #endif
10788
10789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10790 int
10791 main ()
10792 {
10793   int i;
10794   for (i = 0; i < 256; i++)
10795     if (XOR (islower (i), ISLOWER (i))
10796         || toupper (i) != TOUPPER (i))
10797       return 2;
10798   return 0;
10799 }
10800 _ACEOF
10801 if ac_fn_c_try_run "$LINENO"; then :
10802
10803 else
10804   ac_cv_header_stdc=no
10805 fi
10806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10807   conftest.$ac_objext conftest.beam conftest.$ac_ext
10808 fi
10809
10810 fi
10811 fi
10812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10813 $as_echo "$ac_cv_header_stdc" >&6; }
10814 if test $ac_cv_header_stdc = yes; then
10815
10816 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10817
10818 fi
10819
10820 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10821 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10822                   inttypes.h stdint.h unistd.h
10823 do :
10824   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10825 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10826 "
10827 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10828   cat >>confdefs.h <<_ACEOF
10829 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10830 _ACEOF
10831
10832 fi
10833
10834 done
10835
10836
10837 for ac_header in dlfcn.h
10838 do :
10839   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10840 "
10841 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10842   cat >>confdefs.h <<_ACEOF
10843 #define HAVE_DLFCN_H 1
10844 _ACEOF
10845
10846 fi
10847
10848 done
10849
10850
10851
10852 func_stripname_cnf ()
10853 {
10854   case ${2} in
10855   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
10856   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
10857   esac
10858 } # func_stripname_cnf
10859
10860
10861
10862
10863
10864 # Set options
10865 # Check whether --enable-static was given.
10866 if test "${enable_static+set}" = set; then :
10867   enableval=$enable_static; p=${PACKAGE-default}
10868     case $enableval in
10869     yes) enable_static=yes ;;
10870     no) enable_static=no ;;
10871     *)
10872      enable_static=no
10873       # Look at the argument we got.  We use all the common list separators.
10874       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10875       for pkg in $enableval; do
10876         IFS="$lt_save_ifs"
10877         if test "X$pkg" = "X$p"; then
10878           enable_static=yes
10879         fi
10880       done
10881       IFS="$lt_save_ifs"
10882       ;;
10883     esac
10884 else
10885   enable_static=no
10886 fi
10887
10888
10889
10890
10891
10892
10893
10894 enable_win32_dll=yes
10895
10896 case $host in
10897 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10898   if test -n "$ac_tool_prefix"; then
10899   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10900 set dummy ${ac_tool_prefix}as; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if ${ac_cv_prog_AS+:} false; then :
10904   $as_echo_n "(cached) " >&6
10905 else
10906   if test -n "$AS"; then
10907   ac_cv_prog_AS="$AS" # Let the user override the test.
10908 else
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10911 do
10912   IFS=$as_save_IFS
10913   test -z "$as_dir" && as_dir=.
10914     for ac_exec_ext in '' $ac_executable_extensions; do
10915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10916     ac_cv_prog_AS="${ac_tool_prefix}as"
10917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10918     break 2
10919   fi
10920 done
10921   done
10922 IFS=$as_save_IFS
10923
10924 fi
10925 fi
10926 AS=$ac_cv_prog_AS
10927 if test -n "$AS"; then
10928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10929 $as_echo "$AS" >&6; }
10930 else
10931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10933 fi
10934
10935
10936 fi
10937 if test -z "$ac_cv_prog_AS"; then
10938   ac_ct_AS=$AS
10939   # Extract the first word of "as", so it can be a program name with args.
10940 set dummy as; ac_word=$2
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10942 $as_echo_n "checking for $ac_word... " >&6; }
10943 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10944   $as_echo_n "(cached) " >&6
10945 else
10946   if test -n "$ac_ct_AS"; then
10947   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10948 else
10949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10950 for as_dir in $PATH
10951 do
10952   IFS=$as_save_IFS
10953   test -z "$as_dir" && as_dir=.
10954     for ac_exec_ext in '' $ac_executable_extensions; do
10955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10956     ac_cv_prog_ac_ct_AS="as"
10957     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10958     break 2
10959   fi
10960 done
10961   done
10962 IFS=$as_save_IFS
10963
10964 fi
10965 fi
10966 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10967 if test -n "$ac_ct_AS"; then
10968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10969 $as_echo "$ac_ct_AS" >&6; }
10970 else
10971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10973 fi
10974
10975   if test "x$ac_ct_AS" = x; then
10976     AS="false"
10977   else
10978     case $cross_compiling:$ac_tool_warned in
10979 yes:)
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10981 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10982 ac_tool_warned=yes ;;
10983 esac
10984     AS=$ac_ct_AS
10985   fi
10986 else
10987   AS="$ac_cv_prog_AS"
10988 fi
10989
10990   if test -n "$ac_tool_prefix"; then
10991   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10992 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_prog_DLLTOOL+:} false; then :
10996   $as_echo_n "(cached) " >&6
10997 else
10998   if test -n "$DLLTOOL"; then
10999   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11000 else
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11003 do
11004   IFS=$as_save_IFS
11005   test -z "$as_dir" && as_dir=.
11006     for ac_exec_ext in '' $ac_executable_extensions; do
11007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11010     break 2
11011   fi
11012 done
11013   done
11014 IFS=$as_save_IFS
11015
11016 fi
11017 fi
11018 DLLTOOL=$ac_cv_prog_DLLTOOL
11019 if test -n "$DLLTOOL"; then
11020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11021 $as_echo "$DLLTOOL" >&6; }
11022 else
11023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11025 fi
11026
11027
11028 fi
11029 if test -z "$ac_cv_prog_DLLTOOL"; then
11030   ac_ct_DLLTOOL=$DLLTOOL
11031   # Extract the first word of "dlltool", so it can be a program name with args.
11032 set dummy dlltool; ac_word=$2
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11034 $as_echo_n "checking for $ac_word... " >&6; }
11035 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11036   $as_echo_n "(cached) " >&6
11037 else
11038   if test -n "$ac_ct_DLLTOOL"; then
11039   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11040 else
11041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11042 for as_dir in $PATH
11043 do
11044   IFS=$as_save_IFS
11045   test -z "$as_dir" && as_dir=.
11046     for ac_exec_ext in '' $ac_executable_extensions; do
11047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11048     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11050     break 2
11051   fi
11052 done
11053   done
11054 IFS=$as_save_IFS
11055
11056 fi
11057 fi
11058 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11059 if test -n "$ac_ct_DLLTOOL"; then
11060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11061 $as_echo "$ac_ct_DLLTOOL" >&6; }
11062 else
11063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11064 $as_echo "no" >&6; }
11065 fi
11066
11067   if test "x$ac_ct_DLLTOOL" = x; then
11068     DLLTOOL="false"
11069   else
11070     case $cross_compiling:$ac_tool_warned in
11071 yes:)
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11074 ac_tool_warned=yes ;;
11075 esac
11076     DLLTOOL=$ac_ct_DLLTOOL
11077   fi
11078 else
11079   DLLTOOL="$ac_cv_prog_DLLTOOL"
11080 fi
11081
11082   if test -n "$ac_tool_prefix"; then
11083   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11084 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if ${ac_cv_prog_OBJDUMP+:} false; then :
11088   $as_echo_n "(cached) " >&6
11089 else
11090   if test -n "$OBJDUMP"; then
11091   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11092 else
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11095 do
11096   IFS=$as_save_IFS
11097   test -z "$as_dir" && as_dir=.
11098     for ac_exec_ext in '' $ac_executable_extensions; do
11099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11100     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102     break 2
11103   fi
11104 done
11105   done
11106 IFS=$as_save_IFS
11107
11108 fi
11109 fi
11110 OBJDUMP=$ac_cv_prog_OBJDUMP
11111 if test -n "$OBJDUMP"; then
11112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11113 $as_echo "$OBJDUMP" >&6; }
11114 else
11115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11117 fi
11118
11119
11120 fi
11121 if test -z "$ac_cv_prog_OBJDUMP"; then
11122   ac_ct_OBJDUMP=$OBJDUMP
11123   # Extract the first word of "objdump", so it can be a program name with args.
11124 set dummy objdump; ac_word=$2
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11126 $as_echo_n "checking for $ac_word... " >&6; }
11127 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   if test -n "$ac_ct_OBJDUMP"; then
11131   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11132 else
11133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11134 for as_dir in $PATH
11135 do
11136   IFS=$as_save_IFS
11137   test -z "$as_dir" && as_dir=.
11138     for ac_exec_ext in '' $ac_executable_extensions; do
11139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11140     ac_cv_prog_ac_ct_OBJDUMP="objdump"
11141     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11142     break 2
11143   fi
11144 done
11145   done
11146 IFS=$as_save_IFS
11147
11148 fi
11149 fi
11150 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11151 if test -n "$ac_ct_OBJDUMP"; then
11152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11153 $as_echo "$ac_ct_OBJDUMP" >&6; }
11154 else
11155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11156 $as_echo "no" >&6; }
11157 fi
11158
11159   if test "x$ac_ct_OBJDUMP" = x; then
11160     OBJDUMP="false"
11161   else
11162     case $cross_compiling:$ac_tool_warned in
11163 yes:)
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11166 ac_tool_warned=yes ;;
11167 esac
11168     OBJDUMP=$ac_ct_OBJDUMP
11169   fi
11170 else
11171   OBJDUMP="$ac_cv_prog_OBJDUMP"
11172 fi
11173
11174   ;;
11175 esac
11176
11177 test -z "$AS" && AS=as
11178
11179
11180
11181
11182
11183 test -z "$DLLTOOL" && DLLTOOL=dlltool
11184
11185
11186
11187
11188
11189 test -z "$OBJDUMP" && OBJDUMP=objdump
11190
11191
11192
11193
11194
11195
11196
11197         enable_dlopen=no
11198
11199
11200
11201             # Check whether --enable-shared was given.
11202 if test "${enable_shared+set}" = set; then :
11203   enableval=$enable_shared; p=${PACKAGE-default}
11204     case $enableval in
11205     yes) enable_shared=yes ;;
11206     no) enable_shared=no ;;
11207     *)
11208       enable_shared=no
11209       # Look at the argument we got.  We use all the common list separators.
11210       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11211       for pkg in $enableval; do
11212         IFS="$lt_save_ifs"
11213         if test "X$pkg" = "X$p"; then
11214           enable_shared=yes
11215         fi
11216       done
11217       IFS="$lt_save_ifs"
11218       ;;
11219     esac
11220 else
11221   enable_shared=yes
11222 fi
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234 # Check whether --with-pic was given.
11235 if test "${with_pic+set}" = set; then :
11236   withval=$with_pic; pic_mode="$withval"
11237 else
11238   pic_mode=default
11239 fi
11240
11241
11242 test -z "$pic_mode" && pic_mode=default
11243
11244
11245
11246
11247
11248
11249
11250   # Check whether --enable-fast-install was given.
11251 if test "${enable_fast_install+set}" = set; then :
11252   enableval=$enable_fast_install; p=${PACKAGE-default}
11253     case $enableval in
11254     yes) enable_fast_install=yes ;;
11255     no) enable_fast_install=no ;;
11256     *)
11257       enable_fast_install=no
11258       # Look at the argument we got.  We use all the common list separators.
11259       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11260       for pkg in $enableval; do
11261         IFS="$lt_save_ifs"
11262         if test "X$pkg" = "X$p"; then
11263           enable_fast_install=yes
11264         fi
11265       done
11266       IFS="$lt_save_ifs"
11267       ;;
11268     esac
11269 else
11270   enable_fast_install=yes
11271 fi
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283 # This can be used to rebuild libtool when needed
11284 LIBTOOL_DEPS="$ltmain"
11285
11286 # Always use our own libtool.
11287 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314 test -z "$LN_S" && LN_S="ln -s"
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329 if test -n "${ZSH_VERSION+set}" ; then
11330    setopt NO_GLOB_SUBST
11331 fi
11332
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11334 $as_echo_n "checking for objdir... " >&6; }
11335 if ${lt_cv_objdir+:} false; then :
11336   $as_echo_n "(cached) " >&6
11337 else
11338   rm -f .libs 2>/dev/null
11339 mkdir .libs 2>/dev/null
11340 if test -d .libs; then
11341   lt_cv_objdir=.libs
11342 else
11343   # MS-DOS does not allow filenames that begin with a dot.
11344   lt_cv_objdir=_libs
11345 fi
11346 rmdir .libs 2>/dev/null
11347 fi
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11349 $as_echo "$lt_cv_objdir" >&6; }
11350 objdir=$lt_cv_objdir
11351
11352
11353
11354
11355
11356 cat >>confdefs.h <<_ACEOF
11357 #define LT_OBJDIR "$lt_cv_objdir/"
11358 _ACEOF
11359
11360
11361
11362
11363 case $host_os in
11364 aix3*)
11365   # AIX sometimes has problems with the GCC collect2 program.  For some
11366   # reason, if we set the COLLECT_NAMES environment variable, the problems
11367   # vanish in a puff of smoke.
11368   if test "X${COLLECT_NAMES+set}" != Xset; then
11369     COLLECT_NAMES=
11370     export COLLECT_NAMES
11371   fi
11372   ;;
11373 esac
11374
11375 # Global variables:
11376 ofile=libtool
11377 can_build_shared=yes
11378
11379 # All known linkers require a `.a' archive for static linking (except MSVC,
11380 # which needs '.lib').
11381 libext=a
11382
11383 with_gnu_ld="$lt_cv_prog_gnu_ld"
11384
11385 old_CC="$CC"
11386 old_CFLAGS="$CFLAGS"
11387
11388 # Set sane defaults for various variables
11389 test -z "$CC" && CC=cc
11390 test -z "$LTCC" && LTCC=$CC
11391 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11392 test -z "$LD" && LD=ld
11393 test -z "$ac_objext" && ac_objext=o
11394
11395 for cc_temp in $compiler""; do
11396   case $cc_temp in
11397     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11398     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11399     \-*) ;;
11400     *) break;;
11401   esac
11402 done
11403 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11404
11405
11406 # Only perform the check for file, if the check method requires it
11407 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11408 case $deplibs_check_method in
11409 file_magic*)
11410   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11412 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11413 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11414   $as_echo_n "(cached) " >&6
11415 else
11416   case $MAGIC_CMD in
11417 [\\/*] |  ?:[\\/]*)
11418   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11419   ;;
11420 *)
11421   lt_save_MAGIC_CMD="$MAGIC_CMD"
11422   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11423   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11424   for ac_dir in $ac_dummy; do
11425     IFS="$lt_save_ifs"
11426     test -z "$ac_dir" && ac_dir=.
11427     if test -f $ac_dir/${ac_tool_prefix}file; then
11428       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11429       if test -n "$file_magic_test_file"; then
11430         case $deplibs_check_method in
11431         "file_magic "*)
11432           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11433           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11434           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11435             $EGREP "$file_magic_regex" > /dev/null; then
11436             :
11437           else
11438             cat <<_LT_EOF 1>&2
11439
11440 *** Warning: the command libtool uses to detect shared libraries,
11441 *** $file_magic_cmd, produces output that libtool cannot recognize.
11442 *** The result is that libtool may fail to recognize shared libraries
11443 *** as such.  This will affect the creation of libtool libraries that
11444 *** depend on shared libraries, but programs linked with such libtool
11445 *** libraries will work regardless of this problem.  Nevertheless, you
11446 *** may want to report the problem to your system manager and/or to
11447 *** bug-libtool@gnu.org
11448
11449 _LT_EOF
11450           fi ;;
11451         esac
11452       fi
11453       break
11454     fi
11455   done
11456   IFS="$lt_save_ifs"
11457   MAGIC_CMD="$lt_save_MAGIC_CMD"
11458   ;;
11459 esac
11460 fi
11461
11462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11463 if test -n "$MAGIC_CMD"; then
11464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11465 $as_echo "$MAGIC_CMD" >&6; }
11466 else
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468 $as_echo "no" >&6; }
11469 fi
11470
11471
11472
11473
11474
11475 if test -z "$lt_cv_path_MAGIC_CMD"; then
11476   if test -n "$ac_tool_prefix"; then
11477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11478 $as_echo_n "checking for file... " >&6; }
11479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11480   $as_echo_n "(cached) " >&6
11481 else
11482   case $MAGIC_CMD in
11483 [\\/*] |  ?:[\\/]*)
11484   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11485   ;;
11486 *)
11487   lt_save_MAGIC_CMD="$MAGIC_CMD"
11488   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11489   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11490   for ac_dir in $ac_dummy; do
11491     IFS="$lt_save_ifs"
11492     test -z "$ac_dir" && ac_dir=.
11493     if test -f $ac_dir/file; then
11494       lt_cv_path_MAGIC_CMD="$ac_dir/file"
11495       if test -n "$file_magic_test_file"; then
11496         case $deplibs_check_method in
11497         "file_magic "*)
11498           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11499           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11500           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11501             $EGREP "$file_magic_regex" > /dev/null; then
11502             :
11503           else
11504             cat <<_LT_EOF 1>&2
11505
11506 *** Warning: the command libtool uses to detect shared libraries,
11507 *** $file_magic_cmd, produces output that libtool cannot recognize.
11508 *** The result is that libtool may fail to recognize shared libraries
11509 *** as such.  This will affect the creation of libtool libraries that
11510 *** depend on shared libraries, but programs linked with such libtool
11511 *** libraries will work regardless of this problem.  Nevertheless, you
11512 *** may want to report the problem to your system manager and/or to
11513 *** bug-libtool@gnu.org
11514
11515 _LT_EOF
11516           fi ;;
11517         esac
11518       fi
11519       break
11520     fi
11521   done
11522   IFS="$lt_save_ifs"
11523   MAGIC_CMD="$lt_save_MAGIC_CMD"
11524   ;;
11525 esac
11526 fi
11527
11528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11529 if test -n "$MAGIC_CMD"; then
11530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11531 $as_echo "$MAGIC_CMD" >&6; }
11532 else
11533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11534 $as_echo "no" >&6; }
11535 fi
11536
11537
11538   else
11539     MAGIC_CMD=:
11540   fi
11541 fi
11542
11543   fi
11544   ;;
11545 esac
11546
11547 # Use C for the default configuration in the libtool script
11548
11549 lt_save_CC="$CC"
11550 ac_ext=c
11551 ac_cpp='$CPP $CPPFLAGS'
11552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11555
11556
11557 # Source file extension for C test sources.
11558 ac_ext=c
11559
11560 # Object file extension for compiled C test sources.
11561 objext=o
11562 objext=$objext
11563
11564 # Code to be used in simple compile tests
11565 lt_simple_compile_test_code="int some_variable = 0;"
11566
11567 # Code to be used in simple link tests
11568 lt_simple_link_test_code='int main(){return(0);}'
11569
11570
11571
11572
11573
11574
11575
11576 # If no C compiler was specified, use CC.
11577 LTCC=${LTCC-"$CC"}
11578
11579 # If no C compiler flags were specified, use CFLAGS.
11580 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11581
11582 # Allow CC to be a program name with arguments.
11583 compiler=$CC
11584
11585 # Save the default compiler, since it gets overwritten when the other
11586 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11587 compiler_DEFAULT=$CC
11588
11589 # save warnings/boilerplate of simple test code
11590 ac_outfile=conftest.$ac_objext
11591 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11592 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11593 _lt_compiler_boilerplate=`cat conftest.err`
11594 $RM conftest*
11595
11596 ac_outfile=conftest.$ac_objext
11597 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11598 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11599 _lt_linker_boilerplate=`cat conftest.err`
11600 $RM -r conftest*
11601
11602
11603 ## CAVEAT EMPTOR:
11604 ## There is no encapsulation within the following macros, do not change
11605 ## the running order or otherwise move them around unless you know exactly
11606 ## what you are doing...
11607 if test -n "$compiler"; then
11608
11609 lt_prog_compiler_no_builtin_flag=
11610
11611 if test "$GCC" = yes; then
11612   case $cc_basename in
11613   nvcc*)
11614     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11615   *)
11616     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11617   esac
11618
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11620 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11621 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11622   $as_echo_n "(cached) " >&6
11623 else
11624   lt_cv_prog_compiler_rtti_exceptions=no
11625    ac_outfile=conftest.$ac_objext
11626    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11627    lt_compiler_flag="-fno-rtti -fno-exceptions"
11628    # Insert the option either (1) after the last *FLAGS variable, or
11629    # (2) before a word containing "conftest.", or (3) at the end.
11630    # Note that $ac_compile itself does not contain backslashes and begins
11631    # with a dollar sign (not a hyphen), so the echo should work correctly.
11632    # The option is referenced via a variable to avoid confusing sed.
11633    lt_compile=`echo "$ac_compile" | $SED \
11634    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11635    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11636    -e 's:$: $lt_compiler_flag:'`
11637    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11638    (eval "$lt_compile" 2>conftest.err)
11639    ac_status=$?
11640    cat conftest.err >&5
11641    echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642    if (exit $ac_status) && test -s "$ac_outfile"; then
11643      # The compiler can only warn and ignore the option if not recognized
11644      # So say no if there are warnings other than the usual output.
11645      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11646      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11647      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11648        lt_cv_prog_compiler_rtti_exceptions=yes
11649      fi
11650    fi
11651    $RM conftest*
11652
11653 fi
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11655 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11656
11657 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11658     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11659 else
11660     :
11661 fi
11662
11663 fi
11664
11665
11666
11667
11668
11669
11670   lt_prog_compiler_wl=
11671 lt_prog_compiler_pic=
11672 lt_prog_compiler_static=
11673
11674
11675   if test "$GCC" = yes; then
11676     lt_prog_compiler_wl='-Wl,'
11677     lt_prog_compiler_static='-static'
11678
11679     case $host_os in
11680       aix*)
11681       # All AIX code is PIC.
11682       if test "$host_cpu" = ia64; then
11683         # AIX 5 now supports IA64 processor
11684         lt_prog_compiler_static='-Bstatic'
11685       fi
11686       ;;
11687
11688     amigaos*)
11689       case $host_cpu in
11690       powerpc)
11691             # see comment about AmigaOS4 .so support
11692             lt_prog_compiler_pic='-fPIC'
11693         ;;
11694       m68k)
11695             # FIXME: we need at least 68020 code to build shared libraries, but
11696             # adding the `-m68020' flag to GCC prevents building anything better,
11697             # like `-m68040'.
11698             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11699         ;;
11700       esac
11701       ;;
11702
11703     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11704       # PIC is the default for these OSes.
11705       ;;
11706
11707     mingw* | cygwin* | pw32* | os2* | cegcc*)
11708       # This hack is so that the source file can tell whether it is being
11709       # built for inclusion in a dll (and should export symbols for example).
11710       # Although the cygwin gcc ignores -fPIC, still need this for old-style
11711       # (--disable-auto-import) libraries
11712       lt_prog_compiler_pic='-DDLL_EXPORT'
11713       ;;
11714
11715     darwin* | rhapsody*)
11716       # PIC is the default on this platform
11717       # Common symbols not allowed in MH_DYLIB files
11718       lt_prog_compiler_pic='-fno-common'
11719       ;;
11720
11721     haiku*)
11722       # PIC is the default for Haiku.
11723       # The "-static" flag exists, but is broken.
11724       lt_prog_compiler_static=
11725       ;;
11726
11727     hpux*)
11728       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11729       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11730       # sets the default TLS model and affects inlining.
11731       case $host_cpu in
11732       hppa*64*)
11733         # +Z the default
11734         ;;
11735       *)
11736         lt_prog_compiler_pic='-fPIC'
11737         ;;
11738       esac
11739       ;;
11740
11741     interix[3-9]*)
11742       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11743       # Instead, we relocate shared libraries at runtime.
11744       ;;
11745
11746     msdosdjgpp*)
11747       # Just because we use GCC doesn't mean we suddenly get shared libraries
11748       # on systems that don't support them.
11749       lt_prog_compiler_can_build_shared=no
11750       enable_shared=no
11751       ;;
11752
11753     *nto* | *qnx*)
11754       # QNX uses GNU C++, but need to define -shared option too, otherwise
11755       # it will coredump.
11756       lt_prog_compiler_pic='-fPIC -shared'
11757       ;;
11758
11759     sysv4*MP*)
11760       if test -d /usr/nec; then
11761         lt_prog_compiler_pic=-Kconform_pic
11762       fi
11763       ;;
11764
11765     *)
11766       lt_prog_compiler_pic='-fPIC'
11767       ;;
11768     esac
11769
11770     case $cc_basename in
11771     nvcc*) # Cuda Compiler Driver 2.2
11772       lt_prog_compiler_wl='-Xlinker '
11773       lt_prog_compiler_pic='-Xcompiler -fPIC'
11774       ;;
11775     esac
11776   else
11777     # PORTME Check for flag to pass linker flags through the system compiler.
11778     case $host_os in
11779     aix*)
11780       lt_prog_compiler_wl='-Wl,'
11781       if test "$host_cpu" = ia64; then
11782         # AIX 5 now supports IA64 processor
11783         lt_prog_compiler_static='-Bstatic'
11784       else
11785         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11786       fi
11787       ;;
11788
11789     mingw* | cygwin* | pw32* | os2* | cegcc*)
11790       # This hack is so that the source file can tell whether it is being
11791       # built for inclusion in a dll (and should export symbols for example).
11792       lt_prog_compiler_pic='-DDLL_EXPORT'
11793       ;;
11794
11795     hpux9* | hpux10* | hpux11*)
11796       lt_prog_compiler_wl='-Wl,'
11797       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11798       # not for PA HP-UX.
11799       case $host_cpu in
11800       hppa*64*|ia64*)
11801         # +Z the default
11802         ;;
11803       *)
11804         lt_prog_compiler_pic='+Z'
11805         ;;
11806       esac
11807       # Is there a better lt_prog_compiler_static that works with the bundled CC?
11808       lt_prog_compiler_static='${wl}-a ${wl}archive'
11809       ;;
11810
11811     irix5* | irix6* | nonstopux*)
11812       lt_prog_compiler_wl='-Wl,'
11813       # PIC (with -KPIC) is the default.
11814       lt_prog_compiler_static='-non_shared'
11815       ;;
11816
11817     linux* | k*bsd*-gnu | kopensolaris*-gnu)
11818       case $cc_basename in
11819       # old Intel for x86_64 which still supported -KPIC.
11820       ecc*)
11821         lt_prog_compiler_wl='-Wl,'
11822         lt_prog_compiler_pic='-KPIC'
11823         lt_prog_compiler_static='-static'
11824         ;;
11825       # icc used to be incompatible with GCC.
11826       # ICC 10 doesn't accept -KPIC any more.
11827       icc* | ifort*)
11828         lt_prog_compiler_wl='-Wl,'
11829         lt_prog_compiler_pic='-fPIC'
11830         lt_prog_compiler_static='-static'
11831         ;;
11832       # Lahey Fortran 8.1.
11833       lf95*)
11834         lt_prog_compiler_wl='-Wl,'
11835         lt_prog_compiler_pic='--shared'
11836         lt_prog_compiler_static='--static'
11837         ;;
11838       nagfor*)
11839         # NAG Fortran compiler
11840         lt_prog_compiler_wl='-Wl,-Wl,,'
11841         lt_prog_compiler_pic='-PIC'
11842         lt_prog_compiler_static='-Bstatic'
11843         ;;
11844       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11845         # Portland Group compilers (*not* the Pentium gcc compiler,
11846         # which looks to be a dead project)
11847         lt_prog_compiler_wl='-Wl,'
11848         lt_prog_compiler_pic='-fpic'
11849         lt_prog_compiler_static='-Bstatic'
11850         ;;
11851       ccc*)
11852         lt_prog_compiler_wl='-Wl,'
11853         # All Alpha code is PIC.
11854         lt_prog_compiler_static='-non_shared'
11855         ;;
11856       xl* | bgxl* | bgf* | mpixl*)
11857         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11858         lt_prog_compiler_wl='-Wl,'
11859         lt_prog_compiler_pic='-qpic'
11860         lt_prog_compiler_static='-qstaticlink'
11861         ;;
11862       *)
11863         case `$CC -V 2>&1 | sed 5q` in
11864         *Sun\ F* | *Sun*Fortran*)
11865           # Sun Fortran 8.3 passes all unrecognized flags to the linker
11866           lt_prog_compiler_pic='-KPIC'
11867           lt_prog_compiler_static='-Bstatic'
11868           lt_prog_compiler_wl=''
11869           ;;
11870         *Sun\ C*)
11871           # Sun C 5.9
11872           lt_prog_compiler_pic='-KPIC'
11873           lt_prog_compiler_static='-Bstatic'
11874           lt_prog_compiler_wl='-Wl,'
11875           ;;
11876         esac
11877         ;;
11878       esac
11879       ;;
11880
11881     newsos6)
11882       lt_prog_compiler_pic='-KPIC'
11883       lt_prog_compiler_static='-Bstatic'
11884       ;;
11885
11886     *nto* | *qnx*)
11887       # QNX uses GNU C++, but need to define -shared option too, otherwise
11888       # it will coredump.
11889       lt_prog_compiler_pic='-fPIC -shared'
11890       ;;
11891
11892     osf3* | osf4* | osf5*)
11893       lt_prog_compiler_wl='-Wl,'
11894       # All OSF/1 code is PIC.
11895       lt_prog_compiler_static='-non_shared'
11896       ;;
11897
11898     rdos*)
11899       lt_prog_compiler_static='-non_shared'
11900       ;;
11901
11902     solaris*)
11903       lt_prog_compiler_pic='-KPIC'
11904       lt_prog_compiler_static='-Bstatic'
11905       case $cc_basename in
11906       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11907         lt_prog_compiler_wl='-Qoption ld ';;
11908       *)
11909         lt_prog_compiler_wl='-Wl,';;
11910       esac
11911       ;;
11912
11913     sunos4*)
11914       lt_prog_compiler_wl='-Qoption ld '
11915       lt_prog_compiler_pic='-PIC'
11916       lt_prog_compiler_static='-Bstatic'
11917       ;;
11918
11919     sysv4 | sysv4.2uw2* | sysv4.3*)
11920       lt_prog_compiler_wl='-Wl,'
11921       lt_prog_compiler_pic='-KPIC'
11922       lt_prog_compiler_static='-Bstatic'
11923       ;;
11924
11925     sysv4*MP*)
11926       if test -d /usr/nec ;then
11927         lt_prog_compiler_pic='-Kconform_pic'
11928         lt_prog_compiler_static='-Bstatic'
11929       fi
11930       ;;
11931
11932     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11933       lt_prog_compiler_wl='-Wl,'
11934       lt_prog_compiler_pic='-KPIC'
11935       lt_prog_compiler_static='-Bstatic'
11936       ;;
11937
11938     unicos*)
11939       lt_prog_compiler_wl='-Wl,'
11940       lt_prog_compiler_can_build_shared=no
11941       ;;
11942
11943     uts4*)
11944       lt_prog_compiler_pic='-pic'
11945       lt_prog_compiler_static='-Bstatic'
11946       ;;
11947
11948     *)
11949       lt_prog_compiler_can_build_shared=no
11950       ;;
11951     esac
11952   fi
11953
11954 case $host_os in
11955   # For platforms which do not support PIC, -DPIC is meaningless:
11956   *djgpp*)
11957     lt_prog_compiler_pic=
11958     ;;
11959   *)
11960     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11961     ;;
11962 esac
11963
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11965 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11966 if ${lt_cv_prog_compiler_pic+:} false; then :
11967   $as_echo_n "(cached) " >&6
11968 else
11969   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11970 fi
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11972 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
11973 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11974
11975 #
11976 # Check to make sure the PIC flag actually works.
11977 #
11978 if test -n "$lt_prog_compiler_pic"; then
11979   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11980 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11981 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11982   $as_echo_n "(cached) " >&6
11983 else
11984   lt_cv_prog_compiler_pic_works=no
11985    ac_outfile=conftest.$ac_objext
11986    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11987    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11988    # Insert the option either (1) after the last *FLAGS variable, or
11989    # (2) before a word containing "conftest.", or (3) at the end.
11990    # Note that $ac_compile itself does not contain backslashes and begins
11991    # with a dollar sign (not a hyphen), so the echo should work correctly.
11992    # The option is referenced via a variable to avoid confusing sed.
11993    lt_compile=`echo "$ac_compile" | $SED \
11994    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11995    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11996    -e 's:$: $lt_compiler_flag:'`
11997    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11998    (eval "$lt_compile" 2>conftest.err)
11999    ac_status=$?
12000    cat conftest.err >&5
12001    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002    if (exit $ac_status) && test -s "$ac_outfile"; then
12003      # The compiler can only warn and ignore the option if not recognized
12004      # So say no if there are warnings other than the usual output.
12005      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12006      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12007      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12008        lt_cv_prog_compiler_pic_works=yes
12009      fi
12010    fi
12011    $RM conftest*
12012
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12015 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12016
12017 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12018     case $lt_prog_compiler_pic in
12019      "" | " "*) ;;
12020      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12021      esac
12022 else
12023     lt_prog_compiler_pic=
12024      lt_prog_compiler_can_build_shared=no
12025 fi
12026
12027 fi
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039 #
12040 # Check to make sure the static flag actually works.
12041 #
12042 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12044 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12045 if ${lt_cv_prog_compiler_static_works+:} false; then :
12046   $as_echo_n "(cached) " >&6
12047 else
12048   lt_cv_prog_compiler_static_works=no
12049    save_LDFLAGS="$LDFLAGS"
12050    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12051    echo "$lt_simple_link_test_code" > conftest.$ac_ext
12052    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12053      # The linker can only warn and ignore the option if not recognized
12054      # So say no if there are warnings
12055      if test -s conftest.err; then
12056        # Append any errors to the config.log.
12057        cat conftest.err 1>&5
12058        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12059        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12060        if diff conftest.exp conftest.er2 >/dev/null; then
12061          lt_cv_prog_compiler_static_works=yes
12062        fi
12063      else
12064        lt_cv_prog_compiler_static_works=yes
12065      fi
12066    fi
12067    $RM -r conftest*
12068    LDFLAGS="$save_LDFLAGS"
12069
12070 fi
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12072 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12073
12074 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12075     :
12076 else
12077     lt_prog_compiler_static=
12078 fi
12079
12080
12081
12082
12083
12084
12085
12086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12087 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12088 if ${lt_cv_prog_compiler_c_o+:} false; then :
12089   $as_echo_n "(cached) " >&6
12090 else
12091   lt_cv_prog_compiler_c_o=no
12092    $RM -r conftest 2>/dev/null
12093    mkdir conftest
12094    cd conftest
12095    mkdir out
12096    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12097
12098    lt_compiler_flag="-o out/conftest2.$ac_objext"
12099    # Insert the option either (1) after the last *FLAGS variable, or
12100    # (2) before a word containing "conftest.", or (3) at the end.
12101    # Note that $ac_compile itself does not contain backslashes and begins
12102    # with a dollar sign (not a hyphen), so the echo should work correctly.
12103    lt_compile=`echo "$ac_compile" | $SED \
12104    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12105    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12106    -e 's:$: $lt_compiler_flag:'`
12107    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12108    (eval "$lt_compile" 2>out/conftest.err)
12109    ac_status=$?
12110    cat out/conftest.err >&5
12111    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12113    then
12114      # The compiler can only warn and ignore the option if not recognized
12115      # So say no if there are warnings
12116      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12117      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12118      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12119        lt_cv_prog_compiler_c_o=yes
12120      fi
12121    fi
12122    chmod u+w . 2>&5
12123    $RM conftest*
12124    # SGI C++ compiler will create directory out/ii_files/ for
12125    # template instantiation
12126    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12127    $RM out/* && rmdir out
12128    cd ..
12129    $RM -r conftest
12130    $RM conftest*
12131
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12134 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12135
12136
12137
12138
12139
12140
12141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12142 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12143 if ${lt_cv_prog_compiler_c_o+:} false; then :
12144   $as_echo_n "(cached) " >&6
12145 else
12146   lt_cv_prog_compiler_c_o=no
12147    $RM -r conftest 2>/dev/null
12148    mkdir conftest
12149    cd conftest
12150    mkdir out
12151    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12152
12153    lt_compiler_flag="-o out/conftest2.$ac_objext"
12154    # Insert the option either (1) after the last *FLAGS variable, or
12155    # (2) before a word containing "conftest.", or (3) at the end.
12156    # Note that $ac_compile itself does not contain backslashes and begins
12157    # with a dollar sign (not a hyphen), so the echo should work correctly.
12158    lt_compile=`echo "$ac_compile" | $SED \
12159    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12160    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12161    -e 's:$: $lt_compiler_flag:'`
12162    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12163    (eval "$lt_compile" 2>out/conftest.err)
12164    ac_status=$?
12165    cat out/conftest.err >&5
12166    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167    if (exit $ac_status) && test -s out/conftest2.$ac_objext
12168    then
12169      # The compiler can only warn and ignore the option if not recognized
12170      # So say no if there are warnings
12171      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12172      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12173      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12174        lt_cv_prog_compiler_c_o=yes
12175      fi
12176    fi
12177    chmod u+w . 2>&5
12178    $RM conftest*
12179    # SGI C++ compiler will create directory out/ii_files/ for
12180    # template instantiation
12181    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12182    $RM out/* && rmdir out
12183    cd ..
12184    $RM -r conftest
12185    $RM conftest*
12186
12187 fi
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12189 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12190
12191
12192
12193
12194 hard_links="nottested"
12195 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12196   # do not overwrite the value of need_locks provided by the user
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12198 $as_echo_n "checking if we can lock with hard links... " >&6; }
12199   hard_links=yes
12200   $RM conftest*
12201   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12202   touch conftest.a
12203   ln conftest.a conftest.b 2>&5 || hard_links=no
12204   ln conftest.a conftest.b 2>/dev/null && hard_links=no
12205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12206 $as_echo "$hard_links" >&6; }
12207   if test "$hard_links" = no; then
12208     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12209 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12210     need_locks=warn
12211   fi
12212 else
12213   need_locks=no
12214 fi
12215
12216
12217
12218
12219
12220
12221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12222 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12223
12224   runpath_var=
12225   allow_undefined_flag=
12226   always_export_symbols=no
12227   archive_cmds=
12228   archive_expsym_cmds=
12229   compiler_needs_object=no
12230   enable_shared_with_static_runtimes=no
12231   export_dynamic_flag_spec=
12232   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12233   hardcode_automatic=no
12234   hardcode_direct=no
12235   hardcode_direct_absolute=no
12236   hardcode_libdir_flag_spec=
12237   hardcode_libdir_flag_spec_ld=
12238   hardcode_libdir_separator=
12239   hardcode_minus_L=no
12240   hardcode_shlibpath_var=unsupported
12241   inherit_rpath=no
12242   link_all_deplibs=unknown
12243   module_cmds=
12244   module_expsym_cmds=
12245   old_archive_from_new_cmds=
12246   old_archive_from_expsyms_cmds=
12247   thread_safe_flag_spec=
12248   whole_archive_flag_spec=
12249   # include_expsyms should be a list of space-separated symbols to be *always*
12250   # included in the symbol list
12251   include_expsyms=
12252   # exclude_expsyms can be an extended regexp of symbols to exclude
12253   # it will be wrapped by ` (' and `)$', so one must not match beginning or
12254   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12255   # as well as any symbol that contains `d'.
12256   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12257   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12258   # platforms (ab)use it in PIC code, but their linkers get confused if
12259   # the symbol is explicitly referenced.  Since portable code cannot
12260   # rely on this symbol name, it's probably fine to never include it in
12261   # preloaded symbol tables.
12262   # Exclude shared library initialization/finalization symbols.
12263   extract_expsyms_cmds=
12264
12265   case $host_os in
12266   cygwin* | mingw* | pw32* | cegcc*)
12267     # FIXME: the MSVC++ port hasn't been tested in a loooong time
12268     # When not using gcc, we currently assume that we are using
12269     # Microsoft Visual C++.
12270     if test "$GCC" != yes; then
12271       with_gnu_ld=no
12272     fi
12273     ;;
12274   interix*)
12275     # we just hope/assume this is gcc and not c89 (= MSVC++)
12276     with_gnu_ld=yes
12277     ;;
12278   openbsd*)
12279     with_gnu_ld=no
12280     ;;
12281   esac
12282
12283   ld_shlibs=yes
12284
12285   # On some targets, GNU ld is compatible enough with the native linker
12286   # that we're better off using the native interface for both.
12287   lt_use_gnu_ld_interface=no
12288   if test "$with_gnu_ld" = yes; then
12289     case $host_os in
12290       aix*)
12291         # The AIX port of GNU ld has always aspired to compatibility
12292         # with the native linker.  However, as the warning in the GNU ld
12293         # block says, versions before 2.19.5* couldn't really create working
12294         # shared libraries, regardless of the interface used.
12295         case `$LD -v 2>&1` in
12296           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12297           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12298           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12299           *)
12300             lt_use_gnu_ld_interface=yes
12301             ;;
12302         esac
12303         ;;
12304       *)
12305         lt_use_gnu_ld_interface=yes
12306         ;;
12307     esac
12308   fi
12309
12310   if test "$lt_use_gnu_ld_interface" = yes; then
12311     # If archive_cmds runs LD, not CC, wlarc should be empty
12312     wlarc='${wl}'
12313
12314     # Set some defaults for GNU ld with shared library support. These
12315     # are reset later if shared libraries are not supported. Putting them
12316     # here allows them to be overridden if necessary.
12317     runpath_var=LD_RUN_PATH
12318     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12319     export_dynamic_flag_spec='${wl}--export-dynamic'
12320     # ancient GNU ld didn't support --whole-archive et. al.
12321     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12322       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12323     else
12324       whole_archive_flag_spec=
12325     fi
12326     supports_anon_versioning=no
12327     case `$LD -v 2>&1` in
12328       *GNU\ gold*) supports_anon_versioning=yes ;;
12329       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12330       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12331       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12332       *\ 2.11.*) ;; # other 2.11 versions
12333       *) supports_anon_versioning=yes ;;
12334     esac
12335
12336     # See if GNU ld supports shared libraries.
12337     case $host_os in
12338     aix[3-9]*)
12339       # On AIX/PPC, the GNU linker is very broken
12340       if test "$host_cpu" != ia64; then
12341         ld_shlibs=no
12342         cat <<_LT_EOF 1>&2
12343
12344 *** Warning: the GNU linker, at least up to release 2.19, is reported
12345 *** to be unable to reliably create shared libraries on AIX.
12346 *** Therefore, libtool is disabling shared libraries support.  If you
12347 *** really care for shared libraries, you may want to install binutils
12348 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12349 *** You will then need to restart the configuration process.
12350
12351 _LT_EOF
12352       fi
12353       ;;
12354
12355     amigaos*)
12356       case $host_cpu in
12357       powerpc)
12358             # see comment about AmigaOS4 .so support
12359             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12360             archive_expsym_cmds=''
12361         ;;
12362       m68k)
12363             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)'
12364             hardcode_libdir_flag_spec='-L$libdir'
12365             hardcode_minus_L=yes
12366         ;;
12367       esac
12368       ;;
12369
12370     beos*)
12371       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12372         allow_undefined_flag=unsupported
12373         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12374         # support --undefined.  This deserves some investigation.  FIXME
12375         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12376       else
12377         ld_shlibs=no
12378       fi
12379       ;;
12380
12381     cygwin* | mingw* | pw32* | cegcc*)
12382       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12383       # as there is no search path for DLLs.
12384       hardcode_libdir_flag_spec='-L$libdir'
12385       export_dynamic_flag_spec='${wl}--export-all-symbols'
12386       allow_undefined_flag=unsupported
12387       always_export_symbols=no
12388       enable_shared_with_static_runtimes=yes
12389       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'
12390       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12391
12392       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12393         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12394         # If the export-symbols file already is a .def file (1st line
12395         # is EXPORTS), use it as is; otherwise, prepend...
12396         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12397           cp $export_symbols $output_objdir/$soname.def;
12398         else
12399           echo EXPORTS > $output_objdir/$soname.def;
12400           cat $export_symbols >> $output_objdir/$soname.def;
12401         fi~
12402         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12403       else
12404         ld_shlibs=no
12405       fi
12406       ;;
12407
12408     haiku*)
12409       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410       link_all_deplibs=yes
12411       ;;
12412
12413     interix[3-9]*)
12414       hardcode_direct=no
12415       hardcode_shlibpath_var=no
12416       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12417       export_dynamic_flag_spec='${wl}-E'
12418       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12419       # Instead, shared libraries are loaded at an image base (0x10000000 by
12420       # default) and relocated if they conflict, which is a slow very memory
12421       # consuming and fragmenting process.  To avoid this, we pick a random,
12422       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12423       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12424       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12425       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'
12426       ;;
12427
12428     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12429       tmp_diet=no
12430       if test "$host_os" = linux-dietlibc; then
12431         case $cc_basename in
12432           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
12433         esac
12434       fi
12435       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12436          && test "$tmp_diet" = no
12437       then
12438         tmp_addflag=' $pic_flag'
12439         tmp_sharedflag='-shared'
12440         case $cc_basename,$host_cpu in
12441         pgcc*)                          # Portland Group C compiler
12442           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'
12443           tmp_addflag=' $pic_flag'
12444           ;;
12445         pgf77* | pgf90* | pgf95* | pgfortran*)
12446                                         # Portland Group f77 and f90 compilers
12447           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'
12448           tmp_addflag=' $pic_flag -Mnomain' ;;
12449         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
12450           tmp_addflag=' -i_dynamic' ;;
12451         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
12452           tmp_addflag=' -i_dynamic -nofor_main' ;;
12453         ifc* | ifort*)                  # Intel Fortran compiler
12454           tmp_addflag=' -nofor_main' ;;
12455         lf95*)                          # Lahey Fortran 8.1
12456           whole_archive_flag_spec=
12457           tmp_sharedflag='--shared' ;;
12458         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12459           tmp_sharedflag='-qmkshrobj'
12460           tmp_addflag= ;;
12461         nvcc*)  # Cuda Compiler Driver 2.2
12462           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'
12463           compiler_needs_object=yes
12464           ;;
12465         esac
12466         case `$CC -V 2>&1 | sed 5q` in
12467         *Sun\ C*)                       # Sun C 5.9
12468           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'
12469           compiler_needs_object=yes
12470           tmp_sharedflag='-G' ;;
12471         *Sun\ F*)                       # Sun Fortran 8.3
12472           tmp_sharedflag='-G' ;;
12473         esac
12474         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12475
12476         if test "x$supports_anon_versioning" = xyes; then
12477           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12478             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12479             echo "local: *; };" >> $output_objdir/$libname.ver~
12480             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12481         fi
12482
12483         case $cc_basename in
12484         xlf* | bgf* | bgxlf* | mpixlf*)
12485           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12486           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12487           hardcode_libdir_flag_spec=
12488           hardcode_libdir_flag_spec_ld='-rpath $libdir'
12489           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12490           if test "x$supports_anon_versioning" = xyes; then
12491             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12492               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12493               echo "local: *; };" >> $output_objdir/$libname.ver~
12494               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12495           fi
12496           ;;
12497         esac
12498       else
12499         ld_shlibs=no
12500       fi
12501       ;;
12502
12503     netbsd*)
12504       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12505         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12506         wlarc=
12507       else
12508         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12509         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12510       fi
12511       ;;
12512
12513     solaris*)
12514       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12515         ld_shlibs=no
12516         cat <<_LT_EOF 1>&2
12517
12518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12519 *** create shared libraries on Solaris systems.  Therefore, libtool
12520 *** is disabling shared libraries support.  We urge you to upgrade GNU
12521 *** binutils to release 2.9.1 or newer.  Another option is to modify
12522 *** your PATH or compiler configuration so that the native linker is
12523 *** used, and then restart.
12524
12525 _LT_EOF
12526       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12527         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12528         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12529       else
12530         ld_shlibs=no
12531       fi
12532       ;;
12533
12534     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12535       case `$LD -v 2>&1` in
12536         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12537         ld_shlibs=no
12538         cat <<_LT_EOF 1>&2
12539
12540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12541 *** reliably create shared libraries on SCO systems.  Therefore, libtool
12542 *** is disabling shared libraries support.  We urge you to upgrade GNU
12543 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12544 *** your PATH or compiler configuration so that the native linker is
12545 *** used, and then restart.
12546
12547 _LT_EOF
12548         ;;
12549         *)
12550           # For security reasons, it is highly recommended that you always
12551           # use absolute paths for naming shared libraries, and exclude the
12552           # DT_RUNPATH tag from executables and libraries.  But doing so
12553           # requires that you compile everything twice, which is a pain.
12554           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12555             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12556             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12557             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12558           else
12559             ld_shlibs=no
12560           fi
12561         ;;
12562       esac
12563       ;;
12564
12565     sunos4*)
12566       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12567       wlarc=
12568       hardcode_direct=yes
12569       hardcode_shlibpath_var=no
12570       ;;
12571
12572     *)
12573       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12574         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12575         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12576       else
12577         ld_shlibs=no
12578       fi
12579       ;;
12580     esac
12581
12582     if test "$ld_shlibs" = no; then
12583       runpath_var=
12584       hardcode_libdir_flag_spec=
12585       export_dynamic_flag_spec=
12586       whole_archive_flag_spec=
12587     fi
12588   else
12589     # PORTME fill in a description of your system's linker (not GNU ld)
12590     case $host_os in
12591     aix3*)
12592       allow_undefined_flag=unsupported
12593       always_export_symbols=yes
12594       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'
12595       # Note: this linker hardcodes the directories in LIBPATH if there
12596       # are no directories specified by -L.
12597       hardcode_minus_L=yes
12598       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12599         # Neither direct hardcoding nor static linking is supported with a
12600         # broken collect2.
12601         hardcode_direct=unsupported
12602       fi
12603       ;;
12604
12605     aix[4-9]*)
12606       if test "$host_cpu" = ia64; then
12607         # On IA64, the linker does run time linking by default, so we don't
12608         # have to do anything special.
12609         aix_use_runtimelinking=no
12610         exp_sym_flag='-Bexport'
12611         no_entry_flag=""
12612       else
12613         # If we're using GNU nm, then we don't want the "-C" option.
12614         # -C means demangle to AIX nm, but means don't demangle with GNU nm
12615         # Also, AIX nm treats weak defined symbols like other global
12616         # defined symbols, whereas GNU nm marks them as "W".
12617         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12618           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'
12619         else
12620           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'
12621         fi
12622         aix_use_runtimelinking=no
12623
12624         # Test if we are trying to use run time linking or normal
12625         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12626         # need to do runtime linking.
12627         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12628           for ld_flag in $LDFLAGS; do
12629           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12630             aix_use_runtimelinking=yes
12631             break
12632           fi
12633           done
12634           ;;
12635         esac
12636
12637         exp_sym_flag='-bexport'
12638         no_entry_flag='-bnoentry'
12639       fi
12640
12641       # When large executables or shared objects are built, AIX ld can
12642       # have problems creating the table of contents.  If linking a library
12643       # or program results in "error TOC overflow" add -mminimal-toc to
12644       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12645       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12646
12647       archive_cmds=''
12648       hardcode_direct=yes
12649       hardcode_direct_absolute=yes
12650       hardcode_libdir_separator=':'
12651       link_all_deplibs=yes
12652       file_list_spec='${wl}-f,'
12653
12654       if test "$GCC" = yes; then
12655         case $host_os in aix4.[012]|aix4.[012].*)
12656         # We only want to do this on AIX 4.2 and lower, the check
12657         # below for broken collect2 doesn't work under 4.3+
12658           collect2name=`${CC} -print-prog-name=collect2`
12659           if test -f "$collect2name" &&
12660            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12661           then
12662           # We have reworked collect2
12663           :
12664           else
12665           # We have old collect2
12666           hardcode_direct=unsupported
12667           # It fails to find uninstalled libraries when the uninstalled
12668           # path is not listed in the libpath.  Setting hardcode_minus_L
12669           # to unsupported forces relinking
12670           hardcode_minus_L=yes
12671           hardcode_libdir_flag_spec='-L$libdir'
12672           hardcode_libdir_separator=
12673           fi
12674           ;;
12675         esac
12676         shared_flag='-shared'
12677         if test "$aix_use_runtimelinking" = yes; then
12678           shared_flag="$shared_flag "'${wl}-G'
12679         fi
12680       else
12681         # not using gcc
12682         if test "$host_cpu" = ia64; then
12683         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12684         # chokes on -Wl,-G. The following line is correct:
12685           shared_flag='-G'
12686         else
12687           if test "$aix_use_runtimelinking" = yes; then
12688             shared_flag='${wl}-G'
12689           else
12690             shared_flag='${wl}-bM:SRE'
12691           fi
12692         fi
12693       fi
12694
12695       export_dynamic_flag_spec='${wl}-bexpall'
12696       # It seems that -bexpall does not export symbols beginning with
12697       # underscore (_), so it is better to generate a list of symbols to export.
12698       always_export_symbols=yes
12699       if test "$aix_use_runtimelinking" = yes; then
12700         # Warning - without using the other runtime loading flags (-brtl),
12701         # -berok will link without error, but may produce a broken library.
12702         allow_undefined_flag='-berok'
12703         # Determine the default libpath from the value encoded in an
12704         # empty executable.
12705         if test "${lt_cv_aix_libpath+set}" = set; then
12706   aix_libpath=$lt_cv_aix_libpath
12707 else
12708   if ${lt_cv_aix_libpath_+:} false; then :
12709   $as_echo_n "(cached) " >&6
12710 else
12711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12712 /* end confdefs.h.  */
12713
12714 int
12715 main ()
12716 {
12717
12718   ;
12719   return 0;
12720 }
12721 _ACEOF
12722 if ac_fn_c_try_link "$LINENO"; then :
12723
12724   lt_aix_libpath_sed='
12725       /Import File Strings/,/^$/ {
12726           /^0/ {
12727               s/^0  *\([^ ]*\) *$/\1/
12728               p
12729           }
12730       }'
12731   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12732   # Check for a 64-bit object if we didn't find anything.
12733   if test -z "$lt_cv_aix_libpath_"; then
12734     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12735   fi
12736 fi
12737 rm -f core conftest.err conftest.$ac_objext \
12738     conftest$ac_exeext conftest.$ac_ext
12739   if test -z "$lt_cv_aix_libpath_"; then
12740     lt_cv_aix_libpath_="/usr/lib:/lib"
12741   fi
12742
12743 fi
12744
12745   aix_libpath=$lt_cv_aix_libpath_
12746 fi
12747
12748         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12749         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"
12750       else
12751         if test "$host_cpu" = ia64; then
12752           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12753           allow_undefined_flag="-z nodefs"
12754           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"
12755         else
12756          # Determine the default libpath from the value encoded in an
12757          # empty executable.
12758          if test "${lt_cv_aix_libpath+set}" = set; then
12759   aix_libpath=$lt_cv_aix_libpath
12760 else
12761   if ${lt_cv_aix_libpath_+:} false; then :
12762   $as_echo_n "(cached) " >&6
12763 else
12764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12765 /* end confdefs.h.  */
12766
12767 int
12768 main ()
12769 {
12770
12771   ;
12772   return 0;
12773 }
12774 _ACEOF
12775 if ac_fn_c_try_link "$LINENO"; then :
12776
12777   lt_aix_libpath_sed='
12778       /Import File Strings/,/^$/ {
12779           /^0/ {
12780               s/^0  *\([^ ]*\) *$/\1/
12781               p
12782           }
12783       }'
12784   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12785   # Check for a 64-bit object if we didn't find anything.
12786   if test -z "$lt_cv_aix_libpath_"; then
12787     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12788   fi
12789 fi
12790 rm -f core conftest.err conftest.$ac_objext \
12791     conftest$ac_exeext conftest.$ac_ext
12792   if test -z "$lt_cv_aix_libpath_"; then
12793     lt_cv_aix_libpath_="/usr/lib:/lib"
12794   fi
12795
12796 fi
12797
12798   aix_libpath=$lt_cv_aix_libpath_
12799 fi
12800
12801          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12802           # Warning - without using the other run time loading flags,
12803           # -berok will link without error, but may produce a broken library.
12804           no_undefined_flag=' ${wl}-bernotok'
12805           allow_undefined_flag=' ${wl}-berok'
12806           if test "$with_gnu_ld" = yes; then
12807             # We only use this code for GNU lds that support --whole-archive.
12808             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12809           else
12810             # Exported symbols can be pulled into shared objects from archives
12811             whole_archive_flag_spec='$convenience'
12812           fi
12813           archive_cmds_need_lc=yes
12814           # This is similar to how AIX traditionally builds its shared libraries.
12815           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'
12816         fi
12817       fi
12818       ;;
12819
12820     amigaos*)
12821       case $host_cpu in
12822       powerpc)
12823             # see comment about AmigaOS4 .so support
12824             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12825             archive_expsym_cmds=''
12826         ;;
12827       m68k)
12828             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)'
12829             hardcode_libdir_flag_spec='-L$libdir'
12830             hardcode_minus_L=yes
12831         ;;
12832       esac
12833       ;;
12834
12835     bsdi[45]*)
12836       export_dynamic_flag_spec=-rdynamic
12837       ;;
12838
12839     cygwin* | mingw* | pw32* | cegcc*)
12840       # When not using gcc, we currently assume that we are using
12841       # Microsoft Visual C++.
12842       # hardcode_libdir_flag_spec is actually meaningless, as there is
12843       # no search path for DLLs.
12844       case $cc_basename in
12845       cl*)
12846         # Native MSVC
12847         hardcode_libdir_flag_spec=' '
12848         allow_undefined_flag=unsupported
12849         always_export_symbols=yes
12850         file_list_spec='@'
12851         # Tell ltmain to make .lib files, not .a files.
12852         libext=lib
12853         # Tell ltmain to make .dll files, not .so files.
12854         shrext_cmds=".dll"
12855         # FIXME: Setting linknames here is a bad hack.
12856         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12857         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12858             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12859           else
12860             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12861           fi~
12862           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12863           linknames='
12864         # The linker will not automatically build a static lib if we build a DLL.
12865         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12866         enable_shared_with_static_runtimes=yes
12867         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12868         # Don't use ranlib
12869         old_postinstall_cmds='chmod 644 $oldlib'
12870         postlink_cmds='lt_outputfile="@OUTPUT@"~
12871           lt_tool_outputfile="@TOOL_OUTPUT@"~
12872           case $lt_outputfile in
12873             *.exe|*.EXE) ;;
12874             *)
12875               lt_outputfile="$lt_outputfile.exe"
12876               lt_tool_outputfile="$lt_tool_outputfile.exe"
12877               ;;
12878           esac~
12879           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12880             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12881             $RM "$lt_outputfile.manifest";
12882           fi'
12883         ;;
12884       *)
12885         # Assume MSVC wrapper
12886         hardcode_libdir_flag_spec=' '
12887         allow_undefined_flag=unsupported
12888         # Tell ltmain to make .lib files, not .a files.
12889         libext=lib
12890         # Tell ltmain to make .dll files, not .so files.
12891         shrext_cmds=".dll"
12892         # FIXME: Setting linknames here is a bad hack.
12893         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12894         # The linker will automatically build a .lib file if we build a DLL.
12895         old_archive_from_new_cmds='true'
12896         # FIXME: Should let the user specify the lib program.
12897         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12898         enable_shared_with_static_runtimes=yes
12899         ;;
12900       esac
12901       ;;
12902
12903     darwin* | rhapsody*)
12904
12905
12906   archive_cmds_need_lc=no
12907   hardcode_direct=no
12908   hardcode_automatic=yes
12909   hardcode_shlibpath_var=unsupported
12910   if test "$lt_cv_ld_force_load" = "yes"; then
12911     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\"`'
12912   else
12913     whole_archive_flag_spec=''
12914   fi
12915   link_all_deplibs=yes
12916   allow_undefined_flag="$_lt_dar_allow_undefined"
12917   case $cc_basename in
12918      ifort*) _lt_dar_can_shared=yes ;;
12919      *) _lt_dar_can_shared=$GCC ;;
12920   esac
12921   if test "$_lt_dar_can_shared" = "yes"; then
12922     output_verbose_link_cmd=func_echo_all
12923     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12924     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12925     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}"
12926     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}"
12927
12928   else
12929   ld_shlibs=no
12930   fi
12931
12932       ;;
12933
12934     dgux*)
12935       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12936       hardcode_libdir_flag_spec='-L$libdir'
12937       hardcode_shlibpath_var=no
12938       ;;
12939
12940     freebsd1*)
12941       ld_shlibs=no
12942       ;;
12943
12944     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12945     # support.  Future versions do this automatically, but an explicit c++rt0.o
12946     # does not break anything, and helps significantly (at the cost of a little
12947     # extra space).
12948     freebsd2.2*)
12949       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12950       hardcode_libdir_flag_spec='-R$libdir'
12951       hardcode_direct=yes
12952       hardcode_shlibpath_var=no
12953       ;;
12954
12955     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12956     freebsd2*)
12957       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12958       hardcode_direct=yes
12959       hardcode_minus_L=yes
12960       hardcode_shlibpath_var=no
12961       ;;
12962
12963     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12964     freebsd* | dragonfly*)
12965       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12966       hardcode_libdir_flag_spec='-R$libdir'
12967       hardcode_direct=yes
12968       hardcode_shlibpath_var=no
12969       ;;
12970
12971     hpux9*)
12972       if test "$GCC" = yes; then
12973         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'
12974       else
12975         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'
12976       fi
12977       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12978       hardcode_libdir_separator=:
12979       hardcode_direct=yes
12980
12981       # hardcode_minus_L: Not really in the search PATH,
12982       # but as the default location of the library.
12983       hardcode_minus_L=yes
12984       export_dynamic_flag_spec='${wl}-E'
12985       ;;
12986
12987     hpux10*)
12988       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12989         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12990       else
12991         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12992       fi
12993       if test "$with_gnu_ld" = no; then
12994         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12995         hardcode_libdir_flag_spec_ld='+b $libdir'
12996         hardcode_libdir_separator=:
12997         hardcode_direct=yes
12998         hardcode_direct_absolute=yes
12999         export_dynamic_flag_spec='${wl}-E'
13000         # hardcode_minus_L: Not really in the search PATH,
13001         # but as the default location of the library.
13002         hardcode_minus_L=yes
13003       fi
13004       ;;
13005
13006     hpux11*)
13007       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13008         case $host_cpu in
13009         hppa*64*)
13010           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13011           ;;
13012         ia64*)
13013           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13014           ;;
13015         *)
13016           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13017           ;;
13018         esac
13019       else
13020         case $host_cpu in
13021         hppa*64*)
13022           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13023           ;;
13024         ia64*)
13025           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13026           ;;
13027         *)
13028
13029           # Older versions of the 11.00 compiler do not understand -b yet
13030           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13031           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13032 $as_echo_n "checking if $CC understands -b... " >&6; }
13033 if ${lt_cv_prog_compiler__b+:} false; then :
13034   $as_echo_n "(cached) " >&6
13035 else
13036   lt_cv_prog_compiler__b=no
13037    save_LDFLAGS="$LDFLAGS"
13038    LDFLAGS="$LDFLAGS -b"
13039    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13040    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13041      # The linker can only warn and ignore the option if not recognized
13042      # So say no if there are warnings
13043      if test -s conftest.err; then
13044        # Append any errors to the config.log.
13045        cat conftest.err 1>&5
13046        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13047        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13048        if diff conftest.exp conftest.er2 >/dev/null; then
13049          lt_cv_prog_compiler__b=yes
13050        fi
13051      else
13052        lt_cv_prog_compiler__b=yes
13053      fi
13054    fi
13055    $RM -r conftest*
13056    LDFLAGS="$save_LDFLAGS"
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13060 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13061
13062 if test x"$lt_cv_prog_compiler__b" = xyes; then
13063     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13064 else
13065     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13066 fi
13067
13068           ;;
13069         esac
13070       fi
13071       if test "$with_gnu_ld" = no; then
13072         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13073         hardcode_libdir_separator=:
13074
13075         case $host_cpu in
13076         hppa*64*|ia64*)
13077           hardcode_direct=no
13078           hardcode_shlibpath_var=no
13079           ;;
13080         *)
13081           hardcode_direct=yes
13082           hardcode_direct_absolute=yes
13083           export_dynamic_flag_spec='${wl}-E'
13084
13085           # hardcode_minus_L: Not really in the search PATH,
13086           # but as the default location of the library.
13087           hardcode_minus_L=yes
13088           ;;
13089         esac
13090       fi
13091       ;;
13092
13093     irix5* | irix6* | nonstopux*)
13094       if test "$GCC" = yes; then
13095         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'
13096         # Try to use the -exported_symbol ld option, if it does not
13097         # work, assume that -exports_file does not work either and
13098         # implicitly export all symbols.
13099         # This should be the same for all languages, so no per-tag cache variable.
13100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13101 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13102 if ${lt_cv_irix_exported_symbol+:} false; then :
13103   $as_echo_n "(cached) " >&6
13104 else
13105   save_LDFLAGS="$LDFLAGS"
13106            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13107            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13108 /* end confdefs.h.  */
13109 int foo (void) { return 0; }
13110 _ACEOF
13111 if ac_fn_c_try_link "$LINENO"; then :
13112   lt_cv_irix_exported_symbol=yes
13113 else
13114   lt_cv_irix_exported_symbol=no
13115 fi
13116 rm -f core conftest.err conftest.$ac_objext \
13117     conftest$ac_exeext conftest.$ac_ext
13118            LDFLAGS="$save_LDFLAGS"
13119 fi
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13121 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13122         if test "$lt_cv_irix_exported_symbol" = yes; then
13123           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'
13124         fi
13125       else
13126         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'
13127         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'
13128       fi
13129       archive_cmds_need_lc='no'
13130       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13131       hardcode_libdir_separator=:
13132       inherit_rpath=yes
13133       link_all_deplibs=yes
13134       ;;
13135
13136     netbsd*)
13137       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13138         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13139       else
13140         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13141       fi
13142       hardcode_libdir_flag_spec='-R$libdir'
13143       hardcode_direct=yes
13144       hardcode_shlibpath_var=no
13145       ;;
13146
13147     newsos6)
13148       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13149       hardcode_direct=yes
13150       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13151       hardcode_libdir_separator=:
13152       hardcode_shlibpath_var=no
13153       ;;
13154
13155     *nto* | *qnx*)
13156       ;;
13157
13158     openbsd*)
13159       if test -f /usr/libexec/ld.so; then
13160         hardcode_direct=yes
13161         hardcode_shlibpath_var=no
13162         hardcode_direct_absolute=yes
13163         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13164           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13165           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13166           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13167           export_dynamic_flag_spec='${wl}-E'
13168         else
13169           case $host_os in
13170            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13171              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13172              hardcode_libdir_flag_spec='-R$libdir'
13173              ;;
13174            *)
13175              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13176              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13177              ;;
13178           esac
13179         fi
13180       else
13181         ld_shlibs=no
13182       fi
13183       ;;
13184
13185     os2*)
13186       hardcode_libdir_flag_spec='-L$libdir'
13187       hardcode_minus_L=yes
13188       allow_undefined_flag=unsupported
13189       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'
13190       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13191       ;;
13192
13193     osf3*)
13194       if test "$GCC" = yes; then
13195         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13196         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'
13197       else
13198         allow_undefined_flag=' -expect_unresolved \*'
13199         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'
13200       fi
13201       archive_cmds_need_lc='no'
13202       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13203       hardcode_libdir_separator=:
13204       ;;
13205
13206     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13207       if test "$GCC" = yes; then
13208         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13209         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'
13210         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13211       else
13212         allow_undefined_flag=' -expect_unresolved \*'
13213         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'
13214         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~
13215         $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'
13216
13217         # Both c and cxx compiler support -rpath directly
13218         hardcode_libdir_flag_spec='-rpath $libdir'
13219       fi
13220       archive_cmds_need_lc='no'
13221       hardcode_libdir_separator=:
13222       ;;
13223
13224     solaris*)
13225       no_undefined_flag=' -z defs'
13226       if test "$GCC" = yes; then
13227         wlarc='${wl}'
13228         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13229         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13230           $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'
13231       else
13232         case `$CC -V 2>&1` in
13233         *"Compilers 5.0"*)
13234           wlarc=''
13235           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13236           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13237           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13238           ;;
13239         *)
13240           wlarc='${wl}'
13241           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13242           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13243           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13244           ;;
13245         esac
13246       fi
13247       hardcode_libdir_flag_spec='-R$libdir'
13248       hardcode_shlibpath_var=no
13249       case $host_os in
13250       solaris2.[0-5] | solaris2.[0-5].*) ;;
13251       *)
13252         # The compiler driver will combine and reorder linker options,
13253         # but understands `-z linker_flag'.  GCC discards it without `$wl',
13254         # but is careful enough not to reorder.
13255         # Supported since Solaris 2.6 (maybe 2.5.1?)
13256         if test "$GCC" = yes; then
13257           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13258         else
13259           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13260         fi
13261         ;;
13262       esac
13263       link_all_deplibs=yes
13264       ;;
13265
13266     sunos4*)
13267       if test "x$host_vendor" = xsequent; then
13268         # Use $CC to link under sequent, because it throws in some extra .o
13269         # files that make .init and .fini sections work.
13270         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13271       else
13272         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13273       fi
13274       hardcode_libdir_flag_spec='-L$libdir'
13275       hardcode_direct=yes
13276       hardcode_minus_L=yes
13277       hardcode_shlibpath_var=no
13278       ;;
13279
13280     sysv4)
13281       case $host_vendor in
13282         sni)
13283           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13284           hardcode_direct=yes # is this really true???
13285         ;;
13286         siemens)
13287           ## LD is ld it makes a PLAMLIB
13288           ## CC just makes a GrossModule.
13289           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13290           reload_cmds='$CC -r -o $output$reload_objs'
13291           hardcode_direct=no
13292         ;;
13293         motorola)
13294           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13295           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13296         ;;
13297       esac
13298       runpath_var='LD_RUN_PATH'
13299       hardcode_shlibpath_var=no
13300       ;;
13301
13302     sysv4.3*)
13303       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13304       hardcode_shlibpath_var=no
13305       export_dynamic_flag_spec='-Bexport'
13306       ;;
13307
13308     sysv4*MP*)
13309       if test -d /usr/nec; then
13310         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13311         hardcode_shlibpath_var=no
13312         runpath_var=LD_RUN_PATH
13313         hardcode_runpath_var=yes
13314         ld_shlibs=yes
13315       fi
13316       ;;
13317
13318     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13319       no_undefined_flag='${wl}-z,text'
13320       archive_cmds_need_lc=no
13321       hardcode_shlibpath_var=no
13322       runpath_var='LD_RUN_PATH'
13323
13324       if test "$GCC" = yes; then
13325         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13327       else
13328         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330       fi
13331       ;;
13332
13333     sysv5* | sco3.2v5* | sco5v6*)
13334       # Note: We can NOT use -z defs as we might desire, because we do not
13335       # link with -lc, and that would cause any symbols used from libc to
13336       # always be unresolved, which means just about no library would
13337       # ever link correctly.  If we're not using GNU ld we use -z text
13338       # though, which does catch some bad symbols but isn't as heavy-handed
13339       # as -z defs.
13340       no_undefined_flag='${wl}-z,text'
13341       allow_undefined_flag='${wl}-z,nodefs'
13342       archive_cmds_need_lc=no
13343       hardcode_shlibpath_var=no
13344       hardcode_libdir_flag_spec='${wl}-R,$libdir'
13345       hardcode_libdir_separator=':'
13346       link_all_deplibs=yes
13347       export_dynamic_flag_spec='${wl}-Bexport'
13348       runpath_var='LD_RUN_PATH'
13349
13350       if test "$GCC" = yes; then
13351         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13352         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13353       else
13354         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13355         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13356       fi
13357       ;;
13358
13359     uts4*)
13360       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13361       hardcode_libdir_flag_spec='-L$libdir'
13362       hardcode_shlibpath_var=no
13363       ;;
13364
13365     *)
13366       ld_shlibs=no
13367       ;;
13368     esac
13369
13370     if test x$host_vendor = xsni; then
13371       case $host in
13372       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13373         export_dynamic_flag_spec='${wl}-Blargedynsym'
13374         ;;
13375       esac
13376     fi
13377   fi
13378
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13380 $as_echo "$ld_shlibs" >&6; }
13381 test "$ld_shlibs" = no && can_build_shared=no
13382
13383 with_gnu_ld=$with_gnu_ld
13384
13385
13386
13387
13388
13389
13390
13391
13392
13393
13394
13395
13396
13397
13398
13399 #
13400 # Do we need to explicitly link libc?
13401 #
13402 case "x$archive_cmds_need_lc" in
13403 x|xyes)
13404   # Assume -lc should be added
13405   archive_cmds_need_lc=yes
13406
13407   if test "$enable_shared" = yes && test "$GCC" = yes; then
13408     case $archive_cmds in
13409     *'~'*)
13410       # FIXME: we may have to deal with multi-command sequences.
13411       ;;
13412     '$CC '*)
13413       # Test whether the compiler implicitly links with -lc since on some
13414       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13415       # to ld, don't add -lc before -lgcc.
13416       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13417 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13418 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13419   $as_echo_n "(cached) " >&6
13420 else
13421   $RM conftest*
13422         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13423
13424         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13425   (eval $ac_compile) 2>&5
13426   ac_status=$?
13427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428   test $ac_status = 0; } 2>conftest.err; then
13429           soname=conftest
13430           lib=conftest
13431           libobjs=conftest.$ac_objext
13432           deplibs=
13433           wl=$lt_prog_compiler_wl
13434           pic_flag=$lt_prog_compiler_pic
13435           compiler_flags=-v
13436           linker_flags=-v
13437           verstring=
13438           output_objdir=.
13439           libname=conftest
13440           lt_save_allow_undefined_flag=$allow_undefined_flag
13441           allow_undefined_flag=
13442           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13443   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13444   ac_status=$?
13445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13446   test $ac_status = 0; }
13447           then
13448             lt_cv_archive_cmds_need_lc=no
13449           else
13450             lt_cv_archive_cmds_need_lc=yes
13451           fi
13452           allow_undefined_flag=$lt_save_allow_undefined_flag
13453         else
13454           cat conftest.err 1>&5
13455         fi
13456         $RM conftest*
13457
13458 fi
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13460 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13461       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13462       ;;
13463     esac
13464   fi
13465   ;;
13466 esac
13467
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13625 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13626
13627 if test "$GCC" = yes; then
13628   case $host_os in
13629     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13630     *) lt_awk_arg="/^libraries:/" ;;
13631   esac
13632   case $host_os in
13633     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13634     *) lt_sed_strip_eq="s,=/,/,g" ;;
13635   esac
13636   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13637   case $lt_search_path_spec in
13638   *\;*)
13639     # if the path contains ";" then we assume it to be the separator
13640     # otherwise default to the standard path separator (i.e. ":") - it is
13641     # assumed that no part of a normal pathname contains ";" but that should
13642     # okay in the real world where ";" in dirpaths is itself problematic.
13643     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13644     ;;
13645   *)
13646     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13647     ;;
13648   esac
13649   # Ok, now we have the path, separated by spaces, we can step through it
13650   # and add multilib dir if necessary.
13651   lt_tmp_lt_search_path_spec=
13652   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13653   for lt_sys_path in $lt_search_path_spec; do
13654     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13655       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13656     else
13657       test -d "$lt_sys_path" && \
13658         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13659     fi
13660   done
13661   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13662 BEGIN {RS=" "; FS="/|\n";} {
13663   lt_foo="";
13664   lt_count=0;
13665   for (lt_i = NF; lt_i > 0; lt_i--) {
13666     if ($lt_i != "" && $lt_i != ".") {
13667       if ($lt_i == "..") {
13668         lt_count++;
13669       } else {
13670         if (lt_count == 0) {
13671           lt_foo="/" $lt_i lt_foo;
13672         } else {
13673           lt_count--;
13674         }
13675       }
13676     }
13677   }
13678   if (lt_foo != "") { lt_freq[lt_foo]++; }
13679   if (lt_freq[lt_foo] == 1) { print lt_foo; }
13680 }'`
13681   # AWK program above erroneously prepends '/' to C:/dos/paths
13682   # for these hosts.
13683   case $host_os in
13684     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13685       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13686   esac
13687   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13688 else
13689   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13690 fi
13691 library_names_spec=
13692 libname_spec='lib$name'
13693 soname_spec=
13694 shrext_cmds=".so"
13695 postinstall_cmds=
13696 postuninstall_cmds=
13697 finish_cmds=
13698 finish_eval=
13699 shlibpath_var=
13700 shlibpath_overrides_runpath=unknown
13701 version_type=none
13702 dynamic_linker="$host_os ld.so"
13703 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13704 need_lib_prefix=unknown
13705 hardcode_into_libs=no
13706
13707 # when you set need_version to no, make sure it does not cause -set_version
13708 # flags to be left without arguments
13709 need_version=unknown
13710
13711 case $host_os in
13712 aix3*)
13713   version_type=linux
13714   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13715   shlibpath_var=LIBPATH
13716
13717   # AIX 3 has no versioning support, so we append a major version to the name.
13718   soname_spec='${libname}${release}${shared_ext}$major'
13719   ;;
13720
13721 aix[4-9]*)
13722   version_type=linux
13723   need_lib_prefix=no
13724   need_version=no
13725   hardcode_into_libs=yes
13726   if test "$host_cpu" = ia64; then
13727     # AIX 5 supports IA64
13728     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13729     shlibpath_var=LD_LIBRARY_PATH
13730   else
13731     # With GCC up to 2.95.x, collect2 would create an import file
13732     # for dependence libraries.  The import file would start with
13733     # the line `#! .'.  This would cause the generated library to
13734     # depend on `.', always an invalid library.  This was fixed in
13735     # development snapshots of GCC prior to 3.0.
13736     case $host_os in
13737       aix4 | aix4.[01] | aix4.[01].*)
13738       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13739            echo ' yes '
13740            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13741         :
13742       else
13743         can_build_shared=no
13744       fi
13745       ;;
13746     esac
13747     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13748     # soname into executable. Probably we can add versioning support to
13749     # collect2, so additional links can be useful in future.
13750     if test "$aix_use_runtimelinking" = yes; then
13751       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13752       # instead of lib<name>.a to let people know that these are not
13753       # typical AIX shared libraries.
13754       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13755     else
13756       # We preserve .a as extension for shared libraries through AIX4.2
13757       # and later when we are not doing run time linking.
13758       library_names_spec='${libname}${release}.a $libname.a'
13759       soname_spec='${libname}${release}${shared_ext}$major'
13760     fi
13761     shlibpath_var=LIBPATH
13762   fi
13763   ;;
13764
13765 amigaos*)
13766   case $host_cpu in
13767   powerpc)
13768     # Since July 2007 AmigaOS4 officially supports .so libraries.
13769     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13770     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13771     ;;
13772   m68k)
13773     library_names_spec='$libname.ixlibrary $libname.a'
13774     # Create ${libname}_ixlibrary.a entries in /sys/libs.
13775     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'
13776     ;;
13777   esac
13778   ;;
13779
13780 beos*)
13781   library_names_spec='${libname}${shared_ext}'
13782   dynamic_linker="$host_os ld.so"
13783   shlibpath_var=LIBRARY_PATH
13784   ;;
13785
13786 bsdi[45]*)
13787   version_type=linux
13788   need_version=no
13789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790   soname_spec='${libname}${release}${shared_ext}$major'
13791   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13792   shlibpath_var=LD_LIBRARY_PATH
13793   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13794   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13795   # the default ld.so.conf also contains /usr/contrib/lib and
13796   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13797   # libtool to hard-code these into programs
13798   ;;
13799
13800 cygwin* | mingw* | pw32* | cegcc*)
13801   version_type=windows
13802   shrext_cmds=".dll"
13803   need_version=no
13804   need_lib_prefix=no
13805
13806   case $GCC,$cc_basename in
13807   yes,*)
13808     # gcc
13809     library_names_spec='$libname.dll.a'
13810     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13811     postinstall_cmds='base_file=`basename \${file}`~
13812       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13813       dldir=$destdir/`dirname \$dlpath`~
13814       test -d \$dldir || mkdir -p \$dldir~
13815       $install_prog $dir/$dlname \$dldir/$dlname~
13816       chmod a+x \$dldir/$dlname~
13817       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13818         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13819       fi'
13820     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13821       dlpath=$dir/\$dldll~
13822        $RM \$dlpath'
13823     shlibpath_overrides_runpath=yes
13824
13825     case $host_os in
13826     cygwin*)
13827       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13828       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13829
13830       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13831       ;;
13832     mingw* | cegcc*)
13833       # MinGW DLLs use traditional 'lib' prefix
13834       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13835       ;;
13836     pw32*)
13837       # pw32 DLLs use 'pw' prefix rather than 'lib'
13838       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13839       ;;
13840     esac
13841     dynamic_linker='Win32 ld.exe'
13842     ;;
13843
13844   *,cl*)
13845     # Native MSVC
13846     libname_spec='$name'
13847     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13848     library_names_spec='${libname}.dll.lib'
13849
13850     case $build_os in
13851     mingw*)
13852       sys_lib_search_path_spec=
13853       lt_save_ifs=$IFS
13854       IFS=';'
13855       for lt_path in $LIB
13856       do
13857         IFS=$lt_save_ifs
13858         # Let DOS variable expansion print the short 8.3 style file name.
13859         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
13860         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
13861       done
13862       IFS=$lt_save_ifs
13863       # Convert to MSYS style.
13864       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
13865       ;;
13866     cygwin*)
13867       # Convert to unix form, then to dos form, then back to unix form
13868       # but this time dos style (no spaces!) so that the unix form looks
13869       # like /cygdrive/c/PROGRA~1:/cygdr...
13870       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
13871       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
13872       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13873       ;;
13874     *)
13875       sys_lib_search_path_spec="$LIB"
13876       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13877         # It is most probably a Windows format PATH.
13878         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13879       else
13880         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13881       fi
13882       # FIXME: find the short name or the path components, as spaces are
13883       # common. (e.g. "Program Files" -> "PROGRA~1")
13884       ;;
13885     esac
13886
13887     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13888     postinstall_cmds='base_file=`basename \${file}`~
13889       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13890       dldir=$destdir/`dirname \$dlpath`~
13891       test -d \$dldir || mkdir -p \$dldir~
13892       $install_prog $dir/$dlname \$dldir/$dlname'
13893     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13894       dlpath=$dir/\$dldll~
13895        $RM \$dlpath'
13896     shlibpath_overrides_runpath=yes
13897     dynamic_linker='Win32 link.exe'
13898     ;;
13899
13900   *)
13901     # Assume MSVC wrapper
13902     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13903     dynamic_linker='Win32 ld.exe'
13904     ;;
13905   esac
13906   # FIXME: first we should search . and the directory the executable is in
13907   shlibpath_var=PATH
13908   ;;
13909
13910 darwin* | rhapsody*)
13911   dynamic_linker="$host_os dyld"
13912   version_type=darwin
13913   need_lib_prefix=no
13914   need_version=no
13915   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13916   soname_spec='${libname}${release}${major}$shared_ext'
13917   shlibpath_overrides_runpath=yes
13918   shlibpath_var=DYLD_LIBRARY_PATH
13919   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13920
13921   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13922   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13923   ;;
13924
13925 dgux*)
13926   version_type=linux
13927   need_lib_prefix=no
13928   need_version=no
13929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13930   soname_spec='${libname}${release}${shared_ext}$major'
13931   shlibpath_var=LD_LIBRARY_PATH
13932   ;;
13933
13934 freebsd1*)
13935   dynamic_linker=no
13936   ;;
13937
13938 freebsd* | dragonfly*)
13939   # DragonFly does not have aout.  When/if they implement a new
13940   # versioning mechanism, adjust this.
13941   if test -x /usr/bin/objformat; then
13942     objformat=`/usr/bin/objformat`
13943   else
13944     case $host_os in
13945     freebsd[123]*) objformat=aout ;;
13946     *) objformat=elf ;;
13947     esac
13948   fi
13949   version_type=freebsd-$objformat
13950   case $version_type in
13951     freebsd-elf*)
13952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13953       need_version=no
13954       need_lib_prefix=no
13955       ;;
13956     freebsd-*)
13957       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13958       need_version=yes
13959       ;;
13960   esac
13961   shlibpath_var=LD_LIBRARY_PATH
13962   case $host_os in
13963   freebsd2*)
13964     shlibpath_overrides_runpath=yes
13965     ;;
13966   freebsd3.[01]* | freebsdelf3.[01]*)
13967     shlibpath_overrides_runpath=yes
13968     hardcode_into_libs=yes
13969     ;;
13970   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13971   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13972     shlibpath_overrides_runpath=no
13973     hardcode_into_libs=yes
13974     ;;
13975   *) # from 4.6 on, and DragonFly
13976     shlibpath_overrides_runpath=yes
13977     hardcode_into_libs=yes
13978     ;;
13979   esac
13980   ;;
13981
13982 gnu*)
13983   version_type=linux
13984   need_lib_prefix=no
13985   need_version=no
13986   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13987   soname_spec='${libname}${release}${shared_ext}$major'
13988   shlibpath_var=LD_LIBRARY_PATH
13989   hardcode_into_libs=yes
13990   ;;
13991
13992 haiku*)
13993   version_type=linux
13994   need_lib_prefix=no
13995   need_version=no
13996   dynamic_linker="$host_os runtime_loader"
13997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13998   soname_spec='${libname}${release}${shared_ext}$major'
13999   shlibpath_var=LIBRARY_PATH
14000   shlibpath_overrides_runpath=yes
14001   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14002   hardcode_into_libs=yes
14003   ;;
14004
14005 hpux9* | hpux10* | hpux11*)
14006   # Give a soname corresponding to the major version so that dld.sl refuses to
14007   # link against other versions.
14008   version_type=sunos
14009   need_lib_prefix=no
14010   need_version=no
14011   case $host_cpu in
14012   ia64*)
14013     shrext_cmds='.so'
14014     hardcode_into_libs=yes
14015     dynamic_linker="$host_os dld.so"
14016     shlibpath_var=LD_LIBRARY_PATH
14017     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14019     soname_spec='${libname}${release}${shared_ext}$major'
14020     if test "X$HPUX_IA64_MODE" = X32; then
14021       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14022     else
14023       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14024     fi
14025     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14026     ;;
14027   hppa*64*)
14028     shrext_cmds='.sl'
14029     hardcode_into_libs=yes
14030     dynamic_linker="$host_os dld.sl"
14031     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14032     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14034     soname_spec='${libname}${release}${shared_ext}$major'
14035     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14036     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14037     ;;
14038   *)
14039     shrext_cmds='.sl'
14040     dynamic_linker="$host_os dld.sl"
14041     shlibpath_var=SHLIB_PATH
14042     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14043     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14044     soname_spec='${libname}${release}${shared_ext}$major'
14045     ;;
14046   esac
14047   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14048   postinstall_cmds='chmod 555 $lib'
14049   # or fails outright, so override atomically:
14050   install_override_mode=555
14051   ;;
14052
14053 interix[3-9]*)
14054   version_type=linux
14055   need_lib_prefix=no
14056   need_version=no
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14058   soname_spec='${libname}${release}${shared_ext}$major'
14059   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14060   shlibpath_var=LD_LIBRARY_PATH
14061   shlibpath_overrides_runpath=no
14062   hardcode_into_libs=yes
14063   ;;
14064
14065 irix5* | irix6* | nonstopux*)
14066   case $host_os in
14067     nonstopux*) version_type=nonstopux ;;
14068     *)
14069         if test "$lt_cv_prog_gnu_ld" = yes; then
14070                 version_type=linux
14071         else
14072                 version_type=irix
14073         fi ;;
14074   esac
14075   need_lib_prefix=no
14076   need_version=no
14077   soname_spec='${libname}${release}${shared_ext}$major'
14078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14079   case $host_os in
14080   irix5* | nonstopux*)
14081     libsuff= shlibsuff=
14082     ;;
14083   *)
14084     case $LD in # libtool.m4 will add one of these switches to LD
14085     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14086       libsuff= shlibsuff= libmagic=32-bit;;
14087     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14088       libsuff=32 shlibsuff=N32 libmagic=N32;;
14089     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14090       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14091     *) libsuff= shlibsuff= libmagic=never-match;;
14092     esac
14093     ;;
14094   esac
14095   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14096   shlibpath_overrides_runpath=no
14097   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14098   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14099   hardcode_into_libs=yes
14100   ;;
14101
14102 # No shared lib support for Linux oldld, aout, or coff.
14103 linux*oldld* | linux*aout* | linux*coff*)
14104   dynamic_linker=no
14105   ;;
14106
14107 # This must be Linux ELF.
14108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14109   version_type=linux
14110   need_lib_prefix=no
14111   need_version=no
14112   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14113   soname_spec='${libname}${release}${shared_ext}$major'
14114   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14115   shlibpath_var=LD_LIBRARY_PATH
14116   shlibpath_overrides_runpath=no
14117
14118   # Some binutils ld are patched to set DT_RUNPATH
14119   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14120   $as_echo_n "(cached) " >&6
14121 else
14122   lt_cv_shlibpath_overrides_runpath=no
14123     save_LDFLAGS=$LDFLAGS
14124     save_libdir=$libdir
14125     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14126          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14127     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14128 /* end confdefs.h.  */
14129
14130 int
14131 main ()
14132 {
14133
14134   ;
14135   return 0;
14136 }
14137 _ACEOF
14138 if ac_fn_c_try_link "$LINENO"; then :
14139   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14140   lt_cv_shlibpath_overrides_runpath=yes
14141 fi
14142 fi
14143 rm -f core conftest.err conftest.$ac_objext \
14144     conftest$ac_exeext conftest.$ac_ext
14145     LDFLAGS=$save_LDFLAGS
14146     libdir=$save_libdir
14147
14148 fi
14149
14150   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14151
14152   # This implies no fast_install, which is unacceptable.
14153   # Some rework will be needed to allow for fast_install
14154   # before this can be enabled.
14155   hardcode_into_libs=yes
14156
14157   # Add ABI-specific directories to the system library path.
14158   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14159
14160   # Append ld.so.conf contents to the search path
14161   if test -f /etc/ld.so.conf; then
14162     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' ' '`
14163     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14164
14165   fi
14166
14167   # We used to test for /lib/ld.so.1 and disable shared libraries on
14168   # powerpc, because MkLinux only supported shared libraries with the
14169   # GNU dynamic linker.  Since this was broken with cross compilers,
14170   # most powerpc-linux boxes support dynamic linking these days and
14171   # people can always --disable-shared, the test was removed, and we
14172   # assume the GNU/Linux dynamic linker is in use.
14173   dynamic_linker='GNU/Linux ld.so'
14174   ;;
14175
14176 netbsd*)
14177   version_type=sunos
14178   need_lib_prefix=no
14179   need_version=no
14180   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14182     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14183     dynamic_linker='NetBSD (a.out) ld.so'
14184   else
14185     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14186     soname_spec='${libname}${release}${shared_ext}$major'
14187     dynamic_linker='NetBSD ld.elf_so'
14188   fi
14189   shlibpath_var=LD_LIBRARY_PATH
14190   shlibpath_overrides_runpath=yes
14191   hardcode_into_libs=yes
14192   ;;
14193
14194 newsos6)
14195   version_type=linux
14196   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14197   shlibpath_var=LD_LIBRARY_PATH
14198   shlibpath_overrides_runpath=yes
14199   ;;
14200
14201 *nto* | *qnx*)
14202   version_type=qnx
14203   need_lib_prefix=no
14204   need_version=no
14205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14206   soname_spec='${libname}${release}${shared_ext}$major'
14207   shlibpath_var=LD_LIBRARY_PATH
14208   shlibpath_overrides_runpath=no
14209   hardcode_into_libs=yes
14210   dynamic_linker='ldqnx.so'
14211   ;;
14212
14213 openbsd*)
14214   version_type=sunos
14215   sys_lib_dlsearch_path_spec="/usr/lib"
14216   need_lib_prefix=no
14217   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14218   case $host_os in
14219     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
14220     *)                          need_version=no  ;;
14221   esac
14222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14223   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14224   shlibpath_var=LD_LIBRARY_PATH
14225   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14226     case $host_os in
14227       openbsd2.[89] | openbsd2.[89].*)
14228         shlibpath_overrides_runpath=no
14229         ;;
14230       *)
14231         shlibpath_overrides_runpath=yes
14232         ;;
14233       esac
14234   else
14235     shlibpath_overrides_runpath=yes
14236   fi
14237   ;;
14238
14239 os2*)
14240   libname_spec='$name'
14241   shrext_cmds=".dll"
14242   need_lib_prefix=no
14243   library_names_spec='$libname${shared_ext} $libname.a'
14244   dynamic_linker='OS/2 ld.exe'
14245   shlibpath_var=LIBPATH
14246   ;;
14247
14248 osf3* | osf4* | osf5*)
14249   version_type=osf
14250   need_lib_prefix=no
14251   need_version=no
14252   soname_spec='${libname}${release}${shared_ext}$major'
14253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14254   shlibpath_var=LD_LIBRARY_PATH
14255   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14256   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14257   ;;
14258
14259 rdos*)
14260   dynamic_linker=no
14261   ;;
14262
14263 solaris*)
14264   version_type=linux
14265   need_lib_prefix=no
14266   need_version=no
14267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268   soname_spec='${libname}${release}${shared_ext}$major'
14269   shlibpath_var=LD_LIBRARY_PATH
14270   shlibpath_overrides_runpath=yes
14271   hardcode_into_libs=yes
14272   # ldd complains unless libraries are executable
14273   postinstall_cmds='chmod +x $lib'
14274   ;;
14275
14276 sunos4*)
14277   version_type=sunos
14278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14279   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14280   shlibpath_var=LD_LIBRARY_PATH
14281   shlibpath_overrides_runpath=yes
14282   if test "$with_gnu_ld" = yes; then
14283     need_lib_prefix=no
14284   fi
14285   need_version=yes
14286   ;;
14287
14288 sysv4 | sysv4.3*)
14289   version_type=linux
14290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291   soname_spec='${libname}${release}${shared_ext}$major'
14292   shlibpath_var=LD_LIBRARY_PATH
14293   case $host_vendor in
14294     sni)
14295       shlibpath_overrides_runpath=no
14296       need_lib_prefix=no
14297       runpath_var=LD_RUN_PATH
14298       ;;
14299     siemens)
14300       need_lib_prefix=no
14301       ;;
14302     motorola)
14303       need_lib_prefix=no
14304       need_version=no
14305       shlibpath_overrides_runpath=no
14306       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14307       ;;
14308   esac
14309   ;;
14310
14311 sysv4*MP*)
14312   if test -d /usr/nec ;then
14313     version_type=linux
14314     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14315     soname_spec='$libname${shared_ext}.$major'
14316     shlibpath_var=LD_LIBRARY_PATH
14317   fi
14318   ;;
14319
14320 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14321   version_type=freebsd-elf
14322   need_lib_prefix=no
14323   need_version=no
14324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14325   soname_spec='${libname}${release}${shared_ext}$major'
14326   shlibpath_var=LD_LIBRARY_PATH
14327   shlibpath_overrides_runpath=yes
14328   hardcode_into_libs=yes
14329   if test "$with_gnu_ld" = yes; then
14330     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14331   else
14332     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14333     case $host_os in
14334       sco3.2v5*)
14335         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14336         ;;
14337     esac
14338   fi
14339   sys_lib_dlsearch_path_spec='/usr/lib'
14340   ;;
14341
14342 tpf*)
14343   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14344   version_type=linux
14345   need_lib_prefix=no
14346   need_version=no
14347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348   shlibpath_var=LD_LIBRARY_PATH
14349   shlibpath_overrides_runpath=no
14350   hardcode_into_libs=yes
14351   ;;
14352
14353 uts4*)
14354   version_type=linux
14355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356   soname_spec='${libname}${release}${shared_ext}$major'
14357   shlibpath_var=LD_LIBRARY_PATH
14358   ;;
14359
14360 *)
14361   dynamic_linker=no
14362   ;;
14363 esac
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14365 $as_echo "$dynamic_linker" >&6; }
14366 test "$dynamic_linker" = no && can_build_shared=no
14367
14368 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14369 if test "$GCC" = yes; then
14370   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14371 fi
14372
14373 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14374   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14375 fi
14376 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14377   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14378 fi
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394
14395
14396
14397
14398
14399
14400
14401
14402
14403
14404
14405
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456
14457
14458
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14472 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14473 hardcode_action=
14474 if test -n "$hardcode_libdir_flag_spec" ||
14475    test -n "$runpath_var" ||
14476    test "X$hardcode_automatic" = "Xyes" ; then
14477
14478   # We can hardcode non-existent directories.
14479   if test "$hardcode_direct" != no &&
14480      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14481      # have to relink, otherwise we might link with an installed library
14482      # when we should be linking with a yet-to-be-installed one
14483      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14484      test "$hardcode_minus_L" != no; then
14485     # Linking always hardcodes the temporary library directory.
14486     hardcode_action=relink
14487   else
14488     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14489     hardcode_action=immediate
14490   fi
14491 else
14492   # We cannot hardcode anything, or else we can only hardcode existing
14493   # directories.
14494   hardcode_action=unsupported
14495 fi
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14497 $as_echo "$hardcode_action" >&6; }
14498
14499 if test "$hardcode_action" = relink ||
14500    test "$inherit_rpath" = yes; then
14501   # Fast installation is not supported
14502   enable_fast_install=no
14503 elif test "$shlibpath_overrides_runpath" = yes ||
14504      test "$enable_shared" = no; then
14505   # Fast installation is not necessary
14506   enable_fast_install=needless
14507 fi
14508
14509
14510
14511
14512
14513
14514   if test "x$enable_dlopen" != xyes; then
14515   enable_dlopen=unknown
14516   enable_dlopen_self=unknown
14517   enable_dlopen_self_static=unknown
14518 else
14519   lt_cv_dlopen=no
14520   lt_cv_dlopen_libs=
14521
14522   case $host_os in
14523   beos*)
14524     lt_cv_dlopen="load_add_on"
14525     lt_cv_dlopen_libs=
14526     lt_cv_dlopen_self=yes
14527     ;;
14528
14529   mingw* | pw32* | cegcc*)
14530     lt_cv_dlopen="LoadLibrary"
14531     lt_cv_dlopen_libs=
14532     ;;
14533
14534   cygwin*)
14535     lt_cv_dlopen="dlopen"
14536     lt_cv_dlopen_libs=
14537     ;;
14538
14539   darwin*)
14540   # if libdl is installed we need to link against it
14541     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14542 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14543 if ${ac_cv_lib_dl_dlopen+:} false; then :
14544   $as_echo_n "(cached) " >&6
14545 else
14546   ac_check_lib_save_LIBS=$LIBS
14547 LIBS="-ldl  $LIBS"
14548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14549 /* end confdefs.h.  */
14550
14551 /* Override any GCC internal prototype to avoid an error.
14552    Use char because int might match the return type of a GCC
14553    builtin and then its argument prototype would still apply.  */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 char dlopen ();
14558 int
14559 main ()
14560 {
14561 return dlopen ();
14562   ;
14563   return 0;
14564 }
14565 _ACEOF
14566 if ac_fn_c_try_link "$LINENO"; then :
14567   ac_cv_lib_dl_dlopen=yes
14568 else
14569   ac_cv_lib_dl_dlopen=no
14570 fi
14571 rm -f core conftest.err conftest.$ac_objext \
14572     conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14576 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14577 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14578   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14579 else
14580
14581     lt_cv_dlopen="dyld"
14582     lt_cv_dlopen_libs=
14583     lt_cv_dlopen_self=yes
14584
14585 fi
14586
14587     ;;
14588
14589   *)
14590     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14591 if test "x$ac_cv_func_shl_load" = xyes; then :
14592   lt_cv_dlopen="shl_load"
14593 else
14594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14595 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14596 if ${ac_cv_lib_dld_shl_load+:} false; then :
14597   $as_echo_n "(cached) " >&6
14598 else
14599   ac_check_lib_save_LIBS=$LIBS
14600 LIBS="-ldld  $LIBS"
14601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14602 /* end confdefs.h.  */
14603
14604 /* Override any GCC internal prototype to avoid an error.
14605    Use char because int might match the return type of a GCC
14606    builtin and then its argument prototype would still apply.  */
14607 #ifdef __cplusplus
14608 extern "C"
14609 #endif
14610 char shl_load ();
14611 int
14612 main ()
14613 {
14614 return shl_load ();
14615   ;
14616   return 0;
14617 }
14618 _ACEOF
14619 if ac_fn_c_try_link "$LINENO"; then :
14620   ac_cv_lib_dld_shl_load=yes
14621 else
14622   ac_cv_lib_dld_shl_load=no
14623 fi
14624 rm -f core conftest.err conftest.$ac_objext \
14625     conftest$ac_exeext conftest.$ac_ext
14626 LIBS=$ac_check_lib_save_LIBS
14627 fi
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14629 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14630 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14631   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14632 else
14633   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14634 if test "x$ac_cv_func_dlopen" = xyes; then :
14635   lt_cv_dlopen="dlopen"
14636 else
14637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14638 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14639 if ${ac_cv_lib_dl_dlopen+:} false; then :
14640   $as_echo_n "(cached) " >&6
14641 else
14642   ac_check_lib_save_LIBS=$LIBS
14643 LIBS="-ldl  $LIBS"
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h.  */
14646
14647 /* Override any GCC internal prototype to avoid an error.
14648    Use char because int might match the return type of a GCC
14649    builtin and then its argument prototype would still apply.  */
14650 #ifdef __cplusplus
14651 extern "C"
14652 #endif
14653 char dlopen ();
14654 int
14655 main ()
14656 {
14657 return dlopen ();
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 if ac_fn_c_try_link "$LINENO"; then :
14663   ac_cv_lib_dl_dlopen=yes
14664 else
14665   ac_cv_lib_dl_dlopen=no
14666 fi
14667 rm -f core conftest.err conftest.$ac_objext \
14668     conftest$ac_exeext conftest.$ac_ext
14669 LIBS=$ac_check_lib_save_LIBS
14670 fi
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14672 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14673 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14674   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14675 else
14676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14677 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14678 if ${ac_cv_lib_svld_dlopen+:} false; then :
14679   $as_echo_n "(cached) " >&6
14680 else
14681   ac_check_lib_save_LIBS=$LIBS
14682 LIBS="-lsvld  $LIBS"
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684 /* end confdefs.h.  */
14685
14686 /* Override any GCC internal prototype to avoid an error.
14687    Use char because int might match the return type of a GCC
14688    builtin and then its argument prototype would still apply.  */
14689 #ifdef __cplusplus
14690 extern "C"
14691 #endif
14692 char dlopen ();
14693 int
14694 main ()
14695 {
14696 return dlopen ();
14697   ;
14698   return 0;
14699 }
14700 _ACEOF
14701 if ac_fn_c_try_link "$LINENO"; then :
14702   ac_cv_lib_svld_dlopen=yes
14703 else
14704   ac_cv_lib_svld_dlopen=no
14705 fi
14706 rm -f core conftest.err conftest.$ac_objext \
14707     conftest$ac_exeext conftest.$ac_ext
14708 LIBS=$ac_check_lib_save_LIBS
14709 fi
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14711 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14712 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14713   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14714 else
14715   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14716 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14717 if ${ac_cv_lib_dld_dld_link+:} false; then :
14718   $as_echo_n "(cached) " >&6
14719 else
14720   ac_check_lib_save_LIBS=$LIBS
14721 LIBS="-ldld  $LIBS"
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h.  */
14724
14725 /* Override any GCC internal prototype to avoid an error.
14726    Use char because int might match the return type of a GCC
14727    builtin and then its argument prototype would still apply.  */
14728 #ifdef __cplusplus
14729 extern "C"
14730 #endif
14731 char dld_link ();
14732 int
14733 main ()
14734 {
14735 return dld_link ();
14736   ;
14737   return 0;
14738 }
14739 _ACEOF
14740 if ac_fn_c_try_link "$LINENO"; then :
14741   ac_cv_lib_dld_dld_link=yes
14742 else
14743   ac_cv_lib_dld_dld_link=no
14744 fi
14745 rm -f core conftest.err conftest.$ac_objext \
14746     conftest$ac_exeext conftest.$ac_ext
14747 LIBS=$ac_check_lib_save_LIBS
14748 fi
14749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14750 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14751 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14752   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14753 fi
14754
14755
14756 fi
14757
14758
14759 fi
14760
14761
14762 fi
14763
14764
14765 fi
14766
14767
14768 fi
14769
14770     ;;
14771   esac
14772
14773   if test "x$lt_cv_dlopen" != xno; then
14774     enable_dlopen=yes
14775   else
14776     enable_dlopen=no
14777   fi
14778
14779   case $lt_cv_dlopen in
14780   dlopen)
14781     save_CPPFLAGS="$CPPFLAGS"
14782     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14783
14784     save_LDFLAGS="$LDFLAGS"
14785     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14786
14787     save_LIBS="$LIBS"
14788     LIBS="$lt_cv_dlopen_libs $LIBS"
14789
14790     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14791 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14792 if ${lt_cv_dlopen_self+:} false; then :
14793   $as_echo_n "(cached) " >&6
14794 else
14795           if test "$cross_compiling" = yes; then :
14796   lt_cv_dlopen_self=cross
14797 else
14798   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14799   lt_status=$lt_dlunknown
14800   cat > conftest.$ac_ext <<_LT_EOF
14801 #line $LINENO "configure"
14802 #include "confdefs.h"
14803
14804 #if HAVE_DLFCN_H
14805 #include <dlfcn.h>
14806 #endif
14807
14808 #include <stdio.h>
14809
14810 #ifdef RTLD_GLOBAL
14811 #  define LT_DLGLOBAL           RTLD_GLOBAL
14812 #else
14813 #  ifdef DL_GLOBAL
14814 #    define LT_DLGLOBAL         DL_GLOBAL
14815 #  else
14816 #    define LT_DLGLOBAL         0
14817 #  endif
14818 #endif
14819
14820 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14821    find out it does not work in some platform. */
14822 #ifndef LT_DLLAZY_OR_NOW
14823 #  ifdef RTLD_LAZY
14824 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14825 #  else
14826 #    ifdef DL_LAZY
14827 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14828 #    else
14829 #      ifdef RTLD_NOW
14830 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14831 #      else
14832 #        ifdef DL_NOW
14833 #          define LT_DLLAZY_OR_NOW      DL_NOW
14834 #        else
14835 #          define LT_DLLAZY_OR_NOW      0
14836 #        endif
14837 #      endif
14838 #    endif
14839 #  endif
14840 #endif
14841
14842 /* When -fvisbility=hidden is used, assume the code has been annotated
14843    correspondingly for the symbols needed.  */
14844 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14845 int fnord () __attribute__((visibility("default")));
14846 #endif
14847
14848 int fnord () { return 42; }
14849 int main ()
14850 {
14851   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14852   int status = $lt_dlunknown;
14853
14854   if (self)
14855     {
14856       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14857       else
14858         {
14859           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14860           else puts (dlerror ());
14861         }
14862       /* dlclose (self); */
14863     }
14864   else
14865     puts (dlerror ());
14866
14867   return status;
14868 }
14869 _LT_EOF
14870   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14871   (eval $ac_link) 2>&5
14872   ac_status=$?
14873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14874   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14875     (./conftest; exit; ) >&5 2>/dev/null
14876     lt_status=$?
14877     case x$lt_status in
14878       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14879       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14880       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14881     esac
14882   else :
14883     # compilation failed
14884     lt_cv_dlopen_self=no
14885   fi
14886 fi
14887 rm -fr conftest*
14888
14889
14890 fi
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14892 $as_echo "$lt_cv_dlopen_self" >&6; }
14893
14894     if test "x$lt_cv_dlopen_self" = xyes; then
14895       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14896       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14897 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14898 if ${lt_cv_dlopen_self_static+:} false; then :
14899   $as_echo_n "(cached) " >&6
14900 else
14901           if test "$cross_compiling" = yes; then :
14902   lt_cv_dlopen_self_static=cross
14903 else
14904   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14905   lt_status=$lt_dlunknown
14906   cat > conftest.$ac_ext <<_LT_EOF
14907 #line $LINENO "configure"
14908 #include "confdefs.h"
14909
14910 #if HAVE_DLFCN_H
14911 #include <dlfcn.h>
14912 #endif
14913
14914 #include <stdio.h>
14915
14916 #ifdef RTLD_GLOBAL
14917 #  define LT_DLGLOBAL           RTLD_GLOBAL
14918 #else
14919 #  ifdef DL_GLOBAL
14920 #    define LT_DLGLOBAL         DL_GLOBAL
14921 #  else
14922 #    define LT_DLGLOBAL         0
14923 #  endif
14924 #endif
14925
14926 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14927    find out it does not work in some platform. */
14928 #ifndef LT_DLLAZY_OR_NOW
14929 #  ifdef RTLD_LAZY
14930 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
14931 #  else
14932 #    ifdef DL_LAZY
14933 #      define LT_DLLAZY_OR_NOW          DL_LAZY
14934 #    else
14935 #      ifdef RTLD_NOW
14936 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
14937 #      else
14938 #        ifdef DL_NOW
14939 #          define LT_DLLAZY_OR_NOW      DL_NOW
14940 #        else
14941 #          define LT_DLLAZY_OR_NOW      0
14942 #        endif
14943 #      endif
14944 #    endif
14945 #  endif
14946 #endif
14947
14948 /* When -fvisbility=hidden is used, assume the code has been annotated
14949    correspondingly for the symbols needed.  */
14950 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14951 int fnord () __attribute__((visibility("default")));
14952 #endif
14953
14954 int fnord () { return 42; }
14955 int main ()
14956 {
14957   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14958   int status = $lt_dlunknown;
14959
14960   if (self)
14961     {
14962       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
14963       else
14964         {
14965           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
14966           else puts (dlerror ());
14967         }
14968       /* dlclose (self); */
14969     }
14970   else
14971     puts (dlerror ());
14972
14973   return status;
14974 }
14975 _LT_EOF
14976   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14977   (eval $ac_link) 2>&5
14978   ac_status=$?
14979   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14981     (./conftest; exit; ) >&5 2>/dev/null
14982     lt_status=$?
14983     case x$lt_status in
14984       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14985       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14986       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14987     esac
14988   else :
14989     # compilation failed
14990     lt_cv_dlopen_self_static=no
14991   fi
14992 fi
14993 rm -fr conftest*
14994
14995
14996 fi
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14998 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14999     fi
15000
15001     CPPFLAGS="$save_CPPFLAGS"
15002     LDFLAGS="$save_LDFLAGS"
15003     LIBS="$save_LIBS"
15004     ;;
15005   esac
15006
15007   case $lt_cv_dlopen_self in
15008   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15009   *) enable_dlopen_self=unknown ;;
15010   esac
15011
15012   case $lt_cv_dlopen_self_static in
15013   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15014   *) enable_dlopen_self_static=unknown ;;
15015   esac
15016 fi
15017
15018
15019
15020
15021
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031
15032
15033
15034 striplib=
15035 old_striplib=
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15037 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15038 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15039   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15040   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15042 $as_echo "yes" >&6; }
15043 else
15044 # FIXME - insert some real tests, host_os isn't really good enough
15045   case $host_os in
15046   darwin*)
15047     if test -n "$STRIP" ; then
15048       striplib="$STRIP -x"
15049       old_striplib="$STRIP -S"
15050       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15051 $as_echo "yes" >&6; }
15052     else
15053       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15055     fi
15056     ;;
15057   *)
15058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059 $as_echo "no" >&6; }
15060     ;;
15061   esac
15062 fi
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075   # Report which library types will actually be built
15076   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15077 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15079 $as_echo "$can_build_shared" >&6; }
15080
15081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15082 $as_echo_n "checking whether to build shared libraries... " >&6; }
15083   test "$can_build_shared" = "no" && enable_shared=no
15084
15085   # On AIX, shared libraries and static libraries use the same namespace, and
15086   # are all built from PIC.
15087   case $host_os in
15088   aix3*)
15089     test "$enable_shared" = yes && enable_static=no
15090     if test -n "$RANLIB"; then
15091       archive_cmds="$archive_cmds~\$RANLIB \$lib"
15092       postinstall_cmds='$RANLIB $lib'
15093     fi
15094     ;;
15095
15096   aix[4-9]*)
15097     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15098       test "$enable_shared" = yes && enable_static=no
15099     fi
15100     ;;
15101   esac
15102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15103 $as_echo "$enable_shared" >&6; }
15104
15105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15106 $as_echo_n "checking whether to build static libraries... " >&6; }
15107   # Make sure either enable_shared or enable_static is yes.
15108   test "$enable_shared" = yes || enable_static=yes
15109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15110 $as_echo "$enable_static" >&6; }
15111
15112
15113
15114
15115 fi
15116 ac_ext=c
15117 ac_cpp='$CPP $CPPFLAGS'
15118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15121
15122 CC="$lt_save_CC"
15123
15124       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15125     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15126     (test "X$CXX" != "Xg++"))) ; then
15127   ac_ext=cpp
15128 ac_cpp='$CXXCPP $CPPFLAGS'
15129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15133 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15134 if test -z "$CXXCPP"; then
15135   if ${ac_cv_prog_CXXCPP+:} false; then :
15136   $as_echo_n "(cached) " >&6
15137 else
15138       # Double quotes because CXXCPP needs to be expanded
15139     for CXXCPP in "$CXX -E" "/lib/cpp"
15140     do
15141       ac_preproc_ok=false
15142 for ac_cxx_preproc_warn_flag in '' yes
15143 do
15144   # Use a header file that comes with gcc, so configuring glibc
15145   # with a fresh cross-compiler works.
15146   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15147   # <limits.h> exists even on freestanding compilers.
15148   # On the NeXT, cc -E runs the code through the compiler's parser,
15149   # not just through cpp. "Syntax error" is here to catch this case.
15150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h.  */
15152 #ifdef __STDC__
15153 # include <limits.h>
15154 #else
15155 # include <assert.h>
15156 #endif
15157                      Syntax error
15158 _ACEOF
15159 if ac_fn_cxx_try_cpp "$LINENO"; then :
15160
15161 else
15162   # Broken: fails on valid input.
15163 continue
15164 fi
15165 rm -f conftest.err conftest.i conftest.$ac_ext
15166
15167   # OK, works on sane cases.  Now check whether nonexistent headers
15168   # can be detected and how.
15169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15170 /* end confdefs.h.  */
15171 #include <ac_nonexistent.h>
15172 _ACEOF
15173 if ac_fn_cxx_try_cpp "$LINENO"; then :
15174   # Broken: success on invalid input.
15175 continue
15176 else
15177   # Passes both tests.
15178 ac_preproc_ok=:
15179 break
15180 fi
15181 rm -f conftest.err conftest.i conftest.$ac_ext
15182
15183 done
15184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15185 rm -f conftest.i conftest.err conftest.$ac_ext
15186 if $ac_preproc_ok; then :
15187   break
15188 fi
15189
15190     done
15191     ac_cv_prog_CXXCPP=$CXXCPP
15192
15193 fi
15194   CXXCPP=$ac_cv_prog_CXXCPP
15195 else
15196   ac_cv_prog_CXXCPP=$CXXCPP
15197 fi
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15199 $as_echo "$CXXCPP" >&6; }
15200 ac_preproc_ok=false
15201 for ac_cxx_preproc_warn_flag in '' yes
15202 do
15203   # Use a header file that comes with gcc, so configuring glibc
15204   # with a fresh cross-compiler works.
15205   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15206   # <limits.h> exists even on freestanding compilers.
15207   # On the NeXT, cc -E runs the code through the compiler's parser,
15208   # not just through cpp. "Syntax error" is here to catch this case.
15209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h.  */
15211 #ifdef __STDC__
15212 # include <limits.h>
15213 #else
15214 # include <assert.h>
15215 #endif
15216                      Syntax error
15217 _ACEOF
15218 if ac_fn_cxx_try_cpp "$LINENO"; then :
15219
15220 else
15221   # Broken: fails on valid input.
15222 continue
15223 fi
15224 rm -f conftest.err conftest.i conftest.$ac_ext
15225
15226   # OK, works on sane cases.  Now check whether nonexistent headers
15227   # can be detected and how.
15228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15229 /* end confdefs.h.  */
15230 #include <ac_nonexistent.h>
15231 _ACEOF
15232 if ac_fn_cxx_try_cpp "$LINENO"; then :
15233   # Broken: success on invalid input.
15234 continue
15235 else
15236   # Passes both tests.
15237 ac_preproc_ok=:
15238 break
15239 fi
15240 rm -f conftest.err conftest.i conftest.$ac_ext
15241
15242 done
15243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15244 rm -f conftest.i conftest.err conftest.$ac_ext
15245 if $ac_preproc_ok; then :
15246
15247 else
15248   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15250 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15251 See \`config.log' for more details" "$LINENO" 5; }
15252 fi
15253
15254 ac_ext=c
15255 ac_cpp='$CPP $CPPFLAGS'
15256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15259
15260 else
15261   _lt_caught_CXX_error=yes
15262 fi
15263
15264 ac_ext=cpp
15265 ac_cpp='$CXXCPP $CPPFLAGS'
15266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15269
15270 archive_cmds_need_lc_CXX=no
15271 allow_undefined_flag_CXX=
15272 always_export_symbols_CXX=no
15273 archive_expsym_cmds_CXX=
15274 compiler_needs_object_CXX=no
15275 export_dynamic_flag_spec_CXX=
15276 hardcode_direct_CXX=no
15277 hardcode_direct_absolute_CXX=no
15278 hardcode_libdir_flag_spec_CXX=
15279 hardcode_libdir_flag_spec_ld_CXX=
15280 hardcode_libdir_separator_CXX=
15281 hardcode_minus_L_CXX=no
15282 hardcode_shlibpath_var_CXX=unsupported
15283 hardcode_automatic_CXX=no
15284 inherit_rpath_CXX=no
15285 module_cmds_CXX=
15286 module_expsym_cmds_CXX=
15287 link_all_deplibs_CXX=unknown
15288 old_archive_cmds_CXX=$old_archive_cmds
15289 reload_flag_CXX=$reload_flag
15290 reload_cmds_CXX=$reload_cmds
15291 no_undefined_flag_CXX=
15292 whole_archive_flag_spec_CXX=
15293 enable_shared_with_static_runtimes_CXX=no
15294
15295 # Source file extension for C++ test sources.
15296 ac_ext=cpp
15297
15298 # Object file extension for compiled C++ test sources.
15299 objext=o
15300 objext_CXX=$objext
15301
15302 # No sense in running all these tests if we already determined that
15303 # the CXX compiler isn't working.  Some variables (like enable_shared)
15304 # are currently assumed to apply to all compilers on this platform,
15305 # and will be corrupted by setting them based on a non-working compiler.
15306 if test "$_lt_caught_CXX_error" != yes; then
15307   # Code to be used in simple compile tests
15308   lt_simple_compile_test_code="int some_variable = 0;"
15309
15310   # Code to be used in simple link tests
15311   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15312
15313   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15314
15315
15316
15317
15318
15319
15320 # If no C compiler was specified, use CC.
15321 LTCC=${LTCC-"$CC"}
15322
15323 # If no C compiler flags were specified, use CFLAGS.
15324 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15325
15326 # Allow CC to be a program name with arguments.
15327 compiler=$CC
15328
15329
15330   # save warnings/boilerplate of simple test code
15331   ac_outfile=conftest.$ac_objext
15332 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15333 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15334 _lt_compiler_boilerplate=`cat conftest.err`
15335 $RM conftest*
15336
15337   ac_outfile=conftest.$ac_objext
15338 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15339 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15340 _lt_linker_boilerplate=`cat conftest.err`
15341 $RM -r conftest*
15342
15343
15344   # Allow CC to be a program name with arguments.
15345   lt_save_CC=$CC
15346   lt_save_CFLAGS=$CFLAGS
15347   lt_save_LD=$LD
15348   lt_save_GCC=$GCC
15349   GCC=$GXX
15350   lt_save_with_gnu_ld=$with_gnu_ld
15351   lt_save_path_LD=$lt_cv_path_LD
15352   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15353     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15354   else
15355     $as_unset lt_cv_prog_gnu_ld
15356   fi
15357   if test -n "${lt_cv_path_LDCXX+set}"; then
15358     lt_cv_path_LD=$lt_cv_path_LDCXX
15359   else
15360     $as_unset lt_cv_path_LD
15361   fi
15362   test -z "${LDCXX+set}" || LD=$LDCXX
15363   CC=${CXX-"c++"}
15364   CFLAGS=$CXXFLAGS
15365   compiler=$CC
15366   compiler_CXX=$CC
15367   for cc_temp in $compiler""; do
15368   case $cc_temp in
15369     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15370     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15371     \-*) ;;
15372     *) break;;
15373   esac
15374 done
15375 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15376
15377
15378   if test -n "$compiler"; then
15379     # We don't want -fno-exception when compiling C++ code, so set the
15380     # no_builtin_flag separately
15381     if test "$GXX" = yes; then
15382       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15383     else
15384       lt_prog_compiler_no_builtin_flag_CXX=
15385     fi
15386
15387     if test "$GXX" = yes; then
15388       # Set up default GNU C++ configuration
15389
15390
15391
15392 # Check whether --with-gnu-ld was given.
15393 if test "${with_gnu_ld+set}" = set; then :
15394   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15395 else
15396   with_gnu_ld=no
15397 fi
15398
15399 ac_prog=ld
15400 if test "$GCC" = yes; then
15401   # Check if gcc -print-prog-name=ld gives a path.
15402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15403 $as_echo_n "checking for ld used by $CC... " >&6; }
15404   case $host in
15405   *-*-mingw*)
15406     # gcc leaves a trailing carriage return which upsets mingw
15407     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15408   *)
15409     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15410   esac
15411   case $ac_prog in
15412     # Accept absolute paths.
15413     [\\/]* | ?:[\\/]*)
15414       re_direlt='/[^/][^/]*/\.\./'
15415       # Canonicalize the pathname of ld
15416       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15417       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15418         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15419       done
15420       test -z "$LD" && LD="$ac_prog"
15421       ;;
15422   "")
15423     # If it fails, then pretend we aren't using GCC.
15424     ac_prog=ld
15425     ;;
15426   *)
15427     # If it is relative, then search for the first ld in PATH.
15428     with_gnu_ld=unknown
15429     ;;
15430   esac
15431 elif test "$with_gnu_ld" = yes; then
15432   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15433 $as_echo_n "checking for GNU ld... " >&6; }
15434 else
15435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15436 $as_echo_n "checking for non-GNU ld... " >&6; }
15437 fi
15438 if ${lt_cv_path_LD+:} false; then :
15439   $as_echo_n "(cached) " >&6
15440 else
15441   if test -z "$LD"; then
15442   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15443   for ac_dir in $PATH; do
15444     IFS="$lt_save_ifs"
15445     test -z "$ac_dir" && ac_dir=.
15446     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15447       lt_cv_path_LD="$ac_dir/$ac_prog"
15448       # Check to see if the program is GNU ld.  I'd rather use --version,
15449       # but apparently some variants of GNU ld only accept -v.
15450       # Break only if it was the GNU/non-GNU ld that we prefer.
15451       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15452       *GNU* | *'with BFD'*)
15453         test "$with_gnu_ld" != no && break
15454         ;;
15455       *)
15456         test "$with_gnu_ld" != yes && break
15457         ;;
15458       esac
15459     fi
15460   done
15461   IFS="$lt_save_ifs"
15462 else
15463   lt_cv_path_LD="$LD" # Let the user override the test with a path.
15464 fi
15465 fi
15466
15467 LD="$lt_cv_path_LD"
15468 if test -n "$LD"; then
15469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15470 $as_echo "$LD" >&6; }
15471 else
15472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15473 $as_echo "no" >&6; }
15474 fi
15475 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15477 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15478 if ${lt_cv_prog_gnu_ld+:} false; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481   # I'd rather use --version here, but apparently some GNU lds only accept -v.
15482 case `$LD -v 2>&1 </dev/null` in
15483 *GNU* | *'with BFD'*)
15484   lt_cv_prog_gnu_ld=yes
15485   ;;
15486 *)
15487   lt_cv_prog_gnu_ld=no
15488   ;;
15489 esac
15490 fi
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15492 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15493 with_gnu_ld=$lt_cv_prog_gnu_ld
15494
15495
15496
15497
15498
15499
15500
15501       # Check if GNU C++ uses GNU ld as the underlying linker, since the
15502       # archiving commands below assume that GNU ld is being used.
15503       if test "$with_gnu_ld" = yes; then
15504         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15505         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15506
15507         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15508         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15509
15510         # If archive_cmds runs LD, not CC, wlarc should be empty
15511         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15512         #     investigate it a little bit more. (MM)
15513         wlarc='${wl}'
15514
15515         # ancient GNU ld didn't support --whole-archive et. al.
15516         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15517           $GREP 'no-whole-archive' > /dev/null; then
15518           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15519         else
15520           whole_archive_flag_spec_CXX=
15521         fi
15522       else
15523         with_gnu_ld=no
15524         wlarc=
15525
15526         # A generic and very simple default shared library creation
15527         # command for GNU C++ for the case where it uses the native
15528         # linker, instead of GNU ld.  If possible, this setting should
15529         # overridden to take advantage of the native linker features on
15530         # the platform it is being used on.
15531         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15532       fi
15533
15534       # Commands to make compiler produce verbose output that lists
15535       # what "hidden" libraries, object files and flags are used when
15536       # linking a shared library.
15537       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15538
15539     else
15540       GXX=no
15541       with_gnu_ld=no
15542       wlarc=
15543     fi
15544
15545     # PORTME: fill in a description of your system's C++ link characteristics
15546     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15548     ld_shlibs_CXX=yes
15549     case $host_os in
15550       aix3*)
15551         # FIXME: insert proper C++ library support
15552         ld_shlibs_CXX=no
15553         ;;
15554       aix[4-9]*)
15555         if test "$host_cpu" = ia64; then
15556           # On IA64, the linker does run time linking by default, so we don't
15557           # have to do anything special.
15558           aix_use_runtimelinking=no
15559           exp_sym_flag='-Bexport'
15560           no_entry_flag=""
15561         else
15562           aix_use_runtimelinking=no
15563
15564           # Test if we are trying to use run time linking or normal
15565           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15566           # need to do runtime linking.
15567           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15568             for ld_flag in $LDFLAGS; do
15569               case $ld_flag in
15570               *-brtl*)
15571                 aix_use_runtimelinking=yes
15572                 break
15573                 ;;
15574               esac
15575             done
15576             ;;
15577           esac
15578
15579           exp_sym_flag='-bexport'
15580           no_entry_flag='-bnoentry'
15581         fi
15582
15583         # When large executables or shared objects are built, AIX ld can
15584         # have problems creating the table of contents.  If linking a library
15585         # or program results in "error TOC overflow" add -mminimal-toc to
15586         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15587         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15588
15589         archive_cmds_CXX=''
15590         hardcode_direct_CXX=yes
15591         hardcode_direct_absolute_CXX=yes
15592         hardcode_libdir_separator_CXX=':'
15593         link_all_deplibs_CXX=yes
15594         file_list_spec_CXX='${wl}-f,'
15595
15596         if test "$GXX" = yes; then
15597           case $host_os in aix4.[012]|aix4.[012].*)
15598           # We only want to do this on AIX 4.2 and lower, the check
15599           # below for broken collect2 doesn't work under 4.3+
15600           collect2name=`${CC} -print-prog-name=collect2`
15601           if test -f "$collect2name" &&
15602              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15603           then
15604             # We have reworked collect2
15605             :
15606           else
15607             # We have old collect2
15608             hardcode_direct_CXX=unsupported
15609             # It fails to find uninstalled libraries when the uninstalled
15610             # path is not listed in the libpath.  Setting hardcode_minus_L
15611             # to unsupported forces relinking
15612             hardcode_minus_L_CXX=yes
15613             hardcode_libdir_flag_spec_CXX='-L$libdir'
15614             hardcode_libdir_separator_CXX=
15615           fi
15616           esac
15617           shared_flag='-shared'
15618           if test "$aix_use_runtimelinking" = yes; then
15619             shared_flag="$shared_flag "'${wl}-G'
15620           fi
15621         else
15622           # not using gcc
15623           if test "$host_cpu" = ia64; then
15624           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15625           # chokes on -Wl,-G. The following line is correct:
15626           shared_flag='-G'
15627           else
15628             if test "$aix_use_runtimelinking" = yes; then
15629               shared_flag='${wl}-G'
15630             else
15631               shared_flag='${wl}-bM:SRE'
15632             fi
15633           fi
15634         fi
15635
15636         export_dynamic_flag_spec_CXX='${wl}-bexpall'
15637         # It seems that -bexpall does not export symbols beginning with
15638         # underscore (_), so it is better to generate a list of symbols to
15639         # export.
15640         always_export_symbols_CXX=yes
15641         if test "$aix_use_runtimelinking" = yes; then
15642           # Warning - without using the other runtime loading flags (-brtl),
15643           # -berok will link without error, but may produce a broken library.
15644           allow_undefined_flag_CXX='-berok'
15645           # Determine the default libpath from the value encoded in an empty
15646           # executable.
15647           if test "${lt_cv_aix_libpath+set}" = set; then
15648   aix_libpath=$lt_cv_aix_libpath
15649 else
15650   if ${lt_cv_aix_libpath__CXX+:} false; then :
15651   $as_echo_n "(cached) " >&6
15652 else
15653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h.  */
15655
15656 int
15657 main ()
15658 {
15659
15660   ;
15661   return 0;
15662 }
15663 _ACEOF
15664 if ac_fn_cxx_try_link "$LINENO"; then :
15665
15666   lt_aix_libpath_sed='
15667       /Import File Strings/,/^$/ {
15668           /^0/ {
15669               s/^0  *\([^ ]*\) *$/\1/
15670               p
15671           }
15672       }'
15673   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15674   # Check for a 64-bit object if we didn't find anything.
15675   if test -z "$lt_cv_aix_libpath__CXX"; then
15676     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15677   fi
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext \
15680     conftest$ac_exeext conftest.$ac_ext
15681   if test -z "$lt_cv_aix_libpath__CXX"; then
15682     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15683   fi
15684
15685 fi
15686
15687   aix_libpath=$lt_cv_aix_libpath__CXX
15688 fi
15689
15690           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15691
15692           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15693         else
15694           if test "$host_cpu" = ia64; then
15695             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15696             allow_undefined_flag_CXX="-z nodefs"
15697             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15698           else
15699             # Determine the default libpath from the value encoded in an
15700             # empty executable.
15701             if test "${lt_cv_aix_libpath+set}" = set; then
15702   aix_libpath=$lt_cv_aix_libpath
15703 else
15704   if ${lt_cv_aix_libpath__CXX+:} false; then :
15705   $as_echo_n "(cached) " >&6
15706 else
15707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h.  */
15709
15710 int
15711 main ()
15712 {
15713
15714   ;
15715   return 0;
15716 }
15717 _ACEOF
15718 if ac_fn_cxx_try_link "$LINENO"; then :
15719
15720   lt_aix_libpath_sed='
15721       /Import File Strings/,/^$/ {
15722           /^0/ {
15723               s/^0  *\([^ ]*\) *$/\1/
15724               p
15725           }
15726       }'
15727   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15728   # Check for a 64-bit object if we didn't find anything.
15729   if test -z "$lt_cv_aix_libpath__CXX"; then
15730     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15731   fi
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext \
15734     conftest$ac_exeext conftest.$ac_ext
15735   if test -z "$lt_cv_aix_libpath__CXX"; then
15736     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
15737   fi
15738
15739 fi
15740
15741   aix_libpath=$lt_cv_aix_libpath__CXX
15742 fi
15743
15744             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15745             # Warning - without using the other run time loading flags,
15746             # -berok will link without error, but may produce a broken library.
15747             no_undefined_flag_CXX=' ${wl}-bernotok'
15748             allow_undefined_flag_CXX=' ${wl}-berok'
15749             if test "$with_gnu_ld" = yes; then
15750               # We only use this code for GNU lds that support --whole-archive.
15751               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15752             else
15753               # Exported symbols can be pulled into shared objects from archives
15754               whole_archive_flag_spec_CXX='$convenience'
15755             fi
15756             archive_cmds_need_lc_CXX=yes
15757             # This is similar to how AIX traditionally builds its shared
15758             # libraries.
15759             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15760           fi
15761         fi
15762         ;;
15763
15764       beos*)
15765         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15766           allow_undefined_flag_CXX=unsupported
15767           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15768           # support --undefined.  This deserves some investigation.  FIXME
15769           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15770         else
15771           ld_shlibs_CXX=no
15772         fi
15773         ;;
15774
15775       chorus*)
15776         case $cc_basename in
15777           *)
15778           # FIXME: insert proper C++ library support
15779           ld_shlibs_CXX=no
15780           ;;
15781         esac
15782         ;;
15783
15784       cygwin* | mingw* | pw32* | cegcc*)
15785         case $GXX,$cc_basename in
15786         ,cl* | no,cl*)
15787           # Native MSVC
15788           # hardcode_libdir_flag_spec is actually meaningless, as there is
15789           # no search path for DLLs.
15790           hardcode_libdir_flag_spec_CXX=' '
15791           allow_undefined_flag_CXX=unsupported
15792           always_export_symbols_CXX=yes
15793           file_list_spec_CXX='@'
15794           # Tell ltmain to make .lib files, not .a files.
15795           libext=lib
15796           # Tell ltmain to make .dll files, not .so files.
15797           shrext_cmds=".dll"
15798           # FIXME: Setting linknames here is a bad hack.
15799           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15800           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15801               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15802             else
15803               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15804             fi~
15805             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15806             linknames='
15807           # The linker will not automatically build a static lib if we build a DLL.
15808           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
15809           enable_shared_with_static_runtimes_CXX=yes
15810           # Don't use ranlib
15811           old_postinstall_cmds_CXX='chmod 644 $oldlib'
15812           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
15813             lt_tool_outputfile="@TOOL_OUTPUT@"~
15814             case $lt_outputfile in
15815               *.exe|*.EXE) ;;
15816               *)
15817                 lt_outputfile="$lt_outputfile.exe"
15818                 lt_tool_outputfile="$lt_tool_outputfile.exe"
15819                 ;;
15820             esac~
15821             func_to_tool_file "$lt_outputfile"~
15822             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15823               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15824               $RM "$lt_outputfile.manifest";
15825             fi'
15826           ;;
15827         *)
15828           # g++
15829           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15830           # as there is no search path for DLLs.
15831           hardcode_libdir_flag_spec_CXX='-L$libdir'
15832           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15833           allow_undefined_flag_CXX=unsupported
15834           always_export_symbols_CXX=no
15835           enable_shared_with_static_runtimes_CXX=yes
15836
15837           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15838             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15839             # If the export-symbols file already is a .def file (1st line
15840             # is EXPORTS), use it as is; otherwise, prepend...
15841             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15842               cp $export_symbols $output_objdir/$soname.def;
15843             else
15844               echo EXPORTS > $output_objdir/$soname.def;
15845               cat $export_symbols >> $output_objdir/$soname.def;
15846             fi~
15847             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15848           else
15849             ld_shlibs_CXX=no
15850           fi
15851           ;;
15852         esac
15853         ;;
15854       darwin* | rhapsody*)
15855
15856
15857   archive_cmds_need_lc_CXX=no
15858   hardcode_direct_CXX=no
15859   hardcode_automatic_CXX=yes
15860   hardcode_shlibpath_var_CXX=unsupported
15861   if test "$lt_cv_ld_force_load" = "yes"; then
15862     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15863   else
15864     whole_archive_flag_spec_CXX=''
15865   fi
15866   link_all_deplibs_CXX=yes
15867   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15868   case $cc_basename in
15869      ifort*) _lt_dar_can_shared=yes ;;
15870      *) _lt_dar_can_shared=$GCC ;;
15871   esac
15872   if test "$_lt_dar_can_shared" = "yes"; then
15873     output_verbose_link_cmd=func_echo_all
15874     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15875     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15876     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15877     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15878        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15879       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15880       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15881     fi
15882
15883   else
15884   ld_shlibs_CXX=no
15885   fi
15886
15887         ;;
15888
15889       dgux*)
15890         case $cc_basename in
15891           ec++*)
15892             # FIXME: insert proper C++ library support
15893             ld_shlibs_CXX=no
15894             ;;
15895           ghcx*)
15896             # Green Hills C++ Compiler
15897             # FIXME: insert proper C++ library support
15898             ld_shlibs_CXX=no
15899             ;;
15900           *)
15901             # FIXME: insert proper C++ library support
15902             ld_shlibs_CXX=no
15903             ;;
15904         esac
15905         ;;
15906
15907       freebsd[12]*)
15908         # C++ shared libraries reported to be fairly broken before
15909         # switch to ELF
15910         ld_shlibs_CXX=no
15911         ;;
15912
15913       freebsd-elf*)
15914         archive_cmds_need_lc_CXX=no
15915         ;;
15916
15917       freebsd* | dragonfly*)
15918         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15919         # conventions
15920         ld_shlibs_CXX=yes
15921         ;;
15922
15923       gnu*)
15924         ;;
15925
15926       haiku*)
15927         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15928         link_all_deplibs_CXX=yes
15929         ;;
15930
15931       hpux9*)
15932         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15933         hardcode_libdir_separator_CXX=:
15934         export_dynamic_flag_spec_CXX='${wl}-E'
15935         hardcode_direct_CXX=yes
15936         hardcode_minus_L_CXX=yes # Not in the search PATH,
15937                                              # but as the default
15938                                              # location of the library.
15939
15940         case $cc_basename in
15941           CC*)
15942             # FIXME: insert proper C++ library support
15943             ld_shlibs_CXX=no
15944             ;;
15945           aCC*)
15946             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15947             # Commands to make compiler produce verbose output that lists
15948             # what "hidden" libraries, object files and flags are used when
15949             # linking a shared library.
15950             #
15951             # There doesn't appear to be a way to prevent this compiler from
15952             # explicitly linking system object files so we need to strip them
15953             # from the output so that they don't get included in the library
15954             # dependencies.
15955             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15956             ;;
15957           *)
15958             if test "$GXX" = yes; then
15959               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15960             else
15961               # FIXME: insert proper C++ library support
15962               ld_shlibs_CXX=no
15963             fi
15964             ;;
15965         esac
15966         ;;
15967
15968       hpux10*|hpux11*)
15969         if test $with_gnu_ld = no; then
15970           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15971           hardcode_libdir_separator_CXX=:
15972
15973           case $host_cpu in
15974             hppa*64*|ia64*)
15975               ;;
15976             *)
15977               export_dynamic_flag_spec_CXX='${wl}-E'
15978               ;;
15979           esac
15980         fi
15981         case $host_cpu in
15982           hppa*64*|ia64*)
15983             hardcode_direct_CXX=no
15984             hardcode_shlibpath_var_CXX=no
15985             ;;
15986           *)
15987             hardcode_direct_CXX=yes
15988             hardcode_direct_absolute_CXX=yes
15989             hardcode_minus_L_CXX=yes # Not in the search PATH,
15990                                                  # but as the default
15991                                                  # location of the library.
15992             ;;
15993         esac
15994
15995         case $cc_basename in
15996           CC*)
15997             # FIXME: insert proper C++ library support
15998             ld_shlibs_CXX=no
15999             ;;
16000           aCC*)
16001             case $host_cpu in
16002               hppa*64*)
16003                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16004                 ;;
16005               ia64*)
16006                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16007                 ;;
16008               *)
16009                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16010                 ;;
16011             esac
16012             # Commands to make compiler produce verbose output that lists
16013             # what "hidden" libraries, object files and flags are used when
16014             # linking a shared library.
16015             #
16016             # There doesn't appear to be a way to prevent this compiler from
16017             # explicitly linking system object files so we need to strip them
16018             # from the output so that they don't get included in the library
16019             # dependencies.
16020             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16021             ;;
16022           *)
16023             if test "$GXX" = yes; then
16024               if test $with_gnu_ld = no; then
16025                 case $host_cpu in
16026                   hppa*64*)
16027                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16028                     ;;
16029                   ia64*)
16030                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16031                     ;;
16032                   *)
16033                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16034                     ;;
16035                 esac
16036               fi
16037             else
16038               # FIXME: insert proper C++ library support
16039               ld_shlibs_CXX=no
16040             fi
16041             ;;
16042         esac
16043         ;;
16044
16045       interix[3-9]*)
16046         hardcode_direct_CXX=no
16047         hardcode_shlibpath_var_CXX=no
16048         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16049         export_dynamic_flag_spec_CXX='${wl}-E'
16050         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16051         # Instead, shared libraries are loaded at an image base (0x10000000 by
16052         # default) and relocated if they conflict, which is a slow very memory
16053         # consuming and fragmenting process.  To avoid this, we pick a random,
16054         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16055         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16056         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16057         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16058         ;;
16059       irix5* | irix6*)
16060         case $cc_basename in
16061           CC*)
16062             # SGI C++
16063             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16064
16065             # Archives containing C++ object files must be created using
16066             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16067             # necessary to make sure instantiated templates are included
16068             # in the archive.
16069             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16070             ;;
16071           *)
16072             if test "$GXX" = yes; then
16073               if test "$with_gnu_ld" = no; then
16074                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16075               else
16076                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
16077               fi
16078             fi
16079             link_all_deplibs_CXX=yes
16080             ;;
16081         esac
16082         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16083         hardcode_libdir_separator_CXX=:
16084         inherit_rpath_CXX=yes
16085         ;;
16086
16087       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16088         case $cc_basename in
16089           KCC*)
16090             # Kuck and Associates, Inc. (KAI) C++ Compiler
16091
16092             # KCC will only create a shared library if the output file
16093             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16094             # to its proper name (with version) after linking.
16095             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16096             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
16097             # Commands to make compiler produce verbose output that lists
16098             # what "hidden" libraries, object files and flags are used when
16099             # linking a shared library.
16100             #
16101             # There doesn't appear to be a way to prevent this compiler from
16102             # explicitly linking system object files so we need to strip them
16103             # from the output so that they don't get included in the library
16104             # dependencies.
16105             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16106
16107             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16108             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16109
16110             # Archives containing C++ object files must be created using
16111             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16112             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16113             ;;
16114           icpc* | ecpc* )
16115             # Intel C++
16116             with_gnu_ld=yes
16117             # version 8.0 and above of icpc choke on multiply defined symbols
16118             # if we add $predep_objects and $postdep_objects, however 7.1 and
16119             # earlier do not add the objects themselves.
16120             case `$CC -V 2>&1` in
16121               *"Version 7."*)
16122                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16123                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16124                 ;;
16125               *)  # Version 8.0 or newer
16126                 tmp_idyn=
16127                 case $host_cpu in
16128                   ia64*) tmp_idyn=' -i_dynamic';;
16129                 esac
16130                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16131                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16132                 ;;
16133             esac
16134             archive_cmds_need_lc_CXX=no
16135             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16136             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16137             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16138             ;;
16139           pgCC* | pgcpp*)
16140             # Portland Group C++ compiler
16141             case `$CC -V` in
16142             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16143               prelink_cmds_CXX='tpldir=Template.dir~
16144                 rm -rf $tpldir~
16145                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16146                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16147               old_archive_cmds_CXX='tpldir=Template.dir~
16148                 rm -rf $tpldir~
16149                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16150                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16151                 $RANLIB $oldlib'
16152               archive_cmds_CXX='tpldir=Template.dir~
16153                 rm -rf $tpldir~
16154                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16155                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16156               archive_expsym_cmds_CXX='tpldir=Template.dir~
16157                 rm -rf $tpldir~
16158                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16159                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16160               ;;
16161             *) # Version 6 and above use weak symbols
16162               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16163               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
16164               ;;
16165             esac
16166
16167             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16168             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16169             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16170             ;;
16171           cxx*)
16172             # Compaq C++
16173             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16174             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
16175
16176             runpath_var=LD_RUN_PATH
16177             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16178             hardcode_libdir_separator_CXX=:
16179
16180             # Commands to make compiler produce verbose output that lists
16181             # what "hidden" libraries, object files and flags are used when
16182             # linking a shared library.
16183             #
16184             # There doesn't appear to be a way to prevent this compiler from
16185             # explicitly linking system object files so we need to strip them
16186             # from the output so that they don't get included in the library
16187             # dependencies.
16188             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
16189             ;;
16190           xl* | mpixl* | bgxl*)
16191             # IBM XL 8.0 on PPC, with GNU ld
16192             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16193             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16194             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16195             if test "x$supports_anon_versioning" = xyes; then
16196               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16197                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16198                 echo "local: *; };" >> $output_objdir/$libname.ver~
16199                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16200             fi
16201             ;;
16202           *)
16203             case `$CC -V 2>&1 | sed 5q` in
16204             *Sun\ C*)
16205               # Sun C++ 5.9
16206               no_undefined_flag_CXX=' -zdefs'
16207               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16208               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
16209               hardcode_libdir_flag_spec_CXX='-R$libdir'
16210               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
16211               compiler_needs_object_CXX=yes
16212
16213               # Not sure whether something based on
16214               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16215               # would be better.
16216               output_verbose_link_cmd='func_echo_all'
16217
16218               # Archives containing C++ object files must be created using
16219               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16220               # necessary to make sure instantiated templates are included
16221               # in the archive.
16222               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16223               ;;
16224             esac
16225             ;;
16226         esac
16227         ;;
16228
16229       lynxos*)
16230         # FIXME: insert proper C++ library support
16231         ld_shlibs_CXX=no
16232         ;;
16233
16234       m88k*)
16235         # FIXME: insert proper C++ library support
16236         ld_shlibs_CXX=no
16237         ;;
16238
16239       mvs*)
16240         case $cc_basename in
16241           cxx*)
16242             # FIXME: insert proper C++ library support
16243             ld_shlibs_CXX=no
16244             ;;
16245           *)
16246             # FIXME: insert proper C++ library support
16247             ld_shlibs_CXX=no
16248             ;;
16249         esac
16250         ;;
16251
16252       netbsd*)
16253         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16254           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16255           wlarc=
16256           hardcode_libdir_flag_spec_CXX='-R$libdir'
16257           hardcode_direct_CXX=yes
16258           hardcode_shlibpath_var_CXX=no
16259         fi
16260         # Workaround some broken pre-1.5 toolchains
16261         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16262         ;;
16263
16264       *nto* | *qnx*)
16265         ld_shlibs_CXX=yes
16266         ;;
16267
16268       openbsd2*)
16269         # C++ shared libraries are fairly broken
16270         ld_shlibs_CXX=no
16271         ;;
16272
16273       openbsd*)
16274         if test -f /usr/libexec/ld.so; then
16275           hardcode_direct_CXX=yes
16276           hardcode_shlibpath_var_CXX=no
16277           hardcode_direct_absolute_CXX=yes
16278           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16279           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16280           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16281             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16282             export_dynamic_flag_spec_CXX='${wl}-E'
16283             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16284           fi
16285           output_verbose_link_cmd=func_echo_all
16286         else
16287           ld_shlibs_CXX=no
16288         fi
16289         ;;
16290
16291       osf3* | osf4* | osf5*)
16292         case $cc_basename in
16293           KCC*)
16294             # Kuck and Associates, Inc. (KAI) C++ Compiler
16295
16296             # KCC will only create a shared library if the output file
16297             # ends with ".so" (or ".sl" for HP-UX), so rename the library
16298             # to its proper name (with version) after linking.
16299             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
16300
16301             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16302             hardcode_libdir_separator_CXX=:
16303
16304             # Archives containing C++ object files must be created using
16305             # the KAI C++ compiler.
16306             case $host in
16307               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16308               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16309             esac
16310             ;;
16311           RCC*)
16312             # Rational C++ 2.4.1
16313             # FIXME: insert proper C++ library support
16314             ld_shlibs_CXX=no
16315             ;;
16316           cxx*)
16317             case $host in
16318               osf3*)
16319                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16320                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16321                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16322                 ;;
16323               *)
16324                 allow_undefined_flag_CXX=' -expect_unresolved \*'
16325                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16326                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16327                   echo "-hidden">> $lib.exp~
16328                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16329                   $RM $lib.exp'
16330                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16331                 ;;
16332             esac
16333
16334             hardcode_libdir_separator_CXX=:
16335
16336             # Commands to make compiler produce verbose output that lists
16337             # what "hidden" libraries, object files and flags are used when
16338             # linking a shared library.
16339             #
16340             # There doesn't appear to be a way to prevent this compiler from
16341             # explicitly linking system object files so we need to strip them
16342             # from the output so that they don't get included in the library
16343             # dependencies.
16344             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
16345             ;;
16346           *)
16347             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16348               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16349               case $host in
16350                 osf3*)
16351                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16352                   ;;
16353                 *)
16354                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16355                   ;;
16356               esac
16357
16358               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16359               hardcode_libdir_separator_CXX=:
16360
16361               # Commands to make compiler produce verbose output that lists
16362               # what "hidden" libraries, object files and flags are used when
16363               # linking a shared library.
16364               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16365
16366             else
16367               # FIXME: insert proper C++ library support
16368               ld_shlibs_CXX=no
16369             fi
16370             ;;
16371         esac
16372         ;;
16373
16374       psos*)
16375         # FIXME: insert proper C++ library support
16376         ld_shlibs_CXX=no
16377         ;;
16378
16379       sunos4*)
16380         case $cc_basename in
16381           CC*)
16382             # Sun C++ 4.x
16383             # FIXME: insert proper C++ library support
16384             ld_shlibs_CXX=no
16385             ;;
16386           lcc*)
16387             # Lucid
16388             # FIXME: insert proper C++ library support
16389             ld_shlibs_CXX=no
16390             ;;
16391           *)
16392             # FIXME: insert proper C++ library support
16393             ld_shlibs_CXX=no
16394             ;;
16395         esac
16396         ;;
16397
16398       solaris*)
16399         case $cc_basename in
16400           CC* | sunCC*)
16401             # Sun C++ 4.2, 5.x and Centerline C++
16402             archive_cmds_need_lc_CXX=yes
16403             no_undefined_flag_CXX=' -zdefs'
16404             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16405             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16406               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16407
16408             hardcode_libdir_flag_spec_CXX='-R$libdir'
16409             hardcode_shlibpath_var_CXX=no
16410             case $host_os in
16411               solaris2.[0-5] | solaris2.[0-5].*) ;;
16412               *)
16413                 # The compiler driver will combine and reorder linker options,
16414                 # but understands `-z linker_flag'.
16415                 # Supported since Solaris 2.6 (maybe 2.5.1?)
16416                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16417                 ;;
16418             esac
16419             link_all_deplibs_CXX=yes
16420
16421             output_verbose_link_cmd='func_echo_all'
16422
16423             # Archives containing C++ object files must be created using
16424             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16425             # necessary to make sure instantiated templates are included
16426             # in the archive.
16427             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16428             ;;
16429           gcx*)
16430             # Green Hills C++ Compiler
16431             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16432
16433             # The C++ compiler must be used to create the archive.
16434             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16435             ;;
16436           *)
16437             # GNU C++ compiler with Solaris linker
16438             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16439               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16440               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16441                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16442                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16443                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16444
16445                 # Commands to make compiler produce verbose output that lists
16446                 # what "hidden" libraries, object files and flags are used when
16447                 # linking a shared library.
16448                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16449               else
16450                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16451                 # platform.
16452                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16453                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16454                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16455
16456                 # Commands to make compiler produce verbose output that lists
16457                 # what "hidden" libraries, object files and flags are used when
16458                 # linking a shared library.
16459                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16460               fi
16461
16462               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16463               case $host_os in
16464                 solaris2.[0-5] | solaris2.[0-5].*) ;;
16465                 *)
16466                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16467                   ;;
16468               esac
16469             fi
16470             ;;
16471         esac
16472         ;;
16473
16474     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16475       no_undefined_flag_CXX='${wl}-z,text'
16476       archive_cmds_need_lc_CXX=no
16477       hardcode_shlibpath_var_CXX=no
16478       runpath_var='LD_RUN_PATH'
16479
16480       case $cc_basename in
16481         CC*)
16482           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16483           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16484           ;;
16485         *)
16486           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16487           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16488           ;;
16489       esac
16490       ;;
16491
16492       sysv5* | sco3.2v5* | sco5v6*)
16493         # Note: We can NOT use -z defs as we might desire, because we do not
16494         # link with -lc, and that would cause any symbols used from libc to
16495         # always be unresolved, which means just about no library would
16496         # ever link correctly.  If we're not using GNU ld we use -z text
16497         # though, which does catch some bad symbols but isn't as heavy-handed
16498         # as -z defs.
16499         no_undefined_flag_CXX='${wl}-z,text'
16500         allow_undefined_flag_CXX='${wl}-z,nodefs'
16501         archive_cmds_need_lc_CXX=no
16502         hardcode_shlibpath_var_CXX=no
16503         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16504         hardcode_libdir_separator_CXX=':'
16505         link_all_deplibs_CXX=yes
16506         export_dynamic_flag_spec_CXX='${wl}-Bexport'
16507         runpath_var='LD_RUN_PATH'
16508
16509         case $cc_basename in
16510           CC*)
16511             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16512             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16513             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16514               '"$old_archive_cmds_CXX"
16515             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16516               '"$reload_cmds_CXX"
16517             ;;
16518           *)
16519             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16520             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16521             ;;
16522         esac
16523       ;;
16524
16525       tandem*)
16526         case $cc_basename in
16527           NCC*)
16528             # NonStop-UX NCC 3.20
16529             # FIXME: insert proper C++ library support
16530             ld_shlibs_CXX=no
16531             ;;
16532           *)
16533             # FIXME: insert proper C++ library support
16534             ld_shlibs_CXX=no
16535             ;;
16536         esac
16537         ;;
16538
16539       vxworks*)
16540         # FIXME: insert proper C++ library support
16541         ld_shlibs_CXX=no
16542         ;;
16543
16544       *)
16545         # FIXME: insert proper C++ library support
16546         ld_shlibs_CXX=no
16547         ;;
16548     esac
16549
16550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16551 $as_echo "$ld_shlibs_CXX" >&6; }
16552     test "$ld_shlibs_CXX" = no && can_build_shared=no
16553
16554     GCC_CXX="$GXX"
16555     LD_CXX="$LD"
16556
16557     ## CAVEAT EMPTOR:
16558     ## There is no encapsulation within the following macros, do not change
16559     ## the running order or otherwise move them around unless you know exactly
16560     ## what you are doing...
16561     # Dependencies to place before and after the object being linked:
16562 predep_objects_CXX=
16563 postdep_objects_CXX=
16564 predeps_CXX=
16565 postdeps_CXX=
16566 compiler_lib_search_path_CXX=
16567
16568 cat > conftest.$ac_ext <<_LT_EOF
16569 class Foo
16570 {
16571 public:
16572   Foo (void) { a = 0; }
16573 private:
16574   int a;
16575 };
16576 _LT_EOF
16577
16578
16579 _lt_libdeps_save_CFLAGS=$CFLAGS
16580 case "$CC $CFLAGS " in #(
16581 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16582 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16583 esac
16584
16585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16586   (eval $ac_compile) 2>&5
16587   ac_status=$?
16588   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16589   test $ac_status = 0; }; then
16590   # Parse the compiler output and extract the necessary
16591   # objects, libraries and library flags.
16592
16593   # Sentinel used to keep track of whether or not we are before
16594   # the conftest object file.
16595   pre_test_object_deps_done=no
16596
16597   for p in `eval "$output_verbose_link_cmd"`; do
16598     case ${prev}${p} in
16599
16600     -L* | -R* | -l*)
16601        # Some compilers place space between "-{L,R}" and the path.
16602        # Remove the space.
16603        if test $p = "-L" ||
16604           test $p = "-R"; then
16605          prev=$p
16606          continue
16607        fi
16608
16609        # Expand the sysroot to ease extracting the directories later.
16610        if test -z "$prev"; then
16611          case $p in
16612          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16613          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16614          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16615          esac
16616        fi
16617        case $p in
16618        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16619        esac
16620        if test "$pre_test_object_deps_done" = no; then
16621          case ${prev} in
16622          -L | -R)
16623            # Internal compiler library paths should come after those
16624            # provided the user.  The postdeps already come after the
16625            # user supplied libs so there is no need to process them.
16626            if test -z "$compiler_lib_search_path_CXX"; then
16627              compiler_lib_search_path_CXX="${prev}${p}"
16628            else
16629              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16630            fi
16631            ;;
16632          # The "-l" case would never come before the object being
16633          # linked, so don't bother handling this case.
16634          esac
16635        else
16636          if test -z "$postdeps_CXX"; then
16637            postdeps_CXX="${prev}${p}"
16638          else
16639            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16640          fi
16641        fi
16642        prev=
16643        ;;
16644
16645     *.lto.$objext) ;; # Ignore GCC LTO objects
16646     *.$objext)
16647        # This assumes that the test object file only shows up
16648        # once in the compiler output.
16649        if test "$p" = "conftest.$objext"; then
16650          pre_test_object_deps_done=yes
16651          continue
16652        fi
16653
16654        if test "$pre_test_object_deps_done" = no; then
16655          if test -z "$predep_objects_CXX"; then
16656            predep_objects_CXX="$p"
16657          else
16658            predep_objects_CXX="$predep_objects_CXX $p"
16659          fi
16660        else
16661          if test -z "$postdep_objects_CXX"; then
16662            postdep_objects_CXX="$p"
16663          else
16664            postdep_objects_CXX="$postdep_objects_CXX $p"
16665          fi
16666        fi
16667        ;;
16668
16669     *) ;; # Ignore the rest.
16670
16671     esac
16672   done
16673
16674   # Clean up.
16675   rm -f a.out a.exe
16676 else
16677   echo "libtool.m4: error: problem compiling CXX test program"
16678 fi
16679
16680 $RM -f confest.$objext
16681 CFLAGS=$_lt_libdeps_save_CFLAGS
16682
16683 # PORTME: override above test on systems where it is broken
16684 case $host_os in
16685 interix[3-9]*)
16686   # Interix 3.5 installs completely hosed .la files for C++, so rather than
16687   # hack all around it, let's just trust "g++" to DTRT.
16688   predep_objects_CXX=
16689   postdep_objects_CXX=
16690   postdeps_CXX=
16691   ;;
16692
16693 linux*)
16694   case `$CC -V 2>&1 | sed 5q` in
16695   *Sun\ C*)
16696     # Sun C++ 5.9
16697
16698     # The more standards-conforming stlport4 library is
16699     # incompatible with the Cstd library. Avoid specifying
16700     # it if it's in CXXFLAGS. Ignore libCrun as
16701     # -library=stlport4 depends on it.
16702     case " $CXX $CXXFLAGS " in
16703     *" -library=stlport4 "*)
16704       solaris_use_stlport4=yes
16705       ;;
16706     esac
16707
16708     if test "$solaris_use_stlport4" != yes; then
16709       postdeps_CXX='-library=Cstd -library=Crun'
16710     fi
16711     ;;
16712   esac
16713   ;;
16714
16715 solaris*)
16716   case $cc_basename in
16717   CC* | sunCC*)
16718     # The more standards-conforming stlport4 library is
16719     # incompatible with the Cstd library. Avoid specifying
16720     # it if it's in CXXFLAGS. Ignore libCrun as
16721     # -library=stlport4 depends on it.
16722     case " $CXX $CXXFLAGS " in
16723     *" -library=stlport4 "*)
16724       solaris_use_stlport4=yes
16725       ;;
16726     esac
16727
16728     # Adding this requires a known-good setup of shared libraries for
16729     # Sun compiler versions before 5.6, else PIC objects from an old
16730     # archive will be linked into the output, leading to subtle bugs.
16731     if test "$solaris_use_stlport4" != yes; then
16732       postdeps_CXX='-library=Cstd -library=Crun'
16733     fi
16734     ;;
16735   esac
16736   ;;
16737 esac
16738
16739
16740 case " $postdeps_CXX " in
16741 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16742 esac
16743  compiler_lib_search_dirs_CXX=
16744 if test -n "${compiler_lib_search_path_CXX}"; then
16745  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16746 fi
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778     lt_prog_compiler_wl_CXX=
16779 lt_prog_compiler_pic_CXX=
16780 lt_prog_compiler_static_CXX=
16781
16782
16783   # C++ specific cases for pic, static, wl, etc.
16784   if test "$GXX" = yes; then
16785     lt_prog_compiler_wl_CXX='-Wl,'
16786     lt_prog_compiler_static_CXX='-static'
16787
16788     case $host_os in
16789     aix*)
16790       # All AIX code is PIC.
16791       if test "$host_cpu" = ia64; then
16792         # AIX 5 now supports IA64 processor
16793         lt_prog_compiler_static_CXX='-Bstatic'
16794       fi
16795       ;;
16796
16797     amigaos*)
16798       case $host_cpu in
16799       powerpc)
16800             # see comment about AmigaOS4 .so support
16801             lt_prog_compiler_pic_CXX='-fPIC'
16802         ;;
16803       m68k)
16804             # FIXME: we need at least 68020 code to build shared libraries, but
16805             # adding the `-m68020' flag to GCC prevents building anything better,
16806             # like `-m68040'.
16807             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16808         ;;
16809       esac
16810       ;;
16811
16812     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16813       # PIC is the default for these OSes.
16814       ;;
16815     mingw* | cygwin* | os2* | pw32* | cegcc*)
16816       # This hack is so that the source file can tell whether it is being
16817       # built for inclusion in a dll (and should export symbols for example).
16818       # Although the cygwin gcc ignores -fPIC, still need this for old-style
16819       # (--disable-auto-import) libraries
16820       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16821       ;;
16822     darwin* | rhapsody*)
16823       # PIC is the default on this platform
16824       # Common symbols not allowed in MH_DYLIB files
16825       lt_prog_compiler_pic_CXX='-fno-common'
16826       ;;
16827     *djgpp*)
16828       # DJGPP does not support shared libraries at all
16829       lt_prog_compiler_pic_CXX=
16830       ;;
16831     haiku*)
16832       # PIC is the default for Haiku.
16833       # The "-static" flag exists, but is broken.
16834       lt_prog_compiler_static_CXX=
16835       ;;
16836     interix[3-9]*)
16837       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16838       # Instead, we relocate shared libraries at runtime.
16839       ;;
16840     sysv4*MP*)
16841       if test -d /usr/nec; then
16842         lt_prog_compiler_pic_CXX=-Kconform_pic
16843       fi
16844       ;;
16845     hpux*)
16846       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16847       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
16848       # sets the default TLS model and affects inlining.
16849       case $host_cpu in
16850       hppa*64*)
16851         ;;
16852       *)
16853         lt_prog_compiler_pic_CXX='-fPIC'
16854         ;;
16855       esac
16856       ;;
16857     *qnx* | *nto*)
16858       # QNX uses GNU C++, but need to define -shared option too, otherwise
16859       # it will coredump.
16860       lt_prog_compiler_pic_CXX='-fPIC -shared'
16861       ;;
16862     *)
16863       lt_prog_compiler_pic_CXX='-fPIC'
16864       ;;
16865     esac
16866   else
16867     case $host_os in
16868       aix[4-9]*)
16869         # All AIX code is PIC.
16870         if test "$host_cpu" = ia64; then
16871           # AIX 5 now supports IA64 processor
16872           lt_prog_compiler_static_CXX='-Bstatic'
16873         else
16874           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16875         fi
16876         ;;
16877       chorus*)
16878         case $cc_basename in
16879         cxch68*)
16880           # Green Hills C++ Compiler
16881           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16882           ;;
16883         esac
16884         ;;
16885       mingw* | cygwin* | os2* | pw32* | cegcc*)
16886         # This hack is so that the source file can tell whether it is being
16887         # built for inclusion in a dll (and should export symbols for example).
16888         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16889         ;;
16890       dgux*)
16891         case $cc_basename in
16892           ec++*)
16893             lt_prog_compiler_pic_CXX='-KPIC'
16894             ;;
16895           ghcx*)
16896             # Green Hills C++ Compiler
16897             lt_prog_compiler_pic_CXX='-pic'
16898             ;;
16899           *)
16900             ;;
16901         esac
16902         ;;
16903       freebsd* | dragonfly*)
16904         # FreeBSD uses GNU C++
16905         ;;
16906       hpux9* | hpux10* | hpux11*)
16907         case $cc_basename in
16908           CC*)
16909             lt_prog_compiler_wl_CXX='-Wl,'
16910             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16911             if test "$host_cpu" != ia64; then
16912               lt_prog_compiler_pic_CXX='+Z'
16913             fi
16914             ;;
16915           aCC*)
16916             lt_prog_compiler_wl_CXX='-Wl,'
16917             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16918             case $host_cpu in
16919             hppa*64*|ia64*)
16920               # +Z the default
16921               ;;
16922             *)
16923               lt_prog_compiler_pic_CXX='+Z'
16924               ;;
16925             esac
16926             ;;
16927           *)
16928             ;;
16929         esac
16930         ;;
16931       interix*)
16932         # This is c89, which is MS Visual C++ (no shared libs)
16933         # Anyone wants to do a port?
16934         ;;
16935       irix5* | irix6* | nonstopux*)
16936         case $cc_basename in
16937           CC*)
16938             lt_prog_compiler_wl_CXX='-Wl,'
16939             lt_prog_compiler_static_CXX='-non_shared'
16940             # CC pic flag -KPIC is the default.
16941             ;;
16942           *)
16943             ;;
16944         esac
16945         ;;
16946       linux* | k*bsd*-gnu | kopensolaris*-gnu)
16947         case $cc_basename in
16948           KCC*)
16949             # KAI C++ Compiler
16950             lt_prog_compiler_wl_CXX='--backend -Wl,'
16951             lt_prog_compiler_pic_CXX='-fPIC'
16952             ;;
16953           ecpc* )
16954             # old Intel C++ for x86_64 which still supported -KPIC.
16955             lt_prog_compiler_wl_CXX='-Wl,'
16956             lt_prog_compiler_pic_CXX='-KPIC'
16957             lt_prog_compiler_static_CXX='-static'
16958             ;;
16959           icpc* )
16960             # Intel C++, used to be incompatible with GCC.
16961             # ICC 10 doesn't accept -KPIC any more.
16962             lt_prog_compiler_wl_CXX='-Wl,'
16963             lt_prog_compiler_pic_CXX='-fPIC'
16964             lt_prog_compiler_static_CXX='-static'
16965             ;;
16966           pgCC* | pgcpp*)
16967             # Portland Group C++ compiler
16968             lt_prog_compiler_wl_CXX='-Wl,'
16969             lt_prog_compiler_pic_CXX='-fpic'
16970             lt_prog_compiler_static_CXX='-Bstatic'
16971             ;;
16972           cxx*)
16973             # Compaq C++
16974             # Make sure the PIC flag is empty.  It appears that all Alpha
16975             # Linux and Compaq Tru64 Unix objects are PIC.
16976             lt_prog_compiler_pic_CXX=
16977             lt_prog_compiler_static_CXX='-non_shared'
16978             ;;
16979           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16980             # IBM XL 8.0, 9.0 on PPC and BlueGene
16981             lt_prog_compiler_wl_CXX='-Wl,'
16982             lt_prog_compiler_pic_CXX='-qpic'
16983             lt_prog_compiler_static_CXX='-qstaticlink'
16984             ;;
16985           *)
16986             case `$CC -V 2>&1 | sed 5q` in
16987             *Sun\ C*)
16988               # Sun C++ 5.9
16989               lt_prog_compiler_pic_CXX='-KPIC'
16990               lt_prog_compiler_static_CXX='-Bstatic'
16991               lt_prog_compiler_wl_CXX='-Qoption ld '
16992               ;;
16993             esac
16994             ;;
16995         esac
16996         ;;
16997       lynxos*)
16998         ;;
16999       m88k*)
17000         ;;
17001       mvs*)
17002         case $cc_basename in
17003           cxx*)
17004             lt_prog_compiler_pic_CXX='-W c,exportall'
17005             ;;
17006           *)
17007             ;;
17008         esac
17009         ;;
17010       netbsd*)
17011         ;;
17012       *qnx* | *nto*)
17013         # QNX uses GNU C++, but need to define -shared option too, otherwise
17014         # it will coredump.
17015         lt_prog_compiler_pic_CXX='-fPIC -shared'
17016         ;;
17017       osf3* | osf4* | osf5*)
17018         case $cc_basename in
17019           KCC*)
17020             lt_prog_compiler_wl_CXX='--backend -Wl,'
17021             ;;
17022           RCC*)
17023             # Rational C++ 2.4.1
17024             lt_prog_compiler_pic_CXX='-pic'
17025             ;;
17026           cxx*)
17027             # Digital/Compaq C++
17028             lt_prog_compiler_wl_CXX='-Wl,'
17029             # Make sure the PIC flag is empty.  It appears that all Alpha
17030             # Linux and Compaq Tru64 Unix objects are PIC.
17031             lt_prog_compiler_pic_CXX=
17032             lt_prog_compiler_static_CXX='-non_shared'
17033             ;;
17034           *)
17035             ;;
17036         esac
17037         ;;
17038       psos*)
17039         ;;
17040       solaris*)
17041         case $cc_basename in
17042           CC* | sunCC*)
17043             # Sun C++ 4.2, 5.x and Centerline C++
17044             lt_prog_compiler_pic_CXX='-KPIC'
17045             lt_prog_compiler_static_CXX='-Bstatic'
17046             lt_prog_compiler_wl_CXX='-Qoption ld '
17047             ;;
17048           gcx*)
17049             # Green Hills C++ Compiler
17050             lt_prog_compiler_pic_CXX='-PIC'
17051             ;;
17052           *)
17053             ;;
17054         esac
17055         ;;
17056       sunos4*)
17057         case $cc_basename in
17058           CC*)
17059             # Sun C++ 4.x
17060             lt_prog_compiler_pic_CXX='-pic'
17061             lt_prog_compiler_static_CXX='-Bstatic'
17062             ;;
17063           lcc*)
17064             # Lucid
17065             lt_prog_compiler_pic_CXX='-pic'
17066             ;;
17067           *)
17068             ;;
17069         esac
17070         ;;
17071       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17072         case $cc_basename in
17073           CC*)
17074             lt_prog_compiler_wl_CXX='-Wl,'
17075             lt_prog_compiler_pic_CXX='-KPIC'
17076             lt_prog_compiler_static_CXX='-Bstatic'
17077             ;;
17078         esac
17079         ;;
17080       tandem*)
17081         case $cc_basename in
17082           NCC*)
17083             # NonStop-UX NCC 3.20
17084             lt_prog_compiler_pic_CXX='-KPIC'
17085             ;;
17086           *)
17087             ;;
17088         esac
17089         ;;
17090       vxworks*)
17091         ;;
17092       *)
17093         lt_prog_compiler_can_build_shared_CXX=no
17094         ;;
17095     esac
17096   fi
17097
17098 case $host_os in
17099   # For platforms which do not support PIC, -DPIC is meaningless:
17100   *djgpp*)
17101     lt_prog_compiler_pic_CXX=
17102     ;;
17103   *)
17104     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17105     ;;
17106 esac
17107
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17109 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17110 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17111   $as_echo_n "(cached) " >&6
17112 else
17113   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17116 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17117 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17118
17119 #
17120 # Check to make sure the PIC flag actually works.
17121 #
17122 if test -n "$lt_prog_compiler_pic_CXX"; then
17123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17124 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17125 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17126   $as_echo_n "(cached) " >&6
17127 else
17128   lt_cv_prog_compiler_pic_works_CXX=no
17129    ac_outfile=conftest.$ac_objext
17130    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17131    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17132    # Insert the option either (1) after the last *FLAGS variable, or
17133    # (2) before a word containing "conftest.", or (3) at the end.
17134    # Note that $ac_compile itself does not contain backslashes and begins
17135    # with a dollar sign (not a hyphen), so the echo should work correctly.
17136    # The option is referenced via a variable to avoid confusing sed.
17137    lt_compile=`echo "$ac_compile" | $SED \
17138    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17139    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17140    -e 's:$: $lt_compiler_flag:'`
17141    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17142    (eval "$lt_compile" 2>conftest.err)
17143    ac_status=$?
17144    cat conftest.err >&5
17145    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146    if (exit $ac_status) && test -s "$ac_outfile"; then
17147      # The compiler can only warn and ignore the option if not recognized
17148      # So say no if there are warnings other than the usual output.
17149      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17150      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17151      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17152        lt_cv_prog_compiler_pic_works_CXX=yes
17153      fi
17154    fi
17155    $RM conftest*
17156
17157 fi
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17159 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17160
17161 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17162     case $lt_prog_compiler_pic_CXX in
17163      "" | " "*) ;;
17164      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17165      esac
17166 else
17167     lt_prog_compiler_pic_CXX=
17168      lt_prog_compiler_can_build_shared_CXX=no
17169 fi
17170
17171 fi
17172
17173
17174
17175
17176
17177 #
17178 # Check to make sure the static flag actually works.
17179 #
17180 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17182 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17183 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17184   $as_echo_n "(cached) " >&6
17185 else
17186   lt_cv_prog_compiler_static_works_CXX=no
17187    save_LDFLAGS="$LDFLAGS"
17188    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17189    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17190    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17191      # The linker can only warn and ignore the option if not recognized
17192      # So say no if there are warnings
17193      if test -s conftest.err; then
17194        # Append any errors to the config.log.
17195        cat conftest.err 1>&5
17196        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17197        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17198        if diff conftest.exp conftest.er2 >/dev/null; then
17199          lt_cv_prog_compiler_static_works_CXX=yes
17200        fi
17201      else
17202        lt_cv_prog_compiler_static_works_CXX=yes
17203      fi
17204    fi
17205    $RM -r conftest*
17206    LDFLAGS="$save_LDFLAGS"
17207
17208 fi
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17210 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17211
17212 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17213     :
17214 else
17215     lt_prog_compiler_static_CXX=
17216 fi
17217
17218
17219
17220
17221     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17222 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17223 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17224   $as_echo_n "(cached) " >&6
17225 else
17226   lt_cv_prog_compiler_c_o_CXX=no
17227    $RM -r conftest 2>/dev/null
17228    mkdir conftest
17229    cd conftest
17230    mkdir out
17231    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17232
17233    lt_compiler_flag="-o out/conftest2.$ac_objext"
17234    # Insert the option either (1) after the last *FLAGS variable, or
17235    # (2) before a word containing "conftest.", or (3) at the end.
17236    # Note that $ac_compile itself does not contain backslashes and begins
17237    # with a dollar sign (not a hyphen), so the echo should work correctly.
17238    lt_compile=`echo "$ac_compile" | $SED \
17239    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17240    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17241    -e 's:$: $lt_compiler_flag:'`
17242    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17243    (eval "$lt_compile" 2>out/conftest.err)
17244    ac_status=$?
17245    cat out/conftest.err >&5
17246    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17248    then
17249      # The compiler can only warn and ignore the option if not recognized
17250      # So say no if there are warnings
17251      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17252      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17253      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17254        lt_cv_prog_compiler_c_o_CXX=yes
17255      fi
17256    fi
17257    chmod u+w . 2>&5
17258    $RM conftest*
17259    # SGI C++ compiler will create directory out/ii_files/ for
17260    # template instantiation
17261    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17262    $RM out/* && rmdir out
17263    cd ..
17264    $RM -r conftest
17265    $RM conftest*
17266
17267 fi
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17269 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17270
17271
17272
17273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17274 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17275 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17276   $as_echo_n "(cached) " >&6
17277 else
17278   lt_cv_prog_compiler_c_o_CXX=no
17279    $RM -r conftest 2>/dev/null
17280    mkdir conftest
17281    cd conftest
17282    mkdir out
17283    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17284
17285    lt_compiler_flag="-o out/conftest2.$ac_objext"
17286    # Insert the option either (1) after the last *FLAGS variable, or
17287    # (2) before a word containing "conftest.", or (3) at the end.
17288    # Note that $ac_compile itself does not contain backslashes and begins
17289    # with a dollar sign (not a hyphen), so the echo should work correctly.
17290    lt_compile=`echo "$ac_compile" | $SED \
17291    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17292    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17293    -e 's:$: $lt_compiler_flag:'`
17294    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17295    (eval "$lt_compile" 2>out/conftest.err)
17296    ac_status=$?
17297    cat out/conftest.err >&5
17298    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17300    then
17301      # The compiler can only warn and ignore the option if not recognized
17302      # So say no if there are warnings
17303      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17304      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17305      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17306        lt_cv_prog_compiler_c_o_CXX=yes
17307      fi
17308    fi
17309    chmod u+w . 2>&5
17310    $RM conftest*
17311    # SGI C++ compiler will create directory out/ii_files/ for
17312    # template instantiation
17313    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17314    $RM out/* && rmdir out
17315    cd ..
17316    $RM -r conftest
17317    $RM conftest*
17318
17319 fi
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17321 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17322
17323
17324
17325
17326 hard_links="nottested"
17327 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17328   # do not overwrite the value of need_locks provided by the user
17329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17330 $as_echo_n "checking if we can lock with hard links... " >&6; }
17331   hard_links=yes
17332   $RM conftest*
17333   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17334   touch conftest.a
17335   ln conftest.a conftest.b 2>&5 || hard_links=no
17336   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17338 $as_echo "$hard_links" >&6; }
17339   if test "$hard_links" = no; then
17340     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17341 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17342     need_locks=warn
17343   fi
17344 else
17345   need_locks=no
17346 fi
17347
17348
17349
17350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17351 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17352
17353   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17354   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17355   case $host_os in
17356   aix[4-9]*)
17357     # If we're using GNU nm, then we don't want the "-C" option.
17358     # -C means demangle to AIX nm, but means don't demangle with GNU nm
17359     # Also, AIX nm treats weak defined symbols like other global defined
17360     # symbols, whereas GNU nm marks them as "W".
17361     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17362       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17363     else
17364       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17365     fi
17366     ;;
17367   pw32*)
17368     export_symbols_cmds_CXX="$ltdll_cmds"
17369     ;;
17370   cygwin* | mingw* | cegcc*)
17371     case $cc_basename in
17372     cl*) ;;
17373     *)
17374       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17375       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17376       ;;
17377     esac
17378     ;;
17379   *)
17380     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17381     ;;
17382   esac
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17385 $as_echo "$ld_shlibs_CXX" >&6; }
17386 test "$ld_shlibs_CXX" = no && can_build_shared=no
17387
17388 with_gnu_ld_CXX=$with_gnu_ld
17389
17390
17391
17392
17393
17394
17395 #
17396 # Do we need to explicitly link libc?
17397 #
17398 case "x$archive_cmds_need_lc_CXX" in
17399 x|xyes)
17400   # Assume -lc should be added
17401   archive_cmds_need_lc_CXX=yes
17402
17403   if test "$enable_shared" = yes && test "$GCC" = yes; then
17404     case $archive_cmds_CXX in
17405     *'~'*)
17406       # FIXME: we may have to deal with multi-command sequences.
17407       ;;
17408     '$CC '*)
17409       # Test whether the compiler implicitly links with -lc since on some
17410       # systems, -lgcc has to come before -lc. If gcc already passes -lc
17411       # to ld, don't add -lc before -lgcc.
17412       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17413 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17414 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17415   $as_echo_n "(cached) " >&6
17416 else
17417   $RM conftest*
17418         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17419
17420         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17421   (eval $ac_compile) 2>&5
17422   ac_status=$?
17423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17424   test $ac_status = 0; } 2>conftest.err; then
17425           soname=conftest
17426           lib=conftest
17427           libobjs=conftest.$ac_objext
17428           deplibs=
17429           wl=$lt_prog_compiler_wl_CXX
17430           pic_flag=$lt_prog_compiler_pic_CXX
17431           compiler_flags=-v
17432           linker_flags=-v
17433           verstring=
17434           output_objdir=.
17435           libname=conftest
17436           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17437           allow_undefined_flag_CXX=
17438           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17439   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17440   ac_status=$?
17441   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17442   test $ac_status = 0; }
17443           then
17444             lt_cv_archive_cmds_need_lc_CXX=no
17445           else
17446             lt_cv_archive_cmds_need_lc_CXX=yes
17447           fi
17448           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17449         else
17450           cat conftest.err 1>&5
17451         fi
17452         $RM conftest*
17453
17454 fi
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17456 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17457       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17458       ;;
17459     esac
17460   fi
17461   ;;
17462 esac
17463
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510
17511
17512
17513
17514
17515
17516
17517
17518
17519
17520
17521
17522
17523
17524
17525
17526
17527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17528 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17529
17530 library_names_spec=
17531 libname_spec='lib$name'
17532 soname_spec=
17533 shrext_cmds=".so"
17534 postinstall_cmds=
17535 postuninstall_cmds=
17536 finish_cmds=
17537 finish_eval=
17538 shlibpath_var=
17539 shlibpath_overrides_runpath=unknown
17540 version_type=none
17541 dynamic_linker="$host_os ld.so"
17542 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17543 need_lib_prefix=unknown
17544 hardcode_into_libs=no
17545
17546 # when you set need_version to no, make sure it does not cause -set_version
17547 # flags to be left without arguments
17548 need_version=unknown
17549
17550 case $host_os in
17551 aix3*)
17552   version_type=linux
17553   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17554   shlibpath_var=LIBPATH
17555
17556   # AIX 3 has no versioning support, so we append a major version to the name.
17557   soname_spec='${libname}${release}${shared_ext}$major'
17558   ;;
17559
17560 aix[4-9]*)
17561   version_type=linux
17562   need_lib_prefix=no
17563   need_version=no
17564   hardcode_into_libs=yes
17565   if test "$host_cpu" = ia64; then
17566     # AIX 5 supports IA64
17567     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17568     shlibpath_var=LD_LIBRARY_PATH
17569   else
17570     # With GCC up to 2.95.x, collect2 would create an import file
17571     # for dependence libraries.  The import file would start with
17572     # the line `#! .'.  This would cause the generated library to
17573     # depend on `.', always an invalid library.  This was fixed in
17574     # development snapshots of GCC prior to 3.0.
17575     case $host_os in
17576       aix4 | aix4.[01] | aix4.[01].*)
17577       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17578            echo ' yes '
17579            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17580         :
17581       else
17582         can_build_shared=no
17583       fi
17584       ;;
17585     esac
17586     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17587     # soname into executable. Probably we can add versioning support to
17588     # collect2, so additional links can be useful in future.
17589     if test "$aix_use_runtimelinking" = yes; then
17590       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17591       # instead of lib<name>.a to let people know that these are not
17592       # typical AIX shared libraries.
17593       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17594     else
17595       # We preserve .a as extension for shared libraries through AIX4.2
17596       # and later when we are not doing run time linking.
17597       library_names_spec='${libname}${release}.a $libname.a'
17598       soname_spec='${libname}${release}${shared_ext}$major'
17599     fi
17600     shlibpath_var=LIBPATH
17601   fi
17602   ;;
17603
17604 amigaos*)
17605   case $host_cpu in
17606   powerpc)
17607     # Since July 2007 AmigaOS4 officially supports .so libraries.
17608     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17609     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610     ;;
17611   m68k)
17612     library_names_spec='$libname.ixlibrary $libname.a'
17613     # Create ${libname}_ixlibrary.a entries in /sys/libs.
17614     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'
17615     ;;
17616   esac
17617   ;;
17618
17619 beos*)
17620   library_names_spec='${libname}${shared_ext}'
17621   dynamic_linker="$host_os ld.so"
17622   shlibpath_var=LIBRARY_PATH
17623   ;;
17624
17625 bsdi[45]*)
17626   version_type=linux
17627   need_version=no
17628   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17629   soname_spec='${libname}${release}${shared_ext}$major'
17630   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17631   shlibpath_var=LD_LIBRARY_PATH
17632   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17633   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17634   # the default ld.so.conf also contains /usr/contrib/lib and
17635   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17636   # libtool to hard-code these into programs
17637   ;;
17638
17639 cygwin* | mingw* | pw32* | cegcc*)
17640   version_type=windows
17641   shrext_cmds=".dll"
17642   need_version=no
17643   need_lib_prefix=no
17644
17645   case $GCC,$cc_basename in
17646   yes,*)
17647     # gcc
17648     library_names_spec='$libname.dll.a'
17649     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17650     postinstall_cmds='base_file=`basename \${file}`~
17651       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17652       dldir=$destdir/`dirname \$dlpath`~
17653       test -d \$dldir || mkdir -p \$dldir~
17654       $install_prog $dir/$dlname \$dldir/$dlname~
17655       chmod a+x \$dldir/$dlname~
17656       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17657         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17658       fi'
17659     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17660       dlpath=$dir/\$dldll~
17661        $RM \$dlpath'
17662     shlibpath_overrides_runpath=yes
17663
17664     case $host_os in
17665     cygwin*)
17666       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17667       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17668
17669       ;;
17670     mingw* | cegcc*)
17671       # MinGW DLLs use traditional 'lib' prefix
17672       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17673       ;;
17674     pw32*)
17675       # pw32 DLLs use 'pw' prefix rather than 'lib'
17676       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17677       ;;
17678     esac
17679     dynamic_linker='Win32 ld.exe'
17680     ;;
17681
17682   *,cl*)
17683     # Native MSVC
17684     libname_spec='$name'
17685     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17686     library_names_spec='${libname}.dll.lib'
17687
17688     case $build_os in
17689     mingw*)
17690       sys_lib_search_path_spec=
17691       lt_save_ifs=$IFS
17692       IFS=';'
17693       for lt_path in $LIB
17694       do
17695         IFS=$lt_save_ifs
17696         # Let DOS variable expansion print the short 8.3 style file name.
17697         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
17698         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
17699       done
17700       IFS=$lt_save_ifs
17701       # Convert to MSYS style.
17702       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
17703       ;;
17704     cygwin*)
17705       # Convert to unix form, then to dos form, then back to unix form
17706       # but this time dos style (no spaces!) so that the unix form looks
17707       # like /cygdrive/c/PROGRA~1:/cygdr...
17708       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
17709       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
17710       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17711       ;;
17712     *)
17713       sys_lib_search_path_spec="$LIB"
17714       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17715         # It is most probably a Windows format PATH.
17716         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17717       else
17718         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17719       fi
17720       # FIXME: find the short name or the path components, as spaces are
17721       # common. (e.g. "Program Files" -> "PROGRA~1")
17722       ;;
17723     esac
17724
17725     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17726     postinstall_cmds='base_file=`basename \${file}`~
17727       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17728       dldir=$destdir/`dirname \$dlpath`~
17729       test -d \$dldir || mkdir -p \$dldir~
17730       $install_prog $dir/$dlname \$dldir/$dlname'
17731     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17732       dlpath=$dir/\$dldll~
17733        $RM \$dlpath'
17734     shlibpath_overrides_runpath=yes
17735     dynamic_linker='Win32 link.exe'
17736     ;;
17737
17738   *)
17739     # Assume MSVC wrapper
17740     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17741     dynamic_linker='Win32 ld.exe'
17742     ;;
17743   esac
17744   # FIXME: first we should search . and the directory the executable is in
17745   shlibpath_var=PATH
17746   ;;
17747
17748 darwin* | rhapsody*)
17749   dynamic_linker="$host_os dyld"
17750   version_type=darwin
17751   need_lib_prefix=no
17752   need_version=no
17753   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17754   soname_spec='${libname}${release}${major}$shared_ext'
17755   shlibpath_overrides_runpath=yes
17756   shlibpath_var=DYLD_LIBRARY_PATH
17757   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17758
17759   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17760   ;;
17761
17762 dgux*)
17763   version_type=linux
17764   need_lib_prefix=no
17765   need_version=no
17766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17767   soname_spec='${libname}${release}${shared_ext}$major'
17768   shlibpath_var=LD_LIBRARY_PATH
17769   ;;
17770
17771 freebsd1*)
17772   dynamic_linker=no
17773   ;;
17774
17775 freebsd* | dragonfly*)
17776   # DragonFly does not have aout.  When/if they implement a new
17777   # versioning mechanism, adjust this.
17778   if test -x /usr/bin/objformat; then
17779     objformat=`/usr/bin/objformat`
17780   else
17781     case $host_os in
17782     freebsd[123]*) objformat=aout ;;
17783     *) objformat=elf ;;
17784     esac
17785   fi
17786   version_type=freebsd-$objformat
17787   case $version_type in
17788     freebsd-elf*)
17789       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17790       need_version=no
17791       need_lib_prefix=no
17792       ;;
17793     freebsd-*)
17794       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17795       need_version=yes
17796       ;;
17797   esac
17798   shlibpath_var=LD_LIBRARY_PATH
17799   case $host_os in
17800   freebsd2*)
17801     shlibpath_overrides_runpath=yes
17802     ;;
17803   freebsd3.[01]* | freebsdelf3.[01]*)
17804     shlibpath_overrides_runpath=yes
17805     hardcode_into_libs=yes
17806     ;;
17807   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17808   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17809     shlibpath_overrides_runpath=no
17810     hardcode_into_libs=yes
17811     ;;
17812   *) # from 4.6 on, and DragonFly
17813     shlibpath_overrides_runpath=yes
17814     hardcode_into_libs=yes
17815     ;;
17816   esac
17817   ;;
17818
17819 gnu*)
17820   version_type=linux
17821   need_lib_prefix=no
17822   need_version=no
17823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17824   soname_spec='${libname}${release}${shared_ext}$major'
17825   shlibpath_var=LD_LIBRARY_PATH
17826   hardcode_into_libs=yes
17827   ;;
17828
17829 haiku*)
17830   version_type=linux
17831   need_lib_prefix=no
17832   need_version=no
17833   dynamic_linker="$host_os runtime_loader"
17834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17835   soname_spec='${libname}${release}${shared_ext}$major'
17836   shlibpath_var=LIBRARY_PATH
17837   shlibpath_overrides_runpath=yes
17838   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17839   hardcode_into_libs=yes
17840   ;;
17841
17842 hpux9* | hpux10* | hpux11*)
17843   # Give a soname corresponding to the major version so that dld.sl refuses to
17844   # link against other versions.
17845   version_type=sunos
17846   need_lib_prefix=no
17847   need_version=no
17848   case $host_cpu in
17849   ia64*)
17850     shrext_cmds='.so'
17851     hardcode_into_libs=yes
17852     dynamic_linker="$host_os dld.so"
17853     shlibpath_var=LD_LIBRARY_PATH
17854     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17855     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17856     soname_spec='${libname}${release}${shared_ext}$major'
17857     if test "X$HPUX_IA64_MODE" = X32; then
17858       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17859     else
17860       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17861     fi
17862     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17863     ;;
17864   hppa*64*)
17865     shrext_cmds='.sl'
17866     hardcode_into_libs=yes
17867     dynamic_linker="$host_os dld.sl"
17868     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17871     soname_spec='${libname}${release}${shared_ext}$major'
17872     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17873     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17874     ;;
17875   *)
17876     shrext_cmds='.sl'
17877     dynamic_linker="$host_os dld.sl"
17878     shlibpath_var=SHLIB_PATH
17879     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17880     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17881     soname_spec='${libname}${release}${shared_ext}$major'
17882     ;;
17883   esac
17884   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17885   postinstall_cmds='chmod 555 $lib'
17886   # or fails outright, so override atomically:
17887   install_override_mode=555
17888   ;;
17889
17890 interix[3-9]*)
17891   version_type=linux
17892   need_lib_prefix=no
17893   need_version=no
17894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17895   soname_spec='${libname}${release}${shared_ext}$major'
17896   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17897   shlibpath_var=LD_LIBRARY_PATH
17898   shlibpath_overrides_runpath=no
17899   hardcode_into_libs=yes
17900   ;;
17901
17902 irix5* | irix6* | nonstopux*)
17903   case $host_os in
17904     nonstopux*) version_type=nonstopux ;;
17905     *)
17906         if test "$lt_cv_prog_gnu_ld" = yes; then
17907                 version_type=linux
17908         else
17909                 version_type=irix
17910         fi ;;
17911   esac
17912   need_lib_prefix=no
17913   need_version=no
17914   soname_spec='${libname}${release}${shared_ext}$major'
17915   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17916   case $host_os in
17917   irix5* | nonstopux*)
17918     libsuff= shlibsuff=
17919     ;;
17920   *)
17921     case $LD in # libtool.m4 will add one of these switches to LD
17922     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17923       libsuff= shlibsuff= libmagic=32-bit;;
17924     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17925       libsuff=32 shlibsuff=N32 libmagic=N32;;
17926     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17927       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17928     *) libsuff= shlibsuff= libmagic=never-match;;
17929     esac
17930     ;;
17931   esac
17932   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17933   shlibpath_overrides_runpath=no
17934   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17935   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17936   hardcode_into_libs=yes
17937   ;;
17938
17939 # No shared lib support for Linux oldld, aout, or coff.
17940 linux*oldld* | linux*aout* | linux*coff*)
17941   dynamic_linker=no
17942   ;;
17943
17944 # This must be Linux ELF.
17945 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17946   version_type=linux
17947   need_lib_prefix=no
17948   need_version=no
17949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17950   soname_spec='${libname}${release}${shared_ext}$major'
17951   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17952   shlibpath_var=LD_LIBRARY_PATH
17953   shlibpath_overrides_runpath=no
17954
17955   # Some binutils ld are patched to set DT_RUNPATH
17956   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17957   $as_echo_n "(cached) " >&6
17958 else
17959   lt_cv_shlibpath_overrides_runpath=no
17960     save_LDFLAGS=$LDFLAGS
17961     save_libdir=$libdir
17962     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17963          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17964     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h.  */
17966
17967 int
17968 main ()
17969 {
17970
17971   ;
17972   return 0;
17973 }
17974 _ACEOF
17975 if ac_fn_cxx_try_link "$LINENO"; then :
17976   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17977   lt_cv_shlibpath_overrides_runpath=yes
17978 fi
17979 fi
17980 rm -f core conftest.err conftest.$ac_objext \
17981     conftest$ac_exeext conftest.$ac_ext
17982     LDFLAGS=$save_LDFLAGS
17983     libdir=$save_libdir
17984
17985 fi
17986
17987   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17988
17989   # This implies no fast_install, which is unacceptable.
17990   # Some rework will be needed to allow for fast_install
17991   # before this can be enabled.
17992   hardcode_into_libs=yes
17993
17994   # Add ABI-specific directories to the system library path.
17995   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17996
17997   # Append ld.so.conf contents to the search path
17998   if test -f /etc/ld.so.conf; then
17999     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' ' '`
18000     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18001
18002   fi
18003
18004   # We used to test for /lib/ld.so.1 and disable shared libraries on
18005   # powerpc, because MkLinux only supported shared libraries with the
18006   # GNU dynamic linker.  Since this was broken with cross compilers,
18007   # most powerpc-linux boxes support dynamic linking these days and
18008   # people can always --disable-shared, the test was removed, and we
18009   # assume the GNU/Linux dynamic linker is in use.
18010   dynamic_linker='GNU/Linux ld.so'
18011   ;;
18012
18013 netbsd*)
18014   version_type=sunos
18015   need_lib_prefix=no
18016   need_version=no
18017   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18019     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18020     dynamic_linker='NetBSD (a.out) ld.so'
18021   else
18022     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18023     soname_spec='${libname}${release}${shared_ext}$major'
18024     dynamic_linker='NetBSD ld.elf_so'
18025   fi
18026   shlibpath_var=LD_LIBRARY_PATH
18027   shlibpath_overrides_runpath=yes
18028   hardcode_into_libs=yes
18029   ;;
18030
18031 newsos6)
18032   version_type=linux
18033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034   shlibpath_var=LD_LIBRARY_PATH
18035   shlibpath_overrides_runpath=yes
18036   ;;
18037
18038 *nto* | *qnx*)
18039   version_type=qnx
18040   need_lib_prefix=no
18041   need_version=no
18042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18043   soname_spec='${libname}${release}${shared_ext}$major'
18044   shlibpath_var=LD_LIBRARY_PATH
18045   shlibpath_overrides_runpath=no
18046   hardcode_into_libs=yes
18047   dynamic_linker='ldqnx.so'
18048   ;;
18049
18050 openbsd*)
18051   version_type=sunos
18052   sys_lib_dlsearch_path_spec="/usr/lib"
18053   need_lib_prefix=no
18054   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18055   case $host_os in
18056     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
18057     *)                          need_version=no  ;;
18058   esac
18059   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18060   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18061   shlibpath_var=LD_LIBRARY_PATH
18062   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18063     case $host_os in
18064       openbsd2.[89] | openbsd2.[89].*)
18065         shlibpath_overrides_runpath=no
18066         ;;
18067       *)
18068         shlibpath_overrides_runpath=yes
18069         ;;
18070       esac
18071   else
18072     shlibpath_overrides_runpath=yes
18073   fi
18074   ;;
18075
18076 os2*)
18077   libname_spec='$name'
18078   shrext_cmds=".dll"
18079   need_lib_prefix=no
18080   library_names_spec='$libname${shared_ext} $libname.a'
18081   dynamic_linker='OS/2 ld.exe'
18082   shlibpath_var=LIBPATH
18083   ;;
18084
18085 osf3* | osf4* | osf5*)
18086   version_type=osf
18087   need_lib_prefix=no
18088   need_version=no
18089   soname_spec='${libname}${release}${shared_ext}$major'
18090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091   shlibpath_var=LD_LIBRARY_PATH
18092   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18093   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18094   ;;
18095
18096 rdos*)
18097   dynamic_linker=no
18098   ;;
18099
18100 solaris*)
18101   version_type=linux
18102   need_lib_prefix=no
18103   need_version=no
18104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18105   soname_spec='${libname}${release}${shared_ext}$major'
18106   shlibpath_var=LD_LIBRARY_PATH
18107   shlibpath_overrides_runpath=yes
18108   hardcode_into_libs=yes
18109   # ldd complains unless libraries are executable
18110   postinstall_cmds='chmod +x $lib'
18111   ;;
18112
18113 sunos4*)
18114   version_type=sunos
18115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18116   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18117   shlibpath_var=LD_LIBRARY_PATH
18118   shlibpath_overrides_runpath=yes
18119   if test "$with_gnu_ld" = yes; then
18120     need_lib_prefix=no
18121   fi
18122   need_version=yes
18123   ;;
18124
18125 sysv4 | sysv4.3*)
18126   version_type=linux
18127   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18128   soname_spec='${libname}${release}${shared_ext}$major'
18129   shlibpath_var=LD_LIBRARY_PATH
18130   case $host_vendor in
18131     sni)
18132       shlibpath_overrides_runpath=no
18133       need_lib_prefix=no
18134       runpath_var=LD_RUN_PATH
18135       ;;
18136     siemens)
18137       need_lib_prefix=no
18138       ;;
18139     motorola)
18140       need_lib_prefix=no
18141       need_version=no
18142       shlibpath_overrides_runpath=no
18143       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18144       ;;
18145   esac
18146   ;;
18147
18148 sysv4*MP*)
18149   if test -d /usr/nec ;then
18150     version_type=linux
18151     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18152     soname_spec='$libname${shared_ext}.$major'
18153     shlibpath_var=LD_LIBRARY_PATH
18154   fi
18155   ;;
18156
18157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18158   version_type=freebsd-elf
18159   need_lib_prefix=no
18160   need_version=no
18161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18162   soname_spec='${libname}${release}${shared_ext}$major'
18163   shlibpath_var=LD_LIBRARY_PATH
18164   shlibpath_overrides_runpath=yes
18165   hardcode_into_libs=yes
18166   if test "$with_gnu_ld" = yes; then
18167     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18168   else
18169     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18170     case $host_os in
18171       sco3.2v5*)
18172         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18173         ;;
18174     esac
18175   fi
18176   sys_lib_dlsearch_path_spec='/usr/lib'
18177   ;;
18178
18179 tpf*)
18180   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18181   version_type=linux
18182   need_lib_prefix=no
18183   need_version=no
18184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185   shlibpath_var=LD_LIBRARY_PATH
18186   shlibpath_overrides_runpath=no
18187   hardcode_into_libs=yes
18188   ;;
18189
18190 uts4*)
18191   version_type=linux
18192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18193   soname_spec='${libname}${release}${shared_ext}$major'
18194   shlibpath_var=LD_LIBRARY_PATH
18195   ;;
18196
18197 *)
18198   dynamic_linker=no
18199   ;;
18200 esac
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18202 $as_echo "$dynamic_linker" >&6; }
18203 test "$dynamic_linker" = no && can_build_shared=no
18204
18205 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18206 if test "$GCC" = yes; then
18207   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18208 fi
18209
18210 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18211   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18212 fi
18213 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18214   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18215 fi
18216
18217
18218
18219
18220
18221
18222
18223
18224
18225
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18255 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18256 hardcode_action_CXX=
18257 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18258    test -n "$runpath_var_CXX" ||
18259    test "X$hardcode_automatic_CXX" = "Xyes" ; then
18260
18261   # We can hardcode non-existent directories.
18262   if test "$hardcode_direct_CXX" != no &&
18263      # If the only mechanism to avoid hardcoding is shlibpath_var, we
18264      # have to relink, otherwise we might link with an installed library
18265      # when we should be linking with a yet-to-be-installed one
18266      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18267      test "$hardcode_minus_L_CXX" != no; then
18268     # Linking always hardcodes the temporary library directory.
18269     hardcode_action_CXX=relink
18270   else
18271     # We can link without hardcoding, and we can hardcode nonexisting dirs.
18272     hardcode_action_CXX=immediate
18273   fi
18274 else
18275   # We cannot hardcode anything, or else we can only hardcode existing
18276   # directories.
18277   hardcode_action_CXX=unsupported
18278 fi
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18280 $as_echo "$hardcode_action_CXX" >&6; }
18281
18282 if test "$hardcode_action_CXX" = relink ||
18283    test "$inherit_rpath_CXX" = yes; then
18284   # Fast installation is not supported
18285   enable_fast_install=no
18286 elif test "$shlibpath_overrides_runpath" = yes ||
18287      test "$enable_shared" = no; then
18288   # Fast installation is not necessary
18289   enable_fast_install=needless
18290 fi
18291
18292
18293
18294
18295
18296
18297
18298   fi # test -n "$compiler"
18299
18300   CC=$lt_save_CC
18301   CFLAGS=$lt_save_CFLAGS
18302   LDCXX=$LD
18303   LD=$lt_save_LD
18304   GCC=$lt_save_GCC
18305   with_gnu_ld=$lt_save_with_gnu_ld
18306   lt_cv_path_LDCXX=$lt_cv_path_LD
18307   lt_cv_path_LD=$lt_save_path_LD
18308   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18309   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18310 fi # test "$_lt_caught_CXX_error" != yes
18311
18312 ac_ext=c
18313 ac_cpp='$CPP $CPPFLAGS'
18314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330         ac_config_commands="$ac_config_commands libtool"
18331
18332
18333
18334
18335 # Only expand once:
18336
18337
18338 : ${CONFIG_LT=./config.lt}
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
18340 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
18341 as_write_fail=0
18342 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
18343 #! $SHELL
18344 # Generated by $as_me.
18345 # Run this file to recreate a libtool stub with the current configuration.
18346 SHELL=\${CONFIG_SHELL-$SHELL}
18347 export SHELL
18348 _ASEOF
18349 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
18350 ## -------------------- ##
18351 ## M4sh Initialization. ##
18352 ## -------------------- ##
18353
18354 # Be more Bourne compatible
18355 DUALCASE=1; export DUALCASE # for MKS sh
18356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18357   emulate sh
18358   NULLCMD=:
18359   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18360   # is contrary to our usage.  Disable this feature.
18361   alias -g '${1+"$@"}'='"$@"'
18362   setopt NO_GLOB_SUBST
18363 else
18364   case `(set -o) 2>/dev/null` in #(
18365   *posix*) :
18366     set -o posix ;; #(
18367   *) :
18368      ;;
18369 esac
18370 fi
18371
18372
18373 as_nl='
18374 '
18375 export as_nl
18376 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18377 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18378 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18379 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18380 # Prefer a ksh shell builtin over an external printf program on Solaris,
18381 # but without wasting forks for bash or zsh.
18382 if test -z "$BASH_VERSION$ZSH_VERSION" \
18383     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18384   as_echo='print -r --'
18385   as_echo_n='print -rn --'
18386 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18387   as_echo='printf %s\n'
18388   as_echo_n='printf %s'
18389 else
18390   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18391     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18392     as_echo_n='/usr/ucb/echo -n'
18393   else
18394     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18395     as_echo_n_body='eval
18396       arg=$1;
18397       case $arg in #(
18398       *"$as_nl"*)
18399         expr "X$arg" : "X\\(.*\\)$as_nl";
18400         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18401       esac;
18402       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18403     '
18404     export as_echo_n_body
18405     as_echo_n='sh -c $as_echo_n_body as_echo'
18406   fi
18407   export as_echo_body
18408   as_echo='sh -c $as_echo_body as_echo'
18409 fi
18410
18411 # The user is always right.
18412 if test "${PATH_SEPARATOR+set}" != set; then
18413   PATH_SEPARATOR=:
18414   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18415     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18416       PATH_SEPARATOR=';'
18417   }
18418 fi
18419
18420
18421 # IFS
18422 # We need space, tab and new line, in precisely that order.  Quoting is
18423 # there to prevent editors from complaining about space-tab.
18424 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18425 # splitting by setting IFS to empty value.)
18426 IFS=" ""        $as_nl"
18427
18428 # Find who we are.  Look in the path if we contain no directory separator.
18429 as_myself=
18430 case $0 in #((
18431   *[\\/]* ) as_myself=$0 ;;
18432   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18433 for as_dir in $PATH
18434 do
18435   IFS=$as_save_IFS
18436   test -z "$as_dir" && as_dir=.
18437     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18438   done
18439 IFS=$as_save_IFS
18440
18441      ;;
18442 esac
18443 # We did not find ourselves, most probably we were run as `sh COMMAND'
18444 # in which case we are not to be found in the path.
18445 if test "x$as_myself" = x; then
18446   as_myself=$0
18447 fi
18448 if test ! -f "$as_myself"; then
18449   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18450   exit 1
18451 fi
18452
18453 # Unset variables that we do not need and which cause bugs (e.g. in
18454 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18455 # suppresses any "Segmentation fault" message there.  '((' could
18456 # trigger a bug in pdksh 5.2.14.
18457 for as_var in BASH_ENV ENV MAIL MAILPATH
18458 do eval test x\${$as_var+set} = xset \
18459   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18460 done
18461 PS1='$ '
18462 PS2='> '
18463 PS4='+ '
18464
18465 # NLS nuisances.
18466 LC_ALL=C
18467 export LC_ALL
18468 LANGUAGE=C
18469 export LANGUAGE
18470
18471 # CDPATH.
18472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18473
18474
18475 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18476 # ----------------------------------------
18477 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18478 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18479 # script with STATUS, using 1 if that was 0.
18480 as_fn_error ()
18481 {
18482   as_status=$1; test $as_status -eq 0 && as_status=1
18483   if test "$4"; then
18484     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18485     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18486   fi
18487   $as_echo "$as_me: error: $2" >&2
18488   as_fn_exit $as_status
18489 } # as_fn_error
18490
18491
18492 # as_fn_set_status STATUS
18493 # -----------------------
18494 # Set $? to STATUS, without forking.
18495 as_fn_set_status ()
18496 {
18497   return $1
18498 } # as_fn_set_status
18499
18500 # as_fn_exit STATUS
18501 # -----------------
18502 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18503 as_fn_exit ()
18504 {
18505   set +e
18506   as_fn_set_status $1
18507   exit $1
18508 } # as_fn_exit
18509
18510 # as_fn_unset VAR
18511 # ---------------
18512 # Portably unset VAR.
18513 as_fn_unset ()
18514 {
18515   { eval $1=; unset $1;}
18516 }
18517 as_unset=as_fn_unset
18518 # as_fn_append VAR VALUE
18519 # ----------------------
18520 # Append the text in VALUE to the end of the definition contained in VAR. Take
18521 # advantage of any shell optimizations that allow amortized linear growth over
18522 # repeated appends, instead of the typical quadratic growth present in naive
18523 # implementations.
18524 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18525   eval 'as_fn_append ()
18526   {
18527     eval $1+=\$2
18528   }'
18529 else
18530   as_fn_append ()
18531   {
18532     eval $1=\$$1\$2
18533   }
18534 fi # as_fn_append
18535
18536 # as_fn_arith ARG...
18537 # ------------------
18538 # Perform arithmetic evaluation on the ARGs, and store the result in the
18539 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18540 # must be portable across $(()) and expr.
18541 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18542   eval 'as_fn_arith ()
18543   {
18544     as_val=$(( $* ))
18545   }'
18546 else
18547   as_fn_arith ()
18548   {
18549     as_val=`expr "$@" || test $? -eq 1`
18550   }
18551 fi # as_fn_arith
18552
18553
18554 if expr a : '\(a\)' >/dev/null 2>&1 &&
18555    test "X`expr 00001 : '.*\(...\)'`" = X001; then
18556   as_expr=expr
18557 else
18558   as_expr=false
18559 fi
18560
18561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18562   as_basename=basename
18563 else
18564   as_basename=false
18565 fi
18566
18567 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18568   as_dirname=dirname
18569 else
18570   as_dirname=false
18571 fi
18572
18573 as_me=`$as_basename -- "$0" ||
18574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18575          X"$0" : 'X\(//\)$' \| \
18576          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18577 $as_echo X/"$0" |
18578     sed '/^.*\/\([^/][^/]*\)\/*$/{
18579             s//\1/
18580             q
18581           }
18582           /^X\/\(\/\/\)$/{
18583             s//\1/
18584             q
18585           }
18586           /^X\/\(\/\).*/{
18587             s//\1/
18588             q
18589           }
18590           s/.*/./; q'`
18591
18592 # Avoid depending upon Character Ranges.
18593 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18594 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18595 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18596 as_cr_digits='0123456789'
18597 as_cr_alnum=$as_cr_Letters$as_cr_digits
18598
18599 ECHO_C= ECHO_N= ECHO_T=
18600 case `echo -n x` in #(((((
18601 -n*)
18602   case `echo 'xy\c'` in
18603   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
18604   xy)  ECHO_C='\c';;
18605   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18606        ECHO_T=' ';;
18607   esac;;
18608 *)
18609   ECHO_N='-n';;
18610 esac
18611
18612 rm -f conf$$ conf$$.exe conf$$.file
18613 if test -d conf$$.dir; then
18614   rm -f conf$$.dir/conf$$.file
18615 else
18616   rm -f conf$$.dir
18617   mkdir conf$$.dir 2>/dev/null
18618 fi
18619 if (echo >conf$$.file) 2>/dev/null; then
18620   if ln -s conf$$.file conf$$ 2>/dev/null; then
18621     as_ln_s='ln -s'
18622     # ... but there are two gotchas:
18623     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18624     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18625     # In both cases, we have to default to `cp -p'.
18626     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18627       as_ln_s='cp -p'
18628   elif ln conf$$.file conf$$ 2>/dev/null; then
18629     as_ln_s=ln
18630   else
18631     as_ln_s='cp -p'
18632   fi
18633 else
18634   as_ln_s='cp -p'
18635 fi
18636 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18637 rmdir conf$$.dir 2>/dev/null
18638
18639
18640 # as_fn_mkdir_p
18641 # -------------
18642 # Create "$as_dir" as a directory, including parents if necessary.
18643 as_fn_mkdir_p ()
18644 {
18645
18646   case $as_dir in #(
18647   -*) as_dir=./$as_dir;;
18648   esac
18649   test -d "$as_dir" || eval $as_mkdir_p || {
18650     as_dirs=
18651     while :; do
18652       case $as_dir in #(
18653       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18654       *) as_qdir=$as_dir;;
18655       esac
18656       as_dirs="'$as_qdir' $as_dirs"
18657       as_dir=`$as_dirname -- "$as_dir" ||
18658 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18659          X"$as_dir" : 'X\(//\)[^/]' \| \
18660          X"$as_dir" : 'X\(//\)$' \| \
18661          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18662 $as_echo X"$as_dir" |
18663     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18664             s//\1/
18665             q
18666           }
18667           /^X\(\/\/\)[^/].*/{
18668             s//\1/
18669             q
18670           }
18671           /^X\(\/\/\)$/{
18672             s//\1/
18673             q
18674           }
18675           /^X\(\/\).*/{
18676             s//\1/
18677             q
18678           }
18679           s/.*/./; q'`
18680       test -d "$as_dir" && break
18681     done
18682     test -z "$as_dirs" || eval "mkdir $as_dirs"
18683   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18684
18685
18686 } # as_fn_mkdir_p
18687 if mkdir -p . 2>/dev/null; then
18688   as_mkdir_p='mkdir -p "$as_dir"'
18689 else
18690   test -d ./-p && rmdir ./-p
18691   as_mkdir_p=false
18692 fi
18693
18694 if test -x / >/dev/null 2>&1; then
18695   as_test_x='test -x'
18696 else
18697   if ls -dL / >/dev/null 2>&1; then
18698     as_ls_L_option=L
18699   else
18700     as_ls_L_option=
18701   fi
18702   as_test_x='
18703     eval sh -c '\''
18704       if test -d "$1"; then
18705         test -d "$1/.";
18706       else
18707         case $1 in #(
18708         -*)set "./$1";;
18709         esac;
18710         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18711         ???[sx]*):;;*)false;;esac;fi
18712     '\'' sh
18713   '
18714 fi
18715 as_executable_p=$as_test_x
18716
18717 # Sed expression to map a string onto a valid CPP name.
18718 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18719
18720 # Sed expression to map a string onto a valid variable name.
18721 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18722
18723
18724 exec 6>&1
18725 ## --------------------------------- ##
18726 ## Main body of "$CONFIG_LT" script. ##
18727 ## --------------------------------- ##
18728 _ASEOF
18729 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
18730
18731 cat >>"$CONFIG_LT" <<\_LTEOF
18732 lt_cl_silent=false
18733 exec 5>>config.log
18734 {
18735   echo
18736   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18737 ## Running $as_me. ##
18738 _ASBOX
18739 } >&5
18740
18741 lt_cl_help="\
18742 \`$as_me' creates a local libtool stub from the current configuration,
18743 for use in further configure time tests before the real libtool is
18744 generated.
18745
18746 Usage: $0 [OPTIONS]
18747
18748   -h, --help      print this help, then exit
18749   -V, --version   print version number, then exit
18750   -q, --quiet     do not print progress messages
18751   -d, --debug     don't remove temporary files
18752
18753 Report bugs to <bug-libtool@gnu.org>."
18754
18755 lt_cl_version="\
18756 glib config.lt 2.32.4
18757 configured by $0, generated by GNU Autoconf 2.68.
18758
18759 Copyright (C) 2010 Free Software Foundation, Inc.
18760 This config.lt script is free software; the Free Software Foundation
18761 gives unlimited permision to copy, distribute and modify it."
18762
18763 while test $# != 0
18764 do
18765   case $1 in
18766     --version | --v* | -V )
18767       echo "$lt_cl_version"; exit 0 ;;
18768     --help | --h* | -h )
18769       echo "$lt_cl_help"; exit 0 ;;
18770     --debug | --d* | -d )
18771       debug=: ;;
18772     --quiet | --q* | --silent | --s* | -q )
18773       lt_cl_silent=: ;;
18774
18775     -*) as_fn_error $? "unrecognized option: $1
18776 Try \`$0 --help' for more information." "$LINENO" 5 ;;
18777
18778     *) as_fn_error $? "unrecognized argument: $1
18779 Try \`$0 --help' for more information." "$LINENO" 5 ;;
18780   esac
18781   shift
18782 done
18783
18784 if $lt_cl_silent; then
18785   exec 6>/dev/null
18786 fi
18787 _LTEOF
18788
18789 cat >>"$CONFIG_LT" <<_LTEOF
18790
18791
18792 # The HP-UX ksh and POSIX shell print the target directory to stdout
18793 # if CDPATH is set.
18794 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18795
18796 sed_quote_subst='$sed_quote_subst'
18797 double_quote_subst='$double_quote_subst'
18798 delay_variable_subst='$delay_variable_subst'
18799 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18800 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18801 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18802 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18803 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18804 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18805 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18806 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18807 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18808 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18809 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18810 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18811 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18812 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18813 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18814 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18815 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18816 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18817 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18818 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18819 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18820 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18821 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18822 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18823 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18824 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18825 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18826 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18827 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18828 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18829 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18830 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18831 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18832 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18833 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18834 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18835 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18836 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18837 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18838 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18839 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18840 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18841 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18842 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18843 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18844 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18845 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18846 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18847 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18848 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18849 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18850 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18851 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18852 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18853 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18854 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18855 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"`'
18856 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18857 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18858 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18859 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18860 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18861 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18862 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18863 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18864 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18865 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18866 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18867 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18868 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18869 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18870 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18871 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18872 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18873 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18874 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18875 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18876 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18877 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18878 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18879 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18880 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18881 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18882 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18883 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18884 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18885 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18886 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18887 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18888 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18889 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18890 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18899 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18900 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18901 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18902 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18903 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18904 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18923 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18924 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18925 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18926 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18927 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18928 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18929 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18930 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18931 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18932 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18933 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18934 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18935 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18936 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18937 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18938 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18939 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18940 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18941 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18942 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18943 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18944 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18945 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18946 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18947 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18948 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18949 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18950 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18951 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18952 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18953 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18954 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18955 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18956 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18957 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18958 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18959 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18960 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18961 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18962 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
18963 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18964 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18965 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18966 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18967 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18968 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18969 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18970 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18971 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18972 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18973 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18974 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18975 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18976 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18977 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18978 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18979 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18980 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18981 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18982 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18983 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18984 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18985
18986 LTCC='$LTCC'
18987 LTCFLAGS='$LTCFLAGS'
18988 compiler='$compiler_DEFAULT'
18989
18990 # A function that is used when there is no print builtin or printf.
18991 func_fallback_echo ()
18992 {
18993   eval 'cat <<_LTECHO_EOF
18994 \$1
18995 _LTECHO_EOF'
18996 }
18997
18998 # Quote evaled strings.
18999 for var in AS \
19000 DLLTOOL \
19001 OBJDUMP \
19002 SHELL \
19003 ECHO \
19004 SED \
19005 GREP \
19006 EGREP \
19007 FGREP \
19008 LD \
19009 NM \
19010 LN_S \
19011 lt_SP2NL \
19012 lt_NL2SP \
19013 reload_flag \
19014 deplibs_check_method \
19015 file_magic_cmd \
19016 file_magic_glob \
19017 want_nocaseglob \
19018 sharedlib_from_linklib_cmd \
19019 AR \
19020 AR_FLAGS \
19021 archiver_list_spec \
19022 STRIP \
19023 RANLIB \
19024 CC \
19025 CFLAGS \
19026 compiler \
19027 lt_cv_sys_global_symbol_pipe \
19028 lt_cv_sys_global_symbol_to_cdecl \
19029 lt_cv_sys_global_symbol_to_c_name_address \
19030 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
19031 nm_file_list_spec \
19032 lt_prog_compiler_no_builtin_flag \
19033 lt_prog_compiler_pic \
19034 lt_prog_compiler_wl \
19035 lt_prog_compiler_static \
19036 lt_cv_prog_compiler_c_o \
19037 need_locks \
19038 MANIFEST_TOOL \
19039 DSYMUTIL \
19040 NMEDIT \
19041 LIPO \
19042 OTOOL \
19043 OTOOL64 \
19044 shrext_cmds \
19045 export_dynamic_flag_spec \
19046 whole_archive_flag_spec \
19047 compiler_needs_object \
19048 with_gnu_ld \
19049 allow_undefined_flag \
19050 no_undefined_flag \
19051 hardcode_libdir_flag_spec \
19052 hardcode_libdir_flag_spec_ld \
19053 hardcode_libdir_separator \
19054 exclude_expsyms \
19055 include_expsyms \
19056 file_list_spec \
19057 variables_saved_for_relink \
19058 libname_spec \
19059 library_names_spec \
19060 soname_spec \
19061 install_override_mode \
19062 finish_eval \
19063 old_striplib \
19064 striplib \
19065 compiler_lib_search_dirs \
19066 predep_objects \
19067 postdep_objects \
19068 predeps \
19069 postdeps \
19070 compiler_lib_search_path \
19071 LD_CXX \
19072 reload_flag_CXX \
19073 compiler_CXX \
19074 lt_prog_compiler_no_builtin_flag_CXX \
19075 lt_prog_compiler_pic_CXX \
19076 lt_prog_compiler_wl_CXX \
19077 lt_prog_compiler_static_CXX \
19078 lt_cv_prog_compiler_c_o_CXX \
19079 export_dynamic_flag_spec_CXX \
19080 whole_archive_flag_spec_CXX \
19081 compiler_needs_object_CXX \
19082 with_gnu_ld_CXX \
19083 allow_undefined_flag_CXX \
19084 no_undefined_flag_CXX \
19085 hardcode_libdir_flag_spec_CXX \
19086 hardcode_libdir_flag_spec_ld_CXX \
19087 hardcode_libdir_separator_CXX \
19088 exclude_expsyms_CXX \
19089 include_expsyms_CXX \
19090 file_list_spec_CXX \
19091 compiler_lib_search_dirs_CXX \
19092 predep_objects_CXX \
19093 postdep_objects_CXX \
19094 predeps_CXX \
19095 postdeps_CXX \
19096 compiler_lib_search_path_CXX; do
19097     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19098     *[\\\\\\\`\\"\\\$]*)
19099       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
19100       ;;
19101     *)
19102       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19103       ;;
19104     esac
19105 done
19106
19107 # Double-quote double-evaled strings.
19108 for var in reload_cmds \
19109 old_postinstall_cmds \
19110 old_postuninstall_cmds \
19111 old_archive_cmds \
19112 extract_expsyms_cmds \
19113 old_archive_from_new_cmds \
19114 old_archive_from_expsyms_cmds \
19115 archive_cmds \
19116 archive_expsym_cmds \
19117 module_cmds \
19118 module_expsym_cmds \
19119 export_symbols_cmds \
19120 prelink_cmds \
19121 postlink_cmds \
19122 postinstall_cmds \
19123 postuninstall_cmds \
19124 finish_cmds \
19125 sys_lib_search_path_spec \
19126 sys_lib_dlsearch_path_spec \
19127 reload_cmds_CXX \
19128 old_archive_cmds_CXX \
19129 old_archive_from_new_cmds_CXX \
19130 old_archive_from_expsyms_cmds_CXX \
19131 archive_cmds_CXX \
19132 archive_expsym_cmds_CXX \
19133 module_cmds_CXX \
19134 module_expsym_cmds_CXX \
19135 export_symbols_cmds_CXX \
19136 prelink_cmds_CXX \
19137 postlink_cmds_CXX; do
19138     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
19139     *[\\\\\\\`\\"\\\$]*)
19140       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
19141       ;;
19142     *)
19143       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
19144       ;;
19145     esac
19146 done
19147
19148 ac_aux_dir='$ac_aux_dir'
19149 xsi_shell='$xsi_shell'
19150 lt_shell_append='$lt_shell_append'
19151
19152 # See if we are running on zsh, and set the options which allow our
19153 # commands through without removal of \ escapes INIT.
19154 if test -n "\${ZSH_VERSION+set}" ; then
19155    setopt NO_GLOB_SUBST
19156 fi
19157
19158
19159     PACKAGE='$PACKAGE'
19160     VERSION='$VERSION'
19161     TIMESTAMP='$TIMESTAMP'
19162     RM='$RM'
19163     ofile='$ofile'
19164
19165
19166
19167
19168
19169 _LTEOF
19170
19171 cat >>"$CONFIG_LT" <<\_LTEOF
19172 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
19173 $as_echo "$as_me: creating $ofile" >&6;}
19174
19175
19176     # See if we are running on zsh, and set the options which allow our
19177     # commands through without removal of \ escapes.
19178     if test -n "${ZSH_VERSION+set}" ; then
19179       setopt NO_GLOB_SUBST
19180     fi
19181
19182     cfgfile="${ofile}T"
19183     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19184     $RM "$cfgfile"
19185
19186     cat <<_LT_EOF >> "$cfgfile"
19187 #! $SHELL
19188
19189 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19190 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19191 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19192 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19193 #
19194 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19195 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
19196 #                 Inc.
19197 #   Written by Gordon Matzigkeit, 1996
19198 #
19199 #   This file is part of GNU Libtool.
19200 #
19201 # GNU Libtool is free software; you can redistribute it and/or
19202 # modify it under the terms of the GNU General Public License as
19203 # published by the Free Software Foundation; either version 2 of
19204 # the License, or (at your option) any later version.
19205 #
19206 # As a special exception to the GNU General Public License,
19207 # if you distribute this file as part of a program or library that
19208 # is built using GNU Libtool, you may include this file under the
19209 # same distribution terms that you use for the rest of that program.
19210 #
19211 # GNU Libtool is distributed in the hope that it will be useful,
19212 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19213 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19214 # GNU General Public License for more details.
19215 #
19216 # You should have received a copy of the GNU General Public License
19217 # along with GNU Libtool; see the file COPYING.  If not, a copy
19218 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19219 # obtained by writing to the Free Software Foundation, Inc.,
19220 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19221
19222
19223 # The names of the tagged configurations supported by this script.
19224 available_tags="CXX "
19225
19226 # ### BEGIN LIBTOOL CONFIG
19227
19228 # Which release of libtool.m4 was used?
19229 macro_version=$macro_version
19230 macro_revision=$macro_revision
19231
19232 # Whether or not to build static libraries.
19233 build_old_libs=$enable_static
19234
19235 # Assembler program.
19236 AS=$lt_AS
19237
19238 # DLL creation program.
19239 DLLTOOL=$lt_DLLTOOL
19240
19241 # Object dumper program.
19242 OBJDUMP=$lt_OBJDUMP
19243
19244 # Whether or not to build shared libraries.
19245 build_libtool_libs=$enable_shared
19246
19247 # What type of objects to build.
19248 pic_mode=$pic_mode
19249
19250 # Whether or not to optimize for fast installation.
19251 fast_install=$enable_fast_install
19252
19253 # Shell to use when invoking shell scripts.
19254 SHELL=$lt_SHELL
19255
19256 # An echo program that protects backslashes.
19257 ECHO=$lt_ECHO
19258
19259 # The host system.
19260 host_alias=$host_alias
19261 host=$host
19262 host_os=$host_os
19263
19264 # The build system.
19265 build_alias=$build_alias
19266 build=$build
19267 build_os=$build_os
19268
19269 # A sed program that does not truncate output.
19270 SED=$lt_SED
19271
19272 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19273 Xsed="\$SED -e 1s/^X//"
19274
19275 # A grep program that handles long lines.
19276 GREP=$lt_GREP
19277
19278 # An ERE matcher.
19279 EGREP=$lt_EGREP
19280
19281 # A literal string matcher.
19282 FGREP=$lt_FGREP
19283
19284 # A BSD- or MS-compatible name lister.
19285 NM=$lt_NM
19286
19287 # Whether we need soft or hard links.
19288 LN_S=$lt_LN_S
19289
19290 # What is the maximum length of a command?
19291 max_cmd_len=$max_cmd_len
19292
19293 # Object file suffix (normally "o").
19294 objext=$ac_objext
19295
19296 # Executable file suffix (normally "").
19297 exeext=$exeext
19298
19299 # whether the shell understands "unset".
19300 lt_unset=$lt_unset
19301
19302 # turn spaces into newlines.
19303 SP2NL=$lt_lt_SP2NL
19304
19305 # turn newlines into spaces.
19306 NL2SP=$lt_lt_NL2SP
19307
19308 # convert \$build file names to \$host format.
19309 to_host_file_cmd=$lt_cv_to_host_file_cmd
19310
19311 # convert \$build files to toolchain format.
19312 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19313
19314 # Method to check whether dependent libraries are shared objects.
19315 deplibs_check_method=$lt_deplibs_check_method
19316
19317 # Command to use when deplibs_check_method = "file_magic".
19318 file_magic_cmd=$lt_file_magic_cmd
19319
19320 # How to find potential files when deplibs_check_method = "file_magic".
19321 file_magic_glob=$lt_file_magic_glob
19322
19323 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19324 want_nocaseglob=$lt_want_nocaseglob
19325
19326 # Command to associate shared and link libraries.
19327 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19328
19329 # The archiver.
19330 AR=$lt_AR
19331
19332 # Flags to create an archive.
19333 AR_FLAGS=$lt_AR_FLAGS
19334
19335 # How to feed a file listing to the archiver.
19336 archiver_list_spec=$lt_archiver_list_spec
19337
19338 # A symbol stripping program.
19339 STRIP=$lt_STRIP
19340
19341 # Commands used to install an old-style archive.
19342 RANLIB=$lt_RANLIB
19343 old_postinstall_cmds=$lt_old_postinstall_cmds
19344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19345
19346 # Whether to use a lock for old archive extraction.
19347 lock_old_archive_extraction=$lock_old_archive_extraction
19348
19349 # A C compiler.
19350 LTCC=$lt_CC
19351
19352 # LTCC compiler flags.
19353 LTCFLAGS=$lt_CFLAGS
19354
19355 # Take the output of nm and produce a listing of raw symbols and C names.
19356 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19357
19358 # Transform the output of nm in a proper C declaration.
19359 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19360
19361 # Transform the output of nm in a C name address pair.
19362 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19363
19364 # Transform the output of nm in a C name address pair when lib prefix is needed.
19365 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19366
19367 # Specify filename containing input files for \$NM.
19368 nm_file_list_spec=$lt_nm_file_list_spec
19369
19370 # The root where to search for dependent libraries,and in which our libraries should be installed.
19371 lt_sysroot=$lt_sysroot
19372
19373 # The name of the directory that contains temporary libtool files.
19374 objdir=$objdir
19375
19376 # Used to examine libraries when file_magic_cmd begins with "file".
19377 MAGIC_CMD=$MAGIC_CMD
19378
19379 # Must we lock files when doing compilation?
19380 need_locks=$lt_need_locks
19381
19382 # Manifest tool.
19383 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19384
19385 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19386 DSYMUTIL=$lt_DSYMUTIL
19387
19388 # Tool to change global to local symbols on Mac OS X.
19389 NMEDIT=$lt_NMEDIT
19390
19391 # Tool to manipulate fat objects and archives on Mac OS X.
19392 LIPO=$lt_LIPO
19393
19394 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19395 OTOOL=$lt_OTOOL
19396
19397 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19398 OTOOL64=$lt_OTOOL64
19399
19400 # Old archive suffix (normally "a").
19401 libext=$libext
19402
19403 # Shared library suffix (normally ".so").
19404 shrext_cmds=$lt_shrext_cmds
19405
19406 # The commands to extract the exported symbol list from a shared archive.
19407 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19408
19409 # Variables whose values should be saved in libtool wrapper scripts and
19410 # restored at link time.
19411 variables_saved_for_relink=$lt_variables_saved_for_relink
19412
19413 # Do we need the "lib" prefix for modules?
19414 need_lib_prefix=$need_lib_prefix
19415
19416 # Do we need a version for libraries?
19417 need_version=$need_version
19418
19419 # Library versioning type.
19420 version_type=$version_type
19421
19422 # Shared library runtime path variable.
19423 runpath_var=$runpath_var
19424
19425 # Shared library path variable.
19426 shlibpath_var=$shlibpath_var
19427
19428 # Is shlibpath searched before the hard-coded library search path?
19429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19430
19431 # Format of library name prefix.
19432 libname_spec=$lt_libname_spec
19433
19434 # List of archive names.  First name is the real one, the rest are links.
19435 # The last name is the one that the linker finds with -lNAME
19436 library_names_spec=$lt_library_names_spec
19437
19438 # The coded name of the library, if different from the real name.
19439 soname_spec=$lt_soname_spec
19440
19441 # Permission mode override for installation of shared libraries.
19442 install_override_mode=$lt_install_override_mode
19443
19444 # Command to use after installation of a shared archive.
19445 postinstall_cmds=$lt_postinstall_cmds
19446
19447 # Command to use after uninstallation of a shared archive.
19448 postuninstall_cmds=$lt_postuninstall_cmds
19449
19450 # Commands used to finish a libtool library installation in a directory.
19451 finish_cmds=$lt_finish_cmds
19452
19453 # As "finish_cmds", except a single script fragment to be evaled but
19454 # not shown.
19455 finish_eval=$lt_finish_eval
19456
19457 # Whether we should hardcode library paths into libraries.
19458 hardcode_into_libs=$hardcode_into_libs
19459
19460 # Compile-time system search path for libraries.
19461 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19462
19463 # Run-time system search path for libraries.
19464 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19465
19466 # Whether dlopen is supported.
19467 dlopen_support=$enable_dlopen
19468
19469 # Whether dlopen of programs is supported.
19470 dlopen_self=$enable_dlopen_self
19471
19472 # Whether dlopen of statically linked programs is supported.
19473 dlopen_self_static=$enable_dlopen_self_static
19474
19475 # Commands to strip libraries.
19476 old_striplib=$lt_old_striplib
19477 striplib=$lt_striplib
19478
19479
19480 # The linker used to build libraries.
19481 LD=$lt_LD
19482
19483 # How to create reloadable object files.
19484 reload_flag=$lt_reload_flag
19485 reload_cmds=$lt_reload_cmds
19486
19487 # Commands used to build an old-style archive.
19488 old_archive_cmds=$lt_old_archive_cmds
19489
19490 # A language specific compiler.
19491 CC=$lt_compiler
19492
19493 # Is the compiler the GNU compiler?
19494 with_gcc=$GCC
19495
19496 # Compiler flag to turn off builtin functions.
19497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19498
19499 # Additional compiler flags for building library objects.
19500 pic_flag=$lt_lt_prog_compiler_pic
19501
19502 # How to pass a linker flag through the compiler.
19503 wl=$lt_lt_prog_compiler_wl
19504
19505 # Compiler flag to prevent dynamic linking.
19506 link_static_flag=$lt_lt_prog_compiler_static
19507
19508 # Does compiler simultaneously support -c and -o options?
19509 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19510
19511 # Whether or not to add -lc for building shared libraries.
19512 build_libtool_need_lc=$archive_cmds_need_lc
19513
19514 # Whether or not to disallow shared libs when runtime libs are static.
19515 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19516
19517 # Compiler flag to allow reflexive dlopens.
19518 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19519
19520 # Compiler flag to generate shared objects directly from archives.
19521 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19522
19523 # Whether the compiler copes with passing no objects directly.
19524 compiler_needs_object=$lt_compiler_needs_object
19525
19526 # Create an old-style archive from a shared archive.
19527 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19528
19529 # Create a temporary old-style archive to link instead of a shared archive.
19530 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19531
19532 # Commands used to build a shared archive.
19533 archive_cmds=$lt_archive_cmds
19534 archive_expsym_cmds=$lt_archive_expsym_cmds
19535
19536 # Commands used to build a loadable module if different from building
19537 # a shared archive.
19538 module_cmds=$lt_module_cmds
19539 module_expsym_cmds=$lt_module_expsym_cmds
19540
19541 # Whether we are building with GNU ld or not.
19542 with_gnu_ld=$lt_with_gnu_ld
19543
19544 # Flag that allows shared libraries with undefined symbols to be built.
19545 allow_undefined_flag=$lt_allow_undefined_flag
19546
19547 # Flag that enforces no undefined symbols.
19548 no_undefined_flag=$lt_no_undefined_flag
19549
19550 # Flag to hardcode \$libdir into a binary during linking.
19551 # This must work even if \$libdir does not exist
19552 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19553
19554 # If ld is used when linking, flag to hardcode \$libdir into a binary
19555 # during linking.  This must work even if \$libdir does not exist.
19556 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19557
19558 # Whether we need a single "-rpath" flag with a separated argument.
19559 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19560
19561 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19562 # DIR into the resulting binary.
19563 hardcode_direct=$hardcode_direct
19564
19565 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19566 # DIR into the resulting binary and the resulting library dependency is
19567 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19568 # library is relocated.
19569 hardcode_direct_absolute=$hardcode_direct_absolute
19570
19571 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19572 # into the resulting binary.
19573 hardcode_minus_L=$hardcode_minus_L
19574
19575 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19576 # into the resulting binary.
19577 hardcode_shlibpath_var=$hardcode_shlibpath_var
19578
19579 # Set to "yes" if building a shared library automatically hardcodes DIR
19580 # into the library and all subsequent libraries and executables linked
19581 # against it.
19582 hardcode_automatic=$hardcode_automatic
19583
19584 # Set to yes if linker adds runtime paths of dependent libraries
19585 # to runtime path list.
19586 inherit_rpath=$inherit_rpath
19587
19588 # Whether libtool must link a program against all its dependency libraries.
19589 link_all_deplibs=$link_all_deplibs
19590
19591 # Set to "yes" if exported symbols are required.
19592 always_export_symbols=$always_export_symbols
19593
19594 # The commands to list exported symbols.
19595 export_symbols_cmds=$lt_export_symbols_cmds
19596
19597 # Symbols that should not be listed in the preloaded symbols.
19598 exclude_expsyms=$lt_exclude_expsyms
19599
19600 # Symbols that must always be exported.
19601 include_expsyms=$lt_include_expsyms
19602
19603 # Commands necessary for linking programs (against libraries) with templates.
19604 prelink_cmds=$lt_prelink_cmds
19605
19606 # Commands necessary for finishing linking programs.
19607 postlink_cmds=$lt_postlink_cmds
19608
19609 # Specify filename containing input files.
19610 file_list_spec=$lt_file_list_spec
19611
19612 # How to hardcode a shared library path into an executable.
19613 hardcode_action=$hardcode_action
19614
19615 # The directories searched by this compiler when creating a shared library.
19616 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19617
19618 # Dependencies to place before and after the objects being linked to
19619 # create a shared library.
19620 predep_objects=$lt_predep_objects
19621 postdep_objects=$lt_postdep_objects
19622 predeps=$lt_predeps
19623 postdeps=$lt_postdeps
19624
19625 # The library search path used internally by the compiler when linking
19626 # a shared library.
19627 compiler_lib_search_path=$lt_compiler_lib_search_path
19628
19629 # ### END LIBTOOL CONFIG
19630
19631 _LT_EOF
19632
19633   case $host_os in
19634   aix3*)
19635     cat <<\_LT_EOF >> "$cfgfile"
19636 # AIX sometimes has problems with the GCC collect2 program.  For some
19637 # reason, if we set the COLLECT_NAMES environment variable, the problems
19638 # vanish in a puff of smoke.
19639 if test "X${COLLECT_NAMES+set}" != Xset; then
19640   COLLECT_NAMES=
19641   export COLLECT_NAMES
19642 fi
19643 _LT_EOF
19644     ;;
19645   esac
19646
19647
19648 ltmain="$ac_aux_dir/ltmain.sh"
19649
19650
19651   # We use sed instead of cat because bash on DJGPP gets confused if
19652   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19653   # text mode, it properly converts lines to CR/LF.  This bash problem
19654   # is reportedly fixed, but why not run on old versions too?
19655   sed '$q' "$ltmain" >> "$cfgfile" \
19656      || (rm -f "$cfgfile"; exit 1)
19657
19658   if test x"$xsi_shell" = xyes; then
19659   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19660 func_dirname ()\
19661 {\
19662 \    case ${1} in\
19663 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19664 \      *  ) func_dirname_result="${3}" ;;\
19665 \    esac\
19666 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19667   && mv -f "$cfgfile.tmp" "$cfgfile" \
19668     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19669 test 0 -eq $? || _lt_function_replace_fail=:
19670
19671
19672   sed -e '/^func_basename ()$/,/^} # func_basename /c\
19673 func_basename ()\
19674 {\
19675 \    func_basename_result="${1##*/}"\
19676 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19677   && mv -f "$cfgfile.tmp" "$cfgfile" \
19678     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19679 test 0 -eq $? || _lt_function_replace_fail=:
19680
19681
19682   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19683 func_dirname_and_basename ()\
19684 {\
19685 \    case ${1} in\
19686 \      */*) func_dirname_result="${1%/*}${2}" ;;\
19687 \      *  ) func_dirname_result="${3}" ;;\
19688 \    esac\
19689 \    func_basename_result="${1##*/}"\
19690 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19691   && mv -f "$cfgfile.tmp" "$cfgfile" \
19692     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19693 test 0 -eq $? || _lt_function_replace_fail=:
19694
19695
19696   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19697 func_stripname ()\
19698 {\
19699 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19700 \    # positional parameters, so assign one to ordinary parameter first.\
19701 \    func_stripname_result=${3}\
19702 \    func_stripname_result=${func_stripname_result#"${1}"}\
19703 \    func_stripname_result=${func_stripname_result%"${2}"}\
19704 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19705   && mv -f "$cfgfile.tmp" "$cfgfile" \
19706     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19707 test 0 -eq $? || _lt_function_replace_fail=:
19708
19709
19710   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19711 func_split_long_opt ()\
19712 {\
19713 \    func_split_long_opt_name=${1%%=*}\
19714 \    func_split_long_opt_arg=${1#*=}\
19715 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19716   && mv -f "$cfgfile.tmp" "$cfgfile" \
19717     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19718 test 0 -eq $? || _lt_function_replace_fail=:
19719
19720
19721   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19722 func_split_short_opt ()\
19723 {\
19724 \    func_split_short_opt_arg=${1#??}\
19725 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19726 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19727   && mv -f "$cfgfile.tmp" "$cfgfile" \
19728     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19729 test 0 -eq $? || _lt_function_replace_fail=:
19730
19731
19732   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19733 func_lo2o ()\
19734 {\
19735 \    case ${1} in\
19736 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19737 \      *)    func_lo2o_result=${1} ;;\
19738 \    esac\
19739 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19740   && mv -f "$cfgfile.tmp" "$cfgfile" \
19741     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19742 test 0 -eq $? || _lt_function_replace_fail=:
19743
19744
19745   sed -e '/^func_xform ()$/,/^} # func_xform /c\
19746 func_xform ()\
19747 {\
19748     func_xform_result=${1%.*}.lo\
19749 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19750   && mv -f "$cfgfile.tmp" "$cfgfile" \
19751     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19752 test 0 -eq $? || _lt_function_replace_fail=:
19753
19754
19755   sed -e '/^func_arith ()$/,/^} # func_arith /c\
19756 func_arith ()\
19757 {\
19758     func_arith_result=$(( $* ))\
19759 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19760   && mv -f "$cfgfile.tmp" "$cfgfile" \
19761     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19762 test 0 -eq $? || _lt_function_replace_fail=:
19763
19764
19765   sed -e '/^func_len ()$/,/^} # func_len /c\
19766 func_len ()\
19767 {\
19768     func_len_result=${#1}\
19769 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19770   && mv -f "$cfgfile.tmp" "$cfgfile" \
19771     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19772 test 0 -eq $? || _lt_function_replace_fail=:
19773
19774 fi
19775
19776 if test x"$lt_shell_append" = xyes; then
19777   sed -e '/^func_append ()$/,/^} # func_append /c\
19778 func_append ()\
19779 {\
19780     eval "${1}+=\\${2}"\
19781 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19782   && mv -f "$cfgfile.tmp" "$cfgfile" \
19783     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19784 test 0 -eq $? || _lt_function_replace_fail=:
19785
19786
19787   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19788 func_append_quoted ()\
19789 {\
19790 \    func_quote_for_eval "${2}"\
19791 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19792 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19793   && mv -f "$cfgfile.tmp" "$cfgfile" \
19794     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19795 test 0 -eq $? || _lt_function_replace_fail=:
19796
19797
19798   # Save a `func_append' function call where possible by direct use of '+='
19799   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19800     && mv -f "$cfgfile.tmp" "$cfgfile" \
19801       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19802   test 0 -eq $? || _lt_function_replace_fail=:
19803 else
19804   # Save a `func_append' function call even when '+=' is not available
19805   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19806     && mv -f "$cfgfile.tmp" "$cfgfile" \
19807       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19808   test 0 -eq $? || _lt_function_replace_fail=:
19809 fi
19810
19811 if test x"$_lt_function_replace_fail" = x":"; then
19812   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19813 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19814 fi
19815
19816
19817    mv -f "$cfgfile" "$ofile" ||
19818     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19819   chmod +x "$ofile"
19820
19821
19822     cat <<_LT_EOF >> "$ofile"
19823
19824 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19825
19826 # The linker used to build libraries.
19827 LD=$lt_LD_CXX
19828
19829 # How to create reloadable object files.
19830 reload_flag=$lt_reload_flag_CXX
19831 reload_cmds=$lt_reload_cmds_CXX
19832
19833 # Commands used to build an old-style archive.
19834 old_archive_cmds=$lt_old_archive_cmds_CXX
19835
19836 # A language specific compiler.
19837 CC=$lt_compiler_CXX
19838
19839 # Is the compiler the GNU compiler?
19840 with_gcc=$GCC_CXX
19841
19842 # Compiler flag to turn off builtin functions.
19843 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19844
19845 # Additional compiler flags for building library objects.
19846 pic_flag=$lt_lt_prog_compiler_pic_CXX
19847
19848 # How to pass a linker flag through the compiler.
19849 wl=$lt_lt_prog_compiler_wl_CXX
19850
19851 # Compiler flag to prevent dynamic linking.
19852 link_static_flag=$lt_lt_prog_compiler_static_CXX
19853
19854 # Does compiler simultaneously support -c and -o options?
19855 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19856
19857 # Whether or not to add -lc for building shared libraries.
19858 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19859
19860 # Whether or not to disallow shared libs when runtime libs are static.
19861 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19862
19863 # Compiler flag to allow reflexive dlopens.
19864 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19865
19866 # Compiler flag to generate shared objects directly from archives.
19867 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19868
19869 # Whether the compiler copes with passing no objects directly.
19870 compiler_needs_object=$lt_compiler_needs_object_CXX
19871
19872 # Create an old-style archive from a shared archive.
19873 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19874
19875 # Create a temporary old-style archive to link instead of a shared archive.
19876 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19877
19878 # Commands used to build a shared archive.
19879 archive_cmds=$lt_archive_cmds_CXX
19880 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19881
19882 # Commands used to build a loadable module if different from building
19883 # a shared archive.
19884 module_cmds=$lt_module_cmds_CXX
19885 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19886
19887 # Whether we are building with GNU ld or not.
19888 with_gnu_ld=$lt_with_gnu_ld_CXX
19889
19890 # Flag that allows shared libraries with undefined symbols to be built.
19891 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19892
19893 # Flag that enforces no undefined symbols.
19894 no_undefined_flag=$lt_no_undefined_flag_CXX
19895
19896 # Flag to hardcode \$libdir into a binary during linking.
19897 # This must work even if \$libdir does not exist
19898 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19899
19900 # If ld is used when linking, flag to hardcode \$libdir into a binary
19901 # during linking.  This must work even if \$libdir does not exist.
19902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19903
19904 # Whether we need a single "-rpath" flag with a separated argument.
19905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19906
19907 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19908 # DIR into the resulting binary.
19909 hardcode_direct=$hardcode_direct_CXX
19910
19911 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19912 # DIR into the resulting binary and the resulting library dependency is
19913 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19914 # library is relocated.
19915 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19916
19917 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19918 # into the resulting binary.
19919 hardcode_minus_L=$hardcode_minus_L_CXX
19920
19921 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19922 # into the resulting binary.
19923 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19924
19925 # Set to "yes" if building a shared library automatically hardcodes DIR
19926 # into the library and all subsequent libraries and executables linked
19927 # against it.
19928 hardcode_automatic=$hardcode_automatic_CXX
19929
19930 # Set to yes if linker adds runtime paths of dependent libraries
19931 # to runtime path list.
19932 inherit_rpath=$inherit_rpath_CXX
19933
19934 # Whether libtool must link a program against all its dependency libraries.
19935 link_all_deplibs=$link_all_deplibs_CXX
19936
19937 # Set to "yes" if exported symbols are required.
19938 always_export_symbols=$always_export_symbols_CXX
19939
19940 # The commands to list exported symbols.
19941 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19942
19943 # Symbols that should not be listed in the preloaded symbols.
19944 exclude_expsyms=$lt_exclude_expsyms_CXX
19945
19946 # Symbols that must always be exported.
19947 include_expsyms=$lt_include_expsyms_CXX
19948
19949 # Commands necessary for linking programs (against libraries) with templates.
19950 prelink_cmds=$lt_prelink_cmds_CXX
19951
19952 # Commands necessary for finishing linking programs.
19953 postlink_cmds=$lt_postlink_cmds_CXX
19954
19955 # Specify filename containing input files.
19956 file_list_spec=$lt_file_list_spec_CXX
19957
19958 # How to hardcode a shared library path into an executable.
19959 hardcode_action=$hardcode_action_CXX
19960
19961 # The directories searched by this compiler when creating a shared library.
19962 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19963
19964 # Dependencies to place before and after the objects being linked to
19965 # create a shared library.
19966 predep_objects=$lt_predep_objects_CXX
19967 postdep_objects=$lt_postdep_objects_CXX
19968 predeps=$lt_predeps_CXX
19969 postdeps=$lt_postdeps_CXX
19970
19971 # The library search path used internally by the compiler when linking
19972 # a shared library.
19973 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19974
19975 # ### END LIBTOOL TAG CONFIG: CXX
19976 _LT_EOF
19977
19978
19979 as_fn_exit 0
19980 _LTEOF
19981 chmod +x "$CONFIG_LT"
19982
19983 # configure is writing to config.log, but config.lt does its own redirection,
19984 # appending to config.log, which fails on DOS, as config.log is still kept
19985 # open by configure.  Here we exec the FD to /dev/null, effectively closing
19986 # config.log, so it can be properly (re)opened and appended to by config.lt.
19987 lt_cl_success=:
19988 test "$silent" = yes &&
19989   lt_config_lt_args="$lt_config_lt_args --quiet"
19990 exec 5>/dev/null
19991 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
19992 exec 5>>config.log
19993 $lt_cl_success || as_fn_exit 1
19994
19995
19996
19997 if test "x$GCC" = "xyes"; then
19998   case " $CFLAGS " in
19999   *[\ \ ]-Wall[\ \      ]*) ;;
20000   *) CFLAGS="$CFLAGS -Wall" ;;
20001   esac
20002 fi
20003
20004 if test "$glib_native_win32" = "yes"; then
20005   if test x$enable_static = xyes -a x$enable_shared = xyes; then
20006     as_fn_error $? "Can not build both shared and static at the same time on Windows." "$LINENO" 5
20007   fi
20008   if test x$enable_static = xyes; then
20009     glib_win32_static_compilation=yes
20010     GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1
20011 #define GOBJECT_STATIC_COMPILATION 1"
20012
20013   fi
20014 fi
20015  if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then
20016   OS_WIN32_AND_DLL_COMPILATION_TRUE=
20017   OS_WIN32_AND_DLL_COMPILATION_FALSE='#'
20018 else
20019   OS_WIN32_AND_DLL_COMPILATION_TRUE='#'
20020   OS_WIN32_AND_DLL_COMPILATION_FALSE=
20021 fi
20022
20023
20024 if test $cross_compiling != yes ; then
20025     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
20026 $as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
20027     glib_save_LIBS=$LIBS
20028     LIBS="$LIBS -lm"
20029     if test "$cross_compiling" = yes; then :
20030   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20032 as_fn_error $? "cannot run test program while cross compiling
20033 See \`config.log' for more details" "$LINENO" 5; }
20034 else
20035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20036 /* end confdefs.h.  */
20037 #include <math.h>
20038                  int main (void) { return (log(1) != log(1.)); }
20039 _ACEOF
20040 if ac_fn_c_try_run "$LINENO"; then :
20041   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20042 $as_echo "none needed" >&6; }
20043 else
20044   glib_save_CFLAGS=$CFLAGS
20045          CFLAGS="$CFLAGS -std1"
20046          if test "$cross_compiling" = yes; then :
20047   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20049 as_fn_error $? "cannot run test program while cross compiling
20050 See \`config.log' for more details" "$LINENO" 5; }
20051 else
20052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20053 /* end confdefs.h.  */
20054 #include <math.h>
20055                      int main (void) { return (log(1) != log(1.)); }
20056 _ACEOF
20057 if ac_fn_c_try_run "$LINENO"; then :
20058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
20059 $as_echo "-std1" >&6; }
20060 else
20061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20062 $as_echo "" >&6; }
20063              CFLAGS=$glib_save_CFLAGS
20064              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
20065 $as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
20066
20067 fi
20068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20069   conftest.$ac_objext conftest.beam conftest.$ac_ext
20070 fi
20071
20072
20073 fi
20074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20075   conftest.$ac_objext conftest.beam conftest.$ac_ext
20076 fi
20077
20078     LIBS=$glib_save_LIBS
20079 fi
20080
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for POSIX compliance" >&5
20082 $as_echo_n "checking for extra flags for POSIX compliance... " >&6; }
20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h.  */
20085 #include <dirent.h>
20086 int
20087 main ()
20088 {
20089 DIR *dir;
20090   ;
20091   return 0;
20092 }
20093 _ACEOF
20094 if ac_fn_c_try_compile "$LINENO"; then :
20095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
20096 $as_echo "none needed" >&6; }
20097 else
20098   glib_save_CFLAGS=$CFLAGS
20099   CFLAGS="$CFLAGS -posix"
20100   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h.  */
20102 #include <dirent.h>
20103 int
20104 main ()
20105 {
20106 DIR *dir;
20107   ;
20108   return 0;
20109 }
20110 _ACEOF
20111 if ac_fn_c_try_compile "$LINENO"; then :
20112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -posix" >&5
20113 $as_echo "-posix" >&6; }
20114 else
20115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20116 $as_echo "" >&6; }
20117     CFLAGS=$glib_save_CFLAGS
20118     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
20119 $as_echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
20120 fi
20121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20122 fi
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124
20125 # Checks for library functions.
20126 for ac_func in vprintf
20127 do :
20128   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
20129 if test "x$ac_cv_func_vprintf" = xyes; then :
20130   cat >>confdefs.h <<_ACEOF
20131 #define HAVE_VPRINTF 1
20132 _ACEOF
20133
20134 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
20135 if test "x$ac_cv_func__doprnt" = xyes; then :
20136
20137 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
20138
20139 fi
20140
20141 fi
20142 done
20143
20144
20145 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20146 if test "x$ac_cv_type_size_t" = xyes; then :
20147
20148 else
20149
20150 cat >>confdefs.h <<_ACEOF
20151 #define size_t unsigned int
20152 _ACEOF
20153
20154 fi
20155
20156 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20157 # for constant arguments.  Useless!
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20159 $as_echo_n "checking for working alloca.h... " >&6; }
20160 if ${ac_cv_working_alloca_h+:} false; then :
20161   $as_echo_n "(cached) " >&6
20162 else
20163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h.  */
20165 #include <alloca.h>
20166 int
20167 main ()
20168 {
20169 char *p = (char *) alloca (2 * sizeof (int));
20170                           if (p) return 0;
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"; then :
20176   ac_cv_working_alloca_h=yes
20177 else
20178   ac_cv_working_alloca_h=no
20179 fi
20180 rm -f core conftest.err conftest.$ac_objext \
20181     conftest$ac_exeext conftest.$ac_ext
20182 fi
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20184 $as_echo "$ac_cv_working_alloca_h" >&6; }
20185 if test $ac_cv_working_alloca_h = yes; then
20186
20187 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20188
20189 fi
20190
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20192 $as_echo_n "checking for alloca... " >&6; }
20193 if ${ac_cv_func_alloca_works+:} false; then :
20194   $as_echo_n "(cached) " >&6
20195 else
20196   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h.  */
20198 #ifdef __GNUC__
20199 # define alloca __builtin_alloca
20200 #else
20201 # ifdef _MSC_VER
20202 #  include <malloc.h>
20203 #  define alloca _alloca
20204 # else
20205 #  ifdef HAVE_ALLOCA_H
20206 #   include <alloca.h>
20207 #  else
20208 #   ifdef _AIX
20209  #pragma alloca
20210 #   else
20211 #    ifndef alloca /* predefined by HP cc +Olibcalls */
20212 void *alloca (size_t);
20213 #    endif
20214 #   endif
20215 #  endif
20216 # endif
20217 #endif
20218
20219 int
20220 main ()
20221 {
20222 char *p = (char *) alloca (1);
20223                                     if (p) return 0;
20224   ;
20225   return 0;
20226 }
20227 _ACEOF
20228 if ac_fn_c_try_link "$LINENO"; then :
20229   ac_cv_func_alloca_works=yes
20230 else
20231   ac_cv_func_alloca_works=no
20232 fi
20233 rm -f core conftest.err conftest.$ac_objext \
20234     conftest$ac_exeext conftest.$ac_ext
20235 fi
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20237 $as_echo "$ac_cv_func_alloca_works" >&6; }
20238
20239 if test $ac_cv_func_alloca_works = yes; then
20240
20241 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20242
20243 else
20244   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20245 # that cause trouble.  Some versions do not even contain alloca or
20246 # contain a buggy version.  If you still want to use their alloca,
20247 # use ar to extract alloca.o from them instead of compiling alloca.c.
20248
20249 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20250
20251 $as_echo "#define C_ALLOCA 1" >>confdefs.h
20252
20253
20254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20255 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20256 if ${ac_cv_os_cray+:} false; then :
20257   $as_echo_n "(cached) " >&6
20258 else
20259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20260 /* end confdefs.h.  */
20261 #if defined CRAY && ! defined CRAY2
20262 webecray
20263 #else
20264 wenotbecray
20265 #endif
20266
20267 _ACEOF
20268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20269   $EGREP "webecray" >/dev/null 2>&1; then :
20270   ac_cv_os_cray=yes
20271 else
20272   ac_cv_os_cray=no
20273 fi
20274 rm -f conftest*
20275
20276 fi
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20278 $as_echo "$ac_cv_os_cray" >&6; }
20279 if test $ac_cv_os_cray = yes; then
20280   for ac_func in _getb67 GETB67 getb67; do
20281     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20283 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20284
20285 cat >>confdefs.h <<_ACEOF
20286 #define CRAY_STACKSEG_END $ac_func
20287 _ACEOF
20288
20289     break
20290 fi
20291
20292   done
20293 fi
20294
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20296 $as_echo_n "checking stack direction for C alloca... " >&6; }
20297 if ${ac_cv_c_stack_direction+:} false; then :
20298   $as_echo_n "(cached) " >&6
20299 else
20300   if test "$cross_compiling" = yes; then :
20301   ac_cv_c_stack_direction=0
20302 else
20303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20304 /* end confdefs.h.  */
20305 $ac_includes_default
20306 int
20307 find_stack_direction ()
20308 {
20309   static char *addr = 0;
20310   auto char dummy;
20311   if (addr == 0)
20312     {
20313       addr = &dummy;
20314       return find_stack_direction ();
20315     }
20316   else
20317     return (&dummy > addr) ? 1 : -1;
20318 }
20319
20320 int
20321 main ()
20322 {
20323   return find_stack_direction () < 0;
20324 }
20325 _ACEOF
20326 if ac_fn_c_try_run "$LINENO"; then :
20327   ac_cv_c_stack_direction=1
20328 else
20329   ac_cv_c_stack_direction=-1
20330 fi
20331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20332   conftest.$ac_objext conftest.beam conftest.$ac_ext
20333 fi
20334
20335 fi
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20337 $as_echo "$ac_cv_c_stack_direction" >&6; }
20338 cat >>confdefs.h <<_ACEOF
20339 #define STACK_DIRECTION $ac_cv_c_stack_direction
20340 _ACEOF
20341
20342
20343 fi
20344
20345 for ac_func in mmap posix_memalign memalign valloc fsync pipe2
20346 do :
20347   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20350   cat >>confdefs.h <<_ACEOF
20351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20352 _ACEOF
20353
20354 fi
20355 done
20356
20357 for ac_func in atexit on_exit timegm gmtime_r
20358 do :
20359   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20362   cat >>confdefs.h <<_ACEOF
20363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20364 _ACEOF
20365
20366 fi
20367 done
20368
20369
20370 # The cast to long int works around a bug in the HP C Compiler
20371 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20372 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20373 # This bug is HP SR number 8606223364.
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
20375 $as_echo_n "checking size of char... " >&6; }
20376 if ${ac_cv_sizeof_char+:} false; then :
20377   $as_echo_n "(cached) " >&6
20378 else
20379   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
20380
20381 else
20382   if test "$ac_cv_type_char" = yes; then
20383      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20384 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20385 as_fn_error 77 "cannot compute sizeof (char)
20386 See \`config.log' for more details" "$LINENO" 5; }
20387    else
20388      ac_cv_sizeof_char=0
20389    fi
20390 fi
20391
20392 fi
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
20394 $as_echo "$ac_cv_sizeof_char" >&6; }
20395
20396
20397
20398 cat >>confdefs.h <<_ACEOF
20399 #define SIZEOF_CHAR $ac_cv_sizeof_char
20400 _ACEOF
20401
20402
20403 # The cast to long int works around a bug in the HP C Compiler
20404 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20405 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20406 # This bug is HP SR number 8606223364.
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
20408 $as_echo_n "checking size of short... " >&6; }
20409 if ${ac_cv_sizeof_short+:} false; then :
20410   $as_echo_n "(cached) " >&6
20411 else
20412   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
20413
20414 else
20415   if test "$ac_cv_type_short" = yes; then
20416      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20418 as_fn_error 77 "cannot compute sizeof (short)
20419 See \`config.log' for more details" "$LINENO" 5; }
20420    else
20421      ac_cv_sizeof_short=0
20422    fi
20423 fi
20424
20425 fi
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
20427 $as_echo "$ac_cv_sizeof_short" >&6; }
20428
20429
20430
20431 cat >>confdefs.h <<_ACEOF
20432 #define SIZEOF_SHORT $ac_cv_sizeof_short
20433 _ACEOF
20434
20435
20436 # The cast to long int works around a bug in the HP C Compiler
20437 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20438 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20439 # This bug is HP SR number 8606223364.
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
20441 $as_echo_n "checking size of long... " >&6; }
20442 if ${ac_cv_sizeof_long+:} false; then :
20443   $as_echo_n "(cached) " >&6
20444 else
20445   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
20446
20447 else
20448   if test "$ac_cv_type_long" = yes; then
20449      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20451 as_fn_error 77 "cannot compute sizeof (long)
20452 See \`config.log' for more details" "$LINENO" 5; }
20453    else
20454      ac_cv_sizeof_long=0
20455    fi
20456 fi
20457
20458 fi
20459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
20460 $as_echo "$ac_cv_sizeof_long" >&6; }
20461
20462
20463
20464 cat >>confdefs.h <<_ACEOF
20465 #define SIZEOF_LONG $ac_cv_sizeof_long
20466 _ACEOF
20467
20468
20469 # The cast to long int works around a bug in the HP C Compiler
20470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20472 # This bug is HP SR number 8606223364.
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
20474 $as_echo_n "checking size of int... " >&6; }
20475 if ${ac_cv_sizeof_int+:} false; then :
20476   $as_echo_n "(cached) " >&6
20477 else
20478   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
20479
20480 else
20481   if test "$ac_cv_type_int" = yes; then
20482      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20484 as_fn_error 77 "cannot compute sizeof (int)
20485 See \`config.log' for more details" "$LINENO" 5; }
20486    else
20487      ac_cv_sizeof_int=0
20488    fi
20489 fi
20490
20491 fi
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
20493 $as_echo "$ac_cv_sizeof_int" >&6; }
20494
20495
20496
20497 cat >>confdefs.h <<_ACEOF
20498 #define SIZEOF_INT $ac_cv_sizeof_int
20499 _ACEOF
20500
20501
20502 # The cast to long int works around a bug in the HP C Compiler
20503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20505 # This bug is HP SR number 8606223364.
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
20507 $as_echo_n "checking size of void *... " >&6; }
20508 if ${ac_cv_sizeof_void_p+:} false; then :
20509   $as_echo_n "(cached) " >&6
20510 else
20511   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
20512
20513 else
20514   if test "$ac_cv_type_void_p" = yes; then
20515      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20517 as_fn_error 77 "cannot compute sizeof (void *)
20518 See \`config.log' for more details" "$LINENO" 5; }
20519    else
20520      ac_cv_sizeof_void_p=0
20521    fi
20522 fi
20523
20524 fi
20525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
20526 $as_echo "$ac_cv_sizeof_void_p" >&6; }
20527
20528
20529
20530 cat >>confdefs.h <<_ACEOF
20531 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
20532 _ACEOF
20533
20534
20535 # The cast to long int works around a bug in the HP C Compiler
20536 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20537 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20538 # This bug is HP SR number 8606223364.
20539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
20540 $as_echo_n "checking size of long long... " >&6; }
20541 if ${ac_cv_sizeof_long_long+:} false; then :
20542   $as_echo_n "(cached) " >&6
20543 else
20544   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
20545
20546 else
20547   if test "$ac_cv_type_long_long" = yes; then
20548      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20550 as_fn_error 77 "cannot compute sizeof (long long)
20551 See \`config.log' for more details" "$LINENO" 5; }
20552    else
20553      ac_cv_sizeof_long_long=0
20554    fi
20555 fi
20556
20557 fi
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
20559 $as_echo "$ac_cv_sizeof_long_long" >&6; }
20560
20561
20562
20563 cat >>confdefs.h <<_ACEOF
20564 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
20565 _ACEOF
20566
20567
20568 # The cast to long int works around a bug in the HP C Compiler
20569 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20570 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20571 # This bug is HP SR number 8606223364.
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
20573 $as_echo_n "checking size of __int64... " >&6; }
20574 if ${ac_cv_sizeof___int64+:} false; then :
20575   $as_echo_n "(cached) " >&6
20576 else
20577   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
20578
20579 else
20580   if test "$ac_cv_type___int64" = yes; then
20581      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20583 as_fn_error 77 "cannot compute sizeof (__int64)
20584 See \`config.log' for more details" "$LINENO" 5; }
20585    else
20586      ac_cv_sizeof___int64=0
20587    fi
20588 fi
20589
20590 fi
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
20592 $as_echo "$ac_cv_sizeof___int64" >&6; }
20593
20594
20595
20596 cat >>confdefs.h <<_ACEOF
20597 #define SIZEOF___INT64 $ac_cv_sizeof___int64
20598 _ACEOF
20599
20600
20601
20602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5
20603 $as_echo_n "checking for sig_atomic_t... " >&6; }
20604 if ${ac_cv_type_sig_atomic_t+:} false; then :
20605   $as_echo_n "(cached) " >&6
20606 else
20607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20608 /* end confdefs.h.  */
20609 #include <signal.h>
20610      #include <sys/types.h>
20611      sig_atomic_t val = 42;
20612 int
20613 main ()
20614 {
20615 return val == 42 ? 0 : 1
20616   ;
20617   return 0;
20618 }
20619 _ACEOF
20620 if ac_fn_c_try_link "$LINENO"; then :
20621   ac_cv_type_sig_atomic_t=yes
20622 else
20623   ac_cv_type_sig_atomic_t=no
20624 fi
20625 rm -f core conftest.err conftest.$ac_objext \
20626     conftest$ac_exeext conftest.$ac_ext
20627 fi
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5
20629 $as_echo "$ac_cv_type_sig_atomic_t" >&6; }
20630 if test x$ac_cv_type_sig_atomic_t = xyes; then
20631
20632 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
20633
20634 fi
20635
20636 if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
20637   :
20638 else
20639   as_fn_error $? "
20640 *** GLib requires a 64 bit type. You might want to consider
20641 *** using the GNU C compiler.
20642 " "$LINENO" 5
20643 fi
20644
20645 if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then
20646         # long long is a 64 bit integer.
20647         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
20648 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
20649         if ${glib_cv_long_long_format+:} false; then :
20650   $as_echo_n "(cached) " >&6
20651 else
20652
20653                 for format in ll q I64; do
20654                   if test "$cross_compiling" = yes; then :
20655   :
20656 else
20657   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658 /* end confdefs.h.  */
20659 #include <stdio.h>
20660                         int main()
20661                         {
20662                           long long b, a = -0x3AFAFAFAFAFAFAFALL;
20663                           char buffer[1000];
20664                           sprintf (buffer, "%${format}u", a);
20665                           sscanf (buffer, "%${format}u", &b);
20666                           exit (b!=a);
20667                         }
20668
20669 _ACEOF
20670 if ac_fn_c_try_run "$LINENO"; then :
20671   glib_cv_long_long_format=${format}
20672                         break
20673 fi
20674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20675   conftest.$ac_objext conftest.beam conftest.$ac_ext
20676 fi
20677
20678                 done
20679 fi
20680
20681         if test -n "$glib_cv_long_long_format"; then
20682           { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
20683 $as_echo "%${glib_cv_long_long_format}u" >&6; }
20684
20685 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
20686
20687           if test x"$glib_cv_long_long_format" = xI64; then
20688
20689 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
20690
20691           fi
20692         else
20693           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20694 $as_echo "none" >&6; }
20695         fi
20696 elif test x$ac_cv_sizeof___int64 = x8; then
20697         # __int64 is a 64 bit integer.
20698         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
20699 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
20700         # We know this is MSVCRT.DLL, and what the formats are
20701         glib_cv_long_long_format=I64
20702         { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
20703 $as_echo "%${glib_cv_long_long_format}u" >&6; }
20704
20705 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
20706
20707
20708 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
20709
20710 fi
20711
20712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
20713 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
20714 if ${ac_cv_c_const+:} false; then :
20715   $as_echo_n "(cached) " >&6
20716 else
20717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h.  */
20719
20720 int
20721 main ()
20722 {
20723 /* FIXME: Include the comments suggested by Paul. */
20724 #ifndef __cplusplus
20725   /* Ultrix mips cc rejects this.  */
20726   typedef int charset[2];
20727   const charset cs;
20728   /* SunOS 4.1.1 cc rejects this.  */
20729   char const *const *pcpcc;
20730   char **ppc;
20731   /* NEC SVR4.0.2 mips cc rejects this.  */
20732   struct point {int x, y;};
20733   static struct point const zero = {0,0};
20734   /* AIX XL C 1.02.0.0 rejects this.
20735      It does not let you subtract one const X* pointer from another in
20736      an arm of an if-expression whose if-part is not a constant
20737      expression */
20738   const char *g = "string";
20739   pcpcc = &g + (g ? g-g : 0);
20740   /* HPUX 7.0 cc rejects these. */
20741   ++pcpcc;
20742   ppc = (char**) pcpcc;
20743   pcpcc = (char const *const *) ppc;
20744   { /* SCO 3.2v4 cc rejects this.  */
20745     char *t;
20746     char const *s = 0 ? (char *) 0 : (char const *) 0;
20747
20748     *t++ = 0;
20749     if (s) return 0;
20750   }
20751   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20752     int x[] = {25, 17};
20753     const int *foo = &x[0];
20754     ++foo;
20755   }
20756   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20757     typedef const int *iptr;
20758     iptr p = 0;
20759     ++p;
20760   }
20761   { /* AIX XL C 1.02.0.0 rejects this saying
20762        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20763     struct s { int j; const int *ap[3]; };
20764     struct s *b; b->j = 5;
20765   }
20766   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20767     const int foo = 10;
20768     if (!foo) return 0;
20769   }
20770   return !cs[0] && !zero.x;
20771 #endif
20772
20773   ;
20774   return 0;
20775 }
20776 _ACEOF
20777 if ac_fn_c_try_compile "$LINENO"; then :
20778   ac_cv_c_const=yes
20779 else
20780   ac_cv_c_const=no
20781 fi
20782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20783 fi
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
20785 $as_echo "$ac_cv_c_const" >&6; }
20786 if test $ac_cv_c_const = no; then
20787
20788 $as_echo "#define const /**/" >>confdefs.h
20789
20790 fi
20791
20792
20793 SANE_MALLOC_PROTOS=no
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are gmem.h compatible" >&5
20795 $as_echo_n "checking if malloc() and friends prototypes are gmem.h compatible... " >&6; }
20796 glib_save_CFLAGS=$CFLAGS
20797 if test "x$GCC" = "xyes"; then
20798   CFLAGS="$CFLAGS -Werror"
20799   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20800 /* end confdefs.h.  */
20801 #include <stdlib.h>
20802 int
20803 main ()
20804 {
20805
20806     void* (*my_calloc_p)  (size_t, size_t) = calloc;
20807     void* (*my_malloc_p)  (size_t)         = malloc;
20808     void  (*my_free_p)    (void*)          = free;
20809     void* (*my_realloc_p) (void*, size_t)  = realloc;
20810     my_calloc_p = 0;
20811     my_malloc_p = 0;
20812     my_free_p = 0;
20813     my_realloc_p = 0;
20814
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 if ac_fn_c_try_compile "$LINENO"; then :
20820
20821 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
20822
20823     SANE_MALLOC_PROTOS=yes
20824 fi
20825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826 fi
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
20828 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
20829 CFLAGS=$glib_save_CFLAGS
20830
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5
20832 $as_echo_n "checking for growing stack pointer... " >&6; }
20833 if ${glib_cv_stack_grows+:} false; then :
20834   $as_echo_n "(cached) " >&6
20835 else
20836
20837         if test "$cross_compiling" = yes; then :
20838   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20840 as_fn_error $? "cannot run test program while cross compiling
20841 See \`config.log' for more details" "$LINENO" 5; }
20842 else
20843   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h.  */
20845
20846         volatile int *a = 0, *b = 0;
20847         void foo (void);
20848         int main () { volatile int y = 7; a = &y; foo (); return b > a; }
20849         void foo (void) { volatile int x = 5; b = &x; }
20850
20851 _ACEOF
20852 if ac_fn_c_try_run "$LINENO"; then :
20853   glib_cv_stack_grows=no
20854
20855 else
20856   glib_cv_stack_grows=yes
20857
20858 fi
20859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20860   conftest.$ac_objext conftest.beam conftest.$ac_ext
20861 fi
20862
20863
20864 fi
20865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5
20866 $as_echo "$glib_cv_stack_grows" >&6; }
20867
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
20869 $as_echo_n "checking for __inline... " >&6; }
20870 if ${glib_cv_has__inline+:} false; then :
20871   $as_echo_n "(cached) " >&6
20872 else
20873
20874         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20875 /* end confdefs.h.  */
20876
20877         __inline int foo () { return 0; }
20878         int main () { return foo (); }
20879
20880 _ACEOF
20881 if ac_fn_c_try_compile "$LINENO"; then :
20882   glib_cv_has__inline=yes
20883
20884 else
20885   glib_cv_has__inline=no
20886
20887 fi
20888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20889
20890 fi
20891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
20892 $as_echo "$glib_cv_has__inline" >&6; }
20893 case x$glib_cv_has__inline in
20894 xyes)
20895 $as_echo "#define G_HAVE___INLINE 1" >>confdefs.h
20896
20897 esac
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
20899 $as_echo_n "checking for __inline__... " >&6; }
20900 if ${glib_cv_has__inline__+:} false; then :
20901   $as_echo_n "(cached) " >&6
20902 else
20903
20904         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20905 /* end confdefs.h.  */
20906
20907         __inline__ int foo () { return 0; }
20908         int main () { return foo (); }
20909
20910 _ACEOF
20911 if ac_fn_c_try_compile "$LINENO"; then :
20912   glib_cv_has__inline__=yes
20913
20914 else
20915   glib_cv_has__inline__=no
20916
20917 fi
20918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20919
20920 fi
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
20922 $as_echo "$glib_cv_has__inline__" >&6; }
20923 case x$glib_cv_has__inline__ in
20924 xyes)
20925 $as_echo "#define G_HAVE___INLINE__ 1" >>confdefs.h
20926
20927 esac
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
20929 $as_echo_n "checking for inline... " >&6; }
20930 if ${glib_cv_hasinline+:} false; then :
20931   $as_echo_n "(cached) " >&6
20932 else
20933
20934         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h.  */
20936
20937         #undef inline
20938         inline int foo () { return 0; }
20939         int main () { return foo (); }
20940
20941 _ACEOF
20942 if ac_fn_c_try_compile "$LINENO"; then :
20943   glib_cv_hasinline=yes
20944
20945 else
20946   glib_cv_hasinline=no
20947
20948 fi
20949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20950
20951 fi
20952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
20953 $as_echo "$glib_cv_hasinline" >&6; }
20954 case x$glib_cv_hasinline in
20955 xyes)
20956 $as_echo "#define G_HAVE_INLINE 1" >>confdefs.h
20957
20958 esac
20959
20960 # if we can use inline functions in headers
20961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline functions in headers work" >&5
20962 $as_echo_n "checking if inline functions in headers work... " >&6; }
20963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20964 /* end confdefs.h.  */
20965
20966 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
20967 #  undef inline
20968 #  define inline __inline__
20969 #elif !defined (G_HAVE_INLINE)
20970 #  undef inline
20971 #  if defined (G_HAVE___INLINE__)
20972 #    define inline __inline__
20973 #  elif defined (G_HAVE___INLINE)
20974 #    define inline __inline
20975 #  endif
20976 #endif
20977
20978 int glib_test_func2 (int);
20979
20980 static inline int
20981 glib_test_func1 (void) {
20982   return glib_test_func2 (1);
20983 }
20984
20985 int
20986 main (void) {
20987   int i = 1;
20988 }
20989 _ACEOF
20990 if ac_fn_c_try_link "$LINENO"; then :
20991   g_can_inline=yes
20992 else
20993   g_can_inline=no
20994 fi
20995 rm -f core conftest.err conftest.$ac_objext \
20996     conftest$ac_exeext conftest.$ac_ext
20997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_can_inline" >&5
20998 $as_echo "$g_can_inline" >&6; }
20999
21000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
21001 $as_echo_n "checking for working do while(0) macros... " >&6; }
21002 if ${g_cv_support_dowhile_macros+:} false; then :
21003   $as_echo_n "(cached) " >&6
21004 else
21005
21006         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21007 /* end confdefs.h.  */
21008
21009 int
21010 main ()
21011 {
21012
21013         #define STMT_START do
21014         #define STMT_END while(0)
21015         #define STMT_TEST STMT_START { i = 0; } STMT_END
21016         int main(void) { int i = 1; STMT_TEST; return i; }
21017   ;
21018   return 0;
21019 }
21020 _ACEOF
21021 if ac_fn_c_try_compile "$LINENO"; then :
21022   g_cv_support_dowhile_macros=yes
21023 else
21024   g_cv_support_dowhile_macros=no
21025 fi
21026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21027
21028 fi
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_cv_support_dowhile_macros" >&5
21030 $as_echo "$g_cv_support_dowhile_macros" >&6; }
21031 if test x$g_cv_support_dowhile_macros = xyes; then
21032
21033 $as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
21034
21035 fi
21036
21037 # check for flavours of varargs macros
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
21039 $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h.  */
21042
21043 int
21044 main ()
21045 {
21046
21047 int a(int p1, int p2, int p3);
21048 #define call_a(...) a(1,__VA_ARGS__)
21049 call_a(2,3);
21050
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 if ac_fn_c_try_compile "$LINENO"; then :
21056   g_have_iso_c_varargs=yes
21057 else
21058   g_have_iso_c_varargs=no
21059 fi
21060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5
21062 $as_echo "$g_have_iso_c_varargs" >&6; }
21063
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5
21065 $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; }
21066 if test "$CXX" = ""; then
21067   g_have_iso_cxx_varargs=no
21068 else
21069   ac_ext=cpp
21070 ac_cpp='$CXXCPP $CPPFLAGS'
21071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21074
21075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21076 /* end confdefs.h.  */
21077
21078 int
21079 main ()
21080 {
21081
21082 int a(int p1, int p2, int p3);
21083 #define call_a(...) a(1,__VA_ARGS__)
21084 call_a(2,3);
21085
21086   ;
21087   return 0;
21088 }
21089 _ACEOF
21090 if ac_fn_cxx_try_compile "$LINENO"; then :
21091   g_have_iso_cxx_varargs=yes
21092 else
21093   g_have_iso_cxx_varargs=no
21094 fi
21095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21096   ac_ext=c
21097 ac_cpp='$CPP $CPPFLAGS'
21098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21101
21102 fi
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5
21104 $as_echo "$g_have_iso_cxx_varargs" >&6; }
21105
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5
21107 $as_echo_n "checking for GNUC varargs macros... " >&6; }
21108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21109 /* end confdefs.h.  */
21110
21111 int
21112 main ()
21113 {
21114
21115 int a(int p1, int p2, int p3);
21116 #define call_a(params...) a(1,params)
21117 call_a(2,3);
21118
21119   ;
21120   return 0;
21121 }
21122 _ACEOF
21123 if ac_fn_c_try_compile "$LINENO"; then :
21124   g_have_gnuc_varargs=yes
21125 else
21126   g_have_gnuc_varargs=no
21127 fi
21128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5
21130 $as_echo "$g_have_gnuc_varargs" >&6; }
21131
21132 # check for GNUC visibility support
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5
21134 $as_echo_n "checking for GNUC visibility attribute... " >&6; }
21135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21136 /* end confdefs.h.  */
21137
21138 void
21139 __attribute__ ((visibility ("hidden")))
21140      f_hidden (void)
21141 {
21142 }
21143 void
21144 __attribute__ ((visibility ("internal")))
21145      f_internal (void)
21146 {
21147 }
21148 void
21149 __attribute__ ((visibility ("protected")))
21150      f_protected (void)
21151 {
21152 }
21153 void
21154 __attribute__ ((visibility ("default")))
21155      f_default (void)
21156 {
21157 }
21158 int main (int argc, char **argv)
21159 {
21160         f_hidden();
21161         f_internal();
21162         f_protected();
21163         f_default();
21164         return 0;
21165 }
21166
21167 _ACEOF
21168 rm -f conftest.$ac_objext
21169 glib_ac_compile_save="$ac_compile"
21170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
21171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21172   (eval $ac_compile) 2>conftest.err
21173   ac_status=$?
21174   if test -s conftest.err; then
21175     grep -v '^ *+' conftest.err >conftest.er1
21176     cat conftest.er1 >&5
21177     mv -f conftest.er1 conftest.err
21178   fi
21179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180   test $ac_status = 0; } &&
21181          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
21182   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21183   (eval $ac_try) 2>&5
21184   ac_status=$?
21185   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21186   test $ac_status = 0; }; }; then :
21187   g_have_gnuc_visibility=yes
21188 else
21189   echo "$as_me: failed program was:" >&5
21190 cat conftest.$ac_ext >&5
21191 g_have_gnuc_visibility=no
21192 fi
21193 ac_compile="$glib_ac_compile_save"
21194 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5
21196 $as_echo "$g_have_gnuc_visibility" >&6; }
21197  if test x$g_have_gnuc_visibility = xyes; then
21198   HAVE_GNUC_VISIBILITY_TRUE=
21199   HAVE_GNUC_VISIBILITY_FALSE='#'
21200 else
21201   HAVE_GNUC_VISIBILITY_TRUE='#'
21202   HAVE_GNUC_VISIBILITY_FALSE=
21203 fi
21204
21205
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5
21207 $as_echo_n "checking whether using Sun Studio C compiler... " >&6; }
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h.  */
21210 #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
21211 #else
21212 # include "error: this is not Sun Studio."
21213 #endif
21214
21215 int
21216 main ()
21217 {
21218
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 if ac_fn_c_try_compile "$LINENO"; then :
21224    g_have_sunstudio_visibility=yes
21225 else
21226    g_have_sunstudio_visibility=no
21227 fi
21228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5
21230 $as_echo "$g_have_sunstudio_visibility" >&6; }
21231  if test x$g_have_sunstudio_visibility = xyes; then
21232   HAVE_SUNSTUDIO_VISIBILITY_TRUE=
21233   HAVE_SUNSTUDIO_VISIBILITY_FALSE='#'
21234 else
21235   HAVE_SUNSTUDIO_VISIBILITY_TRUE='#'
21236   HAVE_SUNSTUDIO_VISIBILITY_FALSE=
21237 fi
21238
21239
21240 # check for bytesex stuff
21241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21242 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21243 if ${ac_cv_c_bigendian+:} false; then :
21244   $as_echo_n "(cached) " >&6
21245 else
21246   ac_cv_c_bigendian=unknown
21247     # See if we're dealing with a universal compiler.
21248     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h.  */
21250 #ifndef __APPLE_CC__
21251                not a universal capable compiler
21252              #endif
21253              typedef int dummy;
21254
21255 _ACEOF
21256 if ac_fn_c_try_compile "$LINENO"; then :
21257
21258         # Check for potential -arch flags.  It is not universal unless
21259         # there are at least two -arch flags with different values.
21260         ac_arch=
21261         ac_prev=
21262         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21263          if test -n "$ac_prev"; then
21264            case $ac_word in
21265              i?86 | x86_64 | ppc | ppc64)
21266                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21267                  ac_arch=$ac_word
21268                else
21269                  ac_cv_c_bigendian=universal
21270                  break
21271                fi
21272                ;;
21273            esac
21274            ac_prev=
21275          elif test "x$ac_word" = "x-arch"; then
21276            ac_prev=arch
21277          fi
21278        done
21279 fi
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281     if test $ac_cv_c_bigendian = unknown; then
21282       # See if sys/param.h defines the BYTE_ORDER macro.
21283       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21284 /* end confdefs.h.  */
21285 #include <sys/types.h>
21286              #include <sys/param.h>
21287
21288 int
21289 main ()
21290 {
21291 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21292                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21293                      && LITTLE_ENDIAN)
21294               bogus endian macros
21295              #endif
21296
21297   ;
21298   return 0;
21299 }
21300 _ACEOF
21301 if ac_fn_c_try_compile "$LINENO"; then :
21302   # It does; now see whether it defined to BIG_ENDIAN or not.
21303          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h.  */
21305 #include <sys/types.h>
21306                 #include <sys/param.h>
21307
21308 int
21309 main ()
21310 {
21311 #if BYTE_ORDER != BIG_ENDIAN
21312                  not big endian
21313                 #endif
21314
21315   ;
21316   return 0;
21317 }
21318 _ACEOF
21319 if ac_fn_c_try_compile "$LINENO"; then :
21320   ac_cv_c_bigendian=yes
21321 else
21322   ac_cv_c_bigendian=no
21323 fi
21324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21325 fi
21326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327     fi
21328     if test $ac_cv_c_bigendian = unknown; then
21329       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21330       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21331 /* end confdefs.h.  */
21332 #include <limits.h>
21333
21334 int
21335 main ()
21336 {
21337 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21338               bogus endian macros
21339              #endif
21340
21341   ;
21342   return 0;
21343 }
21344 _ACEOF
21345 if ac_fn_c_try_compile "$LINENO"; then :
21346   # It does; now see whether it defined to _BIG_ENDIAN or not.
21347          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h.  */
21349 #include <limits.h>
21350
21351 int
21352 main ()
21353 {
21354 #ifndef _BIG_ENDIAN
21355                  not big endian
21356                 #endif
21357
21358   ;
21359   return 0;
21360 }
21361 _ACEOF
21362 if ac_fn_c_try_compile "$LINENO"; then :
21363   ac_cv_c_bigendian=yes
21364 else
21365   ac_cv_c_bigendian=no
21366 fi
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21368 fi
21369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21370     fi
21371     if test $ac_cv_c_bigendian = unknown; then
21372       # Compile a test program.
21373       if test "$cross_compiling" = yes; then :
21374   # Try to guess by grepping values from an object file.
21375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h.  */
21377 short int ascii_mm[] =
21378                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21379                 short int ascii_ii[] =
21380                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21381                 int use_ascii (int i) {
21382                   return ascii_mm[i] + ascii_ii[i];
21383                 }
21384                 short int ebcdic_ii[] =
21385                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21386                 short int ebcdic_mm[] =
21387                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21388                 int use_ebcdic (int i) {
21389                   return ebcdic_mm[i] + ebcdic_ii[i];
21390                 }
21391                 extern int foo;
21392
21393 int
21394 main ()
21395 {
21396 return use_ascii (foo) == use_ebcdic (foo);
21397   ;
21398   return 0;
21399 }
21400 _ACEOF
21401 if ac_fn_c_try_compile "$LINENO"; then :
21402   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21403               ac_cv_c_bigendian=yes
21404             fi
21405             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21406               if test "$ac_cv_c_bigendian" = unknown; then
21407                 ac_cv_c_bigendian=no
21408               else
21409                 # finding both strings is unlikely to happen, but who knows?
21410                 ac_cv_c_bigendian=unknown
21411               fi
21412             fi
21413 fi
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 else
21416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21417 /* end confdefs.h.  */
21418 $ac_includes_default
21419 int
21420 main ()
21421 {
21422
21423              /* Are we little or big endian?  From Harbison&Steele.  */
21424              union
21425              {
21426                long int l;
21427                char c[sizeof (long int)];
21428              } u;
21429              u.l = 1;
21430              return u.c[sizeof (long int) - 1] == 1;
21431
21432   ;
21433   return 0;
21434 }
21435 _ACEOF
21436 if ac_fn_c_try_run "$LINENO"; then :
21437   ac_cv_c_bigendian=no
21438 else
21439   ac_cv_c_bigendian=yes
21440 fi
21441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21442   conftest.$ac_objext conftest.beam conftest.$ac_ext
21443 fi
21444
21445     fi
21446 fi
21447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21448 $as_echo "$ac_cv_c_bigendian" >&6; }
21449  case $ac_cv_c_bigendian in #(
21450    yes)
21451      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21452 ;; #(
21453    no)
21454       ;; #(
21455    universal)
21456
21457 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21458
21459      ;; #(
21460    *)
21461      as_fn_error $? "unknown endianness
21462  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21463  esac
21464
21465 if test x$ac_cv_c_bigendian = xuniversal ; then
21466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21467 /* end confdefs.h.  */
21468 #include <endian.h>
21469 int
21470 main ()
21471 {
21472 #if __BYTE_ORDER == __BIG_ENDIAN
21473 #else
21474 #error Not a big endian.
21475 #endif
21476   ;
21477   return 0;
21478 }
21479 _ACEOF
21480 if ac_fn_c_try_compile "$LINENO"; then :
21481   ac_cv_c_bigendian=yes
21482
21483 else
21484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h.  */
21486 #include <endian.h>
21487 int
21488 main ()
21489 {
21490 #if __BYTE_ORDER == __LITTLE_ENDIAN
21491 #else
21492 #error Not a little endian.
21493 #endif
21494   ;
21495   return 0;
21496 }
21497 _ACEOF
21498 if ac_fn_c_try_compile "$LINENO"; then :
21499   ac_cv_c_bigendian=no
21500
21501 else
21502   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine endianness." >&5
21503 $as_echo "$as_me: WARNING: Could not determine endianness." >&2;}
21504 fi
21505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21506 fi
21507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21508 fi
21509
21510
21511 # check for header files
21512 for ac_header in dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h
21513 do :
21514   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21515 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21516 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21517   cat >>confdefs.h <<_ACEOF
21518 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21519 _ACEOF
21520
21521 fi
21522
21523 done
21524
21525 for ac_header in sys/time.h sys/times.h sys/wait.h unistd.h values.h
21526 do :
21527   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21528 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21530   cat >>confdefs.h <<_ACEOF
21531 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21532 _ACEOF
21533
21534 fi
21535
21536 done
21537
21538 for ac_header in sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h
21539 do :
21540   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21541 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21542 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21543   cat >>confdefs.h <<_ACEOF
21544 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21545 _ACEOF
21546
21547 fi
21548
21549 done
21550
21551 for ac_header in sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h
21552 do :
21553   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21554 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21555 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21556   cat >>confdefs.h <<_ACEOF
21557 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21558 _ACEOF
21559
21560 fi
21561
21562 done
21563
21564 for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h
21565 do :
21566   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21567 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21569   cat >>confdefs.h <<_ACEOF
21570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21571 _ACEOF
21572
21573 fi
21574
21575 done
21576
21577 for ac_header in sys/uio.h sys/mkdev.h
21578 do :
21579   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21580 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21581 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21582   cat >>confdefs.h <<_ACEOF
21583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21584 _ACEOF
21585
21586 fi
21587
21588 done
21589
21590 for ac_header in linux/magic.h
21591 do :
21592   ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
21593 if test "x$ac_cv_header_linux_magic_h" = xyes; then :
21594   cat >>confdefs.h <<_ACEOF
21595 #define HAVE_LINUX_MAGIC_H 1
21596 _ACEOF
21597
21598 fi
21599
21600 done
21601
21602 for ac_header in sys/prctl.h
21603 do :
21604   ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
21605 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
21606   cat >>confdefs.h <<_ACEOF
21607 #define HAVE_SYS_PRCTL_H 1
21608 _ACEOF
21609
21610 fi
21611
21612 done
21613
21614
21615 for ac_header in sys/mount.h sys/sysctl.h
21616 do :
21617   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21618 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_SYS_PARAM_H
21619  #include <sys/param.h>
21620  #endif
21621
21622 "
21623 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21624   cat >>confdefs.h <<_ACEOF
21625 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21626 _ACEOF
21627
21628 fi
21629
21630 done
21631
21632
21633 for ac_header in xlocale.h
21634 do :
21635   ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
21636 if test "x$ac_cv_header_xlocale_h" = xyes; then :
21637   cat >>confdefs.h <<_ACEOF
21638 #define HAVE_XLOCALE_H 1
21639 _ACEOF
21640
21641 fi
21642
21643 done
21644
21645
21646 # check for structure fields
21647 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
21648 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
21649
21650 cat >>confdefs.h <<_ACEOF
21651 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
21652 _ACEOF
21653
21654
21655 fi
21656 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
21657 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
21658
21659 cat >>confdefs.h <<_ACEOF
21660 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
21661 _ACEOF
21662
21663
21664 fi
21665 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
21666 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
21667
21668 cat >>confdefs.h <<_ACEOF
21669 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
21670 _ACEOF
21671
21672
21673 fi
21674 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
21675 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
21676
21677 cat >>confdefs.h <<_ACEOF
21678 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
21679 _ACEOF
21680
21681
21682 fi
21683 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
21684 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
21685
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
21688 _ACEOF
21689
21690
21691 fi
21692 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
21693 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
21694
21695 cat >>confdefs.h <<_ACEOF
21696 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
21697 _ACEOF
21698
21699
21700 fi
21701
21702 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h>
21703 #include <sys/stat.h>
21704 #include <unistd.h>
21705 #ifdef HAVE_SYS_STATFS_H
21706 #include <sys/statfs.h>
21707 #endif
21708 #ifdef HAVE_SYS_PARAM_H
21709 #include <sys/param.h>
21710 #endif
21711 #ifdef HAVE_SYS_MOUNT_H
21712 #include <sys/mount.h>
21713 #endif
21714 "
21715 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
21716
21717 cat >>confdefs.h <<_ACEOF
21718 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
21719 _ACEOF
21720
21721
21722 fi
21723 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h>
21724 #include <sys/stat.h>
21725 #include <unistd.h>
21726 #ifdef HAVE_SYS_STATFS_H
21727 #include <sys/statfs.h>
21728 #endif
21729 #ifdef HAVE_SYS_PARAM_H
21730 #include <sys/param.h>
21731 #endif
21732 #ifdef HAVE_SYS_MOUNT_H
21733 #include <sys/mount.h>
21734 #endif
21735 "
21736 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
21737
21738 cat >>confdefs.h <<_ACEOF
21739 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
21740 _ACEOF
21741
21742
21743 fi
21744 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
21745 #include <sys/stat.h>
21746 #include <unistd.h>
21747 #ifdef HAVE_SYS_STATFS_H
21748 #include <sys/statfs.h>
21749 #endif
21750 #ifdef HAVE_SYS_PARAM_H
21751 #include <sys/param.h>
21752 #endif
21753 #ifdef HAVE_SYS_MOUNT_H
21754 #include <sys/mount.h>
21755 #endif
21756 "
21757 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
21758
21759 cat >>confdefs.h <<_ACEOF
21760 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
21761 _ACEOF
21762
21763
21764 fi
21765 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
21766 #include <sys/stat.h>
21767 #include <unistd.h>
21768 #ifdef HAVE_SYS_STATFS_H
21769 #include <sys/statfs.h>
21770 #endif
21771 #ifdef HAVE_SYS_PARAM_H
21772 #include <sys/param.h>
21773 #endif
21774 #ifdef HAVE_SYS_MOUNT_H
21775 #include <sys/mount.h>
21776 #endif
21777 "
21778 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
21779
21780 cat >>confdefs.h <<_ACEOF
21781 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
21782 _ACEOF
21783
21784
21785 fi
21786
21787 # struct statvfs.f_basetype is available on Solaris but not for Linux.
21788 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
21789 "
21790 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
21791
21792 cat >>confdefs.h <<_ACEOF
21793 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
21794 _ACEOF
21795
21796
21797 fi
21798
21799 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
21800 "
21801 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
21802
21803 cat >>confdefs.h <<_ACEOF
21804 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
21805 _ACEOF
21806
21807
21808 fi
21809
21810 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
21811 "
21812 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
21813
21814 cat >>confdefs.h <<_ACEOF
21815 #define HAVE_STRUCT_TM_TM_GMTOFF 1
21816 _ACEOF
21817
21818
21819 fi
21820 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
21821 "
21822 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
21823
21824 cat >>confdefs.h <<_ACEOF
21825 #define HAVE_STRUCT_TM___TM_GMTOFF 1
21826 _ACEOF
21827
21828
21829 fi
21830
21831
21832 ac_header_dirent=no
21833 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21834   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21836 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21837 if eval \${$as_ac_Header+:} false; then :
21838   $as_echo_n "(cached) " >&6
21839 else
21840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21841 /* end confdefs.h.  */
21842 #include <sys/types.h>
21843 #include <$ac_hdr>
21844
21845 int
21846 main ()
21847 {
21848 if ((DIR *) 0)
21849 return 0;
21850   ;
21851   return 0;
21852 }
21853 _ACEOF
21854 if ac_fn_c_try_compile "$LINENO"; then :
21855   eval "$as_ac_Header=yes"
21856 else
21857   eval "$as_ac_Header=no"
21858 fi
21859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21860 fi
21861 eval ac_res=\$$as_ac_Header
21862                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21863 $as_echo "$ac_res" >&6; }
21864 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21865   cat >>confdefs.h <<_ACEOF
21866 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21867 _ACEOF
21868
21869 ac_header_dirent=$ac_hdr; break
21870 fi
21871
21872 done
21873 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21874 if test $ac_header_dirent = dirent.h; then
21875   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21876 $as_echo_n "checking for library containing opendir... " >&6; }
21877 if ${ac_cv_search_opendir+:} false; then :
21878   $as_echo_n "(cached) " >&6
21879 else
21880   ac_func_search_save_LIBS=$LIBS
21881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882 /* end confdefs.h.  */
21883
21884 /* Override any GCC internal prototype to avoid an error.
21885    Use char because int might match the return type of a GCC
21886    builtin and then its argument prototype would still apply.  */
21887 #ifdef __cplusplus
21888 extern "C"
21889 #endif
21890 char opendir ();
21891 int
21892 main ()
21893 {
21894 return opendir ();
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 for ac_lib in '' dir; do
21900   if test -z "$ac_lib"; then
21901     ac_res="none required"
21902   else
21903     ac_res=-l$ac_lib
21904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21905   fi
21906   if ac_fn_c_try_link "$LINENO"; then :
21907   ac_cv_search_opendir=$ac_res
21908 fi
21909 rm -f core conftest.err conftest.$ac_objext \
21910     conftest$ac_exeext
21911   if ${ac_cv_search_opendir+:} false; then :
21912   break
21913 fi
21914 done
21915 if ${ac_cv_search_opendir+:} false; then :
21916
21917 else
21918   ac_cv_search_opendir=no
21919 fi
21920 rm conftest.$ac_ext
21921 LIBS=$ac_func_search_save_LIBS
21922 fi
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21924 $as_echo "$ac_cv_search_opendir" >&6; }
21925 ac_res=$ac_cv_search_opendir
21926 if test "$ac_res" != no; then :
21927   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21928
21929 fi
21930
21931 else
21932   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21933 $as_echo_n "checking for library containing opendir... " >&6; }
21934 if ${ac_cv_search_opendir+:} false; then :
21935   $as_echo_n "(cached) " >&6
21936 else
21937   ac_func_search_save_LIBS=$LIBS
21938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21939 /* end confdefs.h.  */
21940
21941 /* Override any GCC internal prototype to avoid an error.
21942    Use char because int might match the return type of a GCC
21943    builtin and then its argument prototype would still apply.  */
21944 #ifdef __cplusplus
21945 extern "C"
21946 #endif
21947 char opendir ();
21948 int
21949 main ()
21950 {
21951 return opendir ();
21952   ;
21953   return 0;
21954 }
21955 _ACEOF
21956 for ac_lib in '' x; do
21957   if test -z "$ac_lib"; then
21958     ac_res="none required"
21959   else
21960     ac_res=-l$ac_lib
21961     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21962   fi
21963   if ac_fn_c_try_link "$LINENO"; then :
21964   ac_cv_search_opendir=$ac_res
21965 fi
21966 rm -f core conftest.err conftest.$ac_objext \
21967     conftest$ac_exeext
21968   if ${ac_cv_search_opendir+:} false; then :
21969   break
21970 fi
21971 done
21972 if ${ac_cv_search_opendir+:} false; then :
21973
21974 else
21975   ac_cv_search_opendir=no
21976 fi
21977 rm conftest.$ac_ext
21978 LIBS=$ac_func_search_save_LIBS
21979 fi
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21981 $as_echo "$ac_cv_search_opendir" >&6; }
21982 ac_res=$ac_cv_search_opendir
21983 if test "$ac_res" != no; then :
21984   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21985
21986 fi
21987
21988 fi
21989
21990
21991
21992   ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
21993 #include <sys/types.h>
21994 #ifdef HAVE_DIRENT_H
21995 # include <dirent.h>
21996 #else
21997 # define dirent direct
21998 # ifdef HAVE_SYS_NDIR_H
21999 #  include <sys/ndir.h>
22000 # endif
22001 # ifdef HAVE_SYS_DIR_H
22002 #  include <sys/dir.h>
22003 # endif
22004 # ifdef HAVE_NDIR_H
22005 #  include <ndir.h>
22006 # endif
22007 #endif
22008
22009 "
22010 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
22011
22012 cat >>confdefs.h <<_ACEOF
22013 #define HAVE_STRUCT_DIRENT_D_TYPE 1
22014 _ACEOF
22015
22016
22017 fi
22018
22019
22020
22021 # Checks for libcharset
22022
22023   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
22024 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
22025 if ${am_cv_langinfo_codeset+:} false; then :
22026   $as_echo_n "(cached) " >&6
22027 else
22028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h.  */
22030 #include <langinfo.h>
22031 int
22032 main ()
22033 {
22034 char* cs = nl_langinfo(CODESET);
22035   ;
22036   return 0;
22037 }
22038 _ACEOF
22039 if ac_fn_c_try_link "$LINENO"; then :
22040   am_cv_langinfo_codeset=yes
22041 else
22042   am_cv_langinfo_codeset=no
22043 fi
22044 rm -f core conftest.err conftest.$ac_objext \
22045     conftest$ac_exeext conftest.$ac_ext
22046
22047 fi
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
22049 $as_echo "$am_cv_langinfo_codeset" >&6; }
22050   if test $am_cv_langinfo_codeset = yes; then
22051
22052 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
22053
22054   fi
22055
22056 for ac_header in stddef.h stdlib.h string.h
22057 do :
22058   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22059 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22060 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22061   cat >>confdefs.h <<_ACEOF
22062 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22063 _ACEOF
22064
22065 fi
22066
22067 done
22068
22069 for ac_func in setlocale
22070 do :
22071   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
22072 if test "x$ac_cv_func_setlocale" = xyes; then :
22073   cat >>confdefs.h <<_ACEOF
22074 #define HAVE_SETLOCALE 1
22075 _ACEOF
22076
22077 fi
22078 done
22079
22080
22081 # check additional type sizes
22082 # The cast to long int works around a bug in the HP C Compiler
22083 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22084 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22085 # This bug is HP SR number 8606223364.
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22087 $as_echo_n "checking size of size_t... " >&6; }
22088 if ${ac_cv_sizeof_size_t+:} false; then :
22089   $as_echo_n "(cached) " >&6
22090 else
22091   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
22092
22093 else
22094   if test "$ac_cv_type_size_t" = yes; then
22095      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22097 as_fn_error 77 "cannot compute sizeof (size_t)
22098 See \`config.log' for more details" "$LINENO" 5; }
22099    else
22100      ac_cv_sizeof_size_t=0
22101    fi
22102 fi
22103
22104 fi
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22106 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22107
22108
22109
22110 cat >>confdefs.h <<_ACEOF
22111 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22112 _ACEOF
22113
22114
22115
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5
22117 $as_echo_n "checking for the appropriate definition for size_t... " >&6; }
22118
22119 case $ac_cv_sizeof_size_t in
22120   $ac_cv_sizeof_short)
22121       glib_size_type=short
22122       ;;
22123   $ac_cv_sizeof_int)
22124       glib_size_type=int
22125       ;;
22126   $ac_cv_sizeof_long)
22127       glib_size_type=long
22128       ;;
22129   $ac_cv_sizeof_long_long)
22130       glib_size_type='long long'
22131       ;;
22132   $ac_cv_sizeof__int64)
22133       glib_size_type='__int64'
22134       ;;
22135   *)  as_fn_error $? "No type matching size_t in size" "$LINENO" 5
22136       ;;
22137 esac
22138
22139 if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
22140    test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
22141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22142 /* end confdefs.h.  */
22143
22144 #if defined(_AIX) && !defined(__GNUC__)
22145 #pragma options langlvl=stdc89
22146 #endif
22147 #include <stddef.h>
22148 int main ()
22149 {
22150   size_t s = 1;
22151   unsigned int *size_int = &s;
22152   return (int)*size_int;
22153 }
22154
22155 _ACEOF
22156 rm -f conftest.$ac_objext
22157 glib_ac_compile_save="$ac_compile"
22158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22160   (eval $ac_compile) 2>conftest.err
22161   ac_status=$?
22162   if test -s conftest.err; then
22163     grep -v '^ *+' conftest.err >conftest.er1
22164     cat conftest.er1 >&5
22165     mv -f conftest.er1 conftest.err
22166   fi
22167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22168   test $ac_status = 0; } &&
22169          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22170   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22171   (eval $ac_try) 2>&5
22172   ac_status=$?
22173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22174   test $ac_status = 0; }; }; then :
22175   glib_size_type=int
22176 else
22177   echo "$as_me: failed program was:" >&5
22178 cat conftest.$ac_ext >&5
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h.  */
22181
22182 #if defined(_AIX) && !defined(__GNUC__)
22183 #pragma options langlvl=stdc89
22184 #endif
22185 #include <stddef.h>
22186 int main ()
22187 {
22188    size_t s = 1;
22189    unsigned long *size_long = &s;
22190    return (int)*size_long;
22191 }
22192
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 glib_ac_compile_save="$ac_compile"
22196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22198   (eval $ac_compile) 2>conftest.err
22199   ac_status=$?
22200   if test -s conftest.err; then
22201     grep -v '^ *+' conftest.err >conftest.er1
22202     cat conftest.er1 >&5
22203     mv -f conftest.er1 conftest.err
22204   fi
22205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22206   test $ac_status = 0; } &&
22207          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22208   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209   (eval $ac_try) 2>&5
22210   ac_status=$?
22211   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212   test $ac_status = 0; }; }; then :
22213   glib_size_type=long
22214 else
22215   echo "$as_me: failed program was:" >&5
22216 cat conftest.$ac_ext >&5
22217 fi
22218 ac_compile="$glib_ac_compile_save"
22219 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22220 fi
22221 ac_compile="$glib_ac_compile_save"
22222 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22223 fi
22224
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5
22226 $as_echo "unsigned $glib_size_type" >&6; }
22227
22228 # Check for some functions
22229 for ac_func in lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem
22230 do :
22231   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22234   cat >>confdefs.h <<_ACEOF
22235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22236 _ACEOF
22237
22238 fi
22239 done
22240
22241 for ac_func in chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid
22242 do :
22243   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22244 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22245 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22246   cat >>confdefs.h <<_ACEOF
22247 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22248 _ACEOF
22249
22250 fi
22251 done
22252
22253 for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat
22254 do :
22255   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22256 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22257 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22258   cat >>confdefs.h <<_ACEOF
22259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22260 _ACEOF
22261
22262 fi
22263 done
22264
22265 # Check for high-resolution sleep functions
22266 for ac_func in splice
22267 do :
22268   ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
22269 if test "x$ac_cv_func_splice" = xyes; then :
22270   cat >>confdefs.h <<_ACEOF
22271 #define HAVE_SPLICE 1
22272 _ACEOF
22273
22274 fi
22275 done
22276
22277 for ac_func in prlimit
22278 do :
22279   ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
22280 if test "x$ac_cv_func_prlimit" = xyes; then :
22281   cat >>confdefs.h <<_ACEOF
22282 #define HAVE_PRLIMIT 1
22283 _ACEOF
22284
22285 fi
22286 done
22287
22288
22289 # To avoid finding a compatibility unusable statfs, which typically
22290 # successfully compiles, but warns to use the newer statvfs interface:
22291 if test $ac_cv_header_sys_statvfs_h = yes; then :
22292   for ac_func in statvfs
22293 do :
22294   ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
22295 if test "x$ac_cv_func_statvfs" = xyes; then :
22296   cat >>confdefs.h <<_ACEOF
22297 #define HAVE_STATVFS 1
22298 _ACEOF
22299
22300 fi
22301 done
22302
22303 fi
22304 if test $ac_cv_header_sys_statfs_h  = yes -o $ac_cv_header_sys_mount_h = yes; then :
22305   for ac_func in statfs
22306 do :
22307   ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
22308 if test "x$ac_cv_func_statfs" = xyes; then :
22309   cat >>confdefs.h <<_ACEOF
22310 #define HAVE_STATFS 1
22311 _ACEOF
22312
22313 fi
22314 done
22315
22316 fi
22317
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statfs or statvfs" >&5
22319 $as_echo_n "checking whether to use statfs or statvfs... " >&6; }
22320 # Some systems have both statfs and statvfs, pick the most "native" for these
22321 if test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes; then :
22322
22323    # on solaris and irix, statfs doesn't even have the f_bavail field
22324    if test x$ac_cv_member_struct_statfs_f_bavail = xno; then :
22325   ac_cv_func_statfs=no
22326 else
22327   # else, at least on linux, statfs is the actual syscall
22328       ac_cv_func_statvfs=no
22329 fi
22330
22331 fi
22332
22333 if test x$ac_cv_func_statfs = xyes; then :
22334
22335
22336 $as_echo "#define USE_STATFS 1" >>confdefs.h
22337
22338          { $as_echo "$as_me:${as_lineno-$LINENO}: result: statfs" >&5
22339 $as_echo "statfs" >&6; }
22340
22341 elif test x$ac_cv_func_statvfs = xyes; then :
22342
22343
22344 $as_echo "#define USE_STATVFS 1" >>confdefs.h
22345
22346          { $as_echo "$as_me:${as_lineno-$LINENO}: result: statvfs" >&5
22347 $as_echo "statvfs" >&6; }
22348
22349 else
22350     { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither" >&5
22351 $as_echo "neither" >&6; }
22352 fi
22353
22354 for ac_header in crt_externs.h
22355 do :
22356   ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
22357 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
22358   cat >>confdefs.h <<_ACEOF
22359 #define HAVE_CRT_EXTERNS_H 1
22360 _ACEOF
22361
22362 fi
22363
22364 done
22365
22366 for ac_func in _NSGetEnviron
22367 do :
22368   ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
22369 if test "x$ac_cv_func__NSGetEnviron" = xyes; then :
22370   cat >>confdefs.h <<_ACEOF
22371 #define HAVE__NSGETENVIRON 1
22372 _ACEOF
22373
22374 fi
22375 done
22376
22377
22378 for ac_func in newlocale uselocale strtod_l strtoll_l strtoull_l
22379 do :
22380   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22382 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22383   cat >>confdefs.h <<_ACEOF
22384 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22385 _ACEOF
22386
22387 fi
22388 done
22389
22390
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
22392 $as_echo_n "checking for C99 vsnprintf... " >&6; }
22393 if ${ac_cv_func_vsnprintf_c99+:} false; then :
22394   $as_echo_n "(cached) " >&6
22395 else
22396   if test "$cross_compiling" = yes; then :
22397   ac_cv_func_vsnprintf_c99=no
22398 else
22399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22400 /* end confdefs.h.  */
22401 #include <stdio.h>
22402 #include <stdarg.h>
22403
22404 int
22405 doit(char * s, ...)
22406 {
22407   char buffer[32];
22408   va_list args;
22409   int r;
22410
22411   va_start(args, s);
22412   r = vsnprintf(buffer, 5, s, args);
22413   va_end(args);
22414
22415   if (r != 7)
22416     exit(1);
22417
22418   /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf()
22419      implementation. The above will return 7 but if you replace
22420      the size of the buffer with 0, it borks! */
22421   va_start(args, s);
22422   r = vsnprintf(buffer, 0, s, args);
22423   va_end(args);
22424
22425   if (r != 7)
22426     exit(1);
22427
22428   exit(0);
22429 }
22430
22431 int
22432 main(void)
22433 {
22434   doit("1234567");
22435   exit(1);
22436 }
22437 _ACEOF
22438 if ac_fn_c_try_run "$LINENO"; then :
22439   ac_cv_func_vsnprintf_c99=yes
22440 else
22441   ac_cv_func_vsnprintf_c99=no
22442 fi
22443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22444   conftest.$ac_objext conftest.beam conftest.$ac_ext
22445 fi
22446
22447 fi
22448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5
22449 $as_echo "$ac_cv_func_vsnprintf_c99" >&6; }
22450 if test $ac_cv_func_vsnprintf_c99 = yes; then
22451
22452 $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
22453
22454 fi
22455
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5
22457 $as_echo_n "checking whether printf supports positional parameters... " >&6; }
22458 if ${ac_cv_func_printf_unix98+:} false; then :
22459   $as_echo_n "(cached) " >&6
22460 else
22461   if test "$cross_compiling" = yes; then :
22462   ac_cv_func_printf_unix98=no
22463 else
22464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h.  */
22466 #include <stdio.h>
22467
22468 int
22469 main (void)
22470 {
22471   char buffer[128];
22472
22473   sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
22474   if (strcmp ("2 3 1", buffer) == 0)
22475     exit (0);
22476   exit (1);
22477 }
22478 _ACEOF
22479 if ac_fn_c_try_run "$LINENO"; then :
22480   ac_cv_func_printf_unix98=yes
22481 else
22482   ac_cv_func_printf_unix98=no
22483 fi
22484 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22485   conftest.$ac_objext conftest.beam conftest.$ac_ext
22486 fi
22487
22488 fi
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5
22490 $as_echo "$ac_cv_func_printf_unix98" >&6; }
22491 if test $ac_cv_func_printf_unix98 = yes; then
22492
22493 $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h
22494
22495 fi
22496
22497
22498 # Internet address families
22499 if test $glib_native_win32 = yes; then
22500   glib_inet_includes="
22501 #include <winsock2.h>
22502   "
22503 else
22504   glib_inet_includes="
22505 #include <sys/types.h>
22506 #include <sys/socket.h>
22507   "
22508 fi
22509
22510 glib_failed=false
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5
22512 $as_echo_n "checking value of AF_INET... " >&6; }
22513 if ${glib_cv_value_AF_INET+:} false; then :
22514   $as_echo_n "(cached) " >&6
22515 else
22516   if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET"        "$glib_inet_includes"; then :
22517
22518 else
22519   glib_failed=true
22520 fi
22521
22522
22523 fi
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5
22525 $as_echo "$glib_cv_value_AF_INET" >&6; }
22526
22527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5
22528 $as_echo_n "checking value of AF_INET6... " >&6; }
22529 if ${glib_cv_value_AF_INET6+:} false; then :
22530   $as_echo_n "(cached) " >&6
22531 else
22532   if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6"        "$glib_inet_includes"; then :
22533
22534 else
22535   glib_failed=true
22536 fi
22537
22538
22539 fi
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5
22541 $as_echo "$glib_cv_value_AF_INET6" >&6; }
22542
22543 # winsock defines this even though it doesn't support it
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5
22545 $as_echo_n "checking value of AF_UNIX... " >&6; }
22546 if ${glib_cv_value_AF_UNIX+:} false; then :
22547   $as_echo_n "(cached) " >&6
22548 else
22549   if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX"        "$glib_inet_includes"; then :
22550
22551 else
22552   glib_failed=true
22553 fi
22554
22555
22556 fi
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5
22558 $as_echo "$glib_cv_value_AF_UNIX" >&6; }
22559
22560 if $glib_failed ; then
22561   as_fn_error $? "Could not determine values for AF_INET* constants" "$LINENO" 5
22562 fi
22563
22564 glib_failed=false
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5
22566 $as_echo_n "checking value of MSG_PEEK... " >&6; }
22567 if ${glib_cv_value_MSG_PEEK+:} false; then :
22568   $as_echo_n "(cached) " >&6
22569 else
22570   if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK"        "$glib_inet_includes"; then :
22571
22572 else
22573   glib_failed=true
22574 fi
22575
22576
22577 fi
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5
22579 $as_echo "$glib_cv_value_MSG_PEEK" >&6; }
22580
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5
22582 $as_echo_n "checking value of MSG_OOB... " >&6; }
22583 if ${glib_cv_value_MSG_OOB+:} false; then :
22584   $as_echo_n "(cached) " >&6
22585 else
22586   if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB"        "$glib_inet_includes"; then :
22587
22588 else
22589   glib_failed=true
22590 fi
22591
22592
22593 fi
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5
22595 $as_echo "$glib_cv_value_MSG_OOB" >&6; }
22596
22597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5
22598 $as_echo_n "checking value of MSG_DONTROUTE... " >&6; }
22599 if ${glib_cv_value_MSG_DONTROUTE+:} false; then :
22600   $as_echo_n "(cached) " >&6
22601 else
22602   if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE"        "$glib_inet_includes"; then :
22603
22604 else
22605   glib_failed=true
22606 fi
22607
22608
22609 fi
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5
22611 $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; }
22612
22613 if $glib_failed ; then
22614   as_fn_error $? "Could not determine values for MSG_* constants" "$LINENO" 5
22615 fi
22616
22617 for ac_func in getprotobyname_r endservent if_nametoindex
22618 do :
22619   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22620 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22621 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22622   cat >>confdefs.h <<_ACEOF
22623 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22624 _ACEOF
22625
22626 fi
22627 done
22628
22629 for ac_header in netdb.h wspiapi.h arpa/nameser_compat.h
22630 do :
22631   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22632 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22633 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22634   cat >>confdefs.h <<_ACEOF
22635 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22636 _ACEOF
22637
22638 fi
22639
22640 done
22641
22642
22643 if test $glib_native_win32 = no; then
22644   # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
22645   NETWORK_LIBS=""
22646   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5
22647 $as_echo_n "checking for res_query... " >&6; }
22648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22649 /* end confdefs.h.  */
22650 #include <sys/types.h>
22651                #include <netinet/in.h>
22652                #include <arpa/nameser.h>
22653                #include <resolv.h>
22654
22655 int
22656 main ()
22657 {
22658
22659                res_query("test", 0, 0, (void *)0, 0);
22660
22661   ;
22662   return 0;
22663 }
22664 _ACEOF
22665 if ac_fn_c_try_link "$LINENO"; then :
22666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22667 $as_echo "yes" >&6; }
22668 else
22669   save_libs="$LIBS"
22670                LIBS="-lresolv $LIBS"
22671                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22672 /* end confdefs.h.  */
22673 #include <sys/types.h>
22674                             #include <netinet/in.h>
22675                             #include <arpa/nameser.h>
22676                             #include <resolv.h>
22677
22678 int
22679 main ()
22680 {
22681
22682                             res_query("test", 0, 0, (void *)0, 0);
22683
22684   ;
22685   return 0;
22686 }
22687 _ACEOF
22688 if ac_fn_c_try_link "$LINENO"; then :
22689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5
22690 $as_echo "in -lresolv" >&6; }
22691                               NETWORK_LIBS="-lresolv $NETWORK_LIBS"
22692 else
22693   LIBS="-lbind $save_libs"
22694                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22695 /* end confdefs.h.  */
22696 #include <resolv.h>
22697 int
22698 main ()
22699 {
22700 res_query("test", 0, 0, (void *)0, 0);
22701   ;
22702   return 0;
22703 }
22704 _ACEOF
22705 if ac_fn_c_try_link "$LINENO"; then :
22706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5
22707 $as_echo "in -lbind" >&6; }
22708                                          NETWORK_LIBS="-lbind $NETWORK_LIBS"
22709 else
22710   as_fn_error $? "not found" "$LINENO" 5
22711 fi
22712 rm -f core conftest.err conftest.$ac_objext \
22713     conftest$ac_exeext conftest.$ac_ext
22714 fi
22715 rm -f core conftest.err conftest.$ac_objext \
22716     conftest$ac_exeext conftest.$ac_ext
22717                LIBS="$save_libs"
22718 fi
22719 rm -f core conftest.err conftest.$ac_objext \
22720     conftest$ac_exeext conftest.$ac_ext
22721   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22722 if test "x$ac_cv_func_socket" = xyes; then :
22723   :
22724 else
22725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22726 $as_echo_n "checking for socket in -lsocket... " >&6; }
22727 if ${ac_cv_lib_socket_socket+:} false; then :
22728   $as_echo_n "(cached) " >&6
22729 else
22730   ac_check_lib_save_LIBS=$LIBS
22731 LIBS="-lsocket  $LIBS"
22732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22733 /* end confdefs.h.  */
22734
22735 /* Override any GCC internal prototype to avoid an error.
22736    Use char because int might match the return type of a GCC
22737    builtin and then its argument prototype would still apply.  */
22738 #ifdef __cplusplus
22739 extern "C"
22740 #endif
22741 char socket ();
22742 int
22743 main ()
22744 {
22745 return socket ();
22746   ;
22747   return 0;
22748 }
22749 _ACEOF
22750 if ac_fn_c_try_link "$LINENO"; then :
22751   ac_cv_lib_socket_socket=yes
22752 else
22753   ac_cv_lib_socket_socket=no
22754 fi
22755 rm -f core conftest.err conftest.$ac_objext \
22756     conftest$ac_exeext conftest.$ac_ext
22757 LIBS=$ac_check_lib_save_LIBS
22758 fi
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22760 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22761 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22762   NETWORK_LIBS="-lsocket $NETWORK_LIBS"
22763 else
22764   as_fn_error $? "Could not find socket()" "$LINENO" 5
22765 fi
22766
22767 fi
22768
22769 fi
22770
22771
22772 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
22773 "
22774 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
22775
22776 $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
22777
22778 fi
22779
22780
22781  if test "$ac_cv_header_linux_netlink_h" = "yes"; then
22782   HAVE_NETLINK_TRUE=
22783   HAVE_NETLINK_FALSE='#'
22784 else
22785   HAVE_NETLINK_TRUE='#'
22786   HAVE_NETLINK_FALSE=
22787 fi
22788
22789
22790 ac_fn_c_check_type "$LINENO" "struct ip_mreqn" "ac_cv_type_struct_ip_mreqn" "#include <netinet/in.h>
22791 "
22792 if test "x$ac_cv_type_struct_ip_mreqn" = xyes; then :
22793
22794
22795 $as_echo "#define HAVE_IP_MREQN /**/" >>confdefs.h
22796
22797 fi
22798
22799
22800 case $host in
22801   *-*-solaris* )
22802
22803 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
22804
22805
22806 $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h
22807
22808
22809 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
22810
22811      ;;
22812 esac
22813
22814 if test "$ac_cv_func_statfs" = yes ; then
22815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5
22816 $as_echo_n "checking number of arguments to statfs()... " >&6; }
22817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22818 /* end confdefs.h.  */
22819 #include <unistd.h>
22820   #ifdef HAVE_SYS_PARAM_H
22821   #include <sys/param.h>
22822   #endif
22823   #ifdef HAVE_SYS_VFS_H
22824   #include <sys/vfs.h>
22825   #endif
22826   #ifdef HAVE_SYS_MOUNT_H
22827   #include <sys/mount.h>
22828   #endif
22829   #ifdef HAVE_SYS_STATFS_H
22830   #include <sys/statfs.h>
22831   #endif
22832 int
22833 main ()
22834 {
22835 struct statfs st;
22836   statfs(NULL, &st);
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 if ac_fn_c_try_compile "$LINENO"; then :
22842
22843     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
22844 $as_echo "2" >&6; }
22845
22846 $as_echo "#define STATFS_ARGS 2" >>confdefs.h
22847
22848 else
22849
22850     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22851 /* end confdefs.h.  */
22852 #include <unistd.h>
22853   #ifdef HAVE_SYS_PARAM_H
22854   #include <sys/param.h>
22855   #endif
22856   #ifdef HAVE_SYS_VFS_H
22857   #include <sys/vfs.h>
22858   #endif
22859   #ifdef HAVE_SYS_MOUNT_H
22860   #include <sys/mount.h>
22861   #endif
22862   #ifdef HAVE_SYS_STATFS_H
22863   #include <sys/statfs.h>
22864   #endif
22865 int
22866 main ()
22867 {
22868 struct statfs st;
22869   statfs(NULL, &st, sizeof (st), 0);
22870   ;
22871   return 0;
22872 }
22873 _ACEOF
22874 if ac_fn_c_try_compile "$LINENO"; then :
22875
22876       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
22877 $as_echo "4" >&6; }
22878
22879 $as_echo "#define STATFS_ARGS 4" >>confdefs.h
22880
22881 else
22882
22883       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
22884 $as_echo "unknown" >&6; }
22885       as_fn_error $? "unable to determine number of arguments to statfs()" "$LINENO" 5
22886 fi
22887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22888 fi
22889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22890 fi
22891
22892 #
22893 # Check whether to use an included printf
22894 #
22895
22896 # Check whether --enable-included-printf was given.
22897 if test "${enable_included_printf+set}" = set; then :
22898   enableval=$enable_included_printf; enable_included_printf="$enableval"
22899 fi
22900
22901
22902 need_included_printf=no
22903 if test "x$enable_included_printf" = "xyes" ; then
22904   need_included_printf=yes
22905 fi
22906 if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
22907   need_included_printf=yes
22908 fi
22909 if test "$ac_cv_func_printf_unix98" != "yes" ; then
22910   need_included_printf=yes
22911 fi
22912 if test "x$ac_cv_sizeof_long_long" = "x8" &&
22913    test -z "$glib_cv_long_long_format" ; then
22914   need_included_printf=yes
22915 fi
22916
22917 if test "x$enable_included_printf" = "xno" &&
22918    test "x$need_included_printf" = "xyes" ; then
22919   as_fn_error $? "
22920 *** Your C library's printf doesn't appear to have the features that
22921 *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5
22922 fi
22923
22924 enable_included_printf=$need_included_printf
22925
22926  if test "$enable_included_printf" != "yes"; then
22927   HAVE_GOOD_PRINTF_TRUE=
22928   HAVE_GOOD_PRINTF_FALSE='#'
22929 else
22930   HAVE_GOOD_PRINTF_TRUE='#'
22931   HAVE_GOOD_PRINTF_FALSE=
22932 fi
22933
22934 if test "$enable_included_printf" != "yes" ; then
22935
22936 $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h
22937
22938 else
22939   if test -z "$glib_cv_long_long_format" ; then
22940     glib_cv_long_long_format="ll"
22941   fi
22942   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
22943
22944 fi
22945
22946 # Checks needed for gnulib vasnprintf
22947
22948   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
22949 $as_echo_n "checking for signed... " >&6; }
22950 if ${bh_cv_c_signed+:} false; then :
22951   $as_echo_n "(cached) " >&6
22952 else
22953   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22954 /* end confdefs.h.  */
22955
22956 int
22957 main ()
22958 {
22959 signed char x;
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 if ac_fn_c_try_compile "$LINENO"; then :
22965   bh_cv_c_signed=yes
22966 else
22967   bh_cv_c_signed=no
22968 fi
22969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 fi
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
22972 $as_echo "$bh_cv_c_signed" >&6; }
22973   if test $bh_cv_c_signed = no; then
22974
22975 $as_echo "#define signed /**/" >>confdefs.h
22976
22977   fi
22978
22979
22980   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
22981 $as_echo_n "checking for long long... " >&6; }
22982 if ${ac_cv_type_long_long+:} false; then :
22983   $as_echo_n "(cached) " >&6
22984 else
22985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22986 /* end confdefs.h.  */
22987 long long ll = 1LL; int i = 63;
22988 int
22989 main ()
22990 {
22991 long long llmax = (long long) -1;
22992      return ll << i | ll >> i | llmax / ll | llmax % ll;
22993   ;
22994   return 0;
22995 }
22996 _ACEOF
22997 if ac_fn_c_try_link "$LINENO"; then :
22998   ac_cv_type_long_long=yes
22999 else
23000   ac_cv_type_long_long=no
23001 fi
23002 rm -f core conftest.err conftest.$ac_objext \
23003     conftest$ac_exeext conftest.$ac_ext
23004 fi
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
23006 $as_echo "$ac_cv_type_long_long" >&6; }
23007   if test $ac_cv_type_long_long = yes; then
23008
23009 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
23010
23011   fi
23012
23013
23014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23015 $as_echo_n "checking for long double... " >&6; }
23016 if ${gt_cv_c_long_double+:} false; then :
23017   $as_echo_n "(cached) " >&6
23018 else
23019   if test "$GCC" = yes; then
23020        gt_cv_c_long_double=yes
23021      else
23022        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23023 /* end confdefs.h.  */
23024
23025          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
23026          long double foo = 0.0;
23027          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
23028          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
23029
23030 int
23031 main ()
23032 {
23033
23034   ;
23035   return 0;
23036 }
23037 _ACEOF
23038 if ac_fn_c_try_compile "$LINENO"; then :
23039   gt_cv_c_long_double=yes
23040 else
23041   gt_cv_c_long_double=no
23042 fi
23043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23044      fi
23045 fi
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
23047 $as_echo "$gt_cv_c_long_double" >&6; }
23048   if test $gt_cv_c_long_double = yes; then
23049
23050 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
23051
23052   fi
23053
23054
23055   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
23056 $as_echo_n "checking for wchar_t... " >&6; }
23057 if ${gt_cv_c_wchar_t+:} false; then :
23058   $as_echo_n "(cached) " >&6
23059 else
23060   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h.  */
23062 #include <stddef.h>
23063        wchar_t foo = (wchar_t)'\0';
23064 int
23065 main ()
23066 {
23067
23068   ;
23069   return 0;
23070 }
23071 _ACEOF
23072 if ac_fn_c_try_compile "$LINENO"; then :
23073   gt_cv_c_wchar_t=yes
23074 else
23075   gt_cv_c_wchar_t=no
23076 fi
23077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078 fi
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
23080 $as_echo "$gt_cv_c_wchar_t" >&6; }
23081   if test $gt_cv_c_wchar_t = yes; then
23082
23083 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
23084
23085   fi
23086
23087
23088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
23089 $as_echo_n "checking for wint_t... " >&6; }
23090 if ${gt_cv_c_wint_t+:} false; then :
23091   $as_echo_n "(cached) " >&6
23092 else
23093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23094 /* end confdefs.h.  */
23095 #include <wchar.h>
23096        wint_t foo = (wchar_t)'\0';
23097 int
23098 main ()
23099 {
23100
23101   ;
23102   return 0;
23103 }
23104 _ACEOF
23105 if ac_fn_c_try_compile "$LINENO"; then :
23106   gt_cv_c_wint_t=yes
23107 else
23108   gt_cv_c_wint_t=no
23109 fi
23110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23111 fi
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
23113 $as_echo "$gt_cv_c_wint_t" >&6; }
23114   if test $gt_cv_c_wint_t = yes; then
23115
23116 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
23117
23118   fi
23119
23120 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23121 if test "x$ac_cv_type_size_t" = xyes; then :
23122
23123 else
23124
23125 cat >>confdefs.h <<_ACEOF
23126 #define size_t unsigned int
23127 _ACEOF
23128
23129 fi
23130
23131 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
23132 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
23133
23134 cat >>confdefs.h <<_ACEOF
23135 #define HAVE_PTRDIFF_T 1
23136 _ACEOF
23137
23138
23139 fi
23140
23141
23142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
23143 $as_echo_n "checking for inttypes.h... " >&6; }
23144 if ${jm_ac_cv_header_inttypes_h+:} false; then :
23145   $as_echo_n "(cached) " >&6
23146 else
23147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148 /* end confdefs.h.  */
23149 #include <sys/types.h>
23150 #include <inttypes.h>
23151 int
23152 main ()
23153 {
23154 uintmax_t i = (uintmax_t) -1;
23155   ;
23156   return 0;
23157 }
23158 _ACEOF
23159 if ac_fn_c_try_compile "$LINENO"; then :
23160   jm_ac_cv_header_inttypes_h=yes
23161 else
23162   jm_ac_cv_header_inttypes_h=no
23163 fi
23164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23165 fi
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
23167 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
23168   if test $jm_ac_cv_header_inttypes_h = yes; then
23169
23170 cat >>confdefs.h <<_ACEOF
23171 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
23172 _ACEOF
23173
23174   fi
23175
23176
23177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
23178 $as_echo_n "checking for stdint.h... " >&6; }
23179 if ${jm_ac_cv_header_stdint_h+:} false; then :
23180   $as_echo_n "(cached) " >&6
23181 else
23182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23183 /* end confdefs.h.  */
23184 #include <sys/types.h>
23185 #include <stdint.h>
23186 int
23187 main ()
23188 {
23189 uintmax_t i = (uintmax_t) -1;
23190   ;
23191   return 0;
23192 }
23193 _ACEOF
23194 if ac_fn_c_try_compile "$LINENO"; then :
23195   jm_ac_cv_header_stdint_h=yes
23196 else
23197   jm_ac_cv_header_stdint_h=no
23198 fi
23199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23200 fi
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
23202 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
23203   if test $jm_ac_cv_header_stdint_h = yes; then
23204
23205 cat >>confdefs.h <<_ACEOF
23206 #define HAVE_STDINT_H_WITH_UINTMAX 1
23207 _ACEOF
23208
23209   fi
23210
23211
23212
23213
23214   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
23215
23216     test $ac_cv_type_long_long = yes \
23217       && ac_type='long long' \
23218       || ac_type='long'
23219
23220 cat >>confdefs.h <<_ACEOF
23221 #define intmax_t $ac_type
23222 _ACEOF
23223
23224   else
23225
23226 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23227
23228   fi
23229
23230 for ac_func in snprintf wcslen
23231 do :
23232   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23235   cat >>confdefs.h <<_ACEOF
23236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23237 _ACEOF
23238
23239 fi
23240 done
23241
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5
23243 $as_echo_n "checking for C99 snprintf... " >&6; }
23244 if ${ac_cv_func_snprintf_c99+:} false; then :
23245   $as_echo_n "(cached) " >&6
23246 else
23247   if test "$cross_compiling" = yes; then :
23248   ac_cv_func_snprintf_c99=no
23249 else
23250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23251 /* end confdefs.h.  */
23252 #include <stdio.h>
23253 #include <stdarg.h>
23254
23255 int
23256 doit()
23257 {
23258   char buffer[32];
23259   va_list args;
23260   int r;
23261
23262   r = snprintf(buffer, 5, "1234567");
23263
23264   if (r != 7)
23265     exit(1);
23266
23267   r = snprintf(buffer, 0, "1234567");
23268
23269   if (r != 7)
23270     exit(1);
23271
23272   r = snprintf(NULL, 0, "1234567");
23273
23274   if (r != 7)
23275     exit(1);
23276
23277   exit(0);
23278 }
23279
23280 int
23281 main(void)
23282 {
23283   doit();
23284   exit(1);
23285 }
23286 _ACEOF
23287 if ac_fn_c_try_run "$LINENO"; then :
23288   ac_cv_func_snprintf_c99=yes
23289 else
23290   ac_cv_func_snprintf_c99=no
23291 fi
23292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23293   conftest.$ac_objext conftest.beam conftest.$ac_ext
23294 fi
23295
23296 fi
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5
23298 $as_echo "$ac_cv_func_snprintf_c99" >&6; }
23299 if test $ac_cv_func_snprintf_c99 = yes; then
23300
23301 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
23302
23303 fi
23304
23305
23306 # Check if bcopy can be used for overlapping copies, if memmove isn't found.
23307 # The check is borrowed from the PERL Configure script.
23308 if test "$ac_cv_func_memmove" != "yes"; then
23309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy can handle overlapping copies" >&5
23310 $as_echo_n "checking whether bcopy can handle overlapping copies... " >&6; }
23311 if ${glib_cv_working_bcopy+:} false; then :
23312   $as_echo_n "(cached) " >&6
23313 else
23314   if test "$cross_compiling" = yes; then :
23315   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23317 as_fn_error $? "cannot run test program while cross compiling
23318 See \`config.log' for more details" "$LINENO" 5; }
23319 else
23320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23321 /* end confdefs.h.  */
23322
23323       int main() {
23324         char buf[128], abc[128], *b;
23325         int len, off, align;
23326         bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
23327         for (align = 7; align >= 0; align--) {
23328           for (len = 36; len; len--) {
23329             b = buf+align; bcopy(abc, b, len);
23330             for (off = 1; off <= len; off++) {
23331               bcopy(b, b+off, len); bcopy(b+off, b, len);
23332                 if (bcmp(b, abc, len)) return(1);
23333             }
23334           }
23335         }
23336         return(0);
23337       }
23338 _ACEOF
23339 if ac_fn_c_try_run "$LINENO"; then :
23340   glib_cv_working_bcopy=yes
23341 else
23342   glib_cv_working_bcopy=no
23343 fi
23344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23345   conftest.$ac_objext conftest.beam conftest.$ac_ext
23346 fi
23347
23348 fi
23349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_working_bcopy" >&5
23350 $as_echo "$glib_cv_working_bcopy" >&6; }
23351
23352   if test "x${glib_cv_working_bcopy+set}" != "xset" ; then
23353   as_fn_error $? "glib_cv_working_bcopy must be set in cache file when cross-compiling." "$LINENO" 5
23354 fi
23355
23356   if test "$glib_cv_working_bcopy" = "yes"; then
23357
23358 $as_echo "#define HAVE_WORKING_BCOPY 1" >>confdefs.h
23359
23360   fi
23361 fi
23362
23363 # Check if <sys/select.h> needs to be included for fd_set
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
23365 $as_echo_n "checking for fd_set... " >&6; }
23366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23367 /* end confdefs.h.  */
23368 #include <sys/types.h>
23369 int
23370 main ()
23371 {
23372 fd_set readMask, writeMask;
23373   ;
23374   return 0;
23375 }
23376 _ACEOF
23377 if ac_fn_c_try_compile "$LINENO"; then :
23378   gtk_ok=yes
23379 else
23380   gtk_ok=no
23381 fi
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23383 if test "$gtk_ok" = "yes"; then
23384     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
23385 $as_echo "yes, found in sys/types.h" >&6; }
23386 else
23387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388 /* end confdefs.h.  */
23389 #include <sys/select.h>
23390
23391 _ACEOF
23392 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23393   $EGREP "fd_set" >/dev/null 2>&1; then :
23394   gtk_ok=yes
23395 fi
23396 rm -f conftest*
23397
23398     if test "$gtk_ok" = "yes"; then
23399         # *** FIXME: give it a different name
23400
23401 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
23402
23403         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
23404 $as_echo "yes, found in sys/select.h" >&6; }
23405     else
23406
23407 $as_echo "#define NO_FD_SET 1" >>confdefs.h
23408
23409         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23410 $as_echo "no" >&6; }
23411     fi
23412 fi
23413
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
23415 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
23416 if ${glib_cv_sane_realloc+:} false; then :
23417   $as_echo_n "(cached) " >&6
23418 else
23419
23420         if test "$cross_compiling" = yes; then :
23421   glib_cv_sane_realloc=yes
23422 else
23423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23424 /* end confdefs.h.  */
23425 #include <stdlib.h>
23426         int main() {
23427           return realloc (0, sizeof (int)) == 0;
23428         }
23429 _ACEOF
23430 if ac_fn_c_try_run "$LINENO"; then :
23431   glib_cv_sane_realloc=yes
23432 else
23433   glib_cv_sane_realloc=no
23434 fi
23435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23436   conftest.$ac_objext conftest.beam conftest.$ac_ext
23437 fi
23438
23439
23440 fi
23441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
23442 $as_echo "$glib_cv_sane_realloc" >&6; }
23443 if test x$glib_cv_sane_realloc = xyes; then
23444
23445 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
23446
23447 fi
23448
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
23450 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
23451 if ${glib_cv_langinfo_codeset+:} false; then :
23452   $as_echo_n "(cached) " >&6
23453 else
23454
23455         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h.  */
23457 #include <langinfo.h>
23458 int
23459 main ()
23460 {
23461 char *codeset = nl_langinfo (CODESET);
23462   ;
23463   return 0;
23464 }
23465 _ACEOF
23466 if ac_fn_c_try_compile "$LINENO"; then :
23467   glib_cv_langinfo_codeset=yes
23468 else
23469   glib_cv_langinfo_codeset=no
23470 fi
23471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23472 fi
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5
23474 $as_echo "$glib_cv_langinfo_codeset" >&6; }
23475 if test x$glib_cv_langinfo_codeset = xyes; then
23476
23477 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
23478
23479 fi
23480
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (PM_STR)" >&5
23482 $as_echo_n "checking for nl_langinfo (PM_STR)... " >&6; }
23483 if ${glib_cv_langinfo_time+:} false; then :
23484   $as_echo_n "(cached) " >&6
23485 else
23486
23487         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23488 /* end confdefs.h.  */
23489 #include <langinfo.h>
23490 int
23491 main ()
23492 {
23493 char *str;
23494                  str = nl_langinfo (PM_STR);
23495                  str = nl_langinfo (D_T_FMT);
23496                  str = nl_langinfo (D_FMT);
23497                  str = nl_langinfo (T_FMT);
23498                  str = nl_langinfo (T_FMT_AMPM);
23499                  str = nl_langinfo (MON_1);
23500                  str = nl_langinfo (ABMON_12);
23501                  str = nl_langinfo (DAY_1);
23502                  str = nl_langinfo (ABDAY_7);
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 if ac_fn_c_try_compile "$LINENO"; then :
23508   glib_cv_langinfo_time=yes
23509 else
23510   glib_cv_langinfo_time=no
23511 fi
23512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23513 fi
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_time" >&5
23515 $as_echo "$glib_cv_langinfo_time" >&6; }
23516 if test x$glib_cv_langinfo_time = xyes; then
23517
23518 $as_echo "#define HAVE_LANGINFO_TIME 1" >>confdefs.h
23519
23520 fi
23521
23522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" >&5
23523 $as_echo_n "checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... " >&6; }
23524 if ${glib_cv_langinfo_outdigit+:} false; then :
23525   $as_echo_n "(cached) " >&6
23526 else
23527
23528         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h.  */
23530 #include <langinfo.h>
23531 int
23532 main ()
23533 {
23534 char *str;
23535                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
23536                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT1_MB);
23537                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT2_MB);
23538                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT3_MB);
23539                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT4_MB);
23540                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT5_MB);
23541                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT6_MB);
23542                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT7_MB);
23543                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT8_MB);
23544                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT9_MB);
23545   ;
23546   return 0;
23547 }
23548 _ACEOF
23549 if ac_fn_c_try_compile "$LINENO"; then :
23550   glib_cv_langinfo_outdigit=yes
23551 else
23552   glib_cv_langinfo_outdigit=no
23553 fi
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23555 fi
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_outdigit" >&5
23557 $as_echo "$glib_cv_langinfo_outdigit" >&6; }
23558 if test x$glib_cv_langinfo_outdigit = xyes; then
23559
23560 $as_echo "#define HAVE_LANGINFO_OUTDIGIT 1" >>confdefs.h
23561
23562 fi
23563
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5
23565 $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; }
23566 if ${glib_cv_compliant_posix_memalign+:} false; then :
23567   $as_echo_n "(cached) " >&6
23568 else
23569
23570     glib_cv_compliant_posix_memalign=0
23571     if test "$ac_cv_func_posix_memalign" = "yes" ; then
23572         if test "$cross_compiling" = yes; then :
23573   :
23574 else
23575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h.  */
23577
23578                 #define _XOPEN_SOURCE 600
23579                 #include <stdlib.h> /* posix_memalign() should be defined here */
23580                 /* some systems break if #include <malloc.h> used */
23581                 static void test_memalign (size_t boundary, size_t size) {
23582                     void *mem = 0;
23583                     if (posix_memalign (&mem, boundary, size) != 0 || !mem)
23584                         exit (1);
23585                     else
23586                       free (mem);
23587                 }
23588                 int main() {
23589                     test_memalign (  128,   128 - 2 * sizeof (void*));
23590                     test_memalign (  256,   256 - 2 * sizeof (void*));
23591                     test_memalign (  512,   512 - 2 * sizeof (void*));
23592                     test_memalign ( 1024,  1024 - 2 * sizeof (void*));
23593                     test_memalign ( 2048,  2048 - 2 * sizeof (void*));
23594                     test_memalign ( 4096,  4096 - 2 * sizeof (void*));
23595                     test_memalign ( 8192,  8192 - 2 * sizeof (void*));
23596                     test_memalign (16384, 16384 - 2 * sizeof (void*));
23597                     test_memalign (32768, 32768 - 2 * sizeof (void*));
23598                     exit (0); /* success */
23599                 }
23600
23601 _ACEOF
23602 if ac_fn_c_try_run "$LINENO"; then :
23603   glib_cv_compliant_posix_memalign=1
23604 fi
23605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23606   conftest.$ac_objext conftest.beam conftest.$ac_ext
23607 fi
23608
23609       :
23610     fi
23611
23612 fi
23613
23614 if test "$glib_cv_compliant_posix_memalign" = "1"; then
23615     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23616 $as_echo "yes" >&6; }
23617
23618 $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h
23619
23620 else
23621     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23622 $as_echo "no" >&6; }
23623 fi
23624
23625
23626 # Check for strlcpy
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5
23628 $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; }
23629 if ${glib_cv_have_strlcpy+:} false; then :
23630   $as_echo_n "(cached) " >&6
23631 else
23632
23633 if test "$cross_compiling" = yes; then :
23634   glib_cv_have_strlcpy=no
23635 else
23636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23637 /* end confdefs.h.  */
23638 #include <stdlib.h>
23639 #include <string.h>
23640 int main() {
23641   char p[10];
23642   (void) strlcpy (p, "hi", 10);
23643   if (strlcat (p, "bye", 0) != 3)
23644     return 1;
23645   return 0;
23646 }
23647 _ACEOF
23648 if ac_fn_c_try_run "$LINENO"; then :
23649   glib_cv_have_strlcpy=yes
23650 else
23651   glib_cv_have_strlcpy=no
23652 fi
23653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23654   conftest.$ac_objext conftest.beam conftest.$ac_ext
23655 fi
23656
23657 fi
23658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5
23659 $as_echo "$glib_cv_have_strlcpy" >&6; }
23660 if test "$glib_cv_have_strlcpy" = "yes"; then
23661
23662 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
23663
23664 fi
23665
23666
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
23668 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
23669 if ${glib_cv_va_copy+:} false; then :
23670   $as_echo_n "(cached) " >&6
23671 else
23672
23673         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23674 /* end confdefs.h.  */
23675 #include <stdarg.h>
23676 #include <stdlib.h>
23677         void f (int i, ...) {
23678         va_list args1, args2;
23679         va_start (args1, i);
23680         va_copy (args2, args1);
23681         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23682           exit (1);
23683         va_end (args1); va_end (args2);
23684         }
23685         int main() {
23686           f (0, 42);
23687           return 0;
23688         }
23689 _ACEOF
23690 if ac_fn_c_try_link "$LINENO"; then :
23691   glib_cv_va_copy=yes
23692 else
23693   glib_cv_va_copy=no
23694 fi
23695 rm -f core conftest.err conftest.$ac_objext \
23696     conftest$ac_exeext conftest.$ac_ext
23697
23698 fi
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
23700 $as_echo "$glib_cv_va_copy" >&6; }
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
23702 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
23703 if ${glib_cv___va_copy+:} false; then :
23704   $as_echo_n "(cached) " >&6
23705 else
23706
23707         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23708 /* end confdefs.h.  */
23709 #include <stdarg.h>
23710 #include <stdlib.h>
23711         void f (int i, ...) {
23712         va_list args1, args2;
23713         va_start (args1, i);
23714         __va_copy (args2, args1);
23715         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23716           exit (1);
23717         va_end (args1); va_end (args2);
23718         }
23719         int main() {
23720           f (0, 42);
23721           return 0;
23722         }
23723 _ACEOF
23724 if ac_fn_c_try_link "$LINENO"; then :
23725   glib_cv___va_copy=yes
23726 else
23727   glib_cv___va_copy=no
23728 fi
23729 rm -f core conftest.err conftest.$ac_objext \
23730     conftest$ac_exeext conftest.$ac_ext
23731
23732 fi
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
23734 $as_echo "$glib_cv___va_copy" >&6; }
23735
23736 if test "x$glib_cv_va_copy" = "xyes"; then
23737   g_va_copy_func=va_copy
23738 else if test "x$glib_cv___va_copy" = "xyes"; then
23739   g_va_copy_func=__va_copy
23740 fi
23741 fi
23742
23743 if test -n "$g_va_copy_func"; then
23744
23745 cat >>confdefs.h <<_ACEOF
23746 #define G_VA_COPY $g_va_copy_func
23747 _ACEOF
23748
23749 fi
23750
23751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
23752 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
23753 if ${glib_cv_va_val_copy+:} false; then :
23754   $as_echo_n "(cached) " >&6
23755 else
23756
23757         if test "$cross_compiling" = yes; then :
23758   glib_cv_va_val_copy=yes
23759 else
23760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23761 /* end confdefs.h.  */
23762 #include <stdarg.h>
23763 #include <stdlib.h>
23764         void f (int i, ...) {
23765         va_list args1, args2;
23766         va_start (args1, i);
23767         args2 = args1;
23768         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
23769           exit (1);
23770         va_end (args1); va_end (args2);
23771         }
23772         int main() {
23773           f (0, 42);
23774           return 0;
23775         }
23776 _ACEOF
23777 if ac_fn_c_try_run "$LINENO"; then :
23778   glib_cv_va_val_copy=yes
23779 else
23780   glib_cv_va_val_copy=no
23781 fi
23782 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23783   conftest.$ac_objext conftest.beam conftest.$ac_ext
23784 fi
23785
23786
23787 fi
23788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
23789 $as_echo "$glib_cv_va_val_copy" >&6; }
23790
23791 if test "x$glib_cv_va_val_copy" = "xno"; then
23792
23793 $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
23794
23795 fi
23796
23797 G_MODULE_LIBS=
23798 G_MODULE_LIBS_EXTRA=
23799 G_MODULE_PLUGIN_LIBS=
23800 if test x"$glib_native_win32" = xyes; then
23801     G_MODULE_LDFLAGS=
23802 else
23803   export SED
23804   G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
23805 fi
23806 G_MODULE_NEED_USCORE=0
23807 G_MODULE_BROKEN_RTLD_GLOBAL=0
23808 G_MODULE_HAVE_DLERROR=0
23809 if test -z "$G_MODULE_IMPL"; then
23810   case "$host" in
23811   *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
23812   esac
23813 fi
23814 if test -z "$G_MODULE_IMPL"; then
23815   case "$host" in
23816   *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
23817   esac
23818 fi
23819 if test -z "$G_MODULE_IMPL"; then
23820         ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
23821 if test "x$ac_cv_func_dlopen" = xyes; then :
23822   ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
23823 if test "x$ac_cv_func_dlsym" = xyes; then :
23824   G_MODULE_IMPL=G_MODULE_IMPL_DL
23825 fi
23826
23827 fi
23828
23829 fi
23830 if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
23831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
23832 $as_echo_n "checking for load_image in -lroot... " >&6; }
23833 if ${ac_cv_lib_root_load_image+:} false; then :
23834   $as_echo_n "(cached) " >&6
23835 else
23836   ac_check_lib_save_LIBS=$LIBS
23837 LIBS="-lroot  $LIBS"
23838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h.  */
23840
23841 /* Override any GCC internal prototype to avoid an error.
23842    Use char because int might match the return type of a GCC
23843    builtin and then its argument prototype would still apply.  */
23844 #ifdef __cplusplus
23845 extern "C"
23846 #endif
23847 char load_image ();
23848 int
23849 main ()
23850 {
23851 return load_image ();
23852   ;
23853   return 0;
23854 }
23855 _ACEOF
23856 if ac_fn_c_try_link "$LINENO"; then :
23857   ac_cv_lib_root_load_image=yes
23858 else
23859   ac_cv_lib_root_load_image=no
23860 fi
23861 rm -f core conftest.err conftest.$ac_objext \
23862     conftest$ac_exeext conftest.$ac_ext
23863 LIBS=$ac_check_lib_save_LIBS
23864 fi
23865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
23866 $as_echo "$ac_cv_lib_root_load_image" >&6; }
23867 if test "x$ac_cv_lib_root_load_image" = xyes; then :
23868   G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
23869       G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
23870       G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
23871       G_MODULE_IMPL=G_MODULE_IMPL_BEOS
23872 fi
23873
23874 fi
23875 if test -z "$G_MODULE_IMPL"; then
23876         ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
23877 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
23878   G_MODULE_IMPL=G_MODULE_IMPL_DYLD
23879                        G_MODULE_NEED_USCORE=1
23880 fi
23881
23882 fi
23883 if test -z "$G_MODULE_IMPL"; then
23884         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
23885 $as_echo_n "checking for dlopen in -ldl... " >&6; }
23886 if ${ac_cv_lib_dl_dlopen+:} false; then :
23887   $as_echo_n "(cached) " >&6
23888 else
23889   ac_check_lib_save_LIBS=$LIBS
23890 LIBS="-ldl  $LIBS"
23891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23892 /* end confdefs.h.  */
23893
23894 /* Override any GCC internal prototype to avoid an error.
23895    Use char because int might match the return type of a GCC
23896    builtin and then its argument prototype would still apply.  */
23897 #ifdef __cplusplus
23898 extern "C"
23899 #endif
23900 char dlopen ();
23901 int
23902 main ()
23903 {
23904 return dlopen ();
23905   ;
23906   return 0;
23907 }
23908 _ACEOF
23909 if ac_fn_c_try_link "$LINENO"; then :
23910   ac_cv_lib_dl_dlopen=yes
23911 else
23912   ac_cv_lib_dl_dlopen=no
23913 fi
23914 rm -f core conftest.err conftest.$ac_objext \
23915     conftest$ac_exeext conftest.$ac_ext
23916 LIBS=$ac_check_lib_save_LIBS
23917 fi
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
23919 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
23920 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
23921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
23922 $as_echo_n "checking for dlsym in -ldl... " >&6; }
23923 if ${ac_cv_lib_dl_dlsym+:} false; then :
23924   $as_echo_n "(cached) " >&6
23925 else
23926   ac_check_lib_save_LIBS=$LIBS
23927 LIBS="-ldl  $LIBS"
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h.  */
23930
23931 /* Override any GCC internal prototype to avoid an error.
23932    Use char because int might match the return type of a GCC
23933    builtin and then its argument prototype would still apply.  */
23934 #ifdef __cplusplus
23935 extern "C"
23936 #endif
23937 char dlsym ();
23938 int
23939 main ()
23940 {
23941 return dlsym ();
23942   ;
23943   return 0;
23944 }
23945 _ACEOF
23946 if ac_fn_c_try_link "$LINENO"; then :
23947   ac_cv_lib_dl_dlsym=yes
23948 else
23949   ac_cv_lib_dl_dlsym=no
23950 fi
23951 rm -f core conftest.err conftest.$ac_objext \
23952     conftest$ac_exeext conftest.$ac_ext
23953 LIBS=$ac_check_lib_save_LIBS
23954 fi
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
23956 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
23957 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
23958   G_MODULE_LIBS=-ldl
23959                                    G_MODULE_IMPL=G_MODULE_IMPL_DL
23960 fi
23961
23962 fi
23963
23964 fi
23965 if test -z "$G_MODULE_IMPL"; then
23966         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
23967 $as_echo_n "checking for shl_load in -ldld... " >&6; }
23968 if ${ac_cv_lib_dld_shl_load+:} false; then :
23969   $as_echo_n "(cached) " >&6
23970 else
23971   ac_check_lib_save_LIBS=$LIBS
23972 LIBS="-ldld  $LIBS"
23973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23974 /* end confdefs.h.  */
23975
23976 /* Override any GCC internal prototype to avoid an error.
23977    Use char because int might match the return type of a GCC
23978    builtin and then its argument prototype would still apply.  */
23979 #ifdef __cplusplus
23980 extern "C"
23981 #endif
23982 char shl_load ();
23983 int
23984 main ()
23985 {
23986 return shl_load ();
23987   ;
23988   return 0;
23989 }
23990 _ACEOF
23991 if ac_fn_c_try_link "$LINENO"; then :
23992   ac_cv_lib_dld_shl_load=yes
23993 else
23994   ac_cv_lib_dld_shl_load=no
23995 fi
23996 rm -f core conftest.err conftest.$ac_objext \
23997     conftest$ac_exeext conftest.$ac_ext
23998 LIBS=$ac_check_lib_save_LIBS
23999 fi
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
24001 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
24002 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
24003   G_MODULE_LIBS=-ldld
24004                 G_MODULE_IMPL=G_MODULE_IMPL_DLD
24005 fi
24006
24007 fi
24008 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
24009         LIBS_orig="$LIBS"
24010         LDFLAGS_orig="$LDFLAGS"
24011         LIBS="$G_MODULE_LIBS $LIBS"
24012         LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
24013         echo "void glib_plugin_test(void) { }" > plugin.c
24014         ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \
24015                 ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1
24016         ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
24017                 ${LDFLAGS} -module -o plugin.la -export-dynamic \
24018                 -shrext ".o" -avoid-version plugin.lo \
24019                 -rpath /dont/care >/dev/null 2>&1
24020         eval `./libtool --config | grep ^objdir`
24021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
24022 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
24023 if ${glib_cv_rtldglobal_broken+:} false; then :
24024   $as_echo_n "(cached) " >&6
24025 else
24026
24027                 if test "$cross_compiling" = yes; then :
24028   glib_cv_rtldglobal_broken=no
24029 else
24030   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h.  */
24032
24033 #include <dlfcn.h>
24034 #ifndef RTLD_GLOBAL
24035 #  define RTLD_GLOBAL 0
24036 #endif
24037 #ifndef RTLD_LAZY
24038 #  define RTLD_LAZY 0
24039 #endif
24040 int glib_plugin_test;
24041 int main () {
24042     void *handle, *global, *local;
24043     global = &glib_plugin_test;
24044     handle = dlopen ("./$objdir/plugin.o", RTLD_GLOBAL | RTLD_LAZY);
24045     if (!handle) return 0;
24046     local = dlsym (handle, "glib_plugin_test");
24047     return global == local;
24048 }
24049 _ACEOF
24050 if ac_fn_c_try_run "$LINENO"; then :
24051   glib_cv_rtldglobal_broken=no
24052 else
24053   glib_cv_rtldglobal_broken=yes
24054 fi
24055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24056   conftest.$ac_objext conftest.beam conftest.$ac_ext
24057 fi
24058
24059                 rm -f plugin.c plugin.o plugin.lo plugin.la ${objdir}/plugin.*
24060                 rmdir ${objdir} 2>/dev/null
24061
24062 fi
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
24064 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
24065         if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
24066                 G_MODULE_BROKEN_RTLD_GLOBAL=1
24067         else
24068                 G_MODULE_BROKEN_RTLD_GLOBAL=0
24069         fi
24070         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
24071 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
24072 if ${glib_cv_uscore+:} false; then :
24073   $as_echo_n "(cached) " >&6
24074 else
24075
24076                 if test "$cross_compiling" = yes; then :
24077   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24079 as_fn_error $? "cannot run test program while cross compiling
24080 See \`config.log' for more details" "$LINENO" 5; }
24081 else
24082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24083 /* end confdefs.h.  */
24084 #include <dlfcn.h>
24085                 int glib_underscore_test (void) { return 42; }
24086                 int main() {
24087                   void *f1 = (void*)0, *f2 = (void*)0, *handle;
24088                   handle = dlopen ((void*)0, 0);
24089                   if (handle) {
24090                     f1 = dlsym (handle, "glib_underscore_test");
24091                     f2 = dlsym (handle, "_glib_underscore_test");
24092                   } return (!f2 || f1);
24093                 }
24094 _ACEOF
24095 if ac_fn_c_try_run "$LINENO"; then :
24096   glib_cv_uscore=yes
24097 else
24098   glib_cv_uscore=no
24099 fi
24100 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24101   conftest.$ac_objext conftest.beam conftest.$ac_ext
24102 fi
24103
24104                 rm -f plugin.c plugin.$ac_objext plugin.lo
24105
24106 fi
24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
24108 $as_echo "$glib_cv_uscore" >&6; }
24109         if test "x${glib_cv_uscore+set}" != "xset" ; then
24110   as_fn_error $? "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5
24111 fi
24112
24113         if test "x$glib_cv_uscore" = "xyes"; then
24114                 G_MODULE_NEED_USCORE=1
24115         else
24116                 G_MODULE_NEED_USCORE=0
24117         fi
24118
24119         LDFLAGS="$LDFLAGS_orig"
24120         ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
24121 if test "x$ac_cv_func_dlerror" = xyes; then :
24122   G_MODULE_HAVE_DLERROR=1
24123 else
24124   G_MODULE_HAVE_DLERROR=0
24125 fi
24126
24127         LIBS="$LIBS_orig"
24128 fi
24129 if test -z "$G_MODULE_IMPL"; then
24130         G_MODULE_IMPL=0
24131         G_MODULE_SUPPORTED=false
24132 else
24133         G_MODULE_SUPPORTED=true
24134 fi
24135
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5
24137 $as_echo_n "checking for the suffix of module shared libraries... " >&6; }
24138 export SED
24139 shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
24140 eval $shrext_cmds
24141 module=yes eval std_shrext=$shrext_cmds
24142 # chop the initial dot
24143 glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5
24145 $as_echo ".$glib_gmodule_suffix" >&6; }
24146 # any reason it may fail?
24147 if test "x$glib_gmodule_suffix" = x; then
24148         as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
24149 fi
24150
24151
24152
24153
24154
24155
24156
24157
24158
24159
24160
24161
24162
24163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5
24164 $as_echo_n "checking for gspawn implementation... " >&6; }
24165 case "$host" in
24166   *-*-mingw*)
24167     GSPAWN=gspawn-win32.lo
24168     ;;
24169   *)
24170     GSPAWN=gspawn.lo
24171     ;;
24172 esac
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5
24174 $as_echo "$GSPAWN" >&6; }
24175
24176
24177
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5
24179 $as_echo_n "checking for GIOChannel implementation... " >&6; }
24180 case "$host" in
24181   *-*-mingw*)
24182     GIO=giowin32.lo
24183     ;;
24184   *)
24185     GIO=giounix.lo
24186     ;;
24187 esac
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5
24189 $as_echo "$GIO" >&6; }
24190
24191
24192
24193
24194 # Check whether --with-gio-module-dir was given.
24195 if test "${with_gio_module_dir+set}" = set; then :
24196   withval=$with_gio_module_dir;
24197 else
24198   with_gio_module_dir='${libdir}/gio/modules'
24199 fi
24200
24201 GIO_MODULE_DIR=$with_gio_module_dir
24202
24203
24204 # Check whether --enable-selinux was given.
24205 if test "${enable_selinux+set}" = set; then :
24206   enableval=$enable_selinux;
24207 fi
24208
24209 msg_selinux=no
24210 SELINUX_LIBS=
24211 if test "x$enable_selinux" != "xno"; then
24212
24213  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
24214 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
24215 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
24216   $as_echo_n "(cached) " >&6
24217 else
24218   ac_check_lib_save_LIBS=$LIBS
24219 LIBS="-lselinux  $LIBS"
24220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24221 /* end confdefs.h.  */
24222
24223 /* Override any GCC internal prototype to avoid an error.
24224    Use char because int might match the return type of a GCC
24225    builtin and then its argument prototype would still apply.  */
24226 #ifdef __cplusplus
24227 extern "C"
24228 #endif
24229 char is_selinux_enabled ();
24230 int
24231 main ()
24232 {
24233 return is_selinux_enabled ();
24234   ;
24235   return 0;
24236 }
24237 _ACEOF
24238 if ac_fn_c_try_link "$LINENO"; then :
24239   ac_cv_lib_selinux_is_selinux_enabled=yes
24240 else
24241   ac_cv_lib_selinux_is_selinux_enabled=no
24242 fi
24243 rm -f core conftest.err conftest.$ac_objext \
24244     conftest$ac_exeext conftest.$ac_ext
24245 LIBS=$ac_check_lib_save_LIBS
24246 fi
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24248 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24249 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
24250   for ac_header in selinux/selinux.h
24251 do :
24252   ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
24253 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
24254   cat >>confdefs.h <<_ACEOF
24255 #define HAVE_SELINUX_SELINUX_H 1
24256 _ACEOF
24257  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5
24258 $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; }
24259 if ${ac_cv_lib_selinux_lgetfilecon_raw+:} false; then :
24260   $as_echo_n "(cached) " >&6
24261 else
24262   ac_check_lib_save_LIBS=$LIBS
24263 LIBS="-lselinux  $LIBS"
24264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24265 /* end confdefs.h.  */
24266
24267 /* Override any GCC internal prototype to avoid an error.
24268    Use char because int might match the return type of a GCC
24269    builtin and then its argument prototype would still apply.  */
24270 #ifdef __cplusplus
24271 extern "C"
24272 #endif
24273 char lgetfilecon_raw ();
24274 int
24275 main ()
24276 {
24277 return lgetfilecon_raw ();
24278   ;
24279   return 0;
24280 }
24281 _ACEOF
24282 if ac_fn_c_try_link "$LINENO"; then :
24283   ac_cv_lib_selinux_lgetfilecon_raw=yes
24284 else
24285   ac_cv_lib_selinux_lgetfilecon_raw=no
24286 fi
24287 rm -f core conftest.err conftest.$ac_objext \
24288     conftest$ac_exeext conftest.$ac_ext
24289 LIBS=$ac_check_lib_save_LIBS
24290 fi
24291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5
24292 $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; }
24293 if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = xyes; then :
24294
24295 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
24296
24297         SELINUX_LIBS="-lselinux"
24298         msg_selinux=yes
24299 fi
24300
24301
24302 fi
24303
24304 done
24305
24306
24307 fi
24308
24309 fi
24310
24311
24312 inotify_support=no
24313 for ac_header in sys/inotify.h
24314 do :
24315   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
24316 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
24317   cat >>confdefs.h <<_ACEOF
24318 #define HAVE_SYS_INOTIFY_H 1
24319 _ACEOF
24320
24321         inotify_support=yes
24322         for ac_func in inotify_init1
24323 do :
24324   ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
24325 if test "x$ac_cv_func_inotify_init1" = xyes; then :
24326   cat >>confdefs.h <<_ACEOF
24327 #define HAVE_INOTIFY_INIT1 1
24328 _ACEOF
24329
24330 fi
24331 done
24332
24333
24334 fi
24335
24336 done
24337
24338
24339  if test "$inotify_support" = "yes"; then
24340   HAVE_INOTIFY_TRUE=
24341   HAVE_INOTIFY_FALSE='#'
24342 else
24343   HAVE_INOTIFY_TRUE='#'
24344   HAVE_INOTIFY_FALSE=
24345 fi
24346
24347
24348 fen_support=no
24349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h.  */
24351
24352 #include <port.h>
24353 #ifndef PORT_SOURCE_FILE
24354 #error "Please upgrade to Nevada 72 or above to suppoert FEN"
24355 #endif
24356 int main() { return 0; }
24357 _ACEOF
24358 if ac_fn_c_try_compile "$LINENO"; then :
24359
24360         fen_support=yes
24361
24362 fi
24363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24364
24365  if test "$fen_support" = "yes"; then
24366   HAVE_FEN_TRUE=
24367   HAVE_FEN_FALSE='#'
24368 else
24369   HAVE_FEN_TRUE='#'
24370   HAVE_FEN_FALSE=
24371 fi
24372
24373
24374
24375 # Check whether --enable-xattr was given.
24376 if test "${enable_xattr+set}" = set; then :
24377   enableval=$enable_xattr;
24378 fi
24379
24380 msg_xattr=no
24381 XATTR_LIBS=
24382 if test "x$enable_xattr" != "xno"; then
24383
24384
24385
24386  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5
24387 $as_echo_n "checking for getxattr in -lc... " >&6; }
24388 if ${ac_cv_lib_c_getxattr+:} false; then :
24389   $as_echo_n "(cached) " >&6
24390 else
24391   ac_check_lib_save_LIBS=$LIBS
24392 LIBS="-lc  $LIBS"
24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h.  */
24395
24396 /* Override any GCC internal prototype to avoid an error.
24397    Use char because int might match the return type of a GCC
24398    builtin and then its argument prototype would still apply.  */
24399 #ifdef __cplusplus
24400 extern "C"
24401 #endif
24402 char getxattr ();
24403 int
24404 main ()
24405 {
24406 return getxattr ();
24407   ;
24408   return 0;
24409 }
24410 _ACEOF
24411 if ac_fn_c_try_link "$LINENO"; then :
24412   ac_cv_lib_c_getxattr=yes
24413 else
24414   ac_cv_lib_c_getxattr=no
24415 fi
24416 rm -f core conftest.err conftest.$ac_objext \
24417     conftest$ac_exeext conftest.$ac_ext
24418 LIBS=$ac_check_lib_save_LIBS
24419 fi
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5
24421 $as_echo "$ac_cv_lib_c_getxattr" >&6; }
24422 if test "x$ac_cv_lib_c_getxattr" = xyes; then :
24423   for ac_header in sys/xattr.h
24424 do :
24425   ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
24426 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
24427   cat >>confdefs.h <<_ACEOF
24428 #define HAVE_SYS_XATTR_H 1
24429 _ACEOF
24430
24431 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
24432
24433       msg_xattr=yes
24434 fi
24435
24436 done
24437
24438
24439 fi
24440
24441
24442   if test "x$msg_xattr" != "xyes"; then
24443    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
24444 $as_echo_n "checking for getxattr in -lattr... " >&6; }
24445 if ${ac_cv_lib_attr_getxattr+:} false; then :
24446   $as_echo_n "(cached) " >&6
24447 else
24448   ac_check_lib_save_LIBS=$LIBS
24449 LIBS="-lattr  $LIBS"
24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h.  */
24452
24453 /* Override any GCC internal prototype to avoid an error.
24454    Use char because int might match the return type of a GCC
24455    builtin and then its argument prototype would still apply.  */
24456 #ifdef __cplusplus
24457 extern "C"
24458 #endif
24459 char getxattr ();
24460 int
24461 main ()
24462 {
24463 return getxattr ();
24464   ;
24465   return 0;
24466 }
24467 _ACEOF
24468 if ac_fn_c_try_link "$LINENO"; then :
24469   ac_cv_lib_attr_getxattr=yes
24470 else
24471   ac_cv_lib_attr_getxattr=no
24472 fi
24473 rm -f core conftest.err conftest.$ac_objext \
24474     conftest$ac_exeext conftest.$ac_ext
24475 LIBS=$ac_check_lib_save_LIBS
24476 fi
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
24478 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
24479 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
24480   for ac_header in attr/xattr.h
24481 do :
24482   ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
24483 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
24484   cat >>confdefs.h <<_ACEOF
24485 #define HAVE_ATTR_XATTR_H 1
24486 _ACEOF
24487
24488 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
24489
24490         XATTR_LIBS="-lattr"
24491         msg_xattr=yes
24492 fi
24493
24494 done
24495
24496
24497 fi
24498
24499   fi
24500
24501   if test "x$msg_xattr" = "xyes"; then
24502     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5
24503 $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; }
24504     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24505 /* end confdefs.h.  */
24506
24507       #include <stdio.h>
24508       #ifdef HAVE_SYS_TYPES_H
24509       #include <sys/types.h>
24510       #endif
24511       #ifdef HAVE_SYS_XATTR_H
24512       #include <sys/xattr.h>
24513       #elif HAVE_ATTR_XATTR_H
24514       #include <attr/xattr.h>
24515       #endif
24516
24517 int
24518 main ()
24519 {
24520 ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
24521   ;
24522   return 0;
24523 }
24524 _ACEOF
24525 if ac_fn_c_try_compile "$LINENO"; then :
24526
24527
24528 $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h
24529
24530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24531 $as_echo "yes" >&6; }
24532
24533 else
24534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24535 $as_echo "no" >&6; }
24536
24537 fi
24538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24539   fi
24540
24541 fi
24542
24543
24544
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5
24546 $as_echo_n "checking for platform-dependent source... " >&6; }
24547 case "$host" in
24548   *-*-cygwin*|*-*-mingw*)
24549     PLATFORMDEP=gwin32.lo
24550     ;;
24551   *)
24552     PLATFORMDEP=
24553     ;;
24554 esac
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5
24556 $as_echo "$PLATFORMDEP" >&6; }
24557
24558
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5
24560 $as_echo_n "checking whether to compile timeloop... " >&6; }
24561 case "$host" in
24562   *-*-cygwin*|*-*-mingw*|*-*-minix)
24563     enable_timeloop=no
24564     ;;
24565   *)
24566     enable_timeloop=yes
24567     ;;
24568 esac
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5
24570 $as_echo "$enable_timeloop" >&6; }
24571  if test x$enable_timeloop = xyes; then
24572   ENABLE_TIMELOOP_TRUE=
24573   ENABLE_TIMELOOP_FALSE='#'
24574 else
24575   ENABLE_TIMELOOP_TRUE='#'
24576   ENABLE_TIMELOOP_FALSE=
24577 fi
24578
24579
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
24581 $as_echo_n "checking if building for some Win32 platform... " >&6; }
24582 case "$host" in
24583   *-*-mingw*|*-*-cygwin*)
24584     platform_win32=yes
24585     ;;
24586   *)
24587     platform_win32=no
24588     ;;
24589 esac
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
24591 $as_echo "$platform_win32" >&6; }
24592  if test x$platform_win32 = xyes; then
24593   PLATFORM_WIN32_TRUE=
24594   PLATFORM_WIN32_FALSE='#'
24595 else
24596   PLATFORM_WIN32_TRUE='#'
24597   PLATFORM_WIN32_FALSE=
24598 fi
24599
24600
24601
24602
24603 # Check whether --with-threads was given.
24604 if test "${with_threads+set}" = set; then :
24605   withval=$with_threads;
24606 else
24607   with_threads=yes
24608 fi
24609
24610
24611
24612 THREAD_NO_IMPLEMENTATION="No thread implementation found."
24613
24614 FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
24615                 platform (normally it's "_REENTRANT"). I'll not use any flag on
24616                 compilation now, but then your programs might not work.
24617                 Please provide information on how it is done on your system."
24618
24619 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
24620                  "
24621
24622 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
24623                   provide information on your thread implementation."
24624
24625 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
24626                 functions will not be MT-safe during their first call because
24627                 there is no working 'getpwuid_r' on your system."
24628
24629 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
24630                 because there is no 'localtime_r' on your system."
24631
24632 AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
24633                 linking threaded applications. As GLib cannot do that
24634                 automatically, you will get an linkg error everytime you are
24635                 not using the right compiler. In that case you have to relink
24636                 with the right compiler. Ususally just '_r' is appended
24637                 to the compiler name."
24638
24639
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
24641 $as_echo_n "checking for thread implementation... " >&6; }
24642
24643 have_threads=no
24644 if test "x$with_threads" = xyes || test "x$with_threads" = xposix; then
24645         # -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
24646         # -U_OSF_SOURCE is for Digital UNIX 4.0d
24647         GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
24648         glib_save_CPPFLAGS="$CPPFLAGS"
24649         CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
24650         if test "x$have_threads" = xno; then
24651                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24652 /* end confdefs.h.  */
24653 #include <pthread.h>
24654 int
24655 main ()
24656 {
24657 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
24658   ;
24659   return 0;
24660 }
24661 _ACEOF
24662 if ac_fn_c_try_compile "$LINENO"; then :
24663   have_threads=posix
24664 fi
24665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24666         fi
24667         # Tru64Unix requires -pthread to find pthread.h. See #103020
24668         CPPFLAGS="$CPPFLAGS -pthread"
24669         if test "x$have_threads" = xno; then
24670         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h.  */
24672 #include <pthread.h>
24673 int
24674 main ()
24675 {
24676 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
24677   ;
24678   return 0;
24679 }
24680 _ACEOF
24681 if ac_fn_c_try_compile "$LINENO"; then :
24682   have_threads=posix
24683 fi
24684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24685         fi
24686         CPPFLAGS="$glib_save_CPPFLAGS"
24687 fi
24688 if test "x$with_threads" = xyes || test "x$with_threads" = xwin32; then
24689         case $host in
24690                 *-*-mingw*)
24691                 have_threads=win32
24692                 ;;
24693         esac
24694 fi
24695
24696 if test "x$have_threads" = xno; then
24697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
24698 $as_echo "none available" >&6; }
24699         as_fn_error $? "$THREAD_NO_IMPLEMENTATION" "$LINENO" 5
24700 else
24701         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
24702 $as_echo "$have_threads" >&6; }
24703 fi
24704
24705
24706
24707 G_THREAD_LIBS=
24708 G_THREAD_LIBS_EXTRA=
24709 G_THREAD_CFLAGS=
24710
24711
24712
24713 if test x"$have_threads" = xposix; then
24714   # First we test for posix, whether -pthread or -pthreads do the trick as
24715   # both CPPFLAG and LIBS.
24716   # One of them does for most gcc versions and some other platforms/compilers
24717   # too and could be considered as the canonical way to go.
24718   case $host in
24719     *-*-cygwin*|*-*-darwin*)
24720        # skip cygwin and darwin -pthread or -pthreads test
24721        ;;
24722     *-solaris*)
24723       # These compiler/linker flags work with both Sun Studio and gcc
24724       # Sun Studio expands -mt to -D_REENTRANT and -lthread
24725       # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread
24726       G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS"
24727       G_THREAD_LIBS="-lpthread -lthread"
24728       ;;
24729     *)
24730       for flag in pthread pthreads mt; do
24731         glib_save_CFLAGS="$CFLAGS"
24732         CFLAGS="$CFLAGS -$flag"
24733         if test "$cross_compiling" = yes; then :
24734   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24735 /* end confdefs.h.  */
24736
24737 #include <pthread.h>
24738 int check_me = 0;
24739 void* func(void* data) {check_me = 42; return &check_me;}
24740 int main()
24741  { pthread_t t;
24742    void *ret;
24743    pthread_create (&t, 0, func, 0);
24744    pthread_join (t, &ret);
24745    return (check_me != 42 || ret != &check_me);
24746 }
24747 _ACEOF
24748 if ac_fn_c_try_link "$LINENO"; then :
24749   glib_flag_works=yes
24750 else
24751   glib_flag_works=no
24752 fi
24753 rm -f core conftest.err conftest.$ac_objext \
24754     conftest$ac_exeext conftest.$ac_ext
24755 else
24756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h.  */
24758
24759 #include <pthread.h>
24760 int check_me = 0;
24761 void* func(void* data) {check_me = 42; return &check_me;}
24762 int main()
24763  { pthread_t t;
24764    void *ret;
24765    pthread_create (&t, 0, func, 0);
24766    pthread_join (t, &ret);
24767    return (check_me != 42 || ret != &check_me);
24768 }
24769 _ACEOF
24770 if ac_fn_c_try_run "$LINENO"; then :
24771   glib_flag_works=yes
24772 else
24773   glib_flag_works=no
24774 fi
24775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24776   conftest.$ac_objext conftest.beam conftest.$ac_ext
24777 fi
24778
24779         CFLAGS="$glib_save_CFLAGS"
24780         if test $glib_flag_works = yes ; then
24781            G_THREAD_CFLAGS=-$flag
24782         G_THREAD_LIBS=-$flag
24783         break;
24784         fi
24785       done
24786        ;;
24787   esac
24788 fi
24789
24790 if test x"$G_THREAD_CFLAGS" = x; then
24791
24792   # The canonical -pthread[s] does not work. Try something different.
24793
24794   case $host in
24795         *-aix*)
24796                 if test x"$GCC" = xyes; then
24797                         # GCC 3.0 and above needs -pthread.
24798                         # Should be coverd by the case above.
24799                         # GCC 2.x and below needs -mthreads
24800                         G_THREAD_CFLAGS="-mthreads"
24801                         G_THREAD_LIBS=$G_THREAD_CFLAGS
24802                 else
24803                         # We are probably using the aix compiler. Normaly a
24804                         # program would have to be compiled with the _r variant
24805                         # of the corresponding compiler, but we as GLib cannot
24806                         # do that: but the good news is that for compiling the
24807                         # only difference is the added -D_THREAD_SAFE compile
24808                         # option. This is according to the "C for AIX User's
24809                         # Guide".
24810                         G_THREAD_CFLAGS="-D_THREAD_SAFE"
24811                 fi
24812                 ;;
24813         *-dg-dgux*)  # DG/UX
24814                 G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
24815                 ;;
24816         *-sysv5uw7*) # UnixWare 7
24817                 # We are not using gcc with -pthread. Catched above.
24818                 G_THREAD_CFLAGS="-Kthread"
24819                 G_THREAD_LIBS=$G_THREAD_CFLAGS
24820                 ;;
24821         *-mingw*)
24822                 # No flag needed when using MSVCRT.DLL
24823                 G_THREAD_CFLAGS=""
24824                 ;;
24825         *)
24826                 G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
24827                 ;;
24828   esac
24829
24830 fi
24831
24832 # if we are not finding the localtime_r function, then we probably are
24833 # not using the proper multithread flag
24834
24835 glib_save_CPPFLAGS="$CPPFLAGS"
24836 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
24837
24838 # First we test, whether localtime_r is declared in time.h
24839 # directly. Then we test whether a macro localtime_r exists, in
24840 # which case localtime_r in the test program is replaced and thus
24841 # if we still find localtime_r in the output, it is not defined as
24842 # a macro.
24843
24844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24845 /* end confdefs.h.  */
24846 #include <time.h>
24847 _ACEOF
24848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24849   $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
24850
24851 else
24852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h.  */
24854 #include <time.h>
24855                                                            localtime_r(a,b)
24856 _ACEOF
24857 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24858   $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
24859   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
24860 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
24861 fi
24862 rm -f conftest*
24863
24864 fi
24865 rm -f conftest*
24866
24867
24868 CPPFLAGS="$glib_save_CPPFLAGS"
24869
24870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5
24871 $as_echo_n "checking thread related cflags... " >&6; }
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
24873 $as_echo "$G_THREAD_CFLAGS" >&6; }
24874 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
24875
24876
24877 case $have_threads in
24878         posix)
24879           glib_save_CPPFLAGS="$CPPFLAGS"
24880           CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
24881           if test x"$G_THREAD_LIBS" = x; then
24882             case $host in
24883               *-aix*)
24884                 # We are not using gcc (would have set G_THREAD_LIBS) and thus
24885                 # probably using the aix compiler.
24886                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5
24887 $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
24888                 ;;
24889               *)
24890                 G_THREAD_LIBS=error
24891                 glib_save_LIBS="$LIBS"
24892                 for thread_lib in "" pthread pthread32 pthreads thread; do
24893                         if test x"$thread_lib" = x; then
24894                                 add_thread_lib=""
24895                                 IN=""
24896                         else
24897                                 add_thread_lib="-l$thread_lib"
24898                                 IN=" in -l$thread_lib"
24899                         fi
24900                         if test x"$have_threads" = xposix; then
24901                                 defattr=0
24902                         else
24903                                 defattr=pthread_attr_default
24904                         fi
24905
24906                         LIBS="$add_thread_lib $glib_save_LIBS"
24907
24908                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5
24909 $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; }
24910                         if test "$cross_compiling" = yes; then :
24911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24912 /* end confdefs.h.  */
24913
24914 #include <pthread.h>
24915 int check_me = 0;
24916 void* func(void* data) {check_me = 42; return &check_me;}
24917 int main()
24918  { pthread_t t;
24919    void *ret;
24920    pthread_create (&t, $defattr, func, 0);
24921    pthread_join (t, &ret);
24922    return (check_me != 42 || ret != &check_me);
24923 }
24924 _ACEOF
24925 if ac_fn_c_try_link "$LINENO"; then :
24926   glib_result=yes
24927 else
24928   glib_result=no
24929 fi
24930 rm -f core conftest.err conftest.$ac_objext \
24931     conftest$ac_exeext conftest.$ac_ext
24932 else
24933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24934 /* end confdefs.h.  */
24935
24936 #include <pthread.h>
24937 int check_me = 0;
24938 void* func(void* data) {check_me = 42; return &check_me;}
24939 int main()
24940  { pthread_t t;
24941    void *ret;
24942    pthread_create (&t, $defattr, func, 0);
24943    pthread_join (t, &ret);
24944    return (check_me != 42 || ret != &check_me);
24945 }
24946 _ACEOF
24947 if ac_fn_c_try_run "$LINENO"; then :
24948   glib_result=yes
24949 else
24950   glib_result=no
24951 fi
24952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24953   conftest.$ac_objext conftest.beam conftest.$ac_ext
24954 fi
24955
24956                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
24957 $as_echo "$glib_result" >&6; }
24958
24959                         if test "$glib_result" = "yes" ; then
24960                           G_THREAD_LIBS="$add_thread_lib"
24961                           break
24962                         fi
24963                 done
24964                 if test "x$G_THREAD_LIBS" = xerror; then
24965                   as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
24966                 fi
24967                 LIBS="$glib_save_LIBS"
24968                 ;;
24969             esac
24970           fi
24971
24972           g_threads_impl="POSIX"
24973
24974           CPPFLAGS="$glib_save_CPPFLAGS"
24975           ;;
24976         win32)
24977            g_threads_impl="WIN32"
24978            ;;
24979         *)
24980            g_threads_impl="NONE"
24981            G_THREAD_LIBS=error
24982            ;;
24983 esac
24984
24985 if test "x$G_THREAD_LIBS" = xerror; then
24986         as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
24987 fi
24988
24989 case $host in
24990   *-*-beos*)
24991     G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
24992     G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
24993     ;;
24994   *)
24995     ;;
24996 esac
24997
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5
24999 $as_echo_n "checking thread related libraries... " >&6; }
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
25001 $as_echo "$G_THREAD_LIBS" >&6; }
25002
25003
25004 glib_save_LIBS="$LIBS"
25005 # we are not doing the following for now, as this might require glib
25006 # to always be linked with the thread libs on some platforms.
25007 # LIBS="$LIBS $G_THREAD_LIBS"
25008 for ac_func in localtime_r gmtime_r
25009 do :
25010   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25011 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25012 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25013   cat >>confdefs.h <<_ACEOF
25014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25015 _ACEOF
25016
25017 fi
25018 done
25019
25020 if test "$ac_cv_header_pwd_h" = "yes"; then
25021         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getpwuid_r" >&5
25022 $as_echo_n "checking for posix getpwuid_r... " >&6; }
25023 if ${ac_cv_func_posix_getpwuid_r+:} false; then :
25024   $as_echo_n "(cached) " >&6
25025 else
25026   if test "$cross_compiling" = yes; then :
25027   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25029 as_fn_error $? "cannot run test program while cross compiling
25030 See \`config.log' for more details" "$LINENO" 5; }
25031 else
25032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25033 /* end confdefs.h.  */
25034
25035 #include <errno.h>
25036 #include <pwd.h>
25037 int main () {
25038     char buffer[10000];
25039     struct passwd pwd, *pwptr = &pwd;
25040     int error;
25041     errno = 0;
25042     error = getpwuid_r (0, &pwd, buffer,
25043                         sizeof (buffer), &pwptr);
25044    return (error < 0 && errno == ENOSYS)
25045            || error == ENOSYS;
25046 }
25047 _ACEOF
25048 if ac_fn_c_try_run "$LINENO"; then :
25049   ac_cv_func_posix_getpwuid_r=yes
25050 else
25051   ac_cv_func_posix_getpwuid_r=no
25052 fi
25053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25054   conftest.$ac_objext conftest.beam conftest.$ac_ext
25055 fi
25056
25057 fi
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getpwuid_r" >&5
25059 $as_echo "$ac_cv_func_posix_getpwuid_r" >&6; }
25060         if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
25061   as_fn_error $? "ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
25062 fi
25063
25064         if test "$ac_cv_func_posix_getpwuid_r" = yes; then
25065
25066 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25067
25068         else
25069                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getpwuid_r" >&5
25070 $as_echo_n "checking for nonposix getpwuid_r... " >&6; }
25071 if ${ac_cv_func_nonposix_getpwuid_r+:} false; then :
25072   $as_echo_n "(cached) " >&6
25073 else
25074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h.  */
25076 #include <pwd.h>
25077 int
25078 main ()
25079 {
25080 char buffer[10000];
25081                                 struct passwd pwd;
25082                                 getpwuid_r (0, &pwd, buffer,
25083                                                 sizeof (buffer));
25084   ;
25085   return 0;
25086 }
25087 _ACEOF
25088 if ac_fn_c_try_link "$LINENO"; then :
25089   ac_cv_func_nonposix_getpwuid_r=yes
25090 else
25091   ac_cv_func_nonposix_getpwuid_r=no
25092 fi
25093 rm -f core conftest.err conftest.$ac_objext \
25094     conftest$ac_exeext conftest.$ac_ext
25095 fi
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getpwuid_r" >&5
25097 $as_echo "$ac_cv_func_nonposix_getpwuid_r" >&6; }
25098                 if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
25099   as_fn_error $? "ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
25100 fi
25101
25102                 if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
25103
25104 $as_echo "#define HAVE_NONPOSIX_GETPWUID_R 1" >>confdefs.h
25105
25106                 fi
25107         fi
25108 fi
25109 if test "$ac_cv_header_grp_h" = "yes"; then
25110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getgrgid_r" >&5
25111 $as_echo_n "checking for posix getgrgid_r... " >&6; }
25112 if ${ac_cv_func_posix_getgrgid_r+:} false; then :
25113   $as_echo_n "(cached) " >&6
25114 else
25115   if test "$cross_compiling" = yes; then :
25116   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25118 as_fn_error $? "cannot run test program while cross compiling
25119 See \`config.log' for more details" "$LINENO" 5; }
25120 else
25121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25122 /* end confdefs.h.  */
25123
25124 #include <errno.h>
25125 #include <grp.h>
25126 int main () {
25127     char buffer[10000];
25128     struct group grp, *grpptr = &grp;
25129     int error;
25130     errno = 0;
25131     error = getgrgid_r (0, &grp, buffer,
25132                         sizeof (buffer), &grpptr);
25133    return (error < 0 && errno == ENOSYS)
25134            || error == ENOSYS;
25135 }
25136 _ACEOF
25137 if ac_fn_c_try_run "$LINENO"; then :
25138   ac_cv_func_posix_getgrgid_r=yes
25139 else
25140   ac_cv_func_posix_getgrgid_r=no
25141 fi
25142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25143   conftest.$ac_objext conftest.beam conftest.$ac_ext
25144 fi
25145
25146 fi
25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getgrgid_r" >&5
25148 $as_echo "$ac_cv_func_posix_getgrgid_r" >&6; }
25149         if test "x${ac_cv_func_posix_getgrgid_r+set}" != "xset" ; then
25150   as_fn_error $? "ac_cv_func_posix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
25151 fi
25152
25153         if test "$ac_cv_func_posix_getgrgid_r" = yes; then
25154
25155 $as_echo "#define HAVE_POSIX_GETGRGID_R 1" >>confdefs.h
25156
25157         else
25158                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getgrgid_r" >&5
25159 $as_echo_n "checking for nonposix getgrgid_r... " >&6; }
25160 if ${ac_cv_func_nonposix_getgrgid_r+:} false; then :
25161   $as_echo_n "(cached) " >&6
25162 else
25163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25164 /* end confdefs.h.  */
25165 #include <grp.h>
25166 int
25167 main ()
25168 {
25169 char buffer[10000];
25170                                 struct group grp;
25171                                 getgrgid_r (0, &grp, buffer,
25172                                 sizeof (buffer));
25173   ;
25174   return 0;
25175 }
25176 _ACEOF
25177 if ac_fn_c_try_link "$LINENO"; then :
25178   ac_cv_func_nonposix_getgrgid_r=yes
25179 else
25180   ac_cv_func_nonposix_getgrgid_r=no
25181 fi
25182 rm -f core conftest.err conftest.$ac_objext \
25183     conftest$ac_exeext conftest.$ac_ext
25184 fi
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getgrgid_r" >&5
25186 $as_echo "$ac_cv_func_nonposix_getgrgid_r" >&6; }
25187                 if test "x${ac_cv_func_nonposix_getgrgid_r+set}" != "xset" ; then
25188   as_fn_error $? "ac_cv_func_nonposix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
25189 fi
25190
25191                 if test "$ac_cv_func_nonposix_getgrgid_r" = yes; then
25192
25193 $as_echo "#define HAVE_NONPOSIX_GETGRGID_R 1" >>confdefs.h
25194
25195                 fi
25196         fi
25197 fi
25198 LIBS="$G_THREAD_LIBS $LIBS"
25199 if test x"$have_threads" = xposix; then
25200         glib_save_CPPFLAGS="$CPPFLAGS"
25201         CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
25202         # This is not AC_CHECK_FUNC to also work with function
25203         # name mangling in header files.
25204         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
25205 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
25206         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25207 /* end confdefs.h.  */
25208 #include <pthread.h>
25209 int
25210 main ()
25211 {
25212 pthread_attr_t t; pthread_attr_setstacksize(&t,0)
25213   ;
25214   return 0;
25215 }
25216 _ACEOF
25217 if ac_fn_c_try_link "$LINENO"; then :
25218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25219 $as_echo "yes" >&6; }
25220
25221 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
25222
25223 else
25224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225 $as_echo "no" >&6; }
25226 fi
25227 rm -f core conftest.err conftest.$ac_objext \
25228     conftest$ac_exeext conftest.$ac_ext
25229         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock" >&5
25230 $as_echo_n "checking for pthread_condattr_setclock... " >&6; }
25231         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25232 /* end confdefs.h.  */
25233 #include <pthread.h>
25234 int
25235 main ()
25236 {
25237 pthread_condattr_t a; pthread_condattr_setclock(&a,0)
25238   ;
25239   return 0;
25240 }
25241 _ACEOF
25242 if ac_fn_c_try_link "$LINENO"; then :
25243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25244 $as_echo "yes" >&6; }
25245
25246 $as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
25247
25248 else
25249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25250 $as_echo "no" >&6; }
25251 fi
25252 rm -f core conftest.err conftest.$ac_objext \
25253     conftest$ac_exeext conftest.$ac_ext
25254         CPPFLAGS="$glib_save_CPPFLAGS"
25255 fi
25256
25257 LIBS="$glib_save_LIBS"
25258
25259 # now spit out all the warnings.
25260 if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
25261    test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
25262         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
25263 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
25264 fi
25265 if test "$ac_cv_func_localtime_r" != "yes"; then
25266         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
25267 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
25268 fi
25269
25270 #
25271 # Hack to deal with:
25272 #
25273 #  a) GCC < 3.3 for Linux doesn't include -lpthread when
25274 #     building shared libraries with linux.
25275 #  b) FreeBSD doesn't do this either.
25276 #
25277 case $host in
25278   *-*-freebsd*|*-*-linux*)
25279     G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
25280     ;;
25281   *-*-openbsd*)
25282     LDFLAGS="$LDFLAGS -pthread"
25283     ;;
25284   *)
25285     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
25286     ;;
25287 esac
25288
25289
25290
25291
25292
25293
25294 for ac_func in clock_gettime
25295 do :
25296   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
25297 if test "x$ac_cv_func_clock_gettime" = xyes; then :
25298   cat >>confdefs.h <<_ACEOF
25299 #define HAVE_CLOCK_GETTIME 1
25300 _ACEOF
25301
25302 else
25303
25304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25305 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25306 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
25307   $as_echo_n "(cached) " >&6
25308 else
25309   ac_check_lib_save_LIBS=$LIBS
25310 LIBS="-lrt  $LIBS"
25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25312 /* end confdefs.h.  */
25313
25314 /* Override any GCC internal prototype to avoid an error.
25315    Use char because int might match the return type of a GCC
25316    builtin and then its argument prototype would still apply.  */
25317 #ifdef __cplusplus
25318 extern "C"
25319 #endif
25320 char clock_gettime ();
25321 int
25322 main ()
25323 {
25324 return clock_gettime ();
25325   ;
25326   return 0;
25327 }
25328 _ACEOF
25329 if ac_fn_c_try_link "$LINENO"; then :
25330   ac_cv_lib_rt_clock_gettime=yes
25331 else
25332   ac_cv_lib_rt_clock_gettime=no
25333 fi
25334 rm -f core conftest.err conftest.$ac_objext \
25335     conftest$ac_exeext conftest.$ac_ext
25336 LIBS=$ac_check_lib_save_LIBS
25337 fi
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25339 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25340 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
25341
25342     $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
25343
25344     G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
25345     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
25346
25347 fi
25348
25349
25350 fi
25351 done
25352
25353
25354
25355
25356
25357
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock-free atomic intrinsics" >&5
25359 $as_echo_n "checking for lock-free atomic intrinsics... " >&6; }
25360 if ${glib_cv_g_atomic_lock_free+:} false; then :
25361   $as_echo_n "(cached) " >&6
25362 else
25363
25364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h.  */
25366
25367 int
25368 main ()
25369 {
25370 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
25371   ;
25372   return 0;
25373 }
25374 _ACEOF
25375 if ac_fn_c_try_compile "$LINENO"; then :
25376   glib_cv_g_atomic_lock_free=yes
25377 else
25378   glib_cv_g_atomic_lock_free=no
25379 fi
25380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381 fi
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_g_atomic_lock_free" >&5
25383 $as_echo "$glib_cv_g_atomic_lock_free" >&6; }
25384
25385 if test "$glib_cv_g_atomic_lock_free" = "no"; then
25386   SAVE_CFLAGS="${CFLAGS}"
25387   CFLAGS="-march=i486"
25388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25389 /* end confdefs.h.  */
25390
25391 int
25392 main ()
25393 {
25394 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
25395   ;
25396   return 0;
25397 }
25398 _ACEOF
25399 if ac_fn_c_try_compile "$LINENO"; then :
25400   as_fn_error $? "GLib must be build with -march=i486 or later." "$LINENO" 5
25401 fi
25402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403   CFLAGS="${SAVE_CFLAGS}"
25404 fi
25405
25406 case $host_cpu in
25407   i?86|x86_64|s390|s390x|arm*|crisv32*|etrax*)
25408     glib_memory_barrier_needed=no
25409     ;;
25410   sparc*|alpha*|powerpc*|ia64)
25411     glib_memory_barrier_needed=yes
25412     ;;
25413   *)
25414     glib_memory_barrier_needed=yes
25415     ;;
25416 esac
25417
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5
25419 $as_echo_n "checking for futex(2) system call... " >&6; }
25420 if ${glib_cv_futex+:} false; then :
25421   $as_echo_n "(cached) " >&6
25422 else
25423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h.  */
25425
25426 #include <linux/futex.h>
25427 #include <sys/syscall.h>
25428 #include <unistd.h>
25429
25430 int
25431 main ()
25432 {
25433
25434 int
25435 main (void)
25436 {
25437   /* it is not like this actually runs or anything... */
25438   syscall (__NR_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
25439   return 0;
25440 }
25441
25442   ;
25443   return 0;
25444 }
25445 _ACEOF
25446 if ac_fn_c_try_compile "$LINENO"; then :
25447   glib_cv_futex=yes
25448 else
25449   glib_cv_futex=no
25450 fi
25451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25452 fi
25453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_futex" >&5
25454 $as_echo "$glib_cv_futex" >&6; }
25455 if test x"$glib_cv_futex" = xyes; then
25456
25457 $as_echo "#define HAVE_FUTEX 1" >>confdefs.h
25458
25459 fi
25460
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd(2) system call" >&5
25462 $as_echo_n "checking for eventfd(2) system call... " >&6; }
25463 if ${glib_cv_eventfd+:} false; then :
25464   $as_echo_n "(cached) " >&6
25465 else
25466   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25467 /* end confdefs.h.  */
25468
25469 #include <sys/eventfd.h>
25470 #include <unistd.h>
25471
25472 int
25473 main ()
25474 {
25475
25476 int
25477 main (void)
25478 {
25479   eventfd (0, EFD_CLOEXEC);
25480   return 0;
25481 }
25482
25483   ;
25484   return 0;
25485 }
25486 _ACEOF
25487 if ac_fn_c_try_compile "$LINENO"; then :
25488   glib_cv_eventfd=yes
25489 else
25490   glib_cv_eventfd=no
25491 fi
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25493 fi
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_eventfd" >&5
25495 $as_echo "$glib_cv_eventfd" >&6; }
25496 if test x"$glib_cv_eventfd" = x"yes"; then
25497
25498 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
25499
25500 fi
25501  if test "$glib_cv_eventfd" = "yes"; then
25502   HAVE_EVENTFD_TRUE=
25503   HAVE_EVENTFD_FALSE='#'
25504 else
25505   HAVE_EVENTFD_TRUE='#'
25506   HAVE_EVENTFD_FALSE=
25507 fi
25508
25509
25510
25511 glib_poll_includes="
25512 #include <sys/types.h>
25513 #include <sys/poll.h>
25514 "
25515
25516 if test $ac_cv_header_sys_types_h = yes &&
25517    test $ac_cv_header_sys_poll_h = yes ; then
25518   glib_failed=false
25519   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5
25520 $as_echo_n "checking value of POLLIN... " >&6; }
25521 if ${glib_cv_value_POLLIN+:} false; then :
25522   $as_echo_n "(cached) " >&6
25523 else
25524   if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN"        "$glib_poll_includes"; then :
25525
25526 else
25527   glib_failed=true
25528 fi
25529
25530
25531 fi
25532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5
25533 $as_echo "$glib_cv_value_POLLIN" >&6; }
25534
25535   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5
25536 $as_echo_n "checking value of POLLOUT... " >&6; }
25537 if ${glib_cv_value_POLLOUT+:} false; then :
25538   $as_echo_n "(cached) " >&6
25539 else
25540   if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT"        "$glib_poll_includes"; then :
25541
25542 else
25543   glib_failed=true
25544 fi
25545
25546
25547 fi
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5
25549 $as_echo "$glib_cv_value_POLLOUT" >&6; }
25550
25551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5
25552 $as_echo_n "checking value of POLLPRI... " >&6; }
25553 if ${glib_cv_value_POLLPRI+:} false; then :
25554   $as_echo_n "(cached) " >&6
25555 else
25556   if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI"        "$glib_poll_includes"; then :
25557
25558 else
25559   glib_failed=true
25560 fi
25561
25562
25563 fi
25564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5
25565 $as_echo "$glib_cv_value_POLLPRI" >&6; }
25566
25567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5
25568 $as_echo_n "checking value of POLLERR... " >&6; }
25569 if ${glib_cv_value_POLLERR+:} false; then :
25570   $as_echo_n "(cached) " >&6
25571 else
25572   if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR"        "$glib_poll_includes"; then :
25573
25574 else
25575   glib_failed=true
25576 fi
25577
25578
25579 fi
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5
25581 $as_echo "$glib_cv_value_POLLERR" >&6; }
25582
25583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5
25584 $as_echo_n "checking value of POLLHUP... " >&6; }
25585 if ${glib_cv_value_POLLHUP+:} false; then :
25586   $as_echo_n "(cached) " >&6
25587 else
25588   if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP"        "$glib_poll_includes"; then :
25589
25590 else
25591   glib_failed=true
25592 fi
25593
25594
25595 fi
25596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5
25597 $as_echo "$glib_cv_value_POLLHUP" >&6; }
25598
25599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5
25600 $as_echo_n "checking value of POLLNVAL... " >&6; }
25601 if ${glib_cv_value_POLLNVAL+:} false; then :
25602   $as_echo_n "(cached) " >&6
25603 else
25604   if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL"        "$glib_poll_includes"; then :
25605
25606 else
25607   glib_failed=true
25608 fi
25609
25610
25611 fi
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5
25613 $as_echo "$glib_cv_value_POLLNVAL" >&6; }
25614
25615   if $glib_failed ; then
25616     as_fn_error $? "Could not determine values for POLL* constants" "$LINENO" 5
25617   fi
25618 else
25619   glib_cv_value_POLLIN=1
25620   glib_cv_value_POLLOUT=4
25621   glib_cv_value_POLLPRI=2
25622   glib_cv_value_POLLERR=8
25623   glib_cv_value_POLLHUP=16
25624   glib_cv_value_POLLNVAL=32
25625 fi
25626
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
25628 $as_echo_n "checking for broken poll... " >&6; }
25629 if test "$cross_compiling" = yes; then :
25630   broken_poll="no (cross compiling)"
25631 else
25632   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25633 /* end confdefs.h.  */
25634
25635         #include <stdlib.h>
25636         #include <fcntl.h>
25637         #include <poll.h>
25638         #ifdef HAVE_SYS_POLL_H
25639         #include <sys/poll.h>
25640         #endif
25641         int main(void) {
25642           struct pollfd fds[1];
25643           int fd;
25644           fd = open("/dev/null", 1);
25645           fds[0].fd = fd;
25646           fds[0].events = POLLIN;
25647           fds[0].revents = 0;
25648           if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
25649                 exit(1);  /* Does not work for devices -- fail */
25650           }
25651           exit(0);
25652         }
25653 _ACEOF
25654 if ac_fn_c_try_run "$LINENO"; then :
25655   broken_poll=no
25656 else
25657   broken_poll=yes
25658
25659 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
25660
25661 fi
25662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25663   conftest.$ac_objext conftest.beam conftest.$ac_ext
25664 fi
25665
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
25667 $as_echo "$broken_poll" >&6; }
25668
25669
25670 case $host in
25671   *-*-cygwin*)
25672         G_LIBS_EXTRA="-luser32 -lkernel32"
25673     ;;
25674   *-*-mingw*)
25675         G_LIBS_EXTRA="-lws2_32 -lole32 -lwinmm -lshlwapi"
25676     ;;
25677   *)
25678         G_LIBS_EXTRA=""
25679     ;;
25680 esac
25681
25682
25683
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
25685 $as_echo_n "checking for EILSEQ... " >&6; }
25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687 /* end confdefs.h.  */
25688
25689 #include <errno.h>
25690
25691 int
25692 main ()
25693 {
25694
25695 int error = EILSEQ;
25696
25697   ;
25698   return 0;
25699 }
25700 _ACEOF
25701 if ac_fn_c_try_compile "$LINENO"; then :
25702   have_eilseq=yes
25703 else
25704   have_eilseq=no
25705 fi
25706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5
25708 $as_echo "$have_eilseq" >&6; }
25709
25710
25711 # Check whether --enable-gcov was given.
25712 if test "${enable_gcov+set}" = set; then :
25713   enableval=$enable_gcov; use_gcov=$enableval
25714 else
25715   use_gcov=no
25716 fi
25717
25718
25719 if test "x$use_gcov" = "xyes"; then
25720     if test "$GCC" != "yes"; then
25721     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
25722   fi
25723
25724     # Extract the first word of "shtool", so it can be a program name with args.
25725 set dummy shtool; ac_word=$2
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25727 $as_echo_n "checking for $ac_word... " >&6; }
25728 if ${ac_cv_prog_SHTOOL+:} false; then :
25729   $as_echo_n "(cached) " >&6
25730 else
25731   if test -n "$SHTOOL"; then
25732   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
25733 else
25734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25735 for as_dir in $PATH
25736 do
25737   IFS=$as_save_IFS
25738   test -z "$as_dir" && as_dir=.
25739     for ac_exec_ext in '' $ac_executable_extensions; do
25740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25741     ac_cv_prog_SHTOOL="shtool"
25742     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25743     break 2
25744   fi
25745 done
25746   done
25747 IFS=$as_save_IFS
25748
25749 fi
25750 fi
25751 SHTOOL=$ac_cv_prog_SHTOOL
25752 if test -n "$SHTOOL"; then
25753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
25754 $as_echo "$SHTOOL" >&6; }
25755 else
25756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25757 $as_echo "no" >&6; }
25758 fi
25759
25760
25761   case `$SHTOOL path $CC` in
25762     *ccache*) gcc_ccache=yes;;
25763     *) gcc_ccache=no;;
25764   esac
25765
25766   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
25767     as_fn_error $? "ccache must be disabled when --enable-gcov option is used. You can disable ccache by setting environment variable CCACHE_DISABLE=1." "$LINENO" 5
25768   fi
25769
25770   ltp_version_list="1.6 1.7 1.8 1.9"
25771   # Extract the first word of "lcov", so it can be a program name with args.
25772 set dummy lcov; ac_word=$2
25773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25774 $as_echo_n "checking for $ac_word... " >&6; }
25775 if ${ac_cv_prog_LTP+:} false; then :
25776   $as_echo_n "(cached) " >&6
25777 else
25778   if test -n "$LTP"; then
25779   ac_cv_prog_LTP="$LTP" # Let the user override the test.
25780 else
25781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25782 for as_dir in $PATH
25783 do
25784   IFS=$as_save_IFS
25785   test -z "$as_dir" && as_dir=.
25786     for ac_exec_ext in '' $ac_executable_extensions; do
25787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25788     ac_cv_prog_LTP="lcov"
25789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25790     break 2
25791   fi
25792 done
25793   done
25794 IFS=$as_save_IFS
25795
25796 fi
25797 fi
25798 LTP=$ac_cv_prog_LTP
25799 if test -n "$LTP"; then
25800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
25801 $as_echo "$LTP" >&6; }
25802 else
25803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25804 $as_echo "no" >&6; }
25805 fi
25806
25807
25808   # Extract the first word of "genhtml", so it can be a program name with args.
25809 set dummy genhtml; ac_word=$2
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25811 $as_echo_n "checking for $ac_word... " >&6; }
25812 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
25813   $as_echo_n "(cached) " >&6
25814 else
25815   if test -n "$LTP_GENHTML"; then
25816   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
25817 else
25818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25819 for as_dir in $PATH
25820 do
25821   IFS=$as_save_IFS
25822   test -z "$as_dir" && as_dir=.
25823     for ac_exec_ext in '' $ac_executable_extensions; do
25824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25825     ac_cv_prog_LTP_GENHTML="genhtml"
25826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25827     break 2
25828   fi
25829 done
25830   done
25831 IFS=$as_save_IFS
25832
25833 fi
25834 fi
25835 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
25836 if test -n "$LTP_GENHTML"; then
25837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
25838 $as_echo "$LTP_GENHTML" >&6; }
25839 else
25840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25841 $as_echo "no" >&6; }
25842 fi
25843
25844
25845
25846   if test "$LTP"; then
25847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
25848 $as_echo_n "checking for ltp version... " >&6; }
25849 if ${glib_cv_ltp_version+:} false; then :
25850   $as_echo_n "(cached) " >&6
25851 else
25852
25853       glib_cv_ltp_version=invalid
25854       ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
25855       for ltp_check_version in $ltp_version_list; do
25856         if test "$ltp_version" = "$ltp_check_version"; then
25857           glib_cv_ltp_version="$ltp_check_version (ok)"
25858         fi
25859       done
25860
25861 fi
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5
25863 $as_echo "$glib_cv_ltp_version" >&6; }
25864   else
25865     ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
25866     as_fn_error $? "$ltp_msg" "$LINENO" 5
25867   fi
25868
25869   case $glib_cv_ltp_version in
25870     ""|invalid)
25871       ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
25872       as_fn_error $? "$ltp_msg" "$LINENO" 5
25873       LTP="exit 0;"
25874       ;;
25875   esac
25876
25877   if test -z "$LTP_GENHTML"; then
25878     as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
25879   fi
25880
25881
25882   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
25883
25884
25885     CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
25886   LDFLAGS="$LDFLAGS -lgcov"
25887 fi
25888
25889
25890 ac_config_commands="$ac_config_commands glib/glibconfig.h"
25891
25892
25893 # Redo enough to get guint32 and guint64 for the alignment checks below
25894 case 4 in
25895 $ac_cv_sizeof_short)
25896   gint32=short
25897   ;;
25898 $ac_cv_sizeof_int)
25899   gint32=int
25900   ;;
25901 $ac_cv_sizeof_long)
25902   gint32=long
25903   ;;
25904 esac
25905 case 8 in
25906 $ac_cv_sizeof_int)
25907   gint64=int
25908   ;;
25909 $ac_cv_sizeof_long)
25910   gint64=long
25911   ;;
25912 $ac_cv_sizeof_long_long)
25913   gint64='long long'
25914   ;;
25915 $ac_cv_sizeof___int64)
25916   gint64='__int64'
25917   ;;
25918 esac
25919
25920 ac_fn_c_check_type "$LINENO" "guint32" "ac_cv_type_guint32" "typedef unsigned $gint32 guint32;
25921 "
25922 if test "x$ac_cv_type_guint32" = xyes; then :
25923
25924 fi
25925
25926 # The cast to long int works around a bug in the HP C Compiler,
25927 # see AC_CHECK_SIZEOF for more information.
25928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint32" >&5
25929 $as_echo_n "checking alignment of guint32... " >&6; }
25930 if ${ac_cv_alignof_guint32+:} false; then :
25931   $as_echo_n "(cached) " >&6
25932 else
25933   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint32"        "$ac_includes_default
25934 typedef unsigned $gint32 guint32;
25935
25936 #ifndef offsetof
25937 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25938 #endif
25939 typedef struct { char x; guint32 y; } ac__type_alignof_;"; then :
25940
25941 else
25942   if test "$ac_cv_type_guint32" = yes; then
25943      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25945 as_fn_error 77 "cannot compute alignment of guint32
25946 See \`config.log' for more details" "$LINENO" 5; }
25947    else
25948      ac_cv_alignof_guint32=0
25949    fi
25950 fi
25951
25952 fi
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint32" >&5
25954 $as_echo "$ac_cv_alignof_guint32" >&6; }
25955
25956
25957
25958 cat >>confdefs.h <<_ACEOF
25959 #define ALIGNOF_GUINT32 $ac_cv_alignof_guint32
25960 _ACEOF
25961
25962
25963 ac_fn_c_check_type "$LINENO" "guint64" "ac_cv_type_guint64" "typedef unsigned $gint64 guint64;
25964 "
25965 if test "x$ac_cv_type_guint64" = xyes; then :
25966
25967 fi
25968
25969 # The cast to long int works around a bug in the HP C Compiler,
25970 # see AC_CHECK_SIZEOF for more information.
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of guint64" >&5
25972 $as_echo_n "checking alignment of guint64... " >&6; }
25973 if ${ac_cv_alignof_guint64+:} false; then :
25974   $as_echo_n "(cached) " >&6
25975 else
25976   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_guint64"        "$ac_includes_default
25977 typedef unsigned $gint64 guint64;
25978
25979 #ifndef offsetof
25980 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
25981 #endif
25982 typedef struct { char x; guint64 y; } ac__type_alignof_;"; then :
25983
25984 else
25985   if test "$ac_cv_type_guint64" = yes; then
25986      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25988 as_fn_error 77 "cannot compute alignment of guint64
25989 See \`config.log' for more details" "$LINENO" 5; }
25990    else
25991      ac_cv_alignof_guint64=0
25992    fi
25993 fi
25994
25995 fi
25996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_guint64" >&5
25997 $as_echo "$ac_cv_alignof_guint64" >&6; }
25998
25999
26000
26001 cat >>confdefs.h <<_ACEOF
26002 #define ALIGNOF_GUINT64 $ac_cv_alignof_guint64
26003 _ACEOF
26004
26005
26006 ac_fn_c_check_type "$LINENO" "unsigned long" "ac_cv_type_unsigned_long" "$ac_includes_default"
26007 if test "x$ac_cv_type_unsigned_long" = xyes; then :
26008
26009 fi
26010
26011 # The cast to long int works around a bug in the HP C Compiler,
26012 # see AC_CHECK_SIZEOF for more information.
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of unsigned long" >&5
26014 $as_echo_n "checking alignment of unsigned long... " >&6; }
26015 if ${ac_cv_alignof_unsigned_long+:} false; then :
26016   $as_echo_n "(cached) " >&6
26017 else
26018   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_unsigned_long"        "$ac_includes_default
26019 #ifndef offsetof
26020 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
26021 #endif
26022 typedef struct { char x; unsigned long y; } ac__type_alignof_;"; then :
26023
26024 else
26025   if test "$ac_cv_type_unsigned_long" = yes; then
26026      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26027 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26028 as_fn_error 77 "cannot compute alignment of unsigned long
26029 See \`config.log' for more details" "$LINENO" 5; }
26030    else
26031      ac_cv_alignof_unsigned_long=0
26032    fi
26033 fi
26034
26035 fi
26036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_unsigned_long" >&5
26037 $as_echo "$ac_cv_alignof_unsigned_long" >&6; }
26038
26039
26040
26041 cat >>confdefs.h <<_ACEOF
26042 #define ALIGNOF_UNSIGNED_LONG $ac_cv_alignof_unsigned_long
26043 _ACEOF
26044
26045
26046
26047 # Check for libdbus1 - Optional - is only used in the GDBus test cases
26048 #
26049 # 1.2.14 required for dbus_message_set_serial
26050 have_dbus1=no
26051  if test "x$have_dbus1" = "xyes"; then
26052   HAVE_DBUS1_TRUE=
26053   HAVE_DBUS1_FALSE='#'
26054 else
26055   HAVE_DBUS1_TRUE='#'
26056   HAVE_DBUS1_FALSE=
26057 fi
26058
26059
26060
26061 # Check whether --enable-Bsymbolic was given.
26062 if test "${enable_Bsymbolic+set}" = set; then :
26063   enableval=$enable_Bsymbolic;
26064 else
26065   SAVED_LDFLAGS="${LDFLAGS}"
26066                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
26067 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
26068                LDFLAGS=-Wl,-Bsymbolic-functions
26069                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26070 /* end confdefs.h.  */
26071
26072 int
26073 main ()
26074 {
26075 int main (void) { return 0; }
26076   ;
26077   return 0;
26078 }
26079 _ACEOF
26080 if ac_fn_c_try_link "$LINENO"; then :
26081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26082 $as_echo "yes" >&6; }
26083                            enable_Bsymbolic=yes
26084 else
26085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26087                            enable_Bsymbolic=no
26088 fi
26089 rm -f core conftest.err conftest.$ac_objext \
26090     conftest$ac_exeext conftest.$ac_ext
26091                LDFLAGS="${SAVED_LDFLAGS}"
26092 fi
26093
26094
26095 if test "x${enable_Bsymbolic}" = "xyes"; then
26096   GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions
26097 fi
26098
26099
26100
26101 #
26102 # Define variables corresponding to the correct include paths to use for
26103 # in-tree building.
26104 #
26105
26106 # for config.h:
26107 config_h_INCLUDES='-I$(top_builddir)'
26108
26109
26110 # glib:
26111 #   config.h
26112 #   $(top_builddir)/glib: for glibconfig.h
26113 #   $(top_srcdir)/glib:   for glib.h
26114 #   $(top_srcdir):        for everything
26115 glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)'
26116
26117
26118 # gthread:
26119 #   same as glib
26120 gthread_INCLUDES='$(glib_INCLUDES)'
26121
26122
26123 # gobject:
26124 #   same as gthread
26125 gobject_INCLUDES='$(gthread_INCLUDES)'
26126
26127
26128 # gmodule:
26129 #   glib includes
26130 #   $(top_srcdir)/gmodule: for gmodule.h
26131 gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule'
26132
26133
26134 # gio:
26135 #   same as gmodule
26136 gio_INCLUDES='$(gmodule_INCLUDES)'
26137
26138
26139
26140 ac_config_files="$ac_config_files Makefile glib/Makefile glib/libcharset/Makefile glib/gnulib/Makefile m4macros/Makefile"
26141
26142
26143 # we want to invoke this macro solely so that the config.status script
26144 # and automake generated makefiles know about these generated files.
26145 # They are only needed to distcheck the package
26146 if false; then
26147   ac_config_files="$ac_config_files README glib/glib.rc"
26148
26149 fi
26150
26151 cat >confcache <<\_ACEOF
26152 # This file is a shell script that caches the results of configure
26153 # tests run on this system so they can be shared between configure
26154 # scripts and configure runs, see configure's option --config-cache.
26155 # It is not useful on other systems.  If it contains results you don't
26156 # want to keep, you may remove or edit it.
26157 #
26158 # config.status only pays attention to the cache file if you give it
26159 # the --recheck option to rerun configure.
26160 #
26161 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26162 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26163 # following values.
26164
26165 _ACEOF
26166
26167 # The following way of writing the cache mishandles newlines in values,
26168 # but we know of no workaround that is simple, portable, and efficient.
26169 # So, we kill variables containing newlines.
26170 # Ultrix sh set writes to stderr and can't be redirected directly,
26171 # and sets the high bit in the cache file unless we assign to the vars.
26172 (
26173   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26174     eval ac_val=\$$ac_var
26175     case $ac_val in #(
26176     *${as_nl}*)
26177       case $ac_var in #(
26178       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26179 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26180       esac
26181       case $ac_var in #(
26182       _ | IFS | as_nl) ;; #(
26183       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26184       *) { eval $ac_var=; unset $ac_var;} ;;
26185       esac ;;
26186     esac
26187   done
26188
26189   (set) 2>&1 |
26190     case $as_nl`(ac_space=' '; set) 2>&1` in #(
26191     *${as_nl}ac_space=\ *)
26192       # `set' does not quote correctly, so add quotes: double-quote
26193       # substitution turns \\\\ into \\, and sed turns \\ into \.
26194       sed -n \
26195         "s/'/'\\\\''/g;
26196           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26197       ;; #(
26198     *)
26199       # `set' quotes correctly as required by POSIX, so do not add quotes.
26200       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26201       ;;
26202     esac |
26203     sort
26204 ) |
26205   sed '
26206      /^ac_cv_env_/b end
26207      t clear
26208      :clear
26209      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26210      t end
26211      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26212      :end' >>confcache
26213 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26214   if test -w "$cache_file"; then
26215     if test "x$cache_file" != "x/dev/null"; then
26216       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26217 $as_echo "$as_me: updating cache $cache_file" >&6;}
26218       if test ! -f "$cache_file" || test -h "$cache_file"; then
26219         cat confcache >"$cache_file"
26220       else
26221         case $cache_file in #(
26222         */* | ?:*)
26223           mv -f confcache "$cache_file"$$ &&
26224           mv -f "$cache_file"$$ "$cache_file" ;; #(
26225         *)
26226           mv -f confcache "$cache_file" ;;
26227         esac
26228       fi
26229     fi
26230   else
26231     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26233   fi
26234 fi
26235 rm -f confcache
26236
26237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26238 # Let make expand exec_prefix.
26239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26240
26241 DEFS=-DHAVE_CONFIG_H
26242
26243 ac_libobjs=
26244 ac_ltlibobjs=
26245 U=
26246 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26247   # 1. Remove the extension, and $U if already installed.
26248   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26249   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26250   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26251   #    will be set to the directory where LIBOBJS objects are built.
26252   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26253   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26254 done
26255 LIBOBJS=$ac_libobjs
26256
26257 LTLIBOBJS=$ac_ltlibobjs
26258
26259
26260  if test -n "$EXEEXT"; then
26261   am__EXEEXT_TRUE=
26262   am__EXEEXT_FALSE='#'
26263 else
26264   am__EXEEXT_TRUE='#'
26265   am__EXEEXT_FALSE=
26266 fi
26267
26268 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26269   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
26270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26271 fi
26272 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26273   as_fn_error $? "conditional \"AMDEP\" was never defined.
26274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26275 fi
26276 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26277   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26279 fi
26280 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
26281   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
26282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26283 fi
26284 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
26285   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
26286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26287 fi
26288 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
26289   as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined.
26290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26291 fi
26292 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
26293   as_fn_error $? "conditional \"OS_UNIX\" was never defined.
26294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26295 fi
26296 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
26297   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
26298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26299 fi
26300 if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then
26301   as_fn_error $? "conditional \"OS_CARBON\" was never defined.
26302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26303 fi
26304 if test -z "${OS_COCOA_TRUE}" && test -z "${OS_COCOA_FALSE}"; then
26305   as_fn_error $? "conditional \"OS_COCOA\" was never defined.
26306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26307 fi
26308 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
26309   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
26310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26311 fi
26312 if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then
26313   as_fn_error $? "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined.
26314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26315 fi
26316 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26317   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
26318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26319 fi
26320 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
26321   as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
26322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26323 fi
26324 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26325   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26327 fi
26328 if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then
26329   as_fn_error $? "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined.
26330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26331 fi
26332 if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then
26333   as_fn_error $? "conditional \"HAVE_GNUC_VISIBILITY\" was never defined.
26334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26335 fi
26336 if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then
26337   as_fn_error $? "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined.
26338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26339 fi
26340
26341 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
26342   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
26343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26344 fi
26345 if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then
26346   as_fn_error $? "conditional \"HAVE_GOOD_PRINTF\" was never defined.
26347 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26348 fi
26349 if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
26350   as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined.
26351 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26352 fi
26353 if test -z "${HAVE_FEN_TRUE}" && test -z "${HAVE_FEN_FALSE}"; then
26354   as_fn_error $? "conditional \"HAVE_FEN\" was never defined.
26355 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26356 fi
26357 if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then
26358   as_fn_error $? "conditional \"ENABLE_TIMELOOP\" was never defined.
26359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26360 fi
26361 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
26362   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
26363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26364 fi
26365 if test -z "${HAVE_EVENTFD_TRUE}" && test -z "${HAVE_EVENTFD_FALSE}"; then
26366   as_fn_error $? "conditional \"HAVE_EVENTFD\" was never defined.
26367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26368 fi
26369 if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then
26370   as_fn_error $? "conditional \"HAVE_DBUS1\" was never defined.
26371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26372 fi
26373
26374 : "${CONFIG_STATUS=./config.status}"
26375 ac_write_fail=0
26376 ac_clean_files_save=$ac_clean_files
26377 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26379 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26380 as_write_fail=0
26381 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26382 #! $SHELL
26383 # Generated by $as_me.
26384 # Run this file to recreate the current configuration.
26385 # Compiler output produced by configure, useful for debugging
26386 # configure, is in config.log if it exists.
26387
26388 debug=false
26389 ac_cs_recheck=false
26390 ac_cs_silent=false
26391
26392 SHELL=\${CONFIG_SHELL-$SHELL}
26393 export SHELL
26394 _ASEOF
26395 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26396 ## -------------------- ##
26397 ## M4sh Initialization. ##
26398 ## -------------------- ##
26399
26400 # Be more Bourne compatible
26401 DUALCASE=1; export DUALCASE # for MKS sh
26402 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26403   emulate sh
26404   NULLCMD=:
26405   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26406   # is contrary to our usage.  Disable this feature.
26407   alias -g '${1+"$@"}'='"$@"'
26408   setopt NO_GLOB_SUBST
26409 else
26410   case `(set -o) 2>/dev/null` in #(
26411   *posix*) :
26412     set -o posix ;; #(
26413   *) :
26414      ;;
26415 esac
26416 fi
26417
26418
26419 as_nl='
26420 '
26421 export as_nl
26422 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26423 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26424 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26425 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26426 # Prefer a ksh shell builtin over an external printf program on Solaris,
26427 # but without wasting forks for bash or zsh.
26428 if test -z "$BASH_VERSION$ZSH_VERSION" \
26429     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26430   as_echo='print -r --'
26431   as_echo_n='print -rn --'
26432 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26433   as_echo='printf %s\n'
26434   as_echo_n='printf %s'
26435 else
26436   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26437     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26438     as_echo_n='/usr/ucb/echo -n'
26439   else
26440     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26441     as_echo_n_body='eval
26442       arg=$1;
26443       case $arg in #(
26444       *"$as_nl"*)
26445         expr "X$arg" : "X\\(.*\\)$as_nl";
26446         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26447       esac;
26448       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26449     '
26450     export as_echo_n_body
26451     as_echo_n='sh -c $as_echo_n_body as_echo'
26452   fi
26453   export as_echo_body
26454   as_echo='sh -c $as_echo_body as_echo'
26455 fi
26456
26457 # The user is always right.
26458 if test "${PATH_SEPARATOR+set}" != set; then
26459   PATH_SEPARATOR=:
26460   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26461     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26462       PATH_SEPARATOR=';'
26463   }
26464 fi
26465
26466
26467 # IFS
26468 # We need space, tab and new line, in precisely that order.  Quoting is
26469 # there to prevent editors from complaining about space-tab.
26470 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26471 # splitting by setting IFS to empty value.)
26472 IFS=" ""        $as_nl"
26473
26474 # Find who we are.  Look in the path if we contain no directory separator.
26475 as_myself=
26476 case $0 in #((
26477   *[\\/]* ) as_myself=$0 ;;
26478   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26479 for as_dir in $PATH
26480 do
26481   IFS=$as_save_IFS
26482   test -z "$as_dir" && as_dir=.
26483     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26484   done
26485 IFS=$as_save_IFS
26486
26487      ;;
26488 esac
26489 # We did not find ourselves, most probably we were run as `sh COMMAND'
26490 # in which case we are not to be found in the path.
26491 if test "x$as_myself" = x; then
26492   as_myself=$0
26493 fi
26494 if test ! -f "$as_myself"; then
26495   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26496   exit 1
26497 fi
26498
26499 # Unset variables that we do not need and which cause bugs (e.g. in
26500 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
26501 # suppresses any "Segmentation fault" message there.  '((' could
26502 # trigger a bug in pdksh 5.2.14.
26503 for as_var in BASH_ENV ENV MAIL MAILPATH
26504 do eval test x\${$as_var+set} = xset \
26505   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26506 done
26507 PS1='$ '
26508 PS2='> '
26509 PS4='+ '
26510
26511 # NLS nuisances.
26512 LC_ALL=C
26513 export LC_ALL
26514 LANGUAGE=C
26515 export LANGUAGE
26516
26517 # CDPATH.
26518 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26519
26520
26521 # as_fn_error STATUS ERROR [LINENO LOG_FD]
26522 # ----------------------------------------
26523 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26524 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26525 # script with STATUS, using 1 if that was 0.
26526 as_fn_error ()
26527 {
26528   as_status=$1; test $as_status -eq 0 && as_status=1
26529   if test "$4"; then
26530     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26531     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26532   fi
26533   $as_echo "$as_me: error: $2" >&2
26534   as_fn_exit $as_status
26535 } # as_fn_error
26536
26537
26538 # as_fn_set_status STATUS
26539 # -----------------------
26540 # Set $? to STATUS, without forking.
26541 as_fn_set_status ()
26542 {
26543   return $1
26544 } # as_fn_set_status
26545
26546 # as_fn_exit STATUS
26547 # -----------------
26548 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26549 as_fn_exit ()
26550 {
26551   set +e
26552   as_fn_set_status $1
26553   exit $1
26554 } # as_fn_exit
26555
26556 # as_fn_unset VAR
26557 # ---------------
26558 # Portably unset VAR.
26559 as_fn_unset ()
26560 {
26561   { eval $1=; unset $1;}
26562 }
26563 as_unset=as_fn_unset
26564 # as_fn_append VAR VALUE
26565 # ----------------------
26566 # Append the text in VALUE to the end of the definition contained in VAR. Take
26567 # advantage of any shell optimizations that allow amortized linear growth over
26568 # repeated appends, instead of the typical quadratic growth present in naive
26569 # implementations.
26570 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26571   eval 'as_fn_append ()
26572   {
26573     eval $1+=\$2
26574   }'
26575 else
26576   as_fn_append ()
26577   {
26578     eval $1=\$$1\$2
26579   }
26580 fi # as_fn_append
26581
26582 # as_fn_arith ARG...
26583 # ------------------
26584 # Perform arithmetic evaluation on the ARGs, and store the result in the
26585 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26586 # must be portable across $(()) and expr.
26587 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26588   eval 'as_fn_arith ()
26589   {
26590     as_val=$(( $* ))
26591   }'
26592 else
26593   as_fn_arith ()
26594   {
26595     as_val=`expr "$@" || test $? -eq 1`
26596   }
26597 fi # as_fn_arith
26598
26599
26600 if expr a : '\(a\)' >/dev/null 2>&1 &&
26601    test "X`expr 00001 : '.*\(...\)'`" = X001; then
26602   as_expr=expr
26603 else
26604   as_expr=false
26605 fi
26606
26607 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26608   as_basename=basename
26609 else
26610   as_basename=false
26611 fi
26612
26613 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26614   as_dirname=dirname
26615 else
26616   as_dirname=false
26617 fi
26618
26619 as_me=`$as_basename -- "$0" ||
26620 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26621          X"$0" : 'X\(//\)$' \| \
26622          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26623 $as_echo X/"$0" |
26624     sed '/^.*\/\([^/][^/]*\)\/*$/{
26625             s//\1/
26626             q
26627           }
26628           /^X\/\(\/\/\)$/{
26629             s//\1/
26630             q
26631           }
26632           /^X\/\(\/\).*/{
26633             s//\1/
26634             q
26635           }
26636           s/.*/./; q'`
26637
26638 # Avoid depending upon Character Ranges.
26639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26642 as_cr_digits='0123456789'
26643 as_cr_alnum=$as_cr_Letters$as_cr_digits
26644
26645 ECHO_C= ECHO_N= ECHO_T=
26646 case `echo -n x` in #(((((
26647 -n*)
26648   case `echo 'xy\c'` in
26649   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
26650   xy)  ECHO_C='\c';;
26651   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26652        ECHO_T=' ';;
26653   esac;;
26654 *)
26655   ECHO_N='-n';;
26656 esac
26657
26658 rm -f conf$$ conf$$.exe conf$$.file
26659 if test -d conf$$.dir; then
26660   rm -f conf$$.dir/conf$$.file
26661 else
26662   rm -f conf$$.dir
26663   mkdir conf$$.dir 2>/dev/null
26664 fi
26665 if (echo >conf$$.file) 2>/dev/null; then
26666   if ln -s conf$$.file conf$$ 2>/dev/null; then
26667     as_ln_s='ln -s'
26668     # ... but there are two gotchas:
26669     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26670     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26671     # In both cases, we have to default to `cp -p'.
26672     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26673       as_ln_s='cp -p'
26674   elif ln conf$$.file conf$$ 2>/dev/null; then
26675     as_ln_s=ln
26676   else
26677     as_ln_s='cp -p'
26678   fi
26679 else
26680   as_ln_s='cp -p'
26681 fi
26682 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26683 rmdir conf$$.dir 2>/dev/null
26684
26685
26686 # as_fn_mkdir_p
26687 # -------------
26688 # Create "$as_dir" as a directory, including parents if necessary.
26689 as_fn_mkdir_p ()
26690 {
26691
26692   case $as_dir in #(
26693   -*) as_dir=./$as_dir;;
26694   esac
26695   test -d "$as_dir" || eval $as_mkdir_p || {
26696     as_dirs=
26697     while :; do
26698       case $as_dir in #(
26699       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26700       *) as_qdir=$as_dir;;
26701       esac
26702       as_dirs="'$as_qdir' $as_dirs"
26703       as_dir=`$as_dirname -- "$as_dir" ||
26704 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26705          X"$as_dir" : 'X\(//\)[^/]' \| \
26706          X"$as_dir" : 'X\(//\)$' \| \
26707          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26708 $as_echo X"$as_dir" |
26709     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26710             s//\1/
26711             q
26712           }
26713           /^X\(\/\/\)[^/].*/{
26714             s//\1/
26715             q
26716           }
26717           /^X\(\/\/\)$/{
26718             s//\1/
26719             q
26720           }
26721           /^X\(\/\).*/{
26722             s//\1/
26723             q
26724           }
26725           s/.*/./; q'`
26726       test -d "$as_dir" && break
26727     done
26728     test -z "$as_dirs" || eval "mkdir $as_dirs"
26729   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26730
26731
26732 } # as_fn_mkdir_p
26733 if mkdir -p . 2>/dev/null; then
26734   as_mkdir_p='mkdir -p "$as_dir"'
26735 else
26736   test -d ./-p && rmdir ./-p
26737   as_mkdir_p=false
26738 fi
26739
26740 if test -x / >/dev/null 2>&1; then
26741   as_test_x='test -x'
26742 else
26743   if ls -dL / >/dev/null 2>&1; then
26744     as_ls_L_option=L
26745   else
26746     as_ls_L_option=
26747   fi
26748   as_test_x='
26749     eval sh -c '\''
26750       if test -d "$1"; then
26751         test -d "$1/.";
26752       else
26753         case $1 in #(
26754         -*)set "./$1";;
26755         esac;
26756         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26757         ???[sx]*):;;*)false;;esac;fi
26758     '\'' sh
26759   '
26760 fi
26761 as_executable_p=$as_test_x
26762
26763 # Sed expression to map a string onto a valid CPP name.
26764 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26765
26766 # Sed expression to map a string onto a valid variable name.
26767 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26768
26769
26770 exec 6>&1
26771 ## ----------------------------------- ##
26772 ## Main body of $CONFIG_STATUS script. ##
26773 ## ----------------------------------- ##
26774 _ASEOF
26775 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26776
26777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26778 # Save the log message, to keep $0 and so on meaningful, and to
26779 # report actual input values of CONFIG_FILES etc. instead of their
26780 # values after options handling.
26781 ac_log="
26782 This file was extended by glib $as_me 2.32.4, which was
26783 generated by GNU Autoconf 2.68.  Invocation command line was
26784
26785   CONFIG_FILES    = $CONFIG_FILES
26786   CONFIG_HEADERS  = $CONFIG_HEADERS
26787   CONFIG_LINKS    = $CONFIG_LINKS
26788   CONFIG_COMMANDS = $CONFIG_COMMANDS
26789   $ $0 $@
26790
26791 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26792 "
26793
26794 _ACEOF
26795
26796 case $ac_config_files in *"
26797 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26798 esac
26799
26800 case $ac_config_headers in *"
26801 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26802 esac
26803
26804
26805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26806 # Files that config.status was made for.
26807 config_files="$ac_config_files"
26808 config_headers="$ac_config_headers"
26809 config_commands="$ac_config_commands"
26810
26811 _ACEOF
26812
26813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26814 ac_cs_usage="\
26815 \`$as_me' instantiates files and other configuration actions
26816 from templates according to the current configuration.  Unless the files
26817 and actions are specified as TAGs, all are instantiated by default.
26818
26819 Usage: $0 [OPTION]... [TAG]...
26820
26821   -h, --help       print this help, then exit
26822   -V, --version    print version number and configuration settings, then exit
26823       --config     print configuration, then exit
26824   -q, --quiet, --silent
26825                    do not print progress messages
26826   -d, --debug      don't remove temporary files
26827       --recheck    update $as_me by reconfiguring in the same conditions
26828       --file=FILE[:TEMPLATE]
26829                    instantiate the configuration file FILE
26830       --header=FILE[:TEMPLATE]
26831                    instantiate the configuration header FILE
26832
26833 Configuration files:
26834 $config_files
26835
26836 Configuration headers:
26837 $config_headers
26838
26839 Configuration commands:
26840 $config_commands
26841
26842 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>."
26843
26844 _ACEOF
26845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26846 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26847 ac_cs_version="\\
26848 glib config.status 2.32.4
26849 configured by $0, generated by GNU Autoconf 2.68,
26850   with options \\"\$ac_cs_config\\"
26851
26852 Copyright (C) 2010 Free Software Foundation, Inc.
26853 This config.status script is free software; the Free Software Foundation
26854 gives unlimited permission to copy, distribute and modify it."
26855
26856 ac_pwd='$ac_pwd'
26857 srcdir='$srcdir'
26858 INSTALL='$INSTALL'
26859 MKDIR_P='$MKDIR_P'
26860 AWK='$AWK'
26861 test -n "\$AWK" || AWK=awk
26862 _ACEOF
26863
26864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26865 # The default lists apply if the user does not specify any file.
26866 ac_need_defaults=:
26867 while test $# != 0
26868 do
26869   case $1 in
26870   --*=?*)
26871     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26872     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26873     ac_shift=:
26874     ;;
26875   --*=)
26876     ac_option=`expr "X$1" : 'X\([^=]*\)='`
26877     ac_optarg=
26878     ac_shift=:
26879     ;;
26880   *)
26881     ac_option=$1
26882     ac_optarg=$2
26883     ac_shift=shift
26884     ;;
26885   esac
26886
26887   case $ac_option in
26888   # Handling of the options.
26889   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26890     ac_cs_recheck=: ;;
26891   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26892     $as_echo "$ac_cs_version"; exit ;;
26893   --config | --confi | --conf | --con | --co | --c )
26894     $as_echo "$ac_cs_config"; exit ;;
26895   --debug | --debu | --deb | --de | --d | -d )
26896     debug=: ;;
26897   --file | --fil | --fi | --f )
26898     $ac_shift
26899     case $ac_optarg in
26900     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26901     '') as_fn_error $? "missing file argument" ;;
26902     esac
26903     as_fn_append CONFIG_FILES " '$ac_optarg'"
26904     ac_need_defaults=false;;
26905   --header | --heade | --head | --hea )
26906     $ac_shift
26907     case $ac_optarg in
26908     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26909     esac
26910     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26911     ac_need_defaults=false;;
26912   --he | --h)
26913     # Conflict between --help and --header
26914     as_fn_error $? "ambiguous option: \`$1'
26915 Try \`$0 --help' for more information.";;
26916   --help | --hel | -h )
26917     $as_echo "$ac_cs_usage"; exit ;;
26918   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26919   | -silent | --silent | --silen | --sile | --sil | --si | --s)
26920     ac_cs_silent=: ;;
26921
26922   # This is an error.
26923   -*) as_fn_error $? "unrecognized option: \`$1'
26924 Try \`$0 --help' for more information." ;;
26925
26926   *) as_fn_append ac_config_targets " $1"
26927      ac_need_defaults=false ;;
26928
26929   esac
26930   shift
26931 done
26932
26933 ac_configure_extra_args=
26934
26935 if $ac_cs_silent; then
26936   exec 6>/dev/null
26937   ac_configure_extra_args="$ac_configure_extra_args --silent"
26938 fi
26939
26940 _ACEOF
26941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26942 if \$ac_cs_recheck; then
26943   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26944   shift
26945   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26946   CONFIG_SHELL='$SHELL'
26947   export CONFIG_SHELL
26948   exec "\$@"
26949 fi
26950
26951 _ACEOF
26952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26953 exec 5>>config.log
26954 {
26955   echo
26956   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26957 ## Running $as_me. ##
26958 _ASBOX
26959   $as_echo "$ac_log"
26960 } >&5
26961
26962 _ACEOF
26963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26964 #
26965 # INIT-COMMANDS
26966 #
26967 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26968
26969
26970 # The HP-UX ksh and POSIX shell print the target directory to stdout
26971 # if CDPATH is set.
26972 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26973
26974 sed_quote_subst='$sed_quote_subst'
26975 double_quote_subst='$double_quote_subst'
26976 delay_variable_subst='$delay_variable_subst'
26977 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26978 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26979 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26980 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
26981 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
26982 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26983 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26984 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26985 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26986 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26987 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26988 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26989 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26990 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26991 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26992 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26993 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26994 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26995 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26996 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26997 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26998 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26999 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27000 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27001 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27002 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27003 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27004 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27005 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27006 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27007 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27008 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27009 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27010 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27011 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27012 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27013 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27014 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27015 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27016 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27017 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27018 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27019 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27020 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27021 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27022 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27023 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27024 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27025 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27026 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27027 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27028 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27029 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27030 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27031 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27032 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27033 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"`'
27034 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27035 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27036 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27037 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27038 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27039 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27040 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27041 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27042 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27043 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27044 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27045 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27046 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27047 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27048 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27049 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27050 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27051 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27052 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27053 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27054 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27055 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27056 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27057 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27058 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27059 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27060 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27061 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27062 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27063 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27064 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27065 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27066 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27067 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27068 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27069 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27070 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27071 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27072 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27073 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27074 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27075 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27076 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27077 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27078 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27079 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27080 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27081 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27082 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27083 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27084 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27085 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27086 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27087 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27088 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27089 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27090 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27091 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27092 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27093 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27094 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27095 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27096 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27097 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27098 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27099 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27100 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27101 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27102 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27103 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27104 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27105 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27106 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27107 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27108 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27109 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27110 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27111 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27112 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27113 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27114 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
27115 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
27116 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27117 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27118 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
27119 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
27120 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
27121 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
27122 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
27123 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
27124 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
27125 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
27126 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
27127 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27128 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27129 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
27130 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27131 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27132 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27133 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27134 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27135 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27136 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
27137 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27138 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
27139 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
27140 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
27141 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
27142 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
27143 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
27144 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
27145 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
27146 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
27147 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
27148 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
27149 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
27150 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27151 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27152 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
27153 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27154 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
27155 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
27156 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
27157 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
27158 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27159 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
27160 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
27161 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
27162 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
27163
27164 LTCC='$LTCC'
27165 LTCFLAGS='$LTCFLAGS'
27166 compiler='$compiler_DEFAULT'
27167
27168 # A function that is used when there is no print builtin or printf.
27169 func_fallback_echo ()
27170 {
27171   eval 'cat <<_LTECHO_EOF
27172 \$1
27173 _LTECHO_EOF'
27174 }
27175
27176 # Quote evaled strings.
27177 for var in AS \
27178 DLLTOOL \
27179 OBJDUMP \
27180 SHELL \
27181 ECHO \
27182 SED \
27183 GREP \
27184 EGREP \
27185 FGREP \
27186 LD \
27187 NM \
27188 LN_S \
27189 lt_SP2NL \
27190 lt_NL2SP \
27191 reload_flag \
27192 deplibs_check_method \
27193 file_magic_cmd \
27194 file_magic_glob \
27195 want_nocaseglob \
27196 sharedlib_from_linklib_cmd \
27197 AR \
27198 AR_FLAGS \
27199 archiver_list_spec \
27200 STRIP \
27201 RANLIB \
27202 CC \
27203 CFLAGS \
27204 compiler \
27205 lt_cv_sys_global_symbol_pipe \
27206 lt_cv_sys_global_symbol_to_cdecl \
27207 lt_cv_sys_global_symbol_to_c_name_address \
27208 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27209 nm_file_list_spec \
27210 lt_prog_compiler_no_builtin_flag \
27211 lt_prog_compiler_pic \
27212 lt_prog_compiler_wl \
27213 lt_prog_compiler_static \
27214 lt_cv_prog_compiler_c_o \
27215 need_locks \
27216 MANIFEST_TOOL \
27217 DSYMUTIL \
27218 NMEDIT \
27219 LIPO \
27220 OTOOL \
27221 OTOOL64 \
27222 shrext_cmds \
27223 export_dynamic_flag_spec \
27224 whole_archive_flag_spec \
27225 compiler_needs_object \
27226 with_gnu_ld \
27227 allow_undefined_flag \
27228 no_undefined_flag \
27229 hardcode_libdir_flag_spec \
27230 hardcode_libdir_flag_spec_ld \
27231 hardcode_libdir_separator \
27232 exclude_expsyms \
27233 include_expsyms \
27234 file_list_spec \
27235 variables_saved_for_relink \
27236 libname_spec \
27237 library_names_spec \
27238 soname_spec \
27239 install_override_mode \
27240 finish_eval \
27241 old_striplib \
27242 striplib \
27243 compiler_lib_search_dirs \
27244 predep_objects \
27245 postdep_objects \
27246 predeps \
27247 postdeps \
27248 compiler_lib_search_path \
27249 LD_CXX \
27250 reload_flag_CXX \
27251 compiler_CXX \
27252 lt_prog_compiler_no_builtin_flag_CXX \
27253 lt_prog_compiler_pic_CXX \
27254 lt_prog_compiler_wl_CXX \
27255 lt_prog_compiler_static_CXX \
27256 lt_cv_prog_compiler_c_o_CXX \
27257 export_dynamic_flag_spec_CXX \
27258 whole_archive_flag_spec_CXX \
27259 compiler_needs_object_CXX \
27260 with_gnu_ld_CXX \
27261 allow_undefined_flag_CXX \
27262 no_undefined_flag_CXX \
27263 hardcode_libdir_flag_spec_CXX \
27264 hardcode_libdir_flag_spec_ld_CXX \
27265 hardcode_libdir_separator_CXX \
27266 exclude_expsyms_CXX \
27267 include_expsyms_CXX \
27268 file_list_spec_CXX \
27269 compiler_lib_search_dirs_CXX \
27270 predep_objects_CXX \
27271 postdep_objects_CXX \
27272 predeps_CXX \
27273 postdeps_CXX \
27274 compiler_lib_search_path_CXX; do
27275     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27276     *[\\\\\\\`\\"\\\$]*)
27277       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27278       ;;
27279     *)
27280       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27281       ;;
27282     esac
27283 done
27284
27285 # Double-quote double-evaled strings.
27286 for var in reload_cmds \
27287 old_postinstall_cmds \
27288 old_postuninstall_cmds \
27289 old_archive_cmds \
27290 extract_expsyms_cmds \
27291 old_archive_from_new_cmds \
27292 old_archive_from_expsyms_cmds \
27293 archive_cmds \
27294 archive_expsym_cmds \
27295 module_cmds \
27296 module_expsym_cmds \
27297 export_symbols_cmds \
27298 prelink_cmds \
27299 postlink_cmds \
27300 postinstall_cmds \
27301 postuninstall_cmds \
27302 finish_cmds \
27303 sys_lib_search_path_spec \
27304 sys_lib_dlsearch_path_spec \
27305 reload_cmds_CXX \
27306 old_archive_cmds_CXX \
27307 old_archive_from_new_cmds_CXX \
27308 old_archive_from_expsyms_cmds_CXX \
27309 archive_cmds_CXX \
27310 archive_expsym_cmds_CXX \
27311 module_cmds_CXX \
27312 module_expsym_cmds_CXX \
27313 export_symbols_cmds_CXX \
27314 prelink_cmds_CXX \
27315 postlink_cmds_CXX; do
27316     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27317     *[\\\\\\\`\\"\\\$]*)
27318       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27319       ;;
27320     *)
27321       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27322       ;;
27323     esac
27324 done
27325
27326 ac_aux_dir='$ac_aux_dir'
27327 xsi_shell='$xsi_shell'
27328 lt_shell_append='$lt_shell_append'
27329
27330 # See if we are running on zsh, and set the options which allow our
27331 # commands through without removal of \ escapes INIT.
27332 if test -n "\${ZSH_VERSION+set}" ; then
27333    setopt NO_GLOB_SUBST
27334 fi
27335
27336
27337     PACKAGE='$PACKAGE'
27338     VERSION='$VERSION'
27339     TIMESTAMP='$TIMESTAMP'
27340     RM='$RM'
27341     ofile='$ofile'
27342
27343
27344
27345 ac_aux_dir='$ac_aux_dir'
27346
27347
27348
27349
27350 # Note that if two cases are the same, case goes with the first one.
27351 # Note also that this is inside an AC_OUTPUT_COMMAND.  We do not depend
27352 # on variable expansion in case labels.  Look at the generated config.status
27353 # for a hint.
27354
27355 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
27356   glib_header_alloca_h="$ac_cv_working_alloca_h"
27357 else
27358   glib_header_alloca_h="$ac_cv_header_alloca_h"
27359 fi
27360
27361 case xyes in
27362 x$ac_cv_header_float_h)
27363   glib_float_h=yes
27364   glib_mf=FLT_MIN glib_Mf=FLT_MAX
27365   glib_md=DBL_MIN glib_Md=DBL_MAX
27366   ;;
27367 x$ac_cv_header_values_h)
27368   glib_values_h=yes
27369   glib_mf=MINFLOAT  glib_Mf=MAXFLOAT
27370   glib_md=MINDOUBLE glib_Md=MAXDOUBLE
27371   ;;
27372 esac
27373
27374 case xyes in
27375 x$ac_cv_header_limits_h)
27376   glib_limits_h=yes
27377   glib_ms=SHRT_MIN glib_Ms=SHRT_MAX glib_Mus=USHRT_MAX
27378   glib_mi=INT_MIN  glib_Mi=INT_MAX  glib_Mui=UINT_MAX
27379   glib_ml=LONG_MIN glib_Ml=LONG_MAX glib_Mul=ULONG_MAX
27380   ;;
27381 x$ac_cv_header_values_h)
27382   glib_values_h=yes
27383   glib_ms=MINSHORT glib_Ms=MAXSHORT glib_Mus="(((gushort)G_MAXSHORT)*2+1)"
27384   glib_mi=MININT   glib_Mi=MAXINT   glib_Mui="(((guint)G_MAXINT)*2+1)"
27385   glib_ml=MINLONG  glib_Ml=MAXLONG  glib_Mul="(((gulong)G_MAXLONG)*2+1)"
27386   ;;
27387 esac
27388
27389 if test x$ac_cv_header_sys_poll_h = xyes ; then
27390   glib_sys_poll_h=yes
27391 fi
27392
27393 if test x$enable_included_printf = xyes ; then
27394   glib_included_printf=yes
27395 fi
27396
27397 case 2 in
27398 $ac_cv_sizeof_short)
27399   gint16=short
27400   gint16_modifier='"h"'
27401   gint16_format='"hi"'
27402   guint16_format='"hu"'
27403   ;;
27404 $ac_cv_sizeof_int)
27405   gint16=int
27406   gint16_modifier='""'
27407   gint16_format='"i"'
27408   guint16_format='"u"'
27409   ;;
27410 esac
27411 case 4 in
27412 $ac_cv_sizeof_short)
27413   gint32=short
27414   gint32_modifier='"h"'
27415   gint32_format='"hi"'
27416   guint32_format='"hu"'
27417   ;;
27418 $ac_cv_sizeof_int)
27419   gint32=int
27420   gint32_modifier='""'
27421   gint32_format='"i"'
27422   guint32_format='"u"'
27423   ;;
27424 $ac_cv_sizeof_long)
27425   gint32=long
27426   gint32_modifier='"l"'
27427   gint32_format='"li"'
27428   guint32_format='"lu"'
27429   ;;
27430 esac
27431 case 8 in
27432 $ac_cv_sizeof_int)
27433   gint64=int
27434   gint64_modifier='""'
27435   gint64_format='"i"'
27436   guint64_format='"u"'
27437   glib_extension=
27438   gint64_constant='(val)'
27439   guint64_constant='(val)'
27440   ;;
27441 $ac_cv_sizeof_long)
27442   gint64=long
27443   gint64_modifier='"l"'
27444   gint64_format='"li"'
27445   guint64_format='"lu"'
27446   glib_extension=
27447   gint64_constant='(val##L)'
27448   guint64_constant='(val##UL)'
27449   ;;
27450 $ac_cv_sizeof_long_long)
27451   gint64='long long'
27452   if test -n "$glib_cv_long_long_format"; then
27453     gint64_modifier='"'$glib_cv_long_long_format'"'
27454     gint64_format='"'$glib_cv_long_long_format'i"'
27455     guint64_format='"'$glib_cv_long_long_format'u"'
27456   fi
27457   glib_extension='G_GNUC_EXTENSION '
27458   gint64_constant='(G_GNUC_EXTENSION (val##LL))'
27459   guint64_constant='(G_GNUC_EXTENSION (val##ULL))'
27460   ;;
27461 $ac_cv_sizeof___int64)
27462   gint64='__int64'
27463   if test -n "$glib_cv_long_long_format"; then
27464     gint64_modifier='"'$glib_cv_long_long_format'"'
27465     gint64_format='"'$glib_cv_long_long_format'i"'
27466     guint64_format='"'$glib_cv_long_long_format'u"'
27467   fi
27468   glib_extension=
27469   gint64_constant='(val##i64)'
27470   guint64_constant='(val##ui64)'
27471   ;;
27472 esac
27473 glib_size_t=$ac_cv_sizeof_size_t
27474 glib_size_type_define="$glib_size_type"
27475 glib_void_p=$ac_cv_sizeof_void_p
27476 glib_long=$ac_cv_sizeof_long
27477
27478 case "$glib_size_type" in
27479 short)
27480   gsize_modifier='"h"'
27481   gsize_format='"hu"'
27482   gssize_format='"hi"'
27483   glib_msize_type='SHRT'
27484   ;;
27485 int)
27486   gsize_modifier='""'
27487   gsize_format='"u"'
27488   gssize_format='"i"'
27489   glib_msize_type='INT'
27490   ;;
27491 long)
27492   gsize_modifier='"l"'
27493   gsize_format='"lu"'
27494   gssize_format='"li"'
27495   glib_msize_type='LONG'
27496   ;;
27497 "long long"|__int64)
27498   gsize_modifier='"I64"'
27499   gsize_format='"I64u"'
27500   gssize_format='"I64i"'
27501   glib_msize_type='INT64'
27502   ;;
27503 esac
27504
27505 gintbits=`expr $ac_cv_sizeof_int \* 8`
27506 glongbits=`expr $ac_cv_sizeof_long \* 8`
27507 gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
27508
27509 case $ac_cv_sizeof_void_p in
27510 $ac_cv_sizeof_int)
27511   glib_intptr_type_define=int
27512   gintptr_modifier='""'
27513   gintptr_format='"i"'
27514   guintptr_format='"u"'
27515   glib_gpi_cast='(gint)'
27516   glib_gpui_cast='(guint)'
27517   ;;
27518 $ac_cv_sizeof_long)
27519   glib_intptr_type_define=long
27520   gintptr_modifier='"l"'
27521   gintptr_format='"li"'
27522   guintptr_format='"lu"'
27523   glib_gpi_cast='(glong)'
27524   glib_gpui_cast='(gulong)'
27525   ;;
27526 $ac_cv_sizeof_long_long)
27527   glib_intptr_type_define='long long'
27528   gintptr_modifier='"I64"'
27529   gintptr_format='"I64i"'
27530   guintptr_format='"I64u"'
27531   glib_gpi_cast='(gint64)'
27532   glib_gpui_cast='(guint64)'
27533   ;;
27534 $ac_cv_sizeof___int64)
27535   glib_intptr_type_define=__int64
27536   gintptr_modifier='"I64"'
27537   gintptr_format='"I64i"'
27538   guintptr_format='"I64u"'
27539   glib_gpi_cast='(gint64)'
27540   glib_gpui_cast='(guint64)'
27541   ;;
27542 *)
27543   glib_unknown_void_p=yes
27544   ;;
27545 esac
27546
27547
27548 case xyes in
27549 x$ac_cv_func_atexit)
27550   glib_atexit="
27551 #ifdef NeXT /* @#%@! NeXTStep */
27552 # define g_ATEXIT(proc) (!atexit (proc))
27553 #else
27554 # define g_ATEXIT(proc) (atexit (proc))
27555 #endif"
27556   ;;
27557 x$ac_cv_func_on_exit)
27558   glib_atexit="
27559 #define g_ATEXIT(proc)  (on_exit ((void (*)(int, void*))(proc), NULL))"
27560   ;;
27561 esac
27562
27563 case xyes in
27564 x$ac_cv_func_memmove)
27565   glib_memmove='
27566 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END'
27567   ;;
27568 x$glib_cv_working_bcopy)
27569   glib_memmove="
27570 /* memmove isn't available, but bcopy can copy overlapping memory regions */
27571 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
27572   ;;
27573 *)
27574   glib_memmove="
27575 /* memmove isn't found and bcopy can't copy overlapping memory regions,
27576  * so we have to roll our own copy routine. */
27577 void g_memmove (void* dest, const void * src, unsigned long len);"
27578   ;;
27579 esac
27580
27581 glib_defines="
27582 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
27583 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
27584 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
27585 "
27586
27587 case xyes in
27588 x$glib_cv_va_copy)      glib_vacopy='#define G_VA_COPY  va_copy' ;;
27589 x$glib_cv___va_copy)    glib_vacopy='#define G_VA_COPY  __va_copy' ;;
27590 *)                      glib_vacopy=''
27591 esac
27592
27593 if test x$glib_cv_va_val_copy = xno; then
27594   glib_vacopy="\$glib_vacopy
27595 #define G_VA_COPY_AS_ARRAY 1"
27596 fi
27597
27598 if test x$glib_cv_hasinline = xyes; then
27599     glib_inline='#define G_HAVE_INLINE 1'
27600 fi
27601 if test x$glib_cv_has__inline = xyes; then
27602     glib_inline="\$glib_inline
27603 #define G_HAVE___INLINE 1"
27604 fi
27605 if test x$glib_cv_has__inline__ = xyes; then
27606     glib_inline="\$glib_inline
27607 #define G_HAVE___INLINE__ 1"
27608 fi
27609
27610 g_have_gnuc_varargs=$g_have_gnuc_varargs
27611 g_have_iso_c_varargs=$g_have_iso_c_varargs
27612 g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs
27613
27614 g_can_inline=$g_can_inline
27615 g_have_gnuc_visibility=$g_have_gnuc_visibility
27616 g_have_sunstudio_visibility=$g_have_sunstudio_visibility
27617
27618 if test x$ac_cv_c_bigendian = xyes; then
27619   g_byte_order=G_BIG_ENDIAN
27620   g_bs_native=BE
27621   g_bs_alien=LE
27622 else
27623   g_byte_order=G_LITTLE_ENDIAN
27624   g_bs_native=LE
27625   g_bs_alien=BE
27626 fi
27627
27628 g_pollin=$glib_cv_value_POLLIN
27629 g_pollout=$glib_cv_value_POLLOUT
27630 g_pollpri=$glib_cv_value_POLLPRI
27631 g_pollhup=$glib_cv_value_POLLHUP
27632 g_pollerr=$glib_cv_value_POLLERR
27633 g_pollnval=$glib_cv_value_POLLNVAL
27634
27635 # If a family is not found on the system, define that family to
27636 # a negative value, picking a different one for each undefined
27637 # family (-1 for AF_UNIX, -2 for the next one, -3 ...)
27638 # This is needed because glib-mkenums doesn't handle optional
27639 # values in enums, and thus we have to have all existing values
27640 # defined in the enum.
27641 if test "x$glib_cv_value_AF_UNIX" != "x"; then
27642   g_af_unix=$glib_cv_value_AF_UNIX
27643 else
27644   g_af_unix=-1
27645 fi
27646 g_af_inet=$glib_cv_value_AF_INET
27647 g_af_inet6=$glib_cv_value_AF_INET6
27648
27649 g_msg_peek=$glib_cv_value_MSG_PEEK
27650 g_msg_oob=$glib_cv_value_MSG_OOB
27651 g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE
27652
27653 g_stack_grows=$glib_cv_stack_grows
27654
27655 g_have_eilseq=$have_eilseq
27656
27657 g_threads_impl_def=$g_threads_impl
27658
27659 g_atomic_lock_free="$glib_cv_g_atomic_lock_free"
27660 g_memory_barrier_needed="$glib_memory_barrier_needed"
27661 g_gcc_atomic_ops="$glib_cv_gcc_has_builtin_atomic_operations"
27662
27663 g_module_suffix="$glib_gmodule_suffix"
27664
27665 g_pid_type="$glib_pid_type"
27666 case $host in
27667   *-*-beos*)
27668     glib_os="#define G_OS_BEOS"
27669     ;;
27670   *-*-cygwin*)
27671     glib_os="#define G_OS_UNIX
27672 #define G_PLATFORM_WIN32
27673 #define G_WITH_CYGWIN"
27674     ;;
27675   *-*-mingw*)
27676     glib_os="#define G_OS_WIN32
27677 #define G_PLATFORM_WIN32"
27678     ;;
27679   *)
27680     glib_os="#define G_OS_UNIX"
27681     ;;
27682 esac
27683 glib_static_compilation=""
27684 if test x$glib_win32_static_compilation = xyes; then
27685   glib_static_compilation="#define GLIB_STATIC_COMPILATION 1
27686 #define GOBJECT_STATIC_COMPILATION 1"
27687 fi
27688
27689
27690 _ACEOF
27691
27692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27693
27694 # Handling of arguments.
27695 for ac_config_target in $ac_config_targets
27696 do
27697   case $ac_config_target in
27698     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27699     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27700     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27701     "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;;
27702     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27703     "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
27704     "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;;
27705     "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;;
27706     "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
27707     "README") CONFIG_FILES="$CONFIG_FILES README" ;;
27708     "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;;
27709
27710   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27711   esac
27712 done
27713
27714
27715 # If the user did not use the arguments to specify the items to instantiate,
27716 # then the envvar interface is used.  Set only those that are not.
27717 # We use the long form for the default assignment because of an extremely
27718 # bizarre bug on SunOS 4.1.3.
27719 if $ac_need_defaults; then
27720   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27721   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27722   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27723 fi
27724
27725 # Have a temporary directory for convenience.  Make it in the build tree
27726 # simply because there is no reason against having it here, and in addition,
27727 # creating and moving files from /tmp can sometimes cause problems.
27728 # Hook for its removal unless debugging.
27729 # Note that there is a small window in which the directory will not be cleaned:
27730 # after its creation but before its name has been assigned to `$tmp'.
27731 $debug ||
27732 {
27733   tmp= ac_tmp=
27734   trap 'exit_status=$?
27735   : "${ac_tmp:=$tmp}"
27736   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27737 ' 0
27738   trap 'as_fn_exit 1' 1 2 13 15
27739 }
27740 # Create a (secure) tmp directory for tmp files.
27741
27742 {
27743   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27744   test -d "$tmp"
27745 }  ||
27746 {
27747   tmp=./conf$$-$RANDOM
27748   (umask 077 && mkdir "$tmp")
27749 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27750 ac_tmp=$tmp
27751
27752 # Set up the scripts for CONFIG_FILES section.
27753 # No need to generate them if there are no CONFIG_FILES.
27754 # This happens for instance with `./config.status config.h'.
27755 if test -n "$CONFIG_FILES"; then
27756
27757
27758 ac_cr=`echo X | tr X '\015'`
27759 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27760 # But we know of no other shell where ac_cr would be empty at this
27761 # point, so we can use a bashism as a fallback.
27762 if test "x$ac_cr" = x; then
27763   eval ac_cr=\$\'\\r\'
27764 fi
27765 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27766 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27767   ac_cs_awk_cr='\\r'
27768 else
27769   ac_cs_awk_cr=$ac_cr
27770 fi
27771
27772 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27773 _ACEOF
27774
27775
27776 {
27777   echo "cat >conf$$subs.awk <<_ACEOF" &&
27778   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27779   echo "_ACEOF"
27780 } >conf$$subs.sh ||
27781   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27782 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27783 ac_delim='%!_!# '
27784 for ac_last_try in false false false false false :; do
27785   . ./conf$$subs.sh ||
27786     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27787
27788   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27789   if test $ac_delim_n = $ac_delim_num; then
27790     break
27791   elif $ac_last_try; then
27792     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27793   else
27794     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27795   fi
27796 done
27797 rm -f conf$$subs.sh
27798
27799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27800 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27801 _ACEOF
27802 sed -n '
27803 h
27804 s/^/S["/; s/!.*/"]=/
27805 p
27806 g
27807 s/^[^!]*!//
27808 :repl
27809 t repl
27810 s/'"$ac_delim"'$//
27811 t delim
27812 :nl
27813 h
27814 s/\(.\{148\}\)..*/\1/
27815 t more1
27816 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27817 p
27818 n
27819 b repl
27820 :more1
27821 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27822 p
27823 g
27824 s/.\{148\}//
27825 t nl
27826 :delim
27827 h
27828 s/\(.\{148\}\)..*/\1/
27829 t more2
27830 s/["\\]/\\&/g; s/^/"/; s/$/"/
27831 p
27832 b
27833 :more2
27834 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27835 p
27836 g
27837 s/.\{148\}//
27838 t delim
27839 ' <conf$$subs.awk | sed '
27840 /^[^""]/{
27841   N
27842   s/\n//
27843 }
27844 ' >>$CONFIG_STATUS || ac_write_fail=1
27845 rm -f conf$$subs.awk
27846 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27847 _ACAWK
27848 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27849   for (key in S) S_is_set[key] = 1
27850   FS = "\a"
27851
27852 }
27853 {
27854   line = $ 0
27855   nfields = split(line, field, "@")
27856   substed = 0
27857   len = length(field[1])
27858   for (i = 2; i < nfields; i++) {
27859     key = field[i]
27860     keylen = length(key)
27861     if (S_is_set[key]) {
27862       value = S[key]
27863       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27864       len += length(value) + length(field[++i])
27865       substed = 1
27866     } else
27867       len += 1 + keylen
27868   }
27869
27870   print line
27871 }
27872
27873 _ACAWK
27874 _ACEOF
27875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27876 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27877   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27878 else
27879   cat
27880 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27881   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27882 _ACEOF
27883
27884 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27885 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27886 # trailing colons and then remove the whole line if VPATH becomes empty
27887 # (actually we leave an empty line to preserve line numbers).
27888 if test "x$srcdir" = x.; then
27889   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
27890 h
27891 s///
27892 s/^/:/
27893 s/[      ]*$/:/
27894 s/:\$(srcdir):/:/g
27895 s/:\${srcdir}:/:/g
27896 s/:@srcdir@:/:/g
27897 s/^:*//
27898 s/:*$//
27899 x
27900 s/\(=[   ]*\).*/\1/
27901 G
27902 s/\n//
27903 s/^[^=]*=[       ]*$//
27904 }'
27905 fi
27906
27907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27908 fi # test -n "$CONFIG_FILES"
27909
27910 # Set up the scripts for CONFIG_HEADERS section.
27911 # No need to generate them if there are no CONFIG_HEADERS.
27912 # This happens for instance with `./config.status Makefile'.
27913 if test -n "$CONFIG_HEADERS"; then
27914 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27915 BEGIN {
27916 _ACEOF
27917
27918 # Transform confdefs.h into an awk script `defines.awk', embedded as
27919 # here-document in config.status, that substitutes the proper values into
27920 # config.h.in to produce config.h.
27921
27922 # Create a delimiter string that does not exist in confdefs.h, to ease
27923 # handling of long lines.
27924 ac_delim='%!_!# '
27925 for ac_last_try in false false :; do
27926   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27927   if test -z "$ac_tt"; then
27928     break
27929   elif $ac_last_try; then
27930     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27931   else
27932     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27933   fi
27934 done
27935
27936 # For the awk script, D is an array of macro values keyed by name,
27937 # likewise P contains macro parameters if any.  Preserve backslash
27938 # newline sequences.
27939
27940 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27941 sed -n '
27942 s/.\{148\}/&'"$ac_delim"'/g
27943 t rset
27944 :rset
27945 s/^[     ]*#[    ]*define[       ][      ]*/ /
27946 t def
27947 d
27948 :def
27949 s/\\$//
27950 t bsnl
27951 s/["\\]/\\&/g
27952 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27953 D["\1"]=" \3"/p
27954 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
27955 d
27956 :bsnl
27957 s/["\\]/\\&/g
27958 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
27959 D["\1"]=" \3\\\\\\n"\\/p
27960 t cont
27961 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27962 t cont
27963 d
27964 :cont
27965 n
27966 s/.\{148\}/&'"$ac_delim"'/g
27967 t clear
27968 :clear
27969 s/\\$//
27970 t bsnlc
27971 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27972 d
27973 :bsnlc
27974 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27975 b cont
27976 ' <confdefs.h | sed '
27977 s/'"$ac_delim"'/"\\\
27978 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27979
27980 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27981   for (key in D) D_is_set[key] = 1
27982   FS = "\a"
27983 }
27984 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27985   line = \$ 0
27986   split(line, arg, " ")
27987   if (arg[1] == "#") {
27988     defundef = arg[2]
27989     mac1 = arg[3]
27990   } else {
27991     defundef = substr(arg[1], 2)
27992     mac1 = arg[2]
27993   }
27994   split(mac1, mac2, "(") #)
27995   macro = mac2[1]
27996   prefix = substr(line, 1, index(line, defundef) - 1)
27997   if (D_is_set[macro]) {
27998     # Preserve the white space surrounding the "#".
27999     print prefix "define", macro P[macro] D[macro]
28000     next
28001   } else {
28002     # Replace #undef with comments.  This is necessary, for example,
28003     # in the case of _POSIX_SOURCE, which is predefined and required
28004     # on some systems where configure will not decide to define it.
28005     if (defundef == "undef") {
28006       print "/*", prefix defundef, macro, "*/"
28007       next
28008     }
28009   }
28010 }
28011 { print }
28012 _ACAWK
28013 _ACEOF
28014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28015   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
28016 fi # test -n "$CONFIG_HEADERS"
28017
28018
28019 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
28020 shift
28021 for ac_tag
28022 do
28023   case $ac_tag in
28024   :[FHLC]) ac_mode=$ac_tag; continue;;
28025   esac
28026   case $ac_mode$ac_tag in
28027   :[FHL]*:*);;
28028   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
28029   :[FH]-) ac_tag=-:-;;
28030   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28031   esac
28032   ac_save_IFS=$IFS
28033   IFS=:
28034   set x $ac_tag
28035   IFS=$ac_save_IFS
28036   shift
28037   ac_file=$1
28038   shift
28039
28040   case $ac_mode in
28041   :L) ac_source=$1;;
28042   :[FH])
28043     ac_file_inputs=
28044     for ac_f
28045     do
28046       case $ac_f in
28047       -) ac_f="$ac_tmp/stdin";;
28048       *) # Look for the file first in the build tree, then in the source tree
28049          # (if the path is not absolute).  The absolute path cannot be DOS-style,
28050          # because $ac_f cannot contain `:'.
28051          test -f "$ac_f" ||
28052            case $ac_f in
28053            [\\/$]*) false;;
28054            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28055            esac ||
28056            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28057       esac
28058       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28059       as_fn_append ac_file_inputs " '$ac_f'"
28060     done
28061
28062     # Let's still pretend it is `configure' which instantiates (i.e., don't
28063     # use $as_me), people would be surprised to read:
28064     #    /* config.h.  Generated by config.status.  */
28065     configure_input='Generated from '`
28066           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28067         `' by configure.'
28068     if test x"$ac_file" != x-; then
28069       configure_input="$ac_file.  $configure_input"
28070       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28071 $as_echo "$as_me: creating $ac_file" >&6;}
28072     fi
28073     # Neutralize special characters interpreted by sed in replacement strings.
28074     case $configure_input in #(
28075     *\&* | *\|* | *\\* )
28076        ac_sed_conf_input=`$as_echo "$configure_input" |
28077        sed 's/[\\\\&|]/\\\\&/g'`;; #(
28078     *) ac_sed_conf_input=$configure_input;;
28079     esac
28080
28081     case $ac_tag in
28082     *:-:* | *:-) cat >"$ac_tmp/stdin" \
28083       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
28084     esac
28085     ;;
28086   esac
28087
28088   ac_dir=`$as_dirname -- "$ac_file" ||
28089 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28090          X"$ac_file" : 'X\(//\)[^/]' \| \
28091          X"$ac_file" : 'X\(//\)$' \| \
28092          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28093 $as_echo X"$ac_file" |
28094     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28095             s//\1/
28096             q
28097           }
28098           /^X\(\/\/\)[^/].*/{
28099             s//\1/
28100             q
28101           }
28102           /^X\(\/\/\)$/{
28103             s//\1/
28104             q
28105           }
28106           /^X\(\/\).*/{
28107             s//\1/
28108             q
28109           }
28110           s/.*/./; q'`
28111   as_dir="$ac_dir"; as_fn_mkdir_p
28112   ac_builddir=.
28113
28114 case "$ac_dir" in
28115 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28116 *)
28117   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28118   # A ".." for each directory in $ac_dir_suffix.
28119   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28120   case $ac_top_builddir_sub in
28121   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28122   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28123   esac ;;
28124 esac
28125 ac_abs_top_builddir=$ac_pwd
28126 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28127 # for backward compatibility:
28128 ac_top_builddir=$ac_top_build_prefix
28129
28130 case $srcdir in
28131   .)  # We are building in place.
28132     ac_srcdir=.
28133     ac_top_srcdir=$ac_top_builddir_sub
28134     ac_abs_top_srcdir=$ac_pwd ;;
28135   [\\/]* | ?:[\\/]* )  # Absolute name.
28136     ac_srcdir=$srcdir$ac_dir_suffix;
28137     ac_top_srcdir=$srcdir
28138     ac_abs_top_srcdir=$srcdir ;;
28139   *) # Relative name.
28140     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28141     ac_top_srcdir=$ac_top_build_prefix$srcdir
28142     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28143 esac
28144 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28145
28146
28147   case $ac_mode in
28148   :F)
28149   #
28150   # CONFIG_FILE
28151   #
28152
28153   case $INSTALL in
28154   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28155   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28156   esac
28157   ac_MKDIR_P=$MKDIR_P
28158   case $MKDIR_P in
28159   [\\/$]* | ?:[\\/]* ) ;;
28160   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28161   esac
28162 _ACEOF
28163
28164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28165 # If the template does not know about datarootdir, expand it.
28166 # FIXME: This hack should be removed a few years after 2.60.
28167 ac_datarootdir_hack=; ac_datarootdir_seen=
28168 ac_sed_dataroot='
28169 /datarootdir/ {
28170   p
28171   q
28172 }
28173 /@datadir@/p
28174 /@docdir@/p
28175 /@infodir@/p
28176 /@localedir@/p
28177 /@mandir@/p'
28178 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28179 *datarootdir*) ac_datarootdir_seen=yes;;
28180 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28181   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28182 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28183 _ACEOF
28184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28185   ac_datarootdir_hack='
28186   s&@datadir@&$datadir&g
28187   s&@docdir@&$docdir&g
28188   s&@infodir@&$infodir&g
28189   s&@localedir@&$localedir&g
28190   s&@mandir@&$mandir&g
28191   s&\\\${datarootdir}&$datarootdir&g' ;;
28192 esac
28193 _ACEOF
28194
28195 # Neutralize VPATH when `$srcdir' = `.'.
28196 # Shell code in configure.ac might set extrasub.
28197 # FIXME: do we really want to maintain this feature?
28198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28199 ac_sed_extra="$ac_vpsub
28200 $extrasub
28201 _ACEOF
28202 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28203 :t
28204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28205 s|@configure_input@|$ac_sed_conf_input|;t t
28206 s&@top_builddir@&$ac_top_builddir_sub&;t t
28207 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28208 s&@srcdir@&$ac_srcdir&;t t
28209 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28210 s&@top_srcdir@&$ac_top_srcdir&;t t
28211 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28212 s&@builddir@&$ac_builddir&;t t
28213 s&@abs_builddir@&$ac_abs_builddir&;t t
28214 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28215 s&@INSTALL@&$ac_INSTALL&;t t
28216 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28217 $ac_datarootdir_hack
28218 "
28219 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
28220   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28221
28222 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28223   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
28224   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
28225       "$ac_tmp/out"`; test -z "$ac_out"; } &&
28226   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28227 which seems to be undefined.  Please make sure it is defined" >&5
28228 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28229 which seems to be undefined.  Please make sure it is defined" >&2;}
28230
28231   rm -f "$ac_tmp/stdin"
28232   case $ac_file in
28233   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
28234   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
28235   esac \
28236   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28237  ;;
28238   :H)
28239   #
28240   # CONFIG_HEADER
28241   #
28242   if test x"$ac_file" != x-; then
28243     {
28244       $as_echo "/* $configure_input  */" \
28245       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
28246     } >"$ac_tmp/config.h" \
28247       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28248     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
28249       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28250 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28251     else
28252       rm -f "$ac_file"
28253       mv "$ac_tmp/config.h" "$ac_file" \
28254         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
28255     fi
28256   else
28257     $as_echo "/* $configure_input  */" \
28258       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
28259       || as_fn_error $? "could not create -" "$LINENO" 5
28260   fi
28261 # Compute "$ac_file"'s index in $config_headers.
28262 _am_arg="$ac_file"
28263 _am_stamp_count=1
28264 for _am_header in $config_headers :; do
28265   case $_am_header in
28266     $_am_arg | $_am_arg:* )
28267       break ;;
28268     * )
28269       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28270   esac
28271 done
28272 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28273 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28274          X"$_am_arg" : 'X\(//\)[^/]' \| \
28275          X"$_am_arg" : 'X\(//\)$' \| \
28276          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28277 $as_echo X"$_am_arg" |
28278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28279             s//\1/
28280             q
28281           }
28282           /^X\(\/\/\)[^/].*/{
28283             s//\1/
28284             q
28285           }
28286           /^X\(\/\/\)$/{
28287             s//\1/
28288             q
28289           }
28290           /^X\(\/\).*/{
28291             s//\1/
28292             q
28293           }
28294           s/.*/./; q'`/stamp-h$_am_stamp_count
28295  ;;
28296
28297   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28298 $as_echo "$as_me: executing $ac_file commands" >&6;}
28299  ;;
28300   esac
28301
28302
28303   case $ac_file$ac_mode in
28304     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28305   # Autoconf 2.62 quotes --file arguments for eval, but not when files
28306   # are listed without --file.  Let's play safe and only enable the eval
28307   # if we detect the quoting.
28308   case $CONFIG_FILES in
28309   *\'*) eval set x "$CONFIG_FILES" ;;
28310   *)   set x $CONFIG_FILES ;;
28311   esac
28312   shift
28313   for mf
28314   do
28315     # Strip MF so we end up with the name of the file.
28316     mf=`echo "$mf" | sed -e 's/:.*$//'`
28317     # Check whether this is an Automake generated Makefile or not.
28318     # We used to match only the files named `Makefile.in', but
28319     # some people rename them; so instead we look at the file content.
28320     # Grep'ing the first line is not enough: some people post-process
28321     # each Makefile.in and add a new line on top of each file to say so.
28322     # Grep'ing the whole file is not good either: AIX grep has a line
28323     # limit of 2048, but all sed's we know have understand at least 4000.
28324     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28325       dirpart=`$as_dirname -- "$mf" ||
28326 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28327          X"$mf" : 'X\(//\)[^/]' \| \
28328          X"$mf" : 'X\(//\)$' \| \
28329          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28330 $as_echo X"$mf" |
28331     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28332             s//\1/
28333             q
28334           }
28335           /^X\(\/\/\)[^/].*/{
28336             s//\1/
28337             q
28338           }
28339           /^X\(\/\/\)$/{
28340             s//\1/
28341             q
28342           }
28343           /^X\(\/\).*/{
28344             s//\1/
28345             q
28346           }
28347           s/.*/./; q'`
28348     else
28349       continue
28350     fi
28351     # Extract the definition of DEPDIR, am__include, and am__quote
28352     # from the Makefile without running `make'.
28353     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28354     test -z "$DEPDIR" && continue
28355     am__include=`sed -n 's/^am__include = //p' < "$mf"`
28356     test -z "am__include" && continue
28357     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28358     # When using ansi2knr, U may be empty or an underscore; expand it
28359     U=`sed -n 's/^U = //p' < "$mf"`
28360     # Find all dependency output files, they are included files with
28361     # $(DEPDIR) in their names.  We invoke sed twice because it is the
28362     # simplest approach to changing $(DEPDIR) to its actual value in the
28363     # expansion.
28364     for file in `sed -n "
28365       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28366          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28367       # Make sure the directory exists.
28368       test -f "$dirpart/$file" && continue
28369       fdir=`$as_dirname -- "$file" ||
28370 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28371          X"$file" : 'X\(//\)[^/]' \| \
28372          X"$file" : 'X\(//\)$' \| \
28373          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28374 $as_echo X"$file" |
28375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28376             s//\1/
28377             q
28378           }
28379           /^X\(\/\/\)[^/].*/{
28380             s//\1/
28381             q
28382           }
28383           /^X\(\/\/\)$/{
28384             s//\1/
28385             q
28386           }
28387           /^X\(\/\).*/{
28388             s//\1/
28389             q
28390           }
28391           s/.*/./; q'`
28392       as_dir=$dirpart/$fdir; as_fn_mkdir_p
28393       # echo "creating $dirpart/$file"
28394       echo '# dummy' > "$dirpart/$file"
28395     done
28396   done
28397 }
28398  ;;
28399     "libtool":C)
28400
28401     # See if we are running on zsh, and set the options which allow our
28402     # commands through without removal of \ escapes.
28403     if test -n "${ZSH_VERSION+set}" ; then
28404       setopt NO_GLOB_SUBST
28405     fi
28406
28407     cfgfile="${ofile}T"
28408     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28409     $RM "$cfgfile"
28410
28411     cat <<_LT_EOF >> "$cfgfile"
28412 #! $SHELL
28413
28414 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28415 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28417 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28418 #
28419 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28420 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
28421 #                 Inc.
28422 #   Written by Gordon Matzigkeit, 1996
28423 #
28424 #   This file is part of GNU Libtool.
28425 #
28426 # GNU Libtool is free software; you can redistribute it and/or
28427 # modify it under the terms of the GNU General Public License as
28428 # published by the Free Software Foundation; either version 2 of
28429 # the License, or (at your option) any later version.
28430 #
28431 # As a special exception to the GNU General Public License,
28432 # if you distribute this file as part of a program or library that
28433 # is built using GNU Libtool, you may include this file under the
28434 # same distribution terms that you use for the rest of that program.
28435 #
28436 # GNU Libtool is distributed in the hope that it will be useful,
28437 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28438 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28439 # GNU General Public License for more details.
28440 #
28441 # You should have received a copy of the GNU General Public License
28442 # along with GNU Libtool; see the file COPYING.  If not, a copy
28443 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28444 # obtained by writing to the Free Software Foundation, Inc.,
28445 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28446
28447
28448 # The names of the tagged configurations supported by this script.
28449 available_tags="CXX "
28450
28451 # ### BEGIN LIBTOOL CONFIG
28452
28453 # Which release of libtool.m4 was used?
28454 macro_version=$macro_version
28455 macro_revision=$macro_revision
28456
28457 # Whether or not to build static libraries.
28458 build_old_libs=$enable_static
28459
28460 # Assembler program.
28461 AS=$lt_AS
28462
28463 # DLL creation program.
28464 DLLTOOL=$lt_DLLTOOL
28465
28466 # Object dumper program.
28467 OBJDUMP=$lt_OBJDUMP
28468
28469 # Whether or not to build shared libraries.
28470 build_libtool_libs=$enable_shared
28471
28472 # What type of objects to build.
28473 pic_mode=$pic_mode
28474
28475 # Whether or not to optimize for fast installation.
28476 fast_install=$enable_fast_install
28477
28478 # Shell to use when invoking shell scripts.
28479 SHELL=$lt_SHELL
28480
28481 # An echo program that protects backslashes.
28482 ECHO=$lt_ECHO
28483
28484 # The host system.
28485 host_alias=$host_alias
28486 host=$host
28487 host_os=$host_os
28488
28489 # The build system.
28490 build_alias=$build_alias
28491 build=$build
28492 build_os=$build_os
28493
28494 # A sed program that does not truncate output.
28495 SED=$lt_SED
28496
28497 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28498 Xsed="\$SED -e 1s/^X//"
28499
28500 # A grep program that handles long lines.
28501 GREP=$lt_GREP
28502
28503 # An ERE matcher.
28504 EGREP=$lt_EGREP
28505
28506 # A literal string matcher.
28507 FGREP=$lt_FGREP
28508
28509 # A BSD- or MS-compatible name lister.
28510 NM=$lt_NM
28511
28512 # Whether we need soft or hard links.
28513 LN_S=$lt_LN_S
28514
28515 # What is the maximum length of a command?
28516 max_cmd_len=$max_cmd_len
28517
28518 # Object file suffix (normally "o").
28519 objext=$ac_objext
28520
28521 # Executable file suffix (normally "").
28522 exeext=$exeext
28523
28524 # whether the shell understands "unset".
28525 lt_unset=$lt_unset
28526
28527 # turn spaces into newlines.
28528 SP2NL=$lt_lt_SP2NL
28529
28530 # turn newlines into spaces.
28531 NL2SP=$lt_lt_NL2SP
28532
28533 # convert \$build file names to \$host format.
28534 to_host_file_cmd=$lt_cv_to_host_file_cmd
28535
28536 # convert \$build files to toolchain format.
28537 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28538
28539 # Method to check whether dependent libraries are shared objects.
28540 deplibs_check_method=$lt_deplibs_check_method
28541
28542 # Command to use when deplibs_check_method = "file_magic".
28543 file_magic_cmd=$lt_file_magic_cmd
28544
28545 # How to find potential files when deplibs_check_method = "file_magic".
28546 file_magic_glob=$lt_file_magic_glob
28547
28548 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28549 want_nocaseglob=$lt_want_nocaseglob
28550
28551 # Command to associate shared and link libraries.
28552 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28553
28554 # The archiver.
28555 AR=$lt_AR
28556
28557 # Flags to create an archive.
28558 AR_FLAGS=$lt_AR_FLAGS
28559
28560 # How to feed a file listing to the archiver.
28561 archiver_list_spec=$lt_archiver_list_spec
28562
28563 # A symbol stripping program.
28564 STRIP=$lt_STRIP
28565
28566 # Commands used to install an old-style archive.
28567 RANLIB=$lt_RANLIB
28568 old_postinstall_cmds=$lt_old_postinstall_cmds
28569 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28570
28571 # Whether to use a lock for old archive extraction.
28572 lock_old_archive_extraction=$lock_old_archive_extraction
28573
28574 # A C compiler.
28575 LTCC=$lt_CC
28576
28577 # LTCC compiler flags.
28578 LTCFLAGS=$lt_CFLAGS
28579
28580 # Take the output of nm and produce a listing of raw symbols and C names.
28581 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28582
28583 # Transform the output of nm in a proper C declaration.
28584 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28585
28586 # Transform the output of nm in a C name address pair.
28587 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28588
28589 # Transform the output of nm in a C name address pair when lib prefix is needed.
28590 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28591
28592 # Specify filename containing input files for \$NM.
28593 nm_file_list_spec=$lt_nm_file_list_spec
28594
28595 # The root where to search for dependent libraries,and in which our libraries should be installed.
28596 lt_sysroot=$lt_sysroot
28597
28598 # The name of the directory that contains temporary libtool files.
28599 objdir=$objdir
28600
28601 # Used to examine libraries when file_magic_cmd begins with "file".
28602 MAGIC_CMD=$MAGIC_CMD
28603
28604 # Must we lock files when doing compilation?
28605 need_locks=$lt_need_locks
28606
28607 # Manifest tool.
28608 MANIFEST_TOOL=$lt_MANIFEST_TOOL
28609
28610 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28611 DSYMUTIL=$lt_DSYMUTIL
28612
28613 # Tool to change global to local symbols on Mac OS X.
28614 NMEDIT=$lt_NMEDIT
28615
28616 # Tool to manipulate fat objects and archives on Mac OS X.
28617 LIPO=$lt_LIPO
28618
28619 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28620 OTOOL=$lt_OTOOL
28621
28622 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28623 OTOOL64=$lt_OTOOL64
28624
28625 # Old archive suffix (normally "a").
28626 libext=$libext
28627
28628 # Shared library suffix (normally ".so").
28629 shrext_cmds=$lt_shrext_cmds
28630
28631 # The commands to extract the exported symbol list from a shared archive.
28632 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28633
28634 # Variables whose values should be saved in libtool wrapper scripts and
28635 # restored at link time.
28636 variables_saved_for_relink=$lt_variables_saved_for_relink
28637
28638 # Do we need the "lib" prefix for modules?
28639 need_lib_prefix=$need_lib_prefix
28640
28641 # Do we need a version for libraries?
28642 need_version=$need_version
28643
28644 # Library versioning type.
28645 version_type=$version_type
28646
28647 # Shared library runtime path variable.
28648 runpath_var=$runpath_var
28649
28650 # Shared library path variable.
28651 shlibpath_var=$shlibpath_var
28652
28653 # Is shlibpath searched before the hard-coded library search path?
28654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28655
28656 # Format of library name prefix.
28657 libname_spec=$lt_libname_spec
28658
28659 # List of archive names.  First name is the real one, the rest are links.
28660 # The last name is the one that the linker finds with -lNAME
28661 library_names_spec=$lt_library_names_spec
28662
28663 # The coded name of the library, if different from the real name.
28664 soname_spec=$lt_soname_spec
28665
28666 # Permission mode override for installation of shared libraries.
28667 install_override_mode=$lt_install_override_mode
28668
28669 # Command to use after installation of a shared archive.
28670 postinstall_cmds=$lt_postinstall_cmds
28671
28672 # Command to use after uninstallation of a shared archive.
28673 postuninstall_cmds=$lt_postuninstall_cmds
28674
28675 # Commands used to finish a libtool library installation in a directory.
28676 finish_cmds=$lt_finish_cmds
28677
28678 # As "finish_cmds", except a single script fragment to be evaled but
28679 # not shown.
28680 finish_eval=$lt_finish_eval
28681
28682 # Whether we should hardcode library paths into libraries.
28683 hardcode_into_libs=$hardcode_into_libs
28684
28685 # Compile-time system search path for libraries.
28686 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28687
28688 # Run-time system search path for libraries.
28689 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28690
28691 # Whether dlopen is supported.
28692 dlopen_support=$enable_dlopen
28693
28694 # Whether dlopen of programs is supported.
28695 dlopen_self=$enable_dlopen_self
28696
28697 # Whether dlopen of statically linked programs is supported.
28698 dlopen_self_static=$enable_dlopen_self_static
28699
28700 # Commands to strip libraries.
28701 old_striplib=$lt_old_striplib
28702 striplib=$lt_striplib
28703
28704
28705 # The linker used to build libraries.
28706 LD=$lt_LD
28707
28708 # How to create reloadable object files.
28709 reload_flag=$lt_reload_flag
28710 reload_cmds=$lt_reload_cmds
28711
28712 # Commands used to build an old-style archive.
28713 old_archive_cmds=$lt_old_archive_cmds
28714
28715 # A language specific compiler.
28716 CC=$lt_compiler
28717
28718 # Is the compiler the GNU compiler?
28719 with_gcc=$GCC
28720
28721 # Compiler flag to turn off builtin functions.
28722 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28723
28724 # Additional compiler flags for building library objects.
28725 pic_flag=$lt_lt_prog_compiler_pic
28726
28727 # How to pass a linker flag through the compiler.
28728 wl=$lt_lt_prog_compiler_wl
28729
28730 # Compiler flag to prevent dynamic linking.
28731 link_static_flag=$lt_lt_prog_compiler_static
28732
28733 # Does compiler simultaneously support -c and -o options?
28734 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28735
28736 # Whether or not to add -lc for building shared libraries.
28737 build_libtool_need_lc=$archive_cmds_need_lc
28738
28739 # Whether or not to disallow shared libs when runtime libs are static.
28740 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28741
28742 # Compiler flag to allow reflexive dlopens.
28743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28744
28745 # Compiler flag to generate shared objects directly from archives.
28746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28747
28748 # Whether the compiler copes with passing no objects directly.
28749 compiler_needs_object=$lt_compiler_needs_object
28750
28751 # Create an old-style archive from a shared archive.
28752 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28753
28754 # Create a temporary old-style archive to link instead of a shared archive.
28755 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28756
28757 # Commands used to build a shared archive.
28758 archive_cmds=$lt_archive_cmds
28759 archive_expsym_cmds=$lt_archive_expsym_cmds
28760
28761 # Commands used to build a loadable module if different from building
28762 # a shared archive.
28763 module_cmds=$lt_module_cmds
28764 module_expsym_cmds=$lt_module_expsym_cmds
28765
28766 # Whether we are building with GNU ld or not.
28767 with_gnu_ld=$lt_with_gnu_ld
28768
28769 # Flag that allows shared libraries with undefined symbols to be built.
28770 allow_undefined_flag=$lt_allow_undefined_flag
28771
28772 # Flag that enforces no undefined symbols.
28773 no_undefined_flag=$lt_no_undefined_flag
28774
28775 # Flag to hardcode \$libdir into a binary during linking.
28776 # This must work even if \$libdir does not exist
28777 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28778
28779 # If ld is used when linking, flag to hardcode \$libdir into a binary
28780 # during linking.  This must work even if \$libdir does not exist.
28781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28782
28783 # Whether we need a single "-rpath" flag with a separated argument.
28784 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28785
28786 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28787 # DIR into the resulting binary.
28788 hardcode_direct=$hardcode_direct
28789
28790 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28791 # DIR into the resulting binary and the resulting library dependency is
28792 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28793 # library is relocated.
28794 hardcode_direct_absolute=$hardcode_direct_absolute
28795
28796 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28797 # into the resulting binary.
28798 hardcode_minus_L=$hardcode_minus_L
28799
28800 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28801 # into the resulting binary.
28802 hardcode_shlibpath_var=$hardcode_shlibpath_var
28803
28804 # Set to "yes" if building a shared library automatically hardcodes DIR
28805 # into the library and all subsequent libraries and executables linked
28806 # against it.
28807 hardcode_automatic=$hardcode_automatic
28808
28809 # Set to yes if linker adds runtime paths of dependent libraries
28810 # to runtime path list.
28811 inherit_rpath=$inherit_rpath
28812
28813 # Whether libtool must link a program against all its dependency libraries.
28814 link_all_deplibs=$link_all_deplibs
28815
28816 # Set to "yes" if exported symbols are required.
28817 always_export_symbols=$always_export_symbols
28818
28819 # The commands to list exported symbols.
28820 export_symbols_cmds=$lt_export_symbols_cmds
28821
28822 # Symbols that should not be listed in the preloaded symbols.
28823 exclude_expsyms=$lt_exclude_expsyms
28824
28825 # Symbols that must always be exported.
28826 include_expsyms=$lt_include_expsyms
28827
28828 # Commands necessary for linking programs (against libraries) with templates.
28829 prelink_cmds=$lt_prelink_cmds
28830
28831 # Commands necessary for finishing linking programs.
28832 postlink_cmds=$lt_postlink_cmds
28833
28834 # Specify filename containing input files.
28835 file_list_spec=$lt_file_list_spec
28836
28837 # How to hardcode a shared library path into an executable.
28838 hardcode_action=$hardcode_action
28839
28840 # The directories searched by this compiler when creating a shared library.
28841 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28842
28843 # Dependencies to place before and after the objects being linked to
28844 # create a shared library.
28845 predep_objects=$lt_predep_objects
28846 postdep_objects=$lt_postdep_objects
28847 predeps=$lt_predeps
28848 postdeps=$lt_postdeps
28849
28850 # The library search path used internally by the compiler when linking
28851 # a shared library.
28852 compiler_lib_search_path=$lt_compiler_lib_search_path
28853
28854 # ### END LIBTOOL CONFIG
28855
28856 _LT_EOF
28857
28858   case $host_os in
28859   aix3*)
28860     cat <<\_LT_EOF >> "$cfgfile"
28861 # AIX sometimes has problems with the GCC collect2 program.  For some
28862 # reason, if we set the COLLECT_NAMES environment variable, the problems
28863 # vanish in a puff of smoke.
28864 if test "X${COLLECT_NAMES+set}" != Xset; then
28865   COLLECT_NAMES=
28866   export COLLECT_NAMES
28867 fi
28868 _LT_EOF
28869     ;;
28870   esac
28871
28872
28873 ltmain="$ac_aux_dir/ltmain.sh"
28874
28875
28876   # We use sed instead of cat because bash on DJGPP gets confused if
28877   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28878   # text mode, it properly converts lines to CR/LF.  This bash problem
28879   # is reportedly fixed, but why not run on old versions too?
28880   sed '$q' "$ltmain" >> "$cfgfile" \
28881      || (rm -f "$cfgfile"; exit 1)
28882
28883   if test x"$xsi_shell" = xyes; then
28884   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
28885 func_dirname ()\
28886 {\
28887 \    case ${1} in\
28888 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28889 \      *  ) func_dirname_result="${3}" ;;\
28890 \    esac\
28891 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
28892   && mv -f "$cfgfile.tmp" "$cfgfile" \
28893     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28894 test 0 -eq $? || _lt_function_replace_fail=:
28895
28896
28897   sed -e '/^func_basename ()$/,/^} # func_basename /c\
28898 func_basename ()\
28899 {\
28900 \    func_basename_result="${1##*/}"\
28901 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
28902   && mv -f "$cfgfile.tmp" "$cfgfile" \
28903     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28904 test 0 -eq $? || _lt_function_replace_fail=:
28905
28906
28907   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
28908 func_dirname_and_basename ()\
28909 {\
28910 \    case ${1} in\
28911 \      */*) func_dirname_result="${1%/*}${2}" ;;\
28912 \      *  ) func_dirname_result="${3}" ;;\
28913 \    esac\
28914 \    func_basename_result="${1##*/}"\
28915 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
28916   && mv -f "$cfgfile.tmp" "$cfgfile" \
28917     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28918 test 0 -eq $? || _lt_function_replace_fail=:
28919
28920
28921   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
28922 func_stripname ()\
28923 {\
28924 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
28925 \    # positional parameters, so assign one to ordinary parameter first.\
28926 \    func_stripname_result=${3}\
28927 \    func_stripname_result=${func_stripname_result#"${1}"}\
28928 \    func_stripname_result=${func_stripname_result%"${2}"}\
28929 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
28930   && mv -f "$cfgfile.tmp" "$cfgfile" \
28931     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28932 test 0 -eq $? || _lt_function_replace_fail=:
28933
28934
28935   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
28936 func_split_long_opt ()\
28937 {\
28938 \    func_split_long_opt_name=${1%%=*}\
28939 \    func_split_long_opt_arg=${1#*=}\
28940 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
28941   && mv -f "$cfgfile.tmp" "$cfgfile" \
28942     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28943 test 0 -eq $? || _lt_function_replace_fail=:
28944
28945
28946   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
28947 func_split_short_opt ()\
28948 {\
28949 \    func_split_short_opt_arg=${1#??}\
28950 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
28951 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
28952   && mv -f "$cfgfile.tmp" "$cfgfile" \
28953     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28954 test 0 -eq $? || _lt_function_replace_fail=:
28955
28956
28957   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
28958 func_lo2o ()\
28959 {\
28960 \    case ${1} in\
28961 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
28962 \      *)    func_lo2o_result=${1} ;;\
28963 \    esac\
28964 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
28965   && mv -f "$cfgfile.tmp" "$cfgfile" \
28966     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28967 test 0 -eq $? || _lt_function_replace_fail=:
28968
28969
28970   sed -e '/^func_xform ()$/,/^} # func_xform /c\
28971 func_xform ()\
28972 {\
28973     func_xform_result=${1%.*}.lo\
28974 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
28975   && mv -f "$cfgfile.tmp" "$cfgfile" \
28976     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28977 test 0 -eq $? || _lt_function_replace_fail=:
28978
28979
28980   sed -e '/^func_arith ()$/,/^} # func_arith /c\
28981 func_arith ()\
28982 {\
28983     func_arith_result=$(( $* ))\
28984 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
28985   && mv -f "$cfgfile.tmp" "$cfgfile" \
28986     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28987 test 0 -eq $? || _lt_function_replace_fail=:
28988
28989
28990   sed -e '/^func_len ()$/,/^} # func_len /c\
28991 func_len ()\
28992 {\
28993     func_len_result=${#1}\
28994 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
28995   && mv -f "$cfgfile.tmp" "$cfgfile" \
28996     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
28997 test 0 -eq $? || _lt_function_replace_fail=:
28998
28999 fi
29000
29001 if test x"$lt_shell_append" = xyes; then
29002   sed -e '/^func_append ()$/,/^} # func_append /c\
29003 func_append ()\
29004 {\
29005     eval "${1}+=\\${2}"\
29006 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
29007   && mv -f "$cfgfile.tmp" "$cfgfile" \
29008     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29009 test 0 -eq $? || _lt_function_replace_fail=:
29010
29011
29012   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
29013 func_append_quoted ()\
29014 {\
29015 \    func_quote_for_eval "${2}"\
29016 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
29017 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
29018   && mv -f "$cfgfile.tmp" "$cfgfile" \
29019     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29020 test 0 -eq $? || _lt_function_replace_fail=:
29021
29022
29023   # Save a `func_append' function call where possible by direct use of '+='
29024   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
29025     && mv -f "$cfgfile.tmp" "$cfgfile" \
29026       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29027   test 0 -eq $? || _lt_function_replace_fail=:
29028 else
29029   # Save a `func_append' function call even when '+=' is not available
29030   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
29031     && mv -f "$cfgfile.tmp" "$cfgfile" \
29032       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
29033   test 0 -eq $? || _lt_function_replace_fail=:
29034 fi
29035
29036 if test x"$_lt_function_replace_fail" = x":"; then
29037   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
29038 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
29039 fi
29040
29041
29042    mv -f "$cfgfile" "$ofile" ||
29043     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29044   chmod +x "$ofile"
29045
29046
29047     cat <<_LT_EOF >> "$ofile"
29048
29049 # ### BEGIN LIBTOOL TAG CONFIG: CXX
29050
29051 # The linker used to build libraries.
29052 LD=$lt_LD_CXX
29053
29054 # How to create reloadable object files.
29055 reload_flag=$lt_reload_flag_CXX
29056 reload_cmds=$lt_reload_cmds_CXX
29057
29058 # Commands used to build an old-style archive.
29059 old_archive_cmds=$lt_old_archive_cmds_CXX
29060
29061 # A language specific compiler.
29062 CC=$lt_compiler_CXX
29063
29064 # Is the compiler the GNU compiler?
29065 with_gcc=$GCC_CXX
29066
29067 # Compiler flag to turn off builtin functions.
29068 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
29069
29070 # Additional compiler flags for building library objects.
29071 pic_flag=$lt_lt_prog_compiler_pic_CXX
29072
29073 # How to pass a linker flag through the compiler.
29074 wl=$lt_lt_prog_compiler_wl_CXX
29075
29076 # Compiler flag to prevent dynamic linking.
29077 link_static_flag=$lt_lt_prog_compiler_static_CXX
29078
29079 # Does compiler simultaneously support -c and -o options?
29080 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
29081
29082 # Whether or not to add -lc for building shared libraries.
29083 build_libtool_need_lc=$archive_cmds_need_lc_CXX
29084
29085 # Whether or not to disallow shared libs when runtime libs are static.
29086 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
29087
29088 # Compiler flag to allow reflexive dlopens.
29089 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
29090
29091 # Compiler flag to generate shared objects directly from archives.
29092 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
29093
29094 # Whether the compiler copes with passing no objects directly.
29095 compiler_needs_object=$lt_compiler_needs_object_CXX
29096
29097 # Create an old-style archive from a shared archive.
29098 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
29099
29100 # Create a temporary old-style archive to link instead of a shared archive.
29101 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
29102
29103 # Commands used to build a shared archive.
29104 archive_cmds=$lt_archive_cmds_CXX
29105 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
29106
29107 # Commands used to build a loadable module if different from building
29108 # a shared archive.
29109 module_cmds=$lt_module_cmds_CXX
29110 module_expsym_cmds=$lt_module_expsym_cmds_CXX
29111
29112 # Whether we are building with GNU ld or not.
29113 with_gnu_ld=$lt_with_gnu_ld_CXX
29114
29115 # Flag that allows shared libraries with undefined symbols to be built.
29116 allow_undefined_flag=$lt_allow_undefined_flag_CXX
29117
29118 # Flag that enforces no undefined symbols.
29119 no_undefined_flag=$lt_no_undefined_flag_CXX
29120
29121 # Flag to hardcode \$libdir into a binary during linking.
29122 # This must work even if \$libdir does not exist
29123 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
29124
29125 # If ld is used when linking, flag to hardcode \$libdir into a binary
29126 # during linking.  This must work even if \$libdir does not exist.
29127 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
29128
29129 # Whether we need a single "-rpath" flag with a separated argument.
29130 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
29131
29132 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29133 # DIR into the resulting binary.
29134 hardcode_direct=$hardcode_direct_CXX
29135
29136 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29137 # DIR into the resulting binary and the resulting library dependency is
29138 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29139 # library is relocated.
29140 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
29141
29142 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29143 # into the resulting binary.
29144 hardcode_minus_L=$hardcode_minus_L_CXX
29145
29146 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29147 # into the resulting binary.
29148 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
29149
29150 # Set to "yes" if building a shared library automatically hardcodes DIR
29151 # into the library and all subsequent libraries and executables linked
29152 # against it.
29153 hardcode_automatic=$hardcode_automatic_CXX
29154
29155 # Set to yes if linker adds runtime paths of dependent libraries
29156 # to runtime path list.
29157 inherit_rpath=$inherit_rpath_CXX
29158
29159 # Whether libtool must link a program against all its dependency libraries.
29160 link_all_deplibs=$link_all_deplibs_CXX
29161
29162 # Set to "yes" if exported symbols are required.
29163 always_export_symbols=$always_export_symbols_CXX
29164
29165 # The commands to list exported symbols.
29166 export_symbols_cmds=$lt_export_symbols_cmds_CXX
29167
29168 # Symbols that should not be listed in the preloaded symbols.
29169 exclude_expsyms=$lt_exclude_expsyms_CXX
29170
29171 # Symbols that must always be exported.
29172 include_expsyms=$lt_include_expsyms_CXX
29173
29174 # Commands necessary for linking programs (against libraries) with templates.
29175 prelink_cmds=$lt_prelink_cmds_CXX
29176
29177 # Commands necessary for finishing linking programs.
29178 postlink_cmds=$lt_postlink_cmds_CXX
29179
29180 # Specify filename containing input files.
29181 file_list_spec=$lt_file_list_spec_CXX
29182
29183 # How to hardcode a shared library path into an executable.
29184 hardcode_action=$hardcode_action_CXX
29185
29186 # The directories searched by this compiler when creating a shared library.
29187 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
29188
29189 # Dependencies to place before and after the objects being linked to
29190 # create a shared library.
29191 predep_objects=$lt_predep_objects_CXX
29192 postdep_objects=$lt_postdep_objects_CXX
29193 predeps=$lt_predeps_CXX
29194 postdeps=$lt_postdeps_CXX
29195
29196 # The library search path used internally by the compiler when linking
29197 # a shared library.
29198 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
29199
29200 # ### END LIBTOOL TAG CONFIG: CXX
29201 _LT_EOF
29202
29203  ;;
29204     "glib/glibconfig.h":C)
29205         outfile=glib/glibconfig.h-tmp
29206         cat > $outfile <<\_______EOF
29207 /* glibconfig.h
29208  *
29209  * This is a generated file.  Please modify 'configure.ac'
29210  */
29211
29212 #ifndef __GLIBCONFIG_H__
29213 #define __GLIBCONFIG_H__
29214
29215 #include <glib/gmacros.h>
29216
29217 _______EOF
29218
29219         if test x$glib_limits_h = xyes; then
29220           echo '#include <limits.h>' >> $outfile
29221         fi
29222         if test x$glib_float_h = xyes; then
29223           echo '#include <float.h>' >> $outfile
29224         fi
29225         if test x$glib_values_h = xyes; then
29226           echo '#include <values.h>' >> $outfile
29227         fi
29228         if test "$glib_header_alloca_h" = "yes"; then
29229           echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
29230         fi
29231         if test x$glib_sys_poll_h = xyes; then
29232           echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
29233         fi
29234         if test x$glib_included_printf != xyes; then
29235           echo "
29236 /* Specifies that GLib's g_print*() functions wrap the
29237  * system printf functions.  This is useful to know, for example,
29238  * when using glibc's register_printf_function().
29239  */" >> $outfile
29240           echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
29241         fi
29242
29243         cat >> $outfile <<_______EOF
29244
29245 G_BEGIN_DECLS
29246
29247 #define G_MINFLOAT      $glib_mf
29248 #define G_MAXFLOAT      $glib_Mf
29249 #define G_MINDOUBLE     $glib_md
29250 #define G_MAXDOUBLE     $glib_Md
29251 #define G_MINSHORT      $glib_ms
29252 #define G_MAXSHORT      $glib_Ms
29253 #define G_MAXUSHORT     $glib_Mus
29254 #define G_MININT        $glib_mi
29255 #define G_MAXINT        $glib_Mi
29256 #define G_MAXUINT       $glib_Mui
29257 #define G_MINLONG       $glib_ml
29258 #define G_MAXLONG       $glib_Ml
29259 #define G_MAXULONG      $glib_Mul
29260
29261 _______EOF
29262
29263
29264         ### this should always be true in a modern C/C++ compiler
29265         cat >>$outfile <<_______EOF
29266 typedef signed char gint8;
29267 typedef unsigned char guint8;
29268 _______EOF
29269
29270
29271         if test -n "$gint16"; then
29272           cat >>$outfile <<_______EOF
29273 typedef signed $gint16 gint16;
29274 typedef unsigned $gint16 guint16;
29275 #define G_GINT16_MODIFIER $gint16_modifier
29276 #define G_GINT16_FORMAT $gint16_format
29277 #define G_GUINT16_FORMAT $guint16_format
29278 _______EOF
29279         fi
29280
29281
29282         if test -n "$gint32"; then
29283           cat >>$outfile <<_______EOF
29284 typedef signed $gint32 gint32;
29285 typedef unsigned $gint32 guint32;
29286 #define G_GINT32_MODIFIER $gint32_modifier
29287 #define G_GINT32_FORMAT $gint32_format
29288 #define G_GUINT32_FORMAT $guint32_format
29289 _______EOF
29290         fi
29291
29292         cat >>$outfile <<_______EOF
29293 #define G_HAVE_GINT64 1          /* deprecated, always true */
29294
29295 ${glib_extension}typedef signed $gint64 gint64;
29296 ${glib_extension}typedef unsigned $gint64 guint64;
29297
29298 #define G_GINT64_CONSTANT(val)  $gint64_constant
29299 #define G_GUINT64_CONSTANT(val) $guint64_constant
29300 _______EOF
29301
29302         if test x$gint64_format != x ; then
29303           cat >>$outfile <<_______EOF
29304 #define G_GINT64_MODIFIER $gint64_modifier
29305 #define G_GINT64_FORMAT $gint64_format
29306 #define G_GUINT64_FORMAT $guint64_format
29307 _______EOF
29308         else
29309           cat >>$outfile <<_______EOF
29310 #undef G_GINT64_MODIFIER
29311 #undef G_GINT64_FORMAT
29312 #undef G_GUINT64_FORMAT
29313 _______EOF
29314         fi
29315
29316         cat >>$outfile <<_______EOF
29317
29318 #define GLIB_SIZEOF_VOID_P $glib_void_p
29319 #define GLIB_SIZEOF_LONG   $glib_long
29320 #define GLIB_SIZEOF_SIZE_T $glib_size_t
29321
29322 _______EOF
29323
29324         cat >>$outfile <<_______EOF
29325 typedef signed $glib_size_type_define gssize;
29326 typedef unsigned $glib_size_type_define gsize;
29327 #define G_GSIZE_MODIFIER $gsize_modifier
29328 #define G_GSSIZE_FORMAT $gssize_format
29329 #define G_GSIZE_FORMAT $gsize_format
29330
29331 #define G_MAXSIZE       G_MAXU$glib_msize_type
29332 #define G_MINSSIZE      G_MIN$glib_msize_type
29333 #define G_MAXSSIZE      G_MAX$glib_msize_type
29334
29335 typedef gint64 goffset;
29336 #define G_MINOFFSET     G_MININT64
29337 #define G_MAXOFFSET     G_MAXINT64
29338
29339 #define G_GOFFSET_MODIFIER      G_GINT64_MODIFIER
29340 #define G_GOFFSET_FORMAT        G_GINT64_FORMAT
29341 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
29342
29343 _______EOF
29344
29345         if test -z "$glib_unknown_void_p"; then
29346           cat >>$outfile <<_______EOF
29347
29348 #define GPOINTER_TO_INT(p)      ((gint)  ${glib_gpi_cast} (p))
29349 #define GPOINTER_TO_UINT(p)     ((guint) ${glib_gpui_cast} (p))
29350
29351 #define GINT_TO_POINTER(i)      ((gpointer) ${glib_gpi_cast} (i))
29352 #define GUINT_TO_POINTER(u)     ((gpointer) ${glib_gpui_cast} (u))
29353
29354 typedef signed $glib_intptr_type_define gintptr;
29355 typedef unsigned $glib_intptr_type_define guintptr;
29356
29357 #define G_GINTPTR_MODIFIER      $gintptr_modifier
29358 #define G_GINTPTR_FORMAT        $gintptr_format
29359 #define G_GUINTPTR_FORMAT       $guintptr_format
29360 _______EOF
29361         else
29362           echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
29363         fi
29364
29365
29366
29367         cat >>$outfile <<_______EOF
29368 $glib_atexit
29369 $glib_memmove
29370 $glib_defines
29371 $glib_os
29372 $glib_static_compilation
29373
29374 $glib_vacopy
29375
29376 #ifdef  __cplusplus
29377 #define G_HAVE_INLINE   1
29378 #else   /* !__cplusplus */
29379 $glib_inline
29380 #endif  /* !__cplusplus */
29381
29382 #ifdef  __cplusplus
29383 #define G_CAN_INLINE    1
29384 _______EOF
29385
29386         if test x$g_can_inline = xyes ; then
29387                 cat >>$outfile <<_______EOF
29388 #else   /* !__cplusplus */
29389 #define G_CAN_INLINE    1
29390 _______EOF
29391         fi
29392
29393         cat >>$outfile <<_______EOF
29394 #endif
29395
29396 _______EOF
29397
29398         if test x$g_have_iso_c_varargs = xyes ; then
29399                 cat >>$outfile <<_______EOF
29400 #ifndef __cplusplus
29401 # define G_HAVE_ISO_VARARGS 1
29402 #endif
29403 _______EOF
29404         fi
29405         if test x$g_have_iso_cxx_varargs = xyes ; then
29406                 cat >>$outfile <<_______EOF
29407 #ifdef __cplusplus
29408 # define G_HAVE_ISO_VARARGS 1
29409 #endif
29410 _______EOF
29411         fi
29412         if test x$g_have_gnuc_varargs = xyes ; then
29413                 cat >>$outfile <<_______EOF
29414
29415 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
29416  * is passed ISO vararg support is turned off, and there is no work
29417  * around to turn it on, so we unconditionally turn it off.
29418  */
29419 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
29420 #  undef G_HAVE_ISO_VARARGS
29421 #endif
29422
29423 #define G_HAVE_GNUC_VARARGS 1
29424 _______EOF
29425         fi
29426
29427         case x$g_stack_grows in
29428         xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
29429         *)    echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
29430         esac
29431
29432
29433         echo >>$outfile
29434         if test x$g_have_eilseq = xno; then
29435                 cat >>$outfile <<_______EOF
29436 #ifndef EILSEQ
29437 /* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
29438  * The correspondence between this and the corresponding definition
29439  * in libiconv is essential.
29440  */
29441 #  define EILSEQ ENOENT
29442 #endif
29443 _______EOF
29444
29445         fi
29446
29447         if test x$g_have_gnuc_visibility = xyes; then
29448                 cat >>$outfile <<_______EOF
29449 #define G_HAVE_GNUC_VISIBILITY 1
29450 _______EOF
29451         fi
29452                 cat >>$outfile <<_______EOF
29453 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
29454 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
29455 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
29456 #define G_GNUC_INTERNAL __hidden
29457 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
29458 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
29459 #else
29460 #define G_GNUC_INTERNAL
29461 #endif
29462 _______EOF
29463
29464         echo >>$outfile
29465         cat >>$outfile <<_______EOF
29466 #define G_THREADS_ENABLED
29467 #define G_THREADS_IMPL_$g_threads_impl_def
29468 _______EOF
29469
29470         if test x"$g_memory_barrier_needed" != xno; then
29471           echo >>$outfile
29472           echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
29473         fi
29474         if test x"$g_atomic_lock_free" = xyes; then
29475           echo >>$outfile
29476           echo "#define G_ATOMIC_LOCK_FREE" >>$outfile
29477         fi
29478         echo >>$outfile
29479         g_bit_sizes="16 32 64"
29480         for bits in $g_bit_sizes; do
29481           cat >>$outfile <<_______EOF
29482 #define GINT${bits}_TO_${g_bs_native}(val)      ((gint${bits}) (val))
29483 #define GUINT${bits}_TO_${g_bs_native}(val)     ((guint${bits}) (val))
29484 #define GINT${bits}_TO_${g_bs_alien}(val)       ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
29485 #define GUINT${bits}_TO_${g_bs_alien}(val)      (GUINT${bits}_SWAP_LE_BE (val))
29486 _______EOF
29487         done
29488
29489         cat >>$outfile <<_______EOF
29490 #define GLONG_TO_LE(val)        ((glong) GINT${glongbits}_TO_LE (val))
29491 #define GULONG_TO_LE(val)       ((gulong) GUINT${glongbits}_TO_LE (val))
29492 #define GLONG_TO_BE(val)        ((glong) GINT${glongbits}_TO_BE (val))
29493 #define GULONG_TO_BE(val)       ((gulong) GUINT${glongbits}_TO_BE (val))
29494 #define GINT_TO_LE(val)         ((gint) GINT${gintbits}_TO_LE (val))
29495 #define GUINT_TO_LE(val)        ((guint) GUINT${gintbits}_TO_LE (val))
29496 #define GINT_TO_BE(val)         ((gint) GINT${gintbits}_TO_BE (val))
29497 #define GUINT_TO_BE(val)        ((guint) GUINT${gintbits}_TO_BE (val))
29498 #define GSIZE_TO_LE(val)        ((gsize) GUINT${gsizebits}_TO_LE (val))
29499 #define GSSIZE_TO_LE(val)       ((gssize) GINT${gsizebits}_TO_LE (val))
29500 #define GSIZE_TO_BE(val)        ((gsize) GUINT${gsizebits}_TO_BE (val))
29501 #define GSSIZE_TO_BE(val)       ((gssize) GINT${gsizebits}_TO_BE (val))
29502 #define G_BYTE_ORDER $g_byte_order
29503
29504 #define GLIB_SYSDEF_POLLIN =$g_pollin
29505 #define GLIB_SYSDEF_POLLOUT =$g_pollout
29506 #define GLIB_SYSDEF_POLLPRI =$g_pollpri
29507 #define GLIB_SYSDEF_POLLHUP =$g_pollhup
29508 #define GLIB_SYSDEF_POLLERR =$g_pollerr
29509 #define GLIB_SYSDEF_POLLNVAL =$g_pollnval
29510
29511 #define G_MODULE_SUFFIX "$g_module_suffix"
29512
29513 typedef $g_pid_type GPid;
29514
29515 #define GLIB_SYSDEF_AF_UNIX $g_af_unix
29516 #define GLIB_SYSDEF_AF_INET $g_af_inet
29517 #define GLIB_SYSDEF_AF_INET6 $g_af_inet6
29518
29519 #define GLIB_SYSDEF_MSG_OOB $g_msg_oob
29520 #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek
29521 #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute
29522
29523 G_END_DECLS
29524
29525 #endif /* __GLIBCONFIG_H__ */
29526 _______EOF
29527
29528
29529         if cmp -s $outfile glib/glibconfig.h; then
29530           { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5
29531 $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;}
29532           rm -f $outfile
29533         else
29534           mv $outfile glib/glibconfig.h
29535         fi
29536  ;;
29537
29538   esac
29539 done # for ac_tag
29540
29541
29542 as_fn_exit 0
29543 _ACEOF
29544 ac_clean_files=$ac_clean_files_save
29545
29546 test $ac_write_fail = 0 ||
29547   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
29548
29549
29550 # configure is writing to config.log, and then calls config.status.
29551 # config.status does its own redirection, appending to config.log.
29552 # Unfortunately, on DOS this fails, as config.log is still kept open
29553 # by configure, so config.status won't be able to write to it; its
29554 # output is simply discarded.  So we exec the FD to /dev/null,
29555 # effectively closing config.log, so it can be properly (re)opened and
29556 # appended to by config.status.  When coming back to configure, we
29557 # need to make the FD available again.
29558 if test "$no_create" != yes; then
29559   ac_cs_success=:
29560   ac_config_status_args=
29561   test "$silent" = yes &&
29562     ac_config_status_args="$ac_config_status_args --quiet"
29563   exec 5>/dev/null
29564   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29565   exec 5>>config.log
29566   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29567   # would make configure fail if this is the last instruction.
29568   $ac_cs_success || as_fn_exit 1
29569 fi
29570 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29571   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29572 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29573 fi
29574