test release infrastructure
[profile/ivi/glib2.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for glib 2.31.20.
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.31.20'
575 PACKAGE_STRING='glib 2.31.20'
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 DBUS1_LIBS
630 DBUS1_CFLAGS
631 LTP_GENHTML
632 LTP
633 SHTOOL
634 ABS_TAPSET_DIR
635 ENABLE_SYSTEMTAP_FALSE
636 ENABLE_SYSTEMTAP_TRUE
637 ENABLE_DTRACE_FALSE
638 ENABLE_DTRACE_TRUE
639 DTRACE
640 ENABLE_MAN_FALSE
641 ENABLE_MAN_TRUE
642 XMLCATALOG
643 XML_CATALOG_FILE
644 XSLTPROC
645 GTK_DOC_USE_REBASE_FALSE
646 GTK_DOC_USE_REBASE_TRUE
647 GTK_DOC_USE_LIBTOOL_FALSE
648 GTK_DOC_USE_LIBTOOL_TRUE
649 GTK_DOC_BUILD_PDF_FALSE
650 GTK_DOC_BUILD_PDF_TRUE
651 GTK_DOC_BUILD_HTML_FALSE
652 GTK_DOC_BUILD_HTML_TRUE
653 ENABLE_GTK_DOC_FALSE
654 ENABLE_GTK_DOC_TRUE
655 GTKDOC_DEPS_LIBS
656 GTKDOC_DEPS_CFLAGS
657 HTML_DIR
658 GTKDOC_MKPDF
659 GTKDOC_REBASE
660 GTKDOC_CHECK
661 GLIB_COMPILE_RESOURCES
662 GLIB_COMPILE_SCHEMAS
663 GLIB_GENMARSHAL
664 CROSS_COMPILING_FALSE
665 CROSS_COMPILING_TRUE
666 G_LIBS_EXTRA
667 PCRE_WARN_CFLAGS
668 PCRE_REQUIRES
669 PCRE_LIBS
670 PCRE_CFLAGS
671 USE_SYSTEM_PCRE_FALSE
672 USE_SYSTEM_PCRE_TRUE
673 HAVE_EVENTFD_FALSE
674 HAVE_EVENTFD_TRUE
675 G_THREAD_LIBS_EXTRA
676 G_THREAD_LIBS_FOR_GTHREAD
677 G_THREAD_LIBS
678 G_THREAD_CFLAGS
679 GTHREAD_COMPILE_IMPL_DEFINES
680 PLATFORM_WIN32_FALSE
681 PLATFORM_WIN32_TRUE
682 ENABLE_TIMELOOP_FALSE
683 ENABLE_TIMELOOP_TRUE
684 PLATFORMDEP
685 ELF_LIBS
686 XATTR_LIBS
687 HAVE_FAM_FALSE
688 HAVE_FAM_TRUE
689 FAM_LIBS
690 HAVE_FEN_FALSE
691 HAVE_FEN_TRUE
692 HAVE_INOTIFY_FALSE
693 HAVE_INOTIFY_TRUE
694 SELINUX_LIBS
695 GIO_MODULE_DIR
696 GIO
697 GSPAWN
698 GLIB_DEBUG_FLAGS
699 G_MODULE_NEED_USCORE
700 G_MODULE_BROKEN_RTLD_GLOBAL
701 G_MODULE_HAVE_DLERROR
702 G_MODULE_LDFLAGS
703 G_MODULE_PLUGIN_LIBS
704 G_MODULE_LIBS_EXTRA
705 G_MODULE_LIBS
706 G_MODULE_IMPL
707 G_MODULE_SUPPORTED
708 HAVE_GOOD_PRINTF_FALSE
709 HAVE_GOOD_PRINTF_TRUE
710 HAVE_NETLINK_FALSE
711 HAVE_NETLINK_TRUE
712 NETWORK_LIBS
713 HAVE_SUNSTUDIO_VISIBILITY_FALSE
714 HAVE_SUNSTUDIO_VISIBILITY_TRUE
715 HAVE_GNUC_VISIBILITY_FALSE
716 HAVE_GNUC_VISIBILITY_TRUE
717 ALLOCA
718 OS_WIN32_AND_DLL_COMPILATION_FALSE
719 OS_WIN32_AND_DLL_COMPILATION_TRUE
720 GLIB_WIN32_STATIC_COMPILATION_DEFINE
721 CXXCPP
722 OTOOL64
723 OTOOL
724 LIPO
725 NMEDIT
726 DSYMUTIL
727 MANIFEST_TOOL
728 ac_ct_AR
729 AR
730 LN_S
731 ac_ct_DUMPBIN
732 DUMPBIN
733 LD
734 FGREP
735 SED
736 LIBTOOL
737 OBJDUMP
738 DLLTOOL
739 AS
740 ICONV_LIBS
741 GETTEXT_PACKAGE
742 MKINSTALLDIRS
743 POSUB
744 POFILES
745 PO_IN_DATADIR_FALSE
746 PO_IN_DATADIR_TRUE
747 INTLLIBS
748 INSTOBJEXT
749 GMOFILES
750 DATADIRNAME
751 CATOBJEXT
752 CATALOGS
753 XGETTEXT
754 GMSGFMT
755 MSGFMT_OPTS
756 MSGFMT
757 USE_NLS
758 CONFIG_STATUS_DEPENDENCIES
759 LIBFFI_LIBS
760 LIBFFI_CFLAGS
761 ZLIB_LIBS
762 ZLIB_CFLAGS
763 pkgpyexecdir
764 pyexecdir
765 pkgpythondir
766 pythondir
767 PYTHON_PLATFORM
768 PYTHON_EXEC_PREFIX
769 PYTHON_PREFIX
770 PYTHON_VERSION
771 PYTHON
772 PERL_PATH
773 REBUILD
774 INDENT
775 PERL
776 GLIB_EXTRA_CFLAGS
777 PKG_CONFIG_LIBDIR
778 PKG_CONFIG_PATH
779 PKG_CONFIG
780 HAVE_CXX_FALSE
781 HAVE_CXX_TRUE
782 am__fastdepCXX_FALSE
783 am__fastdepCXX_TRUE
784 CXXDEPMODE
785 CXXFLAGS
786 ac_ct_CXX
787 CXX
788 HAVE_GLIB_RUNTIME_LIBDIR_FALSE
789 HAVE_GLIB_RUNTIME_LIBDIR_TRUE
790 ABS_GLIB_RUNTIME_LIBDIR
791 GLIB_RUNTIME_LIBDIR
792 GLIBC21
793 EGREP
794 GREP
795 LIBTOOL_EXPORT_OPTIONS
796 MS_LIB_AVAILABLE_FALSE
797 MS_LIB_AVAILABLE_TRUE
798 ms_librarian
799 RANLIB
800 NM
801 WINDRES
802 OS_CARBON_FALSE
803 OS_CARBON_TRUE
804 OS_LINUX_FALSE
805 OS_LINUX_TRUE
806 OS_UNIX_FALSE
807 OS_UNIX_TRUE
808 OS_WIN32_X64_FALSE
809 OS_WIN32_X64_TRUE
810 OS_WIN32_FALSE
811 OS_WIN32_TRUE
812 LIB_EXE_MACHINE_FLAG
813 host_os
814 host_vendor
815 host_cpu
816 host
817 build_os
818 build_vendor
819 build_cpu
820 build
821 HAVE_GCC_FALSE
822 HAVE_GCC_TRUE
823 CPP
824 am__fastdepCC_FALSE
825 am__fastdepCC_TRUE
826 CCDEPMODE
827 am__nodep
828 AMDEPBACKSLASH
829 AMDEP_FALSE
830 AMDEP_TRUE
831 am__quote
832 am__include
833 DEPDIR
834 OBJEXT
835 EXEEXT
836 ac_ct_CC
837 CPPFLAGS
838 LDFLAGS
839 CFLAGS
840 CC
841 LT_CURRENT_MINUS_AGE
842 LT_AGE
843 LT_REVISION
844 LT_CURRENT
845 LT_RELEASE
846 GLIB_BINARY_AGE
847 GLIB_INTERFACE_AGE
848 GLIB_VERSION
849 GLIB_MICRO_VERSION
850 GLIB_MINOR_VERSION
851 GLIB_MAJOR_VERSION
852 AM_BACKSLASH
853 AM_DEFAULT_VERBOSITY
854 AM_DEFAULT_V
855 AM_V
856 MAINT
857 MAINTAINER_MODE_FALSE
858 MAINTAINER_MODE_TRUE
859 am__untar
860 am__tar
861 AMTAR
862 am__leading_dot
863 SET_MAKE
864 AWK
865 mkdir_p
866 MKDIR_P
867 INSTALL_STRIP_PROGRAM
868 STRIP
869 install_sh
870 MAKEINFO
871 AUTOHEADER
872 AUTOMAKE
873 AUTOCONF
874 ACLOCAL
875 VERSION
876 PACKAGE
877 CYGPATH_W
878 am__isrc
879 INSTALL_DATA
880 INSTALL_SCRIPT
881 INSTALL_PROGRAM
882 target_alias
883 host_alias
884 build_alias
885 LIBS
886 ECHO_T
887 ECHO_N
888 ECHO_C
889 DEFS
890 mandir
891 localedir
892 libdir
893 psdir
894 pdfdir
895 dvidir
896 htmldir
897 infodir
898 docdir
899 oldincludedir
900 includedir
901 localstatedir
902 sharedstatedir
903 sysconfdir
904 datadir
905 datarootdir
906 libexecdir
907 sbindir
908 bindir
909 program_transform_name
910 prefix
911 exec_prefix
912 PACKAGE_URL
913 PACKAGE_BUGREPORT
914 PACKAGE_STRING
915 PACKAGE_VERSION
916 PACKAGE_TARNAME
917 PACKAGE_NAME
918 PATH_SEPARATOR
919 SHELL'
920 ac_subst_files=''
921 ac_user_opts='
922 enable_option_checking
923 enable_maintainer_mode
924 enable_silent_rules
925 enable_dependency_tracking
926 enable_debug
927 enable_gc_friendly
928 enable_mem_pools
929 enable_rebuilds
930 with_runtime_libdir
931 enable_largefile
932 with_libiconv
933 enable_iconv_cache
934 enable_static
935 enable_shared
936 with_pic
937 enable_fast_install
938 with_gnu_ld
939 with_sysroot
940 enable_libtool_lock
941 enable_included_printf
942 with_gio_module_dir
943 enable_selinux
944 enable_fam
945 enable_xattr
946 with_threads
947 with_pcre
948 with_html_dir
949 enable_gtk_doc
950 enable_gtk_doc_html
951 enable_gtk_doc_pdf
952 enable_man
953 with_xml_catalog
954 enable_dtrace
955 enable_systemtap
956 with_tapset_install_dir
957 enable_gcov
958 enable_Bsymbolic
959 '
960       ac_precious_vars='build_alias
961 host_alias
962 target_alias
963 CC
964 CFLAGS
965 LDFLAGS
966 LIBS
967 CPPFLAGS
968 CPP
969 CXX
970 CXXFLAGS
971 CCC
972 PKG_CONFIG
973 PKG_CONFIG_PATH
974 PKG_CONFIG_LIBDIR
975 PYTHON
976 ZLIB_CFLAGS
977 ZLIB_LIBS
978 LIBFFI_CFLAGS
979 LIBFFI_LIBS
980 CXXCPP
981 PCRE_CFLAGS
982 PCRE_LIBS
983 GTKDOC_DEPS_CFLAGS
984 GTKDOC_DEPS_LIBS
985 DBUS1_CFLAGS
986 DBUS1_LIBS'
987
988
989 # Initialize some variables set by options.
990 ac_init_help=
991 ac_init_version=false
992 ac_unrecognized_opts=
993 ac_unrecognized_sep=
994 # The variables have the same names as the options, with
995 # dashes changed to underlines.
996 cache_file=/dev/null
997 exec_prefix=NONE
998 no_create=
999 no_recursion=
1000 prefix=NONE
1001 program_prefix=NONE
1002 program_suffix=NONE
1003 program_transform_name=s,x,x,
1004 silent=
1005 site=
1006 srcdir=
1007 verbose=
1008 x_includes=NONE
1009 x_libraries=NONE
1010
1011 # Installation directory options.
1012 # These are left unexpanded so users can "make install exec_prefix=/foo"
1013 # and all the variables that are supposed to be based on exec_prefix
1014 # by default will actually change.
1015 # Use braces instead of parens because sh, perl, etc. also accept them.
1016 # (The list follows the same order as the GNU Coding Standards.)
1017 bindir='${exec_prefix}/bin'
1018 sbindir='${exec_prefix}/sbin'
1019 libexecdir='${exec_prefix}/libexec'
1020 datarootdir='${prefix}/share'
1021 datadir='${datarootdir}'
1022 sysconfdir='${prefix}/etc'
1023 sharedstatedir='${prefix}/com'
1024 localstatedir='${prefix}/var'
1025 includedir='${prefix}/include'
1026 oldincludedir='/usr/include'
1027 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1028 infodir='${datarootdir}/info'
1029 htmldir='${docdir}'
1030 dvidir='${docdir}'
1031 pdfdir='${docdir}'
1032 psdir='${docdir}'
1033 libdir='${exec_prefix}/lib'
1034 localedir='${datarootdir}/locale'
1035 mandir='${datarootdir}/man'
1036
1037 ac_prev=
1038 ac_dashdash=
1039 for ac_option
1040 do
1041   # If the previous option needs an argument, assign it.
1042   if test -n "$ac_prev"; then
1043     eval $ac_prev=\$ac_option
1044     ac_prev=
1045     continue
1046   fi
1047
1048   case $ac_option in
1049   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1050   *=)   ac_optarg= ;;
1051   *)    ac_optarg=yes ;;
1052   esac
1053
1054   # Accept the important Cygnus configure options, so we can diagnose typos.
1055
1056   case $ac_dashdash$ac_option in
1057   --)
1058     ac_dashdash=yes ;;
1059
1060   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061     ac_prev=bindir ;;
1062   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063     bindir=$ac_optarg ;;
1064
1065   -build | --build | --buil | --bui | --bu)
1066     ac_prev=build_alias ;;
1067   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068     build_alias=$ac_optarg ;;
1069
1070   -cache-file | --cache-file | --cache-fil | --cache-fi \
1071   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072     ac_prev=cache_file ;;
1073   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075     cache_file=$ac_optarg ;;
1076
1077   --config-cache | -C)
1078     cache_file=config.cache ;;
1079
1080   -datadir | --datadir | --datadi | --datad)
1081     ac_prev=datadir ;;
1082   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083     datadir=$ac_optarg ;;
1084
1085   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086   | --dataroo | --dataro | --datar)
1087     ac_prev=datarootdir ;;
1088   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090     datarootdir=$ac_optarg ;;
1091
1092   -disable-* | --disable-*)
1093     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096       as_fn_error $? "invalid feature name: $ac_useropt"
1097     ac_useropt_orig=$ac_useropt
1098     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099     case $ac_user_opts in
1100       *"
1101 "enable_$ac_useropt"
1102 "*) ;;
1103       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104          ac_unrecognized_sep=', ';;
1105     esac
1106     eval enable_$ac_useropt=no ;;
1107
1108   -docdir | --docdir | --docdi | --doc | --do)
1109     ac_prev=docdir ;;
1110   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111     docdir=$ac_optarg ;;
1112
1113   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114     ac_prev=dvidir ;;
1115   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116     dvidir=$ac_optarg ;;
1117
1118   -enable-* | --enable-*)
1119     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122       as_fn_error $? "invalid feature name: $ac_useropt"
1123     ac_useropt_orig=$ac_useropt
1124     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125     case $ac_user_opts in
1126       *"
1127 "enable_$ac_useropt"
1128 "*) ;;
1129       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130          ac_unrecognized_sep=', ';;
1131     esac
1132     eval enable_$ac_useropt=\$ac_optarg ;;
1133
1134   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136   | --exec | --exe | --ex)
1137     ac_prev=exec_prefix ;;
1138   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140   | --exec=* | --exe=* | --ex=*)
1141     exec_prefix=$ac_optarg ;;
1142
1143   -gas | --gas | --ga | --g)
1144     # Obsolete; use --with-gas.
1145     with_gas=yes ;;
1146
1147   -help | --help | --hel | --he | -h)
1148     ac_init_help=long ;;
1149   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150     ac_init_help=recursive ;;
1151   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152     ac_init_help=short ;;
1153
1154   -host | --host | --hos | --ho)
1155     ac_prev=host_alias ;;
1156   -host=* | --host=* | --hos=* | --ho=*)
1157     host_alias=$ac_optarg ;;
1158
1159   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160     ac_prev=htmldir ;;
1161   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162   | --ht=*)
1163     htmldir=$ac_optarg ;;
1164
1165   -includedir | --includedir | --includedi | --included | --include \
1166   | --includ | --inclu | --incl | --inc)
1167     ac_prev=includedir ;;
1168   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169   | --includ=* | --inclu=* | --incl=* | --inc=*)
1170     includedir=$ac_optarg ;;
1171
1172   -infodir | --infodir | --infodi | --infod | --info | --inf)
1173     ac_prev=infodir ;;
1174   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175     infodir=$ac_optarg ;;
1176
1177   -libdir | --libdir | --libdi | --libd)
1178     ac_prev=libdir ;;
1179   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180     libdir=$ac_optarg ;;
1181
1182   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183   | --libexe | --libex | --libe)
1184     ac_prev=libexecdir ;;
1185   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186   | --libexe=* | --libex=* | --libe=*)
1187     libexecdir=$ac_optarg ;;
1188
1189   -localedir | --localedir | --localedi | --localed | --locale)
1190     ac_prev=localedir ;;
1191   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192     localedir=$ac_optarg ;;
1193
1194   -localstatedir | --localstatedir | --localstatedi | --localstated \
1195   | --localstate | --localstat | --localsta | --localst | --locals)
1196     ac_prev=localstatedir ;;
1197   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199     localstatedir=$ac_optarg ;;
1200
1201   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202     ac_prev=mandir ;;
1203   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204     mandir=$ac_optarg ;;
1205
1206   -nfp | --nfp | --nf)
1207     # Obsolete; use --without-fp.
1208     with_fp=no ;;
1209
1210   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211   | --no-cr | --no-c | -n)
1212     no_create=yes ;;
1213
1214   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216     no_recursion=yes ;;
1217
1218   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220   | --oldin | --oldi | --old | --ol | --o)
1221     ac_prev=oldincludedir ;;
1222   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225     oldincludedir=$ac_optarg ;;
1226
1227   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228     ac_prev=prefix ;;
1229   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230     prefix=$ac_optarg ;;
1231
1232   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233   | --program-pre | --program-pr | --program-p)
1234     ac_prev=program_prefix ;;
1235   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237     program_prefix=$ac_optarg ;;
1238
1239   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240   | --program-suf | --program-su | --program-s)
1241     ac_prev=program_suffix ;;
1242   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244     program_suffix=$ac_optarg ;;
1245
1246   -program-transform-name | --program-transform-name \
1247   | --program-transform-nam | --program-transform-na \
1248   | --program-transform-n | --program-transform- \
1249   | --program-transform | --program-transfor \
1250   | --program-transfo | --program-transf \
1251   | --program-trans | --program-tran \
1252   | --progr-tra | --program-tr | --program-t)
1253     ac_prev=program_transform_name ;;
1254   -program-transform-name=* | --program-transform-name=* \
1255   | --program-transform-nam=* | --program-transform-na=* \
1256   | --program-transform-n=* | --program-transform-=* \
1257   | --program-transform=* | --program-transfor=* \
1258   | --program-transfo=* | --program-transf=* \
1259   | --program-trans=* | --program-tran=* \
1260   | --progr-tra=* | --program-tr=* | --program-t=*)
1261     program_transform_name=$ac_optarg ;;
1262
1263   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264     ac_prev=pdfdir ;;
1265   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266     pdfdir=$ac_optarg ;;
1267
1268   -psdir | --psdir | --psdi | --psd | --ps)
1269     ac_prev=psdir ;;
1270   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271     psdir=$ac_optarg ;;
1272
1273   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274   | -silent | --silent | --silen | --sile | --sil)
1275     silent=yes ;;
1276
1277   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278     ac_prev=sbindir ;;
1279   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280   | --sbi=* | --sb=*)
1281     sbindir=$ac_optarg ;;
1282
1283   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285   | --sharedst | --shareds | --shared | --share | --shar \
1286   | --sha | --sh)
1287     ac_prev=sharedstatedir ;;
1288   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291   | --sha=* | --sh=*)
1292     sharedstatedir=$ac_optarg ;;
1293
1294   -site | --site | --sit)
1295     ac_prev=site ;;
1296   -site=* | --site=* | --sit=*)
1297     site=$ac_optarg ;;
1298
1299   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300     ac_prev=srcdir ;;
1301   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302     srcdir=$ac_optarg ;;
1303
1304   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305   | --syscon | --sysco | --sysc | --sys | --sy)
1306     ac_prev=sysconfdir ;;
1307   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309     sysconfdir=$ac_optarg ;;
1310
1311   -target | --target | --targe | --targ | --tar | --ta | --t)
1312     ac_prev=target_alias ;;
1313   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314     target_alias=$ac_optarg ;;
1315
1316   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317     verbose=yes ;;
1318
1319   -version | --version | --versio | --versi | --vers | -V)
1320     ac_init_version=: ;;
1321
1322   -with-* | --with-*)
1323     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324     # Reject names that are not valid shell variable names.
1325     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326       as_fn_error $? "invalid package name: $ac_useropt"
1327     ac_useropt_orig=$ac_useropt
1328     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329     case $ac_user_opts in
1330       *"
1331 "with_$ac_useropt"
1332 "*) ;;
1333       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1334          ac_unrecognized_sep=', ';;
1335     esac
1336     eval with_$ac_useropt=\$ac_optarg ;;
1337
1338   -without-* | --without-*)
1339     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1340     # Reject names that are not valid shell variable names.
1341     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342       as_fn_error $? "invalid package name: $ac_useropt"
1343     ac_useropt_orig=$ac_useropt
1344     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345     case $ac_user_opts in
1346       *"
1347 "with_$ac_useropt"
1348 "*) ;;
1349       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350          ac_unrecognized_sep=', ';;
1351     esac
1352     eval with_$ac_useropt=no ;;
1353
1354   --x)
1355     # Obsolete; use --with-x.
1356     with_x=yes ;;
1357
1358   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359   | --x-incl | --x-inc | --x-in | --x-i)
1360     ac_prev=x_includes ;;
1361   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1363     x_includes=$ac_optarg ;;
1364
1365   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1366   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367     ac_prev=x_libraries ;;
1368   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1370     x_libraries=$ac_optarg ;;
1371
1372   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1373 Try \`$0 --help' for more information"
1374     ;;
1375
1376   *=*)
1377     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1378     # Reject names that are not valid shell variable names.
1379     case $ac_envvar in #(
1380       '' | [0-9]* | *[!_$as_cr_alnum]* )
1381       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1382     esac
1383     eval $ac_envvar=\$ac_optarg
1384     export $ac_envvar ;;
1385
1386   *)
1387     # FIXME: should be removed in autoconf 3.0.
1388     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1392     ;;
1393
1394   esac
1395 done
1396
1397 if test -n "$ac_prev"; then
1398   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1399   as_fn_error $? "missing argument to $ac_option"
1400 fi
1401
1402 if test -n "$ac_unrecognized_opts"; then
1403   case $enable_option_checking in
1404     no) ;;
1405     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1406     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407   esac
1408 fi
1409
1410 # Check all directory arguments for consistency.
1411 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412                 datadir sysconfdir sharedstatedir localstatedir includedir \
1413                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414                 libdir localedir mandir
1415 do
1416   eval ac_val=\$$ac_var
1417   # Remove trailing slashes.
1418   case $ac_val in
1419     */ )
1420       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421       eval $ac_var=\$ac_val;;
1422   esac
1423   # Be sure to have absolute directory names.
1424   case $ac_val in
1425     [\\/$]* | ?:[\\/]* )  continue;;
1426     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427   esac
1428   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1429 done
1430
1431 # There might be people who depend on the old broken behavior: `$host'
1432 # used to hold the argument of --host etc.
1433 # FIXME: To remove some day.
1434 build=$build_alias
1435 host=$host_alias
1436 target=$target_alias
1437
1438 # FIXME: To remove some day.
1439 if test "x$host_alias" != x; then
1440   if test "x$build_alias" = x; then
1441     cross_compiling=maybe
1442     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1443     If a cross compiler is detected then cross compile mode will be used" >&2
1444   elif test "x$build_alias" != "x$host_alias"; then
1445     cross_compiling=yes
1446   fi
1447 fi
1448
1449 ac_tool_prefix=
1450 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1451
1452 test "$silent" = yes && exec 6>/dev/null
1453
1454
1455 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456 ac_ls_di=`ls -di .` &&
1457 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458   as_fn_error $? "working directory cannot be determined"
1459 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460   as_fn_error $? "pwd does not report name of working directory"
1461
1462
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465   ac_srcdir_defaulted=yes
1466   # Try the directory containing this script, then the parent directory.
1467   ac_confdir=`$as_dirname -- "$as_myself" ||
1468 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469          X"$as_myself" : 'X\(//\)[^/]' \| \
1470          X"$as_myself" : 'X\(//\)$' \| \
1471          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 $as_echo X"$as_myself" |
1473     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474             s//\1/
1475             q
1476           }
1477           /^X\(\/\/\)[^/].*/{
1478             s//\1/
1479             q
1480           }
1481           /^X\(\/\/\)$/{
1482             s//\1/
1483             q
1484           }
1485           /^X\(\/\).*/{
1486             s//\1/
1487             q
1488           }
1489           s/.*/./; q'`
1490   srcdir=$ac_confdir
1491   if test ! -r "$srcdir/$ac_unique_file"; then
1492     srcdir=..
1493   fi
1494 else
1495   ac_srcdir_defaulted=no
1496 fi
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1500 fi
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502 ac_abs_confdir=`(
1503         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1504         pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507   srcdir=.
1508 fi
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517   eval ac_env_${ac_var}_value=\$${ac_var}
1518   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1521
1522 #
1523 # Report the --help message.
1524 #
1525 if test "$ac_init_help" = "long"; then
1526   # Omit some internal or obsolete options to make the list less imposing.
1527   # This message is too long to be a string in the A/UX 3.1 sh.
1528   cat <<_ACEOF
1529 \`configure' configures glib 2.31.20 to adapt to many kinds of systems.
1530
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1532
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE.  See below for descriptions of some of the useful variables.
1535
1536 Defaults for the options are specified in brackets.
1537
1538 Configuration:
1539   -h, --help              display this help and exit
1540       --help=short        display options specific to this package
1541       --help=recursive    display the short help of all the included packages
1542   -V, --version           display version information and exit
1543   -q, --quiet, --silent   do not print \`checking ...' messages
1544       --cache-file=FILE   cache test results in FILE [disabled]
1545   -C, --config-cache      alias for \`--cache-file=config.cache'
1546   -n, --no-create         do not create output files
1547       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1548
1549 Installation directories:
1550   --prefix=PREFIX         install architecture-independent files in PREFIX
1551                           [$ac_default_prefix]
1552   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1553                           [PREFIX]
1554
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1559
1560 For better control, use the options below.
1561
1562 Fine tuning of the installation directories:
1563   --bindir=DIR            user executables [EPREFIX/bin]
1564   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1565   --libexecdir=DIR        program executables [EPREFIX/libexec]
1566   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1567   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1568   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1569   --libdir=DIR            object code libraries [EPREFIX/lib]
1570   --includedir=DIR        C header files [PREFIX/include]
1571   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1572   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1573   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1574   --infodir=DIR           info documentation [DATAROOTDIR/info]
1575   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1576   --mandir=DIR            man documentation [DATAROOTDIR/man]
1577   --docdir=DIR            documentation root [DATAROOTDIR/doc/glib]
1578   --htmldir=DIR           html documentation [DOCDIR]
1579   --dvidir=DIR            dvi documentation [DOCDIR]
1580   --pdfdir=DIR            pdf documentation [DOCDIR]
1581   --psdir=DIR             ps documentation [DOCDIR]
1582 _ACEOF
1583
1584   cat <<\_ACEOF
1585
1586 Program names:
1587   --program-prefix=PREFIX            prepend PREFIX to installed program names
1588   --program-suffix=SUFFIX            append SUFFIX to installed program names
1589   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1590
1591 System types:
1592   --build=BUILD     configure for building on BUILD [guessed]
1593   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1594 _ACEOF
1595 fi
1596
1597 if test -n "$ac_init_help"; then
1598   case $ac_init_help in
1599      short | recursive ) echo "Configuration of glib 2.31.20:";;
1600    esac
1601   cat <<\_ACEOF
1602
1603 Optional Features:
1604   --disable-option-checking  ignore unrecognized --enable/--with options
1605   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1606   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1607   --disable-maintainer-mode  disable make rules and dependencies not useful
1608                           (and sometimes confusing) to the casual installer
1609   --enable-silent-rules          less verbose build output (undo: `make V=1')
1610   --disable-silent-rules         verbose build output (undo: `make V=0')
1611   --disable-dependency-tracking  speeds up one-time build
1612   --enable-dependency-tracking   do not reject slow dependency extractors
1613   --enable-debug=[no/minimum/yes]
1614                           turn on debugging [default=yes]
1615   --enable-gc-friendly    turn on garbage collector friendliness [default=no]
1616   --disable-mem-pools     disable all glib memory pools
1617   --disable-rebuilds      disable all source autogeneration rules
1618   --disable-largefile     omit support for large files
1619   --enable-iconv-cache=[yes/no/auto]
1620                           cache iconv descriptors [default=auto]
1621   --enable-static[=PKGS]  build static libraries [default=no]
1622   --enable-shared[=PKGS]  build shared libraries [default=yes]
1623   --enable-fast-install[=PKGS]
1624                           optimize for fast installation [default=yes]
1625   --disable-libtool-lock  avoid locking (might break parallel builds)
1626   --enable-included-printf
1627                           use included printf [default=auto]
1628   --disable-selinux       build without selinux support
1629   --disable-fam           don't use fam for file system monitoring
1630   --disable-xattr         build without xattr support
1631   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1632   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1633   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1634   --enable-man            regenerate man pages from Docbook [default=no]
1635   --enable-dtrace         include tracing support for dtrace
1636   --enable-systemtap      include tracing support for systemtap
1637   --enable-gcov           enable coverage testing with gcov
1638   --disable-Bsymbolic     avoid linking with -Bsymbolic
1639
1640 Optional Packages:
1641   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1642   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1643   --with-runtime-libdir=RELPATH
1644                           install runtime libraries relative to libdir
1645   --with-libiconv=[no/gnu/native]
1646                           use the libiconv library
1647   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1648                           both]
1649   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1650   --with-sysroot=DIR Search for dependent libraries within DIR
1651                         (or the compiler's sysroot if not specified).
1652   --with-gio-module-dir=DIR
1653                           load gio modules from this directory
1654                           [LIBDIR/gio/modules]
1655   --with-threads=[posix/win32]
1656                           specify a thread implementation to use
1657   --with-pcre=[internal/system]
1658                           whether to use system PCRE [default=internal]
1659   --with-html-dir=PATH    path to installed docs
1660   --with-xml-catalog=CATALOG
1661                           path to xml catalog to use
1662   --with-tapset-install-dir=DIR
1663                           path where systemtap tapsets are installed
1664                           [DATADIR/systemtap/tapset]
1665
1666 Some influential environment variables:
1667   CC          C compiler command
1668   CFLAGS      C compiler flags
1669   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1670               nonstandard directory <lib dir>
1671   LIBS        libraries to pass to the linker, e.g. -l<library>
1672   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1673               you have headers in a nonstandard directory <include dir>
1674   CPP         C preprocessor
1675   CXX         C++ compiler command
1676   CXXFLAGS    C++ compiler flags
1677   PKG_CONFIG  path to pkg-config utility
1678   PKG_CONFIG_PATH
1679               directories to add to pkg-config's search path
1680   PKG_CONFIG_LIBDIR
1681               path overriding pkg-config's built-in search path
1682   PYTHON      the Python interpreter
1683   ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1684   ZLIB_LIBS   linker flags for ZLIB, overriding pkg-config
1685   LIBFFI_CFLAGS
1686               C compiler flags for LIBFFI, overriding pkg-config
1687   LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config
1688   CXXCPP      C++ preprocessor
1689   PCRE_CFLAGS C compiler flags for PCRE, overriding pkg-config
1690   PCRE_LIBS   linker flags for PCRE, overriding pkg-config
1691   GTKDOC_DEPS_CFLAGS
1692               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1693   GTKDOC_DEPS_LIBS
1694               linker flags for GTKDOC_DEPS, overriding pkg-config
1695   DBUS1_CFLAGS
1696               C compiler flags for DBUS1, overriding pkg-config
1697   DBUS1_LIBS  linker flags for DBUS1, overriding pkg-config
1698
1699 Use these variables to override the choices made by `configure' or to help
1700 it to find libraries and programs with nonstandard names/locations.
1701
1702 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>.
1703 _ACEOF
1704 ac_status=$?
1705 fi
1706
1707 if test "$ac_init_help" = "recursive"; then
1708   # If there are subdirs, report their specific --help.
1709   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710     test -d "$ac_dir" ||
1711       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1712       continue
1713     ac_builddir=.
1714
1715 case "$ac_dir" in
1716 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1717 *)
1718   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1719   # A ".." for each directory in $ac_dir_suffix.
1720   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1721   case $ac_top_builddir_sub in
1722   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1723   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724   esac ;;
1725 esac
1726 ac_abs_top_builddir=$ac_pwd
1727 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1728 # for backward compatibility:
1729 ac_top_builddir=$ac_top_build_prefix
1730
1731 case $srcdir in
1732   .)  # We are building in place.
1733     ac_srcdir=.
1734     ac_top_srcdir=$ac_top_builddir_sub
1735     ac_abs_top_srcdir=$ac_pwd ;;
1736   [\\/]* | ?:[\\/]* )  # Absolute name.
1737     ac_srcdir=$srcdir$ac_dir_suffix;
1738     ac_top_srcdir=$srcdir
1739     ac_abs_top_srcdir=$srcdir ;;
1740   *) # Relative name.
1741     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1742     ac_top_srcdir=$ac_top_build_prefix$srcdir
1743     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1744 esac
1745 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1746
1747     cd "$ac_dir" || { ac_status=$?; continue; }
1748     # Check for guested configure.
1749     if test -f "$ac_srcdir/configure.gnu"; then
1750       echo &&
1751       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1752     elif test -f "$ac_srcdir/configure"; then
1753       echo &&
1754       $SHELL "$ac_srcdir/configure" --help=recursive
1755     else
1756       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1757     fi || ac_status=$?
1758     cd "$ac_pwd" || { ac_status=$?; break; }
1759   done
1760 fi
1761
1762 test -n "$ac_init_help" && exit $ac_status
1763 if $ac_init_version; then
1764   cat <<\_ACEOF
1765 glib configure 2.31.20
1766 generated by GNU Autoconf 2.68
1767
1768 Copyright (C) 2010 Free Software Foundation, Inc.
1769 This configure script is free software; the Free Software Foundation
1770 gives unlimited permission to copy, distribute and modify it.
1771 _ACEOF
1772   exit
1773 fi
1774
1775 ## ------------------------ ##
1776 ## Autoconf initialization. ##
1777 ## ------------------------ ##
1778
1779 # ac_fn_c_try_compile LINENO
1780 # --------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_compile ()
1783 {
1784   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785   rm -f conftest.$ac_objext
1786   if { { ac_try="$ac_compile"
1787 case "(($ac_try" in
1788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789   *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793   (eval "$ac_compile") 2>conftest.err
1794   ac_status=$?
1795   if test -s conftest.err; then
1796     grep -v '^ *+' conftest.err >conftest.er1
1797     cat conftest.er1 >&5
1798     mv -f conftest.er1 conftest.err
1799   fi
1800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801   test $ac_status = 0; } && {
1802          test -z "$ac_c_werror_flag" ||
1803          test ! -s conftest.err
1804        } && test -s conftest.$ac_objext; then :
1805   ac_retval=0
1806 else
1807   $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.$ac_ext >&5
1809
1810         ac_retval=1
1811 fi
1812   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813   as_fn_set_status $ac_retval
1814
1815 } # ac_fn_c_try_compile
1816
1817 # ac_fn_c_try_cpp LINENO
1818 # ----------------------
1819 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1820 ac_fn_c_try_cpp ()
1821 {
1822   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823   if { { ac_try="$ac_cpp conftest.$ac_ext"
1824 case "(($ac_try" in
1825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826   *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1831   ac_status=$?
1832   if test -s conftest.err; then
1833     grep -v '^ *+' conftest.err >conftest.er1
1834     cat conftest.er1 >&5
1835     mv -f conftest.er1 conftest.err
1836   fi
1837   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838   test $ac_status = 0; } > conftest.i && {
1839          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1840          test ! -s conftest.err
1841        }; then :
1842   ac_retval=0
1843 else
1844   $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1846
1847     ac_retval=1
1848 fi
1849   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850   as_fn_set_status $ac_retval
1851
1852 } # ac_fn_c_try_cpp
1853
1854 # ac_fn_cxx_try_compile LINENO
1855 # ----------------------------
1856 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1857 ac_fn_cxx_try_compile ()
1858 {
1859   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860   rm -f conftest.$ac_objext
1861   if { { ac_try="$ac_compile"
1862 case "(($ac_try" in
1863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864   *) ac_try_echo=$ac_try;;
1865 esac
1866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868   (eval "$ac_compile") 2>conftest.err
1869   ac_status=$?
1870   if test -s conftest.err; then
1871     grep -v '^ *+' conftest.err >conftest.er1
1872     cat conftest.er1 >&5
1873     mv -f conftest.er1 conftest.err
1874   fi
1875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876   test $ac_status = 0; } && {
1877          test -z "$ac_cxx_werror_flag" ||
1878          test ! -s conftest.err
1879        } && test -s conftest.$ac_objext; then :
1880   ac_retval=0
1881 else
1882   $as_echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1884
1885         ac_retval=1
1886 fi
1887   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888   as_fn_set_status $ac_retval
1889
1890 } # ac_fn_cxx_try_compile
1891
1892 # ac_fn_c_try_link LINENO
1893 # -----------------------
1894 # Try to link conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_c_try_link ()
1896 {
1897   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898   rm -f conftest.$ac_objext conftest$ac_exeext
1899   if { { ac_try="$ac_link"
1900 case "(($ac_try" in
1901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902   *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906   (eval "$ac_link") 2>conftest.err
1907   ac_status=$?
1908   if test -s conftest.err; then
1909     grep -v '^ *+' conftest.err >conftest.er1
1910     cat conftest.er1 >&5
1911     mv -f conftest.er1 conftest.err
1912   fi
1913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914   test $ac_status = 0; } && {
1915          test -z "$ac_c_werror_flag" ||
1916          test ! -s conftest.err
1917        } && test -s conftest$ac_exeext && {
1918          test "$cross_compiling" = yes ||
1919          $as_test_x conftest$ac_exeext
1920        }; then :
1921   ac_retval=0
1922 else
1923   $as_echo "$as_me: failed program was:" >&5
1924 sed 's/^/| /' conftest.$ac_ext >&5
1925
1926         ac_retval=1
1927 fi
1928   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930   # interfere with the next link command; also delete a directory that is
1931   # left behind by Apple's compiler.  We do this before executing the actions.
1932   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934   as_fn_set_status $ac_retval
1935
1936 } # ac_fn_c_try_link
1937
1938 # ac_fn_c_check_func LINENO FUNC VAR
1939 # ----------------------------------
1940 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1941 ac_fn_c_check_func ()
1942 {
1943   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947   $as_echo_n "(cached) " >&6
1948 else
1949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h.  */
1951 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1953 #define $2 innocuous_$2
1954
1955 /* System header to define __stub macros and hopefully few prototypes,
1956     which can conflict with char $2 (); below.
1957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958     <limits.h> exists even on freestanding compilers.  */
1959
1960 #ifdef __STDC__
1961 # include <limits.h>
1962 #else
1963 # include <assert.h>
1964 #endif
1965
1966 #undef $2
1967
1968 /* Override any GCC internal prototype to avoid an error.
1969    Use char because int might match the return type of a GCC
1970    builtin and then its argument prototype would still apply.  */
1971 #ifdef __cplusplus
1972 extern "C"
1973 #endif
1974 char $2 ();
1975 /* The GNU C library defines this for functions which it implements
1976     to always fail with ENOSYS.  Some functions are actually named
1977     something starting with __ and the normal name is an alias.  */
1978 #if defined __stub_$2 || defined __stub___$2
1979 choke me
1980 #endif
1981
1982 int
1983 main ()
1984 {
1985 return $2 ();
1986   ;
1987   return 0;
1988 }
1989 _ACEOF
1990 if ac_fn_c_try_link "$LINENO"; then :
1991   eval "$3=yes"
1992 else
1993   eval "$3=no"
1994 fi
1995 rm -f core conftest.err conftest.$ac_objext \
1996     conftest$ac_exeext conftest.$ac_ext
1997 fi
1998 eval ac_res=\$$3
1999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2001   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002
2003 } # ac_fn_c_check_func
2004
2005 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2006 # -------------------------------------------------------
2007 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2008 # the include files in INCLUDES and setting the cache variable VAR
2009 # accordingly.
2010 ac_fn_c_check_header_mongrel ()
2011 {
2012   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013   if eval \${$3+:} false; then :
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 fi
2019 eval ac_res=\$$3
2020                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 else
2023   # Is the header compilable?
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2025 $as_echo_n "checking $2 usability... " >&6; }
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h.  */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032   ac_header_compiler=yes
2033 else
2034   ac_header_compiler=no
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2038 $as_echo "$ac_header_compiler" >&6; }
2039
2040 # Is the header present?
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2042 $as_echo_n "checking $2 presence... " >&6; }
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h.  */
2045 #include <$2>
2046 _ACEOF
2047 if ac_fn_c_try_cpp "$LINENO"; then :
2048   ac_header_preproc=yes
2049 else
2050   ac_header_preproc=no
2051 fi
2052 rm -f conftest.err conftest.i conftest.$ac_ext
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2054 $as_echo "$ac_header_preproc" >&6; }
2055
2056 # So?  What about this header?
2057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2058   yes:no: )
2059     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2060 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2061     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2062 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063     ;;
2064   no:yes:* )
2065     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2066 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2067     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2068 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2069     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2070 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2071     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2072 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2073     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2074 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2075 ( $as_echo "## ------------------------------------------------------------------- ##
2076 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib ##
2077 ## ------------------------------------------------------------------- ##"
2078      ) | sed "s/^/$as_me: WARNING:     /" >&2
2079     ;;
2080 esac
2081   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084   $as_echo_n "(cached) " >&6
2085 else
2086   eval "$3=\$ac_header_compiler"
2087 fi
2088 eval ac_res=\$$3
2089                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 fi
2092   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093
2094 } # ac_fn_c_check_header_mongrel
2095
2096 # ac_fn_c_try_run LINENO
2097 # ----------------------
2098 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2099 # that executables *can* be run.
2100 ac_fn_c_try_run ()
2101 {
2102   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103   if { { ac_try="$ac_link"
2104 case "(($ac_try" in
2105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106   *) ac_try_echo=$ac_try;;
2107 esac
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110   (eval "$ac_link") 2>&5
2111   ac_status=$?
2112   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2113   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2114   { { case "(($ac_try" in
2115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2116   *) ac_try_echo=$ac_try;;
2117 esac
2118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2119 $as_echo "$ac_try_echo"; } >&5
2120   (eval "$ac_try") 2>&5
2121   ac_status=$?
2122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123   test $ac_status = 0; }; }; then :
2124   ac_retval=0
2125 else
2126   $as_echo "$as_me: program exited with status $ac_status" >&5
2127        $as_echo "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.$ac_ext >&5
2129
2130        ac_retval=$ac_status
2131 fi
2132   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2133   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134   as_fn_set_status $ac_retval
2135
2136 } # ac_fn_c_try_run
2137
2138 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists and can be compiled using the include files in
2141 # INCLUDES, setting the cache variable VAR accordingly.
2142 ac_fn_c_check_header_compile ()
2143 {
2144   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2145   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2146 $as_echo_n "checking for $2... " >&6; }
2147 if eval \${$3+:} false; then :
2148   $as_echo_n "(cached) " >&6
2149 else
2150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2151 /* end confdefs.h.  */
2152 $4
2153 #include <$2>
2154 _ACEOF
2155 if ac_fn_c_try_compile "$LINENO"; then :
2156   eval "$3=yes"
2157 else
2158   eval "$3=no"
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_c_check_header_compile
2168
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   if { { ac_try="$ac_cpp conftest.$ac_ext"
2176 case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2183   ac_status=$?
2184   if test -s conftest.err; then
2185     grep -v '^ *+' conftest.err >conftest.er1
2186     cat conftest.er1 >&5
2187     mv -f conftest.er1 conftest.err
2188   fi
2189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190   test $ac_status = 0; } > conftest.i && {
2191          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192          test ! -s conftest.err
2193        }; then :
2194   ac_retval=0
2195 else
2196   $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199     ac_retval=1
2200 fi
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203
2204 } # ac_fn_cxx_try_cpp
2205
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2210 {
2211   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212   rm -f conftest.$ac_objext conftest$ac_exeext
2213   if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216   *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220   (eval "$ac_link") 2>conftest.err
2221   ac_status=$?
2222   if test -s conftest.err; then
2223     grep -v '^ *+' conftest.err >conftest.er1
2224     cat conftest.er1 >&5
2225     mv -f conftest.er1 conftest.err
2226   fi
2227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228   test $ac_status = 0; } && {
2229          test -z "$ac_cxx_werror_flag" ||
2230          test ! -s conftest.err
2231        } && test -s conftest$ac_exeext && {
2232          test "$cross_compiling" = yes ||
2233          $as_test_x conftest$ac_exeext
2234        }; then :
2235   ac_retval=0
2236 else
2237   $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240         ac_retval=1
2241 fi
2242   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244   # interfere with the next link command; also delete a directory that is
2245   # left behind by Apple's compiler.  We do this before executing the actions.
2246   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248   as_fn_set_status $ac_retval
2249
2250 } # ac_fn_cxx_try_link
2251
2252 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2253 # -------------------------------------------
2254 # Tests whether TYPE exists after having included INCLUDES, setting cache
2255 # variable VAR accordingly.
2256 ac_fn_c_check_type ()
2257 {
2258   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if eval \${$3+:} false; then :
2262   $as_echo_n "(cached) " >&6
2263 else
2264   eval "$3=no"
2265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h.  */
2267 $4
2268 int
2269 main ()
2270 {
2271 if (sizeof ($2))
2272          return 0;
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 int
2282 main ()
2283 {
2284 if (sizeof (($2)))
2285             return 0;
2286   ;
2287   return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291
2292 else
2293   eval "$3=yes"
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 fi
2299 eval ac_res=\$$3
2300                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303
2304 } # ac_fn_c_check_type
2305
2306 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2307 # --------------------------------------------
2308 # Tries to find the compile-time value of EXPR in a program that includes
2309 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2310 # computed
2311 ac_fn_c_compute_int ()
2312 {
2313   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2314   if test "$cross_compiling" = yes; then
2315     # Depending upon the size, compute the lo and hi bounds.
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317 /* end confdefs.h.  */
2318 $4
2319 int
2320 main ()
2321 {
2322 static int test_array [1 - 2 * !(($2) >= 0)];
2323 test_array [0] = 0
2324
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330   ac_lo=0 ac_mid=0
2331   while :; do
2332     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2333 /* end confdefs.h.  */
2334 $4
2335 int
2336 main ()
2337 {
2338 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2339 test_array [0] = 0
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 if ac_fn_c_try_compile "$LINENO"; then :
2346   ac_hi=$ac_mid; break
2347 else
2348   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2349                         if test $ac_lo -le $ac_mid; then
2350                           ac_lo= ac_hi=
2351                           break
2352                         fi
2353                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356   done
2357 else
2358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2359 /* end confdefs.h.  */
2360 $4
2361 int
2362 main ()
2363 {
2364 static int test_array [1 - 2 * !(($2) < 0)];
2365 test_array [0] = 0
2366
2367   ;
2368   return 0;
2369 }
2370 _ACEOF
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372   ac_hi=-1 ac_mid=-1
2373   while :; do
2374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2375 /* end confdefs.h.  */
2376 $4
2377 int
2378 main ()
2379 {
2380 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2381 test_array [0] = 0
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 if ac_fn_c_try_compile "$LINENO"; then :
2388   ac_lo=$ac_mid; break
2389 else
2390   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2391                         if test $ac_mid -le $ac_hi; then
2392                           ac_lo= ac_hi=
2393                           break
2394                         fi
2395                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2396 fi
2397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2398   done
2399 else
2400   ac_lo= ac_hi=
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403 fi
2404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2405 # Binary search between lo and hi bounds.
2406 while test "x$ac_lo" != "x$ac_hi"; do
2407   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2409 /* end confdefs.h.  */
2410 $4
2411 int
2412 main ()
2413 {
2414 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2415 test_array [0] = 0
2416
2417   ;
2418   return 0;
2419 }
2420 _ACEOF
2421 if ac_fn_c_try_compile "$LINENO"; then :
2422   ac_hi=$ac_mid
2423 else
2424   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2425 fi
2426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2427 done
2428 case $ac_lo in #((
2429 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2430 '') ac_retval=1 ;;
2431 esac
2432   else
2433     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h.  */
2435 $4
2436 static long int longval () { return $2; }
2437 static unsigned long int ulongval () { return $2; }
2438 #include <stdio.h>
2439 #include <stdlib.h>
2440 int
2441 main ()
2442 {
2443
2444   FILE *f = fopen ("conftest.val", "w");
2445   if (! f)
2446     return 1;
2447   if (($2) < 0)
2448     {
2449       long int i = longval ();
2450       if (i != ($2))
2451         return 1;
2452       fprintf (f, "%ld", i);
2453     }
2454   else
2455     {
2456       unsigned long int i = ulongval ();
2457       if (i != ($2))
2458         return 1;
2459       fprintf (f, "%lu", i);
2460     }
2461   /* Do not output a trailing newline, as this causes \r\n confusion
2462      on some platforms.  */
2463   return ferror (f) || fclose (f) != 0;
2464
2465   ;
2466   return 0;
2467 }
2468 _ACEOF
2469 if ac_fn_c_try_run "$LINENO"; then :
2470   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2471 else
2472   ac_retval=1
2473 fi
2474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2475   conftest.$ac_objext conftest.beam conftest.$ac_ext
2476 rm -f conftest.val
2477
2478   fi
2479   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2480   as_fn_set_status $ac_retval
2481
2482 } # ac_fn_c_compute_int
2483
2484 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2485 # ----------------------------------------------------
2486 # Tries to find if the field MEMBER exists in type AGGR, after including
2487 # INCLUDES, setting cache variable VAR accordingly.
2488 ac_fn_c_check_member ()
2489 {
2490   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2492 $as_echo_n "checking for $2.$3... " >&6; }
2493 if eval \${$4+:} false; then :
2494   $as_echo_n "(cached) " >&6
2495 else
2496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h.  */
2498 $5
2499 int
2500 main ()
2501 {
2502 static $2 ac_aggr;
2503 if (ac_aggr.$3)
2504 return 0;
2505   ;
2506   return 0;
2507 }
2508 _ACEOF
2509 if ac_fn_c_try_compile "$LINENO"; then :
2510   eval "$4=yes"
2511 else
2512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h.  */
2514 $5
2515 int
2516 main ()
2517 {
2518 static $2 ac_aggr;
2519 if (sizeof ac_aggr.$3)
2520 return 0;
2521   ;
2522   return 0;
2523 }
2524 _ACEOF
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526   eval "$4=yes"
2527 else
2528   eval "$4=no"
2529 fi
2530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 eval ac_res=\$$4
2535                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2536 $as_echo "$ac_res" >&6; }
2537   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2538
2539 } # ac_fn_c_check_member
2540 cat >config.log <<_ACEOF
2541 This file contains any messages produced by compilers while
2542 running configure, to aid debugging if configure makes a mistake.
2543
2544 It was created by glib $as_me 2.31.20, which was
2545 generated by GNU Autoconf 2.68.  Invocation command line was
2546
2547   $ $0 $@
2548
2549 _ACEOF
2550 exec 5>>config.log
2551 {
2552 cat <<_ASUNAME
2553 ## --------- ##
2554 ## Platform. ##
2555 ## --------- ##
2556
2557 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2558 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2559 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2560 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2561 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2562
2563 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2564 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2565
2566 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2567 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2568 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2569 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2570 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2571 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2572 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2573
2574 _ASUNAME
2575
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2577 for as_dir in $PATH
2578 do
2579   IFS=$as_save_IFS
2580   test -z "$as_dir" && as_dir=.
2581     $as_echo "PATH: $as_dir"
2582   done
2583 IFS=$as_save_IFS
2584
2585 } >&5
2586
2587 cat >&5 <<_ACEOF
2588
2589
2590 ## ----------- ##
2591 ## Core tests. ##
2592 ## ----------- ##
2593
2594 _ACEOF
2595
2596
2597 # Keep a trace of the command line.
2598 # Strip out --no-create and --no-recursion so they do not pile up.
2599 # Strip out --silent because we don't want to record it for future runs.
2600 # Also quote any args containing shell meta-characters.
2601 # Make two passes to allow for proper duplicate-argument suppression.
2602 ac_configure_args=
2603 ac_configure_args0=
2604 ac_configure_args1=
2605 ac_must_keep_next=false
2606 for ac_pass in 1 2
2607 do
2608   for ac_arg
2609   do
2610     case $ac_arg in
2611     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2612     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2613     | -silent | --silent | --silen | --sile | --sil)
2614       continue ;;
2615     *\'*)
2616       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2617     esac
2618     case $ac_pass in
2619     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2620     2)
2621       as_fn_append ac_configure_args1 " '$ac_arg'"
2622       if test $ac_must_keep_next = true; then
2623         ac_must_keep_next=false # Got value, back to normal.
2624       else
2625         case $ac_arg in
2626           *=* | --config-cache | -C | -disable-* | --disable-* \
2627           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2628           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2629           | -with-* | --with-* | -without-* | --without-* | --x)
2630             case "$ac_configure_args0 " in
2631               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2632             esac
2633             ;;
2634           -* ) ac_must_keep_next=true ;;
2635         esac
2636       fi
2637       as_fn_append ac_configure_args " '$ac_arg'"
2638       ;;
2639     esac
2640   done
2641 done
2642 { ac_configure_args0=; unset ac_configure_args0;}
2643 { ac_configure_args1=; unset ac_configure_args1;}
2644
2645 # When interrupted or exit'd, cleanup temporary files, and complete
2646 # config.log.  We remove comments because anyway the quotes in there
2647 # would cause problems or look ugly.
2648 # WARNING: Use '\'' to represent an apostrophe within the trap.
2649 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2650 trap 'exit_status=$?
2651   # Save into config.log some information that might help in debugging.
2652   {
2653     echo
2654
2655     $as_echo "## ---------------- ##
2656 ## Cache variables. ##
2657 ## ---------------- ##"
2658     echo
2659     # The following way of writing the cache mishandles newlines in values,
2660 (
2661   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2662     eval ac_val=\$$ac_var
2663     case $ac_val in #(
2664     *${as_nl}*)
2665       case $ac_var in #(
2666       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2667 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2668       esac
2669       case $ac_var in #(
2670       _ | IFS | as_nl) ;; #(
2671       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2672       *) { eval $ac_var=; unset $ac_var;} ;;
2673       esac ;;
2674     esac
2675   done
2676   (set) 2>&1 |
2677     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2678     *${as_nl}ac_space=\ *)
2679       sed -n \
2680         "s/'\''/'\''\\\\'\'''\''/g;
2681           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2682       ;; #(
2683     *)
2684       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2685       ;;
2686     esac |
2687     sort
2688 )
2689     echo
2690
2691     $as_echo "## ----------------- ##
2692 ## Output variables. ##
2693 ## ----------------- ##"
2694     echo
2695     for ac_var in $ac_subst_vars
2696     do
2697       eval ac_val=\$$ac_var
2698       case $ac_val in
2699       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2700       esac
2701       $as_echo "$ac_var='\''$ac_val'\''"
2702     done | sort
2703     echo
2704
2705     if test -n "$ac_subst_files"; then
2706       $as_echo "## ------------------- ##
2707 ## File substitutions. ##
2708 ## ------------------- ##"
2709       echo
2710       for ac_var in $ac_subst_files
2711       do
2712         eval ac_val=\$$ac_var
2713         case $ac_val in
2714         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2715         esac
2716         $as_echo "$ac_var='\''$ac_val'\''"
2717       done | sort
2718       echo
2719     fi
2720
2721     if test -s confdefs.h; then
2722       $as_echo "## ----------- ##
2723 ## confdefs.h. ##
2724 ## ----------- ##"
2725       echo
2726       cat confdefs.h
2727       echo
2728     fi
2729     test "$ac_signal" != 0 &&
2730       $as_echo "$as_me: caught signal $ac_signal"
2731     $as_echo "$as_me: exit $exit_status"
2732   } >&5
2733   rm -f core *.core core.conftest.* &&
2734     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2735     exit $exit_status
2736 ' 0
2737 for ac_signal in 1 2 13 15; do
2738   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2739 done
2740 ac_signal=0
2741
2742 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2743 rm -f -r conftest* confdefs.h
2744
2745 $as_echo "/* confdefs.h */" > confdefs.h
2746
2747 # Predefined preprocessor variables.
2748
2749 cat >>confdefs.h <<_ACEOF
2750 #define PACKAGE_NAME "$PACKAGE_NAME"
2751 _ACEOF
2752
2753 cat >>confdefs.h <<_ACEOF
2754 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2755 _ACEOF
2756
2757 cat >>confdefs.h <<_ACEOF
2758 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2759 _ACEOF
2760
2761 cat >>confdefs.h <<_ACEOF
2762 #define PACKAGE_STRING "$PACKAGE_STRING"
2763 _ACEOF
2764
2765 cat >>confdefs.h <<_ACEOF
2766 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2767 _ACEOF
2768
2769 cat >>confdefs.h <<_ACEOF
2770 #define PACKAGE_URL "$PACKAGE_URL"
2771 _ACEOF
2772
2773
2774 # Let the site file select an alternate cache file if it wants to.
2775 # Prefer an explicitly selected file to automatically selected ones.
2776 ac_site_file1=NONE
2777 ac_site_file2=NONE
2778 if test -n "$CONFIG_SITE"; then
2779   # We do not want a PATH search for config.site.
2780   case $CONFIG_SITE in #((
2781     -*)  ac_site_file1=./$CONFIG_SITE;;
2782     */*) ac_site_file1=$CONFIG_SITE;;
2783     *)   ac_site_file1=./$CONFIG_SITE;;
2784   esac
2785 elif test "x$prefix" != xNONE; then
2786   ac_site_file1=$prefix/share/config.site
2787   ac_site_file2=$prefix/etc/config.site
2788 else
2789   ac_site_file1=$ac_default_prefix/share/config.site
2790   ac_site_file2=$ac_default_prefix/etc/config.site
2791 fi
2792 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2793 do
2794   test "x$ac_site_file" = xNONE && continue
2795   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2796     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2797 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2798     sed 's/^/| /' "$ac_site_file" >&5
2799     . "$ac_site_file" \
2800       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2802 as_fn_error $? "failed to load site script $ac_site_file
2803 See \`config.log' for more details" "$LINENO" 5; }
2804   fi
2805 done
2806
2807 if test -r "$cache_file"; then
2808   # Some versions of bash will fail to source /dev/null (special files
2809   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2810   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2811     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2812 $as_echo "$as_me: loading cache $cache_file" >&6;}
2813     case $cache_file in
2814       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2815       *)                      . "./$cache_file";;
2816     esac
2817   fi
2818 else
2819   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2820 $as_echo "$as_me: creating cache $cache_file" >&6;}
2821   >$cache_file
2822 fi
2823
2824 # Check that the precious variables saved in the cache have kept the same
2825 # value.
2826 ac_cache_corrupted=false
2827 for ac_var in $ac_precious_vars; do
2828   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2829   eval ac_new_set=\$ac_env_${ac_var}_set
2830   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2831   eval ac_new_val=\$ac_env_${ac_var}_value
2832   case $ac_old_set,$ac_new_set in
2833     set,)
2834       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2835 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2836       ac_cache_corrupted=: ;;
2837     ,set)
2838       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2839 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2840       ac_cache_corrupted=: ;;
2841     ,);;
2842     *)
2843       if test "x$ac_old_val" != "x$ac_new_val"; then
2844         # differences in whitespace do not lead to failure.
2845         ac_old_val_w=`echo x $ac_old_val`
2846         ac_new_val_w=`echo x $ac_new_val`
2847         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2848           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2849 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2850           ac_cache_corrupted=:
2851         else
2852           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2853 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2854           eval $ac_var=\$ac_old_val
2855         fi
2856         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2857 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2858         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2859 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2860       fi;;
2861   esac
2862   # Pass precious variables to config.status.
2863   if test "$ac_new_set" = set; then
2864     case $ac_new_val in
2865     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2866     *) ac_arg=$ac_var=$ac_new_val ;;
2867     esac
2868     case " $ac_configure_args " in
2869       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2870       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2871     esac
2872   fi
2873 done
2874 if $ac_cache_corrupted; then
2875   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2877   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2878 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2879   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2880 fi
2881 ## -------------------- ##
2882 ## Main body of script. ##
2883 ## -------------------- ##
2884
2885 ac_ext=c
2886 ac_cpp='$CPP $CPPFLAGS'
2887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890
2891
2892
2893 ac_config_headers="$ac_config_headers config.h"
2894
2895
2896
2897
2898 # Save this value here, since automake will set cflags later
2899 cflags_set=${CFLAGS+set}
2900
2901 am__api_version='1.11'
2902
2903 ac_aux_dir=
2904 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2905   if test -f "$ac_dir/install-sh"; then
2906     ac_aux_dir=$ac_dir
2907     ac_install_sh="$ac_aux_dir/install-sh -c"
2908     break
2909   elif test -f "$ac_dir/install.sh"; then
2910     ac_aux_dir=$ac_dir
2911     ac_install_sh="$ac_aux_dir/install.sh -c"
2912     break
2913   elif test -f "$ac_dir/shtool"; then
2914     ac_aux_dir=$ac_dir
2915     ac_install_sh="$ac_aux_dir/shtool install -c"
2916     break
2917   fi
2918 done
2919 if test -z "$ac_aux_dir"; then
2920   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2921 fi
2922
2923 # These three variables are undocumented and unsupported,
2924 # and are intended to be withdrawn in a future Autoconf release.
2925 # They can cause serious problems if a builder's source tree is in a directory
2926 # whose full name contains unusual characters.
2927 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2928 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2929 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2930
2931
2932 # Find a good install program.  We prefer a C program (faster),
2933 # so one script is as good as another.  But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2938 # AIX /bin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if ${ac_cv_path_install+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2954 do
2955   IFS=$as_save_IFS
2956   test -z "$as_dir" && as_dir=.
2957     # Account for people who put trailing slashes in PATH elements.
2958 case $as_dir/ in #((
2959   ./ | .// | /[cC]/* | \
2960   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2961   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2962   /usr/ucb/* ) ;;
2963   *)
2964     # OSF1 and SCO ODT 3.0 have their own names for install.
2965     # Don't use installbsd from OSF since it installs stuff as root
2966     # by default.
2967     for ac_prog in ginstall scoinst install; do
2968       for ac_exec_ext in '' $ac_executable_extensions; do
2969         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2970           if test $ac_prog = install &&
2971             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972             # AIX install.  It has an incompatible calling convention.
2973             :
2974           elif test $ac_prog = install &&
2975             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976             # program-specific install script used by HP pwplus--don't use.
2977             :
2978           else
2979             rm -rf conftest.one conftest.two conftest.dir
2980             echo one > conftest.one
2981             echo two > conftest.two
2982             mkdir conftest.dir
2983             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2984               test -s conftest.one && test -s conftest.two &&
2985               test -s conftest.dir/conftest.one &&
2986               test -s conftest.dir/conftest.two
2987             then
2988               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2989               break 3
2990             fi
2991           fi
2992         fi
2993       done
2994     done
2995     ;;
2996 esac
2997
2998   done
2999 IFS=$as_save_IFS
3000
3001 rm -rf conftest.one conftest.two conftest.dir
3002
3003 fi
3004   if test "${ac_cv_path_install+set}" = set; then
3005     INSTALL=$ac_cv_path_install
3006   else
3007     # As a last resort, use the slow shell script.  Don't cache a
3008     # value for INSTALL within a source directory, because that will
3009     # break other packages using the cache if that directory is
3010     # removed, or if the value is a relative name.
3011     INSTALL=$ac_install_sh
3012   fi
3013 fi
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3015 $as_echo "$INSTALL" >&6; }
3016
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3020
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3022
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3024
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3026 $as_echo_n "checking whether build environment is sane... " >&6; }
3027 # Just in case
3028 sleep 1
3029 echo timestamp > conftest.file
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name.  Accept space and tab only in the latter.
3032 am_lf='
3033 '
3034 case `pwd` in
3035   *[\\\"\#\$\&\'\`$am_lf]*)
3036     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3037 esac
3038 case $srcdir in
3039   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3040     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3041 esac
3042
3043 # Do `set' in a subshell so we don't clobber the current shell's
3044 # arguments.  Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3047 # directory).
3048 if (
3049    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3050    if test "$*" = "X"; then
3051       # -L didn't work.
3052       set X `ls -t "$srcdir/configure" conftest.file`
3053    fi
3054    rm -f conftest.file
3055    if test "$*" != "X $srcdir/configure conftest.file" \
3056       && test "$*" != "X conftest.file $srcdir/configure"; then
3057
3058       # If neither matched, then we have a broken ls.  This can happen
3059       # if, for instance, CONFIG_SHELL is bash and it inherits a
3060       # broken ls alias from the environment.  This has actually
3061       # happened.  Such a system could not be considered "sane".
3062       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3063 alias in your environment" "$LINENO" 5
3064    fi
3065
3066    test "$2" = conftest.file
3067    )
3068 then
3069    # Ok.
3070    :
3071 else
3072    as_fn_error $? "newly created file is older than distributed files!
3073 Check your system clock" "$LINENO" 5
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 test "$program_prefix" != NONE &&
3078   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3082 # Double any \ or $.
3083 # By default was `s,x,x', remove it if useless.
3084 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3085 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3086
3087 # expand $ac_aux_dir to an absolute path
3088 am_aux_dir=`cd $ac_aux_dir && pwd`
3089
3090 if test x"${MISSING+set}" != xset; then
3091   case $am_aux_dir in
3092   *\ * | *\     *)
3093     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3094   *)
3095     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3096   esac
3097 fi
3098 # Use eval to expand $SHELL
3099 if eval "$MISSING --run true"; then
3100   am_missing_run="$MISSING --run "
3101 else
3102   am_missing_run=
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3104 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3105 fi
3106
3107 if test x"${install_sh}" != xset; then
3108   case $am_aux_dir in
3109   *\ * | *\     *)
3110     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3111   *)
3112     install_sh="\${SHELL} $am_aux_dir/install-sh"
3113   esac
3114 fi
3115
3116 # Installed binaries are usually stripped using `strip' when the user
3117 # run `make install-strip'.  However `strip' might not be the right
3118 # tool to use in cross-compilation environments, therefore Automake
3119 # will honor the `STRIP' environment variable to overrule this program.
3120 if test "$cross_compiling" != no; then
3121   if test -n "$ac_tool_prefix"; then
3122   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}strip; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if ${ac_cv_prog_STRIP+:} false; then :
3127   $as_echo_n "(cached) " >&6
3128 else
3129   if test -n "$STRIP"; then
3130   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3134 do
3135   IFS=$as_save_IFS
3136   test -z "$as_dir" && as_dir=.
3137     for ac_exec_ext in '' $ac_executable_extensions; do
3138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141     break 2
3142   fi
3143 done
3144   done
3145 IFS=$as_save_IFS
3146
3147 fi
3148 fi
3149 STRIP=$ac_cv_prog_STRIP
3150 if test -n "$STRIP"; then
3151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152 $as_echo "$STRIP" >&6; }
3153 else
3154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3156 fi
3157
3158
3159 fi
3160 if test -z "$ac_cv_prog_STRIP"; then
3161   ac_ct_STRIP=$STRIP
3162   # Extract the first word of "strip", so it can be a program name with args.
3163 set dummy strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3167   $as_echo_n "(cached) " >&6
3168 else
3169   if test -n "$ac_ct_STRIP"; then
3170   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3174 do
3175   IFS=$as_save_IFS
3176   test -z "$as_dir" && as_dir=.
3177     for ac_exec_ext in '' $ac_executable_extensions; do
3178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179     ac_cv_prog_ac_ct_STRIP="strip"
3180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181     break 2
3182   fi
3183 done
3184   done
3185 IFS=$as_save_IFS
3186
3187 fi
3188 fi
3189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3190 if test -n "$ac_ct_STRIP"; then
3191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3192 $as_echo "$ac_ct_STRIP" >&6; }
3193 else
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3196 fi
3197
3198   if test "x$ac_ct_STRIP" = x; then
3199     STRIP=":"
3200   else
3201     case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207     STRIP=$ac_ct_STRIP
3208   fi
3209 else
3210   STRIP="$ac_cv_prog_STRIP"
3211 fi
3212
3213 fi
3214 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3215
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3217 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3218 if test -z "$MKDIR_P"; then
3219   if ${ac_cv_path_mkdir+:} false; then :
3220   $as_echo_n "(cached) " >&6
3221 else
3222   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3224 do
3225   IFS=$as_save_IFS
3226   test -z "$as_dir" && as_dir=.
3227     for ac_prog in mkdir gmkdir; do
3228          for ac_exec_ext in '' $ac_executable_extensions; do
3229            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3230            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3231              'mkdir (GNU coreutils) '* | \
3232              'mkdir (coreutils) '* | \
3233              'mkdir (fileutils) '4.1*)
3234                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3235                break 3;;
3236            esac
3237          done
3238        done
3239   done
3240 IFS=$as_save_IFS
3241
3242 fi
3243
3244   test -d ./--version && rmdir ./--version
3245   if test "${ac_cv_path_mkdir+set}" = set; then
3246     MKDIR_P="$ac_cv_path_mkdir -p"
3247   else
3248     # As a last resort, use the slow shell script.  Don't cache a
3249     # value for MKDIR_P within a source directory, because that will
3250     # break other packages using the cache if that directory is
3251     # removed, or if the value is a relative name.
3252     MKDIR_P="$ac_install_sh -d"
3253   fi
3254 fi
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3256 $as_echo "$MKDIR_P" >&6; }
3257
3258 mkdir_p="$MKDIR_P"
3259 case $mkdir_p in
3260   [\\/$]* | ?:[\\/]*) ;;
3261   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3262 esac
3263
3264 for ac_prog in gawk mawk nawk awk
3265 do
3266   # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_AWK+:} false; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$AWK"; then
3274   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281     for ac_exec_ext in '' $ac_executable_extensions; do
3282   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283     ac_cv_prog_AWK="$ac_prog"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 AWK=$ac_cv_prog_AWK
3294 if test -n "$AWK"; then
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3296 $as_echo "$AWK" >&6; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303   test -n "$AWK" && break
3304 done
3305
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3307 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3308 set x ${MAKE-make}
3309 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3310 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3311   $as_echo_n "(cached) " >&6
3312 else
3313   cat >conftest.make <<\_ACEOF
3314 SHELL = /bin/sh
3315 all:
3316         @echo '@@@%%%=$(MAKE)=@@@%%%'
3317 _ACEOF
3318 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3319 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320   *@@@%%%=?*=@@@%%%*)
3321     eval ac_cv_prog_make_${ac_make}_set=yes;;
3322   *)
3323     eval ac_cv_prog_make_${ac_make}_set=no;;
3324 esac
3325 rm -f conftest.make
3326 fi
3327 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330   SET_MAKE=
3331 else
3332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334   SET_MAKE="MAKE=${MAKE-make}"
3335 fi
3336
3337 rm -rf .tst 2>/dev/null
3338 mkdir .tst 2>/dev/null
3339 if test -d .tst; then
3340   am__leading_dot=.
3341 else
3342   am__leading_dot=_
3343 fi
3344 rmdir .tst 2>/dev/null
3345
3346 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3347   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3348   # is not polluted with repeated "-I."
3349   am__isrc=' -I$(srcdir)'
3350   # test to see if srcdir already configured
3351   if test -f $srcdir/config.status; then
3352     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3353   fi
3354 fi
3355
3356 # test whether we have cygpath
3357 if test -z "$CYGPATH_W"; then
3358   if (cygpath --version) >/dev/null 2>/dev/null; then
3359     CYGPATH_W='cygpath -w'
3360   else
3361     CYGPATH_W=echo
3362   fi
3363 fi
3364
3365
3366 # Define the identity of the package.
3367  PACKAGE='glib'
3368  VERSION='2.31.20'
3369
3370
3371 # Some tools Automake needs.
3372
3373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3374
3375
3376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3377
3378
3379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3380
3381
3382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3383
3384
3385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3386
3387 # We need awk for the "check" target.  The system "awk" is bad on
3388 # some platforms.
3389 # Always define AMTAR for backward compatibility.  Yes, it's still used
3390 # in the wild :-(  We should find a proper way to deprecate it ...
3391 AMTAR='$${TAR-tar}'
3392
3393
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3395 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3396 # Loop over all known methods to create a tar archive until one works.
3397 _am_tools='gnutar plaintar pax cpio none'
3398 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3399 # Do not fold the above two line into one, because Tru64 sh and
3400 # Solaris sh will not grok spaces in the rhs of `-'.
3401 for _am_tool in $_am_tools
3402 do
3403   case $_am_tool in
3404   gnutar)
3405     for _am_tar in tar gnutar gtar;
3406     do
3407       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3408    ($_am_tar --version) >&5 2>&5
3409    ac_status=$?
3410    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411    (exit $ac_status); } && break
3412     done
3413     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3414     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3415     am__untar="$_am_tar -xf -"
3416     ;;
3417   plaintar)
3418     # Must skip GNU tar: if it does not support --format= it doesn't create
3419     # ustar tarball either.
3420     (tar --version) >/dev/null 2>&1 && continue
3421     am__tar='tar chf - "$$tardir"'
3422     am__tar_='tar chf - "$tardir"'
3423     am__untar='tar xf -'
3424     ;;
3425   pax)
3426     am__tar='pax -L -x ustar -w "$$tardir"'
3427     am__tar_='pax -L -x ustar -w "$tardir"'
3428     am__untar='pax -r'
3429     ;;
3430   cpio)
3431     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3432     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3433     am__untar='cpio -i -H ustar -d'
3434     ;;
3435   none)
3436     am__tar=false
3437     am__tar_=false
3438     am__untar=false
3439     ;;
3440   esac
3441
3442   # If the value was cached, stop now.  We just wanted to have am__tar
3443   # and am__untar set.
3444   test -n "${am_cv_prog_tar_ustar}" && break
3445
3446   # tar/untar a dummy directory, and stop if the command works
3447   rm -rf conftest.dir
3448   mkdir conftest.dir
3449   echo GrepMe > conftest.dir/file
3450   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3451    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3452    ac_status=$?
3453    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454    (exit $ac_status); }
3455   rm -rf conftest.dir
3456   if test -s conftest.tar; then
3457     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3458    ($am__untar <conftest.tar) >&5 2>&5
3459    ac_status=$?
3460    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461    (exit $ac_status); }
3462     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3463   fi
3464 done
3465 rm -rf conftest.dir
3466
3467 if ${am_cv_prog_tar_ustar+:} false; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   am_cv_prog_tar_ustar=$_am_tool
3471 fi
3472
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3474 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3475
3476
3477
3478
3479
3480
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3482 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3483     # Check whether --enable-maintainer-mode was given.
3484 if test "${enable_maintainer_mode+set}" = set; then :
3485   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3486 else
3487   USE_MAINTAINER_MODE=yes
3488 fi
3489
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3491 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3492    if test $USE_MAINTAINER_MODE = yes; then
3493   MAINTAINER_MODE_TRUE=
3494   MAINTAINER_MODE_FALSE='#'
3495 else
3496   MAINTAINER_MODE_TRUE='#'
3497   MAINTAINER_MODE_FALSE=
3498 fi
3499
3500   MAINT=$MAINTAINER_MODE_TRUE
3501
3502
3503
3504 # Support silent build rules. Disable
3505 # by either passing --disable-silent-rules to configure or passing V=1
3506 # to make
3507 # Check whether --enable-silent-rules was given.
3508 if test "${enable_silent_rules+set}" = set; then :
3509   enableval=$enable_silent_rules;
3510 fi
3511
3512 case $enable_silent_rules in
3513 yes) AM_DEFAULT_VERBOSITY=0;;
3514 no)  AM_DEFAULT_VERBOSITY=1;;
3515 *)   AM_DEFAULT_VERBOSITY=0;;
3516 esac
3517 am_make=${MAKE-make}
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3519 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3520 if ${am_cv_make_support_nested_variables+:} false; then :
3521   $as_echo_n "(cached) " >&6
3522 else
3523   if $as_echo 'TRUE=$(BAR$(V))
3524 BAR0=false
3525 BAR1=true
3526 V=1
3527 am__doit:
3528         @$(TRUE)
3529 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3530   am_cv_make_support_nested_variables=yes
3531 else
3532   am_cv_make_support_nested_variables=no
3533 fi
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3536 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3537 if test $am_cv_make_support_nested_variables = yes; then
3538     AM_V='$(V)'
3539   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3540 else
3541   AM_V=$AM_DEFAULT_VERBOSITY
3542   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3543 fi
3544 AM_BACKSLASH='\'
3545
3546
3547 GLIB_MAJOR_VERSION=2
3548 GLIB_MINOR_VERSION=31
3549 GLIB_MICRO_VERSION=20
3550 GLIB_INTERFACE_AGE=0
3551 GLIB_BINARY_AGE=3120
3552 GLIB_VERSION=2.31.20
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562 $as_echo "#define GLIB_MAJOR_VERSION 2" >>confdefs.h
3563
3564
3565 $as_echo "#define GLIB_MINOR_VERSION 31" >>confdefs.h
3566
3567
3568 $as_echo "#define GLIB_MICRO_VERSION 20" >>confdefs.h
3569
3570
3571 $as_echo "#define GLIB_INTERFACE_AGE 0" >>confdefs.h
3572
3573
3574 $as_echo "#define GLIB_BINARY_AGE 3120" >>confdefs.h
3575
3576
3577 # libtool versioning
3578 LT_RELEASE=2.31
3579 LT_CURRENT=3120
3580 LT_REVISION=0
3581 LT_AGE=3120
3582 LT_CURRENT_MINUS_AGE=0
3583
3584
3585
3586
3587
3588
3589 ac_ext=c
3590 ac_cpp='$CPP $CPPFLAGS'
3591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 if test -n "$ac_tool_prefix"; then
3595   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3596 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3598 $as_echo_n "checking for $ac_word... " >&6; }
3599 if ${ac_cv_prog_CC+:} false; then :
3600   $as_echo_n "(cached) " >&6
3601 else
3602   if test -n "$CC"; then
3603   ac_cv_prog_CC="$CC" # Let the user override the test.
3604 else
3605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3606 for as_dir in $PATH
3607 do
3608   IFS=$as_save_IFS
3609   test -z "$as_dir" && as_dir=.
3610     for ac_exec_ext in '' $ac_executable_extensions; do
3611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3612     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3614     break 2
3615   fi
3616 done
3617   done
3618 IFS=$as_save_IFS
3619
3620 fi
3621 fi
3622 CC=$ac_cv_prog_CC
3623 if test -n "$CC"; then
3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3625 $as_echo "$CC" >&6; }
3626 else
3627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3629 fi
3630
3631
3632 fi
3633 if test -z "$ac_cv_prog_CC"; then
3634   ac_ct_CC=$CC
3635   # Extract the first word of "gcc", so it can be a program name with args.
3636 set dummy gcc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3640   $as_echo_n "(cached) " >&6
3641 else
3642   if test -n "$ac_ct_CC"; then
3643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3647 do
3648   IFS=$as_save_IFS
3649   test -z "$as_dir" && as_dir=.
3650     for ac_exec_ext in '' $ac_executable_extensions; do
3651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652     ac_cv_prog_ac_ct_CC="gcc"
3653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654     break 2
3655   fi
3656 done
3657   done
3658 IFS=$as_save_IFS
3659
3660 fi
3661 fi
3662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3663 if test -n "$ac_ct_CC"; then
3664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3665 $as_echo "$ac_ct_CC" >&6; }
3666 else
3667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3669 fi
3670
3671   if test "x$ac_ct_CC" = x; then
3672     CC=""
3673   else
3674     case $cross_compiling:$ac_tool_warned in
3675 yes:)
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3679 esac
3680     CC=$ac_ct_CC
3681   fi
3682 else
3683   CC="$ac_cv_prog_CC"
3684 fi
3685
3686 if test -z "$CC"; then
3687           if test -n "$ac_tool_prefix"; then
3688     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3689 set dummy ${ac_tool_prefix}cc; ac_word=$2
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3691 $as_echo_n "checking for $ac_word... " >&6; }
3692 if ${ac_cv_prog_CC+:} false; then :
3693   $as_echo_n "(cached) " >&6
3694 else
3695   if test -n "$CC"; then
3696   ac_cv_prog_CC="$CC" # Let the user override the test.
3697 else
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in $PATH
3700 do
3701   IFS=$as_save_IFS
3702   test -z "$as_dir" && as_dir=.
3703     for ac_exec_ext in '' $ac_executable_extensions; do
3704   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705     ac_cv_prog_CC="${ac_tool_prefix}cc"
3706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3707     break 2
3708   fi
3709 done
3710   done
3711 IFS=$as_save_IFS
3712
3713 fi
3714 fi
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3719 else
3720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3722 fi
3723
3724
3725   fi
3726 fi
3727 if test -z "$CC"; then
3728   # Extract the first word of "cc", so it can be a program name with args.
3729 set dummy cc; ac_word=$2
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3731 $as_echo_n "checking for $ac_word... " >&6; }
3732 if ${ac_cv_prog_CC+:} false; then :
3733   $as_echo_n "(cached) " >&6
3734 else
3735   if test -n "$CC"; then
3736   ac_cv_prog_CC="$CC" # Let the user override the test.
3737 else
3738   ac_prog_rejected=no
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742   IFS=$as_save_IFS
3743   test -z "$as_dir" && as_dir=.
3744     for ac_exec_ext in '' $ac_executable_extensions; do
3745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3747        ac_prog_rejected=yes
3748        continue
3749      fi
3750     ac_cv_prog_CC="cc"
3751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752     break 2
3753   fi
3754 done
3755   done
3756 IFS=$as_save_IFS
3757
3758 if test $ac_prog_rejected = yes; then
3759   # We found a bogon in the path, so make sure we never use it.
3760   set dummy $ac_cv_prog_CC
3761   shift
3762   if test $# != 0; then
3763     # We chose a different compiler from the bogus one.
3764     # However, it has the same basename, so the bogon will be chosen
3765     # first if we set CC to just the basename; use the full file name.
3766     shift
3767     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3768   fi
3769 fi
3770 fi
3771 fi
3772 CC=$ac_cv_prog_CC
3773 if test -n "$CC"; then
3774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3775 $as_echo "$CC" >&6; }
3776 else
3777   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3778 $as_echo "no" >&6; }
3779 fi
3780
3781
3782 fi
3783 if test -z "$CC"; then
3784   if test -n "$ac_tool_prefix"; then
3785   for ac_prog in cl.exe
3786   do
3787     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if ${ac_cv_prog_CC+:} false; then :
3792   $as_echo_n "(cached) " >&6
3793 else
3794   if test -n "$CC"; then
3795   ac_cv_prog_CC="$CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3799 do
3800   IFS=$as_save_IFS
3801   test -z "$as_dir" && as_dir=.
3802     for ac_exec_ext in '' $ac_executable_extensions; do
3803   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3805     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806     break 2
3807   fi
3808 done
3809   done
3810 IFS=$as_save_IFS
3811
3812 fi
3813 fi
3814 CC=$ac_cv_prog_CC
3815 if test -n "$CC"; then
3816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 $as_echo "$CC" >&6; }
3818 else
3819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3822
3823
3824     test -n "$CC" && break
3825   done
3826 fi
3827 if test -z "$CC"; then
3828   ac_ct_CC=$CC
3829   for ac_prog in cl.exe
3830 do
3831   # Extract the first word of "$ac_prog", so it can be a program name with args.
3832 set dummy $ac_prog; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3836   $as_echo_n "(cached) " >&6
3837 else
3838   if test -n "$ac_ct_CC"; then
3839   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3840 else
3841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3842 for as_dir in $PATH
3843 do
3844   IFS=$as_save_IFS
3845   test -z "$as_dir" && as_dir=.
3846     for ac_exec_ext in '' $ac_executable_extensions; do
3847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3848     ac_cv_prog_ac_ct_CC="$ac_prog"
3849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3850     break 2
3851   fi
3852 done
3853   done
3854 IFS=$as_save_IFS
3855
3856 fi
3857 fi
3858 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3859 if test -n "$ac_ct_CC"; then
3860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3861 $as_echo "$ac_ct_CC" >&6; }
3862 else
3863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 fi
3866
3867
3868   test -n "$ac_ct_CC" && break
3869 done
3870
3871   if test "x$ac_ct_CC" = x; then
3872     CC=""
3873   else
3874     case $cross_compiling:$ac_tool_warned in
3875 yes:)
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3878 ac_tool_warned=yes ;;
3879 esac
3880     CC=$ac_ct_CC
3881   fi
3882 fi
3883
3884 fi
3885
3886
3887 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $? "no acceptable C compiler found in \$PATH
3890 See \`config.log' for more details" "$LINENO" 5; }
3891
3892 # Provide some information about the compiler.
3893 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3894 set X $ac_compile
3895 ac_compiler=$2
3896 for ac_option in --version -v -V -qversion; do
3897   { { ac_try="$ac_compiler $ac_option >&5"
3898 case "(($ac_try" in
3899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3900   *) ac_try_echo=$ac_try;;
3901 esac
3902 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3903 $as_echo "$ac_try_echo"; } >&5
3904   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3905   ac_status=$?
3906   if test -s conftest.err; then
3907     sed '10a\
3908 ... rest of stderr output deleted ...
3909          10q' conftest.err >conftest.er1
3910     cat conftest.er1 >&5
3911   fi
3912   rm -f conftest.er1 conftest.err
3913   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914   test $ac_status = 0; }
3915 done
3916
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 ac_clean_files_save=$ac_clean_files
3929 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3930 # Try to create an executable without -o first, disregard a.out.
3931 # It will help us diagnose broken compilers, and finding out an intuition
3932 # of exeext.
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3934 $as_echo_n "checking whether the C compiler works... " >&6; }
3935 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3936
3937 # The possible output files:
3938 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3939
3940 ac_rmfiles=
3941 for ac_file in $ac_files
3942 do
3943   case $ac_file in
3944     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3945     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3946   esac
3947 done
3948 rm -f $ac_rmfiles
3949
3950 if { { ac_try="$ac_link_default"
3951 case "(($ac_try" in
3952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953   *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3956 $as_echo "$ac_try_echo"; } >&5
3957   (eval "$ac_link_default") 2>&5
3958   ac_status=$?
3959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3960   test $ac_status = 0; }; then :
3961   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3962 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3963 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3964 # so that the user can short-circuit this test for compilers unknown to
3965 # Autoconf.
3966 for ac_file in $ac_files ''
3967 do
3968   test -f "$ac_file" || continue
3969   case $ac_file in
3970     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3971         ;;
3972     [ab].out )
3973         # We found the default executable, but exeext='' is most
3974         # certainly right.
3975         break;;
3976     *.* )
3977         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3978         then :; else
3979            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3980         fi
3981         # We set ac_cv_exeext here because the later test for it is not
3982         # safe: cross compilers may not add the suffix if given an `-o'
3983         # argument, so we may need to know it at that point already.
3984         # Even if this section looks crufty: it has the advantage of
3985         # actually working.
3986         break;;
3987     * )
3988         break;;
3989   esac
3990 done
3991 test "$ac_cv_exeext" = no && ac_cv_exeext=
3992
3993 else
3994   ac_file=''
3995 fi
3996 if test -z "$ac_file"; then :
3997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
3999 $as_echo "$as_me: failed program was:" >&5
4000 sed 's/^/| /' conftest.$ac_ext >&5
4001
4002 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4003 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4004 as_fn_error 77 "C compiler cannot create executables
4005 See \`config.log' for more details" "$LINENO" 5; }
4006 else
4007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4008 $as_echo "yes" >&6; }
4009 fi
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4011 $as_echo_n "checking for C compiler default output file name... " >&6; }
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4013 $as_echo "$ac_file" >&6; }
4014 ac_exeext=$ac_cv_exeext
4015
4016 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4017 ac_clean_files=$ac_clean_files_save
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4019 $as_echo_n "checking for suffix of executables... " >&6; }
4020 if { { ac_try="$ac_link"
4021 case "(($ac_try" in
4022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023   *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027   (eval "$ac_link") 2>&5
4028   ac_status=$?
4029   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030   test $ac_status = 0; }; then :
4031   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4032 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4033 # work properly (i.e., refer to `conftest.exe'), while it won't with
4034 # `rm'.
4035 for ac_file in conftest.exe conftest conftest.*; do
4036   test -f "$ac_file" || continue
4037   case $ac_file in
4038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4039     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4040           break;;
4041     * ) break;;
4042   esac
4043 done
4044 else
4045   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4047 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4048 See \`config.log' for more details" "$LINENO" 5; }
4049 fi
4050 rm -f conftest conftest$ac_cv_exeext
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4052 $as_echo "$ac_cv_exeext" >&6; }
4053
4054 rm -f conftest.$ac_ext
4055 EXEEXT=$ac_cv_exeext
4056 ac_exeext=$EXEEXT
4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4058 /* end confdefs.h.  */
4059 #include <stdio.h>
4060 int
4061 main ()
4062 {
4063 FILE *f = fopen ("conftest.out", "w");
4064  return ferror (f) || fclose (f) != 0;
4065
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 ac_clean_files="$ac_clean_files conftest.out"
4071 # Check that the compiler produces executables we can run.  If not, either
4072 # the compiler is broken, or we cross compile.
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4074 $as_echo_n "checking whether we are cross compiling... " >&6; }
4075 if test "$cross_compiling" != yes; then
4076   { { ac_try="$ac_link"
4077 case "(($ac_try" in
4078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079   *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 $as_echo "$ac_try_echo"; } >&5
4083   (eval "$ac_link") 2>&5
4084   ac_status=$?
4085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086   test $ac_status = 0; }
4087   if { ac_try='./conftest$ac_cv_exeext'
4088   { { case "(($ac_try" in
4089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090   *) ac_try_echo=$ac_try;;
4091 esac
4092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093 $as_echo "$ac_try_echo"; } >&5
4094   (eval "$ac_try") 2>&5
4095   ac_status=$?
4096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4097   test $ac_status = 0; }; }; then
4098     cross_compiling=no
4099   else
4100     if test "$cross_compiling" = maybe; then
4101         cross_compiling=yes
4102     else
4103         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4105 as_fn_error $? "cannot run C compiled programs.
4106 If you meant to cross compile, use \`--host'.
4107 See \`config.log' for more details" "$LINENO" 5; }
4108     fi
4109   fi
4110 fi
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4112 $as_echo "$cross_compiling" >&6; }
4113
4114 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4115 ac_clean_files=$ac_clean_files_save
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4117 $as_echo_n "checking for suffix of object files... " >&6; }
4118 if ${ac_cv_objext+:} false; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h.  */
4123
4124 int
4125 main ()
4126 {
4127
4128   ;
4129   return 0;
4130 }
4131 _ACEOF
4132 rm -f conftest.o conftest.obj
4133 if { { ac_try="$ac_compile"
4134 case "(($ac_try" in
4135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4136   *) ac_try_echo=$ac_try;;
4137 esac
4138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4139 $as_echo "$ac_try_echo"; } >&5
4140   (eval "$ac_compile") 2>&5
4141   ac_status=$?
4142   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4143   test $ac_status = 0; }; then :
4144   for ac_file in conftest.o conftest.obj conftest.*; do
4145   test -f "$ac_file" || continue;
4146   case $ac_file in
4147     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4148     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4149        break;;
4150   esac
4151 done
4152 else
4153   $as_echo "$as_me: failed program was:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4155
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error $? "cannot compute suffix of object files: cannot compile
4159 See \`config.log' for more details" "$LINENO" 5; }
4160 fi
4161 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4164 $as_echo "$ac_cv_objext" >&6; }
4165 OBJEXT=$ac_cv_objext
4166 ac_objext=$OBJEXT
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4168 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4169 if ${ac_cv_c_compiler_gnu+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h.  */
4174
4175 int
4176 main ()
4177 {
4178 #ifndef __GNUC__
4179        choke me
4180 #endif
4181
4182   ;
4183   return 0;
4184 }
4185 _ACEOF
4186 if ac_fn_c_try_compile "$LINENO"; then :
4187   ac_compiler_gnu=yes
4188 else
4189   ac_compiler_gnu=no
4190 fi
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4193
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4196 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4197 if test $ac_compiler_gnu = yes; then
4198   GCC=yes
4199 else
4200   GCC=
4201 fi
4202 ac_test_CFLAGS=${CFLAGS+set}
4203 ac_save_CFLAGS=$CFLAGS
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4205 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4206 if ${ac_cv_prog_cc_g+:} false; then :
4207   $as_echo_n "(cached) " >&6
4208 else
4209   ac_save_c_werror_flag=$ac_c_werror_flag
4210    ac_c_werror_flag=yes
4211    ac_cv_prog_cc_g=no
4212    CFLAGS="-g"
4213    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h.  */
4215
4216 int
4217 main ()
4218 {
4219
4220   ;
4221   return 0;
4222 }
4223 _ACEOF
4224 if ac_fn_c_try_compile "$LINENO"; then :
4225   ac_cv_prog_cc_g=yes
4226 else
4227   CFLAGS=""
4228       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h.  */
4230
4231 int
4232 main ()
4233 {
4234
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240
4241 else
4242   ac_c_werror_flag=$ac_save_c_werror_flag
4243          CFLAGS="-g"
4244          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4245 /* end confdefs.h.  */
4246
4247 int
4248 main ()
4249 {
4250
4251   ;
4252   return 0;
4253 }
4254 _ACEOF
4255 if ac_fn_c_try_compile "$LINENO"; then :
4256   ac_cv_prog_cc_g=yes
4257 fi
4258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4259 fi
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263    ac_c_werror_flag=$ac_save_c_werror_flag
4264 fi
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4266 $as_echo "$ac_cv_prog_cc_g" >&6; }
4267 if test "$ac_test_CFLAGS" = set; then
4268   CFLAGS=$ac_save_CFLAGS
4269 elif test $ac_cv_prog_cc_g = yes; then
4270   if test "$GCC" = yes; then
4271     CFLAGS="-g -O2"
4272   else
4273     CFLAGS="-g"
4274   fi
4275 else
4276   if test "$GCC" = yes; then
4277     CFLAGS="-O2"
4278   else
4279     CFLAGS=
4280   fi
4281 fi
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4283 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4284 if ${ac_cv_prog_cc_c89+:} false; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   ac_cv_prog_cc_c89=no
4288 ac_save_CC=$CC
4289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290 /* end confdefs.h.  */
4291 #include <stdarg.h>
4292 #include <stdio.h>
4293 #include <sys/types.h>
4294 #include <sys/stat.h>
4295 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4296 struct buf { int x; };
4297 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4298 static char *e (p, i)
4299      char **p;
4300      int i;
4301 {
4302   return p[i];
4303 }
4304 static char *f (char * (*g) (char **, int), char **p, ...)
4305 {
4306   char *s;
4307   va_list v;
4308   va_start (v,p);
4309   s = g (p, va_arg (v,int));
4310   va_end (v);
4311   return s;
4312 }
4313
4314 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4315    function prototypes and stuff, but not '\xHH' hex character constants.
4316    These don't provoke an error unfortunately, instead are silently treated
4317    as 'x'.  The following induces an error, until -std is added to get
4318    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4319    array size at least.  It's necessary to write '\x00'==0 to get something
4320    that's true only with -std.  */
4321 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4322
4323 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4324    inside strings and character constants.  */
4325 #define FOO(x) 'x'
4326 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4327
4328 int test (int i, double x);
4329 struct s1 {int (*f) (int a);};
4330 struct s2 {int (*f) (double a);};
4331 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4332 int argc;
4333 char **argv;
4334 int
4335 main ()
4336 {
4337 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4338   ;
4339   return 0;
4340 }
4341 _ACEOF
4342 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4343         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4344 do
4345   CC="$ac_save_CC $ac_arg"
4346   if ac_fn_c_try_compile "$LINENO"; then :
4347   ac_cv_prog_cc_c89=$ac_arg
4348 fi
4349 rm -f core conftest.err conftest.$ac_objext
4350   test "x$ac_cv_prog_cc_c89" != "xno" && break
4351 done
4352 rm -f conftest.$ac_ext
4353 CC=$ac_save_CC
4354
4355 fi
4356 # AC_CACHE_VAL
4357 case "x$ac_cv_prog_cc_c89" in
4358   x)
4359     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4360 $as_echo "none needed" >&6; } ;;
4361   xno)
4362     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4363 $as_echo "unsupported" >&6; } ;;
4364   *)
4365     CC="$CC $ac_cv_prog_cc_c89"
4366     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4367 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4368 esac
4369 if test "x$ac_cv_prog_cc_c89" != xno; then :
4370
4371 fi
4372
4373 ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 DEPDIR="${am__leading_dot}deps"
4379
4380 ac_config_commands="$ac_config_commands depfiles"
4381
4382
4383 am_make=${MAKE-make}
4384 cat > confinc << 'END'
4385 am__doit:
4386         @echo this is the am__doit target
4387 .PHONY: am__doit
4388 END
4389 # If we don't find an include directive, just comment out the code.
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4391 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4392 am__include="#"
4393 am__quote=
4394 _am_result=none
4395 # First try GNU make style include.
4396 echo "include confinc" > confmf
4397 # Ignore all kinds of additional output from `make'.
4398 case `$am_make -s -f confmf 2> /dev/null` in #(
4399 *the\ am__doit\ target*)
4400   am__include=include
4401   am__quote=
4402   _am_result=GNU
4403   ;;
4404 esac
4405 # Now try BSD make style include.
4406 if test "$am__include" = "#"; then
4407    echo '.include "confinc"' > confmf
4408    case `$am_make -s -f confmf 2> /dev/null` in #(
4409    *the\ am__doit\ target*)
4410      am__include=.include
4411      am__quote="\""
4412      _am_result=BSD
4413      ;;
4414    esac
4415 fi
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4419 $as_echo "$_am_result" >&6; }
4420 rm -f confinc confmf
4421
4422 # Check whether --enable-dependency-tracking was given.
4423 if test "${enable_dependency_tracking+set}" = set; then :
4424   enableval=$enable_dependency_tracking;
4425 fi
4426
4427 if test "x$enable_dependency_tracking" != xno; then
4428   am_depcomp="$ac_aux_dir/depcomp"
4429   AMDEPBACKSLASH='\'
4430   am__nodep='_no'
4431 fi
4432  if test "x$enable_dependency_tracking" != xno; then
4433   AMDEP_TRUE=
4434   AMDEP_FALSE='#'
4435 else
4436   AMDEP_TRUE='#'
4437   AMDEP_FALSE=
4438 fi
4439
4440
4441
4442 depcc="$CC"   am_compiler_list=
4443
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4445 $as_echo_n "checking dependency style of $depcc... " >&6; }
4446 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4447   $as_echo_n "(cached) " >&6
4448 else
4449   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4450   # We make a subdir and do the tests there.  Otherwise we can end up
4451   # making bogus files that we don't know about and never remove.  For
4452   # instance it was reported that on HP-UX the gcc test will end up
4453   # making a dummy file named `D' -- because `-MD' means `put the output
4454   # in D'.
4455   rm -rf conftest.dir
4456   mkdir conftest.dir
4457   # Copy depcomp to subdir because otherwise we won't find it if we're
4458   # using a relative directory.
4459   cp "$am_depcomp" conftest.dir
4460   cd conftest.dir
4461   # We will build objects and dependencies in a subdirectory because
4462   # it helps to detect inapplicable dependency modes.  For instance
4463   # both Tru64's cc and ICC support -MD to output dependencies as a
4464   # side effect of compilation, but ICC will put the dependencies in
4465   # the current directory while Tru64 will put them in the object
4466   # directory.
4467   mkdir sub
4468
4469   am_cv_CC_dependencies_compiler_type=none
4470   if test "$am_compiler_list" = ""; then
4471      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4472   fi
4473   am__universal=false
4474   case " $depcc " in #(
4475      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4476      esac
4477
4478   for depmode in $am_compiler_list; do
4479     # Setup a source with many dependencies, because some compilers
4480     # like to wrap large dependency lists on column 80 (with \), and
4481     # we should not choose a depcomp mode which is confused by this.
4482     #
4483     # We need to recreate these files for each test, as the compiler may
4484     # overwrite some of them when testing with obscure command lines.
4485     # This happens at least with the AIX C compiler.
4486     : > sub/conftest.c
4487     for i in 1 2 3 4 5 6; do
4488       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4489       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4490       # Solaris 8's {/usr,}/bin/sh.
4491       touch sub/conftst$i.h
4492     done
4493     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4494
4495     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4496     # mode.  It turns out that the SunPro C++ compiler does not properly
4497     # handle `-M -o', and we need to detect this.  Also, some Intel
4498     # versions had trouble with output in subdirs
4499     am__obj=sub/conftest.${OBJEXT-o}
4500     am__minus_obj="-o $am__obj"
4501     case $depmode in
4502     gcc)
4503       # This depmode causes a compiler race in universal mode.
4504       test "$am__universal" = false || continue
4505       ;;
4506     nosideeffect)
4507       # after this tag, mechanisms are not by side-effect, so they'll
4508       # only be used when explicitly requested
4509       if test "x$enable_dependency_tracking" = xyes; then
4510         continue
4511       else
4512         break
4513       fi
4514       ;;
4515     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4516       # This compiler won't grok `-c -o', but also, the minuso test has
4517       # not run yet.  These depmodes are late enough in the game, and
4518       # so weak that their functioning should not be impacted.
4519       am__obj=conftest.${OBJEXT-o}
4520       am__minus_obj=
4521       ;;
4522     none) break ;;
4523     esac
4524     if depmode=$depmode \
4525        source=sub/conftest.c object=$am__obj \
4526        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4527        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4528          >/dev/null 2>conftest.err &&
4529        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4530        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4531        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4532        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4533       # icc doesn't choke on unknown options, it will just issue warnings
4534       # or remarks (even with -Werror).  So we grep stderr for any message
4535       # that says an option was ignored or not supported.
4536       # When given -MP, icc 7.0 and 7.1 complain thusly:
4537       #   icc: Command line warning: ignoring option '-M'; no argument required
4538       # The diagnosis changed in icc 8.0:
4539       #   icc: Command line remark: option '-MP' not supported
4540       if (grep 'ignoring option' conftest.err ||
4541           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4542         am_cv_CC_dependencies_compiler_type=$depmode
4543         break
4544       fi
4545     fi
4546   done
4547
4548   cd ..
4549   rm -rf conftest.dir
4550 else
4551   am_cv_CC_dependencies_compiler_type=none
4552 fi
4553
4554 fi
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4556 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4557 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4558
4559  if
4560   test "x$enable_dependency_tracking" != xno \
4561   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4562   am__fastdepCC_TRUE=
4563   am__fastdepCC_FALSE='#'
4564 else
4565   am__fastdepCC_TRUE='#'
4566   am__fastdepCC_FALSE=
4567 fi
4568
4569
4570 ac_ext=c
4571 ac_cpp='$CPP $CPPFLAGS'
4572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4576 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4577 # On Suns, sometimes $CPP names a directory.
4578 if test -n "$CPP" && test -d "$CPP"; then
4579   CPP=
4580 fi
4581 if test -z "$CPP"; then
4582   if ${ac_cv_prog_CPP+:} false; then :
4583   $as_echo_n "(cached) " >&6
4584 else
4585       # Double quotes because CPP needs to be expanded
4586     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4587     do
4588       ac_preproc_ok=false
4589 for ac_c_preproc_warn_flag in '' yes
4590 do
4591   # Use a header file that comes with gcc, so configuring glibc
4592   # with a fresh cross-compiler works.
4593   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4594   # <limits.h> exists even on freestanding compilers.
4595   # On the NeXT, cc -E runs the code through the compiler's parser,
4596   # not just through cpp. "Syntax error" is here to catch this case.
4597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h.  */
4599 #ifdef __STDC__
4600 # include <limits.h>
4601 #else
4602 # include <assert.h>
4603 #endif
4604                      Syntax error
4605 _ACEOF
4606 if ac_fn_c_try_cpp "$LINENO"; then :
4607
4608 else
4609   # Broken: fails on valid input.
4610 continue
4611 fi
4612 rm -f conftest.err conftest.i conftest.$ac_ext
4613
4614   # OK, works on sane cases.  Now check whether nonexistent headers
4615   # can be detected and how.
4616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617 /* end confdefs.h.  */
4618 #include <ac_nonexistent.h>
4619 _ACEOF
4620 if ac_fn_c_try_cpp "$LINENO"; then :
4621   # Broken: success on invalid input.
4622 continue
4623 else
4624   # Passes both tests.
4625 ac_preproc_ok=:
4626 break
4627 fi
4628 rm -f conftest.err conftest.i conftest.$ac_ext
4629
4630 done
4631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4632 rm -f conftest.i conftest.err conftest.$ac_ext
4633 if $ac_preproc_ok; then :
4634   break
4635 fi
4636
4637     done
4638     ac_cv_prog_CPP=$CPP
4639
4640 fi
4641   CPP=$ac_cv_prog_CPP
4642 else
4643   ac_cv_prog_CPP=$CPP
4644 fi
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4646 $as_echo "$CPP" >&6; }
4647 ac_preproc_ok=false
4648 for ac_c_preproc_warn_flag in '' yes
4649 do
4650   # Use a header file that comes with gcc, so configuring glibc
4651   # with a fresh cross-compiler works.
4652   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4653   # <limits.h> exists even on freestanding compilers.
4654   # On the NeXT, cc -E runs the code through the compiler's parser,
4655   # not just through cpp. "Syntax error" is here to catch this case.
4656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h.  */
4658 #ifdef __STDC__
4659 # include <limits.h>
4660 #else
4661 # include <assert.h>
4662 #endif
4663                      Syntax error
4664 _ACEOF
4665 if ac_fn_c_try_cpp "$LINENO"; then :
4666
4667 else
4668   # Broken: fails on valid input.
4669 continue
4670 fi
4671 rm -f conftest.err conftest.i conftest.$ac_ext
4672
4673   # OK, works on sane cases.  Now check whether nonexistent headers
4674   # can be detected and how.
4675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677 #include <ac_nonexistent.h>
4678 _ACEOF
4679 if ac_fn_c_try_cpp "$LINENO"; then :
4680   # Broken: success on invalid input.
4681 continue
4682 else
4683   # Passes both tests.
4684 ac_preproc_ok=:
4685 break
4686 fi
4687 rm -f conftest.err conftest.i conftest.$ac_ext
4688
4689 done
4690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4691 rm -f conftest.i conftest.err conftest.$ac_ext
4692 if $ac_preproc_ok; then :
4693
4694 else
4695   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4697 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4698 See \`config.log' for more details" "$LINENO" 5; }
4699 fi
4700
4701 ac_ext=c
4702 ac_cpp='$CPP $CPPFLAGS'
4703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4706
4707
4708  if test "$GCC" = "yes"; then
4709   HAVE_GCC_TRUE=
4710   HAVE_GCC_FALSE='#'
4711 else
4712   HAVE_GCC_TRUE='#'
4713   HAVE_GCC_FALSE=
4714 fi
4715
4716
4717 # Make sure we can run config.sub.
4718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4719   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4722 $as_echo_n "checking build system type... " >&6; }
4723 if ${ac_cv_build+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   ac_build_alias=$build_alias
4727 test "x$ac_build_alias" = x &&
4728   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4729 test "x$ac_build_alias" = x &&
4730   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4732   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4733
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4736 $as_echo "$ac_cv_build" >&6; }
4737 case $ac_cv_build in
4738 *-*-*) ;;
4739 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4740 esac
4741 build=$ac_cv_build
4742 ac_save_IFS=$IFS; IFS='-'
4743 set x $ac_cv_build
4744 shift
4745 build_cpu=$1
4746 build_vendor=$2
4747 shift; shift
4748 # Remember, the first character of IFS is used to create $*,
4749 # except with old shells:
4750 build_os=$*
4751 IFS=$ac_save_IFS
4752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4756 $as_echo_n "checking host system type... " >&6; }
4757 if ${ac_cv_host+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test "x$host_alias" = x; then
4761   ac_cv_host=$ac_cv_build
4762 else
4763   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4764     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4765 fi
4766
4767 fi
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4769 $as_echo "$ac_cv_host" >&6; }
4770 case $ac_cv_host in
4771 *-*-*) ;;
4772 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4773 esac
4774 host=$ac_cv_host
4775 ac_save_IFS=$IFS; IFS='-'
4776 set x $ac_cv_host
4777 shift
4778 host_cpu=$1
4779 host_vendor=$2
4780 shift; shift
4781 # Remember, the first character of IFS is used to create $*,
4782 # except with old shells:
4783 host_os=$*
4784 IFS=$ac_save_IFS
4785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4786
4787
4788
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the BeOS" >&5
4790 $as_echo_n "checking for the BeOS... " >&6; }
4791 case $host in
4792   *-*-beos*)
4793     glib_native_beos="yes"
4794     ;;
4795   *)
4796     glib_native_beos="no"
4797     ;;
4798 esac
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_beos" >&5
4800 $as_echo "$glib_native_beos" >&6; }
4801
4802
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Win32" >&5
4804 $as_echo_n "checking for Win32... " >&6; }
4805 LIB_EXE_MACHINE_FLAG=X86
4806 case "$host" in
4807   *-*-mingw*)
4808     glib_native_win32=yes
4809     glib_pid_type='void *'
4810     glib_cv_stack_grows=no
4811     # Unfortunately the mingw implementations of C99-style snprintf and vsnprintf
4812     # don't seem to be quite good enough, at least not in mingw-runtime-3.14.
4813     # (Sorry, I don't know exactly what is the problem, but it is related to
4814     # floating point formatting and decimal point vs. comma.)
4815     # The simple tests in AC_FUNC_VSNPRINTF_C99 and AC_FUNC_SNPRINTF_C99 aren't
4816     # rigorous enough to notice, though.
4817     # So preset the autoconf cache variables.
4818     ac_cv_func_vsnprintf_c99=no
4819     ac_cv_func_snprintf_c99=no
4820     case "$host" in
4821     x86_64-*-*)
4822       LIB_EXE_MACHINE_FLAG=X64
4823       ;;
4824     esac
4825     ;;
4826   *)
4827     glib_native_win32=no
4828     glib_pid_type=int
4829     ;;
4830 esac
4831 case $host in
4832   *-*-linux*)
4833     glib_os_linux=yes
4834     ;;
4835 esac
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_native_win32" >&5
4838 $as_echo "$glib_native_win32" >&6; }
4839
4840
4841
4842 glib_have_carbon=no
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Carbon support" >&5
4844 $as_echo_n "checking for Mac OS X Carbon support... " >&6; }
4845
4846
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h.  */
4849
4850 #include <Carbon/Carbon.h>
4851 #include <CoreServices/CoreServices.h>
4852
4853 _ACEOF
4854 if ac_fn_c_try_cpp "$LINENO"; then :
4855   glib_have_carbon=yes
4856 fi
4857 rm -f conftest.err conftest.i conftest.$ac_ext
4858
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_have_carbon" >&5
4860 $as_echo "$glib_have_carbon" >&6; }
4861
4862  if test "$glib_native_win32" = "yes"; then
4863   OS_WIN32_TRUE=
4864   OS_WIN32_FALSE='#'
4865 else
4866   OS_WIN32_TRUE='#'
4867   OS_WIN32_FALSE=
4868 fi
4869
4870  if test "$LIB_EXE_MACHINE_FLAG" = "X64"; then
4871   OS_WIN32_X64_TRUE=
4872   OS_WIN32_X64_FALSE='#'
4873 else
4874   OS_WIN32_X64_TRUE='#'
4875   OS_WIN32_X64_FALSE=
4876 fi
4877
4878  if test "$glib_native_win32" != "yes"; then
4879   OS_UNIX_TRUE=
4880   OS_UNIX_FALSE='#'
4881 else
4882   OS_UNIX_TRUE='#'
4883   OS_UNIX_FALSE=
4884 fi
4885
4886  if test "$glib_os_linux" = "yes"; then
4887   OS_LINUX_TRUE=
4888   OS_LINUX_FALSE='#'
4889 else
4890   OS_LINUX_TRUE='#'
4891   OS_LINUX_FALSE=
4892 fi
4893
4894  if test "$glib_have_carbon" = "yes"; then
4895   OS_CARBON_TRUE=
4896   OS_CARBON_FALSE='#'
4897 else
4898   OS_CARBON_TRUE='#'
4899   OS_CARBON_FALSE=
4900 fi
4901
4902
4903 if test "$glib_native_win32" = "yes"; then
4904   if test -n "$ac_tool_prefix"; then
4905   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4906 set dummy ${ac_tool_prefix}windres; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if ${ac_cv_prog_WINDRES+:} false; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   if test -n "$WINDRES"; then
4913   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4914 else
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH
4917 do
4918   IFS=$as_save_IFS
4919   test -z "$as_dir" && as_dir=.
4920     for ac_exec_ext in '' $ac_executable_extensions; do
4921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4924     break 2
4925   fi
4926 done
4927   done
4928 IFS=$as_save_IFS
4929
4930 fi
4931 fi
4932 WINDRES=$ac_cv_prog_WINDRES
4933 if test -n "$WINDRES"; then
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4935 $as_echo "$WINDRES" >&6; }
4936 else
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940
4941
4942 fi
4943 if test -z "$ac_cv_prog_WINDRES"; then
4944   ac_ct_WINDRES=$WINDRES
4945   # Extract the first word of "windres", so it can be a program name with args.
4946 set dummy windres; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
4950   $as_echo_n "(cached) " >&6
4951 else
4952   if test -n "$ac_ct_WINDRES"; then
4953   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958   IFS=$as_save_IFS
4959   test -z "$as_dir" && as_dir=.
4960     for ac_exec_ext in '' $ac_executable_extensions; do
4961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4962     ac_cv_prog_ac_ct_WINDRES="windres"
4963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964     break 2
4965   fi
4966 done
4967   done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4973 if test -n "$ac_ct_WINDRES"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
4975 $as_echo "$ac_ct_WINDRES" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981   if test "x$ac_ct_WINDRES" = x; then
4982     WINDRES="no"
4983   else
4984     case $cross_compiling:$ac_tool_warned in
4985 yes:)
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4988 ac_tool_warned=yes ;;
4989 esac
4990     WINDRES=$ac_ct_WINDRES
4991   fi
4992 else
4993   WINDRES="$ac_cv_prog_WINDRES"
4994 fi
4995
4996   if test "$WINDRES" = no; then
4997     as_fn_error $? "*** Could not find an implementation of windres in your PATH." "$LINENO" 5
4998   fi
4999   if test -n "$ac_tool_prefix"; then
5000   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5001 set dummy ${ac_tool_prefix}nm; ac_word=$2
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 $as_echo_n "checking for $ac_word... " >&6; }
5004 if ${ac_cv_prog_NM+:} false; then :
5005   $as_echo_n "(cached) " >&6
5006 else
5007   if test -n "$NM"; then
5008   ac_cv_prog_NM="$NM" # Let the user override the test.
5009 else
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013   IFS=$as_save_IFS
5014   test -z "$as_dir" && as_dir=.
5015     for ac_exec_ext in '' $ac_executable_extensions; do
5016   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017     ac_cv_prog_NM="${ac_tool_prefix}nm"
5018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019     break 2
5020   fi
5021 done
5022   done
5023 IFS=$as_save_IFS
5024
5025 fi
5026 fi
5027 NM=$ac_cv_prog_NM
5028 if test -n "$NM"; then
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
5030 $as_echo "$NM" >&6; }
5031 else
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5033 $as_echo "no" >&6; }
5034 fi
5035
5036
5037 fi
5038 if test -z "$ac_cv_prog_NM"; then
5039   ac_ct_NM=$NM
5040   # Extract the first word of "nm", so it can be a program name with args.
5041 set dummy nm; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_prog_ac_ct_NM+:} false; then :
5045   $as_echo_n "(cached) " >&6
5046 else
5047   if test -n "$ac_ct_NM"; then
5048   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053   IFS=$as_save_IFS
5054   test -z "$as_dir" && as_dir=.
5055     for ac_exec_ext in '' $ac_executable_extensions; do
5056   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057     ac_cv_prog_ac_ct_NM="nm"
5058     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5059     break 2
5060   fi
5061 done
5062   done
5063 IFS=$as_save_IFS
5064
5065 fi
5066 fi
5067 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5068 if test -n "$ac_ct_NM"; then
5069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
5070 $as_echo "$ac_ct_NM" >&6; }
5071 else
5072   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5073 $as_echo "no" >&6; }
5074 fi
5075
5076   if test "x$ac_ct_NM" = x; then
5077     NM="no"
5078   else
5079     case $cross_compiling:$ac_tool_warned in
5080 yes:)
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5082 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5083 ac_tool_warned=yes ;;
5084 esac
5085     NM=$ac_ct_NM
5086   fi
5087 else
5088   NM="$ac_cv_prog_NM"
5089 fi
5090
5091   if test "$NM" = no; then
5092     as_fn_error $? "*** Could not find an implementation of nm in your PATH." "$LINENO" 5
5093   fi
5094   if test -n "$ac_tool_prefix"; then
5095   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_RANLIB+:} false; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   if test -n "$RANLIB"; then
5103   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5107 do
5108   IFS=$as_save_IFS
5109   test -z "$as_dir" && as_dir=.
5110     for ac_exec_ext in '' $ac_executable_extensions; do
5111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114     break 2
5115   fi
5116 done
5117   done
5118 IFS=$as_save_IFS
5119
5120 fi
5121 fi
5122 RANLIB=$ac_cv_prog_RANLIB
5123 if test -n "$RANLIB"; then
5124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5125 $as_echo "$RANLIB" >&6; }
5126 else
5127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5129 fi
5130
5131
5132 fi
5133 if test -z "$ac_cv_prog_RANLIB"; then
5134   ac_ct_RANLIB=$RANLIB
5135   # Extract the first word of "ranlib", so it can be a program name with args.
5136 set dummy ranlib; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5140   $as_echo_n "(cached) " >&6
5141 else
5142   if test -n "$ac_ct_RANLIB"; then
5143   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5147 do
5148   IFS=$as_save_IFS
5149   test -z "$as_dir" && as_dir=.
5150     for ac_exec_ext in '' $ac_executable_extensions; do
5151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152     ac_cv_prog_ac_ct_RANLIB="ranlib"
5153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154     break 2
5155   fi
5156 done
5157   done
5158 IFS=$as_save_IFS
5159
5160 fi
5161 fi
5162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5163 if test -n "$ac_ct_RANLIB"; then
5164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5165 $as_echo "$ac_ct_RANLIB" >&6; }
5166 else
5167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5169 fi
5170
5171   if test "x$ac_ct_RANLIB" = x; then
5172     RANLIB=":"
5173   else
5174     case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5178 ac_tool_warned=yes ;;
5179 esac
5180     RANLIB=$ac_ct_RANLIB
5181   fi
5182 else
5183   RANLIB="$ac_cv_prog_RANLIB"
5184 fi
5185
5186   # Extract the first word of "lib.exe", so it can be a program name with args.
5187 set dummy lib.exe; ac_word=$2
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 $as_echo_n "checking for $ac_word... " >&6; }
5190 if ${ac_cv_prog_ms_librarian+:} false; then :
5191   $as_echo_n "(cached) " >&6
5192 else
5193   if test -n "$ms_librarian"; then
5194   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
5195 else
5196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 for as_dir in $PATH
5198 do
5199   IFS=$as_save_IFS
5200   test -z "$as_dir" && as_dir=.
5201     for ac_exec_ext in '' $ac_executable_extensions; do
5202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5203     ac_cv_prog_ms_librarian="yes"
5204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205     break 2
5206   fi
5207 done
5208   done
5209 IFS=$as_save_IFS
5210
5211   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
5212 fi
5213 fi
5214 ms_librarian=$ac_cv_prog_ms_librarian
5215 if test -n "$ms_librarian"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
5217 $as_echo "$ms_librarian" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5220 $as_echo "no" >&6; }
5221 fi
5222
5223
5224 fi
5225  if test x$ms_librarian = xyes; then
5226   MS_LIB_AVAILABLE_TRUE=
5227   MS_LIB_AVAILABLE_FALSE='#'
5228 else
5229   MS_LIB_AVAILABLE_TRUE='#'
5230   MS_LIB_AVAILABLE_FALSE=
5231 fi
5232
5233
5234 if test "$glib_native_win32" != yes; then
5235     # libtool option to control which symbols are exported
5236     # right now, symbols starting with _ are not exported
5237     LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^g.*"'
5238 else
5239     # We currently use .def files on Windows
5240     LIBTOOL_EXPORT_OPTIONS=
5241 fi
5242
5243
5244 if test "x$glib_have_carbon" = "xyes"; then
5245
5246 $as_echo "#define HAVE_CARBON 1" >>confdefs.h
5247
5248   LDFLAGS="$LDFLAGS -framework Carbon"
5249 fi
5250
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5252 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5253 if ${ac_cv_path_GREP+:} false; then :
5254   $as_echo_n "(cached) " >&6
5255 else
5256   if test -z "$GREP"; then
5257   ac_path_GREP_found=false
5258   # Loop through the user's path and test for each of PROGNAME-LIST
5259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5261 do
5262   IFS=$as_save_IFS
5263   test -z "$as_dir" && as_dir=.
5264     for ac_prog in grep ggrep; do
5265     for ac_exec_ext in '' $ac_executable_extensions; do
5266       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5267       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5268 # Check for GNU ac_path_GREP and select it if it is found.
5269   # Check for GNU $ac_path_GREP
5270 case `"$ac_path_GREP" --version 2>&1` in
5271 *GNU*)
5272   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5273 *)
5274   ac_count=0
5275   $as_echo_n 0123456789 >"conftest.in"
5276   while :
5277   do
5278     cat "conftest.in" "conftest.in" >"conftest.tmp"
5279     mv "conftest.tmp" "conftest.in"
5280     cp "conftest.in" "conftest.nl"
5281     $as_echo 'GREP' >> "conftest.nl"
5282     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284     as_fn_arith $ac_count + 1 && ac_count=$as_val
5285     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5286       # Best one so far, save it but keep looking for a better one
5287       ac_cv_path_GREP="$ac_path_GREP"
5288       ac_path_GREP_max=$ac_count
5289     fi
5290     # 10*(2^10) chars as input seems more than enough
5291     test $ac_count -gt 10 && break
5292   done
5293   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5295
5296       $ac_path_GREP_found && break 3
5297     done
5298   done
5299   done
5300 IFS=$as_save_IFS
5301   if test -z "$ac_cv_path_GREP"; then
5302     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5303   fi
5304 else
5305   ac_cv_path_GREP=$GREP
5306 fi
5307
5308 fi
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5310 $as_echo "$ac_cv_path_GREP" >&6; }
5311  GREP="$ac_cv_path_GREP"
5312
5313
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5315 $as_echo_n "checking for egrep... " >&6; }
5316 if ${ac_cv_path_EGREP+:} false; then :
5317   $as_echo_n "(cached) " >&6
5318 else
5319   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5320    then ac_cv_path_EGREP="$GREP -E"
5321    else
5322      if test -z "$EGREP"; then
5323   ac_path_EGREP_found=false
5324   # Loop through the user's path and test for each of PROGNAME-LIST
5325   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5327 do
5328   IFS=$as_save_IFS
5329   test -z "$as_dir" && as_dir=.
5330     for ac_prog in egrep; do
5331     for ac_exec_ext in '' $ac_executable_extensions; do
5332       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5333       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5334 # Check for GNU ac_path_EGREP and select it if it is found.
5335   # Check for GNU $ac_path_EGREP
5336 case `"$ac_path_EGREP" --version 2>&1` in
5337 *GNU*)
5338   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5339 *)
5340   ac_count=0
5341   $as_echo_n 0123456789 >"conftest.in"
5342   while :
5343   do
5344     cat "conftest.in" "conftest.in" >"conftest.tmp"
5345     mv "conftest.tmp" "conftest.in"
5346     cp "conftest.in" "conftest.nl"
5347     $as_echo 'EGREP' >> "conftest.nl"
5348     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5349     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5350     as_fn_arith $ac_count + 1 && ac_count=$as_val
5351     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5352       # Best one so far, save it but keep looking for a better one
5353       ac_cv_path_EGREP="$ac_path_EGREP"
5354       ac_path_EGREP_max=$ac_count
5355     fi
5356     # 10*(2^10) chars as input seems more than enough
5357     test $ac_count -gt 10 && break
5358   done
5359   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5360 esac
5361
5362       $ac_path_EGREP_found && break 3
5363     done
5364   done
5365   done
5366 IFS=$as_save_IFS
5367   if test -z "$ac_cv_path_EGREP"; then
5368     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5369   fi
5370 else
5371   ac_cv_path_EGREP=$EGREP
5372 fi
5373
5374    fi
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5377 $as_echo "$ac_cv_path_EGREP" >&6; }
5378  EGREP="$ac_cv_path_EGREP"
5379
5380
5381
5382     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5383 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5384 if ${ac_cv_gnu_library_2_1+:} false; then :
5385   $as_echo_n "(cached) " >&6
5386 else
5387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5388 /* end confdefs.h.  */
5389
5390 #include <features.h>
5391 #ifdef __GNU_LIBRARY__
5392  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5393   Lucky GNU user
5394  #endif
5395 #endif
5396
5397 _ACEOF
5398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5399   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5400   ac_cv_gnu_library_2_1=yes
5401 else
5402   ac_cv_gnu_library_2_1=no
5403 fi
5404 rm -f conftest*
5405
5406
5407
5408 fi
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5410 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
5411
5412     GLIBC21="$ac_cv_gnu_library_2_1"
5413
5414
5415 if test "x$GLIBC21" = "xyes"; then
5416
5417 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5418
5419 fi
5420
5421 # Check whether --enable-debug was given.
5422 if test "${enable_debug+set}" = set; then :
5423   enableval=$enable_debug;
5424 else
5425   enable_debug=yes
5426 fi
5427
5428
5429 # Check whether --enable-gc_friendly was given.
5430 if test "${enable_gc_friendly+set}" = set; then :
5431   enableval=$enable_gc_friendly;
5432 else
5433   enable_gc_friendly=no
5434 fi
5435
5436 # Check whether --enable-mem_pools was given.
5437 if test "${enable_mem_pools+set}" = set; then :
5438   enableval=$enable_mem_pools;
5439 else
5440   disable_mem_pools=no
5441 fi
5442
5443 # Check whether --enable-rebuilds was given.
5444 if test "${enable_rebuilds+set}" = set; then :
5445   enableval=$enable_rebuilds;
5446 else
5447   enable_rebuilds=yes
5448 fi
5449
5450
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable garbage collector friendliness" >&5
5452 $as_echo_n "checking whether to enable garbage collector friendliness... " >&6; }
5453 if test "x$enable_gc_friendly" = "xyes"; then
5454
5455 $as_echo "#define ENABLE_GC_FRIENDLY_DEFAULT 1" >>confdefs.h
5456
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459 else
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable memory pools" >&5
5465 $as_echo_n "checking whether to disable memory pools... " >&6; }
5466 if test "x$disable_mem_pools" = "xno"; then
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 else
5470
5471 $as_echo "#define DISABLE_MEM_POOLS 1" >>confdefs.h
5472
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5474 $as_echo "yes" >&6; }
5475 fi
5476
5477
5478 # Check whether --with-runtime-libdir was given.
5479 if test "${with_runtime_libdir+set}" = set; then :
5480   withval=$with_runtime_libdir;
5481 else
5482   with_runtime_libdir=""
5483 fi
5484
5485 GLIB_RUNTIME_LIBDIR="$with_runtime_libdir"
5486 ABS_GLIB_RUNTIME_LIBDIR="`readlink -f $libdir/$with_runtime_libdir`"
5487
5488
5489  if test "x$with_runtime_libdir" != "x"; then
5490   HAVE_GLIB_RUNTIME_LIBDIR_TRUE=
5491   HAVE_GLIB_RUNTIME_LIBDIR_FALSE='#'
5492 else
5493   HAVE_GLIB_RUNTIME_LIBDIR_TRUE='#'
5494   HAVE_GLIB_RUNTIME_LIBDIR_FALSE=
5495 fi
5496
5497
5498 if test -n "$ac_tool_prefix"; then
5499   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5500   do
5501     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5504 $as_echo_n "checking for $ac_word... " >&6; }
5505 if ${ac_cv_prog_CXX+:} false; then :
5506   $as_echo_n "(cached) " >&6
5507 else
5508   if test -n "$CXX"; then
5509   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5510 else
5511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516     for ac_exec_ext in '' $ac_executable_extensions; do
5517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5518     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523   done
5524 IFS=$as_save_IFS
5525
5526 fi
5527 fi
5528 CXX=$ac_cv_prog_CXX
5529 if test -n "$CXX"; then
5530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5531 $as_echo "$CXX" >&6; }
5532 else
5533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5534 $as_echo "no" >&6; }
5535 fi
5536
5537
5538     test -n "$CXX" && break
5539   done
5540 fi
5541 if test -z "$CXX"; then
5542   ac_ct_CXX=$CXX
5543   for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
5544 do
5545   # Extract the first word of "$ac_prog", so it can be a program name with args.
5546 set dummy $ac_prog; ac_word=$2
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5548 $as_echo_n "checking for $ac_word... " >&6; }
5549 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5550   $as_echo_n "(cached) " >&6
5551 else
5552   if test -n "$ac_ct_CXX"; then
5553   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5554 else
5555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 for as_dir in $PATH
5557 do
5558   IFS=$as_save_IFS
5559   test -z "$as_dir" && as_dir=.
5560     for ac_exec_ext in '' $ac_executable_extensions; do
5561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5562     ac_cv_prog_ac_ct_CXX="$ac_prog"
5563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5564     break 2
5565   fi
5566 done
5567   done
5568 IFS=$as_save_IFS
5569
5570 fi
5571 fi
5572 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5573 if test -n "$ac_ct_CXX"; then
5574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5575 $as_echo "$ac_ct_CXX" >&6; }
5576 else
5577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5578 $as_echo "no" >&6; }
5579 fi
5580
5581
5582   test -n "$ac_ct_CXX" && break
5583 done
5584
5585   if test "x$ac_ct_CXX" = x; then
5586     CXX="gcc"
5587   else
5588     case $cross_compiling:$ac_tool_warned in
5589 yes:)
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592 ac_tool_warned=yes ;;
5593 esac
5594     CXX=$ac_ct_CXX
5595   fi
5596 fi
5597
5598
5599 ac_ext=cpp
5600 ac_cpp='$CXXCPP $CPPFLAGS'
5601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5604
5605 ac_ext=cpp
5606 ac_cpp='$CXXCPP $CPPFLAGS'
5607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5610 if test -z "$CXX"; then
5611   if test -n "$CCC"; then
5612     CXX=$CCC
5613   else
5614     if test -n "$ac_tool_prefix"; then
5615   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5616   do
5617     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_CXX+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if test -n "$CXX"; then
5625   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5634     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639   done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 CXX=$ac_cv_prog_CXX
5645 if test -n "$CXX"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5647 $as_echo "$CXX" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653
5654     test -n "$CXX" && break
5655   done
5656 fi
5657 if test -z "$CXX"; then
5658   ac_ct_CXX=$CXX
5659   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5660 do
5661   # Extract the first word of "$ac_prog", so it can be a program name with args.
5662 set dummy $ac_prog; ac_word=$2
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5664 $as_echo_n "checking for $ac_word... " >&6; }
5665 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5666   $as_echo_n "(cached) " >&6
5667 else
5668   if test -n "$ac_ct_CXX"; then
5669   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5670 else
5671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5672 for as_dir in $PATH
5673 do
5674   IFS=$as_save_IFS
5675   test -z "$as_dir" && as_dir=.
5676     for ac_exec_ext in '' $ac_executable_extensions; do
5677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5678     ac_cv_prog_ac_ct_CXX="$ac_prog"
5679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5680     break 2
5681   fi
5682 done
5683   done
5684 IFS=$as_save_IFS
5685
5686 fi
5687 fi
5688 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5689 if test -n "$ac_ct_CXX"; then
5690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5691 $as_echo "$ac_ct_CXX" >&6; }
5692 else
5693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5695 fi
5696
5697
5698   test -n "$ac_ct_CXX" && break
5699 done
5700
5701   if test "x$ac_ct_CXX" = x; then
5702     CXX="g++"
5703   else
5704     case $cross_compiling:$ac_tool_warned in
5705 yes:)
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5708 ac_tool_warned=yes ;;
5709 esac
5710     CXX=$ac_ct_CXX
5711   fi
5712 fi
5713
5714   fi
5715 fi
5716 # Provide some information about the compiler.
5717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5718 set X $ac_compile
5719 ac_compiler=$2
5720 for ac_option in --version -v -V -qversion; do
5721   { { ac_try="$ac_compiler $ac_option >&5"
5722 case "(($ac_try" in
5723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724   *) ac_try_echo=$ac_try;;
5725 esac
5726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5727 $as_echo "$ac_try_echo"; } >&5
5728   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5729   ac_status=$?
5730   if test -s conftest.err; then
5731     sed '10a\
5732 ... rest of stderr output deleted ...
5733          10q' conftest.err >conftest.er1
5734     cat conftest.er1 >&5
5735   fi
5736   rm -f conftest.er1 conftest.err
5737   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5738   test $ac_status = 0; }
5739 done
5740
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5742 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5743 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5747 /* end confdefs.h.  */
5748
5749 int
5750 main ()
5751 {
5752 #ifndef __GNUC__
5753        choke me
5754 #endif
5755
5756   ;
5757   return 0;
5758 }
5759 _ACEOF
5760 if ac_fn_cxx_try_compile "$LINENO"; then :
5761   ac_compiler_gnu=yes
5762 else
5763   ac_compiler_gnu=no
5764 fi
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5767
5768 fi
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5770 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5771 if test $ac_compiler_gnu = yes; then
5772   GXX=yes
5773 else
5774   GXX=
5775 fi
5776 ac_test_CXXFLAGS=${CXXFLAGS+set}
5777 ac_save_CXXFLAGS=$CXXFLAGS
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5779 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5780 if ${ac_cv_prog_cxx_g+:} false; then :
5781   $as_echo_n "(cached) " >&6
5782 else
5783   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5784    ac_cxx_werror_flag=yes
5785    ac_cv_prog_cxx_g=no
5786    CXXFLAGS="-g"
5787    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5788 /* end confdefs.h.  */
5789
5790 int
5791 main ()
5792 {
5793
5794   ;
5795   return 0;
5796 }
5797 _ACEOF
5798 if ac_fn_cxx_try_compile "$LINENO"; then :
5799   ac_cv_prog_cxx_g=yes
5800 else
5801   CXXFLAGS=""
5802       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h.  */
5804
5805 int
5806 main ()
5807 {
5808
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 if ac_fn_cxx_try_compile "$LINENO"; then :
5814
5815 else
5816   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5817          CXXFLAGS="-g"
5818          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h.  */
5820
5821 int
5822 main ()
5823 {
5824
5825   ;
5826   return 0;
5827 }
5828 _ACEOF
5829 if ac_fn_cxx_try_compile "$LINENO"; then :
5830   ac_cv_prog_cxx_g=yes
5831 fi
5832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5833 fi
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 fi
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5837    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5838 fi
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5840 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5841 if test "$ac_test_CXXFLAGS" = set; then
5842   CXXFLAGS=$ac_save_CXXFLAGS
5843 elif test $ac_cv_prog_cxx_g = yes; then
5844   if test "$GXX" = yes; then
5845     CXXFLAGS="-g -O2"
5846   else
5847     CXXFLAGS="-g"
5848   fi
5849 else
5850   if test "$GXX" = yes; then
5851     CXXFLAGS="-O2"
5852   else
5853     CXXFLAGS=
5854   fi
5855 fi
5856 ac_ext=cpp
5857 ac_cpp='$CXXCPP $CPPFLAGS'
5858 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5859 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5860 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5861
5862 depcc="$CXX"  am_compiler_list=
5863
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5865 $as_echo_n "checking dependency style of $depcc... " >&6; }
5866 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5870   # We make a subdir and do the tests there.  Otherwise we can end up
5871   # making bogus files that we don't know about and never remove.  For
5872   # instance it was reported that on HP-UX the gcc test will end up
5873   # making a dummy file named `D' -- because `-MD' means `put the output
5874   # in D'.
5875   rm -rf conftest.dir
5876   mkdir conftest.dir
5877   # Copy depcomp to subdir because otherwise we won't find it if we're
5878   # using a relative directory.
5879   cp "$am_depcomp" conftest.dir
5880   cd conftest.dir
5881   # We will build objects and dependencies in a subdirectory because
5882   # it helps to detect inapplicable dependency modes.  For instance
5883   # both Tru64's cc and ICC support -MD to output dependencies as a
5884   # side effect of compilation, but ICC will put the dependencies in
5885   # the current directory while Tru64 will put them in the object
5886   # directory.
5887   mkdir sub
5888
5889   am_cv_CXX_dependencies_compiler_type=none
5890   if test "$am_compiler_list" = ""; then
5891      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5892   fi
5893   am__universal=false
5894   case " $depcc " in #(
5895      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5896      esac
5897
5898   for depmode in $am_compiler_list; do
5899     # Setup a source with many dependencies, because some compilers
5900     # like to wrap large dependency lists on column 80 (with \), and
5901     # we should not choose a depcomp mode which is confused by this.
5902     #
5903     # We need to recreate these files for each test, as the compiler may
5904     # overwrite some of them when testing with obscure command lines.
5905     # This happens at least with the AIX C compiler.
5906     : > sub/conftest.c
5907     for i in 1 2 3 4 5 6; do
5908       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5909       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5910       # Solaris 8's {/usr,}/bin/sh.
5911       touch sub/conftst$i.h
5912     done
5913     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5914
5915     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5916     # mode.  It turns out that the SunPro C++ compiler does not properly
5917     # handle `-M -o', and we need to detect this.  Also, some Intel
5918     # versions had trouble with output in subdirs
5919     am__obj=sub/conftest.${OBJEXT-o}
5920     am__minus_obj="-o $am__obj"
5921     case $depmode in
5922     gcc)
5923       # This depmode causes a compiler race in universal mode.
5924       test "$am__universal" = false || continue
5925       ;;
5926     nosideeffect)
5927       # after this tag, mechanisms are not by side-effect, so they'll
5928       # only be used when explicitly requested
5929       if test "x$enable_dependency_tracking" = xyes; then
5930         continue
5931       else
5932         break
5933       fi
5934       ;;
5935     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5936       # This compiler won't grok `-c -o', but also, the minuso test has
5937       # not run yet.  These depmodes are late enough in the game, and
5938       # so weak that their functioning should not be impacted.
5939       am__obj=conftest.${OBJEXT-o}
5940       am__minus_obj=
5941       ;;
5942     none) break ;;
5943     esac
5944     if depmode=$depmode \
5945        source=sub/conftest.c object=$am__obj \
5946        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5947        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5948          >/dev/null 2>conftest.err &&
5949        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5950        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5951        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5952        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5953       # icc doesn't choke on unknown options, it will just issue warnings
5954       # or remarks (even with -Werror).  So we grep stderr for any message
5955       # that says an option was ignored or not supported.
5956       # When given -MP, icc 7.0 and 7.1 complain thusly:
5957       #   icc: Command line warning: ignoring option '-M'; no argument required
5958       # The diagnosis changed in icc 8.0:
5959       #   icc: Command line remark: option '-MP' not supported
5960       if (grep 'ignoring option' conftest.err ||
5961           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5962         am_cv_CXX_dependencies_compiler_type=$depmode
5963         break
5964       fi
5965     fi
5966   done
5967
5968   cd ..
5969   rm -rf conftest.dir
5970 else
5971   am_cv_CXX_dependencies_compiler_type=none
5972 fi
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5976 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5977 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5978
5979  if
5980   test "x$enable_dependency_tracking" != xno \
5981   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5982   am__fastdepCXX_TRUE=
5983   am__fastdepCXX_FALSE='#'
5984 else
5985   am__fastdepCXX_TRUE='#'
5986   am__fastdepCXX_FALSE=
5987 fi
5988
5989
5990
5991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5992 /* end confdefs.h.  */
5993
5994 int
5995 main ()
5996 {
5997 class a { int b; } c;
5998   ;
5999   return 0;
6000 }
6001 _ACEOF
6002 if ac_fn_cxx_try_compile "$LINENO"; then :
6003
6004 else
6005   CXX=
6006 fi
6007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6008  if test "$CXX" != ""; then
6009   HAVE_CXX_TRUE=
6010   HAVE_CXX_FALSE='#'
6011 else
6012   HAVE_CXX_TRUE='#'
6013   HAVE_CXX_FALSE=
6014 fi
6015
6016 ac_ext=c
6017 ac_cpp='$CPP $CPPFLAGS'
6018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6021
6022
6023 ac_ext=c
6024 ac_cpp='$CPP $CPPFLAGS'
6025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6028 if test -n "$ac_tool_prefix"; then
6029   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6030 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if ${ac_cv_prog_CC+:} false; then :
6034   $as_echo_n "(cached) " >&6
6035 else
6036   if test -n "$CC"; then
6037   ac_cv_prog_CC="$CC" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042   IFS=$as_save_IFS
6043   test -z "$as_dir" && as_dir=.
6044     for ac_exec_ext in '' $ac_executable_extensions; do
6045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046     ac_cv_prog_CC="${ac_tool_prefix}gcc"
6047     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6048     break 2
6049   fi
6050 done
6051   done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 CC=$ac_cv_prog_CC
6057 if test -n "$CC"; then
6058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6059 $as_echo "$CC" >&6; }
6060 else
6061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 fi
6067 if test -z "$ac_cv_prog_CC"; then
6068   ac_ct_CC=$CC
6069   # Extract the first word of "gcc", so it can be a program name with args.
6070 set dummy gcc; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -n "$ac_ct_CC"; then
6077   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_ac_ct_CC="gcc"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6097 if test -n "$ac_ct_CC"; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6099 $as_echo "$ac_ct_CC" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105   if test "x$ac_ct_CC" = x; then
6106     CC=""
6107   else
6108     case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114     CC=$ac_ct_CC
6115   fi
6116 else
6117   CC="$ac_cv_prog_CC"
6118 fi
6119
6120 if test -z "$CC"; then
6121           if test -n "$ac_tool_prefix"; then
6122     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6123 set dummy ${ac_tool_prefix}cc; ac_word=$2
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6125 $as_echo_n "checking for $ac_word... " >&6; }
6126 if ${ac_cv_prog_CC+:} false; then :
6127   $as_echo_n "(cached) " >&6
6128 else
6129   if test -n "$CC"; then
6130   ac_cv_prog_CC="$CC" # Let the user override the test.
6131 else
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6134 do
6135   IFS=$as_save_IFS
6136   test -z "$as_dir" && as_dir=.
6137     for ac_exec_ext in '' $ac_executable_extensions; do
6138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6139     ac_cv_prog_CC="${ac_tool_prefix}cc"
6140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6141     break 2
6142   fi
6143 done
6144   done
6145 IFS=$as_save_IFS
6146
6147 fi
6148 fi
6149 CC=$ac_cv_prog_CC
6150 if test -n "$CC"; then
6151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6152 $as_echo "$CC" >&6; }
6153 else
6154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6155 $as_echo "no" >&6; }
6156 fi
6157
6158
6159   fi
6160 fi
6161 if test -z "$CC"; then
6162   # Extract the first word of "cc", so it can be a program name with args.
6163 set dummy cc; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_CC+:} false; then :
6167   $as_echo_n "(cached) " >&6
6168 else
6169   if test -n "$CC"; then
6170   ac_cv_prog_CC="$CC" # Let the user override the test.
6171 else
6172   ac_prog_rejected=no
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6175 do
6176   IFS=$as_save_IFS
6177   test -z "$as_dir" && as_dir=.
6178     for ac_exec_ext in '' $ac_executable_extensions; do
6179   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6181        ac_prog_rejected=yes
6182        continue
6183      fi
6184     ac_cv_prog_CC="cc"
6185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186     break 2
6187   fi
6188 done
6189   done
6190 IFS=$as_save_IFS
6191
6192 if test $ac_prog_rejected = yes; then
6193   # We found a bogon in the path, so make sure we never use it.
6194   set dummy $ac_cv_prog_CC
6195   shift
6196   if test $# != 0; then
6197     # We chose a different compiler from the bogus one.
6198     # However, it has the same basename, so the bogon will be chosen
6199     # first if we set CC to just the basename; use the full file name.
6200     shift
6201     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6202   fi
6203 fi
6204 fi
6205 fi
6206 CC=$ac_cv_prog_CC
6207 if test -n "$CC"; then
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6209 $as_echo "$CC" >&6; }
6210 else
6211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6213 fi
6214
6215
6216 fi
6217 if test -z "$CC"; then
6218   if test -n "$ac_tool_prefix"; then
6219   for ac_prog in cl.exe
6220   do
6221     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_CC+:} false; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   if test -n "$CC"; then
6229   ac_cv_prog_CC="$CC" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234   IFS=$as_save_IFS
6235   test -z "$as_dir" && as_dir=.
6236     for ac_exec_ext in '' $ac_executable_extensions; do
6237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240     break 2
6241   fi
6242 done
6243   done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 CC=$ac_cv_prog_CC
6249 if test -n "$CC"; then
6250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6251 $as_echo "$CC" >&6; }
6252 else
6253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257
6258     test -n "$CC" && break
6259   done
6260 fi
6261 if test -z "$CC"; then
6262   ac_ct_CC=$CC
6263   for ac_prog in cl.exe
6264 do
6265   # Extract the first word of "$ac_prog", so it can be a program name with args.
6266 set dummy $ac_prog; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if ${ac_cv_prog_ac_ct_CC+:} false; then :
6270   $as_echo_n "(cached) " >&6
6271 else
6272   if test -n "$ac_ct_CC"; then
6273   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6274 else
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 for as_dir in $PATH
6277 do
6278   IFS=$as_save_IFS
6279   test -z "$as_dir" && as_dir=.
6280     for ac_exec_ext in '' $ac_executable_extensions; do
6281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282     ac_cv_prog_ac_ct_CC="$ac_prog"
6283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6284     break 2
6285   fi
6286 done
6287   done
6288 IFS=$as_save_IFS
6289
6290 fi
6291 fi
6292 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6293 if test -n "$ac_ct_CC"; then
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6295 $as_echo "$ac_ct_CC" >&6; }
6296 else
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6299 fi
6300
6301
6302   test -n "$ac_ct_CC" && break
6303 done
6304
6305   if test "x$ac_ct_CC" = x; then
6306     CC=""
6307   else
6308     case $cross_compiling:$ac_tool_warned in
6309 yes:)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned=yes ;;
6313 esac
6314     CC=$ac_ct_CC
6315   fi
6316 fi
6317
6318 fi
6319
6320
6321 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6323 as_fn_error $? "no acceptable C compiler found in \$PATH
6324 See \`config.log' for more details" "$LINENO" 5; }
6325
6326 # Provide some information about the compiler.
6327 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6328 set X $ac_compile
6329 ac_compiler=$2
6330 for ac_option in --version -v -V -qversion; do
6331   { { ac_try="$ac_compiler $ac_option >&5"
6332 case "(($ac_try" in
6333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334   *) ac_try_echo=$ac_try;;
6335 esac
6336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6337 $as_echo "$ac_try_echo"; } >&5
6338   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6339   ac_status=$?
6340   if test -s conftest.err; then
6341     sed '10a\
6342 ... rest of stderr output deleted ...
6343          10q' conftest.err >conftest.er1
6344     cat conftest.er1 >&5
6345   fi
6346   rm -f conftest.er1 conftest.err
6347   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348   test $ac_status = 0; }
6349 done
6350
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6352 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6353 if ${ac_cv_c_compiler_gnu+:} false; then :
6354   $as_echo_n "(cached) " >&6
6355 else
6356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6357 /* end confdefs.h.  */
6358
6359 int
6360 main ()
6361 {
6362 #ifndef __GNUC__
6363        choke me
6364 #endif
6365
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 if ac_fn_c_try_compile "$LINENO"; then :
6371   ac_compiler_gnu=yes
6372 else
6373   ac_compiler_gnu=no
6374 fi
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6376 ac_cv_c_compiler_gnu=$ac_compiler_gnu
6377
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6380 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
6381 if test $ac_compiler_gnu = yes; then
6382   GCC=yes
6383 else
6384   GCC=
6385 fi
6386 ac_test_CFLAGS=${CFLAGS+set}
6387 ac_save_CFLAGS=$CFLAGS
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6389 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6390 if ${ac_cv_prog_cc_g+:} false; then :
6391   $as_echo_n "(cached) " >&6
6392 else
6393   ac_save_c_werror_flag=$ac_c_werror_flag
6394    ac_c_werror_flag=yes
6395    ac_cv_prog_cc_g=no
6396    CFLAGS="-g"
6397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6398 /* end confdefs.h.  */
6399
6400 int
6401 main ()
6402 {
6403
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 if ac_fn_c_try_compile "$LINENO"; then :
6409   ac_cv_prog_cc_g=yes
6410 else
6411   CFLAGS=""
6412       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h.  */
6414
6415 int
6416 main ()
6417 {
6418
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 if ac_fn_c_try_compile "$LINENO"; then :
6424
6425 else
6426   ac_c_werror_flag=$ac_save_c_werror_flag
6427          CFLAGS="-g"
6428          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6429 /* end confdefs.h.  */
6430
6431 int
6432 main ()
6433 {
6434
6435   ;
6436   return 0;
6437 }
6438 _ACEOF
6439 if ac_fn_c_try_compile "$LINENO"; then :
6440   ac_cv_prog_cc_g=yes
6441 fi
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 fi
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6445 fi
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447    ac_c_werror_flag=$ac_save_c_werror_flag
6448 fi
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6450 $as_echo "$ac_cv_prog_cc_g" >&6; }
6451 if test "$ac_test_CFLAGS" = set; then
6452   CFLAGS=$ac_save_CFLAGS
6453 elif test $ac_cv_prog_cc_g = yes; then
6454   if test "$GCC" = yes; then
6455     CFLAGS="-g -O2"
6456   else
6457     CFLAGS="-g"
6458   fi
6459 else
6460   if test "$GCC" = yes; then
6461     CFLAGS="-O2"
6462   else
6463     CFLAGS=
6464   fi
6465 fi
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6467 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6468 if ${ac_cv_prog_cc_c89+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471   ac_cv_prog_cc_c89=no
6472 ac_save_CC=$CC
6473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 /* end confdefs.h.  */
6475 #include <stdarg.h>
6476 #include <stdio.h>
6477 #include <sys/types.h>
6478 #include <sys/stat.h>
6479 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6480 struct buf { int x; };
6481 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6482 static char *e (p, i)
6483      char **p;
6484      int i;
6485 {
6486   return p[i];
6487 }
6488 static char *f (char * (*g) (char **, int), char **p, ...)
6489 {
6490   char *s;
6491   va_list v;
6492   va_start (v,p);
6493   s = g (p, va_arg (v,int));
6494   va_end (v);
6495   return s;
6496 }
6497
6498 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6499    function prototypes and stuff, but not '\xHH' hex character constants.
6500    These don't provoke an error unfortunately, instead are silently treated
6501    as 'x'.  The following induces an error, until -std is added to get
6502    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6503    array size at least.  It's necessary to write '\x00'==0 to get something
6504    that's true only with -std.  */
6505 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6506
6507 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6508    inside strings and character constants.  */
6509 #define FOO(x) 'x'
6510 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6511
6512 int test (int i, double x);
6513 struct s1 {int (*f) (int a);};
6514 struct s2 {int (*f) (double a);};
6515 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6516 int argc;
6517 char **argv;
6518 int
6519 main ()
6520 {
6521 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6522   ;
6523   return 0;
6524 }
6525 _ACEOF
6526 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6527         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6528 do
6529   CC="$ac_save_CC $ac_arg"
6530   if ac_fn_c_try_compile "$LINENO"; then :
6531   ac_cv_prog_cc_c89=$ac_arg
6532 fi
6533 rm -f core conftest.err conftest.$ac_objext
6534   test "x$ac_cv_prog_cc_c89" != "xno" && break
6535 done
6536 rm -f conftest.$ac_ext
6537 CC=$ac_save_CC
6538
6539 fi
6540 # AC_CACHE_VAL
6541 case "x$ac_cv_prog_cc_c89" in
6542   x)
6543     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6544 $as_echo "none needed" >&6; } ;;
6545   xno)
6546     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6547 $as_echo "unsupported" >&6; } ;;
6548   *)
6549     CC="$CC $ac_cv_prog_cc_c89"
6550     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6551 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6552 esac
6553 if test "x$ac_cv_prog_cc_c89" != xno; then :
6554
6555 fi
6556
6557 ac_ext=c
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563 depcc="$CC"   am_compiler_list=
6564
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6566 $as_echo_n "checking dependency style of $depcc... " >&6; }
6567 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6568   $as_echo_n "(cached) " >&6
6569 else
6570   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6571   # We make a subdir and do the tests there.  Otherwise we can end up
6572   # making bogus files that we don't know about and never remove.  For
6573   # instance it was reported that on HP-UX the gcc test will end up
6574   # making a dummy file named `D' -- because `-MD' means `put the output
6575   # in D'.
6576   rm -rf conftest.dir
6577   mkdir conftest.dir
6578   # Copy depcomp to subdir because otherwise we won't find it if we're
6579   # using a relative directory.
6580   cp "$am_depcomp" conftest.dir
6581   cd conftest.dir
6582   # We will build objects and dependencies in a subdirectory because
6583   # it helps to detect inapplicable dependency modes.  For instance
6584   # both Tru64's cc and ICC support -MD to output dependencies as a
6585   # side effect of compilation, but ICC will put the dependencies in
6586   # the current directory while Tru64 will put them in the object
6587   # directory.
6588   mkdir sub
6589
6590   am_cv_CC_dependencies_compiler_type=none
6591   if test "$am_compiler_list" = ""; then
6592      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6593   fi
6594   am__universal=false
6595   case " $depcc " in #(
6596      *\ -arch\ *\ -arch\ *) am__universal=true ;;
6597      esac
6598
6599   for depmode in $am_compiler_list; do
6600     # Setup a source with many dependencies, because some compilers
6601     # like to wrap large dependency lists on column 80 (with \), and
6602     # we should not choose a depcomp mode which is confused by this.
6603     #
6604     # We need to recreate these files for each test, as the compiler may
6605     # overwrite some of them when testing with obscure command lines.
6606     # This happens at least with the AIX C compiler.
6607     : > sub/conftest.c
6608     for i in 1 2 3 4 5 6; do
6609       echo '#include "conftst'$i'.h"' >> sub/conftest.c
6610       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6611       # Solaris 8's {/usr,}/bin/sh.
6612       touch sub/conftst$i.h
6613     done
6614     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6615
6616     # We check with `-c' and `-o' for the sake of the "dashmstdout"
6617     # mode.  It turns out that the SunPro C++ compiler does not properly
6618     # handle `-M -o', and we need to detect this.  Also, some Intel
6619     # versions had trouble with output in subdirs
6620     am__obj=sub/conftest.${OBJEXT-o}
6621     am__minus_obj="-o $am__obj"
6622     case $depmode in
6623     gcc)
6624       # This depmode causes a compiler race in universal mode.
6625       test "$am__universal" = false || continue
6626       ;;
6627     nosideeffect)
6628       # after this tag, mechanisms are not by side-effect, so they'll
6629       # only be used when explicitly requested
6630       if test "x$enable_dependency_tracking" = xyes; then
6631         continue
6632       else
6633         break
6634       fi
6635       ;;
6636     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6637       # This compiler won't grok `-c -o', but also, the minuso test has
6638       # not run yet.  These depmodes are late enough in the game, and
6639       # so weak that their functioning should not be impacted.
6640       am__obj=conftest.${OBJEXT-o}
6641       am__minus_obj=
6642       ;;
6643     none) break ;;
6644     esac
6645     if depmode=$depmode \
6646        source=sub/conftest.c object=$am__obj \
6647        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6648        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6649          >/dev/null 2>conftest.err &&
6650        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6651        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6652        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6653        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6654       # icc doesn't choke on unknown options, it will just issue warnings
6655       # or remarks (even with -Werror).  So we grep stderr for any message
6656       # that says an option was ignored or not supported.
6657       # When given -MP, icc 7.0 and 7.1 complain thusly:
6658       #   icc: Command line warning: ignoring option '-M'; no argument required
6659       # The diagnosis changed in icc 8.0:
6660       #   icc: Command line remark: option '-MP' not supported
6661       if (grep 'ignoring option' conftest.err ||
6662           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6663         am_cv_CC_dependencies_compiler_type=$depmode
6664         break
6665       fi
6666     fi
6667   done
6668
6669   cd ..
6670   rm -rf conftest.dir
6671 else
6672   am_cv_CC_dependencies_compiler_type=none
6673 fi
6674
6675 fi
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6677 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6678 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6679
6680  if
6681   test "x$enable_dependency_tracking" != xno \
6682   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6683   am__fastdepCC_TRUE=
6684   am__fastdepCC_FALSE='#'
6685 else
6686   am__fastdepCC_TRUE='#'
6687   am__fastdepCC_FALSE=
6688 fi
6689
6690
6691
6692 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6693
6694 if test "x$CC" != xcc; then
6695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6696 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6697 else
6698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6699 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6700 fi
6701 set dummy $CC; ac_cc=`$as_echo "$2" |
6702                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6703 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h.  */
6708
6709 int
6710 main ()
6711 {
6712
6713   ;
6714   return 0;
6715 }
6716 _ACEOF
6717 # Make sure it works both with $CC and with simple cc.
6718 # We do the test twice because some compilers refuse to overwrite an
6719 # existing .o file with -o, though they will create one.
6720 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6721 rm -f conftest2.*
6722 if { { case "(($ac_try" in
6723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724   *) ac_try_echo=$ac_try;;
6725 esac
6726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6727 $as_echo "$ac_try_echo"; } >&5
6728   (eval "$ac_try") 2>&5
6729   ac_status=$?
6730   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731   test $ac_status = 0; } &&
6732    test -f conftest2.$ac_objext && { { case "(($ac_try" in
6733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734   *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6737 $as_echo "$ac_try_echo"; } >&5
6738   (eval "$ac_try") 2>&5
6739   ac_status=$?
6740   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741   test $ac_status = 0; };
6742 then
6743   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6744   if test "x$CC" != xcc; then
6745     # Test first that cc exists at all.
6746     if { ac_try='cc -c conftest.$ac_ext >&5'
6747   { { case "(($ac_try" in
6748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6749   *) ac_try_echo=$ac_try;;
6750 esac
6751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6752 $as_echo "$ac_try_echo"; } >&5
6753   (eval "$ac_try") 2>&5
6754   ac_status=$?
6755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6756   test $ac_status = 0; }; }; then
6757       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6758       rm -f conftest2.*
6759       if { { case "(($ac_try" in
6760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761   *) ac_try_echo=$ac_try;;
6762 esac
6763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6764 $as_echo "$ac_try_echo"; } >&5
6765   (eval "$ac_try") 2>&5
6766   ac_status=$?
6767   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6768   test $ac_status = 0; } &&
6769          test -f conftest2.$ac_objext && { { case "(($ac_try" in
6770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771   *) ac_try_echo=$ac_try;;
6772 esac
6773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6774 $as_echo "$ac_try_echo"; } >&5
6775   (eval "$ac_try") 2>&5
6776   ac_status=$?
6777   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6778   test $ac_status = 0; };
6779       then
6780         # cc works too.
6781         :
6782       else
6783         # cc exists but doesn't like -o.
6784         eval ac_cv_prog_cc_${ac_cc}_c_o=no
6785       fi
6786     fi
6787   fi
6788 else
6789   eval ac_cv_prog_cc_${ac_cc}_c_o=no
6790 fi
6791 rm -f core conftest*
6792
6793 fi
6794 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6796 $as_echo "yes" >&6; }
6797 else
6798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6800
6801 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6802
6803 fi
6804
6805 # FIXME: we rely on the cache variable name because
6806 # there is no other way.
6807 set dummy $CC
6808 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6809 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6810 if test "$am_t" != yes; then
6811    # Losing compiler, so override with the script.
6812    # FIXME: It is wrong to rewrite CC.
6813    # But if we don't then we get into trouble of one sort or another.
6814    # A longer-term fix would be to have automake use am__CC in this case,
6815    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6816    CC="$am_aux_dir/compile $CC"
6817 fi
6818
6819
6820
6821
6822 # Check whether --enable-largefile was given.
6823 if test "${enable_largefile+set}" = set; then :
6824   enableval=$enable_largefile;
6825 fi
6826
6827 if test "$enable_largefile" != no; then
6828
6829   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6830 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6831 if ${ac_cv_sys_largefile_CC+:} false; then :
6832   $as_echo_n "(cached) " >&6
6833 else
6834   ac_cv_sys_largefile_CC=no
6835      if test "$GCC" != yes; then
6836        ac_save_CC=$CC
6837        while :; do
6838          # IRIX 6.2 and later do not support large files by default,
6839          # so use the C compiler's -n32 option if that helps.
6840          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h.  */
6842 #include <sys/types.h>
6843  /* Check that off_t can represent 2**63 - 1 correctly.
6844     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6845     since some C++ compilers masquerading as C compilers
6846     incorrectly reject 9223372036854775807.  */
6847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6848   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6849                        && LARGE_OFF_T % 2147483647 == 1)
6850                       ? 1 : -1];
6851 int
6852 main ()
6853 {
6854
6855   ;
6856   return 0;
6857 }
6858 _ACEOF
6859          if ac_fn_c_try_compile "$LINENO"; then :
6860   break
6861 fi
6862 rm -f core conftest.err conftest.$ac_objext
6863          CC="$CC -n32"
6864          if ac_fn_c_try_compile "$LINENO"; then :
6865   ac_cv_sys_largefile_CC=' -n32'; break
6866 fi
6867 rm -f core conftest.err conftest.$ac_objext
6868          break
6869        done
6870        CC=$ac_save_CC
6871        rm -f conftest.$ac_ext
6872     fi
6873 fi
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6875 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6876   if test "$ac_cv_sys_largefile_CC" != no; then
6877     CC=$CC$ac_cv_sys_largefile_CC
6878   fi
6879
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6881 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6882 if ${ac_cv_sys_file_offset_bits+:} false; then :
6883   $as_echo_n "(cached) " >&6
6884 else
6885   while :; do
6886   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h.  */
6888 #include <sys/types.h>
6889  /* Check that off_t can represent 2**63 - 1 correctly.
6890     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6891     since some C++ compilers masquerading as C compilers
6892     incorrectly reject 9223372036854775807.  */
6893 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6894   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6895                        && LARGE_OFF_T % 2147483647 == 1)
6896                       ? 1 : -1];
6897 int
6898 main ()
6899 {
6900
6901   ;
6902   return 0;
6903 }
6904 _ACEOF
6905 if ac_fn_c_try_compile "$LINENO"; then :
6906   ac_cv_sys_file_offset_bits=no; break
6907 fi
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6910 /* end confdefs.h.  */
6911 #define _FILE_OFFSET_BITS 64
6912 #include <sys/types.h>
6913  /* Check that off_t can represent 2**63 - 1 correctly.
6914     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6915     since some C++ compilers masquerading as C compilers
6916     incorrectly reject 9223372036854775807.  */
6917 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6918   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6919                        && LARGE_OFF_T % 2147483647 == 1)
6920                       ? 1 : -1];
6921 int
6922 main ()
6923 {
6924
6925   ;
6926   return 0;
6927 }
6928 _ACEOF
6929 if ac_fn_c_try_compile "$LINENO"; then :
6930   ac_cv_sys_file_offset_bits=64; break
6931 fi
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6933   ac_cv_sys_file_offset_bits=unknown
6934   break
6935 done
6936 fi
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6938 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6939 case $ac_cv_sys_file_offset_bits in #(
6940   no | unknown) ;;
6941   *)
6942 cat >>confdefs.h <<_ACEOF
6943 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6944 _ACEOF
6945 ;;
6946 esac
6947 rm -rf conftest*
6948   if test $ac_cv_sys_file_offset_bits = unknown; then
6949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6950 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6951 if ${ac_cv_sys_large_files+:} false; then :
6952   $as_echo_n "(cached) " >&6
6953 else
6954   while :; do
6955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6956 /* end confdefs.h.  */
6957 #include <sys/types.h>
6958  /* Check that off_t can represent 2**63 - 1 correctly.
6959     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6960     since some C++ compilers masquerading as C compilers
6961     incorrectly reject 9223372036854775807.  */
6962 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6963   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6964                        && LARGE_OFF_T % 2147483647 == 1)
6965                       ? 1 : -1];
6966 int
6967 main ()
6968 {
6969
6970   ;
6971   return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_compile "$LINENO"; then :
6975   ac_cv_sys_large_files=no; break
6976 fi
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h.  */
6980 #define _LARGE_FILES 1
6981 #include <sys/types.h>
6982  /* Check that off_t can represent 2**63 - 1 correctly.
6983     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6984     since some C++ compilers masquerading as C compilers
6985     incorrectly reject 9223372036854775807.  */
6986 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6987   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6988                        && LARGE_OFF_T % 2147483647 == 1)
6989                       ? 1 : -1];
6990 int
6991 main ()
6992 {
6993
6994   ;
6995   return 0;
6996 }
6997 _ACEOF
6998 if ac_fn_c_try_compile "$LINENO"; then :
6999   ac_cv_sys_large_files=1; break
7000 fi
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002   ac_cv_sys_large_files=unknown
7003   break
7004 done
7005 fi
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7007 $as_echo "$ac_cv_sys_large_files" >&6; }
7008 case $ac_cv_sys_large_files in #(
7009   no | unknown) ;;
7010   *)
7011 cat >>confdefs.h <<_ACEOF
7012 #define _LARGE_FILES $ac_cv_sys_large_files
7013 _ACEOF
7014 ;;
7015 esac
7016 rm -rf conftest*
7017   fi
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026
7027 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7028         if test -n "$ac_tool_prefix"; then
7029   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7034   $as_echo_n "(cached) " >&6
7035 else
7036   case $PKG_CONFIG in
7037   [\\/]* | ?:[\\/]*)
7038   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7039   ;;
7040   *)
7041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042 for as_dir in $PATH
7043 do
7044   IFS=$as_save_IFS
7045   test -z "$as_dir" && as_dir=.
7046     for ac_exec_ext in '' $ac_executable_extensions; do
7047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050     break 2
7051   fi
7052 done
7053   done
7054 IFS=$as_save_IFS
7055
7056   ;;
7057 esac
7058 fi
7059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7060 if test -n "$PKG_CONFIG"; then
7061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7062 $as_echo "$PKG_CONFIG" >&6; }
7063 else
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7066 fi
7067
7068
7069 fi
7070 if test -z "$ac_cv_path_PKG_CONFIG"; then
7071   ac_pt_PKG_CONFIG=$PKG_CONFIG
7072   # Extract the first word of "pkg-config", so it can be a program name with args.
7073 set dummy pkg-config; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7077   $as_echo_n "(cached) " >&6
7078 else
7079   case $ac_pt_PKG_CONFIG in
7080   [\\/]* | ?:[\\/]*)
7081   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7082   ;;
7083   *)
7084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7085 for as_dir in $PATH
7086 do
7087   IFS=$as_save_IFS
7088   test -z "$as_dir" && as_dir=.
7089     for ac_exec_ext in '' $ac_executable_extensions; do
7090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7091     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7093     break 2
7094   fi
7095 done
7096   done
7097 IFS=$as_save_IFS
7098
7099   ;;
7100 esac
7101 fi
7102 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7103 if test -n "$ac_pt_PKG_CONFIG"; then
7104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7105 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7106 else
7107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7108 $as_echo "no" >&6; }
7109 fi
7110
7111   if test "x$ac_pt_PKG_CONFIG" = x; then
7112     PKG_CONFIG=""
7113   else
7114     case $cross_compiling:$ac_tool_warned in
7115 yes:)
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7118 ac_tool_warned=yes ;;
7119 esac
7120     PKG_CONFIG=$ac_pt_PKG_CONFIG
7121   fi
7122 else
7123   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7124 fi
7125
7126 fi
7127 if test -n "$PKG_CONFIG"; then
7128         _pkg_min_version=0.16
7129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7130 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7131         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7132                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7133 $as_echo "yes" >&6; }
7134         else
7135                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 $as_echo "no" >&6; }
7137                 PKG_CONFIG=""
7138         fi
7139 fi
7140
7141 if test "x$enable_debug" = "xyes"; then
7142   if test x$cflags_set != xset ; then
7143       case " $CFLAGS " in
7144       *[\ \     ]-g[\ \ ]*) ;;
7145       *) CFLAGS="$CFLAGS -g" ;;
7146       esac
7147   fi
7148   GLIB_DEBUG_FLAGS="-DG_ENABLE_DEBUG"
7149 else
7150   GLIB_DEBUG_FLAGS="-DG_DISABLE_CAST_CHECKS"
7151
7152   if test "x$enable_debug" = "xno"; then
7153     GLIB_DEBUG_FLAGS="$GLIB_DEBUG_FLAGS -DG_DISABLE_ASSERT -DG_DISABLE_CHECKS"
7154   fi
7155 fi
7156
7157 # Ensure MSVC-compatible struct packing convention is used when
7158 # compiling for Win32 with gcc.
7159 # What flag to depends on gcc version: gcc3 uses "-mms-bitfields", while
7160 # gcc2 uses "-fnative-struct".
7161 if test x"$glib_native_win32" = xyes; then
7162   if test x"$GCC" = xyes; then
7163     msnative_struct=''
7164     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get MSVC-compatible struct packing" >&5
7165 $as_echo_n "checking how to get MSVC-compatible struct packing... " >&6; }
7166     if test -z "$ac_cv_prog_CC"; then
7167       our_gcc="$CC"
7168     else
7169       our_gcc="$ac_cv_prog_CC"
7170     fi
7171     case `$our_gcc --version | sed -e 's,\..*,.,' -e q` in
7172       2.)
7173         if $our_gcc -v --help 2>/dev/null | grep fnative-struct >/dev/null; then
7174           msnative_struct='-fnative-struct'
7175         fi
7176         ;;
7177       *)
7178         if $our_gcc -v --help 2>/dev/null | grep ms-bitfields >/dev/null; then
7179           msnative_struct='-mms-bitfields'
7180         fi
7181         ;;
7182     esac
7183     if test x"$msnative_struct" = x ; then
7184       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no way" >&5
7185 $as_echo "no way" >&6; }
7186       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&5
7187 $as_echo "$as_me: WARNING: produced libraries might be incompatible with MSVC-compiled code" >&2;}
7188     else
7189       CFLAGS="$CFLAGS $msnative_struct"
7190       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${msnative_struct}" >&5
7191 $as_echo "${msnative_struct}" >&6; }
7192     fi
7193   fi
7194 fi
7195 GLIB_EXTRA_CFLAGS="${msnative_struct}"
7196
7197
7198
7199
7200 # define a MAINT-like variable REBUILD which is set if Perl
7201 # and awk are found, so autogenerated sources can be rebuilt
7202 for ac_prog in gawk mawk nawk awk
7203 do
7204   # Extract the first word of "$ac_prog", so it can be a program name with args.
7205 set dummy $ac_prog; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_AWK+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$AWK"; then
7212   ac_cv_prog_AWK="$AWK" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7221     ac_cv_prog_AWK="$ac_prog"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 AWK=$ac_cv_prog_AWK
7232 if test -n "$AWK"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7234 $as_echo "$AWK" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241   test -n "$AWK" && break
7242 done
7243
7244 for ac_prog in perl5 perl
7245 do
7246   # Extract the first word of "$ac_prog", so it can be a program name with args.
7247 set dummy $ac_prog; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_PERL+:} false; then :
7251   $as_echo_n "(cached) " >&6
7252 else
7253   if test -n "$PERL"; then
7254   ac_cv_prog_PERL="$PERL" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259   IFS=$as_save_IFS
7260   test -z "$as_dir" && as_dir=.
7261     for ac_exec_ext in '' $ac_executable_extensions; do
7262   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7263     ac_cv_prog_PERL="$ac_prog"
7264     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265     break 2
7266   fi
7267 done
7268   done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 PERL=$ac_cv_prog_PERL
7274 if test -n "$PERL"; then
7275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7276 $as_echo "$PERL" >&6; }
7277 else
7278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282
7283   test -n "$PERL" && break
7284 done
7285
7286 # We would like indent, but don't require it.
7287 # Extract the first word of "indent", so it can be a program name with args.
7288 set dummy indent; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_INDENT+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$INDENT"; then
7295   ac_cv_prog_INDENT="$INDENT" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_INDENT="indent"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 INDENT=$ac_cv_prog_INDENT
7315 if test -n "$INDENT"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5
7317 $as_echo "$INDENT" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323
7324 REBUILD=\#
7325 if test "x$enable_rebuilds" = "xyes" && \
7326      test -n "$PERL" && \
7327      $PERL -e 'exit !($] >= 5.002)' > /dev/null 2>&1 && \
7328      test -n "$AWK" ; then
7329   REBUILD=
7330 fi
7331
7332
7333 # Need full path to Perl for glib-mkenums
7334 #
7335 if test "x$PERL" != x ; then
7336   # Extract the first word of "$PERL", so it can be a program name with args.
7337 set dummy $PERL; ac_word=$2
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7339 $as_echo_n "checking for $ac_word... " >&6; }
7340 if ${ac_cv_path_PERL_PATH+:} false; then :
7341   $as_echo_n "(cached) " >&6
7342 else
7343   case $PERL_PATH in
7344   [\\/]* | ?:[\\/]*)
7345   ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
7346   ;;
7347   *)
7348   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 for as_dir in $PATH
7350 do
7351   IFS=$as_save_IFS
7352   test -z "$as_dir" && as_dir=.
7353     for ac_exec_ext in '' $ac_executable_extensions; do
7354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7355     ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
7356     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7357     break 2
7358   fi
7359 done
7360   done
7361 IFS=$as_save_IFS
7362
7363   ;;
7364 esac
7365 fi
7366 PERL_PATH=$ac_cv_path_PERL_PATH
7367 if test -n "$PERL_PATH"; then
7368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL_PATH" >&5
7369 $as_echo "$PERL_PATH" >&6; }
7370 else
7371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372 $as_echo "no" >&6; }
7373 fi
7374
7375
7376 fi
7377 if test "x$PERL_PATH" = x ; then
7378   PERL_PATH="/usr/bin/env perl"
7379 fi
7380
7381
7382 # Need suitable python path for greport
7383
7384
7385
7386
7387
7388
7389         if test -n "$PYTHON"; then
7390       # If the user set $PYTHON, use it and don't search something else.
7391       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
7392 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
7393       prog="import sys
7394 # split strings by '.' and convert to numeric.  Append some zeros
7395 # because we need at least 4 digits for the hex conversion.
7396 # map returns an iterator in Python 3.0 and a list in 2.x
7397 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7398 minverhex = 0
7399 # xrange is not present in Python 3.0 and range returns an iterator
7400 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7401 sys.exit(sys.hexversion < minverhex)"
7402   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
7403    ($PYTHON -c "$prog") >&5 2>&5
7404    ac_status=$?
7405    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406    (exit $ac_status); }; then :
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7408 $as_echo "yes" >&6; }
7409 else
7410   as_fn_error $? "too old" "$LINENO" 5
7411 fi
7412       am_display_PYTHON=$PYTHON
7413     else
7414       # Otherwise, try each interpreter until we find one that satisfies
7415       # VERSION.
7416       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
7417 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
7418 if ${am_cv_pathless_PYTHON+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421
7422         for am_cv_pathless_PYTHON in python python2 python3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
7423           test "$am_cv_pathless_PYTHON" = none && break
7424           prog="import sys
7425 # split strings by '.' and convert to numeric.  Append some zeros
7426 # because we need at least 4 digits for the hex conversion.
7427 # map returns an iterator in Python 3.0 and a list in 2.x
7428 minver = list(map(int, '2.5'.split('.'))) + [0, 0, 0]
7429 minverhex = 0
7430 # xrange is not present in Python 3.0 and range returns an iterator
7431 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
7432 sys.exit(sys.hexversion < minverhex)"
7433   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
7434    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
7435    ac_status=$?
7436    echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437    (exit $ac_status); }; then :
7438   break
7439 fi
7440         done
7441 fi
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
7443 $as_echo "$am_cv_pathless_PYTHON" >&6; }
7444       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
7445       if test "$am_cv_pathless_PYTHON" = none; then
7446         PYTHON=:
7447       else
7448         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
7449 set dummy $am_cv_pathless_PYTHON; ac_word=$2
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7451 $as_echo_n "checking for $ac_word... " >&6; }
7452 if ${ac_cv_path_PYTHON+:} false; then :
7453   $as_echo_n "(cached) " >&6
7454 else
7455   case $PYTHON in
7456   [\\/]* | ?:[\\/]*)
7457   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
7458   ;;
7459   *)
7460   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7461 for as_dir in $PATH
7462 do
7463   IFS=$as_save_IFS
7464   test -z "$as_dir" && as_dir=.
7465     for ac_exec_ext in '' $ac_executable_extensions; do
7466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7467     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
7468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7469     break 2
7470   fi
7471 done
7472   done
7473 IFS=$as_save_IFS
7474
7475   ;;
7476 esac
7477 fi
7478 PYTHON=$ac_cv_path_PYTHON
7479 if test -n "$PYTHON"; then
7480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7481 $as_echo "$PYTHON" >&6; }
7482 else
7483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7484 $as_echo "no" >&6; }
7485 fi
7486
7487
7488       fi
7489       am_display_PYTHON=$am_cv_pathless_PYTHON
7490     fi
7491
7492
7493   if test "$PYTHON" = :; then
7494       PYTHON="/usr/bin/env python2.5"
7495   else
7496
7497
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
7499 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
7500 if ${am_cv_python_version+:} false; then :
7501   $as_echo_n "(cached) " >&6
7502 else
7503   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
7504 fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
7506 $as_echo "$am_cv_python_version" >&6; }
7507   PYTHON_VERSION=$am_cv_python_version
7508
7509
7510
7511   PYTHON_PREFIX='${prefix}'
7512
7513   PYTHON_EXEC_PREFIX='${exec_prefix}'
7514
7515
7516
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
7518 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
7519 if ${am_cv_python_platform+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
7523 fi
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
7525 $as_echo "$am_cv_python_platform" >&6; }
7526   PYTHON_PLATFORM=$am_cv_python_platform
7527
7528
7529
7530
7531             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
7532 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
7533 if ${am_cv_python_pythondir+:} false; then :
7534   $as_echo_n "(cached) " >&6
7535 else
7536   if test "x$prefix" = xNONE
7537      then
7538        am_py_prefix=$ac_default_prefix
7539      else
7540        am_py_prefix=$prefix
7541      fi
7542      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`
7543      case $am_cv_python_pythondir in
7544      $am_py_prefix*)
7545        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
7546        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
7547        ;;
7548      *)
7549        case $am_py_prefix in
7550          /usr|/System*) ;;
7551          *)
7552           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
7553           ;;
7554        esac
7555        ;;
7556      esac
7557
7558 fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
7560 $as_echo "$am_cv_python_pythondir" >&6; }
7561   pythondir=$am_cv_python_pythondir
7562
7563
7564
7565   pkgpythondir=\${pythondir}/$PACKAGE
7566
7567
7568         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
7569 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
7570 if ${am_cv_python_pyexecdir+:} false; then :
7571   $as_echo_n "(cached) " >&6
7572 else
7573   if test "x$exec_prefix" = xNONE
7574      then
7575        am_py_exec_prefix=$am_py_prefix
7576      else
7577        am_py_exec_prefix=$exec_prefix
7578      fi
7579      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`
7580      case $am_cv_python_pyexecdir in
7581      $am_py_exec_prefix*)
7582        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
7583        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
7584        ;;
7585      *)
7586        case $am_py_exec_prefix in
7587          /usr|/System*) ;;
7588          *)
7589            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
7590            ;;
7591        esac
7592        ;;
7593      esac
7594
7595 fi
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
7597 $as_echo "$am_cv_python_pyexecdir" >&6; }
7598   pyexecdir=$am_cv_python_pyexecdir
7599
7600
7601
7602   pkgpyexecdir=\${pyexecdir}/$PACKAGE
7603
7604
7605
7606   fi
7607
7608
7609
7610
7611
7612
7613 if test x"$glib_native_win32" = xyes; then
7614   with_libiconv=native
7615 else
7616
7617 # Check whether --with-libiconv was given.
7618 if test "${with_libiconv+set}" = set; then :
7619   withval=$with_libiconv;
7620 else
7621   with_libiconv=maybe
7622 fi
7623
7624
7625   found_iconv=no
7626   case $with_libiconv in
7627     maybe)
7628       # Check in the C library first
7629       ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7630 if test "x$ac_cv_func_iconv_open" = xyes; then :
7631   with_libiconv=no; found_iconv=yes
7632 fi
7633
7634       # Check if we have GNU libiconv
7635       if test $found_iconv = "no"; then
7636         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7637 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7638 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7639   $as_echo_n "(cached) " >&6
7640 else
7641   ac_check_lib_save_LIBS=$LIBS
7642 LIBS="-liconv  $LIBS"
7643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h.  */
7645
7646 /* Override any GCC internal prototype to avoid an error.
7647    Use char because int might match the return type of a GCC
7648    builtin and then its argument prototype would still apply.  */
7649 #ifdef __cplusplus
7650 extern "C"
7651 #endif
7652 char libiconv_open ();
7653 int
7654 main ()
7655 {
7656 return libiconv_open ();
7657   ;
7658   return 0;
7659 }
7660 _ACEOF
7661 if ac_fn_c_try_link "$LINENO"; then :
7662   ac_cv_lib_iconv_libiconv_open=yes
7663 else
7664   ac_cv_lib_iconv_libiconv_open=no
7665 fi
7666 rm -f core conftest.err conftest.$ac_objext \
7667     conftest$ac_exeext conftest.$ac_ext
7668 LIBS=$ac_check_lib_save_LIBS
7669 fi
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7671 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7672 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7673   with_libiconv=gnu; found_iconv=yes
7674 fi
7675
7676       fi
7677       # Check if we have a iconv in -liconv, possibly from vendor
7678       if test $found_iconv = "no"; then
7679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7680 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7681 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7682   $as_echo_n "(cached) " >&6
7683 else
7684   ac_check_lib_save_LIBS=$LIBS
7685 LIBS="-liconv  $LIBS"
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687 /* end confdefs.h.  */
7688
7689 /* Override any GCC internal prototype to avoid an error.
7690    Use char because int might match the return type of a GCC
7691    builtin and then its argument prototype would still apply.  */
7692 #ifdef __cplusplus
7693 extern "C"
7694 #endif
7695 char iconv_open ();
7696 int
7697 main ()
7698 {
7699 return iconv_open ();
7700   ;
7701   return 0;
7702 }
7703 _ACEOF
7704 if ac_fn_c_try_link "$LINENO"; then :
7705   ac_cv_lib_iconv_iconv_open=yes
7706 else
7707   ac_cv_lib_iconv_iconv_open=no
7708 fi
7709 rm -f core conftest.err conftest.$ac_objext \
7710     conftest$ac_exeext conftest.$ac_ext
7711 LIBS=$ac_check_lib_save_LIBS
7712 fi
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7714 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7715 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7716   with_libiconv=native; found_iconv=yes
7717 fi
7718
7719       fi
7720       ;;
7721     no)
7722       ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open"
7723 if test "x$ac_cv_func_iconv_open" = xyes; then :
7724   with_libiconv=no; found_iconv=yes
7725 fi
7726
7727       ;;
7728     gnu|yes)
7729       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5
7730 $as_echo_n "checking for libiconv_open in -liconv... " >&6; }
7731 if ${ac_cv_lib_iconv_libiconv_open+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   ac_check_lib_save_LIBS=$LIBS
7735 LIBS="-liconv  $LIBS"
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h.  */
7738
7739 /* Override any GCC internal prototype to avoid an error.
7740    Use char because int might match the return type of a GCC
7741    builtin and then its argument prototype would still apply.  */
7742 #ifdef __cplusplus
7743 extern "C"
7744 #endif
7745 char libiconv_open ();
7746 int
7747 main ()
7748 {
7749 return libiconv_open ();
7750   ;
7751   return 0;
7752 }
7753 _ACEOF
7754 if ac_fn_c_try_link "$LINENO"; then :
7755   ac_cv_lib_iconv_libiconv_open=yes
7756 else
7757   ac_cv_lib_iconv_libiconv_open=no
7758 fi
7759 rm -f core conftest.err conftest.$ac_objext \
7760     conftest$ac_exeext conftest.$ac_ext
7761 LIBS=$ac_check_lib_save_LIBS
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5
7764 $as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; }
7765 if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then :
7766   with_libiconv=gnu; found_iconv=yes
7767 fi
7768
7769       ;;
7770     native)
7771       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv_open in -liconv" >&5
7772 $as_echo_n "checking for iconv_open in -liconv... " >&6; }
7773 if ${ac_cv_lib_iconv_iconv_open+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   ac_check_lib_save_LIBS=$LIBS
7777 LIBS="-liconv  $LIBS"
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h.  */
7780
7781 /* Override any GCC internal prototype to avoid an error.
7782    Use char because int might match the return type of a GCC
7783    builtin and then its argument prototype would still apply.  */
7784 #ifdef __cplusplus
7785 extern "C"
7786 #endif
7787 char iconv_open ();
7788 int
7789 main ()
7790 {
7791 return iconv_open ();
7792   ;
7793   return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_link "$LINENO"; then :
7797   ac_cv_lib_iconv_iconv_open=yes
7798 else
7799   ac_cv_lib_iconv_iconv_open=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext \
7802     conftest$ac_exeext conftest.$ac_ext
7803 LIBS=$ac_check_lib_save_LIBS
7804 fi
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_iconv_open" >&5
7806 $as_echo "$ac_cv_lib_iconv_iconv_open" >&6; }
7807 if test "x$ac_cv_lib_iconv_iconv_open" = xyes; then :
7808   with_libiconv=native; found_iconv=yes
7809 fi
7810
7811       ;;
7812   esac
7813
7814   if test "x$found_iconv" = "xno" ; then
7815      as_fn_error $? "*** No iconv() implementation found in C library or libiconv" "$LINENO" 5
7816   fi
7817 fi
7818
7819 # Check whether --enable-iconv-cache was given.
7820 if test "${enable_iconv_cache+set}" = set; then :
7821   enableval=$enable_iconv_cache;
7822 else
7823   enable_iconv_cache=auto
7824 fi
7825
7826
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to cache iconv descriptors" >&5
7828 $as_echo_n "checking whether to cache iconv descriptors... " >&6; }
7829 case $enable_iconv_cache in
7830   auto)
7831     if test $ac_cv_gnu_library_2_1 = yes; then
7832       enable_iconv_cache=no
7833     else
7834       enable_iconv_cache=yes
7835     fi
7836   ;;
7837   yes|no)
7838   ;;
7839   *) as_fn_error $? "Value given to --enable-iconv-cache must be one of yes, no or auto" "$LINENO" 5
7840   ;;
7841 esac
7842
7843 if test $enable_iconv_cache = yes; then
7844
7845 $as_echo "#define NEED_ICONV_CACHE 1" >>confdefs.h
7846
7847 fi
7848
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_iconv_cache" >&5
7850 $as_echo "$enable_iconv_cache" >&6; }
7851
7852
7853
7854 pkg_failed=no
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
7856 $as_echo_n "checking for ZLIB... " >&6; }
7857
7858 if test -n "$ZLIB_CFLAGS"; then
7859     pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
7860  elif test -n "$PKG_CONFIG"; then
7861     if test -n "$PKG_CONFIG" && \
7862     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7863   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7864   ac_status=$?
7865   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7866   test $ac_status = 0; }; then
7867   pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
7868 else
7869   pkg_failed=yes
7870 fi
7871  else
7872     pkg_failed=untried
7873 fi
7874 if test -n "$ZLIB_LIBS"; then
7875     pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
7876  elif test -n "$PKG_CONFIG"; then
7877     if test -n "$PKG_CONFIG" && \
7878     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
7879   ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
7880   ac_status=$?
7881   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7882   test $ac_status = 0; }; then
7883   pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
7884 else
7885   pkg_failed=yes
7886 fi
7887  else
7888     pkg_failed=untried
7889 fi
7890
7891
7892
7893 if test $pkg_failed = yes; then
7894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7896
7897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7898         _pkg_short_errors_supported=yes
7899 else
7900         _pkg_short_errors_supported=no
7901 fi
7902         if test $_pkg_short_errors_supported = yes; then
7903                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "zlib" 2>&1`
7904         else
7905                 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "zlib" 2>&1`
7906         fi
7907         # Put the nasty error message in config.log where it belongs
7908         echo "$ZLIB_PKG_ERRORS" >&5
7909
7910         found_zlib=no
7911 elif test $pkg_failed = untried; then
7912         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7914         found_zlib=no
7915 else
7916         ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
7917         ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
7918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7919 $as_echo "yes" >&6; }
7920         found_zlib=yes
7921 fi
7922 if test "x$found_zlib" = "xno" ; then
7923   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7924 $as_echo_n "checking for ANSI C header files... " >&6; }
7925 if ${ac_cv_header_stdc+:} false; then :
7926   $as_echo_n "(cached) " >&6
7927 else
7928   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h.  */
7930 #include <stdlib.h>
7931 #include <stdarg.h>
7932 #include <string.h>
7933 #include <float.h>
7934
7935 int
7936 main ()
7937 {
7938
7939   ;
7940   return 0;
7941 }
7942 _ACEOF
7943 if ac_fn_c_try_compile "$LINENO"; then :
7944   ac_cv_header_stdc=yes
7945 else
7946   ac_cv_header_stdc=no
7947 fi
7948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7949
7950 if test $ac_cv_header_stdc = yes; then
7951   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h.  */
7954 #include <string.h>
7955
7956 _ACEOF
7957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7958   $EGREP "memchr" >/dev/null 2>&1; then :
7959
7960 else
7961   ac_cv_header_stdc=no
7962 fi
7963 rm -f conftest*
7964
7965 fi
7966
7967 if test $ac_cv_header_stdc = yes; then
7968   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h.  */
7971 #include <stdlib.h>
7972
7973 _ACEOF
7974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7975   $EGREP "free" >/dev/null 2>&1; then :
7976
7977 else
7978   ac_cv_header_stdc=no
7979 fi
7980 rm -f conftest*
7981
7982 fi
7983
7984 if test $ac_cv_header_stdc = yes; then
7985   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7986   if test "$cross_compiling" = yes; then :
7987   :
7988 else
7989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7990 /* end confdefs.h.  */
7991 #include <ctype.h>
7992 #include <stdlib.h>
7993 #if ((' ' & 0x0FF) == 0x020)
7994 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7995 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7996 #else
7997 # define ISLOWER(c) \
7998                    (('a' <= (c) && (c) <= 'i') \
7999                      || ('j' <= (c) && (c) <= 'r') \
8000                      || ('s' <= (c) && (c) <= 'z'))
8001 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8002 #endif
8003
8004 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8005 int
8006 main ()
8007 {
8008   int i;
8009   for (i = 0; i < 256; i++)
8010     if (XOR (islower (i), ISLOWER (i))
8011         || toupper (i) != TOUPPER (i))
8012       return 2;
8013   return 0;
8014 }
8015 _ACEOF
8016 if ac_fn_c_try_run "$LINENO"; then :
8017
8018 else
8019   ac_cv_header_stdc=no
8020 fi
8021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8022   conftest.$ac_objext conftest.beam conftest.$ac_ext
8023 fi
8024
8025 fi
8026 fi
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8028 $as_echo "$ac_cv_header_stdc" >&6; }
8029 if test $ac_cv_header_stdc = yes; then
8030
8031 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8032
8033 fi
8034
8035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8037                   inttypes.h stdint.h unistd.h
8038 do :
8039   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8040 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8041 "
8042 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8043   cat >>confdefs.h <<_ACEOF
8044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8045 _ACEOF
8046
8047 fi
8048
8049 done
8050
8051
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
8053 $as_echo_n "checking for inflate in -lz... " >&6; }
8054 if ${ac_cv_lib_z_inflate+:} false; then :
8055   $as_echo_n "(cached) " >&6
8056 else
8057   ac_check_lib_save_LIBS=$LIBS
8058 LIBS="-lz  $LIBS"
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h.  */
8061
8062 /* Override any GCC internal prototype to avoid an error.
8063    Use char because int might match the return type of a GCC
8064    builtin and then its argument prototype would still apply.  */
8065 #ifdef __cplusplus
8066 extern "C"
8067 #endif
8068 char inflate ();
8069 int
8070 main ()
8071 {
8072 return inflate ();
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_link "$LINENO"; then :
8078   ac_cv_lib_z_inflate=yes
8079 else
8080   ac_cv_lib_z_inflate=no
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext \
8083     conftest$ac_exeext conftest.$ac_ext
8084 LIBS=$ac_check_lib_save_LIBS
8085 fi
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
8087 $as_echo "$ac_cv_lib_z_inflate" >&6; }
8088 if test "x$ac_cv_lib_z_inflate" = xyes; then :
8089   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
8090 if test "x$ac_cv_header_zlib_h" = xyes; then :
8091   found_zlib=yes
8092 fi
8093
8094
8095 fi
8096
8097   if test "x$found_zlib" = "xno" ; then
8098     as_fn_error $? "*** Working zlib library and headers not found ***" "$LINENO" 5
8099   fi
8100   ZLIB_LIBS='-lz'
8101
8102 fi
8103
8104
8105 pkg_failed=no
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5
8107 $as_echo_n "checking for LIBFFI... " >&6; }
8108
8109 if test -n "$LIBFFI_CFLAGS"; then
8110     pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS"
8111  elif test -n "$PKG_CONFIG"; then
8112     if test -n "$PKG_CONFIG" && \
8113     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8114   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8115   ac_status=$?
8116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117   test $ac_status = 0; }; then
8118   pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0" 2>/dev/null`
8119 else
8120   pkg_failed=yes
8121 fi
8122  else
8123     pkg_failed=untried
8124 fi
8125 if test -n "$LIBFFI_LIBS"; then
8126     pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS"
8127  elif test -n "$PKG_CONFIG"; then
8128     if test -n "$PKG_CONFIG" && \
8129     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0\""; } >&5
8130   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0") 2>&5
8131   ac_status=$?
8132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133   test $ac_status = 0; }; then
8134   pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0" 2>/dev/null`
8135 else
8136   pkg_failed=yes
8137 fi
8138  else
8139     pkg_failed=untried
8140 fi
8141
8142
8143
8144 if test $pkg_failed = yes; then
8145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147
8148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8149         _pkg_short_errors_supported=yes
8150 else
8151         _pkg_short_errors_supported=no
8152 fi
8153         if test $_pkg_short_errors_supported = yes; then
8154                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi >= 3.0.0" 2>&1`
8155         else
8156                 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi >= 3.0.0" 2>&1`
8157         fi
8158         # Put the nasty error message in config.log where it belongs
8159         echo "$LIBFFI_PKG_ERRORS" >&5
8160
8161         as_fn_error $? "Package requirements (libffi >= 3.0.0) were not met:
8162
8163 $LIBFFI_PKG_ERRORS
8164
8165 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8166 installed software in a non-standard prefix.
8167
8168 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8169 and LIBFFI_LIBS to avoid the need to call pkg-config.
8170 See the pkg-config man page for more details." "$LINENO" 5
8171
8172 elif test $pkg_failed = untried; then
8173         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8174 $as_echo "no" >&6; }
8175         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8176 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8177 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
8178 is in your PATH or set the PKG_CONFIG environment variable to the full
8179 path to pkg-config.
8180
8181 Alternatively, you may set the environment variables LIBFFI_CFLAGS
8182 and LIBFFI_LIBS to avoid the need to call pkg-config.
8183 See the pkg-config man page for more details.
8184
8185 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8186 See \`config.log' for more details" "$LINENO" 5; }
8187
8188 else
8189         LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS
8190         LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS
8191         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8192 $as_echo "yes" >&6; }
8193
8194 fi
8195
8196
8197
8198
8199 ALL_LINGUAS="`grep -v '^#' "$srcdir/po/LINGUAS" | tr '\n' ' '`"
8200 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/po/LINGUAS'
8201
8202
8203    for ac_header in locale.h
8204 do :
8205   ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
8206 if test "x$ac_cv_header_locale_h" = xyes; then :
8207   cat >>confdefs.h <<_ACEOF
8208 #define HAVE_LOCALE_H 1
8209 _ACEOF
8210
8211 fi
8212
8213 done
8214
8215     if test $ac_cv_header_locale_h = yes; then
8216     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
8217 $as_echo_n "checking for LC_MESSAGES... " >&6; }
8218 if ${am_cv_val_LC_MESSAGES+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h.  */
8223 #include <locale.h>
8224 int
8225 main ()
8226 {
8227 return LC_MESSAGES
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233   am_cv_val_LC_MESSAGES=yes
8234 else
8235   am_cv_val_LC_MESSAGES=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238     conftest$ac_exeext conftest.$ac_ext
8239 fi
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
8241 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
8242     if test $am_cv_val_LC_MESSAGES = yes; then
8243
8244 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
8245
8246     fi
8247   fi
8248      USE_NLS=yes
8249
8250
8251     gt_cv_have_gettext=no
8252
8253     CATOBJEXT=NONE
8254     XGETTEXT=:
8255     INTLLIBS=
8256
8257     ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
8258 if test "x$ac_cv_header_libintl_h" = xyes; then :
8259   gt_cv_func_dgettext_libintl="no"
8260       libintl_extra_libs=""
8261
8262       #
8263       # First check in libc
8264       #
8265       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
8266 $as_echo_n "checking for ngettext in libc... " >&6; }
8267 if ${gt_cv_func_ngettext_libc+:} false; then :
8268   $as_echo_n "(cached) " >&6
8269 else
8270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h.  */
8272
8273 #include <libintl.h>
8274
8275 int
8276 main ()
8277 {
8278 return !ngettext ("","", 1)
8279   ;
8280   return 0;
8281 }
8282 _ACEOF
8283 if ac_fn_c_try_link "$LINENO"; then :
8284   gt_cv_func_ngettext_libc=yes
8285 else
8286   gt_cv_func_ngettext_libc=no
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext \
8289     conftest$ac_exeext conftest.$ac_ext
8290
8291 fi
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
8293 $as_echo "$gt_cv_func_ngettext_libc" >&6; }
8294
8295       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8296               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
8297 $as_echo_n "checking for dgettext in libc... " >&6; }
8298 if ${gt_cv_func_dgettext_libc+:} false; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h.  */
8303
8304 #include <libintl.h>
8305
8306 int
8307 main ()
8308 {
8309 return !dgettext ("","")
8310   ;
8311   return 0;
8312 }
8313 _ACEOF
8314 if ac_fn_c_try_link "$LINENO"; then :
8315   gt_cv_func_dgettext_libc=yes
8316 else
8317   gt_cv_func_dgettext_libc=no
8318 fi
8319 rm -f core conftest.err conftest.$ac_objext \
8320     conftest$ac_exeext conftest.$ac_ext
8321
8322 fi
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
8324 $as_echo "$gt_cv_func_dgettext_libc" >&6; }
8325       fi
8326
8327       if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8328         for ac_func in bind_textdomain_codeset
8329 do :
8330   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8331 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8332   cat >>confdefs.h <<_ACEOF
8333 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8334 _ACEOF
8335
8336 fi
8337 done
8338
8339       fi
8340
8341       #
8342       # If we don't have everything we want, check in libintl
8343       #
8344       if test "$gt_cv_func_dgettext_libc" != "yes" \
8345          || test "$gt_cv_func_ngettext_libc" != "yes" \
8346          || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8347
8348         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
8349 $as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
8350 if ${ac_cv_lib_intl_bindtextdomain+:} false; then :
8351   $as_echo_n "(cached) " >&6
8352 else
8353   ac_check_lib_save_LIBS=$LIBS
8354 LIBS="-lintl  $LIBS"
8355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8356 /* end confdefs.h.  */
8357
8358 /* Override any GCC internal prototype to avoid an error.
8359    Use char because int might match the return type of a GCC
8360    builtin and then its argument prototype would still apply.  */
8361 #ifdef __cplusplus
8362 extern "C"
8363 #endif
8364 char bindtextdomain ();
8365 int
8366 main ()
8367 {
8368 return bindtextdomain ();
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 if ac_fn_c_try_link "$LINENO"; then :
8374   ac_cv_lib_intl_bindtextdomain=yes
8375 else
8376   ac_cv_lib_intl_bindtextdomain=no
8377 fi
8378 rm -f core conftest.err conftest.$ac_objext \
8379     conftest$ac_exeext conftest.$ac_ext
8380 LIBS=$ac_check_lib_save_LIBS
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
8383 $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
8384 if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then :
8385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8386 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8387 if ${ac_cv_lib_intl_ngettext+:} false; then :
8388   $as_echo_n "(cached) " >&6
8389 else
8390   ac_check_lib_save_LIBS=$LIBS
8391 LIBS="-lintl  $LIBS"
8392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8393 /* end confdefs.h.  */
8394
8395 /* Override any GCC internal prototype to avoid an error.
8396    Use char because int might match the return type of a GCC
8397    builtin and then its argument prototype would still apply.  */
8398 #ifdef __cplusplus
8399 extern "C"
8400 #endif
8401 char ngettext ();
8402 int
8403 main ()
8404 {
8405 return ngettext ();
8406   ;
8407   return 0;
8408 }
8409 _ACEOF
8410 if ac_fn_c_try_link "$LINENO"; then :
8411   ac_cv_lib_intl_ngettext=yes
8412 else
8413   ac_cv_lib_intl_ngettext=no
8414 fi
8415 rm -f core conftest.err conftest.$ac_objext \
8416     conftest$ac_exeext conftest.$ac_ext
8417 LIBS=$ac_check_lib_save_LIBS
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8420 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8421 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
8423 $as_echo_n "checking for dgettext in -lintl... " >&6; }
8424 if ${ac_cv_lib_intl_dgettext+:} false; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   ac_check_lib_save_LIBS=$LIBS
8428 LIBS="-lintl  $LIBS"
8429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8430 /* end confdefs.h.  */
8431
8432 /* Override any GCC internal prototype to avoid an error.
8433    Use char because int might match the return type of a GCC
8434    builtin and then its argument prototype would still apply.  */
8435 #ifdef __cplusplus
8436 extern "C"
8437 #endif
8438 char dgettext ();
8439 int
8440 main ()
8441 {
8442 return dgettext ();
8443   ;
8444   return 0;
8445 }
8446 _ACEOF
8447 if ac_fn_c_try_link "$LINENO"; then :
8448   ac_cv_lib_intl_dgettext=yes
8449 else
8450   ac_cv_lib_intl_dgettext=no
8451 fi
8452 rm -f core conftest.err conftest.$ac_objext \
8453     conftest$ac_exeext conftest.$ac_ext
8454 LIBS=$ac_check_lib_save_LIBS
8455 fi
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
8457 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
8458 if test "x$ac_cv_lib_intl_dgettext" = xyes; then :
8459   gt_cv_func_dgettext_libintl=yes
8460 fi
8461
8462 fi
8463
8464 fi
8465
8466
8467         if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8468           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
8469 $as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
8470           { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8471 $as_echo "" >&6; }
8472           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
8473 $as_echo_n "checking for ngettext in -lintl... " >&6; }
8474 if ${ac_cv_lib_intl_ngettext+:} false; then :
8475   $as_echo_n "(cached) " >&6
8476 else
8477   ac_check_lib_save_LIBS=$LIBS
8478 LIBS="-lintl -liconv $LIBS"
8479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8480 /* end confdefs.h.  */
8481
8482 /* Override any GCC internal prototype to avoid an error.
8483    Use char because int might match the return type of a GCC
8484    builtin and then its argument prototype would still apply.  */
8485 #ifdef __cplusplus
8486 extern "C"
8487 #endif
8488 char ngettext ();
8489 int
8490 main ()
8491 {
8492 return ngettext ();
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 if ac_fn_c_try_link "$LINENO"; then :
8498   ac_cv_lib_intl_ngettext=yes
8499 else
8500   ac_cv_lib_intl_ngettext=no
8501 fi
8502 rm -f core conftest.err conftest.$ac_objext \
8503     conftest$ac_exeext conftest.$ac_ext
8504 LIBS=$ac_check_lib_save_LIBS
8505 fi
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
8507 $as_echo "$ac_cv_lib_intl_ngettext" >&6; }
8508 if test "x$ac_cv_lib_intl_ngettext" = xyes; then :
8509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
8510 $as_echo_n "checking for dcgettext in -lintl... " >&6; }
8511 if ${ac_cv_lib_intl_dcgettext+:} false; then :
8512   $as_echo_n "(cached) " >&6
8513 else
8514   ac_check_lib_save_LIBS=$LIBS
8515 LIBS="-lintl -liconv $LIBS"
8516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8517 /* end confdefs.h.  */
8518
8519 /* Override any GCC internal prototype to avoid an error.
8520    Use char because int might match the return type of a GCC
8521    builtin and then its argument prototype would still apply.  */
8522 #ifdef __cplusplus
8523 extern "C"
8524 #endif
8525 char dcgettext ();
8526 int
8527 main ()
8528 {
8529 return dcgettext ();
8530   ;
8531   return 0;
8532 }
8533 _ACEOF
8534 if ac_fn_c_try_link "$LINENO"; then :
8535   ac_cv_lib_intl_dcgettext=yes
8536 else
8537   ac_cv_lib_intl_dcgettext=no
8538 fi
8539 rm -f core conftest.err conftest.$ac_objext \
8540     conftest$ac_exeext conftest.$ac_ext
8541 LIBS=$ac_check_lib_save_LIBS
8542 fi
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
8544 $as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
8545 if test "x$ac_cv_lib_intl_dcgettext" = xyes; then :
8546   gt_cv_func_dgettext_libintl=yes
8547                         libintl_extra_libs=-liconv
8548 else
8549   :
8550 fi
8551
8552 else
8553   :
8554 fi
8555
8556         fi
8557
8558         #
8559         # If we found libintl, then check in it for bind_textdomain_codeset();
8560         # we'll prefer libc if neither have bind_textdomain_codeset(),
8561         # and both have dgettext and ngettext
8562         #
8563         if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8564           glib_save_LIBS="$LIBS"
8565           LIBS="$LIBS -lintl $libintl_extra_libs"
8566           unset ac_cv_func_bind_textdomain_codeset
8567           for ac_func in bind_textdomain_codeset
8568 do :
8569   ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8570 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8571   cat >>confdefs.h <<_ACEOF
8572 #define HAVE_BIND_TEXTDOMAIN_CODESET 1
8573 _ACEOF
8574
8575 fi
8576 done
8577
8578           LIBS="$glib_save_LIBS"
8579
8580           if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8581             gt_cv_func_dgettext_libc=no
8582           else
8583             if test "$gt_cv_func_dgettext_libc" = "yes" \
8584                 && test "$gt_cv_func_ngettext_libc" = "yes"; then
8585               gt_cv_func_dgettext_libintl=no
8586             fi
8587           fi
8588         fi
8589       fi
8590
8591       if test "$gt_cv_func_dgettext_libc" = "yes" \
8592         || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8593         gt_cv_have_gettext=yes
8594       fi
8595
8596       if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8597         INTLLIBS="-lintl $libintl_extra_libs"
8598       fi
8599
8600       if test "$gt_cv_have_gettext" = "yes"; then
8601
8602 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8603
8604         # Extract the first word of "msgfmt", so it can be a program name with args.
8605 set dummy msgfmt; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_path_MSGFMT+:} false; then :
8609   $as_echo_n "(cached) " >&6
8610 else
8611   case "$MSGFMT" in
8612   /*)
8613   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8614   ;;
8615   *)
8616   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8617   for ac_dir in $PATH; do
8618     test -z "$ac_dir" && ac_dir=.
8619     if test -f $ac_dir/$ac_word; then
8620       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
8621         ac_cv_path_MSGFMT="$ac_dir/$ac_word"
8622         break
8623       fi
8624     fi
8625   done
8626   IFS="$ac_save_ifs"
8627   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
8628   ;;
8629 esac
8630 fi
8631 MSGFMT="$ac_cv_path_MSGFMT"
8632 if test "$MSGFMT" != "no"; then
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8634 $as_echo "$MSGFMT" >&6; }
8635 else
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8638 fi
8639         if test "$MSGFMT" != "no"; then
8640           glib_save_LIBS="$LIBS"
8641           LIBS="$LIBS $INTLLIBS"
8642           for ac_func in dcgettext
8643 do :
8644   ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
8645 if test "x$ac_cv_func_dcgettext" = xyes; then :
8646   cat >>confdefs.h <<_ACEOF
8647 #define HAVE_DCGETTEXT 1
8648 _ACEOF
8649
8650 fi
8651 done
8652
8653           MSGFMT_OPTS=
8654           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
8655 $as_echo_n "checking if msgfmt accepts -c... " >&6; }
8656           cat >conftest.foo <<_ACEOF
8657
8658 msgid ""
8659 msgstr ""
8660 "Content-Type: text/plain; charset=UTF-8\n"
8661 "Project-Id-Version: test 1.0\n"
8662 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
8663 "Last-Translator: test <foo@bar.xx>\n"
8664 "Language-Team: C <LL@li.org>\n"
8665 "MIME-Version: 1.0\n"
8666 "Content-Transfer-Encoding: 8bit\n"
8667
8668 _ACEOF
8669 if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
8670   ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
8671   ac_status=$?
8672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8673   test $ac_status = 0; }; then
8674   MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8675 $as_echo "yes" >&6; }
8676 else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 echo "$as_me: failed input was:" >&5
8679 sed 's/^/| /' conftest.foo >&5
8680 fi
8681
8682           # Extract the first word of "gmsgfmt", so it can be a program name with args.
8683 set dummy gmsgfmt; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_path_GMSGFMT+:} false; then :
8687   $as_echo_n "(cached) " >&6
8688 else
8689   case $GMSGFMT in
8690   [\\/]* | ?:[\\/]*)
8691   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8692   ;;
8693   *)
8694   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8696 do
8697   IFS=$as_save_IFS
8698   test -z "$as_dir" && as_dir=.
8699     for ac_exec_ext in '' $ac_executable_extensions; do
8700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8701     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
8702     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703     break 2
8704   fi
8705 done
8706   done
8707 IFS=$as_save_IFS
8708
8709   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8710   ;;
8711 esac
8712 fi
8713 GMSGFMT=$ac_cv_path_GMSGFMT
8714 if test -n "$GMSGFMT"; then
8715   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8716 $as_echo "$GMSGFMT" >&6; }
8717 else
8718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720 fi
8721
8722
8723           # Extract the first word of "xgettext", so it can be a program name with args.
8724 set dummy xgettext; ac_word=$2
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8726 $as_echo_n "checking for $ac_word... " >&6; }
8727 if ${ac_cv_path_XGETTEXT+:} false; then :
8728   $as_echo_n "(cached) " >&6
8729 else
8730   case "$XGETTEXT" in
8731   /*)
8732   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8733   ;;
8734   *)
8735   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8736   for ac_dir in $PATH; do
8737     test -z "$ac_dir" && ac_dir=.
8738     if test -f $ac_dir/$ac_word; then
8739       if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
8740         ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
8741         break
8742       fi
8743     fi
8744   done
8745   IFS="$ac_save_ifs"
8746   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8747   ;;
8748 esac
8749 fi
8750 XGETTEXT="$ac_cv_path_XGETTEXT"
8751 if test "$XGETTEXT" != ":"; then
8752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8753 $as_echo "$XGETTEXT" >&6; }
8754 else
8755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8757 fi
8758
8759           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8760 /* end confdefs.h.  */
8761
8762 int
8763 main ()
8764 {
8765 extern int _nl_msg_cat_cntr;
8766                          return _nl_msg_cat_cntr
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 if ac_fn_c_try_link "$LINENO"; then :
8772   CATOBJEXT=.gmo
8773              DATADIRNAME=share
8774 else
8775   case $host in
8776             *-*-solaris*)
8777                                                                 ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
8778 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
8779   CATOBJEXT=.gmo
8780                DATADIRNAME=share
8781 else
8782   CATOBJEXT=.mo
8783                DATADIRNAME=lib
8784 fi
8785
8786             ;;
8787             *-*-openbsd*)
8788             CATOBJEXT=.mo
8789             DATADIRNAME=share
8790             ;;
8791             *)
8792             CATOBJEXT=.mo
8793             DATADIRNAME=lib
8794             ;;
8795             esac
8796 fi
8797 rm -f core conftest.err conftest.$ac_objext \
8798     conftest$ac_exeext conftest.$ac_ext
8799           LIBS="$glib_save_LIBS"
8800           INSTOBJEXT=.mo
8801         else
8802           gt_cv_have_gettext=no
8803         fi
8804       fi
8805
8806 fi
8807
8808
8809
8810     if test "$gt_cv_have_gettext" = "yes" ; then
8811
8812 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
8813
8814     fi
8815
8816         if test "$XGETTEXT" != ":"; then
8817                   if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8818         : ;
8819       else
8820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
8821 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
8822         XGETTEXT=":"
8823       fi
8824     fi
8825
8826     # We need to process the po/ directory.
8827     POSUB=po
8828
8829     ac_config_commands="$ac_config_commands default-1"
8830
8831
8832                 for lang in $ALL_LINGUAS; do
8833       GMOFILES="$GMOFILES $lang.gmo"
8834       POFILES="$POFILES $lang.po"
8835     done
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849    if test "$gt_cv_have_gettext" = "yes"; then
8850      if test "x$ALL_LINGUAS" = "x"; then
8851        LINGUAS=
8852      else
8853        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
8854 $as_echo_n "checking for catalogs to be installed... " >&6; }
8855        NEW_LINGUAS=
8856        for presentlang in $ALL_LINGUAS; do
8857          useit=no
8858          if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8859            desiredlanguages="$LINGUAS"
8860          else
8861            desiredlanguages="$ALL_LINGUAS"
8862          fi
8863          for desiredlang in $desiredlanguages; do
8864            # Use the presentlang catalog if desiredlang is
8865            #   a. equal to presentlang, or
8866            #   b. a variant of presentlang (because in this case,
8867            #      presentlang can be used as a fallback for messages
8868            #      which are not translated in the desiredlang catalog).
8869            case "$desiredlang" in
8870              "$presentlang"*) useit=yes;;
8871            esac
8872          done
8873          if test $useit = yes; then
8874            NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8875          fi
8876        done
8877        LINGUAS=$NEW_LINGUAS
8878        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
8879 $as_echo "$LINGUAS" >&6; }
8880      fi
8881
8882           if test -n "$LINGUAS"; then
8883        for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8884      fi
8885    fi
8886
8887             MKINSTALLDIRS=
8888    if test -n "$ac_aux_dir"; then
8889      MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8890    fi
8891    if test -z "$MKINSTALLDIRS"; then
8892      MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8893    fi
8894
8895
8896          test -d po || mkdir po
8897    if test "x$srcdir" != "x."; then
8898      if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8899        posrcprefix="$srcdir/"
8900      else
8901        posrcprefix="../$srcdir/"
8902      fi
8903    else
8904      posrcprefix="../"
8905    fi
8906    rm -f po/POTFILES
8907    sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8908         < $srcdir/po/POTFILES.in > po/POTFILES
8909
8910
8911 if test "$gt_cv_have_gettext" != "yes" ; then
8912   as_fn_error $? "
8913 *** You must have either have gettext support in your C library, or use the
8914 *** GNU gettext library. (http://www.gnu.org/software/gettext/gettext.html
8915 " "$LINENO" 5
8916 fi
8917
8918 LIBS="$INTLLIBS $LIBS"
8919
8920 GETTEXT_PACKAGE=glib20
8921
8922
8923 cat >>confdefs.h <<_ACEOF
8924 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
8925 _ACEOF
8926
8927
8928 glib_save_prefix="$prefix"
8929 glib_save_exec_prefix="$exec_prefix"
8930 glib_save_datarootdir="$datarootdir"
8931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8932 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8933 datarootdir=`eval echo "${datarootdir}"`
8934 if test "x$CATOBJEXT" = "x.mo" ; then
8935   localedir=`eval echo "${libdir}/locale"`
8936 else
8937   localedir=`eval echo "${datadir}/locale"`
8938 fi
8939 prefix="$glib_save_prefix"
8940 exec_prefix="$glib_save_exec_prefix"
8941 datarootdir="$glib_save_datarootdir"
8942
8943 cat >>confdefs.h <<_ACEOF
8944 #define GLIB_LOCALE_DIR "$localedir"
8945 _ACEOF
8946
8947
8948
8949
8950 if test x"$glib_native_win32" != xyes; then
8951   if test x$with_libiconv != xno ; then
8952     case " $INTLLIBS " in
8953     *[\ \       ]-liconv[\ \    ]*) ;;
8954     *) ICONV_LIBS="-liconv" ;;
8955     esac
8956   fi
8957 fi
8958
8959
8960 case $with_libiconv in
8961   gnu)
8962
8963 $as_echo "#define USE_LIBICONV_GNU 1" >>confdefs.h
8964
8965     ;;
8966   native)
8967
8968 $as_echo "#define USE_LIBICONV_NATIVE 1" >>confdefs.h
8969
8970     ;;
8971 esac
8972
8973
8974 case `pwd` in
8975   *\ * | *\     *)
8976     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8977 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8978 esac
8979
8980
8981
8982 macro_version='2.4.2'
8983 macro_revision='1.3337'
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997 ltmain="$ac_aux_dir/ltmain.sh"
8998
8999 # Backslashify metacharacters that are still active within
9000 # double-quoted strings.
9001 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9002
9003 # Same as above, but do not quote variable references.
9004 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9005
9006 # Sed substitution to delay expansion of an escaped shell variable in a
9007 # double_quote_subst'ed string.
9008 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9009
9010 # Sed substitution to delay expansion of an escaped single quote.
9011 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9012
9013 # Sed substitution to avoid accidental globbing in evaled expressions
9014 no_glob_subst='s/\*/\\\*/g'
9015
9016 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
9017 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
9018 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
9019
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
9021 $as_echo_n "checking how to print strings... " >&6; }
9022 # Test print first, because it will be a builtin if present.
9023 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
9024    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
9025   ECHO='print -r --'
9026 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
9027   ECHO='printf %s\n'
9028 else
9029   # Use this function as a fallback that always works.
9030   func_fallback_echo ()
9031   {
9032     eval 'cat <<_LTECHO_EOF
9033 $1
9034 _LTECHO_EOF'
9035   }
9036   ECHO='func_fallback_echo'
9037 fi
9038
9039 # func_echo_all arg...
9040 # Invoke $ECHO with all args, space-separated.
9041 func_echo_all ()
9042 {
9043     $ECHO ""
9044 }
9045
9046 case "$ECHO" in
9047   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
9048 $as_echo "printf" >&6; } ;;
9049   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
9050 $as_echo "print -r" >&6; } ;;
9051   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
9052 $as_echo "cat" >&6; } ;;
9053 esac
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
9069 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
9070 if ${ac_cv_path_SED+:} false; then :
9071   $as_echo_n "(cached) " >&6
9072 else
9073             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
9074      for ac_i in 1 2 3 4 5 6 7; do
9075        ac_script="$ac_script$as_nl$ac_script"
9076      done
9077      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
9078      { ac_script=; unset ac_script;}
9079      if test -z "$SED"; then
9080   ac_path_SED_found=false
9081   # Loop through the user's path and test for each of PROGNAME-LIST
9082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9083 for as_dir in $PATH
9084 do
9085   IFS=$as_save_IFS
9086   test -z "$as_dir" && as_dir=.
9087     for ac_prog in sed gsed; do
9088     for ac_exec_ext in '' $ac_executable_extensions; do
9089       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
9090       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
9091 # Check for GNU ac_path_SED and select it if it is found.
9092   # Check for GNU $ac_path_SED
9093 case `"$ac_path_SED" --version 2>&1` in
9094 *GNU*)
9095   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
9096 *)
9097   ac_count=0
9098   $as_echo_n 0123456789 >"conftest.in"
9099   while :
9100   do
9101     cat "conftest.in" "conftest.in" >"conftest.tmp"
9102     mv "conftest.tmp" "conftest.in"
9103     cp "conftest.in" "conftest.nl"
9104     $as_echo '' >> "conftest.nl"
9105     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
9106     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9107     as_fn_arith $ac_count + 1 && ac_count=$as_val
9108     if test $ac_count -gt ${ac_path_SED_max-0}; then
9109       # Best one so far, save it but keep looking for a better one
9110       ac_cv_path_SED="$ac_path_SED"
9111       ac_path_SED_max=$ac_count
9112     fi
9113     # 10*(2^10) chars as input seems more than enough
9114     test $ac_count -gt 10 && break
9115   done
9116   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9117 esac
9118
9119       $ac_path_SED_found && break 3
9120     done
9121   done
9122   done
9123 IFS=$as_save_IFS
9124   if test -z "$ac_cv_path_SED"; then
9125     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
9126   fi
9127 else
9128   ac_cv_path_SED=$SED
9129 fi
9130
9131 fi
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
9133 $as_echo "$ac_cv_path_SED" >&6; }
9134  SED="$ac_cv_path_SED"
9135   rm -f conftest.sed
9136
9137 test -z "$SED" && SED=sed
9138 Xsed="$SED -e 1s/^X//"
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
9151 $as_echo_n "checking for fgrep... " >&6; }
9152 if ${ac_cv_path_FGREP+:} false; then :
9153   $as_echo_n "(cached) " >&6
9154 else
9155   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
9156    then ac_cv_path_FGREP="$GREP -F"
9157    else
9158      if test -z "$FGREP"; then
9159   ac_path_FGREP_found=false
9160   # Loop through the user's path and test for each of PROGNAME-LIST
9161   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9162 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9163 do
9164   IFS=$as_save_IFS
9165   test -z "$as_dir" && as_dir=.
9166     for ac_prog in fgrep; do
9167     for ac_exec_ext in '' $ac_executable_extensions; do
9168       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
9169       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
9170 # Check for GNU ac_path_FGREP and select it if it is found.
9171   # Check for GNU $ac_path_FGREP
9172 case `"$ac_path_FGREP" --version 2>&1` in
9173 *GNU*)
9174   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
9175 *)
9176   ac_count=0
9177   $as_echo_n 0123456789 >"conftest.in"
9178   while :
9179   do
9180     cat "conftest.in" "conftest.in" >"conftest.tmp"
9181     mv "conftest.tmp" "conftest.in"
9182     cp "conftest.in" "conftest.nl"
9183     $as_echo 'FGREP' >> "conftest.nl"
9184     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
9185     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9186     as_fn_arith $ac_count + 1 && ac_count=$as_val
9187     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
9188       # Best one so far, save it but keep looking for a better one
9189       ac_cv_path_FGREP="$ac_path_FGREP"
9190       ac_path_FGREP_max=$ac_count
9191     fi
9192     # 10*(2^10) chars as input seems more than enough
9193     test $ac_count -gt 10 && break
9194   done
9195   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
9196 esac
9197
9198       $ac_path_FGREP_found && break 3
9199     done
9200   done
9201   done
9202 IFS=$as_save_IFS
9203   if test -z "$ac_cv_path_FGREP"; then
9204     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
9205   fi
9206 else
9207   ac_cv_path_FGREP=$FGREP
9208 fi
9209
9210    fi
9211 fi
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
9213 $as_echo "$ac_cv_path_FGREP" >&6; }
9214  FGREP="$ac_cv_path_FGREP"
9215
9216
9217 test -z "$GREP" && GREP=grep
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237 # Check whether --with-gnu-ld was given.
9238 if test "${with_gnu_ld+set}" = set; then :
9239   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
9240 else
9241   with_gnu_ld=no
9242 fi
9243
9244 ac_prog=ld
9245 if test "$GCC" = yes; then
9246   # Check if gcc -print-prog-name=ld gives a path.
9247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
9248 $as_echo_n "checking for ld used by $CC... " >&6; }
9249   case $host in
9250   *-*-mingw*)
9251     # gcc leaves a trailing carriage return which upsets mingw
9252     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9253   *)
9254     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9255   esac
9256   case $ac_prog in
9257     # Accept absolute paths.
9258     [\\/]* | ?:[\\/]*)
9259       re_direlt='/[^/][^/]*/\.\./'
9260       # Canonicalize the pathname of ld
9261       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
9262       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
9263         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
9264       done
9265       test -z "$LD" && LD="$ac_prog"
9266       ;;
9267   "")
9268     # If it fails, then pretend we aren't using GCC.
9269     ac_prog=ld
9270     ;;
9271   *)
9272     # If it is relative, then search for the first ld in PATH.
9273     with_gnu_ld=unknown
9274     ;;
9275   esac
9276 elif test "$with_gnu_ld" = yes; then
9277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
9278 $as_echo_n "checking for GNU ld... " >&6; }
9279 else
9280   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
9281 $as_echo_n "checking for non-GNU ld... " >&6; }
9282 fi
9283 if ${lt_cv_path_LD+:} false; then :
9284   $as_echo_n "(cached) " >&6
9285 else
9286   if test -z "$LD"; then
9287   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9288   for ac_dir in $PATH; do
9289     IFS="$lt_save_ifs"
9290     test -z "$ac_dir" && ac_dir=.
9291     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9292       lt_cv_path_LD="$ac_dir/$ac_prog"
9293       # Check to see if the program is GNU ld.  I'd rather use --version,
9294       # but apparently some variants of GNU ld only accept -v.
9295       # Break only if it was the GNU/non-GNU ld that we prefer.
9296       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9297       *GNU* | *'with BFD'*)
9298         test "$with_gnu_ld" != no && break
9299         ;;
9300       *)
9301         test "$with_gnu_ld" != yes && break
9302         ;;
9303       esac
9304     fi
9305   done
9306   IFS="$lt_save_ifs"
9307 else
9308   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9309 fi
9310 fi
9311
9312 LD="$lt_cv_path_LD"
9313 if test -n "$LD"; then
9314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
9315 $as_echo "$LD" >&6; }
9316 else
9317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9319 fi
9320 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
9322 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
9323 if ${lt_cv_prog_gnu_ld+:} false; then :
9324   $as_echo_n "(cached) " >&6
9325 else
9326   # I'd rather use --version here, but apparently some GNU lds only accept -v.
9327 case `$LD -v 2>&1 </dev/null` in
9328 *GNU* | *'with BFD'*)
9329   lt_cv_prog_gnu_ld=yes
9330   ;;
9331 *)
9332   lt_cv_prog_gnu_ld=no
9333   ;;
9334 esac
9335 fi
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
9337 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
9338 with_gnu_ld=$lt_cv_prog_gnu_ld
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9349 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9350 if ${lt_cv_path_NM+:} false; then :
9351   $as_echo_n "(cached) " >&6
9352 else
9353   if test -n "$NM"; then
9354   # Let the user override the test.
9355   lt_cv_path_NM="$NM"
9356 else
9357   lt_nm_to_check="${ac_tool_prefix}nm"
9358   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9359     lt_nm_to_check="$lt_nm_to_check nm"
9360   fi
9361   for lt_tmp_nm in $lt_nm_to_check; do
9362     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9363     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9364       IFS="$lt_save_ifs"
9365       test -z "$ac_dir" && ac_dir=.
9366       tmp_nm="$ac_dir/$lt_tmp_nm"
9367       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9368         # Check to see if the nm accepts a BSD-compat flag.
9369         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9370         #   nm: unknown option "B" ignored
9371         # Tru64's nm complains that /dev/null is an invalid object file
9372         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9373         */dev/null* | *'Invalid file or object type'*)
9374           lt_cv_path_NM="$tmp_nm -B"
9375           break
9376           ;;
9377         *)
9378           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9379           */dev/null*)
9380             lt_cv_path_NM="$tmp_nm -p"
9381             break
9382             ;;
9383           *)
9384             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9385             continue # so that we can try to find one that supports BSD flags
9386             ;;
9387           esac
9388           ;;
9389         esac
9390       fi
9391     done
9392     IFS="$lt_save_ifs"
9393   done
9394   : ${lt_cv_path_NM=no}
9395 fi
9396 fi
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9398 $as_echo "$lt_cv_path_NM" >&6; }
9399 if test "$lt_cv_path_NM" != "no"; then
9400   NM="$lt_cv_path_NM"
9401 else
9402   # Didn't find any BSD compatible name lister, look for dumpbin.
9403   if test -n "$DUMPBIN"; then :
9404     # Let the user override the test.
9405   else
9406     if test -n "$ac_tool_prefix"; then
9407   for ac_prog in dumpbin "link -dump"
9408   do
9409     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9412 $as_echo_n "checking for $ac_word... " >&6; }
9413 if ${ac_cv_prog_DUMPBIN+:} false; then :
9414   $as_echo_n "(cached) " >&6
9415 else
9416   if test -n "$DUMPBIN"; then
9417   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9418 else
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in $PATH
9421 do
9422   IFS=$as_save_IFS
9423   test -z "$as_dir" && as_dir=.
9424     for ac_exec_ext in '' $ac_executable_extensions; do
9425   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9426     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9427     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9428     break 2
9429   fi
9430 done
9431   done
9432 IFS=$as_save_IFS
9433
9434 fi
9435 fi
9436 DUMPBIN=$ac_cv_prog_DUMPBIN
9437 if test -n "$DUMPBIN"; then
9438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9439 $as_echo "$DUMPBIN" >&6; }
9440 else
9441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9442 $as_echo "no" >&6; }
9443 fi
9444
9445
9446     test -n "$DUMPBIN" && break
9447   done
9448 fi
9449 if test -z "$DUMPBIN"; then
9450   ac_ct_DUMPBIN=$DUMPBIN
9451   for ac_prog in dumpbin "link -dump"
9452 do
9453   # Extract the first word of "$ac_prog", so it can be a program name with args.
9454 set dummy $ac_prog; ac_word=$2
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 $as_echo_n "checking for $ac_word... " >&6; }
9457 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9458   $as_echo_n "(cached) " >&6
9459 else
9460   if test -n "$ac_ct_DUMPBIN"; then
9461   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9462 else
9463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9464 for as_dir in $PATH
9465 do
9466   IFS=$as_save_IFS
9467   test -z "$as_dir" && as_dir=.
9468     for ac_exec_ext in '' $ac_executable_extensions; do
9469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9470     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9472     break 2
9473   fi
9474 done
9475   done
9476 IFS=$as_save_IFS
9477
9478 fi
9479 fi
9480 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9481 if test -n "$ac_ct_DUMPBIN"; then
9482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9483 $as_echo "$ac_ct_DUMPBIN" >&6; }
9484 else
9485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9486 $as_echo "no" >&6; }
9487 fi
9488
9489
9490   test -n "$ac_ct_DUMPBIN" && break
9491 done
9492
9493   if test "x$ac_ct_DUMPBIN" = x; then
9494     DUMPBIN=":"
9495   else
9496     case $cross_compiling:$ac_tool_warned in
9497 yes:)
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9500 ac_tool_warned=yes ;;
9501 esac
9502     DUMPBIN=$ac_ct_DUMPBIN
9503   fi
9504 fi
9505
9506     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9507     *COFF*)
9508       DUMPBIN="$DUMPBIN -symbols"
9509       ;;
9510     *)
9511       DUMPBIN=:
9512       ;;
9513     esac
9514   fi
9515
9516   if test "$DUMPBIN" != ":"; then
9517     NM="$DUMPBIN"
9518   fi
9519 fi
9520 test -z "$NM" && NM=nm
9521
9522
9523
9524
9525
9526
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9528 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9529 if ${lt_cv_nm_interface+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   lt_cv_nm_interface="BSD nm"
9533   echo "int some_variable = 0;" > conftest.$ac_ext
9534   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9535   (eval "$ac_compile" 2>conftest.err)
9536   cat conftest.err >&5
9537   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9538   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9539   cat conftest.err >&5
9540   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9541   cat conftest.out >&5
9542   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9543     lt_cv_nm_interface="MS dumpbin"
9544   fi
9545   rm -f conftest*
9546 fi
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9548 $as_echo "$lt_cv_nm_interface" >&6; }
9549
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9551 $as_echo_n "checking whether ln -s works... " >&6; }
9552 LN_S=$as_ln_s
9553 if test "$LN_S" = "ln -s"; then
9554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9555 $as_echo "yes" >&6; }
9556 else
9557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9558 $as_echo "no, using $LN_S" >&6; }
9559 fi
9560
9561 # find the maximum length of command line arguments
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9563 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9564 if ${lt_cv_sys_max_cmd_len+:} false; then :
9565   $as_echo_n "(cached) " >&6
9566 else
9567     i=0
9568   teststring="ABCD"
9569
9570   case $build_os in
9571   msdosdjgpp*)
9572     # On DJGPP, this test can blow up pretty badly due to problems in libc
9573     # (any single argument exceeding 2000 bytes causes a buffer overrun
9574     # during glob expansion).  Even if it were fixed, the result of this
9575     # check would be larger than it should be.
9576     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9577     ;;
9578
9579   gnu*)
9580     # Under GNU Hurd, this test is not required because there is
9581     # no limit to the length of command line arguments.
9582     # Libtool will interpret -1 as no limit whatsoever
9583     lt_cv_sys_max_cmd_len=-1;
9584     ;;
9585
9586   cygwin* | mingw* | cegcc*)
9587     # On Win9x/ME, this test blows up -- it succeeds, but takes
9588     # about 5 minutes as the teststring grows exponentially.
9589     # Worse, since 9x/ME are not pre-emptively multitasking,
9590     # you end up with a "frozen" computer, even though with patience
9591     # the test eventually succeeds (with a max line length of 256k).
9592     # Instead, let's just punt: use the minimum linelength reported by
9593     # all of the supported platforms: 8192 (on NT/2K/XP).
9594     lt_cv_sys_max_cmd_len=8192;
9595     ;;
9596
9597   mint*)
9598     # On MiNT this can take a long time and run out of memory.
9599     lt_cv_sys_max_cmd_len=8192;
9600     ;;
9601
9602   amigaos*)
9603     # On AmigaOS with pdksh, this test takes hours, literally.
9604     # So we just punt and use a minimum line length of 8192.
9605     lt_cv_sys_max_cmd_len=8192;
9606     ;;
9607
9608   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9609     # This has been around since 386BSD, at least.  Likely further.
9610     if test -x /sbin/sysctl; then
9611       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9612     elif test -x /usr/sbin/sysctl; then
9613       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9614     else
9615       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
9616     fi
9617     # And add a safety zone
9618     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9619     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9620     ;;
9621
9622   interix*)
9623     # We know the value 262144 and hardcode it with a safety zone (like BSD)
9624     lt_cv_sys_max_cmd_len=196608
9625     ;;
9626
9627   os2*)
9628     # The test takes a long time on OS/2.
9629     lt_cv_sys_max_cmd_len=8192
9630     ;;
9631
9632   osf*)
9633     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9634     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9635     # nice to cause kernel panics so lets avoid the loop below.
9636     # First set a reasonable default.
9637     lt_cv_sys_max_cmd_len=16384
9638     #
9639     if test -x /sbin/sysconfig; then
9640       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9641         *1*) lt_cv_sys_max_cmd_len=-1 ;;
9642       esac
9643     fi
9644     ;;
9645   sco3.2v5*)
9646     lt_cv_sys_max_cmd_len=102400
9647     ;;
9648   sysv5* | sco5v6* | sysv4.2uw2*)
9649     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9650     if test -n "$kargmax"; then
9651       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
9652     else
9653       lt_cv_sys_max_cmd_len=32768
9654     fi
9655     ;;
9656   *)
9657     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9658     if test -n "$lt_cv_sys_max_cmd_len"; then
9659       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9660       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9661     else
9662       # Make teststring a little bigger before we do anything with it.
9663       # a 1K string should be a reasonable start.
9664       for i in 1 2 3 4 5 6 7 8 ; do
9665         teststring=$teststring$teststring
9666       done
9667       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9668       # If test is not a shell built-in, we'll probably end up computing a
9669       # maximum length that is only half of the actual maximum length, but
9670       # we can't tell.
9671       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
9672                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9673               test $i != 17 # 1/2 MB should be enough
9674       do
9675         i=`expr $i + 1`
9676         teststring=$teststring$teststring
9677       done
9678       # Only check the string length outside the loop.
9679       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9680       teststring=
9681       # Add a significant safety factor because C++ compilers can tack on
9682       # massive amounts of additional arguments before passing them to the
9683       # linker.  It appears as though 1/2 is a usable value.
9684       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9685     fi
9686     ;;
9687   esac
9688
9689 fi
9690
9691 if test -n $lt_cv_sys_max_cmd_len ; then
9692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9693 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9694 else
9695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9696 $as_echo "none" >&6; }
9697 fi
9698 max_cmd_len=$lt_cv_sys_max_cmd_len
9699
9700
9701
9702
9703
9704
9705 : ${CP="cp -f"}
9706 : ${MV="mv -f"}
9707 : ${RM="rm -f"}
9708
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9710 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9711 # Try some XSI features
9712 xsi_shell=no
9713 ( _lt_dummy="a/b/c"
9714   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9715       = c,a/b,b/c, \
9716     && eval 'test $(( 1 + 1 )) -eq 2 \
9717     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9718   && xsi_shell=yes
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9720 $as_echo "$xsi_shell" >&6; }
9721
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9724 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9725 lt_shell_append=no
9726 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9727     >/dev/null 2>&1 \
9728   && lt_shell_append=yes
9729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9730 $as_echo "$lt_shell_append" >&6; }
9731
9732
9733 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9734   lt_unset=unset
9735 else
9736   lt_unset=false
9737 fi
9738
9739
9740
9741
9742
9743 # test EBCDIC or ASCII
9744 case `echo X|tr X '\101'` in
9745  A) # ASCII based system
9746     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9747   lt_SP2NL='tr \040 \012'
9748   lt_NL2SP='tr \015\012 \040\040'
9749   ;;
9750  *) # EBCDIC based system
9751   lt_SP2NL='tr \100 \n'
9752   lt_NL2SP='tr \r\n \100\100'
9753   ;;
9754 esac
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9765 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9766 if ${lt_cv_to_host_file_cmd+:} false; then :
9767   $as_echo_n "(cached) " >&6
9768 else
9769   case $host in
9770   *-*-mingw* )
9771     case $build in
9772       *-*-mingw* ) # actually msys
9773         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9774         ;;
9775       *-*-cygwin* )
9776         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9777         ;;
9778       * ) # otherwise, assume *nix
9779         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9780         ;;
9781     esac
9782     ;;
9783   *-*-cygwin* )
9784     case $build in
9785       *-*-mingw* ) # actually msys
9786         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9787         ;;
9788       *-*-cygwin* )
9789         lt_cv_to_host_file_cmd=func_convert_file_noop
9790         ;;
9791       * ) # otherwise, assume *nix
9792         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9793         ;;
9794     esac
9795     ;;
9796   * ) # unhandled hosts (and "normal" native builds)
9797     lt_cv_to_host_file_cmd=func_convert_file_noop
9798     ;;
9799 esac
9800
9801 fi
9802
9803 to_host_file_cmd=$lt_cv_to_host_file_cmd
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9805 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9806
9807
9808
9809
9810
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9812 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9813 if ${lt_cv_to_tool_file_cmd+:} false; then :
9814   $as_echo_n "(cached) " >&6
9815 else
9816   #assume ordinary cross tools, or native build.
9817 lt_cv_to_tool_file_cmd=func_convert_file_noop
9818 case $host in
9819   *-*-mingw* )
9820     case $build in
9821       *-*-mingw* ) # actually msys
9822         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9823         ;;
9824     esac
9825     ;;
9826 esac
9827
9828 fi
9829
9830 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9832 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9833
9834
9835
9836
9837
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9839 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9840 if ${lt_cv_ld_reload_flag+:} false; then :
9841   $as_echo_n "(cached) " >&6
9842 else
9843   lt_cv_ld_reload_flag='-r'
9844 fi
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9846 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9847 reload_flag=$lt_cv_ld_reload_flag
9848 case $reload_flag in
9849 "" | " "*) ;;
9850 *) reload_flag=" $reload_flag" ;;
9851 esac
9852 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9853 case $host_os in
9854   cygwin* | mingw* | pw32* | cegcc*)
9855     if test "$GCC" != yes; then
9856       reload_cmds=false
9857     fi
9858     ;;
9859   darwin*)
9860     if test "$GCC" = yes; then
9861       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9862     else
9863       reload_cmds='$LD$reload_flag -o $output$reload_objs'
9864     fi
9865     ;;
9866 esac
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876 if test -n "$ac_tool_prefix"; then
9877   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9878 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9880 $as_echo_n "checking for $ac_word... " >&6; }
9881 if ${ac_cv_prog_OBJDUMP+:} false; then :
9882   $as_echo_n "(cached) " >&6
9883 else
9884   if test -n "$OBJDUMP"; then
9885   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9886 else
9887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888 for as_dir in $PATH
9889 do
9890   IFS=$as_save_IFS
9891   test -z "$as_dir" && as_dir=.
9892     for ac_exec_ext in '' $ac_executable_extensions; do
9893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9894     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9896     break 2
9897   fi
9898 done
9899   done
9900 IFS=$as_save_IFS
9901
9902 fi
9903 fi
9904 OBJDUMP=$ac_cv_prog_OBJDUMP
9905 if test -n "$OBJDUMP"; then
9906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9907 $as_echo "$OBJDUMP" >&6; }
9908 else
9909   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9910 $as_echo "no" >&6; }
9911 fi
9912
9913
9914 fi
9915 if test -z "$ac_cv_prog_OBJDUMP"; then
9916   ac_ct_OBJDUMP=$OBJDUMP
9917   # Extract the first word of "objdump", so it can be a program name with args.
9918 set dummy objdump; ac_word=$2
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9920 $as_echo_n "checking for $ac_word... " >&6; }
9921 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9922   $as_echo_n "(cached) " >&6
9923 else
9924   if test -n "$ac_ct_OBJDUMP"; then
9925   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9926 else
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9928 for as_dir in $PATH
9929 do
9930   IFS=$as_save_IFS
9931   test -z "$as_dir" && as_dir=.
9932     for ac_exec_ext in '' $ac_executable_extensions; do
9933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9935     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9936     break 2
9937   fi
9938 done
9939   done
9940 IFS=$as_save_IFS
9941
9942 fi
9943 fi
9944 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9945 if test -n "$ac_ct_OBJDUMP"; then
9946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9947 $as_echo "$ac_ct_OBJDUMP" >&6; }
9948 else
9949   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9950 $as_echo "no" >&6; }
9951 fi
9952
9953   if test "x$ac_ct_OBJDUMP" = x; then
9954     OBJDUMP="false"
9955   else
9956     case $cross_compiling:$ac_tool_warned in
9957 yes:)
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9960 ac_tool_warned=yes ;;
9961 esac
9962     OBJDUMP=$ac_ct_OBJDUMP
9963   fi
9964 else
9965   OBJDUMP="$ac_cv_prog_OBJDUMP"
9966 fi
9967
9968 test -z "$OBJDUMP" && OBJDUMP=objdump
9969
9970
9971
9972
9973
9974
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9976 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9977 if ${lt_cv_deplibs_check_method+:} false; then :
9978   $as_echo_n "(cached) " >&6
9979 else
9980   lt_cv_file_magic_cmd='$MAGIC_CMD'
9981 lt_cv_file_magic_test_file=
9982 lt_cv_deplibs_check_method='unknown'
9983 # Need to set the preceding variable on all platforms that support
9984 # interlibrary dependencies.
9985 # 'none' -- dependencies not supported.
9986 # `unknown' -- same as none, but documents that we really don't know.
9987 # 'pass_all' -- all dependencies passed with no checks.
9988 # 'test_compile' -- check by making test program.
9989 # 'file_magic [[regex]]' -- check by looking for files in library path
9990 # which responds to the $file_magic_cmd with a given extended regex.
9991 # If you have `file' or equivalent on your system and you're not sure
9992 # whether `pass_all' will *always* work, you probably want this one.
9993
9994 case $host_os in
9995 aix[4-9]*)
9996   lt_cv_deplibs_check_method=pass_all
9997   ;;
9998
9999 beos*)
10000   lt_cv_deplibs_check_method=pass_all
10001   ;;
10002
10003 bsdi[45]*)
10004   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10005   lt_cv_file_magic_cmd='/usr/bin/file -L'
10006   lt_cv_file_magic_test_file=/shlib/libc.so
10007   ;;
10008
10009 cygwin*)
10010   # func_win32_libid is a shell function defined in ltmain.sh
10011   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10012   lt_cv_file_magic_cmd='func_win32_libid'
10013   ;;
10014
10015 mingw* | pw32*)
10016   # Base MSYS/MinGW do not provide the 'file' command needed by
10017   # func_win32_libid shell function, so use a weaker test based on 'objdump',
10018   # unless we find 'file', for example because we are cross-compiling.
10019   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10020   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10021     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10022     lt_cv_file_magic_cmd='func_win32_libid'
10023   else
10024     # Keep this pattern in sync with the one in func_win32_libid.
10025     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10026     lt_cv_file_magic_cmd='$OBJDUMP -f'
10027   fi
10028   ;;
10029
10030 cegcc*)
10031   # use the weaker test based on 'objdump'. See mingw*.
10032   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10033   lt_cv_file_magic_cmd='$OBJDUMP -f'
10034   ;;
10035
10036 darwin* | rhapsody*)
10037   lt_cv_deplibs_check_method=pass_all
10038   ;;
10039
10040 freebsd* | dragonfly*)
10041   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10042     case $host_cpu in
10043     i*86 )
10044       # Not sure whether the presence of OpenBSD here was a mistake.
10045       # Let's accept both of them until this is cleared up.
10046       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10047       lt_cv_file_magic_cmd=/usr/bin/file
10048       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10049       ;;
10050     esac
10051   else
10052     lt_cv_deplibs_check_method=pass_all
10053   fi
10054   ;;
10055
10056 gnu*)
10057   lt_cv_deplibs_check_method=pass_all
10058   ;;
10059
10060 haiku*)
10061   lt_cv_deplibs_check_method=pass_all
10062   ;;
10063
10064 hpux10.20* | hpux11*)
10065   lt_cv_file_magic_cmd=/usr/bin/file
10066   case $host_cpu in
10067   ia64*)
10068     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10069     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10070     ;;
10071   hppa*64*)
10072     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]'
10073     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10074     ;;
10075   *)
10076     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10077     lt_cv_file_magic_test_file=/usr/lib/libc.sl
10078     ;;
10079   esac
10080   ;;
10081
10082 interix[3-9]*)
10083   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10084   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10085   ;;
10086
10087 irix5* | irix6* | nonstopux*)
10088   case $LD in
10089   *-32|*"-32 ") libmagic=32-bit;;
10090   *-n32|*"-n32 ") libmagic=N32;;
10091   *-64|*"-64 ") libmagic=64-bit;;
10092   *) libmagic=never-match;;
10093   esac
10094   lt_cv_deplibs_check_method=pass_all
10095   ;;
10096
10097 # This must be glibc/ELF.
10098 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10099   lt_cv_deplibs_check_method=pass_all
10100   ;;
10101
10102 netbsd*)
10103   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10104     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10105   else
10106     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10107   fi
10108   ;;
10109
10110 newos6*)
10111   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10112   lt_cv_file_magic_cmd=/usr/bin/file
10113   lt_cv_file_magic_test_file=/usr/lib/libnls.so
10114   ;;
10115
10116 *nto* | *qnx*)
10117   lt_cv_deplibs_check_method=pass_all
10118   ;;
10119
10120 openbsd*)
10121   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10122     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10123   else
10124     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10125   fi
10126   ;;
10127
10128 osf3* | osf4* | osf5*)
10129   lt_cv_deplibs_check_method=pass_all
10130   ;;
10131
10132 rdos*)
10133   lt_cv_deplibs_check_method=pass_all
10134   ;;
10135
10136 solaris*)
10137   lt_cv_deplibs_check_method=pass_all
10138   ;;
10139
10140 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10141   lt_cv_deplibs_check_method=pass_all
10142   ;;
10143
10144 sysv4 | sysv4.3*)
10145   case $host_vendor in
10146   motorola)
10147     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]'
10148     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10149     ;;
10150   ncr)
10151     lt_cv_deplibs_check_method=pass_all
10152     ;;
10153   sequent)
10154     lt_cv_file_magic_cmd='/bin/file'
10155     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10156     ;;
10157   sni)
10158     lt_cv_file_magic_cmd='/bin/file'
10159     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10160     lt_cv_file_magic_test_file=/lib/libc.so
10161     ;;
10162   siemens)
10163     lt_cv_deplibs_check_method=pass_all
10164     ;;
10165   pc)
10166     lt_cv_deplibs_check_method=pass_all
10167     ;;
10168   esac
10169   ;;
10170
10171 tpf*)
10172   lt_cv_deplibs_check_method=pass_all
10173   ;;
10174 esac
10175
10176 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10178 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10179
10180 file_magic_glob=
10181 want_nocaseglob=no
10182 if test "$build" = "$host"; then
10183   case $host_os in
10184   mingw* | pw32*)
10185     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10186       want_nocaseglob=yes
10187     else
10188       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10189     fi
10190     ;;
10191   esac
10192 fi
10193
10194 file_magic_cmd=$lt_cv_file_magic_cmd
10195 deplibs_check_method=$lt_cv_deplibs_check_method
10196 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219 if test -n "$ac_tool_prefix"; then
10220   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10221 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_prog_DLLTOOL+:} false; then :
10225   $as_echo_n "(cached) " >&6
10226 else
10227   if test -n "$DLLTOOL"; then
10228   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10229 else
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10232 do
10233   IFS=$as_save_IFS
10234   test -z "$as_dir" && as_dir=.
10235     for ac_exec_ext in '' $ac_executable_extensions; do
10236   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10237     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10239     break 2
10240   fi
10241 done
10242   done
10243 IFS=$as_save_IFS
10244
10245 fi
10246 fi
10247 DLLTOOL=$ac_cv_prog_DLLTOOL
10248 if test -n "$DLLTOOL"; then
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10250 $as_echo "$DLLTOOL" >&6; }
10251 else
10252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10254 fi
10255
10256
10257 fi
10258 if test -z "$ac_cv_prog_DLLTOOL"; then
10259   ac_ct_DLLTOOL=$DLLTOOL
10260   # Extract the first word of "dlltool", so it can be a program name with args.
10261 set dummy dlltool; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10265   $as_echo_n "(cached) " >&6
10266 else
10267   if test -n "$ac_ct_DLLTOOL"; then
10268   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10269 else
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10272 do
10273   IFS=$as_save_IFS
10274   test -z "$as_dir" && as_dir=.
10275     for ac_exec_ext in '' $ac_executable_extensions; do
10276   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10277     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10278     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10279     break 2
10280   fi
10281 done
10282   done
10283 IFS=$as_save_IFS
10284
10285 fi
10286 fi
10287 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10288 if test -n "$ac_ct_DLLTOOL"; then
10289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10290 $as_echo "$ac_ct_DLLTOOL" >&6; }
10291 else
10292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10294 fi
10295
10296   if test "x$ac_ct_DLLTOOL" = x; then
10297     DLLTOOL="false"
10298   else
10299     case $cross_compiling:$ac_tool_warned in
10300 yes:)
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10303 ac_tool_warned=yes ;;
10304 esac
10305     DLLTOOL=$ac_ct_DLLTOOL
10306   fi
10307 else
10308   DLLTOOL="$ac_cv_prog_DLLTOOL"
10309 fi
10310
10311 test -z "$DLLTOOL" && DLLTOOL=dlltool
10312
10313
10314
10315
10316
10317
10318
10319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10320 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10321 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10322   $as_echo_n "(cached) " >&6
10323 else
10324   lt_cv_sharedlib_from_linklib_cmd='unknown'
10325
10326 case $host_os in
10327 cygwin* | mingw* | pw32* | cegcc*)
10328   # two different shell functions defined in ltmain.sh
10329   # decide which to use based on capabilities of $DLLTOOL
10330   case `$DLLTOOL --help 2>&1` in
10331   *--identify-strict*)
10332     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10333     ;;
10334   *)
10335     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10336     ;;
10337   esac
10338   ;;
10339 *)
10340   # fallback: assume linklib IS sharedlib
10341   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10342   ;;
10343 esac
10344
10345 fi
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10347 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10348 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10349 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10350
10351
10352
10353
10354
10355
10356
10357 if test -n "$ac_tool_prefix"; then
10358   for ac_prog in ar
10359   do
10360     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363 $as_echo_n "checking for $ac_word... " >&6; }
10364 if ${ac_cv_prog_AR+:} false; then :
10365   $as_echo_n "(cached) " >&6
10366 else
10367   if test -n "$AR"; then
10368   ac_cv_prog_AR="$AR" # Let the user override the test.
10369 else
10370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10371 for as_dir in $PATH
10372 do
10373   IFS=$as_save_IFS
10374   test -z "$as_dir" && as_dir=.
10375     for ac_exec_ext in '' $ac_executable_extensions; do
10376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10377     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379     break 2
10380   fi
10381 done
10382   done
10383 IFS=$as_save_IFS
10384
10385 fi
10386 fi
10387 AR=$ac_cv_prog_AR
10388 if test -n "$AR"; then
10389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10390 $as_echo "$AR" >&6; }
10391 else
10392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10393 $as_echo "no" >&6; }
10394 fi
10395
10396
10397     test -n "$AR" && break
10398   done
10399 fi
10400 if test -z "$AR"; then
10401   ac_ct_AR=$AR
10402   for ac_prog in ar
10403 do
10404   # Extract the first word of "$ac_prog", so it can be a program name with args.
10405 set dummy $ac_prog; ac_word=$2
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10407 $as_echo_n "checking for $ac_word... " >&6; }
10408 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10409   $as_echo_n "(cached) " >&6
10410 else
10411   if test -n "$ac_ct_AR"; then
10412   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10413 else
10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10415 for as_dir in $PATH
10416 do
10417   IFS=$as_save_IFS
10418   test -z "$as_dir" && as_dir=.
10419     for ac_exec_ext in '' $ac_executable_extensions; do
10420   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10421     ac_cv_prog_ac_ct_AR="$ac_prog"
10422     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10423     break 2
10424   fi
10425 done
10426   done
10427 IFS=$as_save_IFS
10428
10429 fi
10430 fi
10431 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10432 if test -n "$ac_ct_AR"; then
10433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10434 $as_echo "$ac_ct_AR" >&6; }
10435 else
10436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10437 $as_echo "no" >&6; }
10438 fi
10439
10440
10441   test -n "$ac_ct_AR" && break
10442 done
10443
10444   if test "x$ac_ct_AR" = x; then
10445     AR="false"
10446   else
10447     case $cross_compiling:$ac_tool_warned in
10448 yes:)
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10451 ac_tool_warned=yes ;;
10452 esac
10453     AR=$ac_ct_AR
10454   fi
10455 fi
10456
10457 : ${AR=ar}
10458 : ${AR_FLAGS=cru}
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10471 $as_echo_n "checking for archiver @FILE support... " >&6; }
10472 if ${lt_cv_ar_at_file+:} false; then :
10473   $as_echo_n "(cached) " >&6
10474 else
10475   lt_cv_ar_at_file=no
10476    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10477 /* end confdefs.h.  */
10478
10479 int
10480 main ()
10481 {
10482
10483   ;
10484   return 0;
10485 }
10486 _ACEOF
10487 if ac_fn_c_try_compile "$LINENO"; then :
10488   echo conftest.$ac_objext > conftest.lst
10489       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10490       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10491   (eval $lt_ar_try) 2>&5
10492   ac_status=$?
10493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10494   test $ac_status = 0; }
10495       if test "$ac_status" -eq 0; then
10496         # Ensure the archiver fails upon bogus file names.
10497         rm -f conftest.$ac_objext libconftest.a
10498         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10499   (eval $lt_ar_try) 2>&5
10500   ac_status=$?
10501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10502   test $ac_status = 0; }
10503         if test "$ac_status" -ne 0; then
10504           lt_cv_ar_at_file=@
10505         fi
10506       fi
10507       rm -f conftest.* libconftest.a
10508
10509 fi
10510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10511
10512 fi
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10514 $as_echo "$lt_cv_ar_at_file" >&6; }
10515
10516 if test "x$lt_cv_ar_at_file" = xno; then
10517   archiver_list_spec=
10518 else
10519   archiver_list_spec=$lt_cv_ar_at_file
10520 fi
10521
10522
10523
10524
10525
10526
10527
10528 if test -n "$ac_tool_prefix"; then
10529   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10530 set dummy ${ac_tool_prefix}strip; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10532 $as_echo_n "checking for $ac_word... " >&6; }
10533 if ${ac_cv_prog_STRIP+:} false; then :
10534   $as_echo_n "(cached) " >&6
10535 else
10536   if test -n "$STRIP"; then
10537   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10538 else
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10541 do
10542   IFS=$as_save_IFS
10543   test -z "$as_dir" && as_dir=.
10544     for ac_exec_ext in '' $ac_executable_extensions; do
10545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10548     break 2
10549   fi
10550 done
10551   done
10552 IFS=$as_save_IFS
10553
10554 fi
10555 fi
10556 STRIP=$ac_cv_prog_STRIP
10557 if test -n "$STRIP"; then
10558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10559 $as_echo "$STRIP" >&6; }
10560 else
10561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562 $as_echo "no" >&6; }
10563 fi
10564
10565
10566 fi
10567 if test -z "$ac_cv_prog_STRIP"; then
10568   ac_ct_STRIP=$STRIP
10569   # Extract the first word of "strip", so it can be a program name with args.
10570 set dummy strip; ac_word=$2
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10572 $as_echo_n "checking for $ac_word... " >&6; }
10573 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10574   $as_echo_n "(cached) " >&6
10575 else
10576   if test -n "$ac_ct_STRIP"; then
10577   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10578 else
10579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10580 for as_dir in $PATH
10581 do
10582   IFS=$as_save_IFS
10583   test -z "$as_dir" && as_dir=.
10584     for ac_exec_ext in '' $ac_executable_extensions; do
10585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10586     ac_cv_prog_ac_ct_STRIP="strip"
10587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10588     break 2
10589   fi
10590 done
10591   done
10592 IFS=$as_save_IFS
10593
10594 fi
10595 fi
10596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10597 if test -n "$ac_ct_STRIP"; then
10598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10599 $as_echo "$ac_ct_STRIP" >&6; }
10600 else
10601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10602 $as_echo "no" >&6; }
10603 fi
10604
10605   if test "x$ac_ct_STRIP" = x; then
10606     STRIP=":"
10607   else
10608     case $cross_compiling:$ac_tool_warned in
10609 yes:)
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612 ac_tool_warned=yes ;;
10613 esac
10614     STRIP=$ac_ct_STRIP
10615   fi
10616 else
10617   STRIP="$ac_cv_prog_STRIP"
10618 fi
10619
10620 test -z "$STRIP" && STRIP=:
10621
10622
10623
10624
10625
10626
10627 if test -n "$ac_tool_prefix"; then
10628   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10629 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_prog_RANLIB+:} false; then :
10633   $as_echo_n "(cached) " >&6
10634 else
10635   if test -n "$RANLIB"; then
10636   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10637 else
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10640 do
10641   IFS=$as_save_IFS
10642   test -z "$as_dir" && as_dir=.
10643     for ac_exec_ext in '' $ac_executable_extensions; do
10644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10645     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10646     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647     break 2
10648   fi
10649 done
10650   done
10651 IFS=$as_save_IFS
10652
10653 fi
10654 fi
10655 RANLIB=$ac_cv_prog_RANLIB
10656 if test -n "$RANLIB"; then
10657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10658 $as_echo "$RANLIB" >&6; }
10659 else
10660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10662 fi
10663
10664
10665 fi
10666 if test -z "$ac_cv_prog_RANLIB"; then
10667   ac_ct_RANLIB=$RANLIB
10668   # Extract the first word of "ranlib", so it can be a program name with args.
10669 set dummy ranlib; ac_word=$2
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10673   $as_echo_n "(cached) " >&6
10674 else
10675   if test -n "$ac_ct_RANLIB"; then
10676   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10677 else
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10680 do
10681   IFS=$as_save_IFS
10682   test -z "$as_dir" && as_dir=.
10683     for ac_exec_ext in '' $ac_executable_extensions; do
10684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685     ac_cv_prog_ac_ct_RANLIB="ranlib"
10686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687     break 2
10688   fi
10689 done
10690   done
10691 IFS=$as_save_IFS
10692
10693 fi
10694 fi
10695 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10696 if test -n "$ac_ct_RANLIB"; then
10697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10698 $as_echo "$ac_ct_RANLIB" >&6; }
10699 else
10700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10702 fi
10703
10704   if test "x$ac_ct_RANLIB" = x; then
10705     RANLIB=":"
10706   else
10707     case $cross_compiling:$ac_tool_warned in
10708 yes:)
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10711 ac_tool_warned=yes ;;
10712 esac
10713     RANLIB=$ac_ct_RANLIB
10714   fi
10715 else
10716   RANLIB="$ac_cv_prog_RANLIB"
10717 fi
10718
10719 test -z "$RANLIB" && RANLIB=:
10720
10721
10722
10723
10724
10725
10726 # Determine commands to create old-style static archives.
10727 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10728 old_postinstall_cmds='chmod 644 $oldlib'
10729 old_postuninstall_cmds=
10730
10731 if test -n "$RANLIB"; then
10732   case $host_os in
10733   openbsd*)
10734     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10735     ;;
10736   *)
10737     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10738     ;;
10739   esac
10740   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10741 fi
10742
10743 case $host_os in
10744   darwin*)
10745     lock_old_archive_extraction=yes ;;
10746   *)
10747     lock_old_archive_extraction=no ;;
10748 esac
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788 # If no C compiler was specified, use CC.
10789 LTCC=${LTCC-"$CC"}
10790
10791 # If no C compiler flags were specified, use CFLAGS.
10792 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10793
10794 # Allow CC to be a program name with arguments.
10795 compiler=$CC
10796
10797
10798 # Check for command to grab the raw symbol name followed by C symbol from nm.
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10800 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10801 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10802   $as_echo_n "(cached) " >&6
10803 else
10804
10805 # These are sane defaults that work on at least a few old systems.
10806 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10807
10808 # Character class describing NM global symbol codes.
10809 symcode='[BCDEGRST]'
10810
10811 # Regexp to match symbols that can be accessed directly from C.
10812 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10813
10814 # Define system-specific variables.
10815 case $host_os in
10816 aix*)
10817   symcode='[BCDT]'
10818   ;;
10819 cygwin* | mingw* | pw32* | cegcc*)
10820   symcode='[ABCDGISTW]'
10821   ;;
10822 hpux*)
10823   if test "$host_cpu" = ia64; then
10824     symcode='[ABCDEGRST]'
10825   fi
10826   ;;
10827 irix* | nonstopux*)
10828   symcode='[BCDEGRST]'
10829   ;;
10830 osf*)
10831   symcode='[BCDEGQRST]'
10832   ;;
10833 solaris*)
10834   symcode='[BDRT]'
10835   ;;
10836 sco3.2v5*)
10837   symcode='[DT]'
10838   ;;
10839 sysv4.2uw2*)
10840   symcode='[DT]'
10841   ;;
10842 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10843   symcode='[ABDT]'
10844   ;;
10845 sysv4)
10846   symcode='[DFNSTU]'
10847   ;;
10848 esac
10849
10850 # If we're using GNU nm, then use its standard symbol codes.
10851 case `$NM -V 2>&1` in
10852 *GNU* | *'with BFD'*)
10853   symcode='[ABCDGIRSTW]' ;;
10854 esac
10855
10856 # Transform an extracted symbol line into a proper C declaration.
10857 # Some systems (esp. on ia64) link data and code symbols differently,
10858 # so use this general approach.
10859 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10860
10861 # Transform an extracted symbol line into symbol name and symbol address
10862 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
10863 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'"
10864
10865 # Handle CRLF in mingw tool chain
10866 opt_cr=
10867 case $build_os in
10868 mingw*)
10869   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10870   ;;
10871 esac
10872
10873 # Try without a prefix underscore, then with it.
10874 for ac_symprfx in "" "_"; do
10875
10876   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10877   symxfrm="\\1 $ac_symprfx\\2 \\2"
10878
10879   # Write the raw and C identifiers.
10880   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10881     # Fake it for dumpbin and say T for any non-static function
10882     # and D for any global variable.
10883     # Also find C++ and __fastcall symbols from MSVC++,
10884     # which start with @ or ?.
10885     lt_cv_sys_global_symbol_pipe="$AWK '"\
10886 "     {last_section=section; section=\$ 3};"\
10887 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10888 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10889 "     \$ 0!~/External *\|/{next};"\
10890 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10891 "     {if(hide[section]) next};"\
10892 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10893 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10894 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
10895 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10896 "     ' prfx=^$ac_symprfx"
10897   else
10898     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10899   fi
10900   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10901
10902   # Check to see that the pipe works correctly.
10903   pipe_works=no
10904
10905   rm -f conftest*
10906   cat > conftest.$ac_ext <<_LT_EOF
10907 #ifdef __cplusplus
10908 extern "C" {
10909 #endif
10910 char nm_test_var;
10911 void nm_test_func(void);
10912 void nm_test_func(void){}
10913 #ifdef __cplusplus
10914 }
10915 #endif
10916 int main(){nm_test_var='a';nm_test_func();return(0);}
10917 _LT_EOF
10918
10919   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10920   (eval $ac_compile) 2>&5
10921   ac_status=$?
10922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10923   test $ac_status = 0; }; then
10924     # Now try to grab the symbols.
10925     nlist=conftest.nm
10926     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10927   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10928   ac_status=$?
10929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10930   test $ac_status = 0; } && test -s "$nlist"; then
10931       # Try sorting and uniquifying the output.
10932       if sort "$nlist" | uniq > "$nlist"T; then
10933         mv -f "$nlist"T "$nlist"
10934       else
10935         rm -f "$nlist"T
10936       fi
10937
10938       # Make sure that we snagged all the symbols we need.
10939       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10940         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10941           cat <<_LT_EOF > conftest.$ac_ext
10942 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
10943 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
10944 /* DATA imports from DLLs on WIN32 con't be const, because runtime
10945    relocations are performed -- see ld's documentation on pseudo-relocs.  */
10946 # define LT_DLSYM_CONST
10947 #elif defined(__osf__)
10948 /* This system does not cope well with relocations in const data.  */
10949 # define LT_DLSYM_CONST
10950 #else
10951 # define LT_DLSYM_CONST const
10952 #endif
10953
10954 #ifdef __cplusplus
10955 extern "C" {
10956 #endif
10957
10958 _LT_EOF
10959           # Now generate the symbol file.
10960           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10961
10962           cat <<_LT_EOF >> conftest.$ac_ext
10963
10964 /* The mapping between symbol names and symbols.  */
10965 LT_DLSYM_CONST struct {
10966   const char *name;
10967   void       *address;
10968 }
10969 lt__PROGRAM__LTX_preloaded_symbols[] =
10970 {
10971   { "@PROGRAM@", (void *) 0 },
10972 _LT_EOF
10973           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10974           cat <<\_LT_EOF >> conftest.$ac_ext
10975   {0, (void *) 0}
10976 };
10977
10978 /* This works around a problem in FreeBSD linker */
10979 #ifdef FREEBSD_WORKAROUND
10980 static const void *lt_preloaded_setup() {
10981   return lt__PROGRAM__LTX_preloaded_symbols;
10982 }
10983 #endif
10984
10985 #ifdef __cplusplus
10986 }
10987 #endif
10988 _LT_EOF
10989           # Now try linking the two files.
10990           mv conftest.$ac_objext conftstm.$ac_objext
10991           lt_globsym_save_LIBS=$LIBS
10992           lt_globsym_save_CFLAGS=$CFLAGS
10993           LIBS="conftstm.$ac_objext"
10994           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10995           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10996   (eval $ac_link) 2>&5
10997   ac_status=$?
10998   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10999   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11000             pipe_works=yes
11001           fi
11002           LIBS=$lt_globsym_save_LIBS
11003           CFLAGS=$lt_globsym_save_CFLAGS
11004         else
11005           echo "cannot find nm_test_func in $nlist" >&5
11006         fi
11007       else
11008         echo "cannot find nm_test_var in $nlist" >&5
11009       fi
11010     else
11011       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11012     fi
11013   else
11014     echo "$progname: failed program was:" >&5
11015     cat conftest.$ac_ext >&5
11016   fi
11017   rm -rf conftest* conftst*
11018
11019   # Do not use the global_symbol_pipe unless it works.
11020   if test "$pipe_works" = yes; then
11021     break
11022   else
11023     lt_cv_sys_global_symbol_pipe=
11024   fi
11025 done
11026
11027 fi
11028
11029 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11030   lt_cv_sys_global_symbol_to_cdecl=
11031 fi
11032 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11034 $as_echo "failed" >&6; }
11035 else
11036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11037 $as_echo "ok" >&6; }
11038 fi
11039
11040 # Response file support.
11041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11042   nm_file_list_spec='@'
11043 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11044   nm_file_list_spec='@'
11045 fi
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11074 $as_echo_n "checking for sysroot... " >&6; }
11075
11076 # Check whether --with-sysroot was given.
11077 if test "${with_sysroot+set}" = set; then :
11078   withval=$with_sysroot;
11079 else
11080   with_sysroot=no
11081 fi
11082
11083
11084 lt_sysroot=
11085 case ${with_sysroot} in #(
11086  yes)
11087    if test "$GCC" = yes; then
11088      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11089    fi
11090    ;; #(
11091  /*)
11092    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11093    ;; #(
11094  no|'')
11095    ;; #(
11096  *)
11097    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11098 $as_echo "${with_sysroot}" >&6; }
11099    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11100    ;;
11101 esac
11102
11103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11104 $as_echo "${lt_sysroot:-no}" >&6; }
11105
11106
11107
11108
11109
11110 # Check whether --enable-libtool-lock was given.
11111 if test "${enable_libtool_lock+set}" = set; then :
11112   enableval=$enable_libtool_lock;
11113 fi
11114
11115 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11116
11117 # Some flags need to be propagated to the compiler or linker for good
11118 # libtool support.
11119 case $host in
11120 ia64-*-hpux*)
11121   # Find out which ABI we are using.
11122   echo 'int i;' > conftest.$ac_ext
11123   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11124   (eval $ac_compile) 2>&5
11125   ac_status=$?
11126   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11127   test $ac_status = 0; }; then
11128     case `/usr/bin/file conftest.$ac_objext` in
11129       *ELF-32*)
11130         HPUX_IA64_MODE="32"
11131         ;;
11132       *ELF-64*)
11133         HPUX_IA64_MODE="64"
11134         ;;
11135     esac
11136   fi
11137   rm -rf conftest*
11138   ;;
11139 *-*-irix6*)
11140   # Find out which ABI we are using.
11141   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11142   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11143   (eval $ac_compile) 2>&5
11144   ac_status=$?
11145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11146   test $ac_status = 0; }; then
11147     if test "$lt_cv_prog_gnu_ld" = yes; then
11148       case `/usr/bin/file conftest.$ac_objext` in
11149         *32-bit*)
11150           LD="${LD-ld} -melf32bsmip"
11151           ;;
11152         *N32*)
11153           LD="${LD-ld} -melf32bmipn32"
11154           ;;
11155         *64-bit*)
11156           LD="${LD-ld} -melf64bmip"
11157         ;;
11158       esac
11159     else
11160       case `/usr/bin/file conftest.$ac_objext` in
11161         *32-bit*)
11162           LD="${LD-ld} -32"
11163           ;;
11164         *N32*)
11165           LD="${LD-ld} -n32"
11166           ;;
11167         *64-bit*)
11168           LD="${LD-ld} -64"
11169           ;;
11170       esac
11171     fi
11172   fi
11173   rm -rf conftest*
11174   ;;
11175
11176 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11177 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11178   # Find out which ABI we are using.
11179   echo 'int i;' > conftest.$ac_ext
11180   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11181   (eval $ac_compile) 2>&5
11182   ac_status=$?
11183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11184   test $ac_status = 0; }; then
11185     case `/usr/bin/file conftest.o` in
11186       *32-bit*)
11187         case $host in
11188           x86_64-*kfreebsd*-gnu)
11189             LD="${LD-ld} -m elf_i386_fbsd"
11190             ;;
11191           x86_64-*linux*)
11192             LD="${LD-ld} -m elf_i386"
11193             ;;
11194           ppc64-*linux*|powerpc64-*linux*)
11195             LD="${LD-ld} -m elf32ppclinux"
11196             ;;
11197           s390x-*linux*)
11198             LD="${LD-ld} -m elf_s390"
11199             ;;
11200           sparc64-*linux*)
11201             LD="${LD-ld} -m elf32_sparc"
11202             ;;
11203         esac
11204         ;;
11205       *64-bit*)
11206         case $host in
11207           x86_64-*kfreebsd*-gnu)
11208             LD="${LD-ld} -m elf_x86_64_fbsd"
11209             ;;
11210           x86_64-*linux*)
11211             LD="${LD-ld} -m elf_x86_64"
11212             ;;
11213           ppc*-*linux*|powerpc*-*linux*)
11214             LD="${LD-ld} -m elf64ppc"
11215             ;;
11216           s390*-*linux*|s390*-*tpf*)
11217             LD="${LD-ld} -m elf64_s390"
11218             ;;
11219           sparc*-*linux*)
11220             LD="${LD-ld} -m elf64_sparc"
11221             ;;
11222         esac
11223         ;;
11224     esac
11225   fi
11226   rm -rf conftest*
11227   ;;
11228
11229 *-*-sco3.2v5*)
11230   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11231   SAVE_CFLAGS="$CFLAGS"
11232   CFLAGS="$CFLAGS -belf"
11233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11234 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11235 if ${lt_cv_cc_needs_belf+:} false; then :
11236   $as_echo_n "(cached) " >&6
11237 else
11238   ac_ext=c
11239 ac_cpp='$CPP $CPPFLAGS'
11240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11243
11244      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h.  */
11246
11247 int
11248 main ()
11249 {
11250
11251   ;
11252   return 0;
11253 }
11254 _ACEOF
11255 if ac_fn_c_try_link "$LINENO"; then :
11256   lt_cv_cc_needs_belf=yes
11257 else
11258   lt_cv_cc_needs_belf=no
11259 fi
11260 rm -f core conftest.err conftest.$ac_objext \
11261     conftest$ac_exeext conftest.$ac_ext
11262      ac_ext=c
11263 ac_cpp='$CPP $CPPFLAGS'
11264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11267
11268 fi
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11270 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11271   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11272     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11273     CFLAGS="$SAVE_CFLAGS"
11274   fi
11275   ;;
11276 *-*solaris*)
11277   # Find out which ABI we are using.
11278   echo 'int i;' > conftest.$ac_ext
11279   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11280   (eval $ac_compile) 2>&5
11281   ac_status=$?
11282   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11283   test $ac_status = 0; }; then
11284     case `/usr/bin/file conftest.o` in
11285     *64-bit*)
11286       case $lt_cv_prog_gnu_ld in
11287       yes*)
11288         case $host in
11289         i?86-*-solaris*)
11290           LD="${LD-ld} -m elf_x86_64"
11291           ;;
11292         sparc*-*-solaris*)
11293           LD="${LD-ld} -m elf64_sparc"
11294           ;;
11295         esac
11296         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
11297         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
11298           LD="${LD-ld}_sol2"
11299         fi
11300         ;;
11301       *)
11302         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11303           LD="${LD-ld} -64"
11304         fi
11305         ;;
11306       esac
11307       ;;
11308     esac
11309   fi
11310   rm -rf conftest*
11311   ;;
11312 esac
11313
11314 need_locks="$enable_libtool_lock"
11315
11316 if test -n "$ac_tool_prefix"; then
11317   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11318 set dummy ${ac_tool_prefix}mt; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320 $as_echo_n "checking for $ac_word... " >&6; }
11321 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11322   $as_echo_n "(cached) " >&6
11323 else
11324   if test -n "$MANIFEST_TOOL"; then
11325   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11326 else
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11329 do
11330   IFS=$as_save_IFS
11331   test -z "$as_dir" && as_dir=.
11332     for ac_exec_ext in '' $ac_executable_extensions; do
11333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11334     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336     break 2
11337   fi
11338 done
11339   done
11340 IFS=$as_save_IFS
11341
11342 fi
11343 fi
11344 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11345 if test -n "$MANIFEST_TOOL"; then
11346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11347 $as_echo "$MANIFEST_TOOL" >&6; }
11348 else
11349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350 $as_echo "no" >&6; }
11351 fi
11352
11353
11354 fi
11355 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11356   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11357   # Extract the first word of "mt", so it can be a program name with args.
11358 set dummy mt; ac_word=$2
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11360 $as_echo_n "checking for $ac_word... " >&6; }
11361 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11362   $as_echo_n "(cached) " >&6
11363 else
11364   if test -n "$ac_ct_MANIFEST_TOOL"; then
11365   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11366 else
11367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11368 for as_dir in $PATH
11369 do
11370   IFS=$as_save_IFS
11371   test -z "$as_dir" && as_dir=.
11372     for ac_exec_ext in '' $ac_executable_extensions; do
11373   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11374     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11375     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11376     break 2
11377   fi
11378 done
11379   done
11380 IFS=$as_save_IFS
11381
11382 fi
11383 fi
11384 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11385 if test -n "$ac_ct_MANIFEST_TOOL"; then
11386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11387 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11388 else
11389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390 $as_echo "no" >&6; }
11391 fi
11392
11393   if test "x$ac_ct_MANIFEST_TOOL" = x; then
11394     MANIFEST_TOOL=":"
11395   else
11396     case $cross_compiling:$ac_tool_warned in
11397 yes:)
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11399 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11400 ac_tool_warned=yes ;;
11401 esac
11402     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11403   fi
11404 else
11405   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11406 fi
11407
11408 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11410 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11411 if ${lt_cv_path_mainfest_tool+:} false; then :
11412   $as_echo_n "(cached) " >&6
11413 else
11414   lt_cv_path_mainfest_tool=no
11415   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11416   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11417   cat conftest.err >&5
11418   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11419     lt_cv_path_mainfest_tool=yes
11420   fi
11421   rm -f conftest*
11422 fi
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11424 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11425 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11426   MANIFEST_TOOL=:
11427 fi
11428
11429
11430
11431
11432
11433
11434   case $host_os in
11435     rhapsody* | darwin*)
11436     if test -n "$ac_tool_prefix"; then
11437   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11438 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11440 $as_echo_n "checking for $ac_word... " >&6; }
11441 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11442   $as_echo_n "(cached) " >&6
11443 else
11444   if test -n "$DSYMUTIL"; then
11445   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11446 else
11447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11448 for as_dir in $PATH
11449 do
11450   IFS=$as_save_IFS
11451   test -z "$as_dir" && as_dir=.
11452     for ac_exec_ext in '' $ac_executable_extensions; do
11453   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11454     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456     break 2
11457   fi
11458 done
11459   done
11460 IFS=$as_save_IFS
11461
11462 fi
11463 fi
11464 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11465 if test -n "$DSYMUTIL"; then
11466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11467 $as_echo "$DSYMUTIL" >&6; }
11468 else
11469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11470 $as_echo "no" >&6; }
11471 fi
11472
11473
11474 fi
11475 if test -z "$ac_cv_prog_DSYMUTIL"; then
11476   ac_ct_DSYMUTIL=$DSYMUTIL
11477   # Extract the first word of "dsymutil", so it can be a program name with args.
11478 set dummy dsymutil; ac_word=$2
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11480 $as_echo_n "checking for $ac_word... " >&6; }
11481 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11482   $as_echo_n "(cached) " >&6
11483 else
11484   if test -n "$ac_ct_DSYMUTIL"; then
11485   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11486 else
11487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11488 for as_dir in $PATH
11489 do
11490   IFS=$as_save_IFS
11491   test -z "$as_dir" && as_dir=.
11492     for ac_exec_ext in '' $ac_executable_extensions; do
11493   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11494     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11495     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496     break 2
11497   fi
11498 done
11499   done
11500 IFS=$as_save_IFS
11501
11502 fi
11503 fi
11504 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11505 if test -n "$ac_ct_DSYMUTIL"; then
11506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11507 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11508 else
11509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11510 $as_echo "no" >&6; }
11511 fi
11512
11513   if test "x$ac_ct_DSYMUTIL" = x; then
11514     DSYMUTIL=":"
11515   else
11516     case $cross_compiling:$ac_tool_warned in
11517 yes:)
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11520 ac_tool_warned=yes ;;
11521 esac
11522     DSYMUTIL=$ac_ct_DSYMUTIL
11523   fi
11524 else
11525   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11526 fi
11527
11528     if test -n "$ac_tool_prefix"; then
11529   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11530 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11532 $as_echo_n "checking for $ac_word... " >&6; }
11533 if ${ac_cv_prog_NMEDIT+:} false; then :
11534   $as_echo_n "(cached) " >&6
11535 else
11536   if test -n "$NMEDIT"; then
11537   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11538 else
11539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11540 for as_dir in $PATH
11541 do
11542   IFS=$as_save_IFS
11543   test -z "$as_dir" && as_dir=.
11544     for ac_exec_ext in '' $ac_executable_extensions; do
11545   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11546     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11548     break 2
11549   fi
11550 done
11551   done
11552 IFS=$as_save_IFS
11553
11554 fi
11555 fi
11556 NMEDIT=$ac_cv_prog_NMEDIT
11557 if test -n "$NMEDIT"; then
11558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11559 $as_echo "$NMEDIT" >&6; }
11560 else
11561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11562 $as_echo "no" >&6; }
11563 fi
11564
11565
11566 fi
11567 if test -z "$ac_cv_prog_NMEDIT"; then
11568   ac_ct_NMEDIT=$NMEDIT
11569   # Extract the first word of "nmedit", so it can be a program name with args.
11570 set dummy nmedit; ac_word=$2
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11572 $as_echo_n "checking for $ac_word... " >&6; }
11573 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11574   $as_echo_n "(cached) " >&6
11575 else
11576   if test -n "$ac_ct_NMEDIT"; then
11577   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11578 else
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11581 do
11582   IFS=$as_save_IFS
11583   test -z "$as_dir" && as_dir=.
11584     for ac_exec_ext in '' $ac_executable_extensions; do
11585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11586     ac_cv_prog_ac_ct_NMEDIT="nmedit"
11587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588     break 2
11589   fi
11590 done
11591   done
11592 IFS=$as_save_IFS
11593
11594 fi
11595 fi
11596 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11597 if test -n "$ac_ct_NMEDIT"; then
11598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11599 $as_echo "$ac_ct_NMEDIT" >&6; }
11600 else
11601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602 $as_echo "no" >&6; }
11603 fi
11604
11605   if test "x$ac_ct_NMEDIT" = x; then
11606     NMEDIT=":"
11607   else
11608     case $cross_compiling:$ac_tool_warned in
11609 yes:)
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11612 ac_tool_warned=yes ;;
11613 esac
11614     NMEDIT=$ac_ct_NMEDIT
11615   fi
11616 else
11617   NMEDIT="$ac_cv_prog_NMEDIT"
11618 fi
11619
11620     if test -n "$ac_tool_prefix"; then
11621   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11622 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if ${ac_cv_prog_LIPO+:} false; then :
11626   $as_echo_n "(cached) " >&6
11627 else
11628   if test -n "$LIPO"; then
11629   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11630 else
11631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11632 for as_dir in $PATH
11633 do
11634   IFS=$as_save_IFS
11635   test -z "$as_dir" && as_dir=.
11636     for ac_exec_ext in '' $ac_executable_extensions; do
11637   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11638     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11639     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11640     break 2
11641   fi
11642 done
11643   done
11644 IFS=$as_save_IFS
11645
11646 fi
11647 fi
11648 LIPO=$ac_cv_prog_LIPO
11649 if test -n "$LIPO"; then
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11651 $as_echo "$LIPO" >&6; }
11652 else
11653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11655 fi
11656
11657
11658 fi
11659 if test -z "$ac_cv_prog_LIPO"; then
11660   ac_ct_LIPO=$LIPO
11661   # Extract the first word of "lipo", so it can be a program name with args.
11662 set dummy lipo; ac_word=$2
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11664 $as_echo_n "checking for $ac_word... " >&6; }
11665 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668   if test -n "$ac_ct_LIPO"; then
11669   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11670 else
11671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11672 for as_dir in $PATH
11673 do
11674   IFS=$as_save_IFS
11675   test -z "$as_dir" && as_dir=.
11676     for ac_exec_ext in '' $ac_executable_extensions; do
11677   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678     ac_cv_prog_ac_ct_LIPO="lipo"
11679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680     break 2
11681   fi
11682 done
11683   done
11684 IFS=$as_save_IFS
11685
11686 fi
11687 fi
11688 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11689 if test -n "$ac_ct_LIPO"; then
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11691 $as_echo "$ac_ct_LIPO" >&6; }
11692 else
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11694 $as_echo "no" >&6; }
11695 fi
11696
11697   if test "x$ac_ct_LIPO" = x; then
11698     LIPO=":"
11699   else
11700     case $cross_compiling:$ac_tool_warned in
11701 yes:)
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11704 ac_tool_warned=yes ;;
11705 esac
11706     LIPO=$ac_ct_LIPO
11707   fi
11708 else
11709   LIPO="$ac_cv_prog_LIPO"
11710 fi
11711
11712     if test -n "$ac_tool_prefix"; then
11713   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11714 set dummy ${ac_tool_prefix}otool; ac_word=$2
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11716 $as_echo_n "checking for $ac_word... " >&6; }
11717 if ${ac_cv_prog_OTOOL+:} false; then :
11718   $as_echo_n "(cached) " >&6
11719 else
11720   if test -n "$OTOOL"; then
11721   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11722 else
11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11724 for as_dir in $PATH
11725 do
11726   IFS=$as_save_IFS
11727   test -z "$as_dir" && as_dir=.
11728     for ac_exec_ext in '' $ac_executable_extensions; do
11729   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11730     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11732     break 2
11733   fi
11734 done
11735   done
11736 IFS=$as_save_IFS
11737
11738 fi
11739 fi
11740 OTOOL=$ac_cv_prog_OTOOL
11741 if test -n "$OTOOL"; then
11742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11743 $as_echo "$OTOOL" >&6; }
11744 else
11745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11747 fi
11748
11749
11750 fi
11751 if test -z "$ac_cv_prog_OTOOL"; then
11752   ac_ct_OTOOL=$OTOOL
11753   # Extract the first word of "otool", so it can be a program name with args.
11754 set dummy otool; ac_word=$2
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11756 $as_echo_n "checking for $ac_word... " >&6; }
11757 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11758   $as_echo_n "(cached) " >&6
11759 else
11760   if test -n "$ac_ct_OTOOL"; then
11761   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11762 else
11763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11764 for as_dir in $PATH
11765 do
11766   IFS=$as_save_IFS
11767   test -z "$as_dir" && as_dir=.
11768     for ac_exec_ext in '' $ac_executable_extensions; do
11769   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11770     ac_cv_prog_ac_ct_OTOOL="otool"
11771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11772     break 2
11773   fi
11774 done
11775   done
11776 IFS=$as_save_IFS
11777
11778 fi
11779 fi
11780 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11781 if test -n "$ac_ct_OTOOL"; then
11782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11783 $as_echo "$ac_ct_OTOOL" >&6; }
11784 else
11785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11786 $as_echo "no" >&6; }
11787 fi
11788
11789   if test "x$ac_ct_OTOOL" = x; then
11790     OTOOL=":"
11791   else
11792     case $cross_compiling:$ac_tool_warned in
11793 yes:)
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11796 ac_tool_warned=yes ;;
11797 esac
11798     OTOOL=$ac_ct_OTOOL
11799   fi
11800 else
11801   OTOOL="$ac_cv_prog_OTOOL"
11802 fi
11803
11804     if test -n "$ac_tool_prefix"; then
11805   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11806 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_OTOOL64+:} false; then :
11810   $as_echo_n "(cached) " >&6
11811 else
11812   if test -n "$OTOOL64"; then
11813   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11814 else
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11817 do
11818   IFS=$as_save_IFS
11819   test -z "$as_dir" && as_dir=.
11820     for ac_exec_ext in '' $ac_executable_extensions; do
11821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11822     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824     break 2
11825   fi
11826 done
11827   done
11828 IFS=$as_save_IFS
11829
11830 fi
11831 fi
11832 OTOOL64=$ac_cv_prog_OTOOL64
11833 if test -n "$OTOOL64"; then
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11835 $as_echo "$OTOOL64" >&6; }
11836 else
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840
11841
11842 fi
11843 if test -z "$ac_cv_prog_OTOOL64"; then
11844   ac_ct_OTOOL64=$OTOOL64
11845   # Extract the first word of "otool64", so it can be a program name with args.
11846 set dummy otool64; ac_word=$2
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11848 $as_echo_n "checking for $ac_word... " >&6; }
11849 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11850   $as_echo_n "(cached) " >&6
11851 else
11852   if test -n "$ac_ct_OTOOL64"; then
11853   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11854 else
11855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11856 for as_dir in $PATH
11857 do
11858   IFS=$as_save_IFS
11859   test -z "$as_dir" && as_dir=.
11860     for ac_exec_ext in '' $ac_executable_extensions; do
11861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11862     ac_cv_prog_ac_ct_OTOOL64="otool64"
11863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11864     break 2
11865   fi
11866 done
11867   done
11868 IFS=$as_save_IFS
11869
11870 fi
11871 fi
11872 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11873 if test -n "$ac_ct_OTOOL64"; then
11874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11875 $as_echo "$ac_ct_OTOOL64" >&6; }
11876 else
11877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11878 $as_echo "no" >&6; }
11879 fi
11880
11881   if test "x$ac_ct_OTOOL64" = x; then
11882     OTOOL64=":"
11883   else
11884     case $cross_compiling:$ac_tool_warned in
11885 yes:)
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11888 ac_tool_warned=yes ;;
11889 esac
11890     OTOOL64=$ac_ct_OTOOL64
11891   fi
11892 else
11893   OTOOL64="$ac_cv_prog_OTOOL64"
11894 fi
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907
11908
11909
11910
11911
11912
11913
11914
11915
11916
11917
11918
11919
11920
11921
11922     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11923 $as_echo_n "checking for -single_module linker flag... " >&6; }
11924 if ${lt_cv_apple_cc_single_mod+:} false; then :
11925   $as_echo_n "(cached) " >&6
11926 else
11927   lt_cv_apple_cc_single_mod=no
11928       if test -z "${LT_MULTI_MODULE}"; then
11929         # By default we will add the -single_module flag. You can override
11930         # by either setting the environment variable LT_MULTI_MODULE
11931         # non-empty at configure time, or by adding -multi_module to the
11932         # link flags.
11933         rm -rf libconftest.dylib*
11934         echo "int foo(void){return 1;}" > conftest.c
11935         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11936 -dynamiclib -Wl,-single_module conftest.c" >&5
11937         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11938           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11939         _lt_result=$?
11940         # If there is a non-empty error log, and "single_module"
11941         # appears in it, assume the flag caused a linker warning
11942         if test -s conftest.err && $GREP single_module conftest.err; then
11943           cat conftest.err >&5
11944         # Otherwise, if the output was created with a 0 exit code from
11945         # the compiler, it worked.
11946         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
11947           lt_cv_apple_cc_single_mod=yes
11948         else
11949           cat conftest.err >&5
11950         fi
11951         rm -rf libconftest.dylib*
11952         rm -f conftest.*
11953       fi
11954 fi
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11956 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11957
11958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11959 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11960 if ${lt_cv_ld_exported_symbols_list+:} false; then :
11961   $as_echo_n "(cached) " >&6
11962 else
11963   lt_cv_ld_exported_symbols_list=no
11964       save_LDFLAGS=$LDFLAGS
11965       echo "_main" > conftest.sym
11966       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11967       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969
11970 int
11971 main ()
11972 {
11973
11974   ;
11975   return 0;
11976 }
11977 _ACEOF
11978 if ac_fn_c_try_link "$LINENO"; then :
11979   lt_cv_ld_exported_symbols_list=yes
11980 else
11981   lt_cv_ld_exported_symbols_list=no
11982 fi
11983 rm -f core conftest.err conftest.$ac_objext \
11984     conftest$ac_exeext conftest.$ac_ext
11985         LDFLAGS="$save_LDFLAGS"
11986
11987 fi
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11989 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11990
11991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11992 $as_echo_n "checking for -force_load linker flag... " >&6; }
11993 if ${lt_cv_ld_force_load+:} false; then :
11994   $as_echo_n "(cached) " >&6
11995 else
11996   lt_cv_ld_force_load=no
11997       cat > conftest.c << _LT_EOF
11998 int forced_loaded() { return 2;}
11999 _LT_EOF
12000       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12001       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12002       echo "$AR cru libconftest.a conftest.o" >&5
12003       $AR cru libconftest.a conftest.o 2>&5
12004       echo "$RANLIB libconftest.a" >&5
12005       $RANLIB libconftest.a 2>&5
12006       cat > conftest.c << _LT_EOF
12007 int main() { return 0;}
12008 _LT_EOF
12009       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12010       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12011       _lt_result=$?
12012       if test -s conftest.err && $GREP force_load conftest.err; then
12013         cat conftest.err >&5
12014       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
12015         lt_cv_ld_force_load=yes
12016       else
12017         cat conftest.err >&5
12018       fi
12019         rm -f conftest.err libconftest.a conftest conftest.c
12020         rm -rf conftest.dSYM
12021
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12024 $as_echo "$lt_cv_ld_force_load" >&6; }
12025     case $host_os in
12026     rhapsody* | darwin1.[012])
12027       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12028     darwin1.*)
12029       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12030     darwin*) # darwin 5.x on
12031       # if running on 10.5 or later, the deployment target defaults
12032       # to the OS version, if on x86, and 10.4, the deployment
12033       # target defaults to 10.4. Don't you love it?
12034       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12035         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12036           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12037         10.[012]*)
12038           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12039         10.*)
12040           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12041       esac
12042     ;;
12043   esac
12044     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12045       _lt_dar_single_mod='$single_module'
12046     fi
12047     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12048       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12049     else
12050       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12051     fi
12052     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12053       _lt_dsymutil='~$DSYMUTIL $lib || :'
12054     else
12055       _lt_dsymutil=
12056     fi
12057     ;;
12058   esac
12059
12060 for ac_header in dlfcn.h
12061 do :
12062   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12063 "
12064 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12065   cat >>confdefs.h <<_ACEOF
12066 #define HAVE_DLFCN_H 1
12067 _ACEOF
12068
12069 fi
12070
12071 done
12072
12073
12074
12075 func_stripname_cnf ()
12076 {
12077   case ${2} in
12078   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12079   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12080   esac
12081 } # func_stripname_cnf
12082
12083
12084
12085
12086
12087 # Set options
12088 # Check whether --enable-static was given.
12089 if test "${enable_static+set}" = set; then :
12090   enableval=$enable_static; p=${PACKAGE-default}
12091     case $enableval in
12092     yes) enable_static=yes ;;
12093     no) enable_static=no ;;
12094     *)
12095      enable_static=no
12096       # Look at the argument we got.  We use all the common list separators.
12097       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12098       for pkg in $enableval; do
12099         IFS="$lt_save_ifs"
12100         if test "X$pkg" = "X$p"; then
12101           enable_static=yes
12102         fi
12103       done
12104       IFS="$lt_save_ifs"
12105       ;;
12106     esac
12107 else
12108   enable_static=no
12109 fi
12110
12111
12112
12113
12114
12115
12116
12117 enable_win32_dll=yes
12118
12119 case $host in
12120 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12121   if test -n "$ac_tool_prefix"; then
12122   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12123 set dummy ${ac_tool_prefix}as; ac_word=$2
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12125 $as_echo_n "checking for $ac_word... " >&6; }
12126 if ${ac_cv_prog_AS+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   if test -n "$AS"; then
12130   ac_cv_prog_AS="$AS" # Let the user override the test.
12131 else
12132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133 for as_dir in $PATH
12134 do
12135   IFS=$as_save_IFS
12136   test -z "$as_dir" && as_dir=.
12137     for ac_exec_ext in '' $ac_executable_extensions; do
12138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12139     ac_cv_prog_AS="${ac_tool_prefix}as"
12140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12141     break 2
12142   fi
12143 done
12144   done
12145 IFS=$as_save_IFS
12146
12147 fi
12148 fi
12149 AS=$ac_cv_prog_AS
12150 if test -n "$AS"; then
12151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12152 $as_echo "$AS" >&6; }
12153 else
12154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12156 fi
12157
12158
12159 fi
12160 if test -z "$ac_cv_prog_AS"; then
12161   ac_ct_AS=$AS
12162   # Extract the first word of "as", so it can be a program name with args.
12163 set dummy as; ac_word=$2
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12165 $as_echo_n "checking for $ac_word... " >&6; }
12166 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   if test -n "$ac_ct_AS"; then
12170   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12171 else
12172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12173 for as_dir in $PATH
12174 do
12175   IFS=$as_save_IFS
12176   test -z "$as_dir" && as_dir=.
12177     for ac_exec_ext in '' $ac_executable_extensions; do
12178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12179     ac_cv_prog_ac_ct_AS="as"
12180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12181     break 2
12182   fi
12183 done
12184   done
12185 IFS=$as_save_IFS
12186
12187 fi
12188 fi
12189 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12190 if test -n "$ac_ct_AS"; then
12191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12192 $as_echo "$ac_ct_AS" >&6; }
12193 else
12194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12195 $as_echo "no" >&6; }
12196 fi
12197
12198   if test "x$ac_ct_AS" = x; then
12199     AS="false"
12200   else
12201     case $cross_compiling:$ac_tool_warned in
12202 yes:)
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12205 ac_tool_warned=yes ;;
12206 esac
12207     AS=$ac_ct_AS
12208   fi
12209 else
12210   AS="$ac_cv_prog_AS"
12211 fi
12212
12213   if test -n "$ac_tool_prefix"; then
12214   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12215 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if ${ac_cv_prog_DLLTOOL+:} false; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   if test -n "$DLLTOOL"; then
12222   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227   IFS=$as_save_IFS
12228   test -z "$as_dir" && as_dir=.
12229     for ac_exec_ext in '' $ac_executable_extensions; do
12230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233     break 2
12234   fi
12235 done
12236   done
12237 IFS=$as_save_IFS
12238
12239 fi
12240 fi
12241 DLLTOOL=$ac_cv_prog_DLLTOOL
12242 if test -n "$DLLTOOL"; then
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12244 $as_echo "$DLLTOOL" >&6; }
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251 fi
12252 if test -z "$ac_cv_prog_DLLTOOL"; then
12253   ac_ct_DLLTOOL=$DLLTOOL
12254   # Extract the first word of "dlltool", so it can be a program name with args.
12255 set dummy dlltool; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   if test -n "$ac_ct_DLLTOOL"; then
12262   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278
12279 fi
12280 fi
12281 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12282 if test -n "$ac_ct_DLLTOOL"; then
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12284 $as_echo "$ac_ct_DLLTOOL" >&6; }
12285 else
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 fi
12289
12290   if test "x$ac_ct_DLLTOOL" = x; then
12291     DLLTOOL="false"
12292   else
12293     case $cross_compiling:$ac_tool_warned in
12294 yes:)
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12297 ac_tool_warned=yes ;;
12298 esac
12299     DLLTOOL=$ac_ct_DLLTOOL
12300   fi
12301 else
12302   DLLTOOL="$ac_cv_prog_DLLTOOL"
12303 fi
12304
12305   if test -n "$ac_tool_prefix"; then
12306   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12307 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_prog_OBJDUMP+:} false; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   if test -n "$OBJDUMP"; then
12314   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12315 else
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321     for ac_exec_ext in '' $ac_executable_extensions; do
12322   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12323     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328   done
12329 IFS=$as_save_IFS
12330
12331 fi
12332 fi
12333 OBJDUMP=$ac_cv_prog_OBJDUMP
12334 if test -n "$OBJDUMP"; then
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12336 $as_echo "$OBJDUMP" >&6; }
12337 else
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 fi
12341
12342
12343 fi
12344 if test -z "$ac_cv_prog_OBJDUMP"; then
12345   ac_ct_OBJDUMP=$OBJDUMP
12346   # Extract the first word of "objdump", so it can be a program name with args.
12347 set dummy objdump; ac_word=$2
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12349 $as_echo_n "checking for $ac_word... " >&6; }
12350 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12351   $as_echo_n "(cached) " >&6
12352 else
12353   if test -n "$ac_ct_OBJDUMP"; then
12354   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12355 else
12356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12357 for as_dir in $PATH
12358 do
12359   IFS=$as_save_IFS
12360   test -z "$as_dir" && as_dir=.
12361     for ac_exec_ext in '' $ac_executable_extensions; do
12362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12363     ac_cv_prog_ac_ct_OBJDUMP="objdump"
12364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12365     break 2
12366   fi
12367 done
12368   done
12369 IFS=$as_save_IFS
12370
12371 fi
12372 fi
12373 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12374 if test -n "$ac_ct_OBJDUMP"; then
12375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12376 $as_echo "$ac_ct_OBJDUMP" >&6; }
12377 else
12378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12379 $as_echo "no" >&6; }
12380 fi
12381
12382   if test "x$ac_ct_OBJDUMP" = x; then
12383     OBJDUMP="false"
12384   else
12385     case $cross_compiling:$ac_tool_warned in
12386 yes:)
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12389 ac_tool_warned=yes ;;
12390 esac
12391     OBJDUMP=$ac_ct_OBJDUMP
12392   fi
12393 else
12394   OBJDUMP="$ac_cv_prog_OBJDUMP"
12395 fi
12396
12397   ;;
12398 esac
12399
12400 test -z "$AS" && AS=as
12401
12402
12403
12404
12405
12406 test -z "$DLLTOOL" && DLLTOOL=dlltool
12407
12408
12409
12410
12411
12412 test -z "$OBJDUMP" && OBJDUMP=objdump
12413
12414
12415
12416
12417
12418
12419
12420         enable_dlopen=no
12421
12422
12423
12424             # Check whether --enable-shared was given.
12425 if test "${enable_shared+set}" = set; then :
12426   enableval=$enable_shared; p=${PACKAGE-default}
12427     case $enableval in
12428     yes) enable_shared=yes ;;
12429     no) enable_shared=no ;;
12430     *)
12431       enable_shared=no
12432       # Look at the argument we got.  We use all the common list separators.
12433       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12434       for pkg in $enableval; do
12435         IFS="$lt_save_ifs"
12436         if test "X$pkg" = "X$p"; then
12437           enable_shared=yes
12438         fi
12439       done
12440       IFS="$lt_save_ifs"
12441       ;;
12442     esac
12443 else
12444   enable_shared=yes
12445 fi
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457 # Check whether --with-pic was given.
12458 if test "${with_pic+set}" = set; then :
12459   withval=$with_pic; lt_p=${PACKAGE-default}
12460     case $withval in
12461     yes|no) pic_mode=$withval ;;
12462     *)
12463       pic_mode=default
12464       # Look at the argument we got.  We use all the common list separators.
12465       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12466       for lt_pkg in $withval; do
12467         IFS="$lt_save_ifs"
12468         if test "X$lt_pkg" = "X$lt_p"; then
12469           pic_mode=yes
12470         fi
12471       done
12472       IFS="$lt_save_ifs"
12473       ;;
12474     esac
12475 else
12476   pic_mode=default
12477 fi
12478
12479
12480 test -z "$pic_mode" && pic_mode=default
12481
12482
12483
12484
12485
12486
12487
12488   # Check whether --enable-fast-install was given.
12489 if test "${enable_fast_install+set}" = set; then :
12490   enableval=$enable_fast_install; p=${PACKAGE-default}
12491     case $enableval in
12492     yes) enable_fast_install=yes ;;
12493     no) enable_fast_install=no ;;
12494     *)
12495       enable_fast_install=no
12496       # Look at the argument we got.  We use all the common list separators.
12497       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12498       for pkg in $enableval; do
12499         IFS="$lt_save_ifs"
12500         if test "X$pkg" = "X$p"; then
12501           enable_fast_install=yes
12502         fi
12503       done
12504       IFS="$lt_save_ifs"
12505       ;;
12506     esac
12507 else
12508   enable_fast_install=yes
12509 fi
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521 # This can be used to rebuild libtool when needed
12522 LIBTOOL_DEPS="$ltmain"
12523
12524 # Always use our own libtool.
12525 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12526
12527
12528
12529
12530
12531
12532
12533
12534
12535
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551
12552
12553
12554
12555
12556 test -z "$LN_S" && LN_S="ln -s"
12557
12558
12559
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570
12571 if test -n "${ZSH_VERSION+set}" ; then
12572    setopt NO_GLOB_SUBST
12573 fi
12574
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12576 $as_echo_n "checking for objdir... " >&6; }
12577 if ${lt_cv_objdir+:} false; then :
12578   $as_echo_n "(cached) " >&6
12579 else
12580   rm -f .libs 2>/dev/null
12581 mkdir .libs 2>/dev/null
12582 if test -d .libs; then
12583   lt_cv_objdir=.libs
12584 else
12585   # MS-DOS does not allow filenames that begin with a dot.
12586   lt_cv_objdir=_libs
12587 fi
12588 rmdir .libs 2>/dev/null
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12591 $as_echo "$lt_cv_objdir" >&6; }
12592 objdir=$lt_cv_objdir
12593
12594
12595
12596
12597
12598 cat >>confdefs.h <<_ACEOF
12599 #define LT_OBJDIR "$lt_cv_objdir/"
12600 _ACEOF
12601
12602
12603
12604
12605 case $host_os in
12606 aix3*)
12607   # AIX sometimes has problems with the GCC collect2 program.  For some
12608   # reason, if we set the COLLECT_NAMES environment variable, the problems
12609   # vanish in a puff of smoke.
12610   if test "X${COLLECT_NAMES+set}" != Xset; then
12611     COLLECT_NAMES=
12612     export COLLECT_NAMES
12613   fi
12614   ;;
12615 esac
12616
12617 # Global variables:
12618 ofile=libtool
12619 can_build_shared=yes
12620
12621 # All known linkers require a `.a' archive for static linking (except MSVC,
12622 # which needs '.lib').
12623 libext=a
12624
12625 with_gnu_ld="$lt_cv_prog_gnu_ld"
12626
12627 old_CC="$CC"
12628 old_CFLAGS="$CFLAGS"
12629
12630 # Set sane defaults for various variables
12631 test -z "$CC" && CC=cc
12632 test -z "$LTCC" && LTCC=$CC
12633 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12634 test -z "$LD" && LD=ld
12635 test -z "$ac_objext" && ac_objext=o
12636
12637 for cc_temp in $compiler""; do
12638   case $cc_temp in
12639     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12640     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12641     \-*) ;;
12642     *) break;;
12643   esac
12644 done
12645 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12646
12647
12648 # Only perform the check for file, if the check method requires it
12649 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12650 case $deplibs_check_method in
12651 file_magic*)
12652   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12653     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12654 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12655 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12656   $as_echo_n "(cached) " >&6
12657 else
12658   case $MAGIC_CMD in
12659 [\\/*] |  ?:[\\/]*)
12660   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12661   ;;
12662 *)
12663   lt_save_MAGIC_CMD="$MAGIC_CMD"
12664   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12665   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12666   for ac_dir in $ac_dummy; do
12667     IFS="$lt_save_ifs"
12668     test -z "$ac_dir" && ac_dir=.
12669     if test -f $ac_dir/${ac_tool_prefix}file; then
12670       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12671       if test -n "$file_magic_test_file"; then
12672         case $deplibs_check_method in
12673         "file_magic "*)
12674           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12675           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12676           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12677             $EGREP "$file_magic_regex" > /dev/null; then
12678             :
12679           else
12680             cat <<_LT_EOF 1>&2
12681
12682 *** Warning: the command libtool uses to detect shared libraries,
12683 *** $file_magic_cmd, produces output that libtool cannot recognize.
12684 *** The result is that libtool may fail to recognize shared libraries
12685 *** as such.  This will affect the creation of libtool libraries that
12686 *** depend on shared libraries, but programs linked with such libtool
12687 *** libraries will work regardless of this problem.  Nevertheless, you
12688 *** may want to report the problem to your system manager and/or to
12689 *** bug-libtool@gnu.org
12690
12691 _LT_EOF
12692           fi ;;
12693         esac
12694       fi
12695       break
12696     fi
12697   done
12698   IFS="$lt_save_ifs"
12699   MAGIC_CMD="$lt_save_MAGIC_CMD"
12700   ;;
12701 esac
12702 fi
12703
12704 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12705 if test -n "$MAGIC_CMD"; then
12706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12707 $as_echo "$MAGIC_CMD" >&6; }
12708 else
12709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12710 $as_echo "no" >&6; }
12711 fi
12712
12713
12714
12715
12716
12717 if test -z "$lt_cv_path_MAGIC_CMD"; then
12718   if test -n "$ac_tool_prefix"; then
12719     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12720 $as_echo_n "checking for file... " >&6; }
12721 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12722   $as_echo_n "(cached) " >&6
12723 else
12724   case $MAGIC_CMD in
12725 [\\/*] |  ?:[\\/]*)
12726   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12727   ;;
12728 *)
12729   lt_save_MAGIC_CMD="$MAGIC_CMD"
12730   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12731   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12732   for ac_dir in $ac_dummy; do
12733     IFS="$lt_save_ifs"
12734     test -z "$ac_dir" && ac_dir=.
12735     if test -f $ac_dir/file; then
12736       lt_cv_path_MAGIC_CMD="$ac_dir/file"
12737       if test -n "$file_magic_test_file"; then
12738         case $deplibs_check_method in
12739         "file_magic "*)
12740           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12741           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12742           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12743             $EGREP "$file_magic_regex" > /dev/null; then
12744             :
12745           else
12746             cat <<_LT_EOF 1>&2
12747
12748 *** Warning: the command libtool uses to detect shared libraries,
12749 *** $file_magic_cmd, produces output that libtool cannot recognize.
12750 *** The result is that libtool may fail to recognize shared libraries
12751 *** as such.  This will affect the creation of libtool libraries that
12752 *** depend on shared libraries, but programs linked with such libtool
12753 *** libraries will work regardless of this problem.  Nevertheless, you
12754 *** may want to report the problem to your system manager and/or to
12755 *** bug-libtool@gnu.org
12756
12757 _LT_EOF
12758           fi ;;
12759         esac
12760       fi
12761       break
12762     fi
12763   done
12764   IFS="$lt_save_ifs"
12765   MAGIC_CMD="$lt_save_MAGIC_CMD"
12766   ;;
12767 esac
12768 fi
12769
12770 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12771 if test -n "$MAGIC_CMD"; then
12772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12773 $as_echo "$MAGIC_CMD" >&6; }
12774 else
12775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12776 $as_echo "no" >&6; }
12777 fi
12778
12779
12780   else
12781     MAGIC_CMD=:
12782   fi
12783 fi
12784
12785   fi
12786   ;;
12787 esac
12788
12789 # Use C for the default configuration in the libtool script
12790
12791 lt_save_CC="$CC"
12792 ac_ext=c
12793 ac_cpp='$CPP $CPPFLAGS'
12794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12797
12798
12799 # Source file extension for C test sources.
12800 ac_ext=c
12801
12802 # Object file extension for compiled C test sources.
12803 objext=o
12804 objext=$objext
12805
12806 # Code to be used in simple compile tests
12807 lt_simple_compile_test_code="int some_variable = 0;"
12808
12809 # Code to be used in simple link tests
12810 lt_simple_link_test_code='int main(){return(0);}'
12811
12812
12813
12814
12815
12816
12817
12818 # If no C compiler was specified, use CC.
12819 LTCC=${LTCC-"$CC"}
12820
12821 # If no C compiler flags were specified, use CFLAGS.
12822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12823
12824 # Allow CC to be a program name with arguments.
12825 compiler=$CC
12826
12827 # Save the default compiler, since it gets overwritten when the other
12828 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12829 compiler_DEFAULT=$CC
12830
12831 # save warnings/boilerplate of simple test code
12832 ac_outfile=conftest.$ac_objext
12833 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12834 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12835 _lt_compiler_boilerplate=`cat conftest.err`
12836 $RM conftest*
12837
12838 ac_outfile=conftest.$ac_objext
12839 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12840 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12841 _lt_linker_boilerplate=`cat conftest.err`
12842 $RM -r conftest*
12843
12844
12845 ## CAVEAT EMPTOR:
12846 ## There is no encapsulation within the following macros, do not change
12847 ## the running order or otherwise move them around unless you know exactly
12848 ## what you are doing...
12849 if test -n "$compiler"; then
12850
12851 lt_prog_compiler_no_builtin_flag=
12852
12853 if test "$GCC" = yes; then
12854   case $cc_basename in
12855   nvcc*)
12856     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12857   *)
12858     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12859   esac
12860
12861   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12862 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12863 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   lt_cv_prog_compiler_rtti_exceptions=no
12867    ac_outfile=conftest.$ac_objext
12868    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12869    lt_compiler_flag="-fno-rtti -fno-exceptions"
12870    # Insert the option either (1) after the last *FLAGS variable, or
12871    # (2) before a word containing "conftest.", or (3) at the end.
12872    # Note that $ac_compile itself does not contain backslashes and begins
12873    # with a dollar sign (not a hyphen), so the echo should work correctly.
12874    # The option is referenced via a variable to avoid confusing sed.
12875    lt_compile=`echo "$ac_compile" | $SED \
12876    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12877    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12878    -e 's:$: $lt_compiler_flag:'`
12879    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12880    (eval "$lt_compile" 2>conftest.err)
12881    ac_status=$?
12882    cat conftest.err >&5
12883    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884    if (exit $ac_status) && test -s "$ac_outfile"; then
12885      # The compiler can only warn and ignore the option if not recognized
12886      # So say no if there are warnings other than the usual output.
12887      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12888      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12889      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12890        lt_cv_prog_compiler_rtti_exceptions=yes
12891      fi
12892    fi
12893    $RM conftest*
12894
12895 fi
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12897 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12898
12899 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12900     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12901 else
12902     :
12903 fi
12904
12905 fi
12906
12907
12908
12909
12910
12911
12912   lt_prog_compiler_wl=
12913 lt_prog_compiler_pic=
12914 lt_prog_compiler_static=
12915
12916
12917   if test "$GCC" = yes; then
12918     lt_prog_compiler_wl='-Wl,'
12919     lt_prog_compiler_static='-static'
12920
12921     case $host_os in
12922       aix*)
12923       # All AIX code is PIC.
12924       if test "$host_cpu" = ia64; then
12925         # AIX 5 now supports IA64 processor
12926         lt_prog_compiler_static='-Bstatic'
12927       fi
12928       ;;
12929
12930     amigaos*)
12931       case $host_cpu in
12932       powerpc)
12933             # see comment about AmigaOS4 .so support
12934             lt_prog_compiler_pic='-fPIC'
12935         ;;
12936       m68k)
12937             # FIXME: we need at least 68020 code to build shared libraries, but
12938             # adding the `-m68020' flag to GCC prevents building anything better,
12939             # like `-m68040'.
12940             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12941         ;;
12942       esac
12943       ;;
12944
12945     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12946       # PIC is the default for these OSes.
12947       ;;
12948
12949     mingw* | cygwin* | pw32* | os2* | cegcc*)
12950       # This hack is so that the source file can tell whether it is being
12951       # built for inclusion in a dll (and should export symbols for example).
12952       # Although the cygwin gcc ignores -fPIC, still need this for old-style
12953       # (--disable-auto-import) libraries
12954       lt_prog_compiler_pic='-DDLL_EXPORT'
12955       ;;
12956
12957     darwin* | rhapsody*)
12958       # PIC is the default on this platform
12959       # Common symbols not allowed in MH_DYLIB files
12960       lt_prog_compiler_pic='-fno-common'
12961       ;;
12962
12963     haiku*)
12964       # PIC is the default for Haiku.
12965       # The "-static" flag exists, but is broken.
12966       lt_prog_compiler_static=
12967       ;;
12968
12969     hpux*)
12970       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12971       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
12972       # sets the default TLS model and affects inlining.
12973       case $host_cpu in
12974       hppa*64*)
12975         # +Z the default
12976         ;;
12977       *)
12978         lt_prog_compiler_pic='-fPIC'
12979         ;;
12980       esac
12981       ;;
12982
12983     interix[3-9]*)
12984       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12985       # Instead, we relocate shared libraries at runtime.
12986       ;;
12987
12988     msdosdjgpp*)
12989       # Just because we use GCC doesn't mean we suddenly get shared libraries
12990       # on systems that don't support them.
12991       lt_prog_compiler_can_build_shared=no
12992       enable_shared=no
12993       ;;
12994
12995     *nto* | *qnx*)
12996       # QNX uses GNU C++, but need to define -shared option too, otherwise
12997       # it will coredump.
12998       lt_prog_compiler_pic='-fPIC -shared'
12999       ;;
13000
13001     sysv4*MP*)
13002       if test -d /usr/nec; then
13003         lt_prog_compiler_pic=-Kconform_pic
13004       fi
13005       ;;
13006
13007     *)
13008       lt_prog_compiler_pic='-fPIC'
13009       ;;
13010     esac
13011
13012     case $cc_basename in
13013     nvcc*) # Cuda Compiler Driver 2.2
13014       lt_prog_compiler_wl='-Xlinker '
13015       if test -n "$lt_prog_compiler_pic"; then
13016         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
13017       fi
13018       ;;
13019     esac
13020   else
13021     # PORTME Check for flag to pass linker flags through the system compiler.
13022     case $host_os in
13023     aix*)
13024       lt_prog_compiler_wl='-Wl,'
13025       if test "$host_cpu" = ia64; then
13026         # AIX 5 now supports IA64 processor
13027         lt_prog_compiler_static='-Bstatic'
13028       else
13029         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13030       fi
13031       ;;
13032
13033     mingw* | cygwin* | pw32* | os2* | cegcc*)
13034       # This hack is so that the source file can tell whether it is being
13035       # built for inclusion in a dll (and should export symbols for example).
13036       lt_prog_compiler_pic='-DDLL_EXPORT'
13037       ;;
13038
13039     hpux9* | hpux10* | hpux11*)
13040       lt_prog_compiler_wl='-Wl,'
13041       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13042       # not for PA HP-UX.
13043       case $host_cpu in
13044       hppa*64*|ia64*)
13045         # +Z the default
13046         ;;
13047       *)
13048         lt_prog_compiler_pic='+Z'
13049         ;;
13050       esac
13051       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13052       lt_prog_compiler_static='${wl}-a ${wl}archive'
13053       ;;
13054
13055     irix5* | irix6* | nonstopux*)
13056       lt_prog_compiler_wl='-Wl,'
13057       # PIC (with -KPIC) is the default.
13058       lt_prog_compiler_static='-non_shared'
13059       ;;
13060
13061     linux* | k*bsd*-gnu | kopensolaris*-gnu)
13062       case $cc_basename in
13063       # old Intel for x86_64 which still supported -KPIC.
13064       ecc*)
13065         lt_prog_compiler_wl='-Wl,'
13066         lt_prog_compiler_pic='-KPIC'
13067         lt_prog_compiler_static='-static'
13068         ;;
13069       # icc used to be incompatible with GCC.
13070       # ICC 10 doesn't accept -KPIC any more.
13071       icc* | ifort*)
13072         lt_prog_compiler_wl='-Wl,'
13073         lt_prog_compiler_pic='-fPIC'
13074         lt_prog_compiler_static='-static'
13075         ;;
13076       # Lahey Fortran 8.1.
13077       lf95*)
13078         lt_prog_compiler_wl='-Wl,'
13079         lt_prog_compiler_pic='--shared'
13080         lt_prog_compiler_static='--static'
13081         ;;
13082       nagfor*)
13083         # NAG Fortran compiler
13084         lt_prog_compiler_wl='-Wl,-Wl,,'
13085         lt_prog_compiler_pic='-PIC'
13086         lt_prog_compiler_static='-Bstatic'
13087         ;;
13088       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13089         # Portland Group compilers (*not* the Pentium gcc compiler,
13090         # which looks to be a dead project)
13091         lt_prog_compiler_wl='-Wl,'
13092         lt_prog_compiler_pic='-fpic'
13093         lt_prog_compiler_static='-Bstatic'
13094         ;;
13095       ccc*)
13096         lt_prog_compiler_wl='-Wl,'
13097         # All Alpha code is PIC.
13098         lt_prog_compiler_static='-non_shared'
13099         ;;
13100       xl* | bgxl* | bgf* | mpixl*)
13101         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13102         lt_prog_compiler_wl='-Wl,'
13103         lt_prog_compiler_pic='-qpic'
13104         lt_prog_compiler_static='-qstaticlink'
13105         ;;
13106       *)
13107         case `$CC -V 2>&1 | sed 5q` in
13108         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13109           # Sun Fortran 8.3 passes all unrecognized flags to the linker
13110           lt_prog_compiler_pic='-KPIC'
13111           lt_prog_compiler_static='-Bstatic'
13112           lt_prog_compiler_wl=''
13113           ;;
13114         *Sun\ F* | *Sun*Fortran*)
13115           lt_prog_compiler_pic='-KPIC'
13116           lt_prog_compiler_static='-Bstatic'
13117           lt_prog_compiler_wl='-Qoption ld '
13118           ;;
13119         *Sun\ C*)
13120           # Sun C 5.9
13121           lt_prog_compiler_pic='-KPIC'
13122           lt_prog_compiler_static='-Bstatic'
13123           lt_prog_compiler_wl='-Wl,'
13124           ;;
13125         *Intel*\ [CF]*Compiler*)
13126           lt_prog_compiler_wl='-Wl,'
13127           lt_prog_compiler_pic='-fPIC'
13128           lt_prog_compiler_static='-static'
13129           ;;
13130         *Portland\ Group*)
13131           lt_prog_compiler_wl='-Wl,'
13132           lt_prog_compiler_pic='-fpic'
13133           lt_prog_compiler_static='-Bstatic'
13134           ;;
13135         esac
13136         ;;
13137       esac
13138       ;;
13139
13140     newsos6)
13141       lt_prog_compiler_pic='-KPIC'
13142       lt_prog_compiler_static='-Bstatic'
13143       ;;
13144
13145     *nto* | *qnx*)
13146       # QNX uses GNU C++, but need to define -shared option too, otherwise
13147       # it will coredump.
13148       lt_prog_compiler_pic='-fPIC -shared'
13149       ;;
13150
13151     osf3* | osf4* | osf5*)
13152       lt_prog_compiler_wl='-Wl,'
13153       # All OSF/1 code is PIC.
13154       lt_prog_compiler_static='-non_shared'
13155       ;;
13156
13157     rdos*)
13158       lt_prog_compiler_static='-non_shared'
13159       ;;
13160
13161     solaris*)
13162       lt_prog_compiler_pic='-KPIC'
13163       lt_prog_compiler_static='-Bstatic'
13164       case $cc_basename in
13165       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13166         lt_prog_compiler_wl='-Qoption ld ';;
13167       *)
13168         lt_prog_compiler_wl='-Wl,';;
13169       esac
13170       ;;
13171
13172     sunos4*)
13173       lt_prog_compiler_wl='-Qoption ld '
13174       lt_prog_compiler_pic='-PIC'
13175       lt_prog_compiler_static='-Bstatic'
13176       ;;
13177
13178     sysv4 | sysv4.2uw2* | sysv4.3*)
13179       lt_prog_compiler_wl='-Wl,'
13180       lt_prog_compiler_pic='-KPIC'
13181       lt_prog_compiler_static='-Bstatic'
13182       ;;
13183
13184     sysv4*MP*)
13185       if test -d /usr/nec ;then
13186         lt_prog_compiler_pic='-Kconform_pic'
13187         lt_prog_compiler_static='-Bstatic'
13188       fi
13189       ;;
13190
13191     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13192       lt_prog_compiler_wl='-Wl,'
13193       lt_prog_compiler_pic='-KPIC'
13194       lt_prog_compiler_static='-Bstatic'
13195       ;;
13196
13197     unicos*)
13198       lt_prog_compiler_wl='-Wl,'
13199       lt_prog_compiler_can_build_shared=no
13200       ;;
13201
13202     uts4*)
13203       lt_prog_compiler_pic='-pic'
13204       lt_prog_compiler_static='-Bstatic'
13205       ;;
13206
13207     *)
13208       lt_prog_compiler_can_build_shared=no
13209       ;;
13210     esac
13211   fi
13212
13213 case $host_os in
13214   # For platforms which do not support PIC, -DPIC is meaningless:
13215   *djgpp*)
13216     lt_prog_compiler_pic=
13217     ;;
13218   *)
13219     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13220     ;;
13221 esac
13222
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13224 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13225 if ${lt_cv_prog_compiler_pic+:} false; then :
13226   $as_echo_n "(cached) " >&6
13227 else
13228   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13229 fi
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13231 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13232 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13233
13234 #
13235 # Check to make sure the PIC flag actually works.
13236 #
13237 if test -n "$lt_prog_compiler_pic"; then
13238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13239 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13240 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13241   $as_echo_n "(cached) " >&6
13242 else
13243   lt_cv_prog_compiler_pic_works=no
13244    ac_outfile=conftest.$ac_objext
13245    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13246    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13247    # Insert the option either (1) after the last *FLAGS variable, or
13248    # (2) before a word containing "conftest.", or (3) at the end.
13249    # Note that $ac_compile itself does not contain backslashes and begins
13250    # with a dollar sign (not a hyphen), so the echo should work correctly.
13251    # The option is referenced via a variable to avoid confusing sed.
13252    lt_compile=`echo "$ac_compile" | $SED \
13253    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13254    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13255    -e 's:$: $lt_compiler_flag:'`
13256    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13257    (eval "$lt_compile" 2>conftest.err)
13258    ac_status=$?
13259    cat conftest.err >&5
13260    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261    if (exit $ac_status) && test -s "$ac_outfile"; then
13262      # The compiler can only warn and ignore the option if not recognized
13263      # So say no if there are warnings other than the usual output.
13264      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13265      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13266      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13267        lt_cv_prog_compiler_pic_works=yes
13268      fi
13269    fi
13270    $RM conftest*
13271
13272 fi
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13274 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13275
13276 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13277     case $lt_prog_compiler_pic in
13278      "" | " "*) ;;
13279      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13280      esac
13281 else
13282     lt_prog_compiler_pic=
13283      lt_prog_compiler_can_build_shared=no
13284 fi
13285
13286 fi
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296
13297
13298 #
13299 # Check to make sure the static flag actually works.
13300 #
13301 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13303 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13304 if ${lt_cv_prog_compiler_static_works+:} false; then :
13305   $as_echo_n "(cached) " >&6
13306 else
13307   lt_cv_prog_compiler_static_works=no
13308    save_LDFLAGS="$LDFLAGS"
13309    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13310    echo "$lt_simple_link_test_code" > conftest.$ac_ext
13311    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13312      # The linker can only warn and ignore the option if not recognized
13313      # So say no if there are warnings
13314      if test -s conftest.err; then
13315        # Append any errors to the config.log.
13316        cat conftest.err 1>&5
13317        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13318        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13319        if diff conftest.exp conftest.er2 >/dev/null; then
13320          lt_cv_prog_compiler_static_works=yes
13321        fi
13322      else
13323        lt_cv_prog_compiler_static_works=yes
13324      fi
13325    fi
13326    $RM -r conftest*
13327    LDFLAGS="$save_LDFLAGS"
13328
13329 fi
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13331 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13332
13333 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13334     :
13335 else
13336     lt_prog_compiler_static=
13337 fi
13338
13339
13340
13341
13342
13343
13344
13345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13346 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13347 if ${lt_cv_prog_compiler_c_o+:} false; then :
13348   $as_echo_n "(cached) " >&6
13349 else
13350   lt_cv_prog_compiler_c_o=no
13351    $RM -r conftest 2>/dev/null
13352    mkdir conftest
13353    cd conftest
13354    mkdir out
13355    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13356
13357    lt_compiler_flag="-o out/conftest2.$ac_objext"
13358    # Insert the option either (1) after the last *FLAGS variable, or
13359    # (2) before a word containing "conftest.", or (3) at the end.
13360    # Note that $ac_compile itself does not contain backslashes and begins
13361    # with a dollar sign (not a hyphen), so the echo should work correctly.
13362    lt_compile=`echo "$ac_compile" | $SED \
13363    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13364    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13365    -e 's:$: $lt_compiler_flag:'`
13366    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13367    (eval "$lt_compile" 2>out/conftest.err)
13368    ac_status=$?
13369    cat out/conftest.err >&5
13370    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13372    then
13373      # The compiler can only warn and ignore the option if not recognized
13374      # So say no if there are warnings
13375      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13376      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13377      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13378        lt_cv_prog_compiler_c_o=yes
13379      fi
13380    fi
13381    chmod u+w . 2>&5
13382    $RM conftest*
13383    # SGI C++ compiler will create directory out/ii_files/ for
13384    # template instantiation
13385    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13386    $RM out/* && rmdir out
13387    cd ..
13388    $RM -r conftest
13389    $RM conftest*
13390
13391 fi
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13393 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13394
13395
13396
13397
13398
13399
13400   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13401 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13402 if ${lt_cv_prog_compiler_c_o+:} false; then :
13403   $as_echo_n "(cached) " >&6
13404 else
13405   lt_cv_prog_compiler_c_o=no
13406    $RM -r conftest 2>/dev/null
13407    mkdir conftest
13408    cd conftest
13409    mkdir out
13410    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13411
13412    lt_compiler_flag="-o out/conftest2.$ac_objext"
13413    # Insert the option either (1) after the last *FLAGS variable, or
13414    # (2) before a word containing "conftest.", or (3) at the end.
13415    # Note that $ac_compile itself does not contain backslashes and begins
13416    # with a dollar sign (not a hyphen), so the echo should work correctly.
13417    lt_compile=`echo "$ac_compile" | $SED \
13418    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13419    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13420    -e 's:$: $lt_compiler_flag:'`
13421    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13422    (eval "$lt_compile" 2>out/conftest.err)
13423    ac_status=$?
13424    cat out/conftest.err >&5
13425    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13427    then
13428      # The compiler can only warn and ignore the option if not recognized
13429      # So say no if there are warnings
13430      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13431      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13432      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13433        lt_cv_prog_compiler_c_o=yes
13434      fi
13435    fi
13436    chmod u+w . 2>&5
13437    $RM conftest*
13438    # SGI C++ compiler will create directory out/ii_files/ for
13439    # template instantiation
13440    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13441    $RM out/* && rmdir out
13442    cd ..
13443    $RM -r conftest
13444    $RM conftest*
13445
13446 fi
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13448 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13449
13450
13451
13452
13453 hard_links="nottested"
13454 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13455   # do not overwrite the value of need_locks provided by the user
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13457 $as_echo_n "checking if we can lock with hard links... " >&6; }
13458   hard_links=yes
13459   $RM conftest*
13460   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13461   touch conftest.a
13462   ln conftest.a conftest.b 2>&5 || hard_links=no
13463   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13465 $as_echo "$hard_links" >&6; }
13466   if test "$hard_links" = no; then
13467     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13468 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13469     need_locks=warn
13470   fi
13471 else
13472   need_locks=no
13473 fi
13474
13475
13476
13477
13478
13479
13480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13481 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13482
13483   runpath_var=
13484   allow_undefined_flag=
13485   always_export_symbols=no
13486   archive_cmds=
13487   archive_expsym_cmds=
13488   compiler_needs_object=no
13489   enable_shared_with_static_runtimes=no
13490   export_dynamic_flag_spec=
13491   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13492   hardcode_automatic=no
13493   hardcode_direct=no
13494   hardcode_direct_absolute=no
13495   hardcode_libdir_flag_spec=
13496   hardcode_libdir_separator=
13497   hardcode_minus_L=no
13498   hardcode_shlibpath_var=unsupported
13499   inherit_rpath=no
13500   link_all_deplibs=unknown
13501   module_cmds=
13502   module_expsym_cmds=
13503   old_archive_from_new_cmds=
13504   old_archive_from_expsyms_cmds=
13505   thread_safe_flag_spec=
13506   whole_archive_flag_spec=
13507   # include_expsyms should be a list of space-separated symbols to be *always*
13508   # included in the symbol list
13509   include_expsyms=
13510   # exclude_expsyms can be an extended regexp of symbols to exclude
13511   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13512   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13513   # as well as any symbol that contains `d'.
13514   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13515   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13516   # platforms (ab)use it in PIC code, but their linkers get confused if
13517   # the symbol is explicitly referenced.  Since portable code cannot
13518   # rely on this symbol name, it's probably fine to never include it in
13519   # preloaded symbol tables.
13520   # Exclude shared library initialization/finalization symbols.
13521   extract_expsyms_cmds=
13522
13523   case $host_os in
13524   cygwin* | mingw* | pw32* | cegcc*)
13525     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13526     # When not using gcc, we currently assume that we are using
13527     # Microsoft Visual C++.
13528     if test "$GCC" != yes; then
13529       with_gnu_ld=no
13530     fi
13531     ;;
13532   interix*)
13533     # we just hope/assume this is gcc and not c89 (= MSVC++)
13534     with_gnu_ld=yes
13535     ;;
13536   openbsd*)
13537     with_gnu_ld=no
13538     ;;
13539   esac
13540
13541   ld_shlibs=yes
13542
13543   # On some targets, GNU ld is compatible enough with the native linker
13544   # that we're better off using the native interface for both.
13545   lt_use_gnu_ld_interface=no
13546   if test "$with_gnu_ld" = yes; then
13547     case $host_os in
13548       aix*)
13549         # The AIX port of GNU ld has always aspired to compatibility
13550         # with the native linker.  However, as the warning in the GNU ld
13551         # block says, versions before 2.19.5* couldn't really create working
13552         # shared libraries, regardless of the interface used.
13553         case `$LD -v 2>&1` in
13554           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13555           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13556           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13557           *)
13558             lt_use_gnu_ld_interface=yes
13559             ;;
13560         esac
13561         ;;
13562       *)
13563         lt_use_gnu_ld_interface=yes
13564         ;;
13565     esac
13566   fi
13567
13568   if test "$lt_use_gnu_ld_interface" = yes; then
13569     # If archive_cmds runs LD, not CC, wlarc should be empty
13570     wlarc='${wl}'
13571
13572     # Set some defaults for GNU ld with shared library support. These
13573     # are reset later if shared libraries are not supported. Putting them
13574     # here allows them to be overridden if necessary.
13575     runpath_var=LD_RUN_PATH
13576     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13577     export_dynamic_flag_spec='${wl}--export-dynamic'
13578     # ancient GNU ld didn't support --whole-archive et. al.
13579     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13580       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13581     else
13582       whole_archive_flag_spec=
13583     fi
13584     supports_anon_versioning=no
13585     case `$LD -v 2>&1` in
13586       *GNU\ gold*) supports_anon_versioning=yes ;;
13587       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13588       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13589       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13590       *\ 2.11.*) ;; # other 2.11 versions
13591       *) supports_anon_versioning=yes ;;
13592     esac
13593
13594     # See if GNU ld supports shared libraries.
13595     case $host_os in
13596     aix[3-9]*)
13597       # On AIX/PPC, the GNU linker is very broken
13598       if test "$host_cpu" != ia64; then
13599         ld_shlibs=no
13600         cat <<_LT_EOF 1>&2
13601
13602 *** Warning: the GNU linker, at least up to release 2.19, is reported
13603 *** to be unable to reliably create shared libraries on AIX.
13604 *** Therefore, libtool is disabling shared libraries support.  If you
13605 *** really care for shared libraries, you may want to install binutils
13606 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13607 *** You will then need to restart the configuration process.
13608
13609 _LT_EOF
13610       fi
13611       ;;
13612
13613     amigaos*)
13614       case $host_cpu in
13615       powerpc)
13616             # see comment about AmigaOS4 .so support
13617             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13618             archive_expsym_cmds=''
13619         ;;
13620       m68k)
13621             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)'
13622             hardcode_libdir_flag_spec='-L$libdir'
13623             hardcode_minus_L=yes
13624         ;;
13625       esac
13626       ;;
13627
13628     beos*)
13629       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13630         allow_undefined_flag=unsupported
13631         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13632         # support --undefined.  This deserves some investigation.  FIXME
13633         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13634       else
13635         ld_shlibs=no
13636       fi
13637       ;;
13638
13639     cygwin* | mingw* | pw32* | cegcc*)
13640       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13641       # as there is no search path for DLLs.
13642       hardcode_libdir_flag_spec='-L$libdir'
13643       export_dynamic_flag_spec='${wl}--export-all-symbols'
13644       allow_undefined_flag=unsupported
13645       always_export_symbols=no
13646       enable_shared_with_static_runtimes=yes
13647       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'
13648       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13649
13650       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13651         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13652         # If the export-symbols file already is a .def file (1st line
13653         # is EXPORTS), use it as is; otherwise, prepend...
13654         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13655           cp $export_symbols $output_objdir/$soname.def;
13656         else
13657           echo EXPORTS > $output_objdir/$soname.def;
13658           cat $export_symbols >> $output_objdir/$soname.def;
13659         fi~
13660         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13661       else
13662         ld_shlibs=no
13663       fi
13664       ;;
13665
13666     haiku*)
13667       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13668       link_all_deplibs=yes
13669       ;;
13670
13671     interix[3-9]*)
13672       hardcode_direct=no
13673       hardcode_shlibpath_var=no
13674       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13675       export_dynamic_flag_spec='${wl}-E'
13676       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13677       # Instead, shared libraries are loaded at an image base (0x10000000 by
13678       # default) and relocated if they conflict, which is a slow very memory
13679       # consuming and fragmenting process.  To avoid this, we pick a random,
13680       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13681       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13682       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13683       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'
13684       ;;
13685
13686     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13687       tmp_diet=no
13688       if test "$host_os" = linux-dietlibc; then
13689         case $cc_basename in
13690           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
13691         esac
13692       fi
13693       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13694          && test "$tmp_diet" = no
13695       then
13696         tmp_addflag=' $pic_flag'
13697         tmp_sharedflag='-shared'
13698         case $cc_basename,$host_cpu in
13699         pgcc*)                          # Portland Group C compiler
13700           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'
13701           tmp_addflag=' $pic_flag'
13702           ;;
13703         pgf77* | pgf90* | pgf95* | pgfortran*)
13704                                         # Portland Group f77 and f90 compilers
13705           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'
13706           tmp_addflag=' $pic_flag -Mnomain' ;;
13707         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
13708           tmp_addflag=' -i_dynamic' ;;
13709         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13710           tmp_addflag=' -i_dynamic -nofor_main' ;;
13711         ifc* | ifort*)                  # Intel Fortran compiler
13712           tmp_addflag=' -nofor_main' ;;
13713         lf95*)                          # Lahey Fortran 8.1
13714           whole_archive_flag_spec=
13715           tmp_sharedflag='--shared' ;;
13716         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13717           tmp_sharedflag='-qmkshrobj'
13718           tmp_addflag= ;;
13719         nvcc*)  # Cuda Compiler Driver 2.2
13720           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'
13721           compiler_needs_object=yes
13722           ;;
13723         esac
13724         case `$CC -V 2>&1 | sed 5q` in
13725         *Sun\ C*)                       # Sun C 5.9
13726           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'
13727           compiler_needs_object=yes
13728           tmp_sharedflag='-G' ;;
13729         *Sun\ F*)                       # Sun Fortran 8.3
13730           tmp_sharedflag='-G' ;;
13731         esac
13732         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13733
13734         if test "x$supports_anon_versioning" = xyes; then
13735           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13736             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13737             echo "local: *; };" >> $output_objdir/$libname.ver~
13738             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13739         fi
13740
13741         case $cc_basename in
13742         xlf* | bgf* | bgxlf* | mpixlf*)
13743           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13744           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13745           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13746           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13747           if test "x$supports_anon_versioning" = xyes; then
13748             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13749               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13750               echo "local: *; };" >> $output_objdir/$libname.ver~
13751               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13752           fi
13753           ;;
13754         esac
13755       else
13756         ld_shlibs=no
13757       fi
13758       ;;
13759
13760     netbsd*)
13761       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13762         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13763         wlarc=
13764       else
13765         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13766         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13767       fi
13768       ;;
13769
13770     solaris*)
13771       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13772         ld_shlibs=no
13773         cat <<_LT_EOF 1>&2
13774
13775 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13776 *** create shared libraries on Solaris systems.  Therefore, libtool
13777 *** is disabling shared libraries support.  We urge you to upgrade GNU
13778 *** binutils to release 2.9.1 or newer.  Another option is to modify
13779 *** your PATH or compiler configuration so that the native linker is
13780 *** used, and then restart.
13781
13782 _LT_EOF
13783       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13784         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13786       else
13787         ld_shlibs=no
13788       fi
13789       ;;
13790
13791     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13792       case `$LD -v 2>&1` in
13793         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13794         ld_shlibs=no
13795         cat <<_LT_EOF 1>&2
13796
13797 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13798 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13799 *** is disabling shared libraries support.  We urge you to upgrade GNU
13800 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13801 *** your PATH or compiler configuration so that the native linker is
13802 *** used, and then restart.
13803
13804 _LT_EOF
13805         ;;
13806         *)
13807           # For security reasons, it is highly recommended that you always
13808           # use absolute paths for naming shared libraries, and exclude the
13809           # DT_RUNPATH tag from executables and libraries.  But doing so
13810           # requires that you compile everything twice, which is a pain.
13811           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13812             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13813             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13814             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13815           else
13816             ld_shlibs=no
13817           fi
13818         ;;
13819       esac
13820       ;;
13821
13822     sunos4*)
13823       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13824       wlarc=
13825       hardcode_direct=yes
13826       hardcode_shlibpath_var=no
13827       ;;
13828
13829     *)
13830       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13831         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13832         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13833       else
13834         ld_shlibs=no
13835       fi
13836       ;;
13837     esac
13838
13839     if test "$ld_shlibs" = no; then
13840       runpath_var=
13841       hardcode_libdir_flag_spec=
13842       export_dynamic_flag_spec=
13843       whole_archive_flag_spec=
13844     fi
13845   else
13846     # PORTME fill in a description of your system's linker (not GNU ld)
13847     case $host_os in
13848     aix3*)
13849       allow_undefined_flag=unsupported
13850       always_export_symbols=yes
13851       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'
13852       # Note: this linker hardcodes the directories in LIBPATH if there
13853       # are no directories specified by -L.
13854       hardcode_minus_L=yes
13855       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13856         # Neither direct hardcoding nor static linking is supported with a
13857         # broken collect2.
13858         hardcode_direct=unsupported
13859       fi
13860       ;;
13861
13862     aix[4-9]*)
13863       if test "$host_cpu" = ia64; then
13864         # On IA64, the linker does run time linking by default, so we don't
13865         # have to do anything special.
13866         aix_use_runtimelinking=no
13867         exp_sym_flag='-Bexport'
13868         no_entry_flag=""
13869       else
13870         # If we're using GNU nm, then we don't want the "-C" option.
13871         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13872         # Also, AIX nm treats weak defined symbols like other global
13873         # defined symbols, whereas GNU nm marks them as "W".
13874         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13875           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'
13876         else
13877           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'
13878         fi
13879         aix_use_runtimelinking=no
13880
13881         # Test if we are trying to use run time linking or normal
13882         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13883         # need to do runtime linking.
13884         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13885           for ld_flag in $LDFLAGS; do
13886           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13887             aix_use_runtimelinking=yes
13888             break
13889           fi
13890           done
13891           ;;
13892         esac
13893
13894         exp_sym_flag='-bexport'
13895         no_entry_flag='-bnoentry'
13896       fi
13897
13898       # When large executables or shared objects are built, AIX ld can
13899       # have problems creating the table of contents.  If linking a library
13900       # or program results in "error TOC overflow" add -mminimal-toc to
13901       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13902       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13903
13904       archive_cmds=''
13905       hardcode_direct=yes
13906       hardcode_direct_absolute=yes
13907       hardcode_libdir_separator=':'
13908       link_all_deplibs=yes
13909       file_list_spec='${wl}-f,'
13910
13911       if test "$GCC" = yes; then
13912         case $host_os in aix4.[012]|aix4.[012].*)
13913         # We only want to do this on AIX 4.2 and lower, the check
13914         # below for broken collect2 doesn't work under 4.3+
13915           collect2name=`${CC} -print-prog-name=collect2`
13916           if test -f "$collect2name" &&
13917            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13918           then
13919           # We have reworked collect2
13920           :
13921           else
13922           # We have old collect2
13923           hardcode_direct=unsupported
13924           # It fails to find uninstalled libraries when the uninstalled
13925           # path is not listed in the libpath.  Setting hardcode_minus_L
13926           # to unsupported forces relinking
13927           hardcode_minus_L=yes
13928           hardcode_libdir_flag_spec='-L$libdir'
13929           hardcode_libdir_separator=
13930           fi
13931           ;;
13932         esac
13933         shared_flag='-shared'
13934         if test "$aix_use_runtimelinking" = yes; then
13935           shared_flag="$shared_flag "'${wl}-G'
13936         fi
13937       else
13938         # not using gcc
13939         if test "$host_cpu" = ia64; then
13940         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13941         # chokes on -Wl,-G. The following line is correct:
13942           shared_flag='-G'
13943         else
13944           if test "$aix_use_runtimelinking" = yes; then
13945             shared_flag='${wl}-G'
13946           else
13947             shared_flag='${wl}-bM:SRE'
13948           fi
13949         fi
13950       fi
13951
13952       export_dynamic_flag_spec='${wl}-bexpall'
13953       # It seems that -bexpall does not export symbols beginning with
13954       # underscore (_), so it is better to generate a list of symbols to export.
13955       always_export_symbols=yes
13956       if test "$aix_use_runtimelinking" = yes; then
13957         # Warning - without using the other runtime loading flags (-brtl),
13958         # -berok will link without error, but may produce a broken library.
13959         allow_undefined_flag='-berok'
13960         # Determine the default libpath from the value encoded in an
13961         # empty executable.
13962         if test "${lt_cv_aix_libpath+set}" = set; then
13963   aix_libpath=$lt_cv_aix_libpath
13964 else
13965   if ${lt_cv_aix_libpath_+:} false; then :
13966   $as_echo_n "(cached) " >&6
13967 else
13968   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h.  */
13970
13971 int
13972 main ()
13973 {
13974
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_link "$LINENO"; then :
13980
13981   lt_aix_libpath_sed='
13982       /Import File Strings/,/^$/ {
13983           /^0/ {
13984               s/^0  *\([^ ]*\) *$/\1/
13985               p
13986           }
13987       }'
13988   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13989   # Check for a 64-bit object if we didn't find anything.
13990   if test -z "$lt_cv_aix_libpath_"; then
13991     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13992   fi
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext \
13995     conftest$ac_exeext conftest.$ac_ext
13996   if test -z "$lt_cv_aix_libpath_"; then
13997     lt_cv_aix_libpath_="/usr/lib:/lib"
13998   fi
13999
14000 fi
14001
14002   aix_libpath=$lt_cv_aix_libpath_
14003 fi
14004
14005         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14006         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"
14007       else
14008         if test "$host_cpu" = ia64; then
14009           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14010           allow_undefined_flag="-z nodefs"
14011           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"
14012         else
14013          # Determine the default libpath from the value encoded in an
14014          # empty executable.
14015          if test "${lt_cv_aix_libpath+set}" = set; then
14016   aix_libpath=$lt_cv_aix_libpath
14017 else
14018   if ${lt_cv_aix_libpath_+:} false; then :
14019   $as_echo_n "(cached) " >&6
14020 else
14021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h.  */
14023
14024 int
14025 main ()
14026 {
14027
14028   ;
14029   return 0;
14030 }
14031 _ACEOF
14032 if ac_fn_c_try_link "$LINENO"; then :
14033
14034   lt_aix_libpath_sed='
14035       /Import File Strings/,/^$/ {
14036           /^0/ {
14037               s/^0  *\([^ ]*\) *$/\1/
14038               p
14039           }
14040       }'
14041   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14042   # Check for a 64-bit object if we didn't find anything.
14043   if test -z "$lt_cv_aix_libpath_"; then
14044     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14045   fi
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext \
14048     conftest$ac_exeext conftest.$ac_ext
14049   if test -z "$lt_cv_aix_libpath_"; then
14050     lt_cv_aix_libpath_="/usr/lib:/lib"
14051   fi
14052
14053 fi
14054
14055   aix_libpath=$lt_cv_aix_libpath_
14056 fi
14057
14058          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14059           # Warning - without using the other run time loading flags,
14060           # -berok will link without error, but may produce a broken library.
14061           no_undefined_flag=' ${wl}-bernotok'
14062           allow_undefined_flag=' ${wl}-berok'
14063           if test "$with_gnu_ld" = yes; then
14064             # We only use this code for GNU lds that support --whole-archive.
14065             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14066           else
14067             # Exported symbols can be pulled into shared objects from archives
14068             whole_archive_flag_spec='$convenience'
14069           fi
14070           archive_cmds_need_lc=yes
14071           # This is similar to how AIX traditionally builds its shared libraries.
14072           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'
14073         fi
14074       fi
14075       ;;
14076
14077     amigaos*)
14078       case $host_cpu in
14079       powerpc)
14080             # see comment about AmigaOS4 .so support
14081             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14082             archive_expsym_cmds=''
14083         ;;
14084       m68k)
14085             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)'
14086             hardcode_libdir_flag_spec='-L$libdir'
14087             hardcode_minus_L=yes
14088         ;;
14089       esac
14090       ;;
14091
14092     bsdi[45]*)
14093       export_dynamic_flag_spec=-rdynamic
14094       ;;
14095
14096     cygwin* | mingw* | pw32* | cegcc*)
14097       # When not using gcc, we currently assume that we are using
14098       # Microsoft Visual C++.
14099       # hardcode_libdir_flag_spec is actually meaningless, as there is
14100       # no search path for DLLs.
14101       case $cc_basename in
14102       cl*)
14103         # Native MSVC
14104         hardcode_libdir_flag_spec=' '
14105         allow_undefined_flag=unsupported
14106         always_export_symbols=yes
14107         file_list_spec='@'
14108         # Tell ltmain to make .lib files, not .a files.
14109         libext=lib
14110         # Tell ltmain to make .dll files, not .so files.
14111         shrext_cmds=".dll"
14112         # FIXME: Setting linknames here is a bad hack.
14113         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14114         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14115             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14116           else
14117             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14118           fi~
14119           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14120           linknames='
14121         # The linker will not automatically build a static lib if we build a DLL.
14122         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14123         enable_shared_with_static_runtimes=yes
14124         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14125         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14126         # Don't use ranlib
14127         old_postinstall_cmds='chmod 644 $oldlib'
14128         postlink_cmds='lt_outputfile="@OUTPUT@"~
14129           lt_tool_outputfile="@TOOL_OUTPUT@"~
14130           case $lt_outputfile in
14131             *.exe|*.EXE) ;;
14132             *)
14133               lt_outputfile="$lt_outputfile.exe"
14134               lt_tool_outputfile="$lt_tool_outputfile.exe"
14135               ;;
14136           esac~
14137           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14138             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14139             $RM "$lt_outputfile.manifest";
14140           fi'
14141         ;;
14142       *)
14143         # Assume MSVC wrapper
14144         hardcode_libdir_flag_spec=' '
14145         allow_undefined_flag=unsupported
14146         # Tell ltmain to make .lib files, not .a files.
14147         libext=lib
14148         # Tell ltmain to make .dll files, not .so files.
14149         shrext_cmds=".dll"
14150         # FIXME: Setting linknames here is a bad hack.
14151         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14152         # The linker will automatically build a .lib file if we build a DLL.
14153         old_archive_from_new_cmds='true'
14154         # FIXME: Should let the user specify the lib program.
14155         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14156         enable_shared_with_static_runtimes=yes
14157         ;;
14158       esac
14159       ;;
14160
14161     darwin* | rhapsody*)
14162
14163
14164   archive_cmds_need_lc=no
14165   hardcode_direct=no
14166   hardcode_automatic=yes
14167   hardcode_shlibpath_var=unsupported
14168   if test "$lt_cv_ld_force_load" = "yes"; then
14169     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\"`'
14170
14171   else
14172     whole_archive_flag_spec=''
14173   fi
14174   link_all_deplibs=yes
14175   allow_undefined_flag="$_lt_dar_allow_undefined"
14176   case $cc_basename in
14177      ifort*) _lt_dar_can_shared=yes ;;
14178      *) _lt_dar_can_shared=$GCC ;;
14179   esac
14180   if test "$_lt_dar_can_shared" = "yes"; then
14181     output_verbose_link_cmd=func_echo_all
14182     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14183     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14184     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}"
14185     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}"
14186
14187   else
14188   ld_shlibs=no
14189   fi
14190
14191       ;;
14192
14193     dgux*)
14194       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14195       hardcode_libdir_flag_spec='-L$libdir'
14196       hardcode_shlibpath_var=no
14197       ;;
14198
14199     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14200     # support.  Future versions do this automatically, but an explicit c++rt0.o
14201     # does not break anything, and helps significantly (at the cost of a little
14202     # extra space).
14203     freebsd2.2*)
14204       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14205       hardcode_libdir_flag_spec='-R$libdir'
14206       hardcode_direct=yes
14207       hardcode_shlibpath_var=no
14208       ;;
14209
14210     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14211     freebsd2.*)
14212       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14213       hardcode_direct=yes
14214       hardcode_minus_L=yes
14215       hardcode_shlibpath_var=no
14216       ;;
14217
14218     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14219     freebsd* | dragonfly*)
14220       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14221       hardcode_libdir_flag_spec='-R$libdir'
14222       hardcode_direct=yes
14223       hardcode_shlibpath_var=no
14224       ;;
14225
14226     hpux9*)
14227       if test "$GCC" = yes; then
14228         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'
14229       else
14230         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'
14231       fi
14232       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14233       hardcode_libdir_separator=:
14234       hardcode_direct=yes
14235
14236       # hardcode_minus_L: Not really in the search PATH,
14237       # but as the default location of the library.
14238       hardcode_minus_L=yes
14239       export_dynamic_flag_spec='${wl}-E'
14240       ;;
14241
14242     hpux10*)
14243       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14244         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14245       else
14246         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14247       fi
14248       if test "$with_gnu_ld" = no; then
14249         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14250         hardcode_libdir_separator=:
14251         hardcode_direct=yes
14252         hardcode_direct_absolute=yes
14253         export_dynamic_flag_spec='${wl}-E'
14254         # hardcode_minus_L: Not really in the search PATH,
14255         # but as the default location of the library.
14256         hardcode_minus_L=yes
14257       fi
14258       ;;
14259
14260     hpux11*)
14261       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14262         case $host_cpu in
14263         hppa*64*)
14264           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14265           ;;
14266         ia64*)
14267           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14268           ;;
14269         *)
14270           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14271           ;;
14272         esac
14273       else
14274         case $host_cpu in
14275         hppa*64*)
14276           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14277           ;;
14278         ia64*)
14279           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14280           ;;
14281         *)
14282
14283           # Older versions of the 11.00 compiler do not understand -b yet
14284           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14285           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14286 $as_echo_n "checking if $CC understands -b... " >&6; }
14287 if ${lt_cv_prog_compiler__b+:} false; then :
14288   $as_echo_n "(cached) " >&6
14289 else
14290   lt_cv_prog_compiler__b=no
14291    save_LDFLAGS="$LDFLAGS"
14292    LDFLAGS="$LDFLAGS -b"
14293    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14294    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14295      # The linker can only warn and ignore the option if not recognized
14296      # So say no if there are warnings
14297      if test -s conftest.err; then
14298        # Append any errors to the config.log.
14299        cat conftest.err 1>&5
14300        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14301        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14302        if diff conftest.exp conftest.er2 >/dev/null; then
14303          lt_cv_prog_compiler__b=yes
14304        fi
14305      else
14306        lt_cv_prog_compiler__b=yes
14307      fi
14308    fi
14309    $RM -r conftest*
14310    LDFLAGS="$save_LDFLAGS"
14311
14312 fi
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14314 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14315
14316 if test x"$lt_cv_prog_compiler__b" = xyes; then
14317     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14318 else
14319     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14320 fi
14321
14322           ;;
14323         esac
14324       fi
14325       if test "$with_gnu_ld" = no; then
14326         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14327         hardcode_libdir_separator=:
14328
14329         case $host_cpu in
14330         hppa*64*|ia64*)
14331           hardcode_direct=no
14332           hardcode_shlibpath_var=no
14333           ;;
14334         *)
14335           hardcode_direct=yes
14336           hardcode_direct_absolute=yes
14337           export_dynamic_flag_spec='${wl}-E'
14338
14339           # hardcode_minus_L: Not really in the search PATH,
14340           # but as the default location of the library.
14341           hardcode_minus_L=yes
14342           ;;
14343         esac
14344       fi
14345       ;;
14346
14347     irix5* | irix6* | nonstopux*)
14348       if test "$GCC" = yes; then
14349         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'
14350         # Try to use the -exported_symbol ld option, if it does not
14351         # work, assume that -exports_file does not work either and
14352         # implicitly export all symbols.
14353         # This should be the same for all languages, so no per-tag cache variable.
14354         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14355 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14356 if ${lt_cv_irix_exported_symbol+:} false; then :
14357   $as_echo_n "(cached) " >&6
14358 else
14359   save_LDFLAGS="$LDFLAGS"
14360            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14361            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14362 /* end confdefs.h.  */
14363 int foo (void) { return 0; }
14364 _ACEOF
14365 if ac_fn_c_try_link "$LINENO"; then :
14366   lt_cv_irix_exported_symbol=yes
14367 else
14368   lt_cv_irix_exported_symbol=no
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext \
14371     conftest$ac_exeext conftest.$ac_ext
14372            LDFLAGS="$save_LDFLAGS"
14373 fi
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14375 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14376         if test "$lt_cv_irix_exported_symbol" = yes; then
14377           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'
14378         fi
14379       else
14380         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'
14381         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'
14382       fi
14383       archive_cmds_need_lc='no'
14384       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14385       hardcode_libdir_separator=:
14386       inherit_rpath=yes
14387       link_all_deplibs=yes
14388       ;;
14389
14390     netbsd*)
14391       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14392         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14393       else
14394         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14395       fi
14396       hardcode_libdir_flag_spec='-R$libdir'
14397       hardcode_direct=yes
14398       hardcode_shlibpath_var=no
14399       ;;
14400
14401     newsos6)
14402       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14403       hardcode_direct=yes
14404       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14405       hardcode_libdir_separator=:
14406       hardcode_shlibpath_var=no
14407       ;;
14408
14409     *nto* | *qnx*)
14410       ;;
14411
14412     openbsd*)
14413       if test -f /usr/libexec/ld.so; then
14414         hardcode_direct=yes
14415         hardcode_shlibpath_var=no
14416         hardcode_direct_absolute=yes
14417         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14418           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14419           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14420           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14421           export_dynamic_flag_spec='${wl}-E'
14422         else
14423           case $host_os in
14424            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14425              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14426              hardcode_libdir_flag_spec='-R$libdir'
14427              ;;
14428            *)
14429              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14430              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14431              ;;
14432           esac
14433         fi
14434       else
14435         ld_shlibs=no
14436       fi
14437       ;;
14438
14439     os2*)
14440       hardcode_libdir_flag_spec='-L$libdir'
14441       hardcode_minus_L=yes
14442       allow_undefined_flag=unsupported
14443       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'
14444       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14445       ;;
14446
14447     osf3*)
14448       if test "$GCC" = yes; then
14449         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14450         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'
14451       else
14452         allow_undefined_flag=' -expect_unresolved \*'
14453         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'
14454       fi
14455       archive_cmds_need_lc='no'
14456       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14457       hardcode_libdir_separator=:
14458       ;;
14459
14460     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14461       if test "$GCC" = yes; then
14462         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14463         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'
14464         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14465       else
14466         allow_undefined_flag=' -expect_unresolved \*'
14467         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'
14468         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~
14469         $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'
14470
14471         # Both c and cxx compiler support -rpath directly
14472         hardcode_libdir_flag_spec='-rpath $libdir'
14473       fi
14474       archive_cmds_need_lc='no'
14475       hardcode_libdir_separator=:
14476       ;;
14477
14478     solaris*)
14479       no_undefined_flag=' -z defs'
14480       if test "$GCC" = yes; then
14481         wlarc='${wl}'
14482         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14483         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14484           $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'
14485       else
14486         case `$CC -V 2>&1` in
14487         *"Compilers 5.0"*)
14488           wlarc=''
14489           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14490           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14491           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14492           ;;
14493         *)
14494           wlarc='${wl}'
14495           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14496           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14497           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14498           ;;
14499         esac
14500       fi
14501       hardcode_libdir_flag_spec='-R$libdir'
14502       hardcode_shlibpath_var=no
14503       case $host_os in
14504       solaris2.[0-5] | solaris2.[0-5].*) ;;
14505       *)
14506         # The compiler driver will combine and reorder linker options,
14507         # but understands `-z linker_flag'.  GCC discards it without `$wl',
14508         # but is careful enough not to reorder.
14509         # Supported since Solaris 2.6 (maybe 2.5.1?)
14510         if test "$GCC" = yes; then
14511           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14512         else
14513           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14514         fi
14515         ;;
14516       esac
14517       link_all_deplibs=yes
14518       ;;
14519
14520     sunos4*)
14521       if test "x$host_vendor" = xsequent; then
14522         # Use $CC to link under sequent, because it throws in some extra .o
14523         # files that make .init and .fini sections work.
14524         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14525       else
14526         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14527       fi
14528       hardcode_libdir_flag_spec='-L$libdir'
14529       hardcode_direct=yes
14530       hardcode_minus_L=yes
14531       hardcode_shlibpath_var=no
14532       ;;
14533
14534     sysv4)
14535       case $host_vendor in
14536         sni)
14537           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538           hardcode_direct=yes # is this really true???
14539         ;;
14540         siemens)
14541           ## LD is ld it makes a PLAMLIB
14542           ## CC just makes a GrossModule.
14543           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14544           reload_cmds='$CC -r -o $output$reload_objs'
14545           hardcode_direct=no
14546         ;;
14547         motorola)
14548           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14549           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14550         ;;
14551       esac
14552       runpath_var='LD_RUN_PATH'
14553       hardcode_shlibpath_var=no
14554       ;;
14555
14556     sysv4.3*)
14557       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14558       hardcode_shlibpath_var=no
14559       export_dynamic_flag_spec='-Bexport'
14560       ;;
14561
14562     sysv4*MP*)
14563       if test -d /usr/nec; then
14564         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14565         hardcode_shlibpath_var=no
14566         runpath_var=LD_RUN_PATH
14567         hardcode_runpath_var=yes
14568         ld_shlibs=yes
14569       fi
14570       ;;
14571
14572     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14573       no_undefined_flag='${wl}-z,text'
14574       archive_cmds_need_lc=no
14575       hardcode_shlibpath_var=no
14576       runpath_var='LD_RUN_PATH'
14577
14578       if test "$GCC" = yes; then
14579         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14581       else
14582         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584       fi
14585       ;;
14586
14587     sysv5* | sco3.2v5* | sco5v6*)
14588       # Note: We can NOT use -z defs as we might desire, because we do not
14589       # link with -lc, and that would cause any symbols used from libc to
14590       # always be unresolved, which means just about no library would
14591       # ever link correctly.  If we're not using GNU ld we use -z text
14592       # though, which does catch some bad symbols but isn't as heavy-handed
14593       # as -z defs.
14594       no_undefined_flag='${wl}-z,text'
14595       allow_undefined_flag='${wl}-z,nodefs'
14596       archive_cmds_need_lc=no
14597       hardcode_shlibpath_var=no
14598       hardcode_libdir_flag_spec='${wl}-R,$libdir'
14599       hardcode_libdir_separator=':'
14600       link_all_deplibs=yes
14601       export_dynamic_flag_spec='${wl}-Bexport'
14602       runpath_var='LD_RUN_PATH'
14603
14604       if test "$GCC" = yes; then
14605         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14606         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14607       else
14608         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14609         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14610       fi
14611       ;;
14612
14613     uts4*)
14614       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615       hardcode_libdir_flag_spec='-L$libdir'
14616       hardcode_shlibpath_var=no
14617       ;;
14618
14619     *)
14620       ld_shlibs=no
14621       ;;
14622     esac
14623
14624     if test x$host_vendor = xsni; then
14625       case $host in
14626       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14627         export_dynamic_flag_spec='${wl}-Blargedynsym'
14628         ;;
14629       esac
14630     fi
14631   fi
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14634 $as_echo "$ld_shlibs" >&6; }
14635 test "$ld_shlibs" = no && can_build_shared=no
14636
14637 with_gnu_ld=$with_gnu_ld
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653 #
14654 # Do we need to explicitly link libc?
14655 #
14656 case "x$archive_cmds_need_lc" in
14657 x|xyes)
14658   # Assume -lc should be added
14659   archive_cmds_need_lc=yes
14660
14661   if test "$enable_shared" = yes && test "$GCC" = yes; then
14662     case $archive_cmds in
14663     *'~'*)
14664       # FIXME: we may have to deal with multi-command sequences.
14665       ;;
14666     '$CC '*)
14667       # Test whether the compiler implicitly links with -lc since on some
14668       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14669       # to ld, don't add -lc before -lgcc.
14670       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14671 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14672 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14673   $as_echo_n "(cached) " >&6
14674 else
14675   $RM conftest*
14676         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14677
14678         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14679   (eval $ac_compile) 2>&5
14680   ac_status=$?
14681   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14682   test $ac_status = 0; } 2>conftest.err; then
14683           soname=conftest
14684           lib=conftest
14685           libobjs=conftest.$ac_objext
14686           deplibs=
14687           wl=$lt_prog_compiler_wl
14688           pic_flag=$lt_prog_compiler_pic
14689           compiler_flags=-v
14690           linker_flags=-v
14691           verstring=
14692           output_objdir=.
14693           libname=conftest
14694           lt_save_allow_undefined_flag=$allow_undefined_flag
14695           allow_undefined_flag=
14696           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14697   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14698   ac_status=$?
14699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14700   test $ac_status = 0; }
14701           then
14702             lt_cv_archive_cmds_need_lc=no
14703           else
14704             lt_cv_archive_cmds_need_lc=yes
14705           fi
14706           allow_undefined_flag=$lt_save_allow_undefined_flag
14707         else
14708           cat conftest.err 1>&5
14709         fi
14710         $RM conftest*
14711
14712 fi
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14714 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14715       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14716       ;;
14717     esac
14718   fi
14719   ;;
14720 esac
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14874 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14875
14876 if test "$GCC" = yes; then
14877   case $host_os in
14878     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14879     *) lt_awk_arg="/^libraries:/" ;;
14880   esac
14881   case $host_os in
14882     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14883     *) lt_sed_strip_eq="s,=/,/,g" ;;
14884   esac
14885   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14886   case $lt_search_path_spec in
14887   *\;*)
14888     # if the path contains ";" then we assume it to be the separator
14889     # otherwise default to the standard path separator (i.e. ":") - it is
14890     # assumed that no part of a normal pathname contains ";" but that should
14891     # okay in the real world where ";" in dirpaths is itself problematic.
14892     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14893     ;;
14894   *)
14895     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14896     ;;
14897   esac
14898   # Ok, now we have the path, separated by spaces, we can step through it
14899   # and add multilib dir if necessary.
14900   lt_tmp_lt_search_path_spec=
14901   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14902   for lt_sys_path in $lt_search_path_spec; do
14903     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14904       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14905     else
14906       test -d "$lt_sys_path" && \
14907         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14908     fi
14909   done
14910   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14911 BEGIN {RS=" "; FS="/|\n";} {
14912   lt_foo="";
14913   lt_count=0;
14914   for (lt_i = NF; lt_i > 0; lt_i--) {
14915     if ($lt_i != "" && $lt_i != ".") {
14916       if ($lt_i == "..") {
14917         lt_count++;
14918       } else {
14919         if (lt_count == 0) {
14920           lt_foo="/" $lt_i lt_foo;
14921         } else {
14922           lt_count--;
14923         }
14924       }
14925     }
14926   }
14927   if (lt_foo != "") { lt_freq[lt_foo]++; }
14928   if (lt_freq[lt_foo] == 1) { print lt_foo; }
14929 }'`
14930   # AWK program above erroneously prepends '/' to C:/dos/paths
14931   # for these hosts.
14932   case $host_os in
14933     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14934       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14935   esac
14936   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14937 else
14938   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14939 fi
14940 library_names_spec=
14941 libname_spec='lib$name'
14942 soname_spec=
14943 shrext_cmds=".so"
14944 postinstall_cmds=
14945 postuninstall_cmds=
14946 finish_cmds=
14947 finish_eval=
14948 shlibpath_var=
14949 shlibpath_overrides_runpath=unknown
14950 version_type=none
14951 dynamic_linker="$host_os ld.so"
14952 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14953 need_lib_prefix=unknown
14954 hardcode_into_libs=no
14955
14956 # when you set need_version to no, make sure it does not cause -set_version
14957 # flags to be left without arguments
14958 need_version=unknown
14959
14960 case $host_os in
14961 aix3*)
14962   version_type=linux # correct to gnu/linux during the next big refactor
14963   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14964   shlibpath_var=LIBPATH
14965
14966   # AIX 3 has no versioning support, so we append a major version to the name.
14967   soname_spec='${libname}${release}${shared_ext}$major'
14968   ;;
14969
14970 aix[4-9]*)
14971   version_type=linux # correct to gnu/linux during the next big refactor
14972   need_lib_prefix=no
14973   need_version=no
14974   hardcode_into_libs=yes
14975   if test "$host_cpu" = ia64; then
14976     # AIX 5 supports IA64
14977     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14978     shlibpath_var=LD_LIBRARY_PATH
14979   else
14980     # With GCC up to 2.95.x, collect2 would create an import file
14981     # for dependence libraries.  The import file would start with
14982     # the line `#! .'.  This would cause the generated library to
14983     # depend on `.', always an invalid library.  This was fixed in
14984     # development snapshots of GCC prior to 3.0.
14985     case $host_os in
14986       aix4 | aix4.[01] | aix4.[01].*)
14987       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14988            echo ' yes '
14989            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14990         :
14991       else
14992         can_build_shared=no
14993       fi
14994       ;;
14995     esac
14996     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14997     # soname into executable. Probably we can add versioning support to
14998     # collect2, so additional links can be useful in future.
14999     if test "$aix_use_runtimelinking" = yes; then
15000       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15001       # instead of lib<name>.a to let people know that these are not
15002       # typical AIX shared libraries.
15003       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004     else
15005       # We preserve .a as extension for shared libraries through AIX4.2
15006       # and later when we are not doing run time linking.
15007       library_names_spec='${libname}${release}.a $libname.a'
15008       soname_spec='${libname}${release}${shared_ext}$major'
15009     fi
15010     shlibpath_var=LIBPATH
15011   fi
15012   ;;
15013
15014 amigaos*)
15015   case $host_cpu in
15016   powerpc)
15017     # Since July 2007 AmigaOS4 officially supports .so libraries.
15018     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15019     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020     ;;
15021   m68k)
15022     library_names_spec='$libname.ixlibrary $libname.a'
15023     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15024     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'
15025     ;;
15026   esac
15027   ;;
15028
15029 beos*)
15030   library_names_spec='${libname}${shared_ext}'
15031   dynamic_linker="$host_os ld.so"
15032   shlibpath_var=LIBRARY_PATH
15033   ;;
15034
15035 bsdi[45]*)
15036   version_type=linux # correct to gnu/linux during the next big refactor
15037   need_version=no
15038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15039   soname_spec='${libname}${release}${shared_ext}$major'
15040   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15041   shlibpath_var=LD_LIBRARY_PATH
15042   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15043   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15044   # the default ld.so.conf also contains /usr/contrib/lib and
15045   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15046   # libtool to hard-code these into programs
15047   ;;
15048
15049 cygwin* | mingw* | pw32* | cegcc*)
15050   version_type=windows
15051   shrext_cmds=".dll"
15052   need_version=no
15053   need_lib_prefix=no
15054
15055   case $GCC,$cc_basename in
15056   yes,*)
15057     # gcc
15058     library_names_spec='$libname.dll.a'
15059     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15060     postinstall_cmds='base_file=`basename \${file}`~
15061       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15062       dldir=$destdir/`dirname \$dlpath`~
15063       test -d \$dldir || mkdir -p \$dldir~
15064       $install_prog $dir/$dlname \$dldir/$dlname~
15065       chmod a+x \$dldir/$dlname~
15066       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15067         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15068       fi'
15069     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15070       dlpath=$dir/\$dldll~
15071        $RM \$dlpath'
15072     shlibpath_overrides_runpath=yes
15073
15074     case $host_os in
15075     cygwin*)
15076       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15077       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15078
15079       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15080       ;;
15081     mingw* | cegcc*)
15082       # MinGW DLLs use traditional 'lib' prefix
15083       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15084       ;;
15085     pw32*)
15086       # pw32 DLLs use 'pw' prefix rather than 'lib'
15087       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15088       ;;
15089     esac
15090     dynamic_linker='Win32 ld.exe'
15091     ;;
15092
15093   *,cl*)
15094     # Native MSVC
15095     libname_spec='$name'
15096     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15097     library_names_spec='${libname}.dll.lib'
15098
15099     case $build_os in
15100     mingw*)
15101       sys_lib_search_path_spec=
15102       lt_save_ifs=$IFS
15103       IFS=';'
15104       for lt_path in $LIB
15105       do
15106         IFS=$lt_save_ifs
15107         # Let DOS variable expansion print the short 8.3 style file name.
15108         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15109         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15110       done
15111       IFS=$lt_save_ifs
15112       # Convert to MSYS style.
15113       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15114       ;;
15115     cygwin*)
15116       # Convert to unix form, then to dos form, then back to unix form
15117       # but this time dos style (no spaces!) so that the unix form looks
15118       # like /cygdrive/c/PROGRA~1:/cygdr...
15119       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15120       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15121       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15122       ;;
15123     *)
15124       sys_lib_search_path_spec="$LIB"
15125       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15126         # It is most probably a Windows format PATH.
15127         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15128       else
15129         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15130       fi
15131       # FIXME: find the short name or the path components, as spaces are
15132       # common. (e.g. "Program Files" -> "PROGRA~1")
15133       ;;
15134     esac
15135
15136     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15137     postinstall_cmds='base_file=`basename \${file}`~
15138       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15139       dldir=$destdir/`dirname \$dlpath`~
15140       test -d \$dldir || mkdir -p \$dldir~
15141       $install_prog $dir/$dlname \$dldir/$dlname'
15142     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15143       dlpath=$dir/\$dldll~
15144        $RM \$dlpath'
15145     shlibpath_overrides_runpath=yes
15146     dynamic_linker='Win32 link.exe'
15147     ;;
15148
15149   *)
15150     # Assume MSVC wrapper
15151     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15152     dynamic_linker='Win32 ld.exe'
15153     ;;
15154   esac
15155   # FIXME: first we should search . and the directory the executable is in
15156   shlibpath_var=PATH
15157   ;;
15158
15159 darwin* | rhapsody*)
15160   dynamic_linker="$host_os dyld"
15161   version_type=darwin
15162   need_lib_prefix=no
15163   need_version=no
15164   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15165   soname_spec='${libname}${release}${major}$shared_ext'
15166   shlibpath_overrides_runpath=yes
15167   shlibpath_var=DYLD_LIBRARY_PATH
15168   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15169
15170   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15171   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15172   ;;
15173
15174 dgux*)
15175   version_type=linux # correct to gnu/linux during the next big refactor
15176   need_lib_prefix=no
15177   need_version=no
15178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15179   soname_spec='${libname}${release}${shared_ext}$major'
15180   shlibpath_var=LD_LIBRARY_PATH
15181   ;;
15182
15183 freebsd* | dragonfly*)
15184   # DragonFly does not have aout.  When/if they implement a new
15185   # versioning mechanism, adjust this.
15186   if test -x /usr/bin/objformat; then
15187     objformat=`/usr/bin/objformat`
15188   else
15189     case $host_os in
15190     freebsd[23].*) objformat=aout ;;
15191     *) objformat=elf ;;
15192     esac
15193   fi
15194   version_type=freebsd-$objformat
15195   case $version_type in
15196     freebsd-elf*)
15197       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15198       need_version=no
15199       need_lib_prefix=no
15200       ;;
15201     freebsd-*)
15202       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15203       need_version=yes
15204       ;;
15205   esac
15206   shlibpath_var=LD_LIBRARY_PATH
15207   case $host_os in
15208   freebsd2.*)
15209     shlibpath_overrides_runpath=yes
15210     ;;
15211   freebsd3.[01]* | freebsdelf3.[01]*)
15212     shlibpath_overrides_runpath=yes
15213     hardcode_into_libs=yes
15214     ;;
15215   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15216   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15217     shlibpath_overrides_runpath=no
15218     hardcode_into_libs=yes
15219     ;;
15220   *) # from 4.6 on, and DragonFly
15221     shlibpath_overrides_runpath=yes
15222     hardcode_into_libs=yes
15223     ;;
15224   esac
15225   ;;
15226
15227 gnu*)
15228   version_type=linux # correct to gnu/linux during the next big refactor
15229   need_lib_prefix=no
15230   need_version=no
15231   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15232   soname_spec='${libname}${release}${shared_ext}$major'
15233   shlibpath_var=LD_LIBRARY_PATH
15234   shlibpath_overrides_runpath=no
15235   hardcode_into_libs=yes
15236   ;;
15237
15238 haiku*)
15239   version_type=linux # correct to gnu/linux during the next big refactor
15240   need_lib_prefix=no
15241   need_version=no
15242   dynamic_linker="$host_os runtime_loader"
15243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15244   soname_spec='${libname}${release}${shared_ext}$major'
15245   shlibpath_var=LIBRARY_PATH
15246   shlibpath_overrides_runpath=yes
15247   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15248   hardcode_into_libs=yes
15249   ;;
15250
15251 hpux9* | hpux10* | hpux11*)
15252   # Give a soname corresponding to the major version so that dld.sl refuses to
15253   # link against other versions.
15254   version_type=sunos
15255   need_lib_prefix=no
15256   need_version=no
15257   case $host_cpu in
15258   ia64*)
15259     shrext_cmds='.so'
15260     hardcode_into_libs=yes
15261     dynamic_linker="$host_os dld.so"
15262     shlibpath_var=LD_LIBRARY_PATH
15263     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15264     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265     soname_spec='${libname}${release}${shared_ext}$major'
15266     if test "X$HPUX_IA64_MODE" = X32; then
15267       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15268     else
15269       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15270     fi
15271     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15272     ;;
15273   hppa*64*)
15274     shrext_cmds='.sl'
15275     hardcode_into_libs=yes
15276     dynamic_linker="$host_os dld.sl"
15277     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280     soname_spec='${libname}${release}${shared_ext}$major'
15281     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15282     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15283     ;;
15284   *)
15285     shrext_cmds='.sl'
15286     dynamic_linker="$host_os dld.sl"
15287     shlibpath_var=SHLIB_PATH
15288     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15290     soname_spec='${libname}${release}${shared_ext}$major'
15291     ;;
15292   esac
15293   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15294   postinstall_cmds='chmod 555 $lib'
15295   # or fails outright, so override atomically:
15296   install_override_mode=555
15297   ;;
15298
15299 interix[3-9]*)
15300   version_type=linux # correct to gnu/linux during the next big refactor
15301   need_lib_prefix=no
15302   need_version=no
15303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15304   soname_spec='${libname}${release}${shared_ext}$major'
15305   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15306   shlibpath_var=LD_LIBRARY_PATH
15307   shlibpath_overrides_runpath=no
15308   hardcode_into_libs=yes
15309   ;;
15310
15311 irix5* | irix6* | nonstopux*)
15312   case $host_os in
15313     nonstopux*) version_type=nonstopux ;;
15314     *)
15315         if test "$lt_cv_prog_gnu_ld" = yes; then
15316                 version_type=linux # correct to gnu/linux during the next big refactor
15317         else
15318                 version_type=irix
15319         fi ;;
15320   esac
15321   need_lib_prefix=no
15322   need_version=no
15323   soname_spec='${libname}${release}${shared_ext}$major'
15324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15325   case $host_os in
15326   irix5* | nonstopux*)
15327     libsuff= shlibsuff=
15328     ;;
15329   *)
15330     case $LD in # libtool.m4 will add one of these switches to LD
15331     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15332       libsuff= shlibsuff= libmagic=32-bit;;
15333     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15334       libsuff=32 shlibsuff=N32 libmagic=N32;;
15335     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15336       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15337     *) libsuff= shlibsuff= libmagic=never-match;;
15338     esac
15339     ;;
15340   esac
15341   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15342   shlibpath_overrides_runpath=no
15343   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15344   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15345   hardcode_into_libs=yes
15346   ;;
15347
15348 # No shared lib support for Linux oldld, aout, or coff.
15349 linux*oldld* | linux*aout* | linux*coff*)
15350   dynamic_linker=no
15351   ;;
15352
15353 # This must be glibc/ELF.
15354 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15355   version_type=linux # correct to gnu/linux during the next big refactor
15356   need_lib_prefix=no
15357   need_version=no
15358   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15359   soname_spec='${libname}${release}${shared_ext}$major'
15360   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15361   shlibpath_var=LD_LIBRARY_PATH
15362   shlibpath_overrides_runpath=no
15363
15364   # Some binutils ld are patched to set DT_RUNPATH
15365   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15366   $as_echo_n "(cached) " >&6
15367 else
15368   lt_cv_shlibpath_overrides_runpath=no
15369     save_LDFLAGS=$LDFLAGS
15370     save_libdir=$libdir
15371     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15372          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15373     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374 /* end confdefs.h.  */
15375
15376 int
15377 main ()
15378 {
15379
15380   ;
15381   return 0;
15382 }
15383 _ACEOF
15384 if ac_fn_c_try_link "$LINENO"; then :
15385   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15386   lt_cv_shlibpath_overrides_runpath=yes
15387 fi
15388 fi
15389 rm -f core conftest.err conftest.$ac_objext \
15390     conftest$ac_exeext conftest.$ac_ext
15391     LDFLAGS=$save_LDFLAGS
15392     libdir=$save_libdir
15393
15394 fi
15395
15396   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15397
15398   # This implies no fast_install, which is unacceptable.
15399   # Some rework will be needed to allow for fast_install
15400   # before this can be enabled.
15401   hardcode_into_libs=yes
15402
15403   # Add ABI-specific directories to the system library path.
15404   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15405
15406   # Append ld.so.conf contents to the search path
15407   if test -f /etc/ld.so.conf; then
15408     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' ' '`
15409     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15410
15411   fi
15412
15413   # We used to test for /lib/ld.so.1 and disable shared libraries on
15414   # powerpc, because MkLinux only supported shared libraries with the
15415   # GNU dynamic linker.  Since this was broken with cross compilers,
15416   # most powerpc-linux boxes support dynamic linking these days and
15417   # people can always --disable-shared, the test was removed, and we
15418   # assume the GNU/Linux dynamic linker is in use.
15419   dynamic_linker='GNU/Linux ld.so'
15420   ;;
15421
15422 netbsd*)
15423   version_type=sunos
15424   need_lib_prefix=no
15425   need_version=no
15426   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15427     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15428     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15429     dynamic_linker='NetBSD (a.out) ld.so'
15430   else
15431     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15432     soname_spec='${libname}${release}${shared_ext}$major'
15433     dynamic_linker='NetBSD ld.elf_so'
15434   fi
15435   shlibpath_var=LD_LIBRARY_PATH
15436   shlibpath_overrides_runpath=yes
15437   hardcode_into_libs=yes
15438   ;;
15439
15440 newsos6)
15441   version_type=linux # correct to gnu/linux during the next big refactor
15442   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15443   shlibpath_var=LD_LIBRARY_PATH
15444   shlibpath_overrides_runpath=yes
15445   ;;
15446
15447 *nto* | *qnx*)
15448   version_type=qnx
15449   need_lib_prefix=no
15450   need_version=no
15451   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15452   soname_spec='${libname}${release}${shared_ext}$major'
15453   shlibpath_var=LD_LIBRARY_PATH
15454   shlibpath_overrides_runpath=no
15455   hardcode_into_libs=yes
15456   dynamic_linker='ldqnx.so'
15457   ;;
15458
15459 openbsd*)
15460   version_type=sunos
15461   sys_lib_dlsearch_path_spec="/usr/lib"
15462   need_lib_prefix=no
15463   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15464   case $host_os in
15465     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15466     *)                          need_version=no  ;;
15467   esac
15468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15469   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15470   shlibpath_var=LD_LIBRARY_PATH
15471   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15472     case $host_os in
15473       openbsd2.[89] | openbsd2.[89].*)
15474         shlibpath_overrides_runpath=no
15475         ;;
15476       *)
15477         shlibpath_overrides_runpath=yes
15478         ;;
15479       esac
15480   else
15481     shlibpath_overrides_runpath=yes
15482   fi
15483   ;;
15484
15485 os2*)
15486   libname_spec='$name'
15487   shrext_cmds=".dll"
15488   need_lib_prefix=no
15489   library_names_spec='$libname${shared_ext} $libname.a'
15490   dynamic_linker='OS/2 ld.exe'
15491   shlibpath_var=LIBPATH
15492   ;;
15493
15494 osf3* | osf4* | osf5*)
15495   version_type=osf
15496   need_lib_prefix=no
15497   need_version=no
15498   soname_spec='${libname}${release}${shared_ext}$major'
15499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15500   shlibpath_var=LD_LIBRARY_PATH
15501   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15502   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15503   ;;
15504
15505 rdos*)
15506   dynamic_linker=no
15507   ;;
15508
15509 solaris*)
15510   version_type=linux # correct to gnu/linux during the next big refactor
15511   need_lib_prefix=no
15512   need_version=no
15513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15514   soname_spec='${libname}${release}${shared_ext}$major'
15515   shlibpath_var=LD_LIBRARY_PATH
15516   shlibpath_overrides_runpath=yes
15517   hardcode_into_libs=yes
15518   # ldd complains unless libraries are executable
15519   postinstall_cmds='chmod +x $lib'
15520   ;;
15521
15522 sunos4*)
15523   version_type=sunos
15524   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15525   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15526   shlibpath_var=LD_LIBRARY_PATH
15527   shlibpath_overrides_runpath=yes
15528   if test "$with_gnu_ld" = yes; then
15529     need_lib_prefix=no
15530   fi
15531   need_version=yes
15532   ;;
15533
15534 sysv4 | sysv4.3*)
15535   version_type=linux # correct to gnu/linux during the next big refactor
15536   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15537   soname_spec='${libname}${release}${shared_ext}$major'
15538   shlibpath_var=LD_LIBRARY_PATH
15539   case $host_vendor in
15540     sni)
15541       shlibpath_overrides_runpath=no
15542       need_lib_prefix=no
15543       runpath_var=LD_RUN_PATH
15544       ;;
15545     siemens)
15546       need_lib_prefix=no
15547       ;;
15548     motorola)
15549       need_lib_prefix=no
15550       need_version=no
15551       shlibpath_overrides_runpath=no
15552       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15553       ;;
15554   esac
15555   ;;
15556
15557 sysv4*MP*)
15558   if test -d /usr/nec ;then
15559     version_type=linux # correct to gnu/linux during the next big refactor
15560     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15561     soname_spec='$libname${shared_ext}.$major'
15562     shlibpath_var=LD_LIBRARY_PATH
15563   fi
15564   ;;
15565
15566 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15567   version_type=freebsd-elf
15568   need_lib_prefix=no
15569   need_version=no
15570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15571   soname_spec='${libname}${release}${shared_ext}$major'
15572   shlibpath_var=LD_LIBRARY_PATH
15573   shlibpath_overrides_runpath=yes
15574   hardcode_into_libs=yes
15575   if test "$with_gnu_ld" = yes; then
15576     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15577   else
15578     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15579     case $host_os in
15580       sco3.2v5*)
15581         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15582         ;;
15583     esac
15584   fi
15585   sys_lib_dlsearch_path_spec='/usr/lib'
15586   ;;
15587
15588 tpf*)
15589   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15590   version_type=linux # correct to gnu/linux during the next big refactor
15591   need_lib_prefix=no
15592   need_version=no
15593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594   shlibpath_var=LD_LIBRARY_PATH
15595   shlibpath_overrides_runpath=no
15596   hardcode_into_libs=yes
15597   ;;
15598
15599 uts4*)
15600   version_type=linux # correct to gnu/linux during the next big refactor
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602   soname_spec='${libname}${release}${shared_ext}$major'
15603   shlibpath_var=LD_LIBRARY_PATH
15604   ;;
15605
15606 *)
15607   dynamic_linker=no
15608   ;;
15609 esac
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15611 $as_echo "$dynamic_linker" >&6; }
15612 test "$dynamic_linker" = no && can_build_shared=no
15613
15614 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15615 if test "$GCC" = yes; then
15616   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15617 fi
15618
15619 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15620   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15621 fi
15622 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15623   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15624 fi
15625
15626
15627
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669
15670
15671
15672
15673
15674
15675
15676
15677
15678
15679
15680
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15718 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15719 hardcode_action=
15720 if test -n "$hardcode_libdir_flag_spec" ||
15721    test -n "$runpath_var" ||
15722    test "X$hardcode_automatic" = "Xyes" ; then
15723
15724   # We can hardcode non-existent directories.
15725   if test "$hardcode_direct" != no &&
15726      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15727      # have to relink, otherwise we might link with an installed library
15728      # when we should be linking with a yet-to-be-installed one
15729      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15730      test "$hardcode_minus_L" != no; then
15731     # Linking always hardcodes the temporary library directory.
15732     hardcode_action=relink
15733   else
15734     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15735     hardcode_action=immediate
15736   fi
15737 else
15738   # We cannot hardcode anything, or else we can only hardcode existing
15739   # directories.
15740   hardcode_action=unsupported
15741 fi
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15743 $as_echo "$hardcode_action" >&6; }
15744
15745 if test "$hardcode_action" = relink ||
15746    test "$inherit_rpath" = yes; then
15747   # Fast installation is not supported
15748   enable_fast_install=no
15749 elif test "$shlibpath_overrides_runpath" = yes ||
15750      test "$enable_shared" = no; then
15751   # Fast installation is not necessary
15752   enable_fast_install=needless
15753 fi
15754
15755
15756
15757
15758
15759
15760   if test "x$enable_dlopen" != xyes; then
15761   enable_dlopen=unknown
15762   enable_dlopen_self=unknown
15763   enable_dlopen_self_static=unknown
15764 else
15765   lt_cv_dlopen=no
15766   lt_cv_dlopen_libs=
15767
15768   case $host_os in
15769   beos*)
15770     lt_cv_dlopen="load_add_on"
15771     lt_cv_dlopen_libs=
15772     lt_cv_dlopen_self=yes
15773     ;;
15774
15775   mingw* | pw32* | cegcc*)
15776     lt_cv_dlopen="LoadLibrary"
15777     lt_cv_dlopen_libs=
15778     ;;
15779
15780   cygwin*)
15781     lt_cv_dlopen="dlopen"
15782     lt_cv_dlopen_libs=
15783     ;;
15784
15785   darwin*)
15786   # if libdl is installed we need to link against it
15787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15788 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15789 if ${ac_cv_lib_dl_dlopen+:} false; then :
15790   $as_echo_n "(cached) " >&6
15791 else
15792   ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-ldl  $LIBS"
15794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15795 /* end confdefs.h.  */
15796
15797 /* Override any GCC internal prototype to avoid an error.
15798    Use char because int might match the return type of a GCC
15799    builtin and then its argument prototype would still apply.  */
15800 #ifdef __cplusplus
15801 extern "C"
15802 #endif
15803 char dlopen ();
15804 int
15805 main ()
15806 {
15807 return dlopen ();
15808   ;
15809   return 0;
15810 }
15811 _ACEOF
15812 if ac_fn_c_try_link "$LINENO"; then :
15813   ac_cv_lib_dl_dlopen=yes
15814 else
15815   ac_cv_lib_dl_dlopen=no
15816 fi
15817 rm -f core conftest.err conftest.$ac_objext \
15818     conftest$ac_exeext conftest.$ac_ext
15819 LIBS=$ac_check_lib_save_LIBS
15820 fi
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15822 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15823 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15824   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15825 else
15826
15827     lt_cv_dlopen="dyld"
15828     lt_cv_dlopen_libs=
15829     lt_cv_dlopen_self=yes
15830
15831 fi
15832
15833     ;;
15834
15835   *)
15836     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15837 if test "x$ac_cv_func_shl_load" = xyes; then :
15838   lt_cv_dlopen="shl_load"
15839 else
15840   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15841 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15842 if ${ac_cv_lib_dld_shl_load+:} false; then :
15843   $as_echo_n "(cached) " >&6
15844 else
15845   ac_check_lib_save_LIBS=$LIBS
15846 LIBS="-ldld  $LIBS"
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h.  */
15849
15850 /* Override any GCC internal prototype to avoid an error.
15851    Use char because int might match the return type of a GCC
15852    builtin and then its argument prototype would still apply.  */
15853 #ifdef __cplusplus
15854 extern "C"
15855 #endif
15856 char shl_load ();
15857 int
15858 main ()
15859 {
15860 return shl_load ();
15861   ;
15862   return 0;
15863 }
15864 _ACEOF
15865 if ac_fn_c_try_link "$LINENO"; then :
15866   ac_cv_lib_dld_shl_load=yes
15867 else
15868   ac_cv_lib_dld_shl_load=no
15869 fi
15870 rm -f core conftest.err conftest.$ac_objext \
15871     conftest$ac_exeext conftest.$ac_ext
15872 LIBS=$ac_check_lib_save_LIBS
15873 fi
15874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15875 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15876 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15877   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15878 else
15879   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15880 if test "x$ac_cv_func_dlopen" = xyes; then :
15881   lt_cv_dlopen="dlopen"
15882 else
15883   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15884 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15885 if ${ac_cv_lib_dl_dlopen+:} false; then :
15886   $as_echo_n "(cached) " >&6
15887 else
15888   ac_check_lib_save_LIBS=$LIBS
15889 LIBS="-ldl  $LIBS"
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h.  */
15892
15893 /* Override any GCC internal prototype to avoid an error.
15894    Use char because int might match the return type of a GCC
15895    builtin and then its argument prototype would still apply.  */
15896 #ifdef __cplusplus
15897 extern "C"
15898 #endif
15899 char dlopen ();
15900 int
15901 main ()
15902 {
15903 return dlopen ();
15904   ;
15905   return 0;
15906 }
15907 _ACEOF
15908 if ac_fn_c_try_link "$LINENO"; then :
15909   ac_cv_lib_dl_dlopen=yes
15910 else
15911   ac_cv_lib_dl_dlopen=no
15912 fi
15913 rm -f core conftest.err conftest.$ac_objext \
15914     conftest$ac_exeext conftest.$ac_ext
15915 LIBS=$ac_check_lib_save_LIBS
15916 fi
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15918 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15919 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15920   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15921 else
15922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15923 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15924 if ${ac_cv_lib_svld_dlopen+:} false; then :
15925   $as_echo_n "(cached) " >&6
15926 else
15927   ac_check_lib_save_LIBS=$LIBS
15928 LIBS="-lsvld  $LIBS"
15929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15930 /* end confdefs.h.  */
15931
15932 /* Override any GCC internal prototype to avoid an error.
15933    Use char because int might match the return type of a GCC
15934    builtin and then its argument prototype would still apply.  */
15935 #ifdef __cplusplus
15936 extern "C"
15937 #endif
15938 char dlopen ();
15939 int
15940 main ()
15941 {
15942 return dlopen ();
15943   ;
15944   return 0;
15945 }
15946 _ACEOF
15947 if ac_fn_c_try_link "$LINENO"; then :
15948   ac_cv_lib_svld_dlopen=yes
15949 else
15950   ac_cv_lib_svld_dlopen=no
15951 fi
15952 rm -f core conftest.err conftest.$ac_objext \
15953     conftest$ac_exeext conftest.$ac_ext
15954 LIBS=$ac_check_lib_save_LIBS
15955 fi
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15957 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15958 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15959   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15960 else
15961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15962 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15963 if ${ac_cv_lib_dld_dld_link+:} false; then :
15964   $as_echo_n "(cached) " >&6
15965 else
15966   ac_check_lib_save_LIBS=$LIBS
15967 LIBS="-ldld  $LIBS"
15968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15969 /* end confdefs.h.  */
15970
15971 /* Override any GCC internal prototype to avoid an error.
15972    Use char because int might match the return type of a GCC
15973    builtin and then its argument prototype would still apply.  */
15974 #ifdef __cplusplus
15975 extern "C"
15976 #endif
15977 char dld_link ();
15978 int
15979 main ()
15980 {
15981 return dld_link ();
15982   ;
15983   return 0;
15984 }
15985 _ACEOF
15986 if ac_fn_c_try_link "$LINENO"; then :
15987   ac_cv_lib_dld_dld_link=yes
15988 else
15989   ac_cv_lib_dld_dld_link=no
15990 fi
15991 rm -f core conftest.err conftest.$ac_objext \
15992     conftest$ac_exeext conftest.$ac_ext
15993 LIBS=$ac_check_lib_save_LIBS
15994 fi
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15996 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15997 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15998   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15999 fi
16000
16001
16002 fi
16003
16004
16005 fi
16006
16007
16008 fi
16009
16010
16011 fi
16012
16013
16014 fi
16015
16016     ;;
16017   esac
16018
16019   if test "x$lt_cv_dlopen" != xno; then
16020     enable_dlopen=yes
16021   else
16022     enable_dlopen=no
16023   fi
16024
16025   case $lt_cv_dlopen in
16026   dlopen)
16027     save_CPPFLAGS="$CPPFLAGS"
16028     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16029
16030     save_LDFLAGS="$LDFLAGS"
16031     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16032
16033     save_LIBS="$LIBS"
16034     LIBS="$lt_cv_dlopen_libs $LIBS"
16035
16036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16037 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16038 if ${lt_cv_dlopen_self+:} false; then :
16039   $as_echo_n "(cached) " >&6
16040 else
16041           if test "$cross_compiling" = yes; then :
16042   lt_cv_dlopen_self=cross
16043 else
16044   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16045   lt_status=$lt_dlunknown
16046   cat > conftest.$ac_ext <<_LT_EOF
16047 #line $LINENO "configure"
16048 #include "confdefs.h"
16049
16050 #if HAVE_DLFCN_H
16051 #include <dlfcn.h>
16052 #endif
16053
16054 #include <stdio.h>
16055
16056 #ifdef RTLD_GLOBAL
16057 #  define LT_DLGLOBAL           RTLD_GLOBAL
16058 #else
16059 #  ifdef DL_GLOBAL
16060 #    define LT_DLGLOBAL         DL_GLOBAL
16061 #  else
16062 #    define LT_DLGLOBAL         0
16063 #  endif
16064 #endif
16065
16066 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16067    find out it does not work in some platform. */
16068 #ifndef LT_DLLAZY_OR_NOW
16069 #  ifdef RTLD_LAZY
16070 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16071 #  else
16072 #    ifdef DL_LAZY
16073 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16074 #    else
16075 #      ifdef RTLD_NOW
16076 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16077 #      else
16078 #        ifdef DL_NOW
16079 #          define LT_DLLAZY_OR_NOW      DL_NOW
16080 #        else
16081 #          define LT_DLLAZY_OR_NOW      0
16082 #        endif
16083 #      endif
16084 #    endif
16085 #  endif
16086 #endif
16087
16088 /* When -fvisbility=hidden is used, assume the code has been annotated
16089    correspondingly for the symbols needed.  */
16090 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16091 int fnord () __attribute__((visibility("default")));
16092 #endif
16093
16094 int fnord () { return 42; }
16095 int main ()
16096 {
16097   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16098   int status = $lt_dlunknown;
16099
16100   if (self)
16101     {
16102       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16103       else
16104         {
16105           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16106           else puts (dlerror ());
16107         }
16108       /* dlclose (self); */
16109     }
16110   else
16111     puts (dlerror ());
16112
16113   return status;
16114 }
16115 _LT_EOF
16116   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16117   (eval $ac_link) 2>&5
16118   ac_status=$?
16119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16120   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16121     (./conftest; exit; ) >&5 2>/dev/null
16122     lt_status=$?
16123     case x$lt_status in
16124       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16125       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16126       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16127     esac
16128   else :
16129     # compilation failed
16130     lt_cv_dlopen_self=no
16131   fi
16132 fi
16133 rm -fr conftest*
16134
16135
16136 fi
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16138 $as_echo "$lt_cv_dlopen_self" >&6; }
16139
16140     if test "x$lt_cv_dlopen_self" = xyes; then
16141       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16143 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16144 if ${lt_cv_dlopen_self_static+:} false; then :
16145   $as_echo_n "(cached) " >&6
16146 else
16147           if test "$cross_compiling" = yes; then :
16148   lt_cv_dlopen_self_static=cross
16149 else
16150   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16151   lt_status=$lt_dlunknown
16152   cat > conftest.$ac_ext <<_LT_EOF
16153 #line $LINENO "configure"
16154 #include "confdefs.h"
16155
16156 #if HAVE_DLFCN_H
16157 #include <dlfcn.h>
16158 #endif
16159
16160 #include <stdio.h>
16161
16162 #ifdef RTLD_GLOBAL
16163 #  define LT_DLGLOBAL           RTLD_GLOBAL
16164 #else
16165 #  ifdef DL_GLOBAL
16166 #    define LT_DLGLOBAL         DL_GLOBAL
16167 #  else
16168 #    define LT_DLGLOBAL         0
16169 #  endif
16170 #endif
16171
16172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16173    find out it does not work in some platform. */
16174 #ifndef LT_DLLAZY_OR_NOW
16175 #  ifdef RTLD_LAZY
16176 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
16177 #  else
16178 #    ifdef DL_LAZY
16179 #      define LT_DLLAZY_OR_NOW          DL_LAZY
16180 #    else
16181 #      ifdef RTLD_NOW
16182 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
16183 #      else
16184 #        ifdef DL_NOW
16185 #          define LT_DLLAZY_OR_NOW      DL_NOW
16186 #        else
16187 #          define LT_DLLAZY_OR_NOW      0
16188 #        endif
16189 #      endif
16190 #    endif
16191 #  endif
16192 #endif
16193
16194 /* When -fvisbility=hidden is used, assume the code has been annotated
16195    correspondingly for the symbols needed.  */
16196 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16197 int fnord () __attribute__((visibility("default")));
16198 #endif
16199
16200 int fnord () { return 42; }
16201 int main ()
16202 {
16203   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16204   int status = $lt_dlunknown;
16205
16206   if (self)
16207     {
16208       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
16209       else
16210         {
16211           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
16212           else puts (dlerror ());
16213         }
16214       /* dlclose (self); */
16215     }
16216   else
16217     puts (dlerror ());
16218
16219   return status;
16220 }
16221 _LT_EOF
16222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16223   (eval $ac_link) 2>&5
16224   ac_status=$?
16225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16227     (./conftest; exit; ) >&5 2>/dev/null
16228     lt_status=$?
16229     case x$lt_status in
16230       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16231       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16232       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16233     esac
16234   else :
16235     # compilation failed
16236     lt_cv_dlopen_self_static=no
16237   fi
16238 fi
16239 rm -fr conftest*
16240
16241
16242 fi
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16244 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16245     fi
16246
16247     CPPFLAGS="$save_CPPFLAGS"
16248     LDFLAGS="$save_LDFLAGS"
16249     LIBS="$save_LIBS"
16250     ;;
16251   esac
16252
16253   case $lt_cv_dlopen_self in
16254   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16255   *) enable_dlopen_self=unknown ;;
16256   esac
16257
16258   case $lt_cv_dlopen_self_static in
16259   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16260   *) enable_dlopen_self_static=unknown ;;
16261   esac
16262 fi
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280 striplib=
16281 old_striplib=
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16283 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16284 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16285   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16286   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16288 $as_echo "yes" >&6; }
16289 else
16290 # FIXME - insert some real tests, host_os isn't really good enough
16291   case $host_os in
16292   darwin*)
16293     if test -n "$STRIP" ; then
16294       striplib="$STRIP -x"
16295       old_striplib="$STRIP -S"
16296       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16297 $as_echo "yes" >&6; }
16298     else
16299       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16300 $as_echo "no" >&6; }
16301     fi
16302     ;;
16303   *)
16304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16305 $as_echo "no" >&6; }
16306     ;;
16307   esac
16308 fi
16309
16310
16311
16312
16313
16314
16315
16316
16317
16318
16319
16320
16321   # Report which library types will actually be built
16322   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16323 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16325 $as_echo "$can_build_shared" >&6; }
16326
16327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16328 $as_echo_n "checking whether to build shared libraries... " >&6; }
16329   test "$can_build_shared" = "no" && enable_shared=no
16330
16331   # On AIX, shared libraries and static libraries use the same namespace, and
16332   # are all built from PIC.
16333   case $host_os in
16334   aix3*)
16335     test "$enable_shared" = yes && enable_static=no
16336     if test -n "$RANLIB"; then
16337       archive_cmds="$archive_cmds~\$RANLIB \$lib"
16338       postinstall_cmds='$RANLIB $lib'
16339     fi
16340     ;;
16341
16342   aix[4-9]*)
16343     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16344       test "$enable_shared" = yes && enable_static=no
16345     fi
16346     ;;
16347   esac
16348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16349 $as_echo "$enable_shared" >&6; }
16350
16351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16352 $as_echo_n "checking whether to build static libraries... " >&6; }
16353   # Make sure either enable_shared or enable_static is yes.
16354   test "$enable_shared" = yes || enable_static=yes
16355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16356 $as_echo "$enable_static" >&6; }
16357
16358
16359
16360
16361 fi
16362 ac_ext=c
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16367
16368 CC="$lt_save_CC"
16369
16370       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16371     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16372     (test "X$CXX" != "Xg++"))) ; then
16373   ac_ext=cpp
16374 ac_cpp='$CXXCPP $CPPFLAGS'
16375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16379 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16380 if test -z "$CXXCPP"; then
16381   if ${ac_cv_prog_CXXCPP+:} false; then :
16382   $as_echo_n "(cached) " >&6
16383 else
16384       # Double quotes because CXXCPP needs to be expanded
16385     for CXXCPP in "$CXX -E" "/lib/cpp"
16386     do
16387       ac_preproc_ok=false
16388 for ac_cxx_preproc_warn_flag in '' yes
16389 do
16390   # Use a header file that comes with gcc, so configuring glibc
16391   # with a fresh cross-compiler works.
16392   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16393   # <limits.h> exists even on freestanding compilers.
16394   # On the NeXT, cc -E runs the code through the compiler's parser,
16395   # not just through cpp. "Syntax error" is here to catch this case.
16396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16397 /* end confdefs.h.  */
16398 #ifdef __STDC__
16399 # include <limits.h>
16400 #else
16401 # include <assert.h>
16402 #endif
16403                      Syntax error
16404 _ACEOF
16405 if ac_fn_cxx_try_cpp "$LINENO"; then :
16406
16407 else
16408   # Broken: fails on valid input.
16409 continue
16410 fi
16411 rm -f conftest.err conftest.i conftest.$ac_ext
16412
16413   # OK, works on sane cases.  Now check whether nonexistent headers
16414   # can be detected and how.
16415   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h.  */
16417 #include <ac_nonexistent.h>
16418 _ACEOF
16419 if ac_fn_cxx_try_cpp "$LINENO"; then :
16420   # Broken: success on invalid input.
16421 continue
16422 else
16423   # Passes both tests.
16424 ac_preproc_ok=:
16425 break
16426 fi
16427 rm -f conftest.err conftest.i conftest.$ac_ext
16428
16429 done
16430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16431 rm -f conftest.i conftest.err conftest.$ac_ext
16432 if $ac_preproc_ok; then :
16433   break
16434 fi
16435
16436     done
16437     ac_cv_prog_CXXCPP=$CXXCPP
16438
16439 fi
16440   CXXCPP=$ac_cv_prog_CXXCPP
16441 else
16442   ac_cv_prog_CXXCPP=$CXXCPP
16443 fi
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16445 $as_echo "$CXXCPP" >&6; }
16446 ac_preproc_ok=false
16447 for ac_cxx_preproc_warn_flag in '' yes
16448 do
16449   # Use a header file that comes with gcc, so configuring glibc
16450   # with a fresh cross-compiler works.
16451   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16452   # <limits.h> exists even on freestanding compilers.
16453   # On the NeXT, cc -E runs the code through the compiler's parser,
16454   # not just through cpp. "Syntax error" is here to catch this case.
16455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h.  */
16457 #ifdef __STDC__
16458 # include <limits.h>
16459 #else
16460 # include <assert.h>
16461 #endif
16462                      Syntax error
16463 _ACEOF
16464 if ac_fn_cxx_try_cpp "$LINENO"; then :
16465
16466 else
16467   # Broken: fails on valid input.
16468 continue
16469 fi
16470 rm -f conftest.err conftest.i conftest.$ac_ext
16471
16472   # OK, works on sane cases.  Now check whether nonexistent headers
16473   # can be detected and how.
16474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h.  */
16476 #include <ac_nonexistent.h>
16477 _ACEOF
16478 if ac_fn_cxx_try_cpp "$LINENO"; then :
16479   # Broken: success on invalid input.
16480 continue
16481 else
16482   # Passes both tests.
16483 ac_preproc_ok=:
16484 break
16485 fi
16486 rm -f conftest.err conftest.i conftest.$ac_ext
16487
16488 done
16489 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16490 rm -f conftest.i conftest.err conftest.$ac_ext
16491 if $ac_preproc_ok; then :
16492
16493 else
16494   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16496 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16497 See \`config.log' for more details" "$LINENO" 5; }
16498 fi
16499
16500 ac_ext=c
16501 ac_cpp='$CPP $CPPFLAGS'
16502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16505
16506 else
16507   _lt_caught_CXX_error=yes
16508 fi
16509
16510 ac_ext=cpp
16511 ac_cpp='$CXXCPP $CPPFLAGS'
16512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16515
16516 archive_cmds_need_lc_CXX=no
16517 allow_undefined_flag_CXX=
16518 always_export_symbols_CXX=no
16519 archive_expsym_cmds_CXX=
16520 compiler_needs_object_CXX=no
16521 export_dynamic_flag_spec_CXX=
16522 hardcode_direct_CXX=no
16523 hardcode_direct_absolute_CXX=no
16524 hardcode_libdir_flag_spec_CXX=
16525 hardcode_libdir_separator_CXX=
16526 hardcode_minus_L_CXX=no
16527 hardcode_shlibpath_var_CXX=unsupported
16528 hardcode_automatic_CXX=no
16529 inherit_rpath_CXX=no
16530 module_cmds_CXX=
16531 module_expsym_cmds_CXX=
16532 link_all_deplibs_CXX=unknown
16533 old_archive_cmds_CXX=$old_archive_cmds
16534 reload_flag_CXX=$reload_flag
16535 reload_cmds_CXX=$reload_cmds
16536 no_undefined_flag_CXX=
16537 whole_archive_flag_spec_CXX=
16538 enable_shared_with_static_runtimes_CXX=no
16539
16540 # Source file extension for C++ test sources.
16541 ac_ext=cpp
16542
16543 # Object file extension for compiled C++ test sources.
16544 objext=o
16545 objext_CXX=$objext
16546
16547 # No sense in running all these tests if we already determined that
16548 # the CXX compiler isn't working.  Some variables (like enable_shared)
16549 # are currently assumed to apply to all compilers on this platform,
16550 # and will be corrupted by setting them based on a non-working compiler.
16551 if test "$_lt_caught_CXX_error" != yes; then
16552   # Code to be used in simple compile tests
16553   lt_simple_compile_test_code="int some_variable = 0;"
16554
16555   # Code to be used in simple link tests
16556   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16557
16558   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16559
16560
16561
16562
16563
16564
16565 # If no C compiler was specified, use CC.
16566 LTCC=${LTCC-"$CC"}
16567
16568 # If no C compiler flags were specified, use CFLAGS.
16569 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16570
16571 # Allow CC to be a program name with arguments.
16572 compiler=$CC
16573
16574
16575   # save warnings/boilerplate of simple test code
16576   ac_outfile=conftest.$ac_objext
16577 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16578 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16579 _lt_compiler_boilerplate=`cat conftest.err`
16580 $RM conftest*
16581
16582   ac_outfile=conftest.$ac_objext
16583 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16584 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16585 _lt_linker_boilerplate=`cat conftest.err`
16586 $RM -r conftest*
16587
16588
16589   # Allow CC to be a program name with arguments.
16590   lt_save_CC=$CC
16591   lt_save_CFLAGS=$CFLAGS
16592   lt_save_LD=$LD
16593   lt_save_GCC=$GCC
16594   GCC=$GXX
16595   lt_save_with_gnu_ld=$with_gnu_ld
16596   lt_save_path_LD=$lt_cv_path_LD
16597   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16598     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16599   else
16600     $as_unset lt_cv_prog_gnu_ld
16601   fi
16602   if test -n "${lt_cv_path_LDCXX+set}"; then
16603     lt_cv_path_LD=$lt_cv_path_LDCXX
16604   else
16605     $as_unset lt_cv_path_LD
16606   fi
16607   test -z "${LDCXX+set}" || LD=$LDCXX
16608   CC=${CXX-"c++"}
16609   CFLAGS=$CXXFLAGS
16610   compiler=$CC
16611   compiler_CXX=$CC
16612   for cc_temp in $compiler""; do
16613   case $cc_temp in
16614     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16615     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16616     \-*) ;;
16617     *) break;;
16618   esac
16619 done
16620 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16621
16622
16623   if test -n "$compiler"; then
16624     # We don't want -fno-exception when compiling C++ code, so set the
16625     # no_builtin_flag separately
16626     if test "$GXX" = yes; then
16627       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16628     else
16629       lt_prog_compiler_no_builtin_flag_CXX=
16630     fi
16631
16632     if test "$GXX" = yes; then
16633       # Set up default GNU C++ configuration
16634
16635
16636
16637 # Check whether --with-gnu-ld was given.
16638 if test "${with_gnu_ld+set}" = set; then :
16639   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16640 else
16641   with_gnu_ld=no
16642 fi
16643
16644 ac_prog=ld
16645 if test "$GCC" = yes; then
16646   # Check if gcc -print-prog-name=ld gives a path.
16647   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16648 $as_echo_n "checking for ld used by $CC... " >&6; }
16649   case $host in
16650   *-*-mingw*)
16651     # gcc leaves a trailing carriage return which upsets mingw
16652     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16653   *)
16654     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16655   esac
16656   case $ac_prog in
16657     # Accept absolute paths.
16658     [\\/]* | ?:[\\/]*)
16659       re_direlt='/[^/][^/]*/\.\./'
16660       # Canonicalize the pathname of ld
16661       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16662       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16663         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16664       done
16665       test -z "$LD" && LD="$ac_prog"
16666       ;;
16667   "")
16668     # If it fails, then pretend we aren't using GCC.
16669     ac_prog=ld
16670     ;;
16671   *)
16672     # If it is relative, then search for the first ld in PATH.
16673     with_gnu_ld=unknown
16674     ;;
16675   esac
16676 elif test "$with_gnu_ld" = yes; then
16677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16678 $as_echo_n "checking for GNU ld... " >&6; }
16679 else
16680   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16681 $as_echo_n "checking for non-GNU ld... " >&6; }
16682 fi
16683 if ${lt_cv_path_LD+:} false; then :
16684   $as_echo_n "(cached) " >&6
16685 else
16686   if test -z "$LD"; then
16687   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16688   for ac_dir in $PATH; do
16689     IFS="$lt_save_ifs"
16690     test -z "$ac_dir" && ac_dir=.
16691     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16692       lt_cv_path_LD="$ac_dir/$ac_prog"
16693       # Check to see if the program is GNU ld.  I'd rather use --version,
16694       # but apparently some variants of GNU ld only accept -v.
16695       # Break only if it was the GNU/non-GNU ld that we prefer.
16696       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16697       *GNU* | *'with BFD'*)
16698         test "$with_gnu_ld" != no && break
16699         ;;
16700       *)
16701         test "$with_gnu_ld" != yes && break
16702         ;;
16703       esac
16704     fi
16705   done
16706   IFS="$lt_save_ifs"
16707 else
16708   lt_cv_path_LD="$LD" # Let the user override the test with a path.
16709 fi
16710 fi
16711
16712 LD="$lt_cv_path_LD"
16713 if test -n "$LD"; then
16714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16715 $as_echo "$LD" >&6; }
16716 else
16717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16718 $as_echo "no" >&6; }
16719 fi
16720 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16722 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16723 if ${lt_cv_prog_gnu_ld+:} false; then :
16724   $as_echo_n "(cached) " >&6
16725 else
16726   # I'd rather use --version here, but apparently some GNU lds only accept -v.
16727 case `$LD -v 2>&1 </dev/null` in
16728 *GNU* | *'with BFD'*)
16729   lt_cv_prog_gnu_ld=yes
16730   ;;
16731 *)
16732   lt_cv_prog_gnu_ld=no
16733   ;;
16734 esac
16735 fi
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16737 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16738 with_gnu_ld=$lt_cv_prog_gnu_ld
16739
16740
16741
16742
16743
16744
16745
16746       # Check if GNU C++ uses GNU ld as the underlying linker, since the
16747       # archiving commands below assume that GNU ld is being used.
16748       if test "$with_gnu_ld" = yes; then
16749         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16750         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'
16751
16752         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16753         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16754
16755         # If archive_cmds runs LD, not CC, wlarc should be empty
16756         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16757         #     investigate it a little bit more. (MM)
16758         wlarc='${wl}'
16759
16760         # ancient GNU ld didn't support --whole-archive et. al.
16761         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16762           $GREP 'no-whole-archive' > /dev/null; then
16763           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16764         else
16765           whole_archive_flag_spec_CXX=
16766         fi
16767       else
16768         with_gnu_ld=no
16769         wlarc=
16770
16771         # A generic and very simple default shared library creation
16772         # command for GNU C++ for the case where it uses the native
16773         # linker, instead of GNU ld.  If possible, this setting should
16774         # overridden to take advantage of the native linker features on
16775         # the platform it is being used on.
16776         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16777       fi
16778
16779       # Commands to make compiler produce verbose output that lists
16780       # what "hidden" libraries, object files and flags are used when
16781       # linking a shared library.
16782       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16783
16784     else
16785       GXX=no
16786       with_gnu_ld=no
16787       wlarc=
16788     fi
16789
16790     # PORTME: fill in a description of your system's C++ link characteristics
16791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16793     ld_shlibs_CXX=yes
16794     case $host_os in
16795       aix3*)
16796         # FIXME: insert proper C++ library support
16797         ld_shlibs_CXX=no
16798         ;;
16799       aix[4-9]*)
16800         if test "$host_cpu" = ia64; then
16801           # On IA64, the linker does run time linking by default, so we don't
16802           # have to do anything special.
16803           aix_use_runtimelinking=no
16804           exp_sym_flag='-Bexport'
16805           no_entry_flag=""
16806         else
16807           aix_use_runtimelinking=no
16808
16809           # Test if we are trying to use run time linking or normal
16810           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16811           # need to do runtime linking.
16812           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16813             for ld_flag in $LDFLAGS; do
16814               case $ld_flag in
16815               *-brtl*)
16816                 aix_use_runtimelinking=yes
16817                 break
16818                 ;;
16819               esac
16820             done
16821             ;;
16822           esac
16823
16824           exp_sym_flag='-bexport'
16825           no_entry_flag='-bnoentry'
16826         fi
16827
16828         # When large executables or shared objects are built, AIX ld can
16829         # have problems creating the table of contents.  If linking a library
16830         # or program results in "error TOC overflow" add -mminimal-toc to
16831         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16832         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16833
16834         archive_cmds_CXX=''
16835         hardcode_direct_CXX=yes
16836         hardcode_direct_absolute_CXX=yes
16837         hardcode_libdir_separator_CXX=':'
16838         link_all_deplibs_CXX=yes
16839         file_list_spec_CXX='${wl}-f,'
16840
16841         if test "$GXX" = yes; then
16842           case $host_os in aix4.[012]|aix4.[012].*)
16843           # We only want to do this on AIX 4.2 and lower, the check
16844           # below for broken collect2 doesn't work under 4.3+
16845           collect2name=`${CC} -print-prog-name=collect2`
16846           if test -f "$collect2name" &&
16847              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16848           then
16849             # We have reworked collect2
16850             :
16851           else
16852             # We have old collect2
16853             hardcode_direct_CXX=unsupported
16854             # It fails to find uninstalled libraries when the uninstalled
16855             # path is not listed in the libpath.  Setting hardcode_minus_L
16856             # to unsupported forces relinking
16857             hardcode_minus_L_CXX=yes
16858             hardcode_libdir_flag_spec_CXX='-L$libdir'
16859             hardcode_libdir_separator_CXX=
16860           fi
16861           esac
16862           shared_flag='-shared'
16863           if test "$aix_use_runtimelinking" = yes; then
16864             shared_flag="$shared_flag "'${wl}-G'
16865           fi
16866         else
16867           # not using gcc
16868           if test "$host_cpu" = ia64; then
16869           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16870           # chokes on -Wl,-G. The following line is correct:
16871           shared_flag='-G'
16872           else
16873             if test "$aix_use_runtimelinking" = yes; then
16874               shared_flag='${wl}-G'
16875             else
16876               shared_flag='${wl}-bM:SRE'
16877             fi
16878           fi
16879         fi
16880
16881         export_dynamic_flag_spec_CXX='${wl}-bexpall'
16882         # It seems that -bexpall does not export symbols beginning with
16883         # underscore (_), so it is better to generate a list of symbols to
16884         # export.
16885         always_export_symbols_CXX=yes
16886         if test "$aix_use_runtimelinking" = yes; then
16887           # Warning - without using the other runtime loading flags (-brtl),
16888           # -berok will link without error, but may produce a broken library.
16889           allow_undefined_flag_CXX='-berok'
16890           # Determine the default libpath from the value encoded in an empty
16891           # executable.
16892           if test "${lt_cv_aix_libpath+set}" = set; then
16893   aix_libpath=$lt_cv_aix_libpath
16894 else
16895   if ${lt_cv_aix_libpath__CXX+:} false; then :
16896   $as_echo_n "(cached) " >&6
16897 else
16898   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h.  */
16900
16901 int
16902 main ()
16903 {
16904
16905   ;
16906   return 0;
16907 }
16908 _ACEOF
16909 if ac_fn_cxx_try_link "$LINENO"; then :
16910
16911   lt_aix_libpath_sed='
16912       /Import File Strings/,/^$/ {
16913           /^0/ {
16914               s/^0  *\([^ ]*\) *$/\1/
16915               p
16916           }
16917       }'
16918   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16919   # Check for a 64-bit object if we didn't find anything.
16920   if test -z "$lt_cv_aix_libpath__CXX"; then
16921     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16922   fi
16923 fi
16924 rm -f core conftest.err conftest.$ac_objext \
16925     conftest$ac_exeext conftest.$ac_ext
16926   if test -z "$lt_cv_aix_libpath__CXX"; then
16927     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16928   fi
16929
16930 fi
16931
16932   aix_libpath=$lt_cv_aix_libpath__CXX
16933 fi
16934
16935           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16936
16937           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"
16938         else
16939           if test "$host_cpu" = ia64; then
16940             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16941             allow_undefined_flag_CXX="-z nodefs"
16942             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"
16943           else
16944             # Determine the default libpath from the value encoded in an
16945             # empty executable.
16946             if test "${lt_cv_aix_libpath+set}" = set; then
16947   aix_libpath=$lt_cv_aix_libpath
16948 else
16949   if ${lt_cv_aix_libpath__CXX+:} false; then :
16950   $as_echo_n "(cached) " >&6
16951 else
16952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h.  */
16954
16955 int
16956 main ()
16957 {
16958
16959   ;
16960   return 0;
16961 }
16962 _ACEOF
16963 if ac_fn_cxx_try_link "$LINENO"; then :
16964
16965   lt_aix_libpath_sed='
16966       /Import File Strings/,/^$/ {
16967           /^0/ {
16968               s/^0  *\([^ ]*\) *$/\1/
16969               p
16970           }
16971       }'
16972   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16973   # Check for a 64-bit object if we didn't find anything.
16974   if test -z "$lt_cv_aix_libpath__CXX"; then
16975     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16976   fi
16977 fi
16978 rm -f core conftest.err conftest.$ac_objext \
16979     conftest$ac_exeext conftest.$ac_ext
16980   if test -z "$lt_cv_aix_libpath__CXX"; then
16981     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
16982   fi
16983
16984 fi
16985
16986   aix_libpath=$lt_cv_aix_libpath__CXX
16987 fi
16988
16989             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16990             # Warning - without using the other run time loading flags,
16991             # -berok will link without error, but may produce a broken library.
16992             no_undefined_flag_CXX=' ${wl}-bernotok'
16993             allow_undefined_flag_CXX=' ${wl}-berok'
16994             if test "$with_gnu_ld" = yes; then
16995               # We only use this code for GNU lds that support --whole-archive.
16996               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16997             else
16998               # Exported symbols can be pulled into shared objects from archives
16999               whole_archive_flag_spec_CXX='$convenience'
17000             fi
17001             archive_cmds_need_lc_CXX=yes
17002             # This is similar to how AIX traditionally builds its shared
17003             # libraries.
17004             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'
17005           fi
17006         fi
17007         ;;
17008
17009       beos*)
17010         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17011           allow_undefined_flag_CXX=unsupported
17012           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17013           # support --undefined.  This deserves some investigation.  FIXME
17014           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17015         else
17016           ld_shlibs_CXX=no
17017         fi
17018         ;;
17019
17020       chorus*)
17021         case $cc_basename in
17022           *)
17023           # FIXME: insert proper C++ library support
17024           ld_shlibs_CXX=no
17025           ;;
17026         esac
17027         ;;
17028
17029       cygwin* | mingw* | pw32* | cegcc*)
17030         case $GXX,$cc_basename in
17031         ,cl* | no,cl*)
17032           # Native MSVC
17033           # hardcode_libdir_flag_spec is actually meaningless, as there is
17034           # no search path for DLLs.
17035           hardcode_libdir_flag_spec_CXX=' '
17036           allow_undefined_flag_CXX=unsupported
17037           always_export_symbols_CXX=yes
17038           file_list_spec_CXX='@'
17039           # Tell ltmain to make .lib files, not .a files.
17040           libext=lib
17041           # Tell ltmain to make .dll files, not .so files.
17042           shrext_cmds=".dll"
17043           # FIXME: Setting linknames here is a bad hack.
17044           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17045           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17046               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17047             else
17048               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17049             fi~
17050             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17051             linknames='
17052           # The linker will not automatically build a static lib if we build a DLL.
17053           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17054           enable_shared_with_static_runtimes_CXX=yes
17055           # Don't use ranlib
17056           old_postinstall_cmds_CXX='chmod 644 $oldlib'
17057           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17058             lt_tool_outputfile="@TOOL_OUTPUT@"~
17059             case $lt_outputfile in
17060               *.exe|*.EXE) ;;
17061               *)
17062                 lt_outputfile="$lt_outputfile.exe"
17063                 lt_tool_outputfile="$lt_tool_outputfile.exe"
17064                 ;;
17065             esac~
17066             func_to_tool_file "$lt_outputfile"~
17067             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17068               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17069               $RM "$lt_outputfile.manifest";
17070             fi'
17071           ;;
17072         *)
17073           # g++
17074           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17075           # as there is no search path for DLLs.
17076           hardcode_libdir_flag_spec_CXX='-L$libdir'
17077           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17078           allow_undefined_flag_CXX=unsupported
17079           always_export_symbols_CXX=no
17080           enable_shared_with_static_runtimes_CXX=yes
17081
17082           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17083             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'
17084             # If the export-symbols file already is a .def file (1st line
17085             # is EXPORTS), use it as is; otherwise, prepend...
17086             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17087               cp $export_symbols $output_objdir/$soname.def;
17088             else
17089               echo EXPORTS > $output_objdir/$soname.def;
17090               cat $export_symbols >> $output_objdir/$soname.def;
17091             fi~
17092             $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'
17093           else
17094             ld_shlibs_CXX=no
17095           fi
17096           ;;
17097         esac
17098         ;;
17099       darwin* | rhapsody*)
17100
17101
17102   archive_cmds_need_lc_CXX=no
17103   hardcode_direct_CXX=no
17104   hardcode_automatic_CXX=yes
17105   hardcode_shlibpath_var_CXX=unsupported
17106   if test "$lt_cv_ld_force_load" = "yes"; then
17107     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\"`'
17108
17109   else
17110     whole_archive_flag_spec_CXX=''
17111   fi
17112   link_all_deplibs_CXX=yes
17113   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17114   case $cc_basename in
17115      ifort*) _lt_dar_can_shared=yes ;;
17116      *) _lt_dar_can_shared=$GCC ;;
17117   esac
17118   if test "$_lt_dar_can_shared" = "yes"; then
17119     output_verbose_link_cmd=func_echo_all
17120     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}"
17121     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17122     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}"
17123     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}"
17124        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17125       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}"
17126       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}"
17127     fi
17128
17129   else
17130   ld_shlibs_CXX=no
17131   fi
17132
17133         ;;
17134
17135       dgux*)
17136         case $cc_basename in
17137           ec++*)
17138             # FIXME: insert proper C++ library support
17139             ld_shlibs_CXX=no
17140             ;;
17141           ghcx*)
17142             # Green Hills C++ Compiler
17143             # FIXME: insert proper C++ library support
17144             ld_shlibs_CXX=no
17145             ;;
17146           *)
17147             # FIXME: insert proper C++ library support
17148             ld_shlibs_CXX=no
17149             ;;
17150         esac
17151         ;;
17152
17153       freebsd2.*)
17154         # C++ shared libraries reported to be fairly broken before
17155         # switch to ELF
17156         ld_shlibs_CXX=no
17157         ;;
17158
17159       freebsd-elf*)
17160         archive_cmds_need_lc_CXX=no
17161         ;;
17162
17163       freebsd* | dragonfly*)
17164         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17165         # conventions
17166         ld_shlibs_CXX=yes
17167         ;;
17168
17169       gnu*)
17170         ;;
17171
17172       haiku*)
17173         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17174         link_all_deplibs_CXX=yes
17175         ;;
17176
17177       hpux9*)
17178         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17179         hardcode_libdir_separator_CXX=:
17180         export_dynamic_flag_spec_CXX='${wl}-E'
17181         hardcode_direct_CXX=yes
17182         hardcode_minus_L_CXX=yes # Not in the search PATH,
17183                                              # but as the default
17184                                              # location of the library.
17185
17186         case $cc_basename in
17187           CC*)
17188             # FIXME: insert proper C++ library support
17189             ld_shlibs_CXX=no
17190             ;;
17191           aCC*)
17192             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'
17193             # Commands to make compiler produce verbose output that lists
17194             # what "hidden" libraries, object files and flags are used when
17195             # linking a shared library.
17196             #
17197             # There doesn't appear to be a way to prevent this compiler from
17198             # explicitly linking system object files so we need to strip them
17199             # from the output so that they don't get included in the library
17200             # dependencies.
17201             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"'
17202             ;;
17203           *)
17204             if test "$GXX" = yes; then
17205               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'
17206             else
17207               # FIXME: insert proper C++ library support
17208               ld_shlibs_CXX=no
17209             fi
17210             ;;
17211         esac
17212         ;;
17213
17214       hpux10*|hpux11*)
17215         if test $with_gnu_ld = no; then
17216           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17217           hardcode_libdir_separator_CXX=:
17218
17219           case $host_cpu in
17220             hppa*64*|ia64*)
17221               ;;
17222             *)
17223               export_dynamic_flag_spec_CXX='${wl}-E'
17224               ;;
17225           esac
17226         fi
17227         case $host_cpu in
17228           hppa*64*|ia64*)
17229             hardcode_direct_CXX=no
17230             hardcode_shlibpath_var_CXX=no
17231             ;;
17232           *)
17233             hardcode_direct_CXX=yes
17234             hardcode_direct_absolute_CXX=yes
17235             hardcode_minus_L_CXX=yes # Not in the search PATH,
17236                                                  # but as the default
17237                                                  # location of the library.
17238             ;;
17239         esac
17240
17241         case $cc_basename in
17242           CC*)
17243             # FIXME: insert proper C++ library support
17244             ld_shlibs_CXX=no
17245             ;;
17246           aCC*)
17247             case $host_cpu in
17248               hppa*64*)
17249                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17250                 ;;
17251               ia64*)
17252                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17253                 ;;
17254               *)
17255                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17256                 ;;
17257             esac
17258             # Commands to make compiler produce verbose output that lists
17259             # what "hidden" libraries, object files and flags are used when
17260             # linking a shared library.
17261             #
17262             # There doesn't appear to be a way to prevent this compiler from
17263             # explicitly linking system object files so we need to strip them
17264             # from the output so that they don't get included in the library
17265             # dependencies.
17266             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"'
17267             ;;
17268           *)
17269             if test "$GXX" = yes; then
17270               if test $with_gnu_ld = no; then
17271                 case $host_cpu in
17272                   hppa*64*)
17273                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17274                     ;;
17275                   ia64*)
17276                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17277                     ;;
17278                   *)
17279                     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'
17280                     ;;
17281                 esac
17282               fi
17283             else
17284               # FIXME: insert proper C++ library support
17285               ld_shlibs_CXX=no
17286             fi
17287             ;;
17288         esac
17289         ;;
17290
17291       interix[3-9]*)
17292         hardcode_direct_CXX=no
17293         hardcode_shlibpath_var_CXX=no
17294         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17295         export_dynamic_flag_spec_CXX='${wl}-E'
17296         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17297         # Instead, shared libraries are loaded at an image base (0x10000000 by
17298         # default) and relocated if they conflict, which is a slow very memory
17299         # consuming and fragmenting process.  To avoid this, we pick a random,
17300         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17301         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17302         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'
17303         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'
17304         ;;
17305       irix5* | irix6*)
17306         case $cc_basename in
17307           CC*)
17308             # SGI C++
17309             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'
17310
17311             # Archives containing C++ object files must be created using
17312             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
17313             # necessary to make sure instantiated templates are included
17314             # in the archive.
17315             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17316             ;;
17317           *)
17318             if test "$GXX" = yes; then
17319               if test "$with_gnu_ld" = no; then
17320                 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'
17321               else
17322                 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'
17323               fi
17324             fi
17325             link_all_deplibs_CXX=yes
17326             ;;
17327         esac
17328         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17329         hardcode_libdir_separator_CXX=:
17330         inherit_rpath_CXX=yes
17331         ;;
17332
17333       linux* | k*bsd*-gnu | kopensolaris*-gnu)
17334         case $cc_basename in
17335           KCC*)
17336             # Kuck and Associates, Inc. (KAI) C++ Compiler
17337
17338             # KCC will only create a shared library if the output file
17339             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17340             # to its proper name (with version) after linking.
17341             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'
17342             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'
17343             # Commands to make compiler produce verbose output that lists
17344             # what "hidden" libraries, object files and flags are used when
17345             # linking a shared library.
17346             #
17347             # There doesn't appear to be a way to prevent this compiler from
17348             # explicitly linking system object files so we need to strip them
17349             # from the output so that they don't get included in the library
17350             # dependencies.
17351             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"'
17352
17353             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17354             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17355
17356             # Archives containing C++ object files must be created using
17357             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17358             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17359             ;;
17360           icpc* | ecpc* )
17361             # Intel C++
17362             with_gnu_ld=yes
17363             # version 8.0 and above of icpc choke on multiply defined symbols
17364             # if we add $predep_objects and $postdep_objects, however 7.1 and
17365             # earlier do not add the objects themselves.
17366             case `$CC -V 2>&1` in
17367               *"Version 7."*)
17368                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17369                 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'
17370                 ;;
17371               *)  # Version 8.0 or newer
17372                 tmp_idyn=
17373                 case $host_cpu in
17374                   ia64*) tmp_idyn=' -i_dynamic';;
17375                 esac
17376                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17377                 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'
17378                 ;;
17379             esac
17380             archive_cmds_need_lc_CXX=no
17381             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17382             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17383             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17384             ;;
17385           pgCC* | pgcpp*)
17386             # Portland Group C++ compiler
17387             case `$CC -V` in
17388             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17389               prelink_cmds_CXX='tpldir=Template.dir~
17390                 rm -rf $tpldir~
17391                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17392                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17393               old_archive_cmds_CXX='tpldir=Template.dir~
17394                 rm -rf $tpldir~
17395                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17396                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17397                 $RANLIB $oldlib'
17398               archive_cmds_CXX='tpldir=Template.dir~
17399                 rm -rf $tpldir~
17400                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17401                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17402               archive_expsym_cmds_CXX='tpldir=Template.dir~
17403                 rm -rf $tpldir~
17404                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17405                 $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'
17406               ;;
17407             *) # Version 6 and above use weak symbols
17408               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17409               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'
17410               ;;
17411             esac
17412
17413             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17414             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17415             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'
17416             ;;
17417           cxx*)
17418             # Compaq C++
17419             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420             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'
17421
17422             runpath_var=LD_RUN_PATH
17423             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17424             hardcode_libdir_separator_CXX=:
17425
17426             # Commands to make compiler produce verbose output that lists
17427             # what "hidden" libraries, object files and flags are used when
17428             # linking a shared library.
17429             #
17430             # There doesn't appear to be a way to prevent this compiler from
17431             # explicitly linking system object files so we need to strip them
17432             # from the output so that they don't get included in the library
17433             # dependencies.
17434             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'
17435             ;;
17436           xl* | mpixl* | bgxl*)
17437             # IBM XL 8.0 on PPC, with GNU ld
17438             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17439             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17440             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17441             if test "x$supports_anon_versioning" = xyes; then
17442               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17443                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17444                 echo "local: *; };" >> $output_objdir/$libname.ver~
17445                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17446             fi
17447             ;;
17448           *)
17449             case `$CC -V 2>&1 | sed 5q` in
17450             *Sun\ C*)
17451               # Sun C++ 5.9
17452               no_undefined_flag_CXX=' -zdefs'
17453               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17454               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'
17455               hardcode_libdir_flag_spec_CXX='-R$libdir'
17456               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'
17457               compiler_needs_object_CXX=yes
17458
17459               # Not sure whether something based on
17460               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17461               # would be better.
17462               output_verbose_link_cmd='func_echo_all'
17463
17464               # Archives containing C++ object files must be created using
17465               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17466               # necessary to make sure instantiated templates are included
17467               # in the archive.
17468               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17469               ;;
17470             esac
17471             ;;
17472         esac
17473         ;;
17474
17475       lynxos*)
17476         # FIXME: insert proper C++ library support
17477         ld_shlibs_CXX=no
17478         ;;
17479
17480       m88k*)
17481         # FIXME: insert proper C++ library support
17482         ld_shlibs_CXX=no
17483         ;;
17484
17485       mvs*)
17486         case $cc_basename in
17487           cxx*)
17488             # FIXME: insert proper C++ library support
17489             ld_shlibs_CXX=no
17490             ;;
17491           *)
17492             # FIXME: insert proper C++ library support
17493             ld_shlibs_CXX=no
17494             ;;
17495         esac
17496         ;;
17497
17498       netbsd*)
17499         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17500           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17501           wlarc=
17502           hardcode_libdir_flag_spec_CXX='-R$libdir'
17503           hardcode_direct_CXX=yes
17504           hardcode_shlibpath_var_CXX=no
17505         fi
17506         # Workaround some broken pre-1.5 toolchains
17507         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17508         ;;
17509
17510       *nto* | *qnx*)
17511         ld_shlibs_CXX=yes
17512         ;;
17513
17514       openbsd2*)
17515         # C++ shared libraries are fairly broken
17516         ld_shlibs_CXX=no
17517         ;;
17518
17519       openbsd*)
17520         if test -f /usr/libexec/ld.so; then
17521           hardcode_direct_CXX=yes
17522           hardcode_shlibpath_var_CXX=no
17523           hardcode_direct_absolute_CXX=yes
17524           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17525           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17526           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17527             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17528             export_dynamic_flag_spec_CXX='${wl}-E'
17529             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17530           fi
17531           output_verbose_link_cmd=func_echo_all
17532         else
17533           ld_shlibs_CXX=no
17534         fi
17535         ;;
17536
17537       osf3* | osf4* | osf5*)
17538         case $cc_basename in
17539           KCC*)
17540             # Kuck and Associates, Inc. (KAI) C++ Compiler
17541
17542             # KCC will only create a shared library if the output file
17543             # ends with ".so" (or ".sl" for HP-UX), so rename the library
17544             # to its proper name (with version) after linking.
17545             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'
17546
17547             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17548             hardcode_libdir_separator_CXX=:
17549
17550             # Archives containing C++ object files must be created using
17551             # the KAI C++ compiler.
17552             case $host in
17553               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17554               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17555             esac
17556             ;;
17557           RCC*)
17558             # Rational C++ 2.4.1
17559             # FIXME: insert proper C++ library support
17560             ld_shlibs_CXX=no
17561             ;;
17562           cxx*)
17563             case $host in
17564               osf3*)
17565                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17566                 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'
17567                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17568                 ;;
17569               *)
17570                 allow_undefined_flag_CXX=' -expect_unresolved \*'
17571                 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'
17572                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17573                   echo "-hidden">> $lib.exp~
17574                   $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~
17575                   $RM $lib.exp'
17576                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17577                 ;;
17578             esac
17579
17580             hardcode_libdir_separator_CXX=:
17581
17582             # Commands to make compiler produce verbose output that lists
17583             # what "hidden" libraries, object files and flags are used when
17584             # linking a shared library.
17585             #
17586             # There doesn't appear to be a way to prevent this compiler from
17587             # explicitly linking system object files so we need to strip them
17588             # from the output so that they don't get included in the library
17589             # dependencies.
17590             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"'
17591             ;;
17592           *)
17593             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17594               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17595               case $host in
17596                 osf3*)
17597                   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'
17598                   ;;
17599                 *)
17600                   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'
17601                   ;;
17602               esac
17603
17604               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17605               hardcode_libdir_separator_CXX=:
17606
17607               # Commands to make compiler produce verbose output that lists
17608               # what "hidden" libraries, object files and flags are used when
17609               # linking a shared library.
17610               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17611
17612             else
17613               # FIXME: insert proper C++ library support
17614               ld_shlibs_CXX=no
17615             fi
17616             ;;
17617         esac
17618         ;;
17619
17620       psos*)
17621         # FIXME: insert proper C++ library support
17622         ld_shlibs_CXX=no
17623         ;;
17624
17625       sunos4*)
17626         case $cc_basename in
17627           CC*)
17628             # Sun C++ 4.x
17629             # FIXME: insert proper C++ library support
17630             ld_shlibs_CXX=no
17631             ;;
17632           lcc*)
17633             # Lucid
17634             # FIXME: insert proper C++ library support
17635             ld_shlibs_CXX=no
17636             ;;
17637           *)
17638             # FIXME: insert proper C++ library support
17639             ld_shlibs_CXX=no
17640             ;;
17641         esac
17642         ;;
17643
17644       solaris*)
17645         case $cc_basename in
17646           CC* | sunCC*)
17647             # Sun C++ 4.2, 5.x and Centerline C++
17648             archive_cmds_need_lc_CXX=yes
17649             no_undefined_flag_CXX=' -zdefs'
17650             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17651             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17652               $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'
17653
17654             hardcode_libdir_flag_spec_CXX='-R$libdir'
17655             hardcode_shlibpath_var_CXX=no
17656             case $host_os in
17657               solaris2.[0-5] | solaris2.[0-5].*) ;;
17658               *)
17659                 # The compiler driver will combine and reorder linker options,
17660                 # but understands `-z linker_flag'.
17661                 # Supported since Solaris 2.6 (maybe 2.5.1?)
17662                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17663                 ;;
17664             esac
17665             link_all_deplibs_CXX=yes
17666
17667             output_verbose_link_cmd='func_echo_all'
17668
17669             # Archives containing C++ object files must be created using
17670             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
17671             # necessary to make sure instantiated templates are included
17672             # in the archive.
17673             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17674             ;;
17675           gcx*)
17676             # Green Hills C++ Compiler
17677             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17678
17679             # The C++ compiler must be used to create the archive.
17680             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17681             ;;
17682           *)
17683             # GNU C++ compiler with Solaris linker
17684             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17685               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17686               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17687                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17688                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17689                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17690
17691                 # Commands to make compiler produce verbose output that lists
17692                 # what "hidden" libraries, object files and flags are used when
17693                 # linking a shared library.
17694                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17695               else
17696                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17697                 # platform.
17698                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17699                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17700                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17701
17702                 # Commands to make compiler produce verbose output that lists
17703                 # what "hidden" libraries, object files and flags are used when
17704                 # linking a shared library.
17705                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17706               fi
17707
17708               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17709               case $host_os in
17710                 solaris2.[0-5] | solaris2.[0-5].*) ;;
17711                 *)
17712                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17713                   ;;
17714               esac
17715             fi
17716             ;;
17717         esac
17718         ;;
17719
17720     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17721       no_undefined_flag_CXX='${wl}-z,text'
17722       archive_cmds_need_lc_CXX=no
17723       hardcode_shlibpath_var_CXX=no
17724       runpath_var='LD_RUN_PATH'
17725
17726       case $cc_basename in
17727         CC*)
17728           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17729           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17730           ;;
17731         *)
17732           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17733           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17734           ;;
17735       esac
17736       ;;
17737
17738       sysv5* | sco3.2v5* | sco5v6*)
17739         # Note: We can NOT use -z defs as we might desire, because we do not
17740         # link with -lc, and that would cause any symbols used from libc to
17741         # always be unresolved, which means just about no library would
17742         # ever link correctly.  If we're not using GNU ld we use -z text
17743         # though, which does catch some bad symbols but isn't as heavy-handed
17744         # as -z defs.
17745         no_undefined_flag_CXX='${wl}-z,text'
17746         allow_undefined_flag_CXX='${wl}-z,nodefs'
17747         archive_cmds_need_lc_CXX=no
17748         hardcode_shlibpath_var_CXX=no
17749         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17750         hardcode_libdir_separator_CXX=':'
17751         link_all_deplibs_CXX=yes
17752         export_dynamic_flag_spec_CXX='${wl}-Bexport'
17753         runpath_var='LD_RUN_PATH'
17754
17755         case $cc_basename in
17756           CC*)
17757             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17758             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17759             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17760               '"$old_archive_cmds_CXX"
17761             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17762               '"$reload_cmds_CXX"
17763             ;;
17764           *)
17765             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17766             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17767             ;;
17768         esac
17769       ;;
17770
17771       tandem*)
17772         case $cc_basename in
17773           NCC*)
17774             # NonStop-UX NCC 3.20
17775             # FIXME: insert proper C++ library support
17776             ld_shlibs_CXX=no
17777             ;;
17778           *)
17779             # FIXME: insert proper C++ library support
17780             ld_shlibs_CXX=no
17781             ;;
17782         esac
17783         ;;
17784
17785       vxworks*)
17786         # FIXME: insert proper C++ library support
17787         ld_shlibs_CXX=no
17788         ;;
17789
17790       *)
17791         # FIXME: insert proper C++ library support
17792         ld_shlibs_CXX=no
17793         ;;
17794     esac
17795
17796     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17797 $as_echo "$ld_shlibs_CXX" >&6; }
17798     test "$ld_shlibs_CXX" = no && can_build_shared=no
17799
17800     GCC_CXX="$GXX"
17801     LD_CXX="$LD"
17802
17803     ## CAVEAT EMPTOR:
17804     ## There is no encapsulation within the following macros, do not change
17805     ## the running order or otherwise move them around unless you know exactly
17806     ## what you are doing...
17807     # Dependencies to place before and after the object being linked:
17808 predep_objects_CXX=
17809 postdep_objects_CXX=
17810 predeps_CXX=
17811 postdeps_CXX=
17812 compiler_lib_search_path_CXX=
17813
17814 cat > conftest.$ac_ext <<_LT_EOF
17815 class Foo
17816 {
17817 public:
17818   Foo (void) { a = 0; }
17819 private:
17820   int a;
17821 };
17822 _LT_EOF
17823
17824
17825 _lt_libdeps_save_CFLAGS=$CFLAGS
17826 case "$CC $CFLAGS " in #(
17827 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17828 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17829 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
17830 esac
17831
17832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17833   (eval $ac_compile) 2>&5
17834   ac_status=$?
17835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836   test $ac_status = 0; }; then
17837   # Parse the compiler output and extract the necessary
17838   # objects, libraries and library flags.
17839
17840   # Sentinel used to keep track of whether or not we are before
17841   # the conftest object file.
17842   pre_test_object_deps_done=no
17843
17844   for p in `eval "$output_verbose_link_cmd"`; do
17845     case ${prev}${p} in
17846
17847     -L* | -R* | -l*)
17848        # Some compilers place space between "-{L,R}" and the path.
17849        # Remove the space.
17850        if test $p = "-L" ||
17851           test $p = "-R"; then
17852          prev=$p
17853          continue
17854        fi
17855
17856        # Expand the sysroot to ease extracting the directories later.
17857        if test -z "$prev"; then
17858          case $p in
17859          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17860          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17861          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17862          esac
17863        fi
17864        case $p in
17865        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17866        esac
17867        if test "$pre_test_object_deps_done" = no; then
17868          case ${prev} in
17869          -L | -R)
17870            # Internal compiler library paths should come after those
17871            # provided the user.  The postdeps already come after the
17872            # user supplied libs so there is no need to process them.
17873            if test -z "$compiler_lib_search_path_CXX"; then
17874              compiler_lib_search_path_CXX="${prev}${p}"
17875            else
17876              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17877            fi
17878            ;;
17879          # The "-l" case would never come before the object being
17880          # linked, so don't bother handling this case.
17881          esac
17882        else
17883          if test -z "$postdeps_CXX"; then
17884            postdeps_CXX="${prev}${p}"
17885          else
17886            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17887          fi
17888        fi
17889        prev=
17890        ;;
17891
17892     *.lto.$objext) ;; # Ignore GCC LTO objects
17893     *.$objext)
17894        # This assumes that the test object file only shows up
17895        # once in the compiler output.
17896        if test "$p" = "conftest.$objext"; then
17897          pre_test_object_deps_done=yes
17898          continue
17899        fi
17900
17901        if test "$pre_test_object_deps_done" = no; then
17902          if test -z "$predep_objects_CXX"; then
17903            predep_objects_CXX="$p"
17904          else
17905            predep_objects_CXX="$predep_objects_CXX $p"
17906          fi
17907        else
17908          if test -z "$postdep_objects_CXX"; then
17909            postdep_objects_CXX="$p"
17910          else
17911            postdep_objects_CXX="$postdep_objects_CXX $p"
17912          fi
17913        fi
17914        ;;
17915
17916     *) ;; # Ignore the rest.
17917
17918     esac
17919   done
17920
17921   # Clean up.
17922   rm -f a.out a.exe
17923 else
17924   echo "libtool.m4: error: problem compiling CXX test program"
17925 fi
17926
17927 $RM -f confest.$objext
17928 CFLAGS=$_lt_libdeps_save_CFLAGS
17929
17930 # PORTME: override above test on systems where it is broken
17931 case $host_os in
17932 interix[3-9]*)
17933   # Interix 3.5 installs completely hosed .la files for C++, so rather than
17934   # hack all around it, let's just trust "g++" to DTRT.
17935   predep_objects_CXX=
17936   postdep_objects_CXX=
17937   postdeps_CXX=
17938   ;;
17939
17940 linux*)
17941   case `$CC -V 2>&1 | sed 5q` in
17942   *Sun\ C*)
17943     # Sun C++ 5.9
17944
17945     # The more standards-conforming stlport4 library is
17946     # incompatible with the Cstd library. Avoid specifying
17947     # it if it's in CXXFLAGS. Ignore libCrun as
17948     # -library=stlport4 depends on it.
17949     case " $CXX $CXXFLAGS " in
17950     *" -library=stlport4 "*)
17951       solaris_use_stlport4=yes
17952       ;;
17953     esac
17954
17955     if test "$solaris_use_stlport4" != yes; then
17956       postdeps_CXX='-library=Cstd -library=Crun'
17957     fi
17958     ;;
17959   esac
17960   ;;
17961
17962 solaris*)
17963   case $cc_basename in
17964   CC* | sunCC*)
17965     # The more standards-conforming stlport4 library is
17966     # incompatible with the Cstd library. Avoid specifying
17967     # it if it's in CXXFLAGS. Ignore libCrun as
17968     # -library=stlport4 depends on it.
17969     case " $CXX $CXXFLAGS " in
17970     *" -library=stlport4 "*)
17971       solaris_use_stlport4=yes
17972       ;;
17973     esac
17974
17975     # Adding this requires a known-good setup of shared libraries for
17976     # Sun compiler versions before 5.6, else PIC objects from an old
17977     # archive will be linked into the output, leading to subtle bugs.
17978     if test "$solaris_use_stlport4" != yes; then
17979       postdeps_CXX='-library=Cstd -library=Crun'
17980     fi
17981     ;;
17982   esac
17983   ;;
17984 esac
17985
17986
17987 case " $postdeps_CXX " in
17988 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17989 esac
17990  compiler_lib_search_dirs_CXX=
17991 if test -n "${compiler_lib_search_path_CXX}"; then
17992  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17993 fi
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025     lt_prog_compiler_wl_CXX=
18026 lt_prog_compiler_pic_CXX=
18027 lt_prog_compiler_static_CXX=
18028
18029
18030   # C++ specific cases for pic, static, wl, etc.
18031   if test "$GXX" = yes; then
18032     lt_prog_compiler_wl_CXX='-Wl,'
18033     lt_prog_compiler_static_CXX='-static'
18034
18035     case $host_os in
18036     aix*)
18037       # All AIX code is PIC.
18038       if test "$host_cpu" = ia64; then
18039         # AIX 5 now supports IA64 processor
18040         lt_prog_compiler_static_CXX='-Bstatic'
18041       fi
18042       ;;
18043
18044     amigaos*)
18045       case $host_cpu in
18046       powerpc)
18047             # see comment about AmigaOS4 .so support
18048             lt_prog_compiler_pic_CXX='-fPIC'
18049         ;;
18050       m68k)
18051             # FIXME: we need at least 68020 code to build shared libraries, but
18052             # adding the `-m68020' flag to GCC prevents building anything better,
18053             # like `-m68040'.
18054             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18055         ;;
18056       esac
18057       ;;
18058
18059     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18060       # PIC is the default for these OSes.
18061       ;;
18062     mingw* | cygwin* | os2* | pw32* | cegcc*)
18063       # This hack is so that the source file can tell whether it is being
18064       # built for inclusion in a dll (and should export symbols for example).
18065       # Although the cygwin gcc ignores -fPIC, still need this for old-style
18066       # (--disable-auto-import) libraries
18067       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18068       ;;
18069     darwin* | rhapsody*)
18070       # PIC is the default on this platform
18071       # Common symbols not allowed in MH_DYLIB files
18072       lt_prog_compiler_pic_CXX='-fno-common'
18073       ;;
18074     *djgpp*)
18075       # DJGPP does not support shared libraries at all
18076       lt_prog_compiler_pic_CXX=
18077       ;;
18078     haiku*)
18079       # PIC is the default for Haiku.
18080       # The "-static" flag exists, but is broken.
18081       lt_prog_compiler_static_CXX=
18082       ;;
18083     interix[3-9]*)
18084       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18085       # Instead, we relocate shared libraries at runtime.
18086       ;;
18087     sysv4*MP*)
18088       if test -d /usr/nec; then
18089         lt_prog_compiler_pic_CXX=-Kconform_pic
18090       fi
18091       ;;
18092     hpux*)
18093       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18094       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
18095       # sets the default TLS model and affects inlining.
18096       case $host_cpu in
18097       hppa*64*)
18098         ;;
18099       *)
18100         lt_prog_compiler_pic_CXX='-fPIC'
18101         ;;
18102       esac
18103       ;;
18104     *qnx* | *nto*)
18105       # QNX uses GNU C++, but need to define -shared option too, otherwise
18106       # it will coredump.
18107       lt_prog_compiler_pic_CXX='-fPIC -shared'
18108       ;;
18109     *)
18110       lt_prog_compiler_pic_CXX='-fPIC'
18111       ;;
18112     esac
18113   else
18114     case $host_os in
18115       aix[4-9]*)
18116         # All AIX code is PIC.
18117         if test "$host_cpu" = ia64; then
18118           # AIX 5 now supports IA64 processor
18119           lt_prog_compiler_static_CXX='-Bstatic'
18120         else
18121           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18122         fi
18123         ;;
18124       chorus*)
18125         case $cc_basename in
18126         cxch68*)
18127           # Green Hills C++ Compiler
18128           # _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"
18129           ;;
18130         esac
18131         ;;
18132       mingw* | cygwin* | os2* | pw32* | cegcc*)
18133         # This hack is so that the source file can tell whether it is being
18134         # built for inclusion in a dll (and should export symbols for example).
18135         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18136         ;;
18137       dgux*)
18138         case $cc_basename in
18139           ec++*)
18140             lt_prog_compiler_pic_CXX='-KPIC'
18141             ;;
18142           ghcx*)
18143             # Green Hills C++ Compiler
18144             lt_prog_compiler_pic_CXX='-pic'
18145             ;;
18146           *)
18147             ;;
18148         esac
18149         ;;
18150       freebsd* | dragonfly*)
18151         # FreeBSD uses GNU C++
18152         ;;
18153       hpux9* | hpux10* | hpux11*)
18154         case $cc_basename in
18155           CC*)
18156             lt_prog_compiler_wl_CXX='-Wl,'
18157             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18158             if test "$host_cpu" != ia64; then
18159               lt_prog_compiler_pic_CXX='+Z'
18160             fi
18161             ;;
18162           aCC*)
18163             lt_prog_compiler_wl_CXX='-Wl,'
18164             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18165             case $host_cpu in
18166             hppa*64*|ia64*)
18167               # +Z the default
18168               ;;
18169             *)
18170               lt_prog_compiler_pic_CXX='+Z'
18171               ;;
18172             esac
18173             ;;
18174           *)
18175             ;;
18176         esac
18177         ;;
18178       interix*)
18179         # This is c89, which is MS Visual C++ (no shared libs)
18180         # Anyone wants to do a port?
18181         ;;
18182       irix5* | irix6* | nonstopux*)
18183         case $cc_basename in
18184           CC*)
18185             lt_prog_compiler_wl_CXX='-Wl,'
18186             lt_prog_compiler_static_CXX='-non_shared'
18187             # CC pic flag -KPIC is the default.
18188             ;;
18189           *)
18190             ;;
18191         esac
18192         ;;
18193       linux* | k*bsd*-gnu | kopensolaris*-gnu)
18194         case $cc_basename in
18195           KCC*)
18196             # KAI C++ Compiler
18197             lt_prog_compiler_wl_CXX='--backend -Wl,'
18198             lt_prog_compiler_pic_CXX='-fPIC'
18199             ;;
18200           ecpc* )
18201             # old Intel C++ for x86_64 which still supported -KPIC.
18202             lt_prog_compiler_wl_CXX='-Wl,'
18203             lt_prog_compiler_pic_CXX='-KPIC'
18204             lt_prog_compiler_static_CXX='-static'
18205             ;;
18206           icpc* )
18207             # Intel C++, used to be incompatible with GCC.
18208             # ICC 10 doesn't accept -KPIC any more.
18209             lt_prog_compiler_wl_CXX='-Wl,'
18210             lt_prog_compiler_pic_CXX='-fPIC'
18211             lt_prog_compiler_static_CXX='-static'
18212             ;;
18213           pgCC* | pgcpp*)
18214             # Portland Group C++ compiler
18215             lt_prog_compiler_wl_CXX='-Wl,'
18216             lt_prog_compiler_pic_CXX='-fpic'
18217             lt_prog_compiler_static_CXX='-Bstatic'
18218             ;;
18219           cxx*)
18220             # Compaq C++
18221             # Make sure the PIC flag is empty.  It appears that all Alpha
18222             # Linux and Compaq Tru64 Unix objects are PIC.
18223             lt_prog_compiler_pic_CXX=
18224             lt_prog_compiler_static_CXX='-non_shared'
18225             ;;
18226           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18227             # IBM XL 8.0, 9.0 on PPC and BlueGene
18228             lt_prog_compiler_wl_CXX='-Wl,'
18229             lt_prog_compiler_pic_CXX='-qpic'
18230             lt_prog_compiler_static_CXX='-qstaticlink'
18231             ;;
18232           *)
18233             case `$CC -V 2>&1 | sed 5q` in
18234             *Sun\ C*)
18235               # Sun C++ 5.9
18236               lt_prog_compiler_pic_CXX='-KPIC'
18237               lt_prog_compiler_static_CXX='-Bstatic'
18238               lt_prog_compiler_wl_CXX='-Qoption ld '
18239               ;;
18240             esac
18241             ;;
18242         esac
18243         ;;
18244       lynxos*)
18245         ;;
18246       m88k*)
18247         ;;
18248       mvs*)
18249         case $cc_basename in
18250           cxx*)
18251             lt_prog_compiler_pic_CXX='-W c,exportall'
18252             ;;
18253           *)
18254             ;;
18255         esac
18256         ;;
18257       netbsd*)
18258         ;;
18259       *qnx* | *nto*)
18260         # QNX uses GNU C++, but need to define -shared option too, otherwise
18261         # it will coredump.
18262         lt_prog_compiler_pic_CXX='-fPIC -shared'
18263         ;;
18264       osf3* | osf4* | osf5*)
18265         case $cc_basename in
18266           KCC*)
18267             lt_prog_compiler_wl_CXX='--backend -Wl,'
18268             ;;
18269           RCC*)
18270             # Rational C++ 2.4.1
18271             lt_prog_compiler_pic_CXX='-pic'
18272             ;;
18273           cxx*)
18274             # Digital/Compaq C++
18275             lt_prog_compiler_wl_CXX='-Wl,'
18276             # Make sure the PIC flag is empty.  It appears that all Alpha
18277             # Linux and Compaq Tru64 Unix objects are PIC.
18278             lt_prog_compiler_pic_CXX=
18279             lt_prog_compiler_static_CXX='-non_shared'
18280             ;;
18281           *)
18282             ;;
18283         esac
18284         ;;
18285       psos*)
18286         ;;
18287       solaris*)
18288         case $cc_basename in
18289           CC* | sunCC*)
18290             # Sun C++ 4.2, 5.x and Centerline C++
18291             lt_prog_compiler_pic_CXX='-KPIC'
18292             lt_prog_compiler_static_CXX='-Bstatic'
18293             lt_prog_compiler_wl_CXX='-Qoption ld '
18294             ;;
18295           gcx*)
18296             # Green Hills C++ Compiler
18297             lt_prog_compiler_pic_CXX='-PIC'
18298             ;;
18299           *)
18300             ;;
18301         esac
18302         ;;
18303       sunos4*)
18304         case $cc_basename in
18305           CC*)
18306             # Sun C++ 4.x
18307             lt_prog_compiler_pic_CXX='-pic'
18308             lt_prog_compiler_static_CXX='-Bstatic'
18309             ;;
18310           lcc*)
18311             # Lucid
18312             lt_prog_compiler_pic_CXX='-pic'
18313             ;;
18314           *)
18315             ;;
18316         esac
18317         ;;
18318       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18319         case $cc_basename in
18320           CC*)
18321             lt_prog_compiler_wl_CXX='-Wl,'
18322             lt_prog_compiler_pic_CXX='-KPIC'
18323             lt_prog_compiler_static_CXX='-Bstatic'
18324             ;;
18325         esac
18326         ;;
18327       tandem*)
18328         case $cc_basename in
18329           NCC*)
18330             # NonStop-UX NCC 3.20
18331             lt_prog_compiler_pic_CXX='-KPIC'
18332             ;;
18333           *)
18334             ;;
18335         esac
18336         ;;
18337       vxworks*)
18338         ;;
18339       *)
18340         lt_prog_compiler_can_build_shared_CXX=no
18341         ;;
18342     esac
18343   fi
18344
18345 case $host_os in
18346   # For platforms which do not support PIC, -DPIC is meaningless:
18347   *djgpp*)
18348     lt_prog_compiler_pic_CXX=
18349     ;;
18350   *)
18351     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18352     ;;
18353 esac
18354
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18356 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18357 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18358   $as_echo_n "(cached) " >&6
18359 else
18360   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18361 fi
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18363 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18364 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18365
18366 #
18367 # Check to make sure the PIC flag actually works.
18368 #
18369 if test -n "$lt_prog_compiler_pic_CXX"; then
18370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18371 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18372 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18373   $as_echo_n "(cached) " >&6
18374 else
18375   lt_cv_prog_compiler_pic_works_CXX=no
18376    ac_outfile=conftest.$ac_objext
18377    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18378    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18379    # Insert the option either (1) after the last *FLAGS variable, or
18380    # (2) before a word containing "conftest.", or (3) at the end.
18381    # Note that $ac_compile itself does not contain backslashes and begins
18382    # with a dollar sign (not a hyphen), so the echo should work correctly.
18383    # The option is referenced via a variable to avoid confusing sed.
18384    lt_compile=`echo "$ac_compile" | $SED \
18385    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18386    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18387    -e 's:$: $lt_compiler_flag:'`
18388    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18389    (eval "$lt_compile" 2>conftest.err)
18390    ac_status=$?
18391    cat conftest.err >&5
18392    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393    if (exit $ac_status) && test -s "$ac_outfile"; then
18394      # The compiler can only warn and ignore the option if not recognized
18395      # So say no if there are warnings other than the usual output.
18396      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18397      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18398      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18399        lt_cv_prog_compiler_pic_works_CXX=yes
18400      fi
18401    fi
18402    $RM conftest*
18403
18404 fi
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18406 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18407
18408 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18409     case $lt_prog_compiler_pic_CXX in
18410      "" | " "*) ;;
18411      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18412      esac
18413 else
18414     lt_prog_compiler_pic_CXX=
18415      lt_prog_compiler_can_build_shared_CXX=no
18416 fi
18417
18418 fi
18419
18420
18421
18422
18423
18424 #
18425 # Check to make sure the static flag actually works.
18426 #
18427 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18429 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18430 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18431   $as_echo_n "(cached) " >&6
18432 else
18433   lt_cv_prog_compiler_static_works_CXX=no
18434    save_LDFLAGS="$LDFLAGS"
18435    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18436    echo "$lt_simple_link_test_code" > conftest.$ac_ext
18437    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18438      # The linker can only warn and ignore the option if not recognized
18439      # So say no if there are warnings
18440      if test -s conftest.err; then
18441        # Append any errors to the config.log.
18442        cat conftest.err 1>&5
18443        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18444        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18445        if diff conftest.exp conftest.er2 >/dev/null; then
18446          lt_cv_prog_compiler_static_works_CXX=yes
18447        fi
18448      else
18449        lt_cv_prog_compiler_static_works_CXX=yes
18450      fi
18451    fi
18452    $RM -r conftest*
18453    LDFLAGS="$save_LDFLAGS"
18454
18455 fi
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18457 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18458
18459 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18460     :
18461 else
18462     lt_prog_compiler_static_CXX=
18463 fi
18464
18465
18466
18467
18468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18469 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18470 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18471   $as_echo_n "(cached) " >&6
18472 else
18473   lt_cv_prog_compiler_c_o_CXX=no
18474    $RM -r conftest 2>/dev/null
18475    mkdir conftest
18476    cd conftest
18477    mkdir out
18478    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18479
18480    lt_compiler_flag="-o out/conftest2.$ac_objext"
18481    # Insert the option either (1) after the last *FLAGS variable, or
18482    # (2) before a word containing "conftest.", or (3) at the end.
18483    # Note that $ac_compile itself does not contain backslashes and begins
18484    # with a dollar sign (not a hyphen), so the echo should work correctly.
18485    lt_compile=`echo "$ac_compile" | $SED \
18486    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18487    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18488    -e 's:$: $lt_compiler_flag:'`
18489    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18490    (eval "$lt_compile" 2>out/conftest.err)
18491    ac_status=$?
18492    cat out/conftest.err >&5
18493    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18494    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18495    then
18496      # The compiler can only warn and ignore the option if not recognized
18497      # So say no if there are warnings
18498      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18499      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18500      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18501        lt_cv_prog_compiler_c_o_CXX=yes
18502      fi
18503    fi
18504    chmod u+w . 2>&5
18505    $RM conftest*
18506    # SGI C++ compiler will create directory out/ii_files/ for
18507    # template instantiation
18508    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18509    $RM out/* && rmdir out
18510    cd ..
18511    $RM -r conftest
18512    $RM conftest*
18513
18514 fi
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18516 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18517
18518
18519
18520     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18521 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18522 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18523   $as_echo_n "(cached) " >&6
18524 else
18525   lt_cv_prog_compiler_c_o_CXX=no
18526    $RM -r conftest 2>/dev/null
18527    mkdir conftest
18528    cd conftest
18529    mkdir out
18530    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18531
18532    lt_compiler_flag="-o out/conftest2.$ac_objext"
18533    # Insert the option either (1) after the last *FLAGS variable, or
18534    # (2) before a word containing "conftest.", or (3) at the end.
18535    # Note that $ac_compile itself does not contain backslashes and begins
18536    # with a dollar sign (not a hyphen), so the echo should work correctly.
18537    lt_compile=`echo "$ac_compile" | $SED \
18538    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18539    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18540    -e 's:$: $lt_compiler_flag:'`
18541    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18542    (eval "$lt_compile" 2>out/conftest.err)
18543    ac_status=$?
18544    cat out/conftest.err >&5
18545    echo "$as_me:$LINENO: \$? = $ac_status" >&5
18546    if (exit $ac_status) && test -s out/conftest2.$ac_objext
18547    then
18548      # The compiler can only warn and ignore the option if not recognized
18549      # So say no if there are warnings
18550      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18551      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18552      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18553        lt_cv_prog_compiler_c_o_CXX=yes
18554      fi
18555    fi
18556    chmod u+w . 2>&5
18557    $RM conftest*
18558    # SGI C++ compiler will create directory out/ii_files/ for
18559    # template instantiation
18560    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18561    $RM out/* && rmdir out
18562    cd ..
18563    $RM -r conftest
18564    $RM conftest*
18565
18566 fi
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18568 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18569
18570
18571
18572
18573 hard_links="nottested"
18574 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18575   # do not overwrite the value of need_locks provided by the user
18576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18577 $as_echo_n "checking if we can lock with hard links... " >&6; }
18578   hard_links=yes
18579   $RM conftest*
18580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18581   touch conftest.a
18582   ln conftest.a conftest.b 2>&5 || hard_links=no
18583   ln conftest.a conftest.b 2>/dev/null && hard_links=no
18584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18585 $as_echo "$hard_links" >&6; }
18586   if test "$hard_links" = no; then
18587     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18588 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18589     need_locks=warn
18590   fi
18591 else
18592   need_locks=no
18593 fi
18594
18595
18596
18597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18598 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18599
18600   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18601   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18602   case $host_os in
18603   aix[4-9]*)
18604     # If we're using GNU nm, then we don't want the "-C" option.
18605     # -C means demangle to AIX nm, but means don't demangle with GNU nm
18606     # Also, AIX nm treats weak defined symbols like other global defined
18607     # symbols, whereas GNU nm marks them as "W".
18608     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18609       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'
18610     else
18611       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'
18612     fi
18613     ;;
18614   pw32*)
18615     export_symbols_cmds_CXX="$ltdll_cmds"
18616     ;;
18617   cygwin* | mingw* | cegcc*)
18618     case $cc_basename in
18619     cl*)
18620       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
18621       ;;
18622     *)
18623       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'
18624       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18625       ;;
18626     esac
18627     ;;
18628   *)
18629     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18630     ;;
18631   esac
18632
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18634 $as_echo "$ld_shlibs_CXX" >&6; }
18635 test "$ld_shlibs_CXX" = no && can_build_shared=no
18636
18637 with_gnu_ld_CXX=$with_gnu_ld
18638
18639
18640
18641
18642
18643
18644 #
18645 # Do we need to explicitly link libc?
18646 #
18647 case "x$archive_cmds_need_lc_CXX" in
18648 x|xyes)
18649   # Assume -lc should be added
18650   archive_cmds_need_lc_CXX=yes
18651
18652   if test "$enable_shared" = yes && test "$GCC" = yes; then
18653     case $archive_cmds_CXX in
18654     *'~'*)
18655       # FIXME: we may have to deal with multi-command sequences.
18656       ;;
18657     '$CC '*)
18658       # Test whether the compiler implicitly links with -lc since on some
18659       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18660       # to ld, don't add -lc before -lgcc.
18661       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18662 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18663 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18664   $as_echo_n "(cached) " >&6
18665 else
18666   $RM conftest*
18667         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18668
18669         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18670   (eval $ac_compile) 2>&5
18671   ac_status=$?
18672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18673   test $ac_status = 0; } 2>conftest.err; then
18674           soname=conftest
18675           lib=conftest
18676           libobjs=conftest.$ac_objext
18677           deplibs=
18678           wl=$lt_prog_compiler_wl_CXX
18679           pic_flag=$lt_prog_compiler_pic_CXX
18680           compiler_flags=-v
18681           linker_flags=-v
18682           verstring=
18683           output_objdir=.
18684           libname=conftest
18685           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18686           allow_undefined_flag_CXX=
18687           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18688   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18689   ac_status=$?
18690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18691   test $ac_status = 0; }
18692           then
18693             lt_cv_archive_cmds_need_lc_CXX=no
18694           else
18695             lt_cv_archive_cmds_need_lc_CXX=yes
18696           fi
18697           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18698         else
18699           cat conftest.err 1>&5
18700         fi
18701         $RM conftest*
18702
18703 fi
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18705 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18706       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18707       ;;
18708     esac
18709   fi
18710   ;;
18711 esac
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767
18768
18769
18770
18771
18772
18773
18774     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18775 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18776
18777 library_names_spec=
18778 libname_spec='lib$name'
18779 soname_spec=
18780 shrext_cmds=".so"
18781 postinstall_cmds=
18782 postuninstall_cmds=
18783 finish_cmds=
18784 finish_eval=
18785 shlibpath_var=
18786 shlibpath_overrides_runpath=unknown
18787 version_type=none
18788 dynamic_linker="$host_os ld.so"
18789 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18790 need_lib_prefix=unknown
18791 hardcode_into_libs=no
18792
18793 # when you set need_version to no, make sure it does not cause -set_version
18794 # flags to be left without arguments
18795 need_version=unknown
18796
18797 case $host_os in
18798 aix3*)
18799   version_type=linux # correct to gnu/linux during the next big refactor
18800   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18801   shlibpath_var=LIBPATH
18802
18803   # AIX 3 has no versioning support, so we append a major version to the name.
18804   soname_spec='${libname}${release}${shared_ext}$major'
18805   ;;
18806
18807 aix[4-9]*)
18808   version_type=linux # correct to gnu/linux during the next big refactor
18809   need_lib_prefix=no
18810   need_version=no
18811   hardcode_into_libs=yes
18812   if test "$host_cpu" = ia64; then
18813     # AIX 5 supports IA64
18814     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18815     shlibpath_var=LD_LIBRARY_PATH
18816   else
18817     # With GCC up to 2.95.x, collect2 would create an import file
18818     # for dependence libraries.  The import file would start with
18819     # the line `#! .'.  This would cause the generated library to
18820     # depend on `.', always an invalid library.  This was fixed in
18821     # development snapshots of GCC prior to 3.0.
18822     case $host_os in
18823       aix4 | aix4.[01] | aix4.[01].*)
18824       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18825            echo ' yes '
18826            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18827         :
18828       else
18829         can_build_shared=no
18830       fi
18831       ;;
18832     esac
18833     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18834     # soname into executable. Probably we can add versioning support to
18835     # collect2, so additional links can be useful in future.
18836     if test "$aix_use_runtimelinking" = yes; then
18837       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18838       # instead of lib<name>.a to let people know that these are not
18839       # typical AIX shared libraries.
18840       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841     else
18842       # We preserve .a as extension for shared libraries through AIX4.2
18843       # and later when we are not doing run time linking.
18844       library_names_spec='${libname}${release}.a $libname.a'
18845       soname_spec='${libname}${release}${shared_ext}$major'
18846     fi
18847     shlibpath_var=LIBPATH
18848   fi
18849   ;;
18850
18851 amigaos*)
18852   case $host_cpu in
18853   powerpc)
18854     # Since July 2007 AmigaOS4 officially supports .so libraries.
18855     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18856     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18857     ;;
18858   m68k)
18859     library_names_spec='$libname.ixlibrary $libname.a'
18860     # Create ${libname}_ixlibrary.a entries in /sys/libs.
18861     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'
18862     ;;
18863   esac
18864   ;;
18865
18866 beos*)
18867   library_names_spec='${libname}${shared_ext}'
18868   dynamic_linker="$host_os ld.so"
18869   shlibpath_var=LIBRARY_PATH
18870   ;;
18871
18872 bsdi[45]*)
18873   version_type=linux # correct to gnu/linux during the next big refactor
18874   need_version=no
18875   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18876   soname_spec='${libname}${release}${shared_ext}$major'
18877   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18878   shlibpath_var=LD_LIBRARY_PATH
18879   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18880   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18881   # the default ld.so.conf also contains /usr/contrib/lib and
18882   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18883   # libtool to hard-code these into programs
18884   ;;
18885
18886 cygwin* | mingw* | pw32* | cegcc*)
18887   version_type=windows
18888   shrext_cmds=".dll"
18889   need_version=no
18890   need_lib_prefix=no
18891
18892   case $GCC,$cc_basename in
18893   yes,*)
18894     # gcc
18895     library_names_spec='$libname.dll.a'
18896     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18897     postinstall_cmds='base_file=`basename \${file}`~
18898       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18899       dldir=$destdir/`dirname \$dlpath`~
18900       test -d \$dldir || mkdir -p \$dldir~
18901       $install_prog $dir/$dlname \$dldir/$dlname~
18902       chmod a+x \$dldir/$dlname~
18903       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18904         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18905       fi'
18906     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18907       dlpath=$dir/\$dldll~
18908        $RM \$dlpath'
18909     shlibpath_overrides_runpath=yes
18910
18911     case $host_os in
18912     cygwin*)
18913       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18914       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18915
18916       ;;
18917     mingw* | cegcc*)
18918       # MinGW DLLs use traditional 'lib' prefix
18919       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18920       ;;
18921     pw32*)
18922       # pw32 DLLs use 'pw' prefix rather than 'lib'
18923       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18924       ;;
18925     esac
18926     dynamic_linker='Win32 ld.exe'
18927     ;;
18928
18929   *,cl*)
18930     # Native MSVC
18931     libname_spec='$name'
18932     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18933     library_names_spec='${libname}.dll.lib'
18934
18935     case $build_os in
18936     mingw*)
18937       sys_lib_search_path_spec=
18938       lt_save_ifs=$IFS
18939       IFS=';'
18940       for lt_path in $LIB
18941       do
18942         IFS=$lt_save_ifs
18943         # Let DOS variable expansion print the short 8.3 style file name.
18944         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18945         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18946       done
18947       IFS=$lt_save_ifs
18948       # Convert to MSYS style.
18949       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18950       ;;
18951     cygwin*)
18952       # Convert to unix form, then to dos form, then back to unix form
18953       # but this time dos style (no spaces!) so that the unix form looks
18954       # like /cygdrive/c/PROGRA~1:/cygdr...
18955       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18956       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18957       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18958       ;;
18959     *)
18960       sys_lib_search_path_spec="$LIB"
18961       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18962         # It is most probably a Windows format PATH.
18963         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18964       else
18965         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18966       fi
18967       # FIXME: find the short name or the path components, as spaces are
18968       # common. (e.g. "Program Files" -> "PROGRA~1")
18969       ;;
18970     esac
18971
18972     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18973     postinstall_cmds='base_file=`basename \${file}`~
18974       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18975       dldir=$destdir/`dirname \$dlpath`~
18976       test -d \$dldir || mkdir -p \$dldir~
18977       $install_prog $dir/$dlname \$dldir/$dlname'
18978     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18979       dlpath=$dir/\$dldll~
18980        $RM \$dlpath'
18981     shlibpath_overrides_runpath=yes
18982     dynamic_linker='Win32 link.exe'
18983     ;;
18984
18985   *)
18986     # Assume MSVC wrapper
18987     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18988     dynamic_linker='Win32 ld.exe'
18989     ;;
18990   esac
18991   # FIXME: first we should search . and the directory the executable is in
18992   shlibpath_var=PATH
18993   ;;
18994
18995 darwin* | rhapsody*)
18996   dynamic_linker="$host_os dyld"
18997   version_type=darwin
18998   need_lib_prefix=no
18999   need_version=no
19000   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19001   soname_spec='${libname}${release}${major}$shared_ext'
19002   shlibpath_overrides_runpath=yes
19003   shlibpath_var=DYLD_LIBRARY_PATH
19004   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19005
19006   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19007   ;;
19008
19009 dgux*)
19010   version_type=linux # correct to gnu/linux during the next big refactor
19011   need_lib_prefix=no
19012   need_version=no
19013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19014   soname_spec='${libname}${release}${shared_ext}$major'
19015   shlibpath_var=LD_LIBRARY_PATH
19016   ;;
19017
19018 freebsd* | dragonfly*)
19019   # DragonFly does not have aout.  When/if they implement a new
19020   # versioning mechanism, adjust this.
19021   if test -x /usr/bin/objformat; then
19022     objformat=`/usr/bin/objformat`
19023   else
19024     case $host_os in
19025     freebsd[23].*) objformat=aout ;;
19026     *) objformat=elf ;;
19027     esac
19028   fi
19029   version_type=freebsd-$objformat
19030   case $version_type in
19031     freebsd-elf*)
19032       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19033       need_version=no
19034       need_lib_prefix=no
19035       ;;
19036     freebsd-*)
19037       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19038       need_version=yes
19039       ;;
19040   esac
19041   shlibpath_var=LD_LIBRARY_PATH
19042   case $host_os in
19043   freebsd2.*)
19044     shlibpath_overrides_runpath=yes
19045     ;;
19046   freebsd3.[01]* | freebsdelf3.[01]*)
19047     shlibpath_overrides_runpath=yes
19048     hardcode_into_libs=yes
19049     ;;
19050   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19051   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19052     shlibpath_overrides_runpath=no
19053     hardcode_into_libs=yes
19054     ;;
19055   *) # from 4.6 on, and DragonFly
19056     shlibpath_overrides_runpath=yes
19057     hardcode_into_libs=yes
19058     ;;
19059   esac
19060   ;;
19061
19062 gnu*)
19063   version_type=linux # correct to gnu/linux during the next big refactor
19064   need_lib_prefix=no
19065   need_version=no
19066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19067   soname_spec='${libname}${release}${shared_ext}$major'
19068   shlibpath_var=LD_LIBRARY_PATH
19069   shlibpath_overrides_runpath=no
19070   hardcode_into_libs=yes
19071   ;;
19072
19073 haiku*)
19074   version_type=linux # correct to gnu/linux during the next big refactor
19075   need_lib_prefix=no
19076   need_version=no
19077   dynamic_linker="$host_os runtime_loader"
19078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19079   soname_spec='${libname}${release}${shared_ext}$major'
19080   shlibpath_var=LIBRARY_PATH
19081   shlibpath_overrides_runpath=yes
19082   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19083   hardcode_into_libs=yes
19084   ;;
19085
19086 hpux9* | hpux10* | hpux11*)
19087   # Give a soname corresponding to the major version so that dld.sl refuses to
19088   # link against other versions.
19089   version_type=sunos
19090   need_lib_prefix=no
19091   need_version=no
19092   case $host_cpu in
19093   ia64*)
19094     shrext_cmds='.so'
19095     hardcode_into_libs=yes
19096     dynamic_linker="$host_os dld.so"
19097     shlibpath_var=LD_LIBRARY_PATH
19098     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19099     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19100     soname_spec='${libname}${release}${shared_ext}$major'
19101     if test "X$HPUX_IA64_MODE" = X32; then
19102       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19103     else
19104       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19105     fi
19106     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19107     ;;
19108   hppa*64*)
19109     shrext_cmds='.sl'
19110     hardcode_into_libs=yes
19111     dynamic_linker="$host_os dld.sl"
19112     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19113     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19114     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19115     soname_spec='${libname}${release}${shared_ext}$major'
19116     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19117     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19118     ;;
19119   *)
19120     shrext_cmds='.sl'
19121     dynamic_linker="$host_os dld.sl"
19122     shlibpath_var=SHLIB_PATH
19123     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19124     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19125     soname_spec='${libname}${release}${shared_ext}$major'
19126     ;;
19127   esac
19128   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19129   postinstall_cmds='chmod 555 $lib'
19130   # or fails outright, so override atomically:
19131   install_override_mode=555
19132   ;;
19133
19134 interix[3-9]*)
19135   version_type=linux # correct to gnu/linux during the next big refactor
19136   need_lib_prefix=no
19137   need_version=no
19138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19139   soname_spec='${libname}${release}${shared_ext}$major'
19140   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19141   shlibpath_var=LD_LIBRARY_PATH
19142   shlibpath_overrides_runpath=no
19143   hardcode_into_libs=yes
19144   ;;
19145
19146 irix5* | irix6* | nonstopux*)
19147   case $host_os in
19148     nonstopux*) version_type=nonstopux ;;
19149     *)
19150         if test "$lt_cv_prog_gnu_ld" = yes; then
19151                 version_type=linux # correct to gnu/linux during the next big refactor
19152         else
19153                 version_type=irix
19154         fi ;;
19155   esac
19156   need_lib_prefix=no
19157   need_version=no
19158   soname_spec='${libname}${release}${shared_ext}$major'
19159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19160   case $host_os in
19161   irix5* | nonstopux*)
19162     libsuff= shlibsuff=
19163     ;;
19164   *)
19165     case $LD in # libtool.m4 will add one of these switches to LD
19166     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19167       libsuff= shlibsuff= libmagic=32-bit;;
19168     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19169       libsuff=32 shlibsuff=N32 libmagic=N32;;
19170     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19171       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19172     *) libsuff= shlibsuff= libmagic=never-match;;
19173     esac
19174     ;;
19175   esac
19176   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19177   shlibpath_overrides_runpath=no
19178   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19179   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19180   hardcode_into_libs=yes
19181   ;;
19182
19183 # No shared lib support for Linux oldld, aout, or coff.
19184 linux*oldld* | linux*aout* | linux*coff*)
19185   dynamic_linker=no
19186   ;;
19187
19188 # This must be glibc/ELF.
19189 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19190   version_type=linux # correct to gnu/linux during the next big refactor
19191   need_lib_prefix=no
19192   need_version=no
19193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19194   soname_spec='${libname}${release}${shared_ext}$major'
19195   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19196   shlibpath_var=LD_LIBRARY_PATH
19197   shlibpath_overrides_runpath=no
19198
19199   # Some binutils ld are patched to set DT_RUNPATH
19200   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19201   $as_echo_n "(cached) " >&6
19202 else
19203   lt_cv_shlibpath_overrides_runpath=no
19204     save_LDFLAGS=$LDFLAGS
19205     save_libdir=$libdir
19206     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19207          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19208     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h.  */
19210
19211 int
19212 main ()
19213 {
19214
19215   ;
19216   return 0;
19217 }
19218 _ACEOF
19219 if ac_fn_cxx_try_link "$LINENO"; then :
19220   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19221   lt_cv_shlibpath_overrides_runpath=yes
19222 fi
19223 fi
19224 rm -f core conftest.err conftest.$ac_objext \
19225     conftest$ac_exeext conftest.$ac_ext
19226     LDFLAGS=$save_LDFLAGS
19227     libdir=$save_libdir
19228
19229 fi
19230
19231   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19232
19233   # This implies no fast_install, which is unacceptable.
19234   # Some rework will be needed to allow for fast_install
19235   # before this can be enabled.
19236   hardcode_into_libs=yes
19237
19238   # Add ABI-specific directories to the system library path.
19239   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19240
19241   # Append ld.so.conf contents to the search path
19242   if test -f /etc/ld.so.conf; then
19243     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' ' '`
19244     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19245
19246   fi
19247
19248   # We used to test for /lib/ld.so.1 and disable shared libraries on
19249   # powerpc, because MkLinux only supported shared libraries with the
19250   # GNU dynamic linker.  Since this was broken with cross compilers,
19251   # most powerpc-linux boxes support dynamic linking these days and
19252   # people can always --disable-shared, the test was removed, and we
19253   # assume the GNU/Linux dynamic linker is in use.
19254   dynamic_linker='GNU/Linux ld.so'
19255   ;;
19256
19257 netbsd*)
19258   version_type=sunos
19259   need_lib_prefix=no
19260   need_version=no
19261   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19263     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19264     dynamic_linker='NetBSD (a.out) ld.so'
19265   else
19266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19267     soname_spec='${libname}${release}${shared_ext}$major'
19268     dynamic_linker='NetBSD ld.elf_so'
19269   fi
19270   shlibpath_var=LD_LIBRARY_PATH
19271   shlibpath_overrides_runpath=yes
19272   hardcode_into_libs=yes
19273   ;;
19274
19275 newsos6)
19276   version_type=linux # correct to gnu/linux during the next big refactor
19277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19278   shlibpath_var=LD_LIBRARY_PATH
19279   shlibpath_overrides_runpath=yes
19280   ;;
19281
19282 *nto* | *qnx*)
19283   version_type=qnx
19284   need_lib_prefix=no
19285   need_version=no
19286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19287   soname_spec='${libname}${release}${shared_ext}$major'
19288   shlibpath_var=LD_LIBRARY_PATH
19289   shlibpath_overrides_runpath=no
19290   hardcode_into_libs=yes
19291   dynamic_linker='ldqnx.so'
19292   ;;
19293
19294 openbsd*)
19295   version_type=sunos
19296   sys_lib_dlsearch_path_spec="/usr/lib"
19297   need_lib_prefix=no
19298   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19299   case $host_os in
19300     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
19301     *)                          need_version=no  ;;
19302   esac
19303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19304   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19305   shlibpath_var=LD_LIBRARY_PATH
19306   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19307     case $host_os in
19308       openbsd2.[89] | openbsd2.[89].*)
19309         shlibpath_overrides_runpath=no
19310         ;;
19311       *)
19312         shlibpath_overrides_runpath=yes
19313         ;;
19314       esac
19315   else
19316     shlibpath_overrides_runpath=yes
19317   fi
19318   ;;
19319
19320 os2*)
19321   libname_spec='$name'
19322   shrext_cmds=".dll"
19323   need_lib_prefix=no
19324   library_names_spec='$libname${shared_ext} $libname.a'
19325   dynamic_linker='OS/2 ld.exe'
19326   shlibpath_var=LIBPATH
19327   ;;
19328
19329 osf3* | osf4* | osf5*)
19330   version_type=osf
19331   need_lib_prefix=no
19332   need_version=no
19333   soname_spec='${libname}${release}${shared_ext}$major'
19334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19335   shlibpath_var=LD_LIBRARY_PATH
19336   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19337   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19338   ;;
19339
19340 rdos*)
19341   dynamic_linker=no
19342   ;;
19343
19344 solaris*)
19345   version_type=linux # correct to gnu/linux during the next big refactor
19346   need_lib_prefix=no
19347   need_version=no
19348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19349   soname_spec='${libname}${release}${shared_ext}$major'
19350   shlibpath_var=LD_LIBRARY_PATH
19351   shlibpath_overrides_runpath=yes
19352   hardcode_into_libs=yes
19353   # ldd complains unless libraries are executable
19354   postinstall_cmds='chmod +x $lib'
19355   ;;
19356
19357 sunos4*)
19358   version_type=sunos
19359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19360   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19361   shlibpath_var=LD_LIBRARY_PATH
19362   shlibpath_overrides_runpath=yes
19363   if test "$with_gnu_ld" = yes; then
19364     need_lib_prefix=no
19365   fi
19366   need_version=yes
19367   ;;
19368
19369 sysv4 | sysv4.3*)
19370   version_type=linux # correct to gnu/linux during the next big refactor
19371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19372   soname_spec='${libname}${release}${shared_ext}$major'
19373   shlibpath_var=LD_LIBRARY_PATH
19374   case $host_vendor in
19375     sni)
19376       shlibpath_overrides_runpath=no
19377       need_lib_prefix=no
19378       runpath_var=LD_RUN_PATH
19379       ;;
19380     siemens)
19381       need_lib_prefix=no
19382       ;;
19383     motorola)
19384       need_lib_prefix=no
19385       need_version=no
19386       shlibpath_overrides_runpath=no
19387       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19388       ;;
19389   esac
19390   ;;
19391
19392 sysv4*MP*)
19393   if test -d /usr/nec ;then
19394     version_type=linux # correct to gnu/linux during the next big refactor
19395     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19396     soname_spec='$libname${shared_ext}.$major'
19397     shlibpath_var=LD_LIBRARY_PATH
19398   fi
19399   ;;
19400
19401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19402   version_type=freebsd-elf
19403   need_lib_prefix=no
19404   need_version=no
19405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19406   soname_spec='${libname}${release}${shared_ext}$major'
19407   shlibpath_var=LD_LIBRARY_PATH
19408   shlibpath_overrides_runpath=yes
19409   hardcode_into_libs=yes
19410   if test "$with_gnu_ld" = yes; then
19411     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19412   else
19413     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19414     case $host_os in
19415       sco3.2v5*)
19416         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19417         ;;
19418     esac
19419   fi
19420   sys_lib_dlsearch_path_spec='/usr/lib'
19421   ;;
19422
19423 tpf*)
19424   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
19425   version_type=linux # correct to gnu/linux during the next big refactor
19426   need_lib_prefix=no
19427   need_version=no
19428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19429   shlibpath_var=LD_LIBRARY_PATH
19430   shlibpath_overrides_runpath=no
19431   hardcode_into_libs=yes
19432   ;;
19433
19434 uts4*)
19435   version_type=linux # correct to gnu/linux during the next big refactor
19436   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19437   soname_spec='${libname}${release}${shared_ext}$major'
19438   shlibpath_var=LD_LIBRARY_PATH
19439   ;;
19440
19441 *)
19442   dynamic_linker=no
19443   ;;
19444 esac
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19446 $as_echo "$dynamic_linker" >&6; }
19447 test "$dynamic_linker" = no && can_build_shared=no
19448
19449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19450 if test "$GCC" = yes; then
19451   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19452 fi
19453
19454 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19455   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19456 fi
19457 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19458   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19459 fi
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472
19473
19474
19475
19476
19477
19478
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491
19492
19493
19494
19495
19496
19497
19498     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19499 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19500 hardcode_action_CXX=
19501 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19502    test -n "$runpath_var_CXX" ||
19503    test "X$hardcode_automatic_CXX" = "Xyes" ; then
19504
19505   # We can hardcode non-existent directories.
19506   if test "$hardcode_direct_CXX" != no &&
19507      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19508      # have to relink, otherwise we might link with an installed library
19509      # when we should be linking with a yet-to-be-installed one
19510      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19511      test "$hardcode_minus_L_CXX" != no; then
19512     # Linking always hardcodes the temporary library directory.
19513     hardcode_action_CXX=relink
19514   else
19515     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19516     hardcode_action_CXX=immediate
19517   fi
19518 else
19519   # We cannot hardcode anything, or else we can only hardcode existing
19520   # directories.
19521   hardcode_action_CXX=unsupported
19522 fi
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19524 $as_echo "$hardcode_action_CXX" >&6; }
19525
19526 if test "$hardcode_action_CXX" = relink ||
19527    test "$inherit_rpath_CXX" = yes; then
19528   # Fast installation is not supported
19529   enable_fast_install=no
19530 elif test "$shlibpath_overrides_runpath" = yes ||
19531      test "$enable_shared" = no; then
19532   # Fast installation is not necessary
19533   enable_fast_install=needless
19534 fi
19535
19536
19537
19538
19539
19540
19541
19542   fi # test -n "$compiler"
19543
19544   CC=$lt_save_CC
19545   CFLAGS=$lt_save_CFLAGS
19546   LDCXX=$LD
19547   LD=$lt_save_LD
19548   GCC=$lt_save_GCC
19549   with_gnu_ld=$lt_save_with_gnu_ld
19550   lt_cv_path_LDCXX=$lt_cv_path_LD
19551   lt_cv_path_LD=$lt_save_path_LD
19552   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19553   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19554 fi # test "$_lt_caught_CXX_error" != yes
19555
19556 ac_ext=c
19557 ac_cpp='$CPP $CPPFLAGS'
19558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576         ac_config_commands="$ac_config_commands libtool"
19577
19578
19579
19580
19581 # Only expand once:
19582
19583
19584 : ${CONFIG_LT=./config.lt}
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_LT" >&5
19586 $as_echo "$as_me: creating $CONFIG_LT" >&6;}
19587 as_write_fail=0
19588 cat >"$CONFIG_LT" <<_ASEOF || as_write_fail=1
19589 #! $SHELL
19590 # Generated by $as_me.
19591 # Run this file to recreate a libtool stub with the current configuration.
19592 SHELL=\${CONFIG_SHELL-$SHELL}
19593 export SHELL
19594 _ASEOF
19595 cat >>"$CONFIG_LT" <<\_ASEOF || as_write_fail=1
19596 ## -------------------- ##
19597 ## M4sh Initialization. ##
19598 ## -------------------- ##
19599
19600 # Be more Bourne compatible
19601 DUALCASE=1; export DUALCASE # for MKS sh
19602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19603   emulate sh
19604   NULLCMD=:
19605   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19606   # is contrary to our usage.  Disable this feature.
19607   alias -g '${1+"$@"}'='"$@"'
19608   setopt NO_GLOB_SUBST
19609 else
19610   case `(set -o) 2>/dev/null` in #(
19611   *posix*) :
19612     set -o posix ;; #(
19613   *) :
19614      ;;
19615 esac
19616 fi
19617
19618
19619 as_nl='
19620 '
19621 export as_nl
19622 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19623 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19624 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19625 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19626 # Prefer a ksh shell builtin over an external printf program on Solaris,
19627 # but without wasting forks for bash or zsh.
19628 if test -z "$BASH_VERSION$ZSH_VERSION" \
19629     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19630   as_echo='print -r --'
19631   as_echo_n='print -rn --'
19632 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19633   as_echo='printf %s\n'
19634   as_echo_n='printf %s'
19635 else
19636   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19637     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19638     as_echo_n='/usr/ucb/echo -n'
19639   else
19640     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19641     as_echo_n_body='eval
19642       arg=$1;
19643       case $arg in #(
19644       *"$as_nl"*)
19645         expr "X$arg" : "X\\(.*\\)$as_nl";
19646         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19647       esac;
19648       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19649     '
19650     export as_echo_n_body
19651     as_echo_n='sh -c $as_echo_n_body as_echo'
19652   fi
19653   export as_echo_body
19654   as_echo='sh -c $as_echo_body as_echo'
19655 fi
19656
19657 # The user is always right.
19658 if test "${PATH_SEPARATOR+set}" != set; then
19659   PATH_SEPARATOR=:
19660   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19661     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19662       PATH_SEPARATOR=';'
19663   }
19664 fi
19665
19666
19667 # IFS
19668 # We need space, tab and new line, in precisely that order.  Quoting is
19669 # there to prevent editors from complaining about space-tab.
19670 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19671 # splitting by setting IFS to empty value.)
19672 IFS=" ""        $as_nl"
19673
19674 # Find who we are.  Look in the path if we contain no directory separator.
19675 as_myself=
19676 case $0 in #((
19677   *[\\/]* ) as_myself=$0 ;;
19678   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679 for as_dir in $PATH
19680 do
19681   IFS=$as_save_IFS
19682   test -z "$as_dir" && as_dir=.
19683     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19684   done
19685 IFS=$as_save_IFS
19686
19687      ;;
19688 esac
19689 # We did not find ourselves, most probably we were run as `sh COMMAND'
19690 # in which case we are not to be found in the path.
19691 if test "x$as_myself" = x; then
19692   as_myself=$0
19693 fi
19694 if test ! -f "$as_myself"; then
19695   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19696   exit 1
19697 fi
19698
19699 # Unset variables that we do not need and which cause bugs (e.g. in
19700 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
19701 # suppresses any "Segmentation fault" message there.  '((' could
19702 # trigger a bug in pdksh 5.2.14.
19703 for as_var in BASH_ENV ENV MAIL MAILPATH
19704 do eval test x\${$as_var+set} = xset \
19705   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19706 done
19707 PS1='$ '
19708 PS2='> '
19709 PS4='+ '
19710
19711 # NLS nuisances.
19712 LC_ALL=C
19713 export LC_ALL
19714 LANGUAGE=C
19715 export LANGUAGE
19716
19717 # CDPATH.
19718 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19719
19720
19721 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19722 # ----------------------------------------
19723 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19724 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19725 # script with STATUS, using 1 if that was 0.
19726 as_fn_error ()
19727 {
19728   as_status=$1; test $as_status -eq 0 && as_status=1
19729   if test "$4"; then
19730     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19731     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19732   fi
19733   $as_echo "$as_me: error: $2" >&2
19734   as_fn_exit $as_status
19735 } # as_fn_error
19736
19737
19738 # as_fn_set_status STATUS
19739 # -----------------------
19740 # Set $? to STATUS, without forking.
19741 as_fn_set_status ()
19742 {
19743   return $1
19744 } # as_fn_set_status
19745
19746 # as_fn_exit STATUS
19747 # -----------------
19748 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19749 as_fn_exit ()
19750 {
19751   set +e
19752   as_fn_set_status $1
19753   exit $1
19754 } # as_fn_exit
19755
19756 # as_fn_unset VAR
19757 # ---------------
19758 # Portably unset VAR.
19759 as_fn_unset ()
19760 {
19761   { eval $1=; unset $1;}
19762 }
19763 as_unset=as_fn_unset
19764 # as_fn_append VAR VALUE
19765 # ----------------------
19766 # Append the text in VALUE to the end of the definition contained in VAR. Take
19767 # advantage of any shell optimizations that allow amortized linear growth over
19768 # repeated appends, instead of the typical quadratic growth present in naive
19769 # implementations.
19770 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19771   eval 'as_fn_append ()
19772   {
19773     eval $1+=\$2
19774   }'
19775 else
19776   as_fn_append ()
19777   {
19778     eval $1=\$$1\$2
19779   }
19780 fi # as_fn_append
19781
19782 # as_fn_arith ARG...
19783 # ------------------
19784 # Perform arithmetic evaluation on the ARGs, and store the result in the
19785 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19786 # must be portable across $(()) and expr.
19787 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19788   eval 'as_fn_arith ()
19789   {
19790     as_val=$(( $* ))
19791   }'
19792 else
19793   as_fn_arith ()
19794   {
19795     as_val=`expr "$@" || test $? -eq 1`
19796   }
19797 fi # as_fn_arith
19798
19799
19800 if expr a : '\(a\)' >/dev/null 2>&1 &&
19801    test "X`expr 00001 : '.*\(...\)'`" = X001; then
19802   as_expr=expr
19803 else
19804   as_expr=false
19805 fi
19806
19807 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19808   as_basename=basename
19809 else
19810   as_basename=false
19811 fi
19812
19813 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19814   as_dirname=dirname
19815 else
19816   as_dirname=false
19817 fi
19818
19819 as_me=`$as_basename -- "$0" ||
19820 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19821          X"$0" : 'X\(//\)$' \| \
19822          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19823 $as_echo X/"$0" |
19824     sed '/^.*\/\([^/][^/]*\)\/*$/{
19825             s//\1/
19826             q
19827           }
19828           /^X\/\(\/\/\)$/{
19829             s//\1/
19830             q
19831           }
19832           /^X\/\(\/\).*/{
19833             s//\1/
19834             q
19835           }
19836           s/.*/./; q'`
19837
19838 # Avoid depending upon Character Ranges.
19839 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19840 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19841 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19842 as_cr_digits='0123456789'
19843 as_cr_alnum=$as_cr_Letters$as_cr_digits
19844
19845 ECHO_C= ECHO_N= ECHO_T=
19846 case `echo -n x` in #(((((
19847 -n*)
19848   case `echo 'xy\c'` in
19849   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
19850   xy)  ECHO_C='\c';;
19851   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
19852        ECHO_T=' ';;
19853   esac;;
19854 *)
19855   ECHO_N='-n';;
19856 esac
19857
19858 rm -f conf$$ conf$$.exe conf$$.file
19859 if test -d conf$$.dir; then
19860   rm -f conf$$.dir/conf$$.file
19861 else
19862   rm -f conf$$.dir
19863   mkdir conf$$.dir 2>/dev/null
19864 fi
19865 if (echo >conf$$.file) 2>/dev/null; then
19866   if ln -s conf$$.file conf$$ 2>/dev/null; then
19867     as_ln_s='ln -s'
19868     # ... but there are two gotchas:
19869     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19870     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19871     # In both cases, we have to default to `cp -p'.
19872     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19873       as_ln_s='cp -p'
19874   elif ln conf$$.file conf$$ 2>/dev/null; then
19875     as_ln_s=ln
19876   else
19877     as_ln_s='cp -p'
19878   fi
19879 else
19880   as_ln_s='cp -p'
19881 fi
19882 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19883 rmdir conf$$.dir 2>/dev/null
19884
19885
19886 # as_fn_mkdir_p
19887 # -------------
19888 # Create "$as_dir" as a directory, including parents if necessary.
19889 as_fn_mkdir_p ()
19890 {
19891
19892   case $as_dir in #(
19893   -*) as_dir=./$as_dir;;
19894   esac
19895   test -d "$as_dir" || eval $as_mkdir_p || {
19896     as_dirs=
19897     while :; do
19898       case $as_dir in #(
19899       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19900       *) as_qdir=$as_dir;;
19901       esac
19902       as_dirs="'$as_qdir' $as_dirs"
19903       as_dir=`$as_dirname -- "$as_dir" ||
19904 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19905          X"$as_dir" : 'X\(//\)[^/]' \| \
19906          X"$as_dir" : 'X\(//\)$' \| \
19907          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19908 $as_echo X"$as_dir" |
19909     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19910             s//\1/
19911             q
19912           }
19913           /^X\(\/\/\)[^/].*/{
19914             s//\1/
19915             q
19916           }
19917           /^X\(\/\/\)$/{
19918             s//\1/
19919             q
19920           }
19921           /^X\(\/\).*/{
19922             s//\1/
19923             q
19924           }
19925           s/.*/./; q'`
19926       test -d "$as_dir" && break
19927     done
19928     test -z "$as_dirs" || eval "mkdir $as_dirs"
19929   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19930
19931
19932 } # as_fn_mkdir_p
19933 if mkdir -p . 2>/dev/null; then
19934   as_mkdir_p='mkdir -p "$as_dir"'
19935 else
19936   test -d ./-p && rmdir ./-p
19937   as_mkdir_p=false
19938 fi
19939
19940 if test -x / >/dev/null 2>&1; then
19941   as_test_x='test -x'
19942 else
19943   if ls -dL / >/dev/null 2>&1; then
19944     as_ls_L_option=L
19945   else
19946     as_ls_L_option=
19947   fi
19948   as_test_x='
19949     eval sh -c '\''
19950       if test -d "$1"; then
19951         test -d "$1/.";
19952       else
19953         case $1 in #(
19954         -*)set "./$1";;
19955         esac;
19956         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
19957         ???[sx]*):;;*)false;;esac;fi
19958     '\'' sh
19959   '
19960 fi
19961 as_executable_p=$as_test_x
19962
19963 # Sed expression to map a string onto a valid CPP name.
19964 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19965
19966 # Sed expression to map a string onto a valid variable name.
19967 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19968
19969
19970 exec 6>&1
19971 ## --------------------------------- ##
19972 ## Main body of "$CONFIG_LT" script. ##
19973 ## --------------------------------- ##
19974 _ASEOF
19975 test $as_write_fail = 0 && chmod +x "$CONFIG_LT"
19976
19977 cat >>"$CONFIG_LT" <<\_LTEOF
19978 lt_cl_silent=false
19979 exec 5>>config.log
19980 {
19981   echo
19982   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19983 ## Running $as_me. ##
19984 _ASBOX
19985 } >&5
19986
19987 lt_cl_help="\
19988 \`$as_me' creates a local libtool stub from the current configuration,
19989 for use in further configure time tests before the real libtool is
19990 generated.
19991
19992 Usage: $0 [OPTIONS]
19993
19994   -h, --help      print this help, then exit
19995   -V, --version   print version number, then exit
19996   -q, --quiet     do not print progress messages
19997   -d, --debug     don't remove temporary files
19998
19999 Report bugs to <bug-libtool@gnu.org>."
20000
20001 lt_cl_version="\
20002 glib config.lt 2.31.20
20003 configured by $0, generated by GNU Autoconf 2.68.
20004
20005 Copyright (C) 2011 Free Software Foundation, Inc.
20006 This config.lt script is free software; the Free Software Foundation
20007 gives unlimited permision to copy, distribute and modify it."
20008
20009 while test $# != 0
20010 do
20011   case $1 in
20012     --version | --v* | -V )
20013       echo "$lt_cl_version"; exit 0 ;;
20014     --help | --h* | -h )
20015       echo "$lt_cl_help"; exit 0 ;;
20016     --debug | --d* | -d )
20017       debug=: ;;
20018     --quiet | --q* | --silent | --s* | -q )
20019       lt_cl_silent=: ;;
20020
20021     -*) as_fn_error $? "unrecognized option: $1
20022 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20023
20024     *) as_fn_error $? "unrecognized argument: $1
20025 Try \`$0 --help' for more information." "$LINENO" 5 ;;
20026   esac
20027   shift
20028 done
20029
20030 if $lt_cl_silent; then
20031   exec 6>/dev/null
20032 fi
20033 _LTEOF
20034
20035 cat >>"$CONFIG_LT" <<_LTEOF
20036
20037
20038 # The HP-UX ksh and POSIX shell print the target directory to stdout
20039 # if CDPATH is set.
20040 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20041
20042 sed_quote_subst='$sed_quote_subst'
20043 double_quote_subst='$double_quote_subst'
20044 delay_variable_subst='$delay_variable_subst'
20045 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20046 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20047 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20048 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20049 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20050 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20051 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20052 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20053 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20054 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20055 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20056 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20057 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20058 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20059 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20060 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20061 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20062 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20063 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20064 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20065 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20066 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20067 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20068 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20069 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20070 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20071 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20072 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20073 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20074 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20075 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20076 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20077 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20078 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20079 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20080 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20081 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20082 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20083 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20084 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20085 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20086 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20087 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20088 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20089 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20090 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20091 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20092 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20093 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20094 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20095 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20096 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20097 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20098 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20099 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20100 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20101 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20102 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"`'
20103 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20104 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20105 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20106 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20107 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20108 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20109 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20110 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20111 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20112 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20113 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20114 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20115 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20116 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20117 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20118 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20119 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20120 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20121 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20122 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20123 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20124 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20125 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20126 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20127 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20128 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20129 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20130 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20131 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20132 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20133 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20134 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20135 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20136 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20137 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20138 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20139 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20140 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20141 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20142 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20143 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20144 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20145 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20146 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20147 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20148 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20149 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20150 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20151 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20152 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20153 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20154 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20155 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20156 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20157 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20158 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20159 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20160 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20161 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20162 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20163 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20164 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20165 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20166 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20167 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20168 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20169 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20170 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20171 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20172 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20173 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20174 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20175 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20176 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20177 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20178 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20179 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20180 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20181 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20182 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20183 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20184 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20185 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20186 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20187 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20188 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20189 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20190 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20191 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20192 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20193 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20194 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20195 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20196 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20197 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20198 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20199 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20200 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20201 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20202 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20203 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20204 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20205 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20206 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20207 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20208 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20209 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20210 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20211 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20212 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20213 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20214 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20215 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20216 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20217 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20218 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20219 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20220 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20221 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20222 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20223 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20224 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20225 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20226 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20227 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20228 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20229 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20230
20231 LTCC='$LTCC'
20232 LTCFLAGS='$LTCFLAGS'
20233 compiler='$compiler_DEFAULT'
20234
20235 # A function that is used when there is no print builtin or printf.
20236 func_fallback_echo ()
20237 {
20238   eval 'cat <<_LTECHO_EOF
20239 \$1
20240 _LTECHO_EOF'
20241 }
20242
20243 # Quote evaled strings.
20244 for var in AS \
20245 DLLTOOL \
20246 OBJDUMP \
20247 SHELL \
20248 ECHO \
20249 PATH_SEPARATOR \
20250 SED \
20251 GREP \
20252 EGREP \
20253 FGREP \
20254 LD \
20255 NM \
20256 LN_S \
20257 lt_SP2NL \
20258 lt_NL2SP \
20259 reload_flag \
20260 deplibs_check_method \
20261 file_magic_cmd \
20262 file_magic_glob \
20263 want_nocaseglob \
20264 sharedlib_from_linklib_cmd \
20265 AR \
20266 AR_FLAGS \
20267 archiver_list_spec \
20268 STRIP \
20269 RANLIB \
20270 CC \
20271 CFLAGS \
20272 compiler \
20273 lt_cv_sys_global_symbol_pipe \
20274 lt_cv_sys_global_symbol_to_cdecl \
20275 lt_cv_sys_global_symbol_to_c_name_address \
20276 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20277 nm_file_list_spec \
20278 lt_prog_compiler_no_builtin_flag \
20279 lt_prog_compiler_pic \
20280 lt_prog_compiler_wl \
20281 lt_prog_compiler_static \
20282 lt_cv_prog_compiler_c_o \
20283 need_locks \
20284 MANIFEST_TOOL \
20285 DSYMUTIL \
20286 NMEDIT \
20287 LIPO \
20288 OTOOL \
20289 OTOOL64 \
20290 shrext_cmds \
20291 export_dynamic_flag_spec \
20292 whole_archive_flag_spec \
20293 compiler_needs_object \
20294 with_gnu_ld \
20295 allow_undefined_flag \
20296 no_undefined_flag \
20297 hardcode_libdir_flag_spec \
20298 hardcode_libdir_separator \
20299 exclude_expsyms \
20300 include_expsyms \
20301 file_list_spec \
20302 variables_saved_for_relink \
20303 libname_spec \
20304 library_names_spec \
20305 soname_spec \
20306 install_override_mode \
20307 finish_eval \
20308 old_striplib \
20309 striplib \
20310 compiler_lib_search_dirs \
20311 predep_objects \
20312 postdep_objects \
20313 predeps \
20314 postdeps \
20315 compiler_lib_search_path \
20316 LD_CXX \
20317 reload_flag_CXX \
20318 compiler_CXX \
20319 lt_prog_compiler_no_builtin_flag_CXX \
20320 lt_prog_compiler_pic_CXX \
20321 lt_prog_compiler_wl_CXX \
20322 lt_prog_compiler_static_CXX \
20323 lt_cv_prog_compiler_c_o_CXX \
20324 export_dynamic_flag_spec_CXX \
20325 whole_archive_flag_spec_CXX \
20326 compiler_needs_object_CXX \
20327 with_gnu_ld_CXX \
20328 allow_undefined_flag_CXX \
20329 no_undefined_flag_CXX \
20330 hardcode_libdir_flag_spec_CXX \
20331 hardcode_libdir_separator_CXX \
20332 exclude_expsyms_CXX \
20333 include_expsyms_CXX \
20334 file_list_spec_CXX \
20335 compiler_lib_search_dirs_CXX \
20336 predep_objects_CXX \
20337 postdep_objects_CXX \
20338 predeps_CXX \
20339 postdeps_CXX \
20340 compiler_lib_search_path_CXX; do
20341     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20342     *[\\\\\\\`\\"\\\$]*)
20343       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20344       ;;
20345     *)
20346       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20347       ;;
20348     esac
20349 done
20350
20351 # Double-quote double-evaled strings.
20352 for var in reload_cmds \
20353 old_postinstall_cmds \
20354 old_postuninstall_cmds \
20355 old_archive_cmds \
20356 extract_expsyms_cmds \
20357 old_archive_from_new_cmds \
20358 old_archive_from_expsyms_cmds \
20359 archive_cmds \
20360 archive_expsym_cmds \
20361 module_cmds \
20362 module_expsym_cmds \
20363 export_symbols_cmds \
20364 prelink_cmds \
20365 postlink_cmds \
20366 postinstall_cmds \
20367 postuninstall_cmds \
20368 finish_cmds \
20369 sys_lib_search_path_spec \
20370 sys_lib_dlsearch_path_spec \
20371 reload_cmds_CXX \
20372 old_archive_cmds_CXX \
20373 old_archive_from_new_cmds_CXX \
20374 old_archive_from_expsyms_cmds_CXX \
20375 archive_cmds_CXX \
20376 archive_expsym_cmds_CXX \
20377 module_cmds_CXX \
20378 module_expsym_cmds_CXX \
20379 export_symbols_cmds_CXX \
20380 prelink_cmds_CXX \
20381 postlink_cmds_CXX; do
20382     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20383     *[\\\\\\\`\\"\\\$]*)
20384       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20385       ;;
20386     *)
20387       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20388       ;;
20389     esac
20390 done
20391
20392 ac_aux_dir='$ac_aux_dir'
20393 xsi_shell='$xsi_shell'
20394 lt_shell_append='$lt_shell_append'
20395
20396 # See if we are running on zsh, and set the options which allow our
20397 # commands through without removal of \ escapes INIT.
20398 if test -n "\${ZSH_VERSION+set}" ; then
20399    setopt NO_GLOB_SUBST
20400 fi
20401
20402
20403     PACKAGE='$PACKAGE'
20404     VERSION='$VERSION'
20405     TIMESTAMP='$TIMESTAMP'
20406     RM='$RM'
20407     ofile='$ofile'
20408
20409
20410
20411
20412
20413 _LTEOF
20414
20415 cat >>"$CONFIG_LT" <<\_LTEOF
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
20417 $as_echo "$as_me: creating $ofile" >&6;}
20418
20419
20420     # See if we are running on zsh, and set the options which allow our
20421     # commands through without removal of \ escapes.
20422     if test -n "${ZSH_VERSION+set}" ; then
20423       setopt NO_GLOB_SUBST
20424     fi
20425
20426     cfgfile="${ofile}T"
20427     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
20428     $RM "$cfgfile"
20429
20430     cat <<_LT_EOF >> "$cfgfile"
20431 #! $SHELL
20432
20433 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
20434 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
20435 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20436 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
20437 #
20438 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
20439 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
20440 #                 Foundation, Inc.
20441 #   Written by Gordon Matzigkeit, 1996
20442 #
20443 #   This file is part of GNU Libtool.
20444 #
20445 # GNU Libtool is free software; you can redistribute it and/or
20446 # modify it under the terms of the GNU General Public License as
20447 # published by the Free Software Foundation; either version 2 of
20448 # the License, or (at your option) any later version.
20449 #
20450 # As a special exception to the GNU General Public License,
20451 # if you distribute this file as part of a program or library that
20452 # is built using GNU Libtool, you may include this file under the
20453 # same distribution terms that you use for the rest of that program.
20454 #
20455 # GNU Libtool is distributed in the hope that it will be useful,
20456 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20457 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20458 # GNU General Public License for more details.
20459 #
20460 # You should have received a copy of the GNU General Public License
20461 # along with GNU Libtool; see the file COPYING.  If not, a copy
20462 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
20463 # obtained by writing to the Free Software Foundation, Inc.,
20464 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20465
20466
20467 # The names of the tagged configurations supported by this script.
20468 available_tags="CXX "
20469
20470 # ### BEGIN LIBTOOL CONFIG
20471
20472 # Which release of libtool.m4 was used?
20473 macro_version=$macro_version
20474 macro_revision=$macro_revision
20475
20476 # Whether or not to build static libraries.
20477 build_old_libs=$enable_static
20478
20479 # Assembler program.
20480 AS=$lt_AS
20481
20482 # DLL creation program.
20483 DLLTOOL=$lt_DLLTOOL
20484
20485 # Object dumper program.
20486 OBJDUMP=$lt_OBJDUMP
20487
20488 # Whether or not to build shared libraries.
20489 build_libtool_libs=$enable_shared
20490
20491 # What type of objects to build.
20492 pic_mode=$pic_mode
20493
20494 # Whether or not to optimize for fast installation.
20495 fast_install=$enable_fast_install
20496
20497 # Shell to use when invoking shell scripts.
20498 SHELL=$lt_SHELL
20499
20500 # An echo program that protects backslashes.
20501 ECHO=$lt_ECHO
20502
20503 # The PATH separator for the build system.
20504 PATH_SEPARATOR=$lt_PATH_SEPARATOR
20505
20506 # The host system.
20507 host_alias=$host_alias
20508 host=$host
20509 host_os=$host_os
20510
20511 # The build system.
20512 build_alias=$build_alias
20513 build=$build
20514 build_os=$build_os
20515
20516 # A sed program that does not truncate output.
20517 SED=$lt_SED
20518
20519 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
20520 Xsed="\$SED -e 1s/^X//"
20521
20522 # A grep program that handles long lines.
20523 GREP=$lt_GREP
20524
20525 # An ERE matcher.
20526 EGREP=$lt_EGREP
20527
20528 # A literal string matcher.
20529 FGREP=$lt_FGREP
20530
20531 # A BSD- or MS-compatible name lister.
20532 NM=$lt_NM
20533
20534 # Whether we need soft or hard links.
20535 LN_S=$lt_LN_S
20536
20537 # What is the maximum length of a command?
20538 max_cmd_len=$max_cmd_len
20539
20540 # Object file suffix (normally "o").
20541 objext=$ac_objext
20542
20543 # Executable file suffix (normally "").
20544 exeext=$exeext
20545
20546 # whether the shell understands "unset".
20547 lt_unset=$lt_unset
20548
20549 # turn spaces into newlines.
20550 SP2NL=$lt_lt_SP2NL
20551
20552 # turn newlines into spaces.
20553 NL2SP=$lt_lt_NL2SP
20554
20555 # convert \$build file names to \$host format.
20556 to_host_file_cmd=$lt_cv_to_host_file_cmd
20557
20558 # convert \$build files to toolchain format.
20559 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
20560
20561 # Method to check whether dependent libraries are shared objects.
20562 deplibs_check_method=$lt_deplibs_check_method
20563
20564 # Command to use when deplibs_check_method = "file_magic".
20565 file_magic_cmd=$lt_file_magic_cmd
20566
20567 # How to find potential files when deplibs_check_method = "file_magic".
20568 file_magic_glob=$lt_file_magic_glob
20569
20570 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
20571 want_nocaseglob=$lt_want_nocaseglob
20572
20573 # Command to associate shared and link libraries.
20574 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
20575
20576 # The archiver.
20577 AR=$lt_AR
20578
20579 # Flags to create an archive.
20580 AR_FLAGS=$lt_AR_FLAGS
20581
20582 # How to feed a file listing to the archiver.
20583 archiver_list_spec=$lt_archiver_list_spec
20584
20585 # A symbol stripping program.
20586 STRIP=$lt_STRIP
20587
20588 # Commands used to install an old-style archive.
20589 RANLIB=$lt_RANLIB
20590 old_postinstall_cmds=$lt_old_postinstall_cmds
20591 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20592
20593 # Whether to use a lock for old archive extraction.
20594 lock_old_archive_extraction=$lock_old_archive_extraction
20595
20596 # A C compiler.
20597 LTCC=$lt_CC
20598
20599 # LTCC compiler flags.
20600 LTCFLAGS=$lt_CFLAGS
20601
20602 # Take the output of nm and produce a listing of raw symbols and C names.
20603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20604
20605 # Transform the output of nm in a proper C declaration.
20606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20607
20608 # Transform the output of nm in a C name address pair.
20609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20610
20611 # Transform the output of nm in a C name address pair when lib prefix is needed.
20612 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20613
20614 # Specify filename containing input files for \$NM.
20615 nm_file_list_spec=$lt_nm_file_list_spec
20616
20617 # The root where to search for dependent libraries,and in which our libraries should be installed.
20618 lt_sysroot=$lt_sysroot
20619
20620 # The name of the directory that contains temporary libtool files.
20621 objdir=$objdir
20622
20623 # Used to examine libraries when file_magic_cmd begins with "file".
20624 MAGIC_CMD=$MAGIC_CMD
20625
20626 # Must we lock files when doing compilation?
20627 need_locks=$lt_need_locks
20628
20629 # Manifest tool.
20630 MANIFEST_TOOL=$lt_MANIFEST_TOOL
20631
20632 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20633 DSYMUTIL=$lt_DSYMUTIL
20634
20635 # Tool to change global to local symbols on Mac OS X.
20636 NMEDIT=$lt_NMEDIT
20637
20638 # Tool to manipulate fat objects and archives on Mac OS X.
20639 LIPO=$lt_LIPO
20640
20641 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
20642 OTOOL=$lt_OTOOL
20643
20644 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20645 OTOOL64=$lt_OTOOL64
20646
20647 # Old archive suffix (normally "a").
20648 libext=$libext
20649
20650 # Shared library suffix (normally ".so").
20651 shrext_cmds=$lt_shrext_cmds
20652
20653 # The commands to extract the exported symbol list from a shared archive.
20654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20655
20656 # Variables whose values should be saved in libtool wrapper scripts and
20657 # restored at link time.
20658 variables_saved_for_relink=$lt_variables_saved_for_relink
20659
20660 # Do we need the "lib" prefix for modules?
20661 need_lib_prefix=$need_lib_prefix
20662
20663 # Do we need a version for libraries?
20664 need_version=$need_version
20665
20666 # Library versioning type.
20667 version_type=$version_type
20668
20669 # Shared library runtime path variable.
20670 runpath_var=$runpath_var
20671
20672 # Shared library path variable.
20673 shlibpath_var=$shlibpath_var
20674
20675 # Is shlibpath searched before the hard-coded library search path?
20676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20677
20678 # Format of library name prefix.
20679 libname_spec=$lt_libname_spec
20680
20681 # List of archive names.  First name is the real one, the rest are links.
20682 # The last name is the one that the linker finds with -lNAME
20683 library_names_spec=$lt_library_names_spec
20684
20685 # The coded name of the library, if different from the real name.
20686 soname_spec=$lt_soname_spec
20687
20688 # Permission mode override for installation of shared libraries.
20689 install_override_mode=$lt_install_override_mode
20690
20691 # Command to use after installation of a shared archive.
20692 postinstall_cmds=$lt_postinstall_cmds
20693
20694 # Command to use after uninstallation of a shared archive.
20695 postuninstall_cmds=$lt_postuninstall_cmds
20696
20697 # Commands used to finish a libtool library installation in a directory.
20698 finish_cmds=$lt_finish_cmds
20699
20700 # As "finish_cmds", except a single script fragment to be evaled but
20701 # not shown.
20702 finish_eval=$lt_finish_eval
20703
20704 # Whether we should hardcode library paths into libraries.
20705 hardcode_into_libs=$hardcode_into_libs
20706
20707 # Compile-time system search path for libraries.
20708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20709
20710 # Run-time system search path for libraries.
20711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20712
20713 # Whether dlopen is supported.
20714 dlopen_support=$enable_dlopen
20715
20716 # Whether dlopen of programs is supported.
20717 dlopen_self=$enable_dlopen_self
20718
20719 # Whether dlopen of statically linked programs is supported.
20720 dlopen_self_static=$enable_dlopen_self_static
20721
20722 # Commands to strip libraries.
20723 old_striplib=$lt_old_striplib
20724 striplib=$lt_striplib
20725
20726
20727 # The linker used to build libraries.
20728 LD=$lt_LD
20729
20730 # How to create reloadable object files.
20731 reload_flag=$lt_reload_flag
20732 reload_cmds=$lt_reload_cmds
20733
20734 # Commands used to build an old-style archive.
20735 old_archive_cmds=$lt_old_archive_cmds
20736
20737 # A language specific compiler.
20738 CC=$lt_compiler
20739
20740 # Is the compiler the GNU compiler?
20741 with_gcc=$GCC
20742
20743 # Compiler flag to turn off builtin functions.
20744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20745
20746 # Additional compiler flags for building library objects.
20747 pic_flag=$lt_lt_prog_compiler_pic
20748
20749 # How to pass a linker flag through the compiler.
20750 wl=$lt_lt_prog_compiler_wl
20751
20752 # Compiler flag to prevent dynamic linking.
20753 link_static_flag=$lt_lt_prog_compiler_static
20754
20755 # Does compiler simultaneously support -c and -o options?
20756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20757
20758 # Whether or not to add -lc for building shared libraries.
20759 build_libtool_need_lc=$archive_cmds_need_lc
20760
20761 # Whether or not to disallow shared libs when runtime libs are static.
20762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20763
20764 # Compiler flag to allow reflexive dlopens.
20765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20766
20767 # Compiler flag to generate shared objects directly from archives.
20768 whole_archive_flag_spec=$lt_whole_archive_flag_spec
20769
20770 # Whether the compiler copes with passing no objects directly.
20771 compiler_needs_object=$lt_compiler_needs_object
20772
20773 # Create an old-style archive from a shared archive.
20774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20775
20776 # Create a temporary old-style archive to link instead of a shared archive.
20777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20778
20779 # Commands used to build a shared archive.
20780 archive_cmds=$lt_archive_cmds
20781 archive_expsym_cmds=$lt_archive_expsym_cmds
20782
20783 # Commands used to build a loadable module if different from building
20784 # a shared archive.
20785 module_cmds=$lt_module_cmds
20786 module_expsym_cmds=$lt_module_expsym_cmds
20787
20788 # Whether we are building with GNU ld or not.
20789 with_gnu_ld=$lt_with_gnu_ld
20790
20791 # Flag that allows shared libraries with undefined symbols to be built.
20792 allow_undefined_flag=$lt_allow_undefined_flag
20793
20794 # Flag that enforces no undefined symbols.
20795 no_undefined_flag=$lt_no_undefined_flag
20796
20797 # Flag to hardcode \$libdir into a binary during linking.
20798 # This must work even if \$libdir does not exist
20799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20800
20801 # Whether we need a single "-rpath" flag with a separated argument.
20802 hardcode_libdir_separator=$lt_hardcode_libdir_separator
20803
20804 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20805 # DIR into the resulting binary.
20806 hardcode_direct=$hardcode_direct
20807
20808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20809 # DIR into the resulting binary and the resulting library dependency is
20810 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20811 # library is relocated.
20812 hardcode_direct_absolute=$hardcode_direct_absolute
20813
20814 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20815 # into the resulting binary.
20816 hardcode_minus_L=$hardcode_minus_L
20817
20818 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20819 # into the resulting binary.
20820 hardcode_shlibpath_var=$hardcode_shlibpath_var
20821
20822 # Set to "yes" if building a shared library automatically hardcodes DIR
20823 # into the library and all subsequent libraries and executables linked
20824 # against it.
20825 hardcode_automatic=$hardcode_automatic
20826
20827 # Set to yes if linker adds runtime paths of dependent libraries
20828 # to runtime path list.
20829 inherit_rpath=$inherit_rpath
20830
20831 # Whether libtool must link a program against all its dependency libraries.
20832 link_all_deplibs=$link_all_deplibs
20833
20834 # Set to "yes" if exported symbols are required.
20835 always_export_symbols=$always_export_symbols
20836
20837 # The commands to list exported symbols.
20838 export_symbols_cmds=$lt_export_symbols_cmds
20839
20840 # Symbols that should not be listed in the preloaded symbols.
20841 exclude_expsyms=$lt_exclude_expsyms
20842
20843 # Symbols that must always be exported.
20844 include_expsyms=$lt_include_expsyms
20845
20846 # Commands necessary for linking programs (against libraries) with templates.
20847 prelink_cmds=$lt_prelink_cmds
20848
20849 # Commands necessary for finishing linking programs.
20850 postlink_cmds=$lt_postlink_cmds
20851
20852 # Specify filename containing input files.
20853 file_list_spec=$lt_file_list_spec
20854
20855 # How to hardcode a shared library path into an executable.
20856 hardcode_action=$hardcode_action
20857
20858 # The directories searched by this compiler when creating a shared library.
20859 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
20860
20861 # Dependencies to place before and after the objects being linked to
20862 # create a shared library.
20863 predep_objects=$lt_predep_objects
20864 postdep_objects=$lt_postdep_objects
20865 predeps=$lt_predeps
20866 postdeps=$lt_postdeps
20867
20868 # The library search path used internally by the compiler when linking
20869 # a shared library.
20870 compiler_lib_search_path=$lt_compiler_lib_search_path
20871
20872 # ### END LIBTOOL CONFIG
20873
20874 _LT_EOF
20875
20876   case $host_os in
20877   aix3*)
20878     cat <<\_LT_EOF >> "$cfgfile"
20879 # AIX sometimes has problems with the GCC collect2 program.  For some
20880 # reason, if we set the COLLECT_NAMES environment variable, the problems
20881 # vanish in a puff of smoke.
20882 if test "X${COLLECT_NAMES+set}" != Xset; then
20883   COLLECT_NAMES=
20884   export COLLECT_NAMES
20885 fi
20886 _LT_EOF
20887     ;;
20888   esac
20889
20890
20891 ltmain="$ac_aux_dir/ltmain.sh"
20892
20893
20894   # We use sed instead of cat because bash on DJGPP gets confused if
20895   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20896   # text mode, it properly converts lines to CR/LF.  This bash problem
20897   # is reportedly fixed, but why not run on old versions too?
20898   sed '$q' "$ltmain" >> "$cfgfile" \
20899      || (rm -f "$cfgfile"; exit 1)
20900
20901   if test x"$xsi_shell" = xyes; then
20902   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20903 func_dirname ()\
20904 {\
20905 \    case ${1} in\
20906 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20907 \      *  ) func_dirname_result="${3}" ;;\
20908 \    esac\
20909 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20910   && mv -f "$cfgfile.tmp" "$cfgfile" \
20911     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20912 test 0 -eq $? || _lt_function_replace_fail=:
20913
20914
20915   sed -e '/^func_basename ()$/,/^} # func_basename /c\
20916 func_basename ()\
20917 {\
20918 \    func_basename_result="${1##*/}"\
20919 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20920   && mv -f "$cfgfile.tmp" "$cfgfile" \
20921     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20922 test 0 -eq $? || _lt_function_replace_fail=:
20923
20924
20925   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20926 func_dirname_and_basename ()\
20927 {\
20928 \    case ${1} in\
20929 \      */*) func_dirname_result="${1%/*}${2}" ;;\
20930 \      *  ) func_dirname_result="${3}" ;;\
20931 \    esac\
20932 \    func_basename_result="${1##*/}"\
20933 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20934   && mv -f "$cfgfile.tmp" "$cfgfile" \
20935     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20936 test 0 -eq $? || _lt_function_replace_fail=:
20937
20938
20939   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20940 func_stripname ()\
20941 {\
20942 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20943 \    # positional parameters, so assign one to ordinary parameter first.\
20944 \    func_stripname_result=${3}\
20945 \    func_stripname_result=${func_stripname_result#"${1}"}\
20946 \    func_stripname_result=${func_stripname_result%"${2}"}\
20947 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20948   && mv -f "$cfgfile.tmp" "$cfgfile" \
20949     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20950 test 0 -eq $? || _lt_function_replace_fail=:
20951
20952
20953   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20954 func_split_long_opt ()\
20955 {\
20956 \    func_split_long_opt_name=${1%%=*}\
20957 \    func_split_long_opt_arg=${1#*=}\
20958 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20959   && mv -f "$cfgfile.tmp" "$cfgfile" \
20960     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20961 test 0 -eq $? || _lt_function_replace_fail=:
20962
20963
20964   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20965 func_split_short_opt ()\
20966 {\
20967 \    func_split_short_opt_arg=${1#??}\
20968 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20969 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20970   && mv -f "$cfgfile.tmp" "$cfgfile" \
20971     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20972 test 0 -eq $? || _lt_function_replace_fail=:
20973
20974
20975   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20976 func_lo2o ()\
20977 {\
20978 \    case ${1} in\
20979 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20980 \      *)    func_lo2o_result=${1} ;;\
20981 \    esac\
20982 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20983   && mv -f "$cfgfile.tmp" "$cfgfile" \
20984     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20985 test 0 -eq $? || _lt_function_replace_fail=:
20986
20987
20988   sed -e '/^func_xform ()$/,/^} # func_xform /c\
20989 func_xform ()\
20990 {\
20991     func_xform_result=${1%.*}.lo\
20992 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20993   && mv -f "$cfgfile.tmp" "$cfgfile" \
20994     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20995 test 0 -eq $? || _lt_function_replace_fail=:
20996
20997
20998   sed -e '/^func_arith ()$/,/^} # func_arith /c\
20999 func_arith ()\
21000 {\
21001     func_arith_result=$(( $* ))\
21002 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21003   && mv -f "$cfgfile.tmp" "$cfgfile" \
21004     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21005 test 0 -eq $? || _lt_function_replace_fail=:
21006
21007
21008   sed -e '/^func_len ()$/,/^} # func_len /c\
21009 func_len ()\
21010 {\
21011     func_len_result=${#1}\
21012 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21013   && mv -f "$cfgfile.tmp" "$cfgfile" \
21014     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21015 test 0 -eq $? || _lt_function_replace_fail=:
21016
21017 fi
21018
21019 if test x"$lt_shell_append" = xyes; then
21020   sed -e '/^func_append ()$/,/^} # func_append /c\
21021 func_append ()\
21022 {\
21023     eval "${1}+=\\${2}"\
21024 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21025   && mv -f "$cfgfile.tmp" "$cfgfile" \
21026     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21027 test 0 -eq $? || _lt_function_replace_fail=:
21028
21029
21030   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21031 func_append_quoted ()\
21032 {\
21033 \    func_quote_for_eval "${2}"\
21034 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21035 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21036   && mv -f "$cfgfile.tmp" "$cfgfile" \
21037     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21038 test 0 -eq $? || _lt_function_replace_fail=:
21039
21040
21041   # Save a `func_append' function call where possible by direct use of '+='
21042   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21043     && mv -f "$cfgfile.tmp" "$cfgfile" \
21044       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21045   test 0 -eq $? || _lt_function_replace_fail=:
21046 else
21047   # Save a `func_append' function call even when '+=' is not available
21048   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21049     && mv -f "$cfgfile.tmp" "$cfgfile" \
21050       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21051   test 0 -eq $? || _lt_function_replace_fail=:
21052 fi
21053
21054 if test x"$_lt_function_replace_fail" = x":"; then
21055   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21056 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21057 fi
21058
21059
21060    mv -f "$cfgfile" "$ofile" ||
21061     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21062   chmod +x "$ofile"
21063
21064
21065     cat <<_LT_EOF >> "$ofile"
21066
21067 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21068
21069 # The linker used to build libraries.
21070 LD=$lt_LD_CXX
21071
21072 # How to create reloadable object files.
21073 reload_flag=$lt_reload_flag_CXX
21074 reload_cmds=$lt_reload_cmds_CXX
21075
21076 # Commands used to build an old-style archive.
21077 old_archive_cmds=$lt_old_archive_cmds_CXX
21078
21079 # A language specific compiler.
21080 CC=$lt_compiler_CXX
21081
21082 # Is the compiler the GNU compiler?
21083 with_gcc=$GCC_CXX
21084
21085 # Compiler flag to turn off builtin functions.
21086 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21087
21088 # Additional compiler flags for building library objects.
21089 pic_flag=$lt_lt_prog_compiler_pic_CXX
21090
21091 # How to pass a linker flag through the compiler.
21092 wl=$lt_lt_prog_compiler_wl_CXX
21093
21094 # Compiler flag to prevent dynamic linking.
21095 link_static_flag=$lt_lt_prog_compiler_static_CXX
21096
21097 # Does compiler simultaneously support -c and -o options?
21098 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21099
21100 # Whether or not to add -lc for building shared libraries.
21101 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21102
21103 # Whether or not to disallow shared libs when runtime libs are static.
21104 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21105
21106 # Compiler flag to allow reflexive dlopens.
21107 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21108
21109 # Compiler flag to generate shared objects directly from archives.
21110 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21111
21112 # Whether the compiler copes with passing no objects directly.
21113 compiler_needs_object=$lt_compiler_needs_object_CXX
21114
21115 # Create an old-style archive from a shared archive.
21116 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21117
21118 # Create a temporary old-style archive to link instead of a shared archive.
21119 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21120
21121 # Commands used to build a shared archive.
21122 archive_cmds=$lt_archive_cmds_CXX
21123 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21124
21125 # Commands used to build a loadable module if different from building
21126 # a shared archive.
21127 module_cmds=$lt_module_cmds_CXX
21128 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21129
21130 # Whether we are building with GNU ld or not.
21131 with_gnu_ld=$lt_with_gnu_ld_CXX
21132
21133 # Flag that allows shared libraries with undefined symbols to be built.
21134 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21135
21136 # Flag that enforces no undefined symbols.
21137 no_undefined_flag=$lt_no_undefined_flag_CXX
21138
21139 # Flag to hardcode \$libdir into a binary during linking.
21140 # This must work even if \$libdir does not exist
21141 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21142
21143 # Whether we need a single "-rpath" flag with a separated argument.
21144 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21145
21146 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21147 # DIR into the resulting binary.
21148 hardcode_direct=$hardcode_direct_CXX
21149
21150 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21151 # DIR into the resulting binary and the resulting library dependency is
21152 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21153 # library is relocated.
21154 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21155
21156 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21157 # into the resulting binary.
21158 hardcode_minus_L=$hardcode_minus_L_CXX
21159
21160 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21161 # into the resulting binary.
21162 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21163
21164 # Set to "yes" if building a shared library automatically hardcodes DIR
21165 # into the library and all subsequent libraries and executables linked
21166 # against it.
21167 hardcode_automatic=$hardcode_automatic_CXX
21168
21169 # Set to yes if linker adds runtime paths of dependent libraries
21170 # to runtime path list.
21171 inherit_rpath=$inherit_rpath_CXX
21172
21173 # Whether libtool must link a program against all its dependency libraries.
21174 link_all_deplibs=$link_all_deplibs_CXX
21175
21176 # Set to "yes" if exported symbols are required.
21177 always_export_symbols=$always_export_symbols_CXX
21178
21179 # The commands to list exported symbols.
21180 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21181
21182 # Symbols that should not be listed in the preloaded symbols.
21183 exclude_expsyms=$lt_exclude_expsyms_CXX
21184
21185 # Symbols that must always be exported.
21186 include_expsyms=$lt_include_expsyms_CXX
21187
21188 # Commands necessary for linking programs (against libraries) with templates.
21189 prelink_cmds=$lt_prelink_cmds_CXX
21190
21191 # Commands necessary for finishing linking programs.
21192 postlink_cmds=$lt_postlink_cmds_CXX
21193
21194 # Specify filename containing input files.
21195 file_list_spec=$lt_file_list_spec_CXX
21196
21197 # How to hardcode a shared library path into an executable.
21198 hardcode_action=$hardcode_action_CXX
21199
21200 # The directories searched by this compiler when creating a shared library.
21201 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21202
21203 # Dependencies to place before and after the objects being linked to
21204 # create a shared library.
21205 predep_objects=$lt_predep_objects_CXX
21206 postdep_objects=$lt_postdep_objects_CXX
21207 predeps=$lt_predeps_CXX
21208 postdeps=$lt_postdeps_CXX
21209
21210 # The library search path used internally by the compiler when linking
21211 # a shared library.
21212 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21213
21214 # ### END LIBTOOL TAG CONFIG: CXX
21215 _LT_EOF
21216
21217
21218 as_fn_exit 0
21219 _LTEOF
21220 chmod +x "$CONFIG_LT"
21221
21222 # configure is writing to config.log, but config.lt does its own redirection,
21223 # appending to config.log, which fails on DOS, as config.log is still kept
21224 # open by configure.  Here we exec the FD to /dev/null, effectively closing
21225 # config.log, so it can be properly (re)opened and appended to by config.lt.
21226 lt_cl_success=:
21227 test "$silent" = yes &&
21228   lt_config_lt_args="$lt_config_lt_args --quiet"
21229 exec 5>/dev/null
21230 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
21231 exec 5>>config.log
21232 $lt_cl_success || as_fn_exit 1
21233
21234
21235
21236 if test "x$GCC" = "xyes"; then
21237   case " $CFLAGS " in
21238   *[\ \ ]-Wall[\ \      ]*) ;;
21239   *) CFLAGS="$CFLAGS -Wall" ;;
21240   esac
21241 fi
21242
21243 if test "$glib_native_win32" = "yes"; then
21244   if test x$enable_static = xyes -a x$enable_shared = xyes; then
21245     as_fn_error $? "Can not build both shared and static at the same time on Windows." "$LINENO" 5
21246   fi
21247   if test x$enable_static = xyes; then
21248     glib_win32_static_compilation=yes
21249     GLIB_WIN32_STATIC_COMPILATION_DEFINE="#define GLIB_STATIC_COMPILATION 1
21250 #define GOBJECT_STATIC_COMPILATION 1"
21251
21252   fi
21253 fi
21254  if test x$glib_native_win32 = xyes -a x$glib_win32_static_compilation != xyes; then
21255   OS_WIN32_AND_DLL_COMPILATION_TRUE=
21256   OS_WIN32_AND_DLL_COMPILATION_FALSE='#'
21257 else
21258   OS_WIN32_AND_DLL_COMPILATION_TRUE='#'
21259   OS_WIN32_AND_DLL_COMPILATION_FALSE=
21260 fi
21261
21262
21263 if test $cross_compiling != yes ; then
21264     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags to get ANSI library prototypes" >&5
21265 $as_echo_n "checking for extra flags to get ANSI library prototypes... " >&6; }
21266     glib_save_LIBS=$LIBS
21267     LIBS="$LIBS -lm"
21268     if test "$cross_compiling" = yes; then :
21269   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21271 as_fn_error $? "cannot run test program while cross compiling
21272 See \`config.log' for more details" "$LINENO" 5; }
21273 else
21274   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21275 /* end confdefs.h.  */
21276 #include <math.h>
21277                  int main (void) { return (log(1) != log(1.)); }
21278 _ACEOF
21279 if ac_fn_c_try_run "$LINENO"; then :
21280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21281 $as_echo "none needed" >&6; }
21282 else
21283   glib_save_CFLAGS=$CFLAGS
21284          CFLAGS="$CFLAGS -std1"
21285          if test "$cross_compiling" = yes; then :
21286   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21288 as_fn_error $? "cannot run test program while cross compiling
21289 See \`config.log' for more details" "$LINENO" 5; }
21290 else
21291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21292 /* end confdefs.h.  */
21293 #include <math.h>
21294                      int main (void) { return (log(1) != log(1.)); }
21295 _ACEOF
21296 if ac_fn_c_try_run "$LINENO"; then :
21297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -std1" >&5
21298 $as_echo "-std1" >&6; }
21299 else
21300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21301 $as_echo "" >&6; }
21302              CFLAGS=$glib_save_CFLAGS
21303              { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&5
21304 $as_echo "$as_me: WARNING: No ANSI prototypes found in library. (-std1 didn't work.)" >&2;}
21305
21306 fi
21307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21308   conftest.$ac_objext conftest.beam conftest.$ac_ext
21309 fi
21310
21311
21312 fi
21313 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21314   conftest.$ac_objext conftest.beam conftest.$ac_ext
21315 fi
21316
21317     LIBS=$glib_save_LIBS
21318 fi
21319
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra flags for POSIX compliance" >&5
21321 $as_echo_n "checking for extra flags for POSIX compliance... " >&6; }
21322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21323 /* end confdefs.h.  */
21324 #include <dirent.h>
21325 int
21326 main ()
21327 {
21328 DIR *dir;
21329   ;
21330   return 0;
21331 }
21332 _ACEOF
21333 if ac_fn_c_try_compile "$LINENO"; then :
21334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21335 $as_echo "none needed" >&6; }
21336 else
21337   glib_save_CFLAGS=$CFLAGS
21338   CFLAGS="$CFLAGS -posix"
21339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21340 /* end confdefs.h.  */
21341 #include <dirent.h>
21342 int
21343 main ()
21344 {
21345 DIR *dir;
21346   ;
21347   return 0;
21348 }
21349 _ACEOF
21350 if ac_fn_c_try_compile "$LINENO"; then :
21351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: -posix" >&5
21352 $as_echo "-posix" >&6; }
21353 else
21354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
21355 $as_echo "" >&6; }
21356     CFLAGS=$glib_save_CFLAGS
21357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&5
21358 $as_echo "$as_me: WARNING: Could not determine POSIX flag. (-posix didn't work.)" >&2;}
21359 fi
21360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 fi
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363
21364 # Checks for library functions.
21365 for ac_func in vprintf
21366 do :
21367   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21368 if test "x$ac_cv_func_vprintf" = xyes; then :
21369   cat >>confdefs.h <<_ACEOF
21370 #define HAVE_VPRINTF 1
21371 _ACEOF
21372
21373 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21374 if test "x$ac_cv_func__doprnt" = xyes; then :
21375
21376 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21377
21378 fi
21379
21380 fi
21381 done
21382
21383
21384 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21385 if test "x$ac_cv_type_size_t" = xyes; then :
21386
21387 else
21388
21389 cat >>confdefs.h <<_ACEOF
21390 #define size_t unsigned int
21391 _ACEOF
21392
21393 fi
21394
21395 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21396 # for constant arguments.  Useless!
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
21398 $as_echo_n "checking for working alloca.h... " >&6; }
21399 if ${ac_cv_working_alloca_h+:} false; then :
21400   $as_echo_n "(cached) " >&6
21401 else
21402   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21403 /* end confdefs.h.  */
21404 #include <alloca.h>
21405 int
21406 main ()
21407 {
21408 char *p = (char *) alloca (2 * sizeof (int));
21409                           if (p) return 0;
21410   ;
21411   return 0;
21412 }
21413 _ACEOF
21414 if ac_fn_c_try_link "$LINENO"; then :
21415   ac_cv_working_alloca_h=yes
21416 else
21417   ac_cv_working_alloca_h=no
21418 fi
21419 rm -f core conftest.err conftest.$ac_objext \
21420     conftest$ac_exeext conftest.$ac_ext
21421 fi
21422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
21423 $as_echo "$ac_cv_working_alloca_h" >&6; }
21424 if test $ac_cv_working_alloca_h = yes; then
21425
21426 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
21427
21428 fi
21429
21430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
21431 $as_echo_n "checking for alloca... " >&6; }
21432 if ${ac_cv_func_alloca_works+:} false; then :
21433   $as_echo_n "(cached) " >&6
21434 else
21435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h.  */
21437 #ifdef __GNUC__
21438 # define alloca __builtin_alloca
21439 #else
21440 # ifdef _MSC_VER
21441 #  include <malloc.h>
21442 #  define alloca _alloca
21443 # else
21444 #  ifdef HAVE_ALLOCA_H
21445 #   include <alloca.h>
21446 #  else
21447 #   ifdef _AIX
21448  #pragma alloca
21449 #   else
21450 #    ifndef alloca /* predefined by HP cc +Olibcalls */
21451 void *alloca (size_t);
21452 #    endif
21453 #   endif
21454 #  endif
21455 # endif
21456 #endif
21457
21458 int
21459 main ()
21460 {
21461 char *p = (char *) alloca (1);
21462                                     if (p) return 0;
21463   ;
21464   return 0;
21465 }
21466 _ACEOF
21467 if ac_fn_c_try_link "$LINENO"; then :
21468   ac_cv_func_alloca_works=yes
21469 else
21470   ac_cv_func_alloca_works=no
21471 fi
21472 rm -f core conftest.err conftest.$ac_objext \
21473     conftest$ac_exeext conftest.$ac_ext
21474 fi
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
21476 $as_echo "$ac_cv_func_alloca_works" >&6; }
21477
21478 if test $ac_cv_func_alloca_works = yes; then
21479
21480 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
21481
21482 else
21483   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21484 # that cause trouble.  Some versions do not even contain alloca or
21485 # contain a buggy version.  If you still want to use their alloca,
21486 # use ar to extract alloca.o from them instead of compiling alloca.c.
21487
21488 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
21489
21490 $as_echo "#define C_ALLOCA 1" >>confdefs.h
21491
21492
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
21494 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
21495 if ${ac_cv_os_cray+:} false; then :
21496   $as_echo_n "(cached) " >&6
21497 else
21498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21499 /* end confdefs.h.  */
21500 #if defined CRAY && ! defined CRAY2
21501 webecray
21502 #else
21503 wenotbecray
21504 #endif
21505
21506 _ACEOF
21507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21508   $EGREP "webecray" >/dev/null 2>&1; then :
21509   ac_cv_os_cray=yes
21510 else
21511   ac_cv_os_cray=no
21512 fi
21513 rm -f conftest*
21514
21515 fi
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
21517 $as_echo "$ac_cv_os_cray" >&6; }
21518 if test $ac_cv_os_cray = yes; then
21519   for ac_func in _getb67 GETB67 getb67; do
21520     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21521 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21522 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21523
21524 cat >>confdefs.h <<_ACEOF
21525 #define CRAY_STACKSEG_END $ac_func
21526 _ACEOF
21527
21528     break
21529 fi
21530
21531   done
21532 fi
21533
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
21535 $as_echo_n "checking stack direction for C alloca... " >&6; }
21536 if ${ac_cv_c_stack_direction+:} false; then :
21537   $as_echo_n "(cached) " >&6
21538 else
21539   if test "$cross_compiling" = yes; then :
21540   ac_cv_c_stack_direction=0
21541 else
21542   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h.  */
21544 $ac_includes_default
21545 int
21546 find_stack_direction ()
21547 {
21548   static char *addr = 0;
21549   auto char dummy;
21550   if (addr == 0)
21551     {
21552       addr = &dummy;
21553       return find_stack_direction ();
21554     }
21555   else
21556     return (&dummy > addr) ? 1 : -1;
21557 }
21558
21559 int
21560 main ()
21561 {
21562   return find_stack_direction () < 0;
21563 }
21564 _ACEOF
21565 if ac_fn_c_try_run "$LINENO"; then :
21566   ac_cv_c_stack_direction=1
21567 else
21568   ac_cv_c_stack_direction=-1
21569 fi
21570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21571   conftest.$ac_objext conftest.beam conftest.$ac_ext
21572 fi
21573
21574 fi
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
21576 $as_echo "$ac_cv_c_stack_direction" >&6; }
21577 cat >>confdefs.h <<_ACEOF
21578 #define STACK_DIRECTION $ac_cv_c_stack_direction
21579 _ACEOF
21580
21581
21582 fi
21583
21584 for ac_func in mmap posix_memalign memalign valloc fsync pipe2
21585 do :
21586   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21587 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21588 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21589   cat >>confdefs.h <<_ACEOF
21590 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21591 _ACEOF
21592
21593 fi
21594 done
21595
21596 for ac_func in atexit on_exit timegm gmtime_r
21597 do :
21598   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21599 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21600 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21601   cat >>confdefs.h <<_ACEOF
21602 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21603 _ACEOF
21604
21605 fi
21606 done
21607
21608
21609 ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
21610 if test "x$ac_cv_func_qsort_r" = xyes; then :
21611
21612 fi
21613
21614
21615 # BSD has a qsort_r with wrong argument order
21616 if test x$ac_cv_func_qsort_r = xyes ; then
21617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if qsort_r uses glibc compatible argument order" >&5
21618 $as_echo_n "checking if qsort_r uses glibc compatible argument order... " >&6; }
21619 if ${glib_cv_have_qsort_r+:} false; then :
21620   $as_echo_n "(cached) " >&6
21621 else
21622
21623   if test "$cross_compiling" = yes; then :
21624   glib_cv_have_qsort_r=no
21625 else
21626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h.  */
21628
21629   #define _GNU_SOURCE
21630   #include <stdlib.h>
21631
21632   static int
21633   cmp (const void *a, const void *b, void *c)
21634   {
21635     const int *ia = a;
21636     const int *ib = b;
21637
21638     if (*ia < *ib)
21639       return -1;
21640     else if (*ia > *ib)
21641       return 1;
21642     else
21643       return 0;
21644   }
21645
21646   int
21647   main (int argc, char **argv)
21648   {
21649     int arr[3] = { 1, 2, 0 };
21650     int d = 3;
21651
21652     qsort_r (arr, 3, sizeof (int), cmp, &d);
21653
21654     if (arr[0] == 0 && arr[1] == 1 && arr[2] == 2)
21655       return 0;
21656     else
21657       return 1;
21658   }
21659 _ACEOF
21660 if ac_fn_c_try_run "$LINENO"; then :
21661   glib_cv_have_qsort_r=yes
21662 else
21663   glib_cv_have_qsort_r=no
21664 fi
21665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21666   conftest.$ac_objext conftest.beam conftest.$ac_ext
21667 fi
21668
21669 fi
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_qsort_r" >&5
21671 $as_echo "$glib_cv_have_qsort_r" >&6; }
21672 fi
21673
21674 if test x$glib_cv_have_qsort_r = xyes ; then
21675
21676 $as_echo "#define HAVE_QSORT_R 1" >>confdefs.h
21677
21678 fi
21679
21680 # The cast to long int works around a bug in the HP C Compiler
21681 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21682 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21683 # This bug is HP SR number 8606223364.
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
21685 $as_echo_n "checking size of char... " >&6; }
21686 if ${ac_cv_sizeof_char+:} false; then :
21687   $as_echo_n "(cached) " >&6
21688 else
21689   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
21690
21691 else
21692   if test "$ac_cv_type_char" = yes; then
21693      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21694 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21695 as_fn_error 77 "cannot compute sizeof (char)
21696 See \`config.log' for more details" "$LINENO" 5; }
21697    else
21698      ac_cv_sizeof_char=0
21699    fi
21700 fi
21701
21702 fi
21703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
21704 $as_echo "$ac_cv_sizeof_char" >&6; }
21705
21706
21707
21708 cat >>confdefs.h <<_ACEOF
21709 #define SIZEOF_CHAR $ac_cv_sizeof_char
21710 _ACEOF
21711
21712
21713 # The cast to long int works around a bug in the HP C Compiler
21714 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21715 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21716 # This bug is HP SR number 8606223364.
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
21718 $as_echo_n "checking size of short... " >&6; }
21719 if ${ac_cv_sizeof_short+:} false; then :
21720   $as_echo_n "(cached) " >&6
21721 else
21722   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
21723
21724 else
21725   if test "$ac_cv_type_short" = yes; then
21726      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21728 as_fn_error 77 "cannot compute sizeof (short)
21729 See \`config.log' for more details" "$LINENO" 5; }
21730    else
21731      ac_cv_sizeof_short=0
21732    fi
21733 fi
21734
21735 fi
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
21737 $as_echo "$ac_cv_sizeof_short" >&6; }
21738
21739
21740
21741 cat >>confdefs.h <<_ACEOF
21742 #define SIZEOF_SHORT $ac_cv_sizeof_short
21743 _ACEOF
21744
21745
21746 # The cast to long int works around a bug in the HP C Compiler
21747 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21748 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21749 # This bug is HP SR number 8606223364.
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
21751 $as_echo_n "checking size of long... " >&6; }
21752 if ${ac_cv_sizeof_long+:} false; then :
21753   $as_echo_n "(cached) " >&6
21754 else
21755   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
21756
21757 else
21758   if test "$ac_cv_type_long" = yes; then
21759      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21761 as_fn_error 77 "cannot compute sizeof (long)
21762 See \`config.log' for more details" "$LINENO" 5; }
21763    else
21764      ac_cv_sizeof_long=0
21765    fi
21766 fi
21767
21768 fi
21769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
21770 $as_echo "$ac_cv_sizeof_long" >&6; }
21771
21772
21773
21774 cat >>confdefs.h <<_ACEOF
21775 #define SIZEOF_LONG $ac_cv_sizeof_long
21776 _ACEOF
21777
21778
21779 # The cast to long int works around a bug in the HP C Compiler
21780 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21781 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21782 # This bug is HP SR number 8606223364.
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
21784 $as_echo_n "checking size of int... " >&6; }
21785 if ${ac_cv_sizeof_int+:} false; then :
21786   $as_echo_n "(cached) " >&6
21787 else
21788   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
21789
21790 else
21791   if test "$ac_cv_type_int" = yes; then
21792      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21793 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21794 as_fn_error 77 "cannot compute sizeof (int)
21795 See \`config.log' for more details" "$LINENO" 5; }
21796    else
21797      ac_cv_sizeof_int=0
21798    fi
21799 fi
21800
21801 fi
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
21803 $as_echo "$ac_cv_sizeof_int" >&6; }
21804
21805
21806
21807 cat >>confdefs.h <<_ACEOF
21808 #define SIZEOF_INT $ac_cv_sizeof_int
21809 _ACEOF
21810
21811
21812 # The cast to long int works around a bug in the HP C Compiler
21813 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21814 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21815 # This bug is HP SR number 8606223364.
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
21817 $as_echo_n "checking size of void *... " >&6; }
21818 if ${ac_cv_sizeof_void_p+:} false; then :
21819   $as_echo_n "(cached) " >&6
21820 else
21821   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
21822
21823 else
21824   if test "$ac_cv_type_void_p" = yes; then
21825      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21827 as_fn_error 77 "cannot compute sizeof (void *)
21828 See \`config.log' for more details" "$LINENO" 5; }
21829    else
21830      ac_cv_sizeof_void_p=0
21831    fi
21832 fi
21833
21834 fi
21835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
21836 $as_echo "$ac_cv_sizeof_void_p" >&6; }
21837
21838
21839
21840 cat >>confdefs.h <<_ACEOF
21841 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21842 _ACEOF
21843
21844
21845 # The cast to long int works around a bug in the HP C Compiler
21846 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21847 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21848 # This bug is HP SR number 8606223364.
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
21850 $as_echo_n "checking size of long long... " >&6; }
21851 if ${ac_cv_sizeof_long_long+:} false; then :
21852   $as_echo_n "(cached) " >&6
21853 else
21854   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long"        "$ac_includes_default"; then :
21855
21856 else
21857   if test "$ac_cv_type_long_long" = yes; then
21858      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21860 as_fn_error 77 "cannot compute sizeof (long long)
21861 See \`config.log' for more details" "$LINENO" 5; }
21862    else
21863      ac_cv_sizeof_long_long=0
21864    fi
21865 fi
21866
21867 fi
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
21869 $as_echo "$ac_cv_sizeof_long_long" >&6; }
21870
21871
21872
21873 cat >>confdefs.h <<_ACEOF
21874 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
21875 _ACEOF
21876
21877
21878 # The cast to long int works around a bug in the HP C Compiler
21879 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21880 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21881 # This bug is HP SR number 8606223364.
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of __int64" >&5
21883 $as_echo_n "checking size of __int64... " >&6; }
21884 if ${ac_cv_sizeof___int64+:} false; then :
21885   $as_echo_n "(cached) " >&6
21886 else
21887   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (__int64))" "ac_cv_sizeof___int64"        "$ac_includes_default"; then :
21888
21889 else
21890   if test "$ac_cv_type___int64" = yes; then
21891      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21892 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21893 as_fn_error 77 "cannot compute sizeof (__int64)
21894 See \`config.log' for more details" "$LINENO" 5; }
21895    else
21896      ac_cv_sizeof___int64=0
21897    fi
21898 fi
21899
21900 fi
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof___int64" >&5
21902 $as_echo "$ac_cv_sizeof___int64" >&6; }
21903
21904
21905
21906 cat >>confdefs.h <<_ACEOF
21907 #define SIZEOF___INT64 $ac_cv_sizeof___int64
21908 _ACEOF
21909
21910
21911
21912 if test x$ac_cv_sizeof_long = x8 || test x$ac_cv_sizeof_long_long = x8 || test x$ac_cv_sizeof___int64 = x8 ; then
21913   :
21914 else
21915   as_fn_error $? "
21916 *** GLib requires a 64 bit type. You might want to consider
21917 *** using the GNU C compiler.
21918 " "$LINENO" 5
21919 fi
21920
21921 if test x$glib_native_win32 != xyes && test x$ac_cv_sizeof_long_long = x8; then
21922         # long long is a 64 bit integer.
21923         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21924 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21925         if ${glib_cv_long_long_format+:} false; then :
21926   $as_echo_n "(cached) " >&6
21927 else
21928
21929                 for format in ll q I64; do
21930                   if test "$cross_compiling" = yes; then :
21931   :
21932 else
21933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h.  */
21935 #include <stdio.h>
21936                         int main()
21937                         {
21938                           long long b, a = -0x3AFAFAFAFAFAFAFALL;
21939                           char buffer[1000];
21940                           sprintf (buffer, "%${format}u", a);
21941                           sscanf (buffer, "%${format}u", &b);
21942                           exit (b!=a);
21943                         }
21944
21945 _ACEOF
21946 if ac_fn_c_try_run "$LINENO"; then :
21947   glib_cv_long_long_format=${format}
21948                         break
21949 fi
21950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21951   conftest.$ac_objext conftest.beam conftest.$ac_ext
21952 fi
21953
21954                 done
21955 fi
21956
21957         if test -n "$glib_cv_long_long_format"; then
21958           { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21959 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21960
21961 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21962
21963           if test x"$glib_cv_long_long_format" = xI64; then
21964
21965 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21966
21967           fi
21968         else
21969           { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
21970 $as_echo "none" >&6; }
21971         fi
21972 elif test x$ac_cv_sizeof___int64 = x8; then
21973         # __int64 is a 64 bit integer.
21974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for format to printf and scanf a guint64" >&5
21975 $as_echo_n "checking for format to printf and scanf a guint64... " >&6; }
21976         # We know this is MSVCRT.DLL, and what the formats are
21977         glib_cv_long_long_format=I64
21978         { $as_echo "$as_me:${as_lineno-$LINENO}: result: %${glib_cv_long_long_format}u" >&5
21979 $as_echo "%${glib_cv_long_long_format}u" >&6; }
21980
21981 $as_echo "#define HAVE_LONG_LONG_FORMAT 1" >>confdefs.h
21982
21983
21984 $as_echo "#define HAVE_INT64_AND_I64 1" >>confdefs.h
21985
21986 fi
21987
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21989 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21990 if ${ac_cv_c_const+:} false; then :
21991   $as_echo_n "(cached) " >&6
21992 else
21993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21994 /* end confdefs.h.  */
21995
21996 int
21997 main ()
21998 {
21999 /* FIXME: Include the comments suggested by Paul. */
22000 #ifndef __cplusplus
22001   /* Ultrix mips cc rejects this.  */
22002   typedef int charset[2];
22003   const charset cs;
22004   /* SunOS 4.1.1 cc rejects this.  */
22005   char const *const *pcpcc;
22006   char **ppc;
22007   /* NEC SVR4.0.2 mips cc rejects this.  */
22008   struct point {int x, y;};
22009   static struct point const zero = {0,0};
22010   /* AIX XL C 1.02.0.0 rejects this.
22011      It does not let you subtract one const X* pointer from another in
22012      an arm of an if-expression whose if-part is not a constant
22013      expression */
22014   const char *g = "string";
22015   pcpcc = &g + (g ? g-g : 0);
22016   /* HPUX 7.0 cc rejects these. */
22017   ++pcpcc;
22018   ppc = (char**) pcpcc;
22019   pcpcc = (char const *const *) ppc;
22020   { /* SCO 3.2v4 cc rejects this.  */
22021     char *t;
22022     char const *s = 0 ? (char *) 0 : (char const *) 0;
22023
22024     *t++ = 0;
22025     if (s) return 0;
22026   }
22027   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
22028     int x[] = {25, 17};
22029     const int *foo = &x[0];
22030     ++foo;
22031   }
22032   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22033     typedef const int *iptr;
22034     iptr p = 0;
22035     ++p;
22036   }
22037   { /* AIX XL C 1.02.0.0 rejects this saying
22038        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22039     struct s { int j; const int *ap[3]; };
22040     struct s *b; b->j = 5;
22041   }
22042   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22043     const int foo = 10;
22044     if (!foo) return 0;
22045   }
22046   return !cs[0] && !zero.x;
22047 #endif
22048
22049   ;
22050   return 0;
22051 }
22052 _ACEOF
22053 if ac_fn_c_try_compile "$LINENO"; then :
22054   ac_cv_c_const=yes
22055 else
22056   ac_cv_c_const=no
22057 fi
22058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22059 fi
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22061 $as_echo "$ac_cv_c_const" >&6; }
22062 if test $ac_cv_c_const = no; then
22063
22064 $as_echo "#define const /**/" >>confdefs.h
22065
22066 fi
22067
22068
22069 SANE_MALLOC_PROTOS=no
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc() and friends prototypes are gmem.h compatible" >&5
22071 $as_echo_n "checking if malloc() and friends prototypes are gmem.h compatible... " >&6; }
22072 glib_save_CFLAGS=$CFLAGS
22073 if test "x$GCC" = "xyes"; then
22074   CFLAGS="$CFLAGS -Werror"
22075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22076 /* end confdefs.h.  */
22077 #include <stdlib.h>
22078 int
22079 main ()
22080 {
22081
22082     void* (*my_calloc_p)  (size_t, size_t) = calloc;
22083     void* (*my_malloc_p)  (size_t)         = malloc;
22084     void  (*my_free_p)    (void*)          = free;
22085     void* (*my_realloc_p) (void*, size_t)  = realloc;
22086     my_calloc_p = 0;
22087     my_malloc_p = 0;
22088     my_free_p = 0;
22089     my_realloc_p = 0;
22090
22091   ;
22092   return 0;
22093 }
22094 _ACEOF
22095 if ac_fn_c_try_compile "$LINENO"; then :
22096
22097 $as_echo "#define SANE_MALLOC_PROTOS 1" >>confdefs.h
22098
22099     SANE_MALLOC_PROTOS=yes
22100 fi
22101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22102 fi
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SANE_MALLOC_PROTOS" >&5
22104 $as_echo "$SANE_MALLOC_PROTOS" >&6; }
22105 CFLAGS=$glib_save_CFLAGS
22106
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for growing stack pointer" >&5
22108 $as_echo_n "checking for growing stack pointer... " >&6; }
22109 if ${glib_cv_stack_grows+:} false; then :
22110   $as_echo_n "(cached) " >&6
22111 else
22112
22113         if test "$cross_compiling" = yes; then :
22114   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22116 as_fn_error $? "cannot run test program while cross compiling
22117 See \`config.log' for more details" "$LINENO" 5; }
22118 else
22119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22120 /* end confdefs.h.  */
22121
22122         volatile int *a = 0, *b = 0;
22123         void foo (void);
22124         int main () { volatile int y = 7; a = &y; foo (); return b > a; }
22125         void foo (void) { volatile int x = 5; b = &x; }
22126
22127 _ACEOF
22128 if ac_fn_c_try_run "$LINENO"; then :
22129   glib_cv_stack_grows=no
22130
22131 else
22132   glib_cv_stack_grows=yes
22133
22134 fi
22135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22136   conftest.$ac_objext conftest.beam conftest.$ac_ext
22137 fi
22138
22139
22140 fi
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_stack_grows" >&5
22142 $as_echo "$glib_cv_stack_grows" >&6; }
22143
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline" >&5
22145 $as_echo_n "checking for __inline... " >&6; }
22146 if ${glib_cv_has__inline+:} false; then :
22147   $as_echo_n "(cached) " >&6
22148 else
22149
22150         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h.  */
22152
22153         __inline int foo () { return 0; }
22154         int main () { return foo (); }
22155
22156 _ACEOF
22157 if ac_fn_c_try_compile "$LINENO"; then :
22158   glib_cv_has__inline=yes
22159
22160 else
22161   glib_cv_has__inline=no
22162
22163 fi
22164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165
22166 fi
22167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline" >&5
22168 $as_echo "$glib_cv_has__inline" >&6; }
22169 case x$glib_cv_has__inline in
22170 xyes)
22171 $as_echo "#define G_HAVE___INLINE 1" >>confdefs.h
22172
22173 esac
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __inline__" >&5
22175 $as_echo_n "checking for __inline__... " >&6; }
22176 if ${glib_cv_has__inline__+:} false; then :
22177   $as_echo_n "(cached) " >&6
22178 else
22179
22180         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h.  */
22182
22183         __inline__ int foo () { return 0; }
22184         int main () { return foo (); }
22185
22186 _ACEOF
22187 if ac_fn_c_try_compile "$LINENO"; then :
22188   glib_cv_has__inline__=yes
22189
22190 else
22191   glib_cv_has__inline__=no
22192
22193 fi
22194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22195
22196 fi
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_has__inline__" >&5
22198 $as_echo "$glib_cv_has__inline__" >&6; }
22199 case x$glib_cv_has__inline__ in
22200 xyes)
22201 $as_echo "#define G_HAVE___INLINE__ 1" >>confdefs.h
22202
22203 esac
22204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22205 $as_echo_n "checking for inline... " >&6; }
22206 if ${glib_cv_hasinline+:} false; then :
22207   $as_echo_n "(cached) " >&6
22208 else
22209
22210         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h.  */
22212
22213         #undef inline
22214         inline int foo () { return 0; }
22215         int main () { return foo (); }
22216
22217 _ACEOF
22218 if ac_fn_c_try_compile "$LINENO"; then :
22219   glib_cv_hasinline=yes
22220
22221 else
22222   glib_cv_hasinline=no
22223
22224 fi
22225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22226
22227 fi
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_hasinline" >&5
22229 $as_echo "$glib_cv_hasinline" >&6; }
22230 case x$glib_cv_hasinline in
22231 xyes)
22232 $as_echo "#define G_HAVE_INLINE 1" >>confdefs.h
22233
22234 esac
22235
22236 # if we can use inline functions in headers
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inline functions in headers work" >&5
22238 $as_echo_n "checking if inline functions in headers work... " >&6; }
22239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22240 /* end confdefs.h.  */
22241
22242 #if defined (G_HAVE_INLINE) && defined (__GNUC__) && defined (__STRICT_ANSI__)
22243 #  undef inline
22244 #  define inline __inline__
22245 #elif !defined (G_HAVE_INLINE)
22246 #  undef inline
22247 #  if defined (G_HAVE___INLINE__)
22248 #    define inline __inline__
22249 #  elif defined (G_HAVE___INLINE)
22250 #    define inline __inline
22251 #  endif
22252 #endif
22253
22254 int glib_test_func2 (int);
22255
22256 static inline int
22257 glib_test_func1 (void) {
22258   return glib_test_func2 (1);
22259 }
22260
22261 int
22262 main (void) {
22263   int i = 1;
22264 }
22265 _ACEOF
22266 if ac_fn_c_try_link "$LINENO"; then :
22267   g_can_inline=yes
22268 else
22269   g_can_inline=no
22270 fi
22271 rm -f core conftest.err conftest.$ac_objext \
22272     conftest$ac_exeext conftest.$ac_ext
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_can_inline" >&5
22274 $as_echo "$g_can_inline" >&6; }
22275
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working do while(0) macros" >&5
22277 $as_echo_n "checking for working do while(0) macros... " >&6; }
22278 if ${g_cv_support_dowhile_macros+:} false; then :
22279   $as_echo_n "(cached) " >&6
22280 else
22281
22282         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* end confdefs.h.  */
22284
22285 int
22286 main ()
22287 {
22288
22289         #define STMT_START do
22290         #define STMT_END while(0)
22291         #define STMT_TEST STMT_START { i = 0; } STMT_END
22292         int main(void) { int i = 1; STMT_TEST; return i; }
22293   ;
22294   return 0;
22295 }
22296 _ACEOF
22297 if ac_fn_c_try_compile "$LINENO"; then :
22298   g_cv_support_dowhile_macros=yes
22299 else
22300   g_cv_support_dowhile_macros=no
22301 fi
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22303
22304 fi
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_cv_support_dowhile_macros" >&5
22306 $as_echo "$g_cv_support_dowhile_macros" >&6; }
22307 if test x$g_cv_support_dowhile_macros = xyes; then
22308
22309 $as_echo "#define HAVE_DOWHILE_MACROS 1" >>confdefs.h
22310
22311 fi
22312
22313 # check for flavours of varargs macros
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C" >&5
22315 $as_echo_n "checking for ISO C99 varargs macros in C... " >&6; }
22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22317 /* end confdefs.h.  */
22318
22319 int
22320 main ()
22321 {
22322
22323 int a(int p1, int p2, int p3);
22324 #define call_a(...) a(1,__VA_ARGS__)
22325 call_a(2,3);
22326
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 if ac_fn_c_try_compile "$LINENO"; then :
22332   g_have_iso_c_varargs=yes
22333 else
22334   g_have_iso_c_varargs=no
22335 fi
22336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_c_varargs" >&5
22338 $as_echo "$g_have_iso_c_varargs" >&6; }
22339
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ISO C99 varargs macros in C++" >&5
22341 $as_echo_n "checking for ISO C99 varargs macros in C++... " >&6; }
22342 if test "$CXX" = ""; then
22343   g_have_iso_cxx_varargs=no
22344 else
22345   ac_ext=cpp
22346 ac_cpp='$CXXCPP $CPPFLAGS'
22347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22350
22351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22352 /* end confdefs.h.  */
22353
22354 int
22355 main ()
22356 {
22357
22358 int a(int p1, int p2, int p3);
22359 #define call_a(...) a(1,__VA_ARGS__)
22360 call_a(2,3);
22361
22362   ;
22363   return 0;
22364 }
22365 _ACEOF
22366 if ac_fn_cxx_try_compile "$LINENO"; then :
22367   g_have_iso_cxx_varargs=yes
22368 else
22369   g_have_iso_cxx_varargs=no
22370 fi
22371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22372   ac_ext=c
22373 ac_cpp='$CPP $CPPFLAGS'
22374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22377
22378 fi
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_iso_cxx_varargs" >&5
22380 $as_echo "$g_have_iso_cxx_varargs" >&6; }
22381
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC varargs macros" >&5
22383 $as_echo_n "checking for GNUC varargs macros... " >&6; }
22384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22385 /* end confdefs.h.  */
22386
22387 int
22388 main ()
22389 {
22390
22391 int a(int p1, int p2, int p3);
22392 #define call_a(params...) a(1,params)
22393 call_a(2,3);
22394
22395   ;
22396   return 0;
22397 }
22398 _ACEOF
22399 if ac_fn_c_try_compile "$LINENO"; then :
22400   g_have_gnuc_varargs=yes
22401 else
22402   g_have_gnuc_varargs=no
22403 fi
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_varargs" >&5
22406 $as_echo "$g_have_gnuc_varargs" >&6; }
22407
22408 # check for GNUC visibility support
22409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUC visibility attribute" >&5
22410 $as_echo_n "checking for GNUC visibility attribute... " >&6; }
22411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22412 /* end confdefs.h.  */
22413
22414 void
22415 __attribute__ ((visibility ("hidden")))
22416      f_hidden (void)
22417 {
22418 }
22419 void
22420 __attribute__ ((visibility ("internal")))
22421      f_internal (void)
22422 {
22423 }
22424 void
22425 __attribute__ ((visibility ("protected")))
22426      f_protected (void)
22427 {
22428 }
22429 void
22430 __attribute__ ((visibility ("default")))
22431      f_default (void)
22432 {
22433 }
22434 int main (int argc, char **argv)
22435 {
22436         f_hidden();
22437         f_internal();
22438         f_protected();
22439         f_default();
22440         return 0;
22441 }
22442
22443 _ACEOF
22444 rm -f conftest.$ac_objext
22445 glib_ac_compile_save="$ac_compile"
22446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
22447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22448   (eval $ac_compile) 2>conftest.err
22449   ac_status=$?
22450   if test -s conftest.err; then
22451     grep -v '^ *+' conftest.err >conftest.er1
22452     cat conftest.er1 >&5
22453     mv -f conftest.er1 conftest.err
22454   fi
22455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22456   test $ac_status = 0; } &&
22457          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
22458   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22459   (eval $ac_try) 2>&5
22460   ac_status=$?
22461   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22462   test $ac_status = 0; }; }; then :
22463   g_have_gnuc_visibility=yes
22464 else
22465   echo "$as_me: failed program was:" >&5
22466 cat conftest.$ac_ext >&5
22467 g_have_gnuc_visibility=no
22468 fi
22469 ac_compile="$glib_ac_compile_save"
22470 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_gnuc_visibility" >&5
22472 $as_echo "$g_have_gnuc_visibility" >&6; }
22473  if test x$g_have_gnuc_visibility = xyes; then
22474   HAVE_GNUC_VISIBILITY_TRUE=
22475   HAVE_GNUC_VISIBILITY_FALSE='#'
22476 else
22477   HAVE_GNUC_VISIBILITY_TRUE='#'
22478   HAVE_GNUC_VISIBILITY_FALSE=
22479 fi
22480
22481
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Studio C compiler" >&5
22483 $as_echo_n "checking whether using Sun Studio C compiler... " >&6; }
22484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h.  */
22486 #if defined(__SUNPRO_C) || (__SUNPRO_C >= 0x550)
22487 #else
22488 # include "error: this is not Sun Studio."
22489 #endif
22490
22491 int
22492 main ()
22493 {
22494
22495   ;
22496   return 0;
22497 }
22498 _ACEOF
22499 if ac_fn_c_try_compile "$LINENO"; then :
22500    g_have_sunstudio_visibility=yes
22501 else
22502    g_have_sunstudio_visibility=no
22503 fi
22504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $g_have_sunstudio_visibility" >&5
22506 $as_echo "$g_have_sunstudio_visibility" >&6; }
22507  if test x$g_have_sunstudio_visibility = xyes; then
22508   HAVE_SUNSTUDIO_VISIBILITY_TRUE=
22509   HAVE_SUNSTUDIO_VISIBILITY_FALSE='#'
22510 else
22511   HAVE_SUNSTUDIO_VISIBILITY_TRUE='#'
22512   HAVE_SUNSTUDIO_VISIBILITY_FALSE=
22513 fi
22514
22515
22516 # check for bytesex stuff
22517  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22518 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22519 if ${ac_cv_c_bigendian+:} false; then :
22520   $as_echo_n "(cached) " >&6
22521 else
22522   ac_cv_c_bigendian=unknown
22523     # See if we're dealing with a universal compiler.
22524     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22525 /* end confdefs.h.  */
22526 #ifndef __APPLE_CC__
22527                not a universal capable compiler
22528              #endif
22529              typedef int dummy;
22530
22531 _ACEOF
22532 if ac_fn_c_try_compile "$LINENO"; then :
22533
22534         # Check for potential -arch flags.  It is not universal unless
22535         # there are at least two -arch flags with different values.
22536         ac_arch=
22537         ac_prev=
22538         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22539          if test -n "$ac_prev"; then
22540            case $ac_word in
22541              i?86 | x86_64 | ppc | ppc64)
22542                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22543                  ac_arch=$ac_word
22544                else
22545                  ac_cv_c_bigendian=universal
22546                  break
22547                fi
22548                ;;
22549            esac
22550            ac_prev=
22551          elif test "x$ac_word" = "x-arch"; then
22552            ac_prev=arch
22553          fi
22554        done
22555 fi
22556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22557     if test $ac_cv_c_bigendian = unknown; then
22558       # See if sys/param.h defines the BYTE_ORDER macro.
22559       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h.  */
22561 #include <sys/types.h>
22562              #include <sys/param.h>
22563
22564 int
22565 main ()
22566 {
22567 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22568                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22569                      && LITTLE_ENDIAN)
22570               bogus endian macros
22571              #endif
22572
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 if ac_fn_c_try_compile "$LINENO"; then :
22578   # It does; now see whether it defined to BIG_ENDIAN or not.
22579          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22580 /* end confdefs.h.  */
22581 #include <sys/types.h>
22582                 #include <sys/param.h>
22583
22584 int
22585 main ()
22586 {
22587 #if BYTE_ORDER != BIG_ENDIAN
22588                  not big endian
22589                 #endif
22590
22591   ;
22592   return 0;
22593 }
22594 _ACEOF
22595 if ac_fn_c_try_compile "$LINENO"; then :
22596   ac_cv_c_bigendian=yes
22597 else
22598   ac_cv_c_bigendian=no
22599 fi
22600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601 fi
22602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22603     fi
22604     if test $ac_cv_c_bigendian = unknown; then
22605       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22606       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22607 /* end confdefs.h.  */
22608 #include <limits.h>
22609
22610 int
22611 main ()
22612 {
22613 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22614               bogus endian macros
22615              #endif
22616
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 if ac_fn_c_try_compile "$LINENO"; then :
22622   # It does; now see whether it defined to _BIG_ENDIAN or not.
22623          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22624 /* end confdefs.h.  */
22625 #include <limits.h>
22626
22627 int
22628 main ()
22629 {
22630 #ifndef _BIG_ENDIAN
22631                  not big endian
22632                 #endif
22633
22634   ;
22635   return 0;
22636 }
22637 _ACEOF
22638 if ac_fn_c_try_compile "$LINENO"; then :
22639   ac_cv_c_bigendian=yes
22640 else
22641   ac_cv_c_bigendian=no
22642 fi
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 fi
22645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22646     fi
22647     if test $ac_cv_c_bigendian = unknown; then
22648       # Compile a test program.
22649       if test "$cross_compiling" = yes; then :
22650   # Try to guess by grepping values from an object file.
22651          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22652 /* end confdefs.h.  */
22653 short int ascii_mm[] =
22654                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22655                 short int ascii_ii[] =
22656                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22657                 int use_ascii (int i) {
22658                   return ascii_mm[i] + ascii_ii[i];
22659                 }
22660                 short int ebcdic_ii[] =
22661                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22662                 short int ebcdic_mm[] =
22663                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22664                 int use_ebcdic (int i) {
22665                   return ebcdic_mm[i] + ebcdic_ii[i];
22666                 }
22667                 extern int foo;
22668
22669 int
22670 main ()
22671 {
22672 return use_ascii (foo) == use_ebcdic (foo);
22673   ;
22674   return 0;
22675 }
22676 _ACEOF
22677 if ac_fn_c_try_compile "$LINENO"; then :
22678   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22679               ac_cv_c_bigendian=yes
22680             fi
22681             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22682               if test "$ac_cv_c_bigendian" = unknown; then
22683                 ac_cv_c_bigendian=no
22684               else
22685                 # finding both strings is unlikely to happen, but who knows?
22686                 ac_cv_c_bigendian=unknown
22687               fi
22688             fi
22689 fi
22690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22691 else
22692   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22693 /* end confdefs.h.  */
22694 $ac_includes_default
22695 int
22696 main ()
22697 {
22698
22699              /* Are we little or big endian?  From Harbison&Steele.  */
22700              union
22701              {
22702                long int l;
22703                char c[sizeof (long int)];
22704              } u;
22705              u.l = 1;
22706              return u.c[sizeof (long int) - 1] == 1;
22707
22708   ;
22709   return 0;
22710 }
22711 _ACEOF
22712 if ac_fn_c_try_run "$LINENO"; then :
22713   ac_cv_c_bigendian=no
22714 else
22715   ac_cv_c_bigendian=yes
22716 fi
22717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22718   conftest.$ac_objext conftest.beam conftest.$ac_ext
22719 fi
22720
22721     fi
22722 fi
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22724 $as_echo "$ac_cv_c_bigendian" >&6; }
22725  case $ac_cv_c_bigendian in #(
22726    yes)
22727      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22728 ;; #(
22729    no)
22730       ;; #(
22731    universal)
22732
22733 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22734
22735      ;; #(
22736    *)
22737      as_fn_error $? "unknown endianness
22738  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22739  esac
22740
22741 if test x$ac_cv_c_bigendian = xuniversal ; then
22742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22743 /* end confdefs.h.  */
22744 #include <endian.h>
22745 int
22746 main ()
22747 {
22748 #if __BYTE_ORDER == __BIG_ENDIAN
22749 #else
22750 #error Not a big endian.
22751 #endif
22752   ;
22753   return 0;
22754 }
22755 _ACEOF
22756 if ac_fn_c_try_compile "$LINENO"; then :
22757   ac_cv_c_bigendian=yes
22758
22759 else
22760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22761 /* end confdefs.h.  */
22762 #include <endian.h>
22763 int
22764 main ()
22765 {
22766 #if __BYTE_ORDER == __LITTLE_ENDIAN
22767 #else
22768 #error Not a little endian.
22769 #endif
22770   ;
22771   return 0;
22772 }
22773 _ACEOF
22774 if ac_fn_c_try_compile "$LINENO"; then :
22775   ac_cv_c_bigendian=no
22776
22777 else
22778   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine endianness." >&5
22779 $as_echo "$as_me: WARNING: Could not determine endianness." >&2;}
22780 fi
22781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22782 fi
22783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22784 fi
22785
22786
22787 # check for header files
22788 for ac_header in dirent.h float.h limits.h pwd.h grp.h sys/param.h sys/poll.h sys/resource.h
22789 do :
22790   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22791 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22793   cat >>confdefs.h <<_ACEOF
22794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22795 _ACEOF
22796
22797 fi
22798
22799 done
22800
22801 for ac_header in sys/time.h sys/times.h sys/wait.h unistd.h values.h
22802 do :
22803   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22804 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22805 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22806   cat >>confdefs.h <<_ACEOF
22807 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22808 _ACEOF
22809
22810 fi
22811
22812 done
22813
22814 for ac_header in sys/select.h sys/types.h stdint.h inttypes.h sched.h malloc.h
22815 do :
22816   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22817 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22819   cat >>confdefs.h <<_ACEOF
22820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22821 _ACEOF
22822
22823 fi
22824
22825 done
22826
22827 for ac_header in sys/vfs.h sys/vmount.h sys/statfs.h sys/statvfs.h
22828 do :
22829   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22830 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22831 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22832   cat >>confdefs.h <<_ACEOF
22833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22834 _ACEOF
22835
22836 fi
22837
22838 done
22839
22840 for ac_header in mntent.h sys/mnttab.h sys/vfstab.h sys/mntctl.h fstab.h
22841 do :
22842   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22843 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22844 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22845   cat >>confdefs.h <<_ACEOF
22846 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22847 _ACEOF
22848
22849 fi
22850
22851 done
22852
22853 for ac_header in sys/uio.h sys/mkdev.h
22854 do :
22855   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22856 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22857 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22858   cat >>confdefs.h <<_ACEOF
22859 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22860 _ACEOF
22861
22862 fi
22863
22864 done
22865
22866 for ac_header in linux/magic.h
22867 do :
22868   ac_fn_c_check_header_mongrel "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
22869 if test "x$ac_cv_header_linux_magic_h" = xyes; then :
22870   cat >>confdefs.h <<_ACEOF
22871 #define HAVE_LINUX_MAGIC_H 1
22872 _ACEOF
22873
22874 fi
22875
22876 done
22877
22878 for ac_header in sys/prctl.h
22879 do :
22880   ac_fn_c_check_header_mongrel "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
22881 if test "x$ac_cv_header_sys_prctl_h" = xyes; then :
22882   cat >>confdefs.h <<_ACEOF
22883 #define HAVE_SYS_PRCTL_H 1
22884 _ACEOF
22885
22886 fi
22887
22888 done
22889
22890
22891 for ac_header in sys/mount.h sys/sysctl.h
22892 do :
22893   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#if HAVE_SYS_PARAM_H
22895  #include <sys/param.h>
22896  #endif
22897
22898 "
22899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22900   cat >>confdefs.h <<_ACEOF
22901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22902 _ACEOF
22903
22904 fi
22905
22906 done
22907
22908
22909 for ac_header in xlocale.h
22910 do :
22911   ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
22912 if test "x$ac_cv_header_xlocale_h" = xyes; then :
22913   cat >>confdefs.h <<_ACEOF
22914 #define HAVE_XLOCALE_H 1
22915 _ACEOF
22916
22917 fi
22918
22919 done
22920
22921
22922 # check for structure fields
22923 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default"
22924 if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes; then :
22925
22926 cat >>confdefs.h <<_ACEOF
22927 #define HAVE_STRUCT_STAT_ST_MTIMENSEC 1
22928 _ACEOF
22929
22930
22931 fi
22932 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim.tv_nsec" "ac_cv_member_struct_stat_st_mtim_tv_nsec" "$ac_includes_default"
22933 if test "x$ac_cv_member_struct_stat_st_mtim_tv_nsec" = xyes; then :
22934
22935 cat >>confdefs.h <<_ACEOF
22936 #define HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC 1
22937 _ACEOF
22938
22939
22940 fi
22941 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "$ac_includes_default"
22942 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes; then :
22943
22944 cat >>confdefs.h <<_ACEOF
22945 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
22946 _ACEOF
22947
22948
22949 fi
22950 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "$ac_includes_default"
22951 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes; then :
22952
22953 cat >>confdefs.h <<_ACEOF
22954 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
22955 _ACEOF
22956
22957
22958 fi
22959 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctimensec" "ac_cv_member_struct_stat_st_ctimensec" "$ac_includes_default"
22960 if test "x$ac_cv_member_struct_stat_st_ctimensec" = xyes; then :
22961
22962 cat >>confdefs.h <<_ACEOF
22963 #define HAVE_STRUCT_STAT_ST_CTIMENSEC 1
22964 _ACEOF
22965
22966
22967 fi
22968 ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim.tv_nsec" "ac_cv_member_struct_stat_st_ctim_tv_nsec" "$ac_includes_default"
22969 if test "x$ac_cv_member_struct_stat_st_ctim_tv_nsec" = xyes; then :
22970
22971 cat >>confdefs.h <<_ACEOF
22972 #define HAVE_STRUCT_STAT_ST_CTIM_TV_NSEC 1
22973 _ACEOF
22974
22975
22976 fi
22977
22978 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "#include <sys/types.h>
22979 #include <sys/stat.h>
22980 #include <unistd.h>
22981 #ifdef HAVE_SYS_STATFS_H
22982 #include <sys/statfs.h>
22983 #endif
22984 #ifdef HAVE_SYS_PARAM_H
22985 #include <sys/param.h>
22986 #endif
22987 #ifdef HAVE_SYS_MOUNT_H
22988 #include <sys/mount.h>
22989 #endif
22990 "
22991 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
22992
22993 cat >>confdefs.h <<_ACEOF
22994 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
22995 _ACEOF
22996
22997
22998 fi
22999 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "#include <sys/types.h>
23000 #include <sys/stat.h>
23001 #include <unistd.h>
23002 #ifdef HAVE_SYS_STATFS_H
23003 #include <sys/statfs.h>
23004 #endif
23005 #ifdef HAVE_SYS_PARAM_H
23006 #include <sys/param.h>
23007 #endif
23008 #ifdef HAVE_SYS_MOUNT_H
23009 #include <sys/mount.h>
23010 #endif
23011 "
23012 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
23013
23014 cat >>confdefs.h <<_ACEOF
23015 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
23016 _ACEOF
23017
23018
23019 fi
23020 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "#include <sys/types.h>
23021 #include <sys/stat.h>
23022 #include <unistd.h>
23023 #ifdef HAVE_SYS_STATFS_H
23024 #include <sys/statfs.h>
23025 #endif
23026 #ifdef HAVE_SYS_PARAM_H
23027 #include <sys/param.h>
23028 #endif
23029 #ifdef HAVE_SYS_MOUNT_H
23030 #include <sys/mount.h>
23031 #endif
23032 "
23033 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
23034
23035 cat >>confdefs.h <<_ACEOF
23036 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
23037 _ACEOF
23038
23039
23040 fi
23041 ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
23042 #include <sys/stat.h>
23043 #include <unistd.h>
23044 #ifdef HAVE_SYS_STATFS_H
23045 #include <sys/statfs.h>
23046 #endif
23047 #ifdef HAVE_SYS_PARAM_H
23048 #include <sys/param.h>
23049 #endif
23050 #ifdef HAVE_SYS_MOUNT_H
23051 #include <sys/mount.h>
23052 #endif
23053 "
23054 if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
23055
23056 cat >>confdefs.h <<_ACEOF
23057 #define HAVE_STRUCT_STATFS_F_BAVAIL 1
23058 _ACEOF
23059
23060
23061 fi
23062
23063 # struct statvfs.f_basetype is available on Solaris but not for Linux.
23064 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
23065 "
23066 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
23067
23068 cat >>confdefs.h <<_ACEOF
23069 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
23070 _ACEOF
23071
23072
23073 fi
23074
23075 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
23076 "
23077 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
23078
23079 cat >>confdefs.h <<_ACEOF
23080 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
23081 _ACEOF
23082
23083
23084 fi
23085
23086 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
23087 "
23088 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
23089
23090 cat >>confdefs.h <<_ACEOF
23091 #define HAVE_STRUCT_TM_TM_GMTOFF 1
23092 _ACEOF
23093
23094
23095 fi
23096 ac_fn_c_check_member "$LINENO" "struct tm" "__tm_gmtoff" "ac_cv_member_struct_tm___tm_gmtoff" "#include <time.h>
23097 "
23098 if test "x$ac_cv_member_struct_tm___tm_gmtoff" = xyes; then :
23099
23100 cat >>confdefs.h <<_ACEOF
23101 #define HAVE_STRUCT_TM___TM_GMTOFF 1
23102 _ACEOF
23103
23104
23105 fi
23106
23107
23108 ac_header_dirent=no
23109 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23110   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
23112 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
23113 if eval \${$as_ac_Header+:} false; then :
23114   $as_echo_n "(cached) " >&6
23115 else
23116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23117 /* end confdefs.h.  */
23118 #include <sys/types.h>
23119 #include <$ac_hdr>
23120
23121 int
23122 main ()
23123 {
23124 if ((DIR *) 0)
23125 return 0;
23126   ;
23127   return 0;
23128 }
23129 _ACEOF
23130 if ac_fn_c_try_compile "$LINENO"; then :
23131   eval "$as_ac_Header=yes"
23132 else
23133   eval "$as_ac_Header=no"
23134 fi
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136 fi
23137 eval ac_res=\$$as_ac_Header
23138                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23139 $as_echo "$ac_res" >&6; }
23140 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23141   cat >>confdefs.h <<_ACEOF
23142 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23143 _ACEOF
23144
23145 ac_header_dirent=$ac_hdr; break
23146 fi
23147
23148 done
23149 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23150 if test $ac_header_dirent = dirent.h; then
23151   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23152 $as_echo_n "checking for library containing opendir... " >&6; }
23153 if ${ac_cv_search_opendir+:} false; then :
23154   $as_echo_n "(cached) " >&6
23155 else
23156   ac_func_search_save_LIBS=$LIBS
23157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23158 /* end confdefs.h.  */
23159
23160 /* Override any GCC internal prototype to avoid an error.
23161    Use char because int might match the return type of a GCC
23162    builtin and then its argument prototype would still apply.  */
23163 #ifdef __cplusplus
23164 extern "C"
23165 #endif
23166 char opendir ();
23167 int
23168 main ()
23169 {
23170 return opendir ();
23171   ;
23172   return 0;
23173 }
23174 _ACEOF
23175 for ac_lib in '' dir; do
23176   if test -z "$ac_lib"; then
23177     ac_res="none required"
23178   else
23179     ac_res=-l$ac_lib
23180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23181   fi
23182   if ac_fn_c_try_link "$LINENO"; then :
23183   ac_cv_search_opendir=$ac_res
23184 fi
23185 rm -f core conftest.err conftest.$ac_objext \
23186     conftest$ac_exeext
23187   if ${ac_cv_search_opendir+:} false; then :
23188   break
23189 fi
23190 done
23191 if ${ac_cv_search_opendir+:} false; then :
23192
23193 else
23194   ac_cv_search_opendir=no
23195 fi
23196 rm conftest.$ac_ext
23197 LIBS=$ac_func_search_save_LIBS
23198 fi
23199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23200 $as_echo "$ac_cv_search_opendir" >&6; }
23201 ac_res=$ac_cv_search_opendir
23202 if test "$ac_res" != no; then :
23203   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23204
23205 fi
23206
23207 else
23208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
23209 $as_echo_n "checking for library containing opendir... " >&6; }
23210 if ${ac_cv_search_opendir+:} false; then :
23211   $as_echo_n "(cached) " >&6
23212 else
23213   ac_func_search_save_LIBS=$LIBS
23214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23215 /* end confdefs.h.  */
23216
23217 /* Override any GCC internal prototype to avoid an error.
23218    Use char because int might match the return type of a GCC
23219    builtin and then its argument prototype would still apply.  */
23220 #ifdef __cplusplus
23221 extern "C"
23222 #endif
23223 char opendir ();
23224 int
23225 main ()
23226 {
23227 return opendir ();
23228   ;
23229   return 0;
23230 }
23231 _ACEOF
23232 for ac_lib in '' x; do
23233   if test -z "$ac_lib"; then
23234     ac_res="none required"
23235   else
23236     ac_res=-l$ac_lib
23237     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23238   fi
23239   if ac_fn_c_try_link "$LINENO"; then :
23240   ac_cv_search_opendir=$ac_res
23241 fi
23242 rm -f core conftest.err conftest.$ac_objext \
23243     conftest$ac_exeext
23244   if ${ac_cv_search_opendir+:} false; then :
23245   break
23246 fi
23247 done
23248 if ${ac_cv_search_opendir+:} false; then :
23249
23250 else
23251   ac_cv_search_opendir=no
23252 fi
23253 rm conftest.$ac_ext
23254 LIBS=$ac_func_search_save_LIBS
23255 fi
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
23257 $as_echo "$ac_cv_search_opendir" >&6; }
23258 ac_res=$ac_cv_search_opendir
23259 if test "$ac_res" != no; then :
23260   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23261
23262 fi
23263
23264 fi
23265
23266
23267
23268   ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "
23269 #include <sys/types.h>
23270 #ifdef HAVE_DIRENT_H
23271 # include <dirent.h>
23272 #else
23273 # define dirent direct
23274 # ifdef HAVE_SYS_NDIR_H
23275 #  include <sys/ndir.h>
23276 # endif
23277 # ifdef HAVE_SYS_DIR_H
23278 #  include <sys/dir.h>
23279 # endif
23280 # ifdef HAVE_NDIR_H
23281 #  include <ndir.h>
23282 # endif
23283 #endif
23284
23285 "
23286 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
23287
23288 cat >>confdefs.h <<_ACEOF
23289 #define HAVE_STRUCT_DIRENT_D_TYPE 1
23290 _ACEOF
23291
23292
23293 fi
23294
23295
23296
23297 # Checks for libcharset
23298
23299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
23300 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
23301 if ${am_cv_langinfo_codeset+:} false; then :
23302   $as_echo_n "(cached) " >&6
23303 else
23304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23305 /* end confdefs.h.  */
23306 #include <langinfo.h>
23307 int
23308 main ()
23309 {
23310 char* cs = nl_langinfo(CODESET);
23311   ;
23312   return 0;
23313 }
23314 _ACEOF
23315 if ac_fn_c_try_link "$LINENO"; then :
23316   am_cv_langinfo_codeset=yes
23317 else
23318   am_cv_langinfo_codeset=no
23319 fi
23320 rm -f core conftest.err conftest.$ac_objext \
23321     conftest$ac_exeext conftest.$ac_ext
23322
23323 fi
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
23325 $as_echo "$am_cv_langinfo_codeset" >&6; }
23326   if test $am_cv_langinfo_codeset = yes; then
23327
23328 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
23329
23330   fi
23331
23332 for ac_header in stddef.h stdlib.h string.h
23333 do :
23334   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23337   cat >>confdefs.h <<_ACEOF
23338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23339 _ACEOF
23340
23341 fi
23342
23343 done
23344
23345 for ac_func in setlocale
23346 do :
23347   ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
23348 if test "x$ac_cv_func_setlocale" = xyes; then :
23349   cat >>confdefs.h <<_ACEOF
23350 #define HAVE_SETLOCALE 1
23351 _ACEOF
23352
23353 fi
23354 done
23355
23356
23357 # check additional type sizes
23358 # The cast to long int works around a bug in the HP C Compiler
23359 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23360 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23361 # This bug is HP SR number 8606223364.
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23363 $as_echo_n "checking size of size_t... " >&6; }
23364 if ${ac_cv_sizeof_size_t+:} false; then :
23365   $as_echo_n "(cached) " >&6
23366 else
23367   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t"        "$ac_includes_default"; then :
23368
23369 else
23370   if test "$ac_cv_type_size_t" = yes; then
23371      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23373 as_fn_error 77 "cannot compute sizeof (size_t)
23374 See \`config.log' for more details" "$LINENO" 5; }
23375    else
23376      ac_cv_sizeof_size_t=0
23377    fi
23378 fi
23379
23380 fi
23381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23382 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23383
23384
23385
23386 cat >>confdefs.h <<_ACEOF
23387 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23388 _ACEOF
23389
23390
23391
23392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the appropriate definition for size_t" >&5
23393 $as_echo_n "checking for the appropriate definition for size_t... " >&6; }
23394
23395 case $ac_cv_sizeof_size_t in
23396   $ac_cv_sizeof_short)
23397       glib_size_type=short
23398       ;;
23399   $ac_cv_sizeof_int)
23400       glib_size_type=int
23401       ;;
23402   $ac_cv_sizeof_long)
23403       glib_size_type=long
23404       ;;
23405   $ac_cv_sizeof_long_long)
23406       glib_size_type='long long'
23407       ;;
23408   $ac_cv_sizeof__int64)
23409       glib_size_type='__int64'
23410       ;;
23411   *)  as_fn_error $? "No type matching size_t in size" "$LINENO" 5
23412       ;;
23413 esac
23414
23415 if test $ac_cv_sizeof_size_t = $ac_cv_sizeof_int &&
23416    test $ac_cv_sizeof_size_t = $ac_cv_sizeof_long ; then
23417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h.  */
23419
23420 #if defined(_AIX) && !defined(__GNUC__)
23421 #pragma options langlvl=stdc89
23422 #endif
23423 #include <stddef.h>
23424 int main ()
23425 {
23426   size_t s = 1;
23427   unsigned int *size_int = &s;
23428   return (int)*size_int;
23429 }
23430
23431 _ACEOF
23432 rm -f conftest.$ac_objext
23433 glib_ac_compile_save="$ac_compile"
23434 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23436   (eval $ac_compile) 2>conftest.err
23437   ac_status=$?
23438   if test -s conftest.err; then
23439     grep -v '^ *+' conftest.err >conftest.er1
23440     cat conftest.er1 >&5
23441     mv -f conftest.er1 conftest.err
23442   fi
23443   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23444   test $ac_status = 0; } &&
23445          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23446   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23447   (eval $ac_try) 2>&5
23448   ac_status=$?
23449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450   test $ac_status = 0; }; }; then :
23451   glib_size_type=int
23452 else
23453   echo "$as_me: failed program was:" >&5
23454 cat conftest.$ac_ext >&5
23455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23456 /* end confdefs.h.  */
23457
23458 #if defined(_AIX) && !defined(__GNUC__)
23459 #pragma options langlvl=stdc89
23460 #endif
23461 #include <stddef.h>
23462 int main ()
23463 {
23464    size_t s = 1;
23465    unsigned long *size_long = &s;
23466    return (int)*size_long;
23467 }
23468
23469 _ACEOF
23470 rm -f conftest.$ac_objext
23471 glib_ac_compile_save="$ac_compile"
23472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext'
23473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
23474   (eval $ac_compile) 2>conftest.err
23475   ac_status=$?
23476   if test -s conftest.err; then
23477     grep -v '^ *+' conftest.err >conftest.er1
23478     cat conftest.er1 >&5
23479     mv -f conftest.er1 conftest.err
23480   fi
23481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23482   test $ac_status = 0; } &&
23483          { ac_try='(if test -s conftest.err; then false ; else true; fi)'
23484   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23485   (eval $ac_try) 2>&5
23486   ac_status=$?
23487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23488   test $ac_status = 0; }; }; then :
23489   glib_size_type=long
23490 else
23491   echo "$as_me: failed program was:" >&5
23492 cat conftest.$ac_ext >&5
23493 fi
23494 ac_compile="$glib_ac_compile_save"
23495 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23496 fi
23497 ac_compile="$glib_ac_compile_save"
23498 rm -f conftest.$ac_objext conftest.err conftest.$ac_ext
23499 fi
23500
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsigned $glib_size_type" >&5
23502 $as_echo "unsigned $glib_size_type" >&6; }
23503
23504 # Check for some functions
23505 for ac_func in lstat strerror strsignal memmove vsnprintf stpcpy strcasecmp strncasecmp poll getcwd vasprintf setenv unsetenv getc_unlocked readlink symlink fdwalk memmem
23506 do :
23507   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23510   cat >>confdefs.h <<_ACEOF
23511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23512 _ACEOF
23513
23514 fi
23515 done
23516
23517 for ac_func in chown lchmod lchown fchmod fchown link utimes getgrgid getpwuid
23518 do :
23519   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23522   cat >>confdefs.h <<_ACEOF
23523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23524 _ACEOF
23525
23526 fi
23527 done
23528
23529 for ac_func in getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat
23530 do :
23531   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23533 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23534   cat >>confdefs.h <<_ACEOF
23535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23536 _ACEOF
23537
23538 fi
23539 done
23540
23541 # Check for high-resolution sleep functions
23542 for ac_func in splice
23543 do :
23544   ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice"
23545 if test "x$ac_cv_func_splice" = xyes; then :
23546   cat >>confdefs.h <<_ACEOF
23547 #define HAVE_SPLICE 1
23548 _ACEOF
23549
23550 fi
23551 done
23552
23553 for ac_func in prlimit
23554 do :
23555   ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
23556 if test "x$ac_cv_func_prlimit" = xyes; then :
23557   cat >>confdefs.h <<_ACEOF
23558 #define HAVE_PRLIMIT 1
23559 _ACEOF
23560
23561 fi
23562 done
23563
23564
23565 # To avoid finding a compatibility unusable statfs, which typically
23566 # successfully compiles, but warns to use the newer statvfs interface:
23567 if test $ac_cv_header_sys_statvfs_h = yes; then :
23568   for ac_func in statvfs
23569 do :
23570   ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
23571 if test "x$ac_cv_func_statvfs" = xyes; then :
23572   cat >>confdefs.h <<_ACEOF
23573 #define HAVE_STATVFS 1
23574 _ACEOF
23575
23576 fi
23577 done
23578
23579 fi
23580 if test $ac_cv_header_sys_statfs_h  = yes -o $ac_cv_header_sys_mount_h = yes; then :
23581   for ac_func in statfs
23582 do :
23583   ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
23584 if test "x$ac_cv_func_statfs" = xyes; then :
23585   cat >>confdefs.h <<_ACEOF
23586 #define HAVE_STATFS 1
23587 _ACEOF
23588
23589 fi
23590 done
23591
23592 fi
23593
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use statfs or statvfs" >&5
23595 $as_echo_n "checking whether to use statfs or statvfs... " >&6; }
23596 # Some systems have both statfs and statvfs, pick the most "native" for these
23597 if test x$ac_cv_func_statfs = xyes && test x$ac_cv_func_statvfs = xyes; then :
23598
23599    # on solaris and irix, statfs doesn't even have the f_bavail field
23600    if test x$ac_cv_member_struct_statfs_f_bavail = xno; then :
23601   ac_cv_func_statfs=no
23602 else
23603   # else, at least on linux, statfs is the actual syscall
23604       ac_cv_func_statvfs=no
23605 fi
23606
23607 fi
23608
23609 if test x$ac_cv_func_statfs = xyes; then :
23610
23611
23612 $as_echo "#define USE_STATFS 1" >>confdefs.h
23613
23614          { $as_echo "$as_me:${as_lineno-$LINENO}: result: statfs" >&5
23615 $as_echo "statfs" >&6; }
23616
23617 elif test x$ac_cv_func_statvfs = xyes; then :
23618
23619
23620 $as_echo "#define USE_STATVFS 1" >>confdefs.h
23621
23622          { $as_echo "$as_me:${as_lineno-$LINENO}: result: statvfs" >&5
23623 $as_echo "statvfs" >&6; }
23624
23625 else
23626     { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither" >&5
23627 $as_echo "neither" >&6; }
23628 fi
23629
23630 for ac_header in crt_externs.h
23631 do :
23632   ac_fn_c_check_header_mongrel "$LINENO" "crt_externs.h" "ac_cv_header_crt_externs_h" "$ac_includes_default"
23633 if test "x$ac_cv_header_crt_externs_h" = xyes; then :
23634   cat >>confdefs.h <<_ACEOF
23635 #define HAVE_CRT_EXTERNS_H 1
23636 _ACEOF
23637
23638 fi
23639
23640 done
23641
23642 for ac_func in _NSGetEnviron
23643 do :
23644   ac_fn_c_check_func "$LINENO" "_NSGetEnviron" "ac_cv_func__NSGetEnviron"
23645 if test "x$ac_cv_func__NSGetEnviron" = xyes; then :
23646   cat >>confdefs.h <<_ACEOF
23647 #define HAVE__NSGETENVIRON 1
23648 _ACEOF
23649
23650 fi
23651 done
23652
23653
23654 for ac_func in newlocale uselocale strtod_l strtoll_l strtoull_l
23655 do :
23656   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23659   cat >>confdefs.h <<_ACEOF
23660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23661 _ACEOF
23662
23663 fi
23664 done
23665
23666
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 vsnprintf" >&5
23668 $as_echo_n "checking for C99 vsnprintf... " >&6; }
23669 if ${ac_cv_func_vsnprintf_c99+:} false; then :
23670   $as_echo_n "(cached) " >&6
23671 else
23672   if test "$cross_compiling" = yes; then :
23673   ac_cv_func_vsnprintf_c99=no
23674 else
23675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23676 /* end confdefs.h.  */
23677 #include <stdio.h>
23678 #include <stdarg.h>
23679
23680 int
23681 doit(char * s, ...)
23682 {
23683   char buffer[32];
23684   va_list args;
23685   int r;
23686
23687   va_start(args, s);
23688   r = vsnprintf(buffer, 5, s, args);
23689   va_end(args);
23690
23691   if (r != 7)
23692     exit(1);
23693
23694   /* AIX 5.1 and Solaris seems to have a half-baked vsnprintf()
23695      implementation. The above will return 7 but if you replace
23696      the size of the buffer with 0, it borks! */
23697   va_start(args, s);
23698   r = vsnprintf(buffer, 0, s, args);
23699   va_end(args);
23700
23701   if (r != 7)
23702     exit(1);
23703
23704   exit(0);
23705 }
23706
23707 int
23708 main(void)
23709 {
23710   doit("1234567");
23711   exit(1);
23712 }
23713 _ACEOF
23714 if ac_fn_c_try_run "$LINENO"; then :
23715   ac_cv_func_vsnprintf_c99=yes
23716 else
23717   ac_cv_func_vsnprintf_c99=no
23718 fi
23719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23720   conftest.$ac_objext conftest.beam conftest.$ac_ext
23721 fi
23722
23723 fi
23724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vsnprintf_c99" >&5
23725 $as_echo "$ac_cv_func_vsnprintf_c99" >&6; }
23726 if test $ac_cv_func_vsnprintf_c99 = yes; then
23727
23728 $as_echo "#define HAVE_C99_VSNPRINTF 1" >>confdefs.h
23729
23730 fi
23731
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports positional parameters" >&5
23733 $as_echo_n "checking whether printf supports positional parameters... " >&6; }
23734 if ${ac_cv_func_printf_unix98+:} false; then :
23735   $as_echo_n "(cached) " >&6
23736 else
23737   if test "$cross_compiling" = yes; then :
23738   ac_cv_func_printf_unix98=no
23739 else
23740   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23741 /* end confdefs.h.  */
23742 #include <stdio.h>
23743
23744 int
23745 main (void)
23746 {
23747   char buffer[128];
23748
23749   sprintf (buffer, "%2\$d %3\$d %1\$d", 1, 2, 3);
23750   if (strcmp ("2 3 1", buffer) == 0)
23751     exit (0);
23752   exit (1);
23753 }
23754 _ACEOF
23755 if ac_fn_c_try_run "$LINENO"; then :
23756   ac_cv_func_printf_unix98=yes
23757 else
23758   ac_cv_func_printf_unix98=no
23759 fi
23760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23761   conftest.$ac_objext conftest.beam conftest.$ac_ext
23762 fi
23763
23764 fi
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_printf_unix98" >&5
23766 $as_echo "$ac_cv_func_printf_unix98" >&6; }
23767 if test $ac_cv_func_printf_unix98 = yes; then
23768
23769 $as_echo "#define HAVE_UNIX98_PRINTF 1" >>confdefs.h
23770
23771 fi
23772
23773
23774 # Internet address families
23775 if test $glib_native_win32 = yes; then
23776   glib_inet_includes="
23777 #include <winsock2.h>
23778   "
23779 else
23780   glib_inet_includes="
23781 #include <sys/types.h>
23782 #include <sys/socket.h>
23783   "
23784 fi
23785
23786 glib_failed=false
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET" >&5
23788 $as_echo_n "checking value of AF_INET... " >&6; }
23789 if ${glib_cv_value_AF_INET+:} false; then :
23790   $as_echo_n "(cached) " >&6
23791 else
23792   if ac_fn_c_compute_int "$LINENO" "AF_INET" "glib_cv_value_AF_INET"        "$glib_inet_includes"; then :
23793
23794 else
23795   glib_failed=true
23796 fi
23797
23798
23799 fi
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET" >&5
23801 $as_echo "$glib_cv_value_AF_INET" >&6; }
23802
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_INET6" >&5
23804 $as_echo_n "checking value of AF_INET6... " >&6; }
23805 if ${glib_cv_value_AF_INET6+:} false; then :
23806   $as_echo_n "(cached) " >&6
23807 else
23808   if ac_fn_c_compute_int "$LINENO" "AF_INET6" "glib_cv_value_AF_INET6"        "$glib_inet_includes"; then :
23809
23810 else
23811   glib_failed=true
23812 fi
23813
23814
23815 fi
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_INET6" >&5
23817 $as_echo "$glib_cv_value_AF_INET6" >&6; }
23818
23819 # winsock defines this even though it doesn't support it
23820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of AF_UNIX" >&5
23821 $as_echo_n "checking value of AF_UNIX... " >&6; }
23822 if ${glib_cv_value_AF_UNIX+:} false; then :
23823   $as_echo_n "(cached) " >&6
23824 else
23825   if ac_fn_c_compute_int "$LINENO" "AF_UNIX" "glib_cv_value_AF_UNIX"        "$glib_inet_includes"; then :
23826
23827 else
23828   glib_failed=true
23829 fi
23830
23831
23832 fi
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_AF_UNIX" >&5
23834 $as_echo "$glib_cv_value_AF_UNIX" >&6; }
23835
23836 if $glib_failed ; then
23837   as_fn_error $? "Could not determine values for AF_INET* constants" "$LINENO" 5
23838 fi
23839
23840 glib_failed=false
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_PEEK" >&5
23842 $as_echo_n "checking value of MSG_PEEK... " >&6; }
23843 if ${glib_cv_value_MSG_PEEK+:} false; then :
23844   $as_echo_n "(cached) " >&6
23845 else
23846   if ac_fn_c_compute_int "$LINENO" "MSG_PEEK" "glib_cv_value_MSG_PEEK"        "$glib_inet_includes"; then :
23847
23848 else
23849   glib_failed=true
23850 fi
23851
23852
23853 fi
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_PEEK" >&5
23855 $as_echo "$glib_cv_value_MSG_PEEK" >&6; }
23856
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_OOB" >&5
23858 $as_echo_n "checking value of MSG_OOB... " >&6; }
23859 if ${glib_cv_value_MSG_OOB+:} false; then :
23860   $as_echo_n "(cached) " >&6
23861 else
23862   if ac_fn_c_compute_int "$LINENO" "MSG_OOB" "glib_cv_value_MSG_OOB"        "$glib_inet_includes"; then :
23863
23864 else
23865   glib_failed=true
23866 fi
23867
23868
23869 fi
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_OOB" >&5
23871 $as_echo "$glib_cv_value_MSG_OOB" >&6; }
23872
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of MSG_DONTROUTE" >&5
23874 $as_echo_n "checking value of MSG_DONTROUTE... " >&6; }
23875 if ${glib_cv_value_MSG_DONTROUTE+:} false; then :
23876   $as_echo_n "(cached) " >&6
23877 else
23878   if ac_fn_c_compute_int "$LINENO" "MSG_DONTROUTE" "glib_cv_value_MSG_DONTROUTE"        "$glib_inet_includes"; then :
23879
23880 else
23881   glib_failed=true
23882 fi
23883
23884
23885 fi
23886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_MSG_DONTROUTE" >&5
23887 $as_echo "$glib_cv_value_MSG_DONTROUTE" >&6; }
23888
23889 if $glib_failed ; then
23890   as_fn_error $? "Could not determine values for MSG_* constants" "$LINENO" 5
23891 fi
23892
23893 for ac_func in getprotobyname_r endservent if_nametoindex
23894 do :
23895   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23897 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23898   cat >>confdefs.h <<_ACEOF
23899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23900 _ACEOF
23901
23902 fi
23903 done
23904
23905 for ac_header in netdb.h wspiapi.h arpa/nameser_compat.h
23906 do :
23907   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23908 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23909 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23910   cat >>confdefs.h <<_ACEOF
23911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23912 _ACEOF
23913
23914 fi
23915
23916 done
23917
23918
23919 if test $glib_native_win32 = no; then
23920   # We can't just use AC_CHECK_FUNC/AC_CHECK_LIB here. Bug 586150
23921   NETWORK_LIBS=""
23922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_query" >&5
23923 $as_echo_n "checking for res_query... " >&6; }
23924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23925 /* end confdefs.h.  */
23926 #include <sys/types.h>
23927                #include <netinet/in.h>
23928                #include <arpa/nameser.h>
23929                #include <resolv.h>
23930
23931 int
23932 main ()
23933 {
23934
23935                res_query("test", 0, 0, (void *)0, 0);
23936
23937   ;
23938   return 0;
23939 }
23940 _ACEOF
23941 if ac_fn_c_try_link "$LINENO"; then :
23942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23943 $as_echo "yes" >&6; }
23944 else
23945   save_libs="$LIBS"
23946                LIBS="-lresolv $LIBS"
23947                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h.  */
23949 #include <sys/types.h>
23950                             #include <netinet/in.h>
23951                             #include <arpa/nameser.h>
23952                             #include <resolv.h>
23953
23954 int
23955 main ()
23956 {
23957
23958                             res_query("test", 0, 0, (void *)0, 0);
23959
23960   ;
23961   return 0;
23962 }
23963 _ACEOF
23964 if ac_fn_c_try_link "$LINENO"; then :
23965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lresolv" >&5
23966 $as_echo "in -lresolv" >&6; }
23967                               NETWORK_LIBS="-lresolv $NETWORK_LIBS"
23968 else
23969   LIBS="-lbind $save_libs"
23970                             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23971 /* end confdefs.h.  */
23972 #include <resolv.h>
23973 int
23974 main ()
23975 {
23976 res_query("test", 0, 0, (void *)0, 0);
23977   ;
23978   return 0;
23979 }
23980 _ACEOF
23981 if ac_fn_c_try_link "$LINENO"; then :
23982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: in -lbind" >&5
23983 $as_echo "in -lbind" >&6; }
23984                                          NETWORK_LIBS="-lbind $NETWORK_LIBS"
23985 else
23986   as_fn_error $? "not found" "$LINENO" 5
23987 fi
23988 rm -f core conftest.err conftest.$ac_objext \
23989     conftest$ac_exeext conftest.$ac_ext
23990 fi
23991 rm -f core conftest.err conftest.$ac_objext \
23992     conftest$ac_exeext conftest.$ac_ext
23993                LIBS="$save_libs"
23994 fi
23995 rm -f core conftest.err conftest.$ac_objext \
23996     conftest$ac_exeext conftest.$ac_ext
23997   ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
23998 if test "x$ac_cv_func_socket" = xyes; then :
23999   :
24000 else
24001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24002 $as_echo_n "checking for socket in -lsocket... " >&6; }
24003 if ${ac_cv_lib_socket_socket+:} false; then :
24004   $as_echo_n "(cached) " >&6
24005 else
24006   ac_check_lib_save_LIBS=$LIBS
24007 LIBS="-lsocket  $LIBS"
24008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24009 /* end confdefs.h.  */
24010
24011 /* Override any GCC internal prototype to avoid an error.
24012    Use char because int might match the return type of a GCC
24013    builtin and then its argument prototype would still apply.  */
24014 #ifdef __cplusplus
24015 extern "C"
24016 #endif
24017 char socket ();
24018 int
24019 main ()
24020 {
24021 return socket ();
24022   ;
24023   return 0;
24024 }
24025 _ACEOF
24026 if ac_fn_c_try_link "$LINENO"; then :
24027   ac_cv_lib_socket_socket=yes
24028 else
24029   ac_cv_lib_socket_socket=no
24030 fi
24031 rm -f core conftest.err conftest.$ac_objext \
24032     conftest$ac_exeext conftest.$ac_ext
24033 LIBS=$ac_check_lib_save_LIBS
24034 fi
24035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24036 $as_echo "$ac_cv_lib_socket_socket" >&6; }
24037 if test "x$ac_cv_lib_socket_socket" = xyes; then :
24038   NETWORK_LIBS="-lsocket $NETWORK_LIBS"
24039 else
24040   as_fn_error $? "Could not find socket()" "$LINENO" 5
24041 fi
24042
24043 fi
24044
24045 fi
24046
24047
24048 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "#include <sys/socket.h>
24049 "
24050 if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
24051
24052 $as_echo "#define HAVE_NETLINK 1" >>confdefs.h
24053
24054 fi
24055
24056
24057  if test "$ac_cv_header_linux_netlink_h" = "yes"; then
24058   HAVE_NETLINK_TRUE=
24059   HAVE_NETLINK_FALSE='#'
24060 else
24061   HAVE_NETLINK_TRUE='#'
24062   HAVE_NETLINK_FALSE=
24063 fi
24064
24065
24066 ac_fn_c_check_type "$LINENO" "struct ip_mreqn" "ac_cv_type_struct_ip_mreqn" "#include <netinet/in.h>
24067 "
24068 if test "x$ac_cv_type_struct_ip_mreqn" = xyes; then :
24069
24070
24071 $as_echo "#define HAVE_IP_MREQN /**/" >>confdefs.h
24072
24073 fi
24074
24075
24076 case $host in
24077   *-*-solaris* )
24078
24079 $as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
24080
24081
24082 $as_echo "#define _XOPEN_SOURCE 2" >>confdefs.h
24083
24084
24085 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
24086
24087      ;;
24088 esac
24089
24090 if test "$ac_cv_func_statfs" = yes ; then
24091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of arguments to statfs()" >&5
24092 $as_echo_n "checking number of arguments to statfs()... " >&6; }
24093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h.  */
24095 #include <unistd.h>
24096   #ifdef HAVE_SYS_PARAM_H
24097   #include <sys/param.h>
24098   #endif
24099   #ifdef HAVE_SYS_VFS_H
24100   #include <sys/vfs.h>
24101   #endif
24102   #ifdef HAVE_SYS_MOUNT_H
24103   #include <sys/mount.h>
24104   #endif
24105   #ifdef HAVE_SYS_STATFS_H
24106   #include <sys/statfs.h>
24107   #endif
24108 int
24109 main ()
24110 {
24111 struct statfs st;
24112   statfs(NULL, &st);
24113   ;
24114   return 0;
24115 }
24116 _ACEOF
24117 if ac_fn_c_try_compile "$LINENO"; then :
24118
24119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: 2" >&5
24120 $as_echo "2" >&6; }
24121
24122 $as_echo "#define STATFS_ARGS 2" >>confdefs.h
24123
24124 else
24125
24126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24127 /* end confdefs.h.  */
24128 #include <unistd.h>
24129   #ifdef HAVE_SYS_PARAM_H
24130   #include <sys/param.h>
24131   #endif
24132   #ifdef HAVE_SYS_VFS_H
24133   #include <sys/vfs.h>
24134   #endif
24135   #ifdef HAVE_SYS_MOUNT_H
24136   #include <sys/mount.h>
24137   #endif
24138   #ifdef HAVE_SYS_STATFS_H
24139   #include <sys/statfs.h>
24140   #endif
24141 int
24142 main ()
24143 {
24144 struct statfs st;
24145   statfs(NULL, &st, sizeof (st), 0);
24146   ;
24147   return 0;
24148 }
24149 _ACEOF
24150 if ac_fn_c_try_compile "$LINENO"; then :
24151
24152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: 4" >&5
24153 $as_echo "4" >&6; }
24154
24155 $as_echo "#define STATFS_ARGS 4" >>confdefs.h
24156
24157 else
24158
24159       { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
24160 $as_echo "unknown" >&6; }
24161       as_fn_error $? "unable to determine number of arguments to statfs()" "$LINENO" 5
24162 fi
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24164 fi
24165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24166 fi
24167
24168 #
24169 # Check whether to use an included printf
24170 #
24171
24172 # Check whether --enable-included-printf was given.
24173 if test "${enable_included_printf+set}" = set; then :
24174   enableval=$enable_included_printf; enable_included_printf="$enableval"
24175 fi
24176
24177
24178 need_included_printf=no
24179 if test "x$enable_included_printf" = "xyes" ; then
24180   need_included_printf=yes
24181 fi
24182 if test "$ac_cv_func_vsnprintf_c99" != "yes" ; then
24183   need_included_printf=yes
24184 fi
24185 if test "$ac_cv_func_printf_unix98" != "yes" ; then
24186   need_included_printf=yes
24187 fi
24188 if test "x$ac_cv_sizeof_long_long" = "x8" &&
24189    test -z "$glib_cv_long_long_format" ; then
24190   need_included_printf=yes
24191 fi
24192
24193 if test "x$enable_included_printf" = "xno" &&
24194    test "x$need_included_printf" = "xyes" ; then
24195   as_fn_error $? "
24196 *** Your C library's printf doesn't appear to have the features that
24197 *** GLib needs, but you specified --enable-included-printf=no." "$LINENO" 5
24198 fi
24199
24200 enable_included_printf=$need_included_printf
24201
24202  if test "$enable_included_printf" != "yes"; then
24203   HAVE_GOOD_PRINTF_TRUE=
24204   HAVE_GOOD_PRINTF_FALSE='#'
24205 else
24206   HAVE_GOOD_PRINTF_TRUE='#'
24207   HAVE_GOOD_PRINTF_FALSE=
24208 fi
24209
24210 if test "$enable_included_printf" != "yes" ; then
24211
24212 $as_echo "#define HAVE_GOOD_PRINTF 1" >>confdefs.h
24213
24214 else
24215   if test -z "$glib_cv_long_long_format" ; then
24216     glib_cv_long_long_format="ll"
24217   fi
24218   $as_echo "#define HAVE_VASPRINTF 1" >>confdefs.h
24219
24220 fi
24221
24222 # Checks needed for gnulib vasnprintf
24223
24224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
24225 $as_echo_n "checking for signed... " >&6; }
24226 if ${bh_cv_c_signed+:} false; then :
24227   $as_echo_n "(cached) " >&6
24228 else
24229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h.  */
24231
24232 int
24233 main ()
24234 {
24235 signed char x;
24236   ;
24237   return 0;
24238 }
24239 _ACEOF
24240 if ac_fn_c_try_compile "$LINENO"; then :
24241   bh_cv_c_signed=yes
24242 else
24243   bh_cv_c_signed=no
24244 fi
24245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24246 fi
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
24248 $as_echo "$bh_cv_c_signed" >&6; }
24249   if test $bh_cv_c_signed = no; then
24250
24251 $as_echo "#define signed /**/" >>confdefs.h
24252
24253   fi
24254
24255
24256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
24257 $as_echo_n "checking for long long... " >&6; }
24258 if ${ac_cv_type_long_long+:} false; then :
24259   $as_echo_n "(cached) " >&6
24260 else
24261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24262 /* end confdefs.h.  */
24263 long long ll = 1LL; int i = 63;
24264 int
24265 main ()
24266 {
24267 long long llmax = (long long) -1;
24268      return ll << i | ll >> i | llmax / ll | llmax % ll;
24269   ;
24270   return 0;
24271 }
24272 _ACEOF
24273 if ac_fn_c_try_link "$LINENO"; then :
24274   ac_cv_type_long_long=yes
24275 else
24276   ac_cv_type_long_long=no
24277 fi
24278 rm -f core conftest.err conftest.$ac_objext \
24279     conftest$ac_exeext conftest.$ac_ext
24280 fi
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
24282 $as_echo "$ac_cv_type_long_long" >&6; }
24283   if test $ac_cv_type_long_long = yes; then
24284
24285 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
24286
24287   fi
24288
24289
24290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
24291 $as_echo_n "checking for long double... " >&6; }
24292 if ${gt_cv_c_long_double+:} false; then :
24293   $as_echo_n "(cached) " >&6
24294 else
24295   if test "$GCC" = yes; then
24296        gt_cv_c_long_double=yes
24297      else
24298        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24299 /* end confdefs.h.  */
24300
24301          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
24302          long double foo = 0.0;
24303          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
24304          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
24305
24306 int
24307 main ()
24308 {
24309
24310   ;
24311   return 0;
24312 }
24313 _ACEOF
24314 if ac_fn_c_try_compile "$LINENO"; then :
24315   gt_cv_c_long_double=yes
24316 else
24317   gt_cv_c_long_double=no
24318 fi
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24320      fi
24321 fi
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
24323 $as_echo "$gt_cv_c_long_double" >&6; }
24324   if test $gt_cv_c_long_double = yes; then
24325
24326 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
24327
24328   fi
24329
24330
24331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
24332 $as_echo_n "checking for wchar_t... " >&6; }
24333 if ${gt_cv_c_wchar_t+:} false; then :
24334   $as_echo_n "(cached) " >&6
24335 else
24336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24337 /* end confdefs.h.  */
24338 #include <stddef.h>
24339        wchar_t foo = (wchar_t)'\0';
24340 int
24341 main ()
24342 {
24343
24344   ;
24345   return 0;
24346 }
24347 _ACEOF
24348 if ac_fn_c_try_compile "$LINENO"; then :
24349   gt_cv_c_wchar_t=yes
24350 else
24351   gt_cv_c_wchar_t=no
24352 fi
24353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24354 fi
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
24356 $as_echo "$gt_cv_c_wchar_t" >&6; }
24357   if test $gt_cv_c_wchar_t = yes; then
24358
24359 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
24360
24361   fi
24362
24363
24364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
24365 $as_echo_n "checking for wint_t... " >&6; }
24366 if ${gt_cv_c_wint_t+:} false; then :
24367   $as_echo_n "(cached) " >&6
24368 else
24369   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24370 /* end confdefs.h.  */
24371 #include <wchar.h>
24372        wint_t foo = (wchar_t)'\0';
24373 int
24374 main ()
24375 {
24376
24377   ;
24378   return 0;
24379 }
24380 _ACEOF
24381 if ac_fn_c_try_compile "$LINENO"; then :
24382   gt_cv_c_wint_t=yes
24383 else
24384   gt_cv_c_wint_t=no
24385 fi
24386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24387 fi
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
24389 $as_echo "$gt_cv_c_wint_t" >&6; }
24390   if test $gt_cv_c_wint_t = yes; then
24391
24392 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
24393
24394   fi
24395
24396 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
24397 if test "x$ac_cv_type_size_t" = xyes; then :
24398
24399 else
24400
24401 cat >>confdefs.h <<_ACEOF
24402 #define size_t unsigned int
24403 _ACEOF
24404
24405 fi
24406
24407 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24408 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
24409
24410 cat >>confdefs.h <<_ACEOF
24411 #define HAVE_PTRDIFF_T 1
24412 _ACEOF
24413
24414
24415 fi
24416
24417
24418   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
24419 $as_echo_n "checking for inttypes.h... " >&6; }
24420 if ${jm_ac_cv_header_inttypes_h+:} false; then :
24421   $as_echo_n "(cached) " >&6
24422 else
24423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24424 /* end confdefs.h.  */
24425 #include <sys/types.h>
24426 #include <inttypes.h>
24427 int
24428 main ()
24429 {
24430 uintmax_t i = (uintmax_t) -1;
24431   ;
24432   return 0;
24433 }
24434 _ACEOF
24435 if ac_fn_c_try_compile "$LINENO"; then :
24436   jm_ac_cv_header_inttypes_h=yes
24437 else
24438   jm_ac_cv_header_inttypes_h=no
24439 fi
24440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24441 fi
24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5
24443 $as_echo "$jm_ac_cv_header_inttypes_h" >&6; }
24444   if test $jm_ac_cv_header_inttypes_h = yes; then
24445
24446 cat >>confdefs.h <<_ACEOF
24447 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
24448 _ACEOF
24449
24450   fi
24451
24452
24453   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
24454 $as_echo_n "checking for stdint.h... " >&6; }
24455 if ${jm_ac_cv_header_stdint_h+:} false; then :
24456   $as_echo_n "(cached) " >&6
24457 else
24458   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24459 /* end confdefs.h.  */
24460 #include <sys/types.h>
24461 #include <stdint.h>
24462 int
24463 main ()
24464 {
24465 uintmax_t i = (uintmax_t) -1;
24466   ;
24467   return 0;
24468 }
24469 _ACEOF
24470 if ac_fn_c_try_compile "$LINENO"; then :
24471   jm_ac_cv_header_stdint_h=yes
24472 else
24473   jm_ac_cv_header_stdint_h=no
24474 fi
24475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476 fi
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5
24478 $as_echo "$jm_ac_cv_header_stdint_h" >&6; }
24479   if test $jm_ac_cv_header_stdint_h = yes; then
24480
24481 cat >>confdefs.h <<_ACEOF
24482 #define HAVE_STDINT_H_WITH_UINTMAX 1
24483 _ACEOF
24484
24485   fi
24486
24487
24488
24489
24490   if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
24491
24492     test $ac_cv_type_long_long = yes \
24493       && ac_type='long long' \
24494       || ac_type='long'
24495
24496 cat >>confdefs.h <<_ACEOF
24497 #define intmax_t $ac_type
24498 _ACEOF
24499
24500   else
24501
24502 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
24503
24504   fi
24505
24506 for ac_func in snprintf wcslen
24507 do :
24508   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24510 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24511   cat >>confdefs.h <<_ACEOF
24512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24513 _ACEOF
24514
24515 fi
24516 done
24517
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C99 snprintf" >&5
24519 $as_echo_n "checking for C99 snprintf... " >&6; }
24520 if ${ac_cv_func_snprintf_c99+:} false; then :
24521   $as_echo_n "(cached) " >&6
24522 else
24523   if test "$cross_compiling" = yes; then :
24524   ac_cv_func_snprintf_c99=no
24525 else
24526   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h.  */
24528 #include <stdio.h>
24529 #include <stdarg.h>
24530
24531 int
24532 doit()
24533 {
24534   char buffer[32];
24535   va_list args;
24536   int r;
24537
24538   r = snprintf(buffer, 5, "1234567");
24539
24540   if (r != 7)
24541     exit(1);
24542
24543   r = snprintf(buffer, 0, "1234567");
24544
24545   if (r != 7)
24546     exit(1);
24547
24548   r = snprintf(NULL, 0, "1234567");
24549
24550   if (r != 7)
24551     exit(1);
24552
24553   exit(0);
24554 }
24555
24556 int
24557 main(void)
24558 {
24559   doit();
24560   exit(1);
24561 }
24562 _ACEOF
24563 if ac_fn_c_try_run "$LINENO"; then :
24564   ac_cv_func_snprintf_c99=yes
24565 else
24566   ac_cv_func_snprintf_c99=no
24567 fi
24568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24569   conftest.$ac_objext conftest.beam conftest.$ac_ext
24570 fi
24571
24572 fi
24573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_snprintf_c99" >&5
24574 $as_echo "$ac_cv_func_snprintf_c99" >&6; }
24575 if test $ac_cv_func_snprintf_c99 = yes; then
24576
24577 $as_echo "#define HAVE_C99_SNPRINTF 1" >>confdefs.h
24578
24579 fi
24580
24581
24582 # Check if bcopy can be used for overlapping copies, if memmove isn't found.
24583 # The check is borrowed from the PERL Configure script.
24584 if test "$ac_cv_func_memmove" != "yes"; then
24585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bcopy can handle overlapping copies" >&5
24586 $as_echo_n "checking whether bcopy can handle overlapping copies... " >&6; }
24587 if ${glib_cv_working_bcopy+:} false; then :
24588   $as_echo_n "(cached) " >&6
24589 else
24590   if test "$cross_compiling" = yes; then :
24591   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24593 as_fn_error $? "cannot run test program while cross compiling
24594 See \`config.log' for more details" "$LINENO" 5; }
24595 else
24596   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24597 /* end confdefs.h.  */
24598
24599       int main() {
24600         char buf[128], abc[128], *b;
24601         int len, off, align;
24602         bcopy("abcdefghijklmnopqrstuvwxyz0123456789", abc, 36);
24603         for (align = 7; align >= 0; align--) {
24604           for (len = 36; len; len--) {
24605             b = buf+align; bcopy(abc, b, len);
24606             for (off = 1; off <= len; off++) {
24607               bcopy(b, b+off, len); bcopy(b+off, b, len);
24608                 if (bcmp(b, abc, len)) return(1);
24609             }
24610           }
24611         }
24612         return(0);
24613       }
24614 _ACEOF
24615 if ac_fn_c_try_run "$LINENO"; then :
24616   glib_cv_working_bcopy=yes
24617 else
24618   glib_cv_working_bcopy=no
24619 fi
24620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24621   conftest.$ac_objext conftest.beam conftest.$ac_ext
24622 fi
24623
24624 fi
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_working_bcopy" >&5
24626 $as_echo "$glib_cv_working_bcopy" >&6; }
24627
24628   if test "x${glib_cv_working_bcopy+set}" != "xset" ; then
24629   as_fn_error $? "glib_cv_working_bcopy must be set in cache file when cross-compiling." "$LINENO" 5
24630 fi
24631
24632   if test "$glib_cv_working_bcopy" = "yes"; then
24633
24634 $as_echo "#define HAVE_WORKING_BCOPY 1" >>confdefs.h
24635
24636   fi
24637 fi
24638
24639 # Check if <sys/select.h> needs to be included for fd_set
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fd_set" >&5
24641 $as_echo_n "checking for fd_set... " >&6; }
24642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24643 /* end confdefs.h.  */
24644 #include <sys/types.h>
24645 int
24646 main ()
24647 {
24648 fd_set readMask, writeMask;
24649   ;
24650   return 0;
24651 }
24652 _ACEOF
24653 if ac_fn_c_try_compile "$LINENO"; then :
24654   gtk_ok=yes
24655 else
24656   gtk_ok=no
24657 fi
24658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24659 if test "$gtk_ok" = "yes"; then
24660     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/types.h" >&5
24661 $as_echo "yes, found in sys/types.h" >&6; }
24662 else
24663     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24664 /* end confdefs.h.  */
24665 #include <sys/select.h>
24666
24667 _ACEOF
24668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24669   $EGREP "fd_set" >/dev/null 2>&1; then :
24670   gtk_ok=yes
24671 fi
24672 rm -f conftest*
24673
24674     if test "$gtk_ok" = "yes"; then
24675         # *** FIXME: give it a different name
24676
24677 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
24678
24679         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, found in sys/select.h" >&5
24680 $as_echo "yes, found in sys/select.h" >&6; }
24681     else
24682
24683 $as_echo "#define NO_FD_SET 1" >>confdefs.h
24684
24685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24686 $as_echo "no" >&6; }
24687     fi
24688 fi
24689
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether realloc (NULL,) will work" >&5
24691 $as_echo_n "checking whether realloc (NULL,) will work... " >&6; }
24692 if ${glib_cv_sane_realloc+:} false; then :
24693   $as_echo_n "(cached) " >&6
24694 else
24695
24696         if test "$cross_compiling" = yes; then :
24697   glib_cv_sane_realloc=yes
24698 else
24699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24700 /* end confdefs.h.  */
24701 #include <stdlib.h>
24702         int main() {
24703           return realloc (0, sizeof (int)) == 0;
24704         }
24705 _ACEOF
24706 if ac_fn_c_try_run "$LINENO"; then :
24707   glib_cv_sane_realloc=yes
24708 else
24709   glib_cv_sane_realloc=no
24710 fi
24711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24712   conftest.$ac_objext conftest.beam conftest.$ac_ext
24713 fi
24714
24715
24716 fi
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_sane_realloc" >&5
24718 $as_echo "$glib_cv_sane_realloc" >&6; }
24719 if test x$glib_cv_sane_realloc = xyes; then
24720
24721 $as_echo "#define REALLOC_0_WORKS 1" >>confdefs.h
24722
24723 fi
24724
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5
24726 $as_echo_n "checking for nl_langinfo (CODESET)... " >&6; }
24727 if ${glib_cv_langinfo_codeset+:} false; then :
24728   $as_echo_n "(cached) " >&6
24729 else
24730
24731         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24732 /* end confdefs.h.  */
24733 #include <langinfo.h>
24734 int
24735 main ()
24736 {
24737 char *codeset = nl_langinfo (CODESET);
24738   ;
24739   return 0;
24740 }
24741 _ACEOF
24742 if ac_fn_c_try_compile "$LINENO"; then :
24743   glib_cv_langinfo_codeset=yes
24744 else
24745   glib_cv_langinfo_codeset=no
24746 fi
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24748 fi
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_codeset" >&5
24750 $as_echo "$glib_cv_langinfo_codeset" >&6; }
24751 if test x$glib_cv_langinfo_codeset = xyes; then
24752
24753 $as_echo "#define HAVE_CODESET 1" >>confdefs.h
24754
24755 fi
24756
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (PM_STR)" >&5
24758 $as_echo_n "checking for nl_langinfo (PM_STR)... " >&6; }
24759 if ${glib_cv_langinfo_time+:} false; then :
24760   $as_echo_n "(cached) " >&6
24761 else
24762
24763         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24764 /* end confdefs.h.  */
24765 #include <langinfo.h>
24766 int
24767 main ()
24768 {
24769 char *str;
24770                  str = nl_langinfo (PM_STR);
24771                  str = nl_langinfo (D_T_FMT);
24772                  str = nl_langinfo (D_FMT);
24773                  str = nl_langinfo (T_FMT);
24774                  str = nl_langinfo (T_FMT_AMPM);
24775                  str = nl_langinfo (MON_1);
24776                  str = nl_langinfo (ABMON_12);
24777                  str = nl_langinfo (DAY_1);
24778                  str = nl_langinfo (ABDAY_7);
24779   ;
24780   return 0;
24781 }
24782 _ACEOF
24783 if ac_fn_c_try_compile "$LINENO"; then :
24784   glib_cv_langinfo_time=yes
24785 else
24786   glib_cv_langinfo_time=no
24787 fi
24788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24789 fi
24790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_time" >&5
24791 $as_echo "$glib_cv_langinfo_time" >&6; }
24792 if test x$glib_cv_langinfo_time = xyes; then
24793
24794 $as_echo "#define HAVE_LANGINFO_TIME 1" >>confdefs.h
24795
24796 fi
24797
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)" >&5
24799 $as_echo_n "checking for nl_langinfo (_NL_CTYPE_OUTDIGITn_MB)... " >&6; }
24800 if ${glib_cv_langinfo_outdigit+:} false; then :
24801   $as_echo_n "(cached) " >&6
24802 else
24803
24804         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805 /* end confdefs.h.  */
24806 #include <langinfo.h>
24807 int
24808 main ()
24809 {
24810 char *str;
24811                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT0_MB);
24812                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT1_MB);
24813                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT2_MB);
24814                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT3_MB);
24815                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT4_MB);
24816                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT5_MB);
24817                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT6_MB);
24818                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT7_MB);
24819                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT8_MB);
24820                  str = nl_langinfo (_NL_CTYPE_OUTDIGIT9_MB);
24821   ;
24822   return 0;
24823 }
24824 _ACEOF
24825 if ac_fn_c_try_compile "$LINENO"; then :
24826   glib_cv_langinfo_outdigit=yes
24827 else
24828   glib_cv_langinfo_outdigit=no
24829 fi
24830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24831 fi
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_langinfo_outdigit" >&5
24833 $as_echo "$glib_cv_langinfo_outdigit" >&6; }
24834 if test x$glib_cv_langinfo_outdigit = xyes; then
24835
24836 $as_echo "#define HAVE_LANGINFO_OUTDIGIT 1" >>confdefs.h
24837
24838 fi
24839
24840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a compliant posix_memalign() implementation" >&5
24841 $as_echo_n "checking for a compliant posix_memalign() implementation... " >&6; }
24842 if ${glib_cv_compliant_posix_memalign+:} false; then :
24843   $as_echo_n "(cached) " >&6
24844 else
24845
24846     glib_cv_compliant_posix_memalign=0
24847     if test "$ac_cv_func_posix_memalign" = "yes" ; then
24848         if test "$cross_compiling" = yes; then :
24849   :
24850 else
24851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h.  */
24853
24854                 #define _XOPEN_SOURCE 600
24855                 #include <stdlib.h> /* posix_memalign() should be defined here */
24856                 /* some systems break if #include <malloc.h> used */
24857                 static void test_memalign (size_t boundary, size_t size) {
24858                     void *mem = 0;
24859                     if (posix_memalign (&mem, boundary, size) != 0 || !mem)
24860                         exit (1);
24861                     else
24862                       free (mem);
24863                 }
24864                 int main() {
24865                     test_memalign (  128,   128 - 2 * sizeof (void*));
24866                     test_memalign (  256,   256 - 2 * sizeof (void*));
24867                     test_memalign (  512,   512 - 2 * sizeof (void*));
24868                     test_memalign ( 1024,  1024 - 2 * sizeof (void*));
24869                     test_memalign ( 2048,  2048 - 2 * sizeof (void*));
24870                     test_memalign ( 4096,  4096 - 2 * sizeof (void*));
24871                     test_memalign ( 8192,  8192 - 2 * sizeof (void*));
24872                     test_memalign (16384, 16384 - 2 * sizeof (void*));
24873                     test_memalign (32768, 32768 - 2 * sizeof (void*));
24874                     exit (0); /* success */
24875                 }
24876
24877 _ACEOF
24878 if ac_fn_c_try_run "$LINENO"; then :
24879   glib_cv_compliant_posix_memalign=1
24880 fi
24881 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24882   conftest.$ac_objext conftest.beam conftest.$ac_ext
24883 fi
24884
24885       :
24886     fi
24887
24888 fi
24889
24890 if test "$glib_cv_compliant_posix_memalign" = "1"; then
24891     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24892 $as_echo "yes" >&6; }
24893
24894 $as_echo "#define POSIX_MEMALIGN_WITH_COMPLIANT_ALLOCS 1" >>confdefs.h
24895
24896 else
24897     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24898 $as_echo "no" >&6; }
24899 fi
24900
24901
24902 # Check for strlcpy
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenBSD strlcpy/strlcat" >&5
24904 $as_echo_n "checking for OpenBSD strlcpy/strlcat... " >&6; }
24905 if ${glib_cv_have_strlcpy+:} false; then :
24906   $as_echo_n "(cached) " >&6
24907 else
24908
24909 if test "$cross_compiling" = yes; then :
24910   glib_cv_have_strlcpy=no
24911 else
24912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24913 /* end confdefs.h.  */
24914 #include <stdlib.h>
24915 #include <string.h>
24916 int main() {
24917   char p[10];
24918   (void) strlcpy (p, "hi", 10);
24919   if (strlcat (p, "bye", 0) != 3)
24920     return 1;
24921   return 0;
24922 }
24923 _ACEOF
24924 if ac_fn_c_try_run "$LINENO"; then :
24925   glib_cv_have_strlcpy=yes
24926 else
24927   glib_cv_have_strlcpy=no
24928 fi
24929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24930   conftest.$ac_objext conftest.beam conftest.$ac_ext
24931 fi
24932
24933 fi
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_have_strlcpy" >&5
24935 $as_echo "$glib_cv_have_strlcpy" >&6; }
24936 if test "$glib_cv_have_strlcpy" = "yes"; then
24937
24938 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
24939
24940 fi
24941
24942
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of va_copy()" >&5
24944 $as_echo_n "checking for an implementation of va_copy()... " >&6; }
24945 if ${glib_cv_va_copy+:} false; then :
24946   $as_echo_n "(cached) " >&6
24947 else
24948
24949         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24950 /* end confdefs.h.  */
24951 #include <stdarg.h>
24952 #include <stdlib.h>
24953         void f (int i, ...) {
24954         va_list args1, args2;
24955         va_start (args1, i);
24956         va_copy (args2, args1);
24957         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24958           exit (1);
24959         va_end (args1); va_end (args2);
24960         }
24961         int main() {
24962           f (0, 42);
24963           return 0;
24964         }
24965 _ACEOF
24966 if ac_fn_c_try_link "$LINENO"; then :
24967   glib_cv_va_copy=yes
24968 else
24969   glib_cv_va_copy=no
24970 fi
24971 rm -f core conftest.err conftest.$ac_objext \
24972     conftest$ac_exeext conftest.$ac_ext
24973
24974 fi
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_copy" >&5
24976 $as_echo "$glib_cv_va_copy" >&6; }
24977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an implementation of __va_copy()" >&5
24978 $as_echo_n "checking for an implementation of __va_copy()... " >&6; }
24979 if ${glib_cv___va_copy+:} false; then :
24980   $as_echo_n "(cached) " >&6
24981 else
24982
24983         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24984 /* end confdefs.h.  */
24985 #include <stdarg.h>
24986 #include <stdlib.h>
24987         void f (int i, ...) {
24988         va_list args1, args2;
24989         va_start (args1, i);
24990         __va_copy (args2, args1);
24991         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
24992           exit (1);
24993         va_end (args1); va_end (args2);
24994         }
24995         int main() {
24996           f (0, 42);
24997           return 0;
24998         }
24999 _ACEOF
25000 if ac_fn_c_try_link "$LINENO"; then :
25001   glib_cv___va_copy=yes
25002 else
25003   glib_cv___va_copy=no
25004 fi
25005 rm -f core conftest.err conftest.$ac_objext \
25006     conftest$ac_exeext conftest.$ac_ext
25007
25008 fi
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv___va_copy" >&5
25010 $as_echo "$glib_cv___va_copy" >&6; }
25011
25012 if test "x$glib_cv_va_copy" = "xyes"; then
25013   g_va_copy_func=va_copy
25014 else if test "x$glib_cv___va_copy" = "xyes"; then
25015   g_va_copy_func=__va_copy
25016 fi
25017 fi
25018
25019 if test -n "$g_va_copy_func"; then
25020
25021 cat >>confdefs.h <<_ACEOF
25022 #define G_VA_COPY $g_va_copy_func
25023 _ACEOF
25024
25025 fi
25026
25027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
25028 $as_echo_n "checking whether va_lists can be copied by value... " >&6; }
25029 if ${glib_cv_va_val_copy+:} false; then :
25030   $as_echo_n "(cached) " >&6
25031 else
25032
25033         if test "$cross_compiling" = yes; then :
25034   glib_cv_va_val_copy=yes
25035 else
25036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25037 /* end confdefs.h.  */
25038 #include <stdarg.h>
25039 #include <stdlib.h>
25040         void f (int i, ...) {
25041         va_list args1, args2;
25042         va_start (args1, i);
25043         args2 = args1;
25044         if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
25045           exit (1);
25046         va_end (args1); va_end (args2);
25047         }
25048         int main() {
25049           f (0, 42);
25050           return 0;
25051         }
25052 _ACEOF
25053 if ac_fn_c_try_run "$LINENO"; then :
25054   glib_cv_va_val_copy=yes
25055 else
25056   glib_cv_va_val_copy=no
25057 fi
25058 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25059   conftest.$ac_objext conftest.beam conftest.$ac_ext
25060 fi
25061
25062
25063 fi
25064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_va_val_copy" >&5
25065 $as_echo "$glib_cv_va_val_copy" >&6; }
25066
25067 if test "x$glib_cv_va_val_copy" = "xno"; then
25068
25069 $as_echo "#define G_VA_COPY_AS_ARRAY 1" >>confdefs.h
25070
25071 fi
25072
25073 G_MODULE_LIBS=
25074 G_MODULE_LIBS_EXTRA=
25075 G_MODULE_PLUGIN_LIBS=
25076 if test x"$glib_native_win32" = xyes; then
25077     G_MODULE_LDFLAGS=
25078 else
25079   export SED
25080   G_MODULE_LDFLAGS=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
25081 fi
25082 G_MODULE_NEED_USCORE=0
25083 G_MODULE_BROKEN_RTLD_GLOBAL=0
25084 G_MODULE_HAVE_DLERROR=0
25085 if test -z "$G_MODULE_IMPL"; then
25086   case "$host" in
25087   *-*-mingw*|*-*-cygwin*) G_MODULE_IMPL=G_MODULE_IMPL_WIN32 ;;
25088   esac
25089 fi
25090 if test -z "$G_MODULE_IMPL"; then
25091   case "$host" in
25092   *-*-aix*) G_MODULE_IMPL=G_MODULE_IMPL_AR ;;
25093   esac
25094 fi
25095 if test -z "$G_MODULE_IMPL"; then
25096         ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
25097 if test "x$ac_cv_func_dlopen" = xyes; then :
25098   ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym"
25099 if test "x$ac_cv_func_dlsym" = xyes; then :
25100   G_MODULE_IMPL=G_MODULE_IMPL_DL
25101 fi
25102
25103 fi
25104
25105 fi
25106 if test -z "$G_MODULE_IMPL" && test "x$glib_native_beos" = "xyes"; then
25107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for load_image in -lroot" >&5
25108 $as_echo_n "checking for load_image in -lroot... " >&6; }
25109 if ${ac_cv_lib_root_load_image+:} false; then :
25110   $as_echo_n "(cached) " >&6
25111 else
25112   ac_check_lib_save_LIBS=$LIBS
25113 LIBS="-lroot  $LIBS"
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h.  */
25116
25117 /* Override any GCC internal prototype to avoid an error.
25118    Use char because int might match the return type of a GCC
25119    builtin and then its argument prototype would still apply.  */
25120 #ifdef __cplusplus
25121 extern "C"
25122 #endif
25123 char load_image ();
25124 int
25125 main ()
25126 {
25127 return load_image ();
25128   ;
25129   return 0;
25130 }
25131 _ACEOF
25132 if ac_fn_c_try_link "$LINENO"; then :
25133   ac_cv_lib_root_load_image=yes
25134 else
25135   ac_cv_lib_root_load_image=no
25136 fi
25137 rm -f core conftest.err conftest.$ac_objext \
25138     conftest$ac_exeext conftest.$ac_ext
25139 LIBS=$ac_check_lib_save_LIBS
25140 fi
25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_root_load_image" >&5
25142 $as_echo "$ac_cv_lib_root_load_image" >&6; }
25143 if test "x$ac_cv_lib_root_load_image" = xyes; then :
25144   G_MODULE_LIBS="-lbe -lroot -lglib-2.0 "
25145       G_MODULE_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
25146       G_MODULE_PLUGIN_LIBS="-L\$(top_builddir_full)/gmodule/.libs -lgmodule"
25147       G_MODULE_IMPL=G_MODULE_IMPL_BEOS
25148 fi
25149
25150 fi
25151 if test -z "$G_MODULE_IMPL"; then
25152         ac_fn_c_check_func "$LINENO" "NSLinkModule" "ac_cv_func_NSLinkModule"
25153 if test "x$ac_cv_func_NSLinkModule" = xyes; then :
25154   G_MODULE_IMPL=G_MODULE_IMPL_DYLD
25155                        G_MODULE_NEED_USCORE=1
25156 fi
25157
25158 fi
25159 if test -z "$G_MODULE_IMPL"; then
25160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
25161 $as_echo_n "checking for dlopen in -ldl... " >&6; }
25162 if ${ac_cv_lib_dl_dlopen+:} false; then :
25163   $as_echo_n "(cached) " >&6
25164 else
25165   ac_check_lib_save_LIBS=$LIBS
25166 LIBS="-ldl  $LIBS"
25167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25168 /* end confdefs.h.  */
25169
25170 /* Override any GCC internal prototype to avoid an error.
25171    Use char because int might match the return type of a GCC
25172    builtin and then its argument prototype would still apply.  */
25173 #ifdef __cplusplus
25174 extern "C"
25175 #endif
25176 char dlopen ();
25177 int
25178 main ()
25179 {
25180 return dlopen ();
25181   ;
25182   return 0;
25183 }
25184 _ACEOF
25185 if ac_fn_c_try_link "$LINENO"; then :
25186   ac_cv_lib_dl_dlopen=yes
25187 else
25188   ac_cv_lib_dl_dlopen=no
25189 fi
25190 rm -f core conftest.err conftest.$ac_objext \
25191     conftest$ac_exeext conftest.$ac_ext
25192 LIBS=$ac_check_lib_save_LIBS
25193 fi
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
25195 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
25196 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
25197   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
25198 $as_echo_n "checking for dlsym in -ldl... " >&6; }
25199 if ${ac_cv_lib_dl_dlsym+:} false; then :
25200   $as_echo_n "(cached) " >&6
25201 else
25202   ac_check_lib_save_LIBS=$LIBS
25203 LIBS="-ldl  $LIBS"
25204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25205 /* end confdefs.h.  */
25206
25207 /* Override any GCC internal prototype to avoid an error.
25208    Use char because int might match the return type of a GCC
25209    builtin and then its argument prototype would still apply.  */
25210 #ifdef __cplusplus
25211 extern "C"
25212 #endif
25213 char dlsym ();
25214 int
25215 main ()
25216 {
25217 return dlsym ();
25218   ;
25219   return 0;
25220 }
25221 _ACEOF
25222 if ac_fn_c_try_link "$LINENO"; then :
25223   ac_cv_lib_dl_dlsym=yes
25224 else
25225   ac_cv_lib_dl_dlsym=no
25226 fi
25227 rm -f core conftest.err conftest.$ac_objext \
25228     conftest$ac_exeext conftest.$ac_ext
25229 LIBS=$ac_check_lib_save_LIBS
25230 fi
25231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
25232 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
25233 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
25234   G_MODULE_LIBS=-ldl
25235                                    G_MODULE_IMPL=G_MODULE_IMPL_DL
25236 fi
25237
25238 fi
25239
25240 fi
25241 if test -z "$G_MODULE_IMPL"; then
25242         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
25243 $as_echo_n "checking for shl_load in -ldld... " >&6; }
25244 if ${ac_cv_lib_dld_shl_load+:} false; then :
25245   $as_echo_n "(cached) " >&6
25246 else
25247   ac_check_lib_save_LIBS=$LIBS
25248 LIBS="-ldld  $LIBS"
25249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25250 /* end confdefs.h.  */
25251
25252 /* Override any GCC internal prototype to avoid an error.
25253    Use char because int might match the return type of a GCC
25254    builtin and then its argument prototype would still apply.  */
25255 #ifdef __cplusplus
25256 extern "C"
25257 #endif
25258 char shl_load ();
25259 int
25260 main ()
25261 {
25262 return shl_load ();
25263   ;
25264   return 0;
25265 }
25266 _ACEOF
25267 if ac_fn_c_try_link "$LINENO"; then :
25268   ac_cv_lib_dld_shl_load=yes
25269 else
25270   ac_cv_lib_dld_shl_load=no
25271 fi
25272 rm -f core conftest.err conftest.$ac_objext \
25273     conftest$ac_exeext conftest.$ac_ext
25274 LIBS=$ac_check_lib_save_LIBS
25275 fi
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
25277 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
25278 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
25279   G_MODULE_LIBS=-ldld
25280                 G_MODULE_IMPL=G_MODULE_IMPL_DLD
25281 fi
25282
25283 fi
25284 if test "$G_MODULE_IMPL" = "G_MODULE_IMPL_DL"; then
25285         LIBS_orig="$LIBS"
25286         LDFLAGS_orig="$LDFLAGS"
25287         LIBS="$G_MODULE_LIBS $LIBS"
25288         LDFLAGS="$LDFLAGS $G_MODULE_LDFLAGS"
25289         echo "void glib_plugin_test(void) { }" > plugin.c
25290         ${SHELL} ./libtool --mode=compile --tag=CC ${CC} ${CFLAGS} \
25291                 ${CPPFLAGS} -c -o plugin.lo plugin.c >/dev/null 2>&1
25292         ${SHELL} ./libtool --mode=link --tag=CC ${CC} ${CFLAGS} \
25293                 ${LDFLAGS} -module -o plugin.la -export-dynamic \
25294                 -shrext ".o" -avoid-version plugin.lo \
25295                 -rpath /dont/care >/dev/null 2>&1
25296         eval `./libtool --config | grep ^objdir`
25297         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTLD_GLOBAL brokenness" >&5
25298 $as_echo_n "checking for RTLD_GLOBAL brokenness... " >&6; }
25299 if ${glib_cv_rtldglobal_broken+:} false; then :
25300   $as_echo_n "(cached) " >&6
25301 else
25302
25303                 if test "$cross_compiling" = yes; then :
25304   glib_cv_rtldglobal_broken=no
25305 else
25306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25307 /* end confdefs.h.  */
25308
25309 #include <dlfcn.h>
25310 #ifndef RTLD_GLOBAL
25311 #  define RTLD_GLOBAL 0
25312 #endif
25313 #ifndef RTLD_LAZY
25314 #  define RTLD_LAZY 0
25315 #endif
25316 int glib_plugin_test;
25317 int main () {
25318     void *handle, *global, *local;
25319     global = &glib_plugin_test;
25320     handle = dlopen ("./$objdir/plugin.o", RTLD_GLOBAL | RTLD_LAZY);
25321     if (!handle) return 0;
25322     local = dlsym (handle, "glib_plugin_test");
25323     return global == local;
25324 }
25325 _ACEOF
25326 if ac_fn_c_try_run "$LINENO"; then :
25327   glib_cv_rtldglobal_broken=no
25328 else
25329   glib_cv_rtldglobal_broken=yes
25330 fi
25331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25332   conftest.$ac_objext conftest.beam conftest.$ac_ext
25333 fi
25334
25335                 rm -f plugin.c plugin.o plugin.lo plugin.la ${objdir}/plugin.*
25336                 rmdir ${objdir} 2>/dev/null
25337
25338 fi
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_rtldglobal_broken" >&5
25340 $as_echo "$glib_cv_rtldglobal_broken" >&6; }
25341         if test "x$glib_cv_rtldglobal_broken" = "xyes"; then
25342                 G_MODULE_BROKEN_RTLD_GLOBAL=1
25343         else
25344                 G_MODULE_BROKEN_RTLD_GLOBAL=0
25345         fi
25346         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preceeding underscore in symbols" >&5
25347 $as_echo_n "checking for preceeding underscore in symbols... " >&6; }
25348 if ${glib_cv_uscore+:} false; then :
25349   $as_echo_n "(cached) " >&6
25350 else
25351
25352                 if test "$cross_compiling" = yes; then :
25353   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25355 as_fn_error $? "cannot run test program while cross compiling
25356 See \`config.log' for more details" "$LINENO" 5; }
25357 else
25358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25359 /* end confdefs.h.  */
25360 #include <dlfcn.h>
25361                 int glib_underscore_test (void) { return 42; }
25362                 int main() {
25363                   void *f1 = (void*)0, *f2 = (void*)0, *handle;
25364                   handle = dlopen ((void*)0, 0);
25365                   if (handle) {
25366                     f1 = dlsym (handle, "glib_underscore_test");
25367                     f2 = dlsym (handle, "_glib_underscore_test");
25368                   } return (!f2 || f1);
25369                 }
25370 _ACEOF
25371 if ac_fn_c_try_run "$LINENO"; then :
25372   glib_cv_uscore=yes
25373 else
25374   glib_cv_uscore=no
25375 fi
25376 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25377   conftest.$ac_objext conftest.beam conftest.$ac_ext
25378 fi
25379
25380                 rm -f plugin.c plugin.$ac_objext plugin.lo
25381
25382 fi
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_uscore" >&5
25384 $as_echo "$glib_cv_uscore" >&6; }
25385         if test "x${glib_cv_uscore+set}" != "xset" ; then
25386   as_fn_error $? "glib_cv_uscore must be set in cache file when cross-compiling." "$LINENO" 5
25387 fi
25388
25389         if test "x$glib_cv_uscore" = "xyes"; then
25390                 G_MODULE_NEED_USCORE=1
25391         else
25392                 G_MODULE_NEED_USCORE=0
25393         fi
25394
25395         LDFLAGS="$LDFLAGS_orig"
25396         ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
25397 if test "x$ac_cv_func_dlerror" = xyes; then :
25398   G_MODULE_HAVE_DLERROR=1
25399 else
25400   G_MODULE_HAVE_DLERROR=0
25401 fi
25402
25403         LIBS="$LIBS_orig"
25404 fi
25405 if test -z "$G_MODULE_IMPL"; then
25406         G_MODULE_IMPL=0
25407         G_MODULE_SUPPORTED=false
25408 else
25409         G_MODULE_SUPPORTED=true
25410 fi
25411
25412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of module shared libraries" >&5
25413 $as_echo_n "checking for the suffix of module shared libraries... " >&6; }
25414 export SED
25415 shrext_cmds=`./libtool --config | grep '^shrext_cmds='`
25416 eval $shrext_cmds
25417 module=yes eval std_shrext=$shrext_cmds
25418 # chop the initial dot
25419 glib_gmodule_suffix=`echo $std_shrext | sed 's/^\.//'`
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$glib_gmodule_suffix" >&5
25421 $as_echo ".$glib_gmodule_suffix" >&6; }
25422 # any reason it may fail?
25423 if test "x$glib_gmodule_suffix" = x; then
25424         as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
25425 fi
25426
25427
25428
25429
25430
25431
25432
25433
25434
25435
25436
25437
25438
25439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gspawn implementation" >&5
25440 $as_echo_n "checking for gspawn implementation... " >&6; }
25441 case "$host" in
25442   *-*-mingw*)
25443     GSPAWN=gspawn-win32.lo
25444     ;;
25445   *)
25446     GSPAWN=gspawn.lo
25447     ;;
25448 esac
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPAWN" >&5
25450 $as_echo "$GSPAWN" >&6; }
25451
25452
25453
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIOChannel implementation" >&5
25455 $as_echo_n "checking for GIOChannel implementation... " >&6; }
25456 case "$host" in
25457   *-*-mingw*)
25458     GIO=giowin32.lo
25459     ;;
25460   *)
25461     GIO=giounix.lo
25462     ;;
25463 esac
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIO" >&5
25465 $as_echo "$GIO" >&6; }
25466
25467
25468
25469
25470 # Check whether --with-gio-module-dir was given.
25471 if test "${with_gio_module_dir+set}" = set; then :
25472   withval=$with_gio_module_dir;
25473 else
25474   with_gio_module_dir='${libdir}/gio/modules'
25475 fi
25476
25477 GIO_MODULE_DIR=$with_gio_module_dir
25478
25479
25480 # Check whether --enable-selinux was given.
25481 if test "${enable_selinux+set}" = set; then :
25482   enableval=$enable_selinux;
25483 fi
25484
25485 msg_selinux=no
25486 SELINUX_LIBS=
25487 if test "x$enable_selinux" != "xno"; then
25488
25489  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
25490 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
25491 if ${ac_cv_lib_selinux_is_selinux_enabled+:} false; then :
25492   $as_echo_n "(cached) " >&6
25493 else
25494   ac_check_lib_save_LIBS=$LIBS
25495 LIBS="-lselinux  $LIBS"
25496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25497 /* end confdefs.h.  */
25498
25499 /* Override any GCC internal prototype to avoid an error.
25500    Use char because int might match the return type of a GCC
25501    builtin and then its argument prototype would still apply.  */
25502 #ifdef __cplusplus
25503 extern "C"
25504 #endif
25505 char is_selinux_enabled ();
25506 int
25507 main ()
25508 {
25509 return is_selinux_enabled ();
25510   ;
25511   return 0;
25512 }
25513 _ACEOF
25514 if ac_fn_c_try_link "$LINENO"; then :
25515   ac_cv_lib_selinux_is_selinux_enabled=yes
25516 else
25517   ac_cv_lib_selinux_is_selinux_enabled=no
25518 fi
25519 rm -f core conftest.err conftest.$ac_objext \
25520     conftest$ac_exeext conftest.$ac_ext
25521 LIBS=$ac_check_lib_save_LIBS
25522 fi
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
25524 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
25525 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes; then :
25526   for ac_header in selinux/selinux.h
25527 do :
25528   ac_fn_c_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
25529 if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
25530   cat >>confdefs.h <<_ACEOF
25531 #define HAVE_SELINUX_SELINUX_H 1
25532 _ACEOF
25533  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon_raw in -lselinux" >&5
25534 $as_echo_n "checking for lgetfilecon_raw in -lselinux... " >&6; }
25535 if ${ac_cv_lib_selinux_lgetfilecon_raw+:} false; then :
25536   $as_echo_n "(cached) " >&6
25537 else
25538   ac_check_lib_save_LIBS=$LIBS
25539 LIBS="-lselinux  $LIBS"
25540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25541 /* end confdefs.h.  */
25542
25543 /* Override any GCC internal prototype to avoid an error.
25544    Use char because int might match the return type of a GCC
25545    builtin and then its argument prototype would still apply.  */
25546 #ifdef __cplusplus
25547 extern "C"
25548 #endif
25549 char lgetfilecon_raw ();
25550 int
25551 main ()
25552 {
25553 return lgetfilecon_raw ();
25554   ;
25555   return 0;
25556 }
25557 _ACEOF
25558 if ac_fn_c_try_link "$LINENO"; then :
25559   ac_cv_lib_selinux_lgetfilecon_raw=yes
25560 else
25561   ac_cv_lib_selinux_lgetfilecon_raw=no
25562 fi
25563 rm -f core conftest.err conftest.$ac_objext \
25564     conftest$ac_exeext conftest.$ac_ext
25565 LIBS=$ac_check_lib_save_LIBS
25566 fi
25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon_raw" >&5
25568 $as_echo "$ac_cv_lib_selinux_lgetfilecon_raw" >&6; }
25569 if test "x$ac_cv_lib_selinux_lgetfilecon_raw" = xyes; then :
25570
25571 $as_echo "#define HAVE_SELINUX 1" >>confdefs.h
25572
25573         SELINUX_LIBS="-lselinux"
25574         msg_selinux=yes
25575 fi
25576
25577
25578 fi
25579
25580 done
25581
25582
25583 fi
25584
25585 fi
25586
25587
25588 inotify_support=no
25589 for ac_header in sys/inotify.h
25590 do :
25591   ac_fn_c_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
25592 if test "x$ac_cv_header_sys_inotify_h" = xyes; then :
25593   cat >>confdefs.h <<_ACEOF
25594 #define HAVE_SYS_INOTIFY_H 1
25595 _ACEOF
25596
25597         inotify_support=yes
25598         for ac_func in inotify_init1
25599 do :
25600   ac_fn_c_check_func "$LINENO" "inotify_init1" "ac_cv_func_inotify_init1"
25601 if test "x$ac_cv_func_inotify_init1" = xyes; then :
25602   cat >>confdefs.h <<_ACEOF
25603 #define HAVE_INOTIFY_INIT1 1
25604 _ACEOF
25605
25606 fi
25607 done
25608
25609
25610 fi
25611
25612 done
25613
25614
25615  if test "$inotify_support" = "yes"; then
25616   HAVE_INOTIFY_TRUE=
25617   HAVE_INOTIFY_FALSE='#'
25618 else
25619   HAVE_INOTIFY_TRUE='#'
25620   HAVE_INOTIFY_FALSE=
25621 fi
25622
25623
25624 fen_support=no
25625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25626 /* end confdefs.h.  */
25627
25628 #include <port.h>
25629 #ifndef PORT_SOURCE_FILE
25630 #error "Please upgrade to Nevada 72 or above to suppoert FEN"
25631 #endif
25632 int main() { return 0; }
25633 _ACEOF
25634 if ac_fn_c_try_compile "$LINENO"; then :
25635
25636         fen_support=yes
25637
25638 fi
25639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25640
25641  if test "$fen_support" = "yes"; then
25642   HAVE_FEN_TRUE=
25643   HAVE_FEN_FALSE='#'
25644 else
25645   HAVE_FEN_TRUE='#'
25646   HAVE_FEN_FALSE=
25647 fi
25648
25649
25650
25651 should_disable_fam=no
25652
25653 # Check whether --enable-fam was given.
25654 if test "${enable_fam+set}" = set; then :
25655   enableval=$enable_fam;
25656                                 if test "x$enable_fam" = "xno"; then
25657                                         should_disable_fam=yes
25658                                 fi
25659
25660
25661 fi
25662
25663 fam_support=no
25664 FAM_LIBS=
25665 if test "x$should_disable_fam" = "xno"; then
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMOpen in -lfam" >&5
25667 $as_echo_n "checking for FAMOpen in -lfam... " >&6; }
25668 if ${ac_cv_lib_fam_FAMOpen+:} false; then :
25669   $as_echo_n "(cached) " >&6
25670 else
25671   ac_check_lib_save_LIBS=$LIBS
25672 LIBS="-lfam  $LIBS"
25673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25674 /* end confdefs.h.  */
25675
25676 /* Override any GCC internal prototype to avoid an error.
25677    Use char because int might match the return type of a GCC
25678    builtin and then its argument prototype would still apply.  */
25679 #ifdef __cplusplus
25680 extern "C"
25681 #endif
25682 char FAMOpen ();
25683 int
25684 main ()
25685 {
25686 return FAMOpen ();
25687   ;
25688   return 0;
25689 }
25690 _ACEOF
25691 if ac_fn_c_try_link "$LINENO"; then :
25692   ac_cv_lib_fam_FAMOpen=yes
25693 else
25694   ac_cv_lib_fam_FAMOpen=no
25695 fi
25696 rm -f core conftest.err conftest.$ac_objext \
25697     conftest$ac_exeext conftest.$ac_ext
25698 LIBS=$ac_check_lib_save_LIBS
25699 fi
25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMOpen" >&5
25701 $as_echo "$ac_cv_lib_fam_FAMOpen" >&6; }
25702 if test "x$ac_cv_lib_fam_FAMOpen" = xyes; then :
25703   for ac_header in fam.h
25704 do :
25705   ac_fn_c_check_header_mongrel "$LINENO" "fam.h" "ac_cv_header_fam_h" "$ac_includes_default"
25706 if test "x$ac_cv_header_fam_h" = xyes; then :
25707   cat >>confdefs.h <<_ACEOF
25708 #define HAVE_FAM_H 1
25709 _ACEOF
25710
25711 $as_echo "#define HAVE_FAM /**/" >>confdefs.h
25712
25713      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FAMNoExists in -lfam" >&5
25714 $as_echo_n "checking for FAMNoExists in -lfam... " >&6; }
25715 if ${ac_cv_lib_fam_FAMNoExists+:} false; then :
25716   $as_echo_n "(cached) " >&6
25717 else
25718   ac_check_lib_save_LIBS=$LIBS
25719 LIBS="-lfam  $LIBS"
25720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 /* end confdefs.h.  */
25722
25723 /* Override any GCC internal prototype to avoid an error.
25724    Use char because int might match the return type of a GCC
25725    builtin and then its argument prototype would still apply.  */
25726 #ifdef __cplusplus
25727 extern "C"
25728 #endif
25729 char FAMNoExists ();
25730 int
25731 main ()
25732 {
25733 return FAMNoExists ();
25734   ;
25735   return 0;
25736 }
25737 _ACEOF
25738 if ac_fn_c_try_link "$LINENO"; then :
25739   ac_cv_lib_fam_FAMNoExists=yes
25740 else
25741   ac_cv_lib_fam_FAMNoExists=no
25742 fi
25743 rm -f core conftest.err conftest.$ac_objext \
25744     conftest$ac_exeext conftest.$ac_ext
25745 LIBS=$ac_check_lib_save_LIBS
25746 fi
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fam_FAMNoExists" >&5
25748 $as_echo "$ac_cv_lib_fam_FAMNoExists" >&6; }
25749 if test "x$ac_cv_lib_fam_FAMNoExists" = xyes; then :
25750
25751 $as_echo "#define HAVE_FAM_NO_EXISTS /**/" >>confdefs.h
25752
25753 fi
25754
25755      FAM_LIBS="-lfam"
25756      fam_support=yes
25757 else
25758   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (header files not found) ***" >&5
25759 $as_echo "$as_me: WARNING: *** FAM support will not be built (header files not found) ***" >&2;}
25760 fi
25761
25762 done
25763
25764 else
25765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** FAM support will not be built (FAM library not found) ***" >&5
25766 $as_echo "$as_me: WARNING: *** FAM support will not be built (FAM library not found) ***" >&2;}
25767 fi
25768
25769
25770 fi
25771  if test "$fam_support" = "yes"; then
25772   HAVE_FAM_TRUE=
25773   HAVE_FAM_FALSE='#'
25774 else
25775   HAVE_FAM_TRUE='#'
25776   HAVE_FAM_FALSE=
25777 fi
25778
25779
25780
25781 # Check whether --enable-xattr was given.
25782 if test "${enable_xattr+set}" = set; then :
25783   enableval=$enable_xattr;
25784 fi
25785
25786 msg_xattr=no
25787 XATTR_LIBS=
25788 if test "x$enable_xattr" != "xno"; then
25789
25790
25791
25792  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lc" >&5
25793 $as_echo_n "checking for getxattr in -lc... " >&6; }
25794 if ${ac_cv_lib_c_getxattr+:} false; then :
25795   $as_echo_n "(cached) " >&6
25796 else
25797   ac_check_lib_save_LIBS=$LIBS
25798 LIBS="-lc  $LIBS"
25799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25800 /* end confdefs.h.  */
25801
25802 /* Override any GCC internal prototype to avoid an error.
25803    Use char because int might match the return type of a GCC
25804    builtin and then its argument prototype would still apply.  */
25805 #ifdef __cplusplus
25806 extern "C"
25807 #endif
25808 char getxattr ();
25809 int
25810 main ()
25811 {
25812 return getxattr ();
25813   ;
25814   return 0;
25815 }
25816 _ACEOF
25817 if ac_fn_c_try_link "$LINENO"; then :
25818   ac_cv_lib_c_getxattr=yes
25819 else
25820   ac_cv_lib_c_getxattr=no
25821 fi
25822 rm -f core conftest.err conftest.$ac_objext \
25823     conftest$ac_exeext conftest.$ac_ext
25824 LIBS=$ac_check_lib_save_LIBS
25825 fi
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getxattr" >&5
25827 $as_echo "$ac_cv_lib_c_getxattr" >&6; }
25828 if test "x$ac_cv_lib_c_getxattr" = xyes; then :
25829   for ac_header in sys/xattr.h
25830 do :
25831   ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
25832 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
25833   cat >>confdefs.h <<_ACEOF
25834 #define HAVE_SYS_XATTR_H 1
25835 _ACEOF
25836
25837 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25838
25839       msg_xattr=yes
25840 fi
25841
25842 done
25843
25844
25845 fi
25846
25847
25848   if test "x$msg_xattr" != "xyes"; then
25849    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getxattr in -lattr" >&5
25850 $as_echo_n "checking for getxattr in -lattr... " >&6; }
25851 if ${ac_cv_lib_attr_getxattr+:} false; then :
25852   $as_echo_n "(cached) " >&6
25853 else
25854   ac_check_lib_save_LIBS=$LIBS
25855 LIBS="-lattr  $LIBS"
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h.  */
25858
25859 /* Override any GCC internal prototype to avoid an error.
25860    Use char because int might match the return type of a GCC
25861    builtin and then its argument prototype would still apply.  */
25862 #ifdef __cplusplus
25863 extern "C"
25864 #endif
25865 char getxattr ();
25866 int
25867 main ()
25868 {
25869 return getxattr ();
25870   ;
25871   return 0;
25872 }
25873 _ACEOF
25874 if ac_fn_c_try_link "$LINENO"; then :
25875   ac_cv_lib_attr_getxattr=yes
25876 else
25877   ac_cv_lib_attr_getxattr=no
25878 fi
25879 rm -f core conftest.err conftest.$ac_objext \
25880     conftest$ac_exeext conftest.$ac_ext
25881 LIBS=$ac_check_lib_save_LIBS
25882 fi
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_attr_getxattr" >&5
25884 $as_echo "$ac_cv_lib_attr_getxattr" >&6; }
25885 if test "x$ac_cv_lib_attr_getxattr" = xyes; then :
25886   for ac_header in attr/xattr.h
25887 do :
25888   ac_fn_c_check_header_mongrel "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
25889 if test "x$ac_cv_header_attr_xattr_h" = xyes; then :
25890   cat >>confdefs.h <<_ACEOF
25891 #define HAVE_ATTR_XATTR_H 1
25892 _ACEOF
25893
25894 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
25895
25896         XATTR_LIBS="-lattr"
25897         msg_xattr=yes
25898 fi
25899
25900 done
25901
25902
25903 fi
25904
25905   fi
25906
25907   if test "x$msg_xattr" = "xyes"; then
25908     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR_NOFOLLOW" >&5
25909 $as_echo_n "checking for XATTR_NOFOLLOW... " >&6; }
25910     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25911 /* end confdefs.h.  */
25912
25913       #include <stdio.h>
25914       #ifdef HAVE_SYS_TYPES_H
25915       #include <sys/types.h>
25916       #endif
25917       #ifdef HAVE_SYS_XATTR_H
25918       #include <sys/xattr.h>
25919       #elif HAVE_ATTR_XATTR_H
25920       #include <attr/xattr.h>
25921       #endif
25922
25923 int
25924 main ()
25925 {
25926 ssize_t len = getxattr("", "", NULL, 0, 0, XATTR_NOFOLLOW);
25927   ;
25928   return 0;
25929 }
25930 _ACEOF
25931 if ac_fn_c_try_compile "$LINENO"; then :
25932
25933
25934 $as_echo "#define HAVE_XATTR_NOFOLLOW 1" >>confdefs.h
25935
25936       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25937 $as_echo "yes" >&6; }
25938
25939 else
25940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25941 $as_echo "no" >&6; }
25942
25943 fi
25944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25945   fi
25946
25947 fi
25948
25949
25950
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
25952 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
25953 if ${ac_cv_lib_elf_elf_begin+:} false; then :
25954   $as_echo_n "(cached) " >&6
25955 else
25956   ac_check_lib_save_LIBS=$LIBS
25957 LIBS="-lelf  $LIBS"
25958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25959 /* end confdefs.h.  */
25960
25961 /* Override any GCC internal prototype to avoid an error.
25962    Use char because int might match the return type of a GCC
25963    builtin and then its argument prototype would still apply.  */
25964 #ifdef __cplusplus
25965 extern "C"
25966 #endif
25967 char elf_begin ();
25968 int
25969 main ()
25970 {
25971 return elf_begin ();
25972   ;
25973   return 0;
25974 }
25975 _ACEOF
25976 if ac_fn_c_try_link "$LINENO"; then :
25977   ac_cv_lib_elf_elf_begin=yes
25978 else
25979   ac_cv_lib_elf_elf_begin=no
25980 fi
25981 rm -f core conftest.err conftest.$ac_objext \
25982     conftest$ac_exeext conftest.$ac_ext
25983 LIBS=$ac_check_lib_save_LIBS
25984 fi
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
25986 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
25987 if test "x$ac_cv_lib_elf_elf_begin" = xyes; then :
25988   have_libelf=yes
25989 else
25990   have_libelf=no
25991 fi
25992
25993 if test $have_libelf = yes; then
25994
25995 $as_echo "#define HAVE_LIBELF 1" >>confdefs.h
25996
25997   ELF_LIBS=-lelf
25998 fi
25999
26000
26001
26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for platform-dependent source" >&5
26003 $as_echo_n "checking for platform-dependent source... " >&6; }
26004 case "$host" in
26005   *-*-cygwin*|*-*-mingw*)
26006     PLATFORMDEP=gwin32.lo
26007     ;;
26008   *)
26009     PLATFORMDEP=
26010     ;;
26011 esac
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORMDEP" >&5
26013 $as_echo "$PLATFORMDEP" >&6; }
26014
26015
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile timeloop" >&5
26017 $as_echo_n "checking whether to compile timeloop... " >&6; }
26018 case "$host" in
26019   *-*-cygwin*|*-*-mingw*|*-*-minix)
26020     enable_timeloop=no
26021     ;;
26022   *)
26023     enable_timeloop=yes
26024     ;;
26025 esac
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_timeloop" >&5
26027 $as_echo "$enable_timeloop" >&6; }
26028  if test x$enable_timeloop = xyes; then
26029   ENABLE_TIMELOOP_TRUE=
26030   ENABLE_TIMELOOP_FALSE='#'
26031 else
26032   ENABLE_TIMELOOP_TRUE='#'
26033   ENABLE_TIMELOOP_FALSE=
26034 fi
26035
26036
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
26038 $as_echo_n "checking if building for some Win32 platform... " >&6; }
26039 case "$host" in
26040   *-*-mingw*|*-*-cygwin*)
26041     platform_win32=yes
26042     ;;
26043   *)
26044     platform_win32=no
26045     ;;
26046 esac
26047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
26048 $as_echo "$platform_win32" >&6; }
26049  if test x$platform_win32 = xyes; then
26050   PLATFORM_WIN32_TRUE=
26051   PLATFORM_WIN32_FALSE='#'
26052 else
26053   PLATFORM_WIN32_TRUE='#'
26054   PLATFORM_WIN32_FALSE=
26055 fi
26056
26057
26058
26059
26060 # Check whether --with-threads was given.
26061 if test "${with_threads+set}" = set; then :
26062   withval=$with_threads;
26063 else
26064   with_threads=yes
26065 fi
26066
26067
26068
26069 THREAD_NO_IMPLEMENTATION="No thread implementation found."
26070
26071 FLAG_DOES_NOT_WORK="I can't find the MACRO to enable thread safety on your
26072                 platform (normally it's "_REENTRANT"). I'll not use any flag on
26073                 compilation now, but then your programs might not work.
26074                 Please provide information on how it is done on your system."
26075
26076 LIBS_NOT_FOUND_1="I can't find the libraries for the thread implementation
26077                  "
26078
26079 LIBS_NOT_FOUND_2=". Please choose another thread implementation or
26080                   provide information on your thread implementation."
26081
26082 FUNC_NO_GETPWUID_R="the 'g_get_(user_name|real_name|home_dir|tmp_dir)'
26083                 functions will not be MT-safe during their first call because
26084                 there is no working 'getpwuid_r' on your system."
26085
26086 FUNC_NO_LOCALTIME_R="the 'g_date_set_time' function will not be MT-safe
26087                 because there is no 'localtime_r' on your system."
26088
26089 AIX_COMPILE_INFO="AIX's C compiler needs to be called by a different name, when
26090                 linking threaded applications. As GLib cannot do that
26091                 automatically, you will get an linkg error everytime you are
26092                 not using the right compiler. In that case you have to relink
26093                 with the right compiler. Ususally just '_r' is appended
26094                 to the compiler name."
26095
26096
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread implementation" >&5
26098 $as_echo_n "checking for thread implementation... " >&6; }
26099
26100 have_threads=no
26101 if test "x$with_threads" = xyes || test "x$with_threads" = xposix; then
26102         # -D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE is for DG/UX
26103         # -U_OSF_SOURCE is for Digital UNIX 4.0d
26104         GTHREAD_COMPILE_IMPL_DEFINES="-D_POSIX4_DRAFT_SOURCE -D_POSIX4A_DRAFT10_SOURCE -U_OSF_SOURCE"
26105         glib_save_CPPFLAGS="$CPPFLAGS"
26106         CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26107         if test "x$have_threads" = xno; then
26108                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26109 /* end confdefs.h.  */
26110 #include <pthread.h>
26111 int
26112 main ()
26113 {
26114 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26115   ;
26116   return 0;
26117 }
26118 _ACEOF
26119 if ac_fn_c_try_compile "$LINENO"; then :
26120   have_threads=posix
26121 fi
26122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26123         fi
26124         # Tru64Unix requires -pthread to find pthread.h. See #103020
26125         CPPFLAGS="$CPPFLAGS -pthread"
26126         if test "x$have_threads" = xno; then
26127         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26128 /* end confdefs.h.  */
26129 #include <pthread.h>
26130 int
26131 main ()
26132 {
26133 pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
26134   ;
26135   return 0;
26136 }
26137 _ACEOF
26138 if ac_fn_c_try_compile "$LINENO"; then :
26139   have_threads=posix
26140 fi
26141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26142         fi
26143         CPPFLAGS="$glib_save_CPPFLAGS"
26144 fi
26145 if test "x$with_threads" = xyes || test "x$with_threads" = xwin32; then
26146         case $host in
26147                 *-*-mingw*)
26148                 have_threads=win32
26149                 ;;
26150         esac
26151 fi
26152
26153 if test "x$have_threads" = xno; then
26154         { $as_echo "$as_me:${as_lineno-$LINENO}: result: none available" >&5
26155 $as_echo "none available" >&6; }
26156         as_fn_error $? "$THREAD_NO_IMPLEMENTATION" "$LINENO" 5
26157 else
26158         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_threads" >&5
26159 $as_echo "$have_threads" >&6; }
26160 fi
26161
26162
26163
26164 G_THREAD_LIBS=
26165 G_THREAD_LIBS_EXTRA=
26166 G_THREAD_CFLAGS=
26167
26168
26169
26170 if test x"$have_threads" = xposix; then
26171   # First we test for posix, whether -pthread or -pthreads do the trick as
26172   # both CPPFLAG and LIBS.
26173   # One of them does for most gcc versions and some other platforms/compilers
26174   # too and could be considered as the canonical way to go.
26175   case $host in
26176     *-*-cygwin*|*-*-darwin*)
26177        # skip cygwin and darwin -pthread or -pthreads test
26178        ;;
26179     *-solaris*)
26180       # These compiler/linker flags work with both Sun Studio and gcc
26181       # Sun Studio expands -mt to -D_REENTRANT and -lthread
26182       # gcc expands -pthreads to -D_REENTRANT -D_PTHREADS -lpthread
26183       G_THREAD_CFLAGS="-D_REENTRANT -D_PTHREADS"
26184       G_THREAD_LIBS="-lpthread -lthread"
26185       ;;
26186     *)
26187       for flag in pthread pthreads mt; do
26188         glib_save_CFLAGS="$CFLAGS"
26189         CFLAGS="$CFLAGS -$flag"
26190         if test "$cross_compiling" = yes; then :
26191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26192 /* end confdefs.h.  */
26193
26194 #include <pthread.h>
26195 int check_me = 0;
26196 void* func(void* data) {check_me = 42; return &check_me;}
26197 int main()
26198  { pthread_t t;
26199    void *ret;
26200    pthread_create (&t, 0, func, 0);
26201    pthread_join (t, &ret);
26202    return (check_me != 42 || ret != &check_me);
26203 }
26204 _ACEOF
26205 if ac_fn_c_try_link "$LINENO"; then :
26206   glib_flag_works=yes
26207 else
26208   glib_flag_works=no
26209 fi
26210 rm -f core conftest.err conftest.$ac_objext \
26211     conftest$ac_exeext conftest.$ac_ext
26212 else
26213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214 /* end confdefs.h.  */
26215
26216 #include <pthread.h>
26217 int check_me = 0;
26218 void* func(void* data) {check_me = 42; return &check_me;}
26219 int main()
26220  { pthread_t t;
26221    void *ret;
26222    pthread_create (&t, 0, func, 0);
26223    pthread_join (t, &ret);
26224    return (check_me != 42 || ret != &check_me);
26225 }
26226 _ACEOF
26227 if ac_fn_c_try_run "$LINENO"; then :
26228   glib_flag_works=yes
26229 else
26230   glib_flag_works=no
26231 fi
26232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26233   conftest.$ac_objext conftest.beam conftest.$ac_ext
26234 fi
26235
26236         CFLAGS="$glib_save_CFLAGS"
26237         if test $glib_flag_works = yes ; then
26238            G_THREAD_CFLAGS=-$flag
26239         G_THREAD_LIBS=-$flag
26240         break;
26241         fi
26242       done
26243        ;;
26244   esac
26245 fi
26246
26247 if test x"$G_THREAD_CFLAGS" = x; then
26248
26249   # The canonical -pthread[s] does not work. Try something different.
26250
26251   case $host in
26252         *-aix*)
26253                 if test x"$GCC" = xyes; then
26254                         # GCC 3.0 and above needs -pthread.
26255                         # Should be coverd by the case above.
26256                         # GCC 2.x and below needs -mthreads
26257                         G_THREAD_CFLAGS="-mthreads"
26258                         G_THREAD_LIBS=$G_THREAD_CFLAGS
26259                 else
26260                         # We are probably using the aix compiler. Normaly a
26261                         # program would have to be compiled with the _r variant
26262                         # of the corresponding compiler, but we as GLib cannot
26263                         # do that: but the good news is that for compiling the
26264                         # only difference is the added -D_THREAD_SAFE compile
26265                         # option. This is according to the "C for AIX User's
26266                         # Guide".
26267                         G_THREAD_CFLAGS="-D_THREAD_SAFE"
26268                 fi
26269                 ;;
26270         *-dg-dgux*)  # DG/UX
26271                 G_THREAD_CFLAGS="-D_REENTRANT -D_POSIX4A_DRAFT10_SOURCE"
26272                 ;;
26273         *-sysv5uw7*) # UnixWare 7
26274                 # We are not using gcc with -pthread. Catched above.
26275                 G_THREAD_CFLAGS="-Kthread"
26276                 G_THREAD_LIBS=$G_THREAD_CFLAGS
26277                 ;;
26278         *-mingw*)
26279                 # No flag needed when using MSVCRT.DLL
26280                 G_THREAD_CFLAGS=""
26281                 ;;
26282         *)
26283                 G_THREAD_CFLAGS="-D_REENTRANT" # good default guess otherwise
26284                 ;;
26285   esac
26286
26287 fi
26288
26289 # if we are not finding the localtime_r function, then we probably are
26290 # not using the proper multithread flag
26291
26292 glib_save_CPPFLAGS="$CPPFLAGS"
26293 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26294
26295 # First we test, whether localtime_r is declared in time.h
26296 # directly. Then we test whether a macro localtime_r exists, in
26297 # which case localtime_r in the test program is replaced and thus
26298 # if we still find localtime_r in the output, it is not defined as
26299 # a macro.
26300
26301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26302 /* end confdefs.h.  */
26303 #include <time.h>
26304 _ACEOF
26305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26306   $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26307
26308 else
26309   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26310 /* end confdefs.h.  */
26311 #include <time.h>
26312                                                            localtime_r(a,b)
26313 _ACEOF
26314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26315   $EGREP "[^a-zA-Z1-9_]localtime_r[^a-zA-Z1-9_]" >/dev/null 2>&1; then :
26316   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FLAG_DOES_NOT_WORK" >&5
26317 $as_echo "$as_me: WARNING: $FLAG_DOES_NOT_WORK" >&2;}
26318 fi
26319 rm -f conftest*
26320
26321 fi
26322 rm -f conftest*
26323
26324
26325 CPPFLAGS="$glib_save_CPPFLAGS"
26326
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related cflags" >&5
26328 $as_echo_n "checking thread related cflags... " >&6; }
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_CFLAGS" >&5
26330 $as_echo "$G_THREAD_CFLAGS" >&6; }
26331 CPPFLAGS="$CPPFLAGS $G_THREAD_CFLAGS"
26332
26333
26334 case $have_threads in
26335         posix)
26336           glib_save_CPPFLAGS="$CPPFLAGS"
26337           CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26338           if test x"$G_THREAD_LIBS" = x; then
26339             case $host in
26340               *-aix*)
26341                 # We are not using gcc (would have set G_THREAD_LIBS) and thus
26342                 # probably using the aix compiler.
26343                 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $AIX_COMPILE_INFO" >&5
26344 $as_echo "$as_me: WARNING: $AIX_COMPILE_INFO" >&2;}
26345                 ;;
26346               *)
26347                 G_THREAD_LIBS=error
26348                 glib_save_LIBS="$LIBS"
26349                 for thread_lib in "" pthread pthread32 pthreads thread; do
26350                         if test x"$thread_lib" = x; then
26351                                 add_thread_lib=""
26352                                 IN=""
26353                         else
26354                                 add_thread_lib="-l$thread_lib"
26355                                 IN=" in -l$thread_lib"
26356                         fi
26357                         if test x"$have_threads" = xposix; then
26358                                 defattr=0
26359                         else
26360                                 defattr=pthread_attr_default
26361                         fi
26362
26363                         LIBS="$add_thread_lib $glib_save_LIBS"
26364
26365                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create/pthread_join$IN" >&5
26366 $as_echo_n "checking for pthread_create/pthread_join$IN... " >&6; }
26367                         if test "$cross_compiling" = yes; then :
26368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369 /* end confdefs.h.  */
26370
26371 #include <pthread.h>
26372 int check_me = 0;
26373 void* func(void* data) {check_me = 42; return &check_me;}
26374 int main()
26375  { pthread_t t;
26376    void *ret;
26377    pthread_create (&t, $defattr, func, 0);
26378    pthread_join (t, &ret);
26379    return (check_me != 42 || ret != &check_me);
26380 }
26381 _ACEOF
26382 if ac_fn_c_try_link "$LINENO"; then :
26383   glib_result=yes
26384 else
26385   glib_result=no
26386 fi
26387 rm -f core conftest.err conftest.$ac_objext \
26388     conftest$ac_exeext conftest.$ac_ext
26389 else
26390   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h.  */
26392
26393 #include <pthread.h>
26394 int check_me = 0;
26395 void* func(void* data) {check_me = 42; return &check_me;}
26396 int main()
26397  { pthread_t t;
26398    void *ret;
26399    pthread_create (&t, $defattr, func, 0);
26400    pthread_join (t, &ret);
26401    return (check_me != 42 || ret != &check_me);
26402 }
26403 _ACEOF
26404 if ac_fn_c_try_run "$LINENO"; then :
26405   glib_result=yes
26406 else
26407   glib_result=no
26408 fi
26409 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26410   conftest.$ac_objext conftest.beam conftest.$ac_ext
26411 fi
26412
26413                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_result" >&5
26414 $as_echo "$glib_result" >&6; }
26415
26416                         if test "$glib_result" = "yes" ; then
26417                           G_THREAD_LIBS="$add_thread_lib"
26418                           break
26419                         fi
26420                 done
26421                 if test "x$G_THREAD_LIBS" = xerror; then
26422                   as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26423                 fi
26424                 LIBS="$glib_save_LIBS"
26425                 ;;
26426             esac
26427           fi
26428
26429           g_threads_impl="POSIX"
26430
26431           CPPFLAGS="$glib_save_CPPFLAGS"
26432           ;;
26433         win32)
26434            g_threads_impl="WIN32"
26435            ;;
26436         *)
26437            g_threads_impl="NONE"
26438            G_THREAD_LIBS=error
26439            ;;
26440 esac
26441
26442 if test "x$G_THREAD_LIBS" = xerror; then
26443         as_fn_error $? "$LIBS_NOT_FOUND_1$have_threads$LIBS_NOT_FOUND_2" "$LINENO" 5
26444 fi
26445
26446 case $host in
26447   *-*-beos*)
26448     G_THREAD_LIBS="-lbe -lroot -lglib-2.0 "
26449     G_THREAD_LIBS_EXTRA="-L\$(top_builddir_full)/.libs"
26450     ;;
26451   *)
26452     ;;
26453 esac
26454
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking thread related libraries" >&5
26456 $as_echo_n "checking thread related libraries... " >&6; }
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $G_THREAD_LIBS" >&5
26458 $as_echo "$G_THREAD_LIBS" >&6; }
26459
26460
26461 glib_save_LIBS="$LIBS"
26462 # we are not doing the following for now, as this might require glib
26463 # to always be linked with the thread libs on some platforms.
26464 # LIBS="$LIBS $G_THREAD_LIBS"
26465 for ac_func in localtime_r gmtime_r
26466 do :
26467   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26468 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26469 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26470   cat >>confdefs.h <<_ACEOF
26471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26472 _ACEOF
26473
26474 fi
26475 done
26476
26477 if test "$ac_cv_header_pwd_h" = "yes"; then
26478         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getpwuid_r" >&5
26479 $as_echo_n "checking for posix getpwuid_r... " >&6; }
26480 if ${ac_cv_func_posix_getpwuid_r+:} false; then :
26481   $as_echo_n "(cached) " >&6
26482 else
26483   if test "$cross_compiling" = yes; then :
26484   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26486 as_fn_error $? "cannot run test program while cross compiling
26487 See \`config.log' for more details" "$LINENO" 5; }
26488 else
26489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26490 /* end confdefs.h.  */
26491
26492 #include <errno.h>
26493 #include <pwd.h>
26494 int main () {
26495     char buffer[10000];
26496     struct passwd pwd, *pwptr = &pwd;
26497     int error;
26498     errno = 0;
26499     error = getpwuid_r (0, &pwd, buffer,
26500                         sizeof (buffer), &pwptr);
26501    return (error < 0 && errno == ENOSYS)
26502            || error == ENOSYS;
26503 }
26504 _ACEOF
26505 if ac_fn_c_try_run "$LINENO"; then :
26506   ac_cv_func_posix_getpwuid_r=yes
26507 else
26508   ac_cv_func_posix_getpwuid_r=no
26509 fi
26510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26511   conftest.$ac_objext conftest.beam conftest.$ac_ext
26512 fi
26513
26514 fi
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getpwuid_r" >&5
26516 $as_echo "$ac_cv_func_posix_getpwuid_r" >&6; }
26517         if test "x${ac_cv_func_posix_getpwuid_r+set}" != "xset" ; then
26518   as_fn_error $? "ac_cv_func_posix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26519 fi
26520
26521         if test "$ac_cv_func_posix_getpwuid_r" = yes; then
26522
26523 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26524
26525         else
26526                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getpwuid_r" >&5
26527 $as_echo_n "checking for nonposix getpwuid_r... " >&6; }
26528 if ${ac_cv_func_nonposix_getpwuid_r+:} false; then :
26529   $as_echo_n "(cached) " >&6
26530 else
26531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532 /* end confdefs.h.  */
26533 #include <pwd.h>
26534 int
26535 main ()
26536 {
26537 char buffer[10000];
26538                                 struct passwd pwd;
26539                                 getpwuid_r (0, &pwd, buffer,
26540                                                 sizeof (buffer));
26541   ;
26542   return 0;
26543 }
26544 _ACEOF
26545 if ac_fn_c_try_link "$LINENO"; then :
26546   ac_cv_func_nonposix_getpwuid_r=yes
26547 else
26548   ac_cv_func_nonposix_getpwuid_r=no
26549 fi
26550 rm -f core conftest.err conftest.$ac_objext \
26551     conftest$ac_exeext conftest.$ac_ext
26552 fi
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getpwuid_r" >&5
26554 $as_echo "$ac_cv_func_nonposix_getpwuid_r" >&6; }
26555                 if test "x${ac_cv_func_nonposix_getpwuid_r+set}" != "xset" ; then
26556   as_fn_error $? "ac_cv_func_nonposix_getpwuid_r must be set in cache file when cross-compiling." "$LINENO" 5
26557 fi
26558
26559                 if test "$ac_cv_func_nonposix_getpwuid_r" = yes; then
26560
26561 $as_echo "#define HAVE_NONPOSIX_GETPWUID_R 1" >>confdefs.h
26562
26563                 fi
26564         fi
26565 fi
26566 if test "$ac_cv_header_grp_h" = "yes"; then
26567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix getgrgid_r" >&5
26568 $as_echo_n "checking for posix getgrgid_r... " >&6; }
26569 if ${ac_cv_func_posix_getgrgid_r+:} false; then :
26570   $as_echo_n "(cached) " >&6
26571 else
26572   if test "$cross_compiling" = yes; then :
26573   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26575 as_fn_error $? "cannot run test program while cross compiling
26576 See \`config.log' for more details" "$LINENO" 5; }
26577 else
26578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h.  */
26580
26581 #include <errno.h>
26582 #include <grp.h>
26583 int main () {
26584     char buffer[10000];
26585     struct group grp, *grpptr = &grp;
26586     int error;
26587     errno = 0;
26588     error = getgrgid_r (0, &grp, buffer,
26589                         sizeof (buffer), &grpptr);
26590    return (error < 0 && errno == ENOSYS)
26591            || error == ENOSYS;
26592 }
26593 _ACEOF
26594 if ac_fn_c_try_run "$LINENO"; then :
26595   ac_cv_func_posix_getgrgid_r=yes
26596 else
26597   ac_cv_func_posix_getgrgid_r=no
26598 fi
26599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26600   conftest.$ac_objext conftest.beam conftest.$ac_ext
26601 fi
26602
26603 fi
26604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_posix_getgrgid_r" >&5
26605 $as_echo "$ac_cv_func_posix_getgrgid_r" >&6; }
26606         if test "x${ac_cv_func_posix_getgrgid_r+set}" != "xset" ; then
26607   as_fn_error $? "ac_cv_func_posix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26608 fi
26609
26610         if test "$ac_cv_func_posix_getgrgid_r" = yes; then
26611
26612 $as_echo "#define HAVE_POSIX_GETGRGID_R 1" >>confdefs.h
26613
26614         else
26615                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nonposix getgrgid_r" >&5
26616 $as_echo_n "checking for nonposix getgrgid_r... " >&6; }
26617 if ${ac_cv_func_nonposix_getgrgid_r+:} false; then :
26618   $as_echo_n "(cached) " >&6
26619 else
26620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26621 /* end confdefs.h.  */
26622 #include <grp.h>
26623 int
26624 main ()
26625 {
26626 char buffer[10000];
26627                                 struct group grp;
26628                                 getgrgid_r (0, &grp, buffer,
26629                                 sizeof (buffer));
26630   ;
26631   return 0;
26632 }
26633 _ACEOF
26634 if ac_fn_c_try_link "$LINENO"; then :
26635   ac_cv_func_nonposix_getgrgid_r=yes
26636 else
26637   ac_cv_func_nonposix_getgrgid_r=no
26638 fi
26639 rm -f core conftest.err conftest.$ac_objext \
26640     conftest$ac_exeext conftest.$ac_ext
26641 fi
26642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_nonposix_getgrgid_r" >&5
26643 $as_echo "$ac_cv_func_nonposix_getgrgid_r" >&6; }
26644                 if test "x${ac_cv_func_nonposix_getgrgid_r+set}" != "xset" ; then
26645   as_fn_error $? "ac_cv_func_nonposix_getgrgid_r must be set in cache file when cross-compiling." "$LINENO" 5
26646 fi
26647
26648                 if test "$ac_cv_func_nonposix_getgrgid_r" = yes; then
26649
26650 $as_echo "#define HAVE_NONPOSIX_GETGRGID_R 1" >>confdefs.h
26651
26652                 fi
26653         fi
26654 fi
26655 LIBS="$G_THREAD_LIBS $LIBS"
26656 if test x"$have_threads" = xposix; then
26657         glib_save_CPPFLAGS="$CPPFLAGS"
26658         CPPFLAGS="$CPPFLAGS $GTHREAD_COMPILE_IMPL_DEFINES"
26659         # This is not AC_CHECK_FUNC to also work with function
26660         # name mangling in header files.
26661         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_setstacksize" >&5
26662 $as_echo_n "checking for pthread_attr_setstacksize... " >&6; }
26663         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26664 /* end confdefs.h.  */
26665 #include <pthread.h>
26666 int
26667 main ()
26668 {
26669 pthread_attr_t t; pthread_attr_setstacksize(&t,0)
26670   ;
26671   return 0;
26672 }
26673 _ACEOF
26674 if ac_fn_c_try_link "$LINENO"; then :
26675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26676 $as_echo "yes" >&6; }
26677
26678 $as_echo "#define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1" >>confdefs.h
26679
26680 else
26681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26682 $as_echo "no" >&6; }
26683 fi
26684 rm -f core conftest.err conftest.$ac_objext \
26685     conftest$ac_exeext conftest.$ac_ext
26686         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock" >&5
26687 $as_echo_n "checking for pthread_condattr_setclock... " >&6; }
26688         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26689 /* end confdefs.h.  */
26690 #include <pthread.h>
26691 int
26692 main ()
26693 {
26694 pthread_condattr_t a; pthread_condattr_setclock(&a,0)
26695   ;
26696   return 0;
26697 }
26698 _ACEOF
26699 if ac_fn_c_try_link "$LINENO"; then :
26700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26701 $as_echo "yes" >&6; }
26702
26703 $as_echo "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
26704
26705 else
26706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26707 $as_echo "no" >&6; }
26708 fi
26709 rm -f core conftest.err conftest.$ac_objext \
26710     conftest$ac_exeext conftest.$ac_ext
26711         CPPFLAGS="$glib_save_CPPFLAGS"
26712 fi
26713
26714 LIBS="$glib_save_LIBS"
26715
26716 # now spit out all the warnings.
26717 if test "$ac_cv_func_posix_getpwuid_r" != "yes" &&
26718    test "$ac_cv_func_nonposix_getpwuid_r" != "yes"; then
26719         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_GETPWUID_R" >&5
26720 $as_echo "$as_me: WARNING: $FUNC_NO_GETPWUID_R" >&2;}
26721 fi
26722 if test "$ac_cv_func_localtime_r" != "yes"; then
26723         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $FUNC_NO_LOCALTIME_R" >&5
26724 $as_echo "$as_me: WARNING: $FUNC_NO_LOCALTIME_R" >&2;}
26725 fi
26726
26727 #
26728 # Hack to deal with:
26729 #
26730 #  a) GCC < 3.3 for Linux doesn't include -lpthread when
26731 #     building shared libraries with linux.
26732 #  b) FreeBSD doesn't do this either.
26733 #
26734 case $host in
26735   *-*-freebsd*|*-*-linux*)
26736     G_THREAD_LIBS_FOR_GTHREAD="`echo $G_THREAD_LIBS | sed s/-pthread/-lpthread/`"
26737     ;;
26738   *-*-openbsd*)
26739     LDFLAGS="$LDFLAGS -pthread"
26740     ;;
26741   *)
26742     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS"
26743     ;;
26744 esac
26745
26746
26747
26748
26749
26750
26751 for ac_func in clock_gettime
26752 do :
26753   ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
26754 if test "x$ac_cv_func_clock_gettime" = xyes; then :
26755   cat >>confdefs.h <<_ACEOF
26756 #define HAVE_CLOCK_GETTIME 1
26757 _ACEOF
26758
26759 else
26760
26761   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
26762 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
26763 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
26764   $as_echo_n "(cached) " >&6
26765 else
26766   ac_check_lib_save_LIBS=$LIBS
26767 LIBS="-lrt  $LIBS"
26768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26769 /* end confdefs.h.  */
26770
26771 /* Override any GCC internal prototype to avoid an error.
26772    Use char because int might match the return type of a GCC
26773    builtin and then its argument prototype would still apply.  */
26774 #ifdef __cplusplus
26775 extern "C"
26776 #endif
26777 char clock_gettime ();
26778 int
26779 main ()
26780 {
26781 return clock_gettime ();
26782   ;
26783   return 0;
26784 }
26785 _ACEOF
26786 if ac_fn_c_try_link "$LINENO"; then :
26787   ac_cv_lib_rt_clock_gettime=yes
26788 else
26789   ac_cv_lib_rt_clock_gettime=no
26790 fi
26791 rm -f core conftest.err conftest.$ac_objext \
26792     conftest$ac_exeext conftest.$ac_ext
26793 LIBS=$ac_check_lib_save_LIBS
26794 fi
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26796 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26797 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
26798
26799     $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
26800
26801     G_THREAD_LIBS="$G_THREAD_LIBS -lrt"
26802     G_THREAD_LIBS_FOR_GTHREAD="$G_THREAD_LIBS_FOR_GTHREAD -lrt"
26803
26804 fi
26805
26806
26807 fi
26808 done
26809
26810
26811
26812
26813
26814
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lock-free atomic intrinsics" >&5
26816 $as_echo_n "checking for lock-free atomic intrinsics... " >&6; }
26817 if ${glib_cv_g_atomic_lock_free+:} false; then :
26818   $as_echo_n "(cached) " >&6
26819 else
26820
26821   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26822 /* end confdefs.h.  */
26823
26824 int
26825 main ()
26826 {
26827 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
26828   ;
26829   return 0;
26830 }
26831 _ACEOF
26832 if ac_fn_c_try_compile "$LINENO"; then :
26833   glib_cv_g_atomic_lock_free=yes
26834 else
26835   glib_cv_g_atomic_lock_free=no
26836 fi
26837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26838 fi
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_g_atomic_lock_free" >&5
26840 $as_echo "$glib_cv_g_atomic_lock_free" >&6; }
26841
26842 if test "$glib_cv_g_atomic_lock_free" = "no"; then
26843   SAVE_CFLAGS="${CFLAGS}"
26844   CFLAGS="-march=i486"
26845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26846 /* end confdefs.h.  */
26847
26848 int
26849 main ()
26850 {
26851 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4;
26852   ;
26853   return 0;
26854 }
26855 _ACEOF
26856 if ac_fn_c_try_compile "$LINENO"; then :
26857   as_fn_error $? "GLib must be build with -march=i486 or later." "$LINENO" 5
26858 fi
26859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26860   CFLAGS="${SAVE_CFLAGS}"
26861 fi
26862
26863 case $host_cpu in
26864   i?86|x86_64|s390|s390x|arm*|crisv32*|etrax*)
26865     glib_memory_barrier_needed=no
26866     ;;
26867   sparc*|alpha*|powerpc*|ia64)
26868     glib_memory_barrier_needed=yes
26869     ;;
26870   *)
26871     glib_memory_barrier_needed=yes
26872     ;;
26873 esac
26874
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for futex(2) system call" >&5
26876 $as_echo_n "checking for futex(2) system call... " >&6; }
26877 if ${glib_cv_futex+:} false; then :
26878   $as_echo_n "(cached) " >&6
26879 else
26880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26881 /* end confdefs.h.  */
26882
26883 #include <linux/futex.h>
26884 #include <sys/syscall.h>
26885 #include <unistd.h>
26886
26887 int
26888 main ()
26889 {
26890
26891 int
26892 main (void)
26893 {
26894   /* it is not like this actually runs or anything... */
26895   syscall (__NR_futex, NULL, FUTEX_WAKE, FUTEX_WAIT);
26896   return 0;
26897 }
26898
26899   ;
26900   return 0;
26901 }
26902 _ACEOF
26903 if ac_fn_c_try_compile "$LINENO"; then :
26904   glib_cv_futex=yes
26905 else
26906   glib_cv_futex=no
26907 fi
26908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26909 fi
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_futex" >&5
26911 $as_echo "$glib_cv_futex" >&6; }
26912 if test x"$glib_cv_futex" = xyes; then
26913
26914 $as_echo "#define HAVE_FUTEX 1" >>confdefs.h
26915
26916 fi
26917
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for eventfd(2) system call" >&5
26919 $as_echo_n "checking for eventfd(2) system call... " >&6; }
26920 if ${glib_cv_eventfd+:} false; then :
26921   $as_echo_n "(cached) " >&6
26922 else
26923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26924 /* end confdefs.h.  */
26925
26926 #include <sys/eventfd.h>
26927 #include <unistd.h>
26928
26929 int
26930 main ()
26931 {
26932
26933 int
26934 main (void)
26935 {
26936   eventfd (0, EFD_CLOEXEC);
26937   return 0;
26938 }
26939
26940   ;
26941   return 0;
26942 }
26943 _ACEOF
26944 if ac_fn_c_try_compile "$LINENO"; then :
26945   glib_cv_eventfd=yes
26946 else
26947   glib_cv_eventfd=no
26948 fi
26949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26950 fi
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_eventfd" >&5
26952 $as_echo "$glib_cv_eventfd" >&6; }
26953 if test x"$glib_cv_eventfd" = x"yes"; then
26954
26955 $as_echo "#define HAVE_EVENTFD 1" >>confdefs.h
26956
26957 fi
26958  if test "$glib_cv_eventfd" = "yes"; then
26959   HAVE_EVENTFD_TRUE=
26960   HAVE_EVENTFD_FALSE='#'
26961 else
26962   HAVE_EVENTFD_TRUE='#'
26963   HAVE_EVENTFD_FALSE=
26964 fi
26965
26966
26967
26968 glib_poll_includes="
26969 #include <sys/types.h>
26970 #include <sys/poll.h>
26971 "
26972
26973 if test $ac_cv_header_sys_types_h = yes &&
26974    test $ac_cv_header_sys_poll_h = yes ; then
26975   glib_failed=false
26976   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLIN" >&5
26977 $as_echo_n "checking value of POLLIN... " >&6; }
26978 if ${glib_cv_value_POLLIN+:} false; then :
26979   $as_echo_n "(cached) " >&6
26980 else
26981   if ac_fn_c_compute_int "$LINENO" "POLLIN" "glib_cv_value_POLLIN"        "$glib_poll_includes"; then :
26982
26983 else
26984   glib_failed=true
26985 fi
26986
26987
26988 fi
26989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLIN" >&5
26990 $as_echo "$glib_cv_value_POLLIN" >&6; }
26991
26992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLOUT" >&5
26993 $as_echo_n "checking value of POLLOUT... " >&6; }
26994 if ${glib_cv_value_POLLOUT+:} false; then :
26995   $as_echo_n "(cached) " >&6
26996 else
26997   if ac_fn_c_compute_int "$LINENO" "POLLOUT" "glib_cv_value_POLLOUT"        "$glib_poll_includes"; then :
26998
26999 else
27000   glib_failed=true
27001 fi
27002
27003
27004 fi
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLOUT" >&5
27006 $as_echo "$glib_cv_value_POLLOUT" >&6; }
27007
27008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLPRI" >&5
27009 $as_echo_n "checking value of POLLPRI... " >&6; }
27010 if ${glib_cv_value_POLLPRI+:} false; then :
27011   $as_echo_n "(cached) " >&6
27012 else
27013   if ac_fn_c_compute_int "$LINENO" "POLLPRI" "glib_cv_value_POLLPRI"        "$glib_poll_includes"; then :
27014
27015 else
27016   glib_failed=true
27017 fi
27018
27019
27020 fi
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLPRI" >&5
27022 $as_echo "$glib_cv_value_POLLPRI" >&6; }
27023
27024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLERR" >&5
27025 $as_echo_n "checking value of POLLERR... " >&6; }
27026 if ${glib_cv_value_POLLERR+:} false; then :
27027   $as_echo_n "(cached) " >&6
27028 else
27029   if ac_fn_c_compute_int "$LINENO" "POLLERR" "glib_cv_value_POLLERR"        "$glib_poll_includes"; then :
27030
27031 else
27032   glib_failed=true
27033 fi
27034
27035
27036 fi
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLERR" >&5
27038 $as_echo "$glib_cv_value_POLLERR" >&6; }
27039
27040   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLHUP" >&5
27041 $as_echo_n "checking value of POLLHUP... " >&6; }
27042 if ${glib_cv_value_POLLHUP+:} false; then :
27043   $as_echo_n "(cached) " >&6
27044 else
27045   if ac_fn_c_compute_int "$LINENO" "POLLHUP" "glib_cv_value_POLLHUP"        "$glib_poll_includes"; then :
27046
27047 else
27048   glib_failed=true
27049 fi
27050
27051
27052 fi
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLHUP" >&5
27054 $as_echo "$glib_cv_value_POLLHUP" >&6; }
27055
27056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking value of POLLNVAL" >&5
27057 $as_echo_n "checking value of POLLNVAL... " >&6; }
27058 if ${glib_cv_value_POLLNVAL+:} false; then :
27059   $as_echo_n "(cached) " >&6
27060 else
27061   if ac_fn_c_compute_int "$LINENO" "POLLNVAL" "glib_cv_value_POLLNVAL"        "$glib_poll_includes"; then :
27062
27063 else
27064   glib_failed=true
27065 fi
27066
27067
27068 fi
27069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_value_POLLNVAL" >&5
27070 $as_echo "$glib_cv_value_POLLNVAL" >&6; }
27071
27072   if $glib_failed ; then
27073     as_fn_error $? "Could not determine values for POLL* constants" "$LINENO" 5
27074   fi
27075 else
27076   glib_cv_value_POLLIN=1
27077   glib_cv_value_POLLOUT=4
27078   glib_cv_value_POLLPRI=2
27079   glib_cv_value_POLLERR=8
27080   glib_cv_value_POLLHUP=16
27081   glib_cv_value_POLLNVAL=32
27082 fi
27083
27084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll" >&5
27085 $as_echo_n "checking for broken poll... " >&6; }
27086 if test "$cross_compiling" = yes; then :
27087   broken_poll="no (cross compiling)"
27088 else
27089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27090 /* end confdefs.h.  */
27091
27092         #include <stdlib.h>
27093         #include <fcntl.h>
27094         #include <poll.h>
27095         #ifdef HAVE_SYS_POLL_H
27096         #include <sys/poll.h>
27097         #endif
27098         int main(void) {
27099           struct pollfd fds[1];
27100           int fd;
27101           fd = open("/dev/null", 1);
27102           fds[0].fd = fd;
27103           fds[0].events = POLLIN;
27104           fds[0].revents = 0;
27105           if (poll(fds, 1, 0) < 0 || (fds[0].revents & POLLNVAL) != 0) {
27106                 exit(1);  /* Does not work for devices -- fail */
27107           }
27108           exit(0);
27109         }
27110 _ACEOF
27111 if ac_fn_c_try_run "$LINENO"; then :
27112   broken_poll=no
27113 else
27114   broken_poll=yes
27115
27116 $as_echo "#define BROKEN_POLL 1" >>confdefs.h
27117
27118 fi
27119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27120   conftest.$ac_objext conftest.beam conftest.$ac_ext
27121 fi
27122
27123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $broken_poll" >&5
27124 $as_echo "$broken_poll" >&6; }
27125
27126
27127 PCRE_REQUIRED_VERSION=8.11
27128
27129 # Check if we should use the internal or the system-supplied pcre
27130
27131 # Check whether --with-pcre was given.
27132 if test "${with_pcre+set}" = set; then :
27133   withval=$with_pcre;
27134 fi
27135
27136
27137  if test "x$with_pcre" = xsystem; then
27138   USE_SYSTEM_PCRE_TRUE=
27139   USE_SYSTEM_PCRE_FALSE='#'
27140 else
27141   USE_SYSTEM_PCRE_TRUE='#'
27142   USE_SYSTEM_PCRE_FALSE=
27143 fi
27144
27145
27146 if test "x$with_pcre" = xsystem; then
27147
27148 pkg_failed=no
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE" >&5
27150 $as_echo_n "checking for PCRE... " >&6; }
27151
27152 if test -n "$PCRE_CFLAGS"; then
27153     pkg_cv_PCRE_CFLAGS="$PCRE_CFLAGS"
27154  elif test -n "$PKG_CONFIG"; then
27155     if test -n "$PKG_CONFIG" && \
27156     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27157   ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27158   ac_status=$?
27159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27160   test $ac_status = 0; }; then
27161   pkg_cv_PCRE_CFLAGS=`$PKG_CONFIG --cflags "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27162 else
27163   pkg_failed=yes
27164 fi
27165  else
27166     pkg_failed=untried
27167 fi
27168 if test -n "$PCRE_LIBS"; then
27169     pkg_cv_PCRE_LIBS="$PCRE_LIBS"
27170  elif test -n "$PKG_CONFIG"; then
27171     if test -n "$PKG_CONFIG" && \
27172     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre >= \$PCRE_REQUIRED_VERSION\""; } >&5
27173   ($PKG_CONFIG --exists --print-errors "libpcre >= $PCRE_REQUIRED_VERSION") 2>&5
27174   ac_status=$?
27175   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27176   test $ac_status = 0; }; then
27177   pkg_cv_PCRE_LIBS=`$PKG_CONFIG --libs "libpcre >= $PCRE_REQUIRED_VERSION" 2>/dev/null`
27178 else
27179   pkg_failed=yes
27180 fi
27181  else
27182     pkg_failed=untried
27183 fi
27184
27185
27186
27187 if test $pkg_failed = yes; then
27188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27189 $as_echo "no" >&6; }
27190
27191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27192         _pkg_short_errors_supported=yes
27193 else
27194         _pkg_short_errors_supported=no
27195 fi
27196         if test $_pkg_short_errors_supported = yes; then
27197                 PCRE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27198         else
27199                 PCRE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpcre >= $PCRE_REQUIRED_VERSION" 2>&1`
27200         fi
27201         # Put the nasty error message in config.log where it belongs
27202         echo "$PCRE_PKG_ERRORS" >&5
27203
27204         as_fn_error $? "Package requirements (libpcre >= $PCRE_REQUIRED_VERSION) were not met:
27205
27206 $PCRE_PKG_ERRORS
27207
27208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27209 installed software in a non-standard prefix.
27210
27211 Alternatively, you may set the environment variables PCRE_CFLAGS
27212 and PCRE_LIBS to avoid the need to call pkg-config.
27213 See the pkg-config man page for more details." "$LINENO" 5
27214
27215 elif test $pkg_failed = untried; then
27216         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27217 $as_echo "no" >&6; }
27218         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27220 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27221 is in your PATH or set the PKG_CONFIG environment variable to the full
27222 path to pkg-config.
27223
27224 Alternatively, you may set the environment variables PCRE_CFLAGS
27225 and PCRE_LIBS to avoid the need to call pkg-config.
27226 See the pkg-config man page for more details.
27227
27228 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27229 See \`config.log' for more details" "$LINENO" 5; }
27230
27231 else
27232         PCRE_CFLAGS=$pkg_cv_PCRE_CFLAGS
27233         PCRE_LIBS=$pkg_cv_PCRE_LIBS
27234         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27235 $as_echo "yes" >&6; }
27236
27237 fi
27238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Unicode support in PCRE" >&5
27239 $as_echo_n "checking for Unicode support in PCRE... " >&6; }
27240 if ${glib_cv_pcre_has_unicode+:} false; then :
27241   $as_echo_n "(cached) " >&6
27242 else
27243
27244                   glib_save_CFLAGS="$CFLAGS"
27245                   glib_save_LIBS="$LIBS"
27246                   CFLAGS="$CFLAGS $PCRE_CFLAGS" LIBS="$PCRE_LIBS"
27247                   if test "$cross_compiling" = yes; then :
27248   glib_cv_pcre_has_unicode=yes
27249 else
27250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27251 /* end confdefs.h.  */
27252 #include <pcre.h>
27253                               int main () {
27254                                 int support;
27255                                 pcre_config (PCRE_CONFIG_UTF8, &support);
27256                                 if (!support)
27257                                   return 1;
27258                                 pcre_config (PCRE_CONFIG_UNICODE_PROPERTIES, &support);
27259                                 if (!support)
27260                                   return 1;
27261                                 return 0;
27262                               }
27263 _ACEOF
27264 if ac_fn_c_try_run "$LINENO"; then :
27265   glib_cv_pcre_has_unicode=yes
27266 else
27267   glib_cv_pcre_has_unicode=no
27268 fi
27269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27270   conftest.$ac_objext conftest.beam conftest.$ac_ext
27271 fi
27272
27273                   CFLAGS="$glib_save_CFLAGS"
27274                   LIBS="$glib_save_LIBS"
27275
27276 fi
27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_pcre_has_unicode" >&5
27278 $as_echo "$glib_cv_pcre_has_unicode" >&6; }
27279   if test "$glib_cv_pcre_has_unicode" = "no"; then
27280     as_fn_error $? "*** The system-supplied PCRE does not support Unicode properties or UTF-8." "$LINENO" 5
27281   fi
27282
27283
27284
27285 $as_echo "#define USE_SYSTEM_PCRE /**/" >>confdefs.h
27286
27287   PCRE_REQUIRES=libpcre
27288
27289 else
27290   # If using gcc 4 pass -Wno-pointer-sign when compiling the internal PCRE
27291   if test x"$GCC" = xyes; then
27292     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler understands -Wno-pointer-sign" >&5
27293 $as_echo_n "checking whether compiler understands -Wno-pointer-sign... " >&6; }
27294     save_CFLAGS="$CFLAGS"
27295     CFLAGS="$CFLAGS -Wno-pointer-sign"
27296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27297 /* end confdefs.h.  */
27298
27299 int
27300 main ()
27301 {
27302
27303   ;
27304   return 0;
27305 }
27306 _ACEOF
27307 if ac_fn_c_try_compile "$LINENO"; then :
27308   PCRE_WARN_CFLAGS="$PCRE_WARN_CFLAGS -Wno-pointer-sign"
27309                           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27310 $as_echo "yes" >&6; }
27311 else
27312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27313 $as_echo "no" >&6; }
27314 fi
27315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27316     CFLAGS="$save_CFLAGS"
27317   fi
27318 fi
27319
27320
27321
27322 case $host in
27323   *-*-cygwin*)
27324         G_LIBS_EXTRA="-luser32 -lkernel32"
27325     ;;
27326   *-*-mingw*)
27327         G_LIBS_EXTRA="-lws2_32 -lole32 -lwinmm -lshlwapi"
27328     ;;
27329   *)
27330         G_LIBS_EXTRA=""
27331     ;;
27332 esac
27333
27334
27335
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EILSEQ" >&5
27337 $as_echo_n "checking for EILSEQ... " >&6; }
27338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27339 /* end confdefs.h.  */
27340
27341 #include <errno.h>
27342
27343 int
27344 main ()
27345 {
27346
27347 int error = EILSEQ;
27348
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 if ac_fn_c_try_compile "$LINENO"; then :
27354   have_eilseq=yes
27355 else
27356   have_eilseq=no
27357 fi
27358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_eilseq" >&5
27360 $as_echo "$have_eilseq" >&6; }
27361
27362
27363  if test $cross_compiling = yes; then
27364   CROSS_COMPILING_TRUE=
27365   CROSS_COMPILING_FALSE='#'
27366 else
27367   CROSS_COMPILING_TRUE='#'
27368   CROSS_COMPILING_FALSE=
27369 fi
27370
27371
27372 if test $cross_compiling = yes; then
27373   # Extract the first word of "glib-genmarshal", so it can be a program name with args.
27374 set dummy glib-genmarshal; ac_word=$2
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27376 $as_echo_n "checking for $ac_word... " >&6; }
27377 if ${ac_cv_path_GLIB_GENMARSHAL+:} false; then :
27378   $as_echo_n "(cached) " >&6
27379 else
27380   case $GLIB_GENMARSHAL in
27381   [\\/]* | ?:[\\/]*)
27382   ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
27383   ;;
27384   *)
27385   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27386 for as_dir in $PATH
27387 do
27388   IFS=$as_save_IFS
27389   test -z "$as_dir" && as_dir=.
27390     for ac_exec_ext in '' $ac_executable_extensions; do
27391   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27392     ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
27393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27394     break 2
27395   fi
27396 done
27397   done
27398 IFS=$as_save_IFS
27399
27400   test -z "$ac_cv_path_GLIB_GENMARSHAL" && ac_cv_path_GLIB_GENMARSHAL="no"
27401   ;;
27402 esac
27403 fi
27404 GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
27405 if test -n "$GLIB_GENMARSHAL"; then
27406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
27407 $as_echo "$GLIB_GENMARSHAL" >&6; }
27408 else
27409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27410 $as_echo "no" >&6; }
27411 fi
27412
27413
27414   if test x$GLIB_GENMARSHAL = xno; then
27415     as_fn_error $? "Could not find a glib-genmarshal in your PATH" "$LINENO" 5
27416   fi
27417
27418   # Extract the first word of "glib-compile-schemas", so it can be a program name with args.
27419 set dummy glib-compile-schemas; ac_word=$2
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27421 $as_echo_n "checking for $ac_word... " >&6; }
27422 if ${ac_cv_path_GLIB_COMPILE_SCHEMAS+:} false; then :
27423   $as_echo_n "(cached) " >&6
27424 else
27425   case $GLIB_COMPILE_SCHEMAS in
27426   [\\/]* | ?:[\\/]*)
27427   ac_cv_path_GLIB_COMPILE_SCHEMAS="$GLIB_COMPILE_SCHEMAS" # Let the user override the test with a path.
27428   ;;
27429   *)
27430   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27431 for as_dir in $PATH
27432 do
27433   IFS=$as_save_IFS
27434   test -z "$as_dir" && as_dir=.
27435     for ac_exec_ext in '' $ac_executable_extensions; do
27436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27437     ac_cv_path_GLIB_COMPILE_SCHEMAS="$as_dir/$ac_word$ac_exec_ext"
27438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27439     break 2
27440   fi
27441 done
27442   done
27443 IFS=$as_save_IFS
27444
27445   test -z "$ac_cv_path_GLIB_COMPILE_SCHEMAS" && ac_cv_path_GLIB_COMPILE_SCHEMAS="no"
27446   ;;
27447 esac
27448 fi
27449 GLIB_COMPILE_SCHEMAS=$ac_cv_path_GLIB_COMPILE_SCHEMAS
27450 if test -n "$GLIB_COMPILE_SCHEMAS"; then
27451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_SCHEMAS" >&5
27452 $as_echo "$GLIB_COMPILE_SCHEMAS" >&6; }
27453 else
27454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27455 $as_echo "no" >&6; }
27456 fi
27457
27458
27459   if test x$GLIB_COMPILE_SCHEMAS = xno; then
27460     as_fn_error $? "Could not find a glib-compile-schemas in your PATH" "$LINENO" 5
27461   fi
27462
27463   # Extract the first word of "glib-compile-resources", so it can be a program name with args.
27464 set dummy glib-compile-resources; ac_word=$2
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27466 $as_echo_n "checking for $ac_word... " >&6; }
27467 if ${ac_cv_path_GLIB_COMPILE_RESOURCES+:} false; then :
27468   $as_echo_n "(cached) " >&6
27469 else
27470   case $GLIB_COMPILE_RESOURCES in
27471   [\\/]* | ?:[\\/]*)
27472   ac_cv_path_GLIB_COMPILE_RESOURCES="$GLIB_COMPILE_RESOURCES" # Let the user override the test with a path.
27473   ;;
27474   *)
27475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27476 for as_dir in $PATH
27477 do
27478   IFS=$as_save_IFS
27479   test -z "$as_dir" && as_dir=.
27480     for ac_exec_ext in '' $ac_executable_extensions; do
27481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27482     ac_cv_path_GLIB_COMPILE_RESOURCES="$as_dir/$ac_word$ac_exec_ext"
27483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27484     break 2
27485   fi
27486 done
27487   done
27488 IFS=$as_save_IFS
27489
27490   test -z "$ac_cv_path_GLIB_COMPILE_RESOURCES" && ac_cv_path_GLIB_COMPILE_RESOURCES="no"
27491   ;;
27492 esac
27493 fi
27494 GLIB_COMPILE_RESOURCES=$ac_cv_path_GLIB_COMPILE_RESOURCES
27495 if test -n "$GLIB_COMPILE_RESOURCES"; then
27496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_COMPILE_RESOURCES" >&5
27497 $as_echo "$GLIB_COMPILE_RESOURCES" >&6; }
27498 else
27499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27500 $as_echo "no" >&6; }
27501 fi
27502
27503
27504   if test x$GLIB_COMPILE_RESOURCES = xno; then
27505     as_fn_error $? "Could not find a glib-compile-resources in your PATH" "$LINENO" 5
27506   fi
27507 fi
27508
27509
27510
27511
27512
27513     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
27514 set dummy gtkdoc-check; ac_word=$2
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27516 $as_echo_n "checking for $ac_word... " >&6; }
27517 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
27518   $as_echo_n "(cached) " >&6
27519 else
27520   case $GTKDOC_CHECK in
27521   [\\/]* | ?:[\\/]*)
27522   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
27523   ;;
27524   *)
27525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27526 for as_dir in $PATH
27527 do
27528   IFS=$as_save_IFS
27529   test -z "$as_dir" && as_dir=.
27530     for ac_exec_ext in '' $ac_executable_extensions; do
27531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27532     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
27533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27534     break 2
27535   fi
27536 done
27537   done
27538 IFS=$as_save_IFS
27539
27540   ;;
27541 esac
27542 fi
27543 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
27544 if test -n "$GTKDOC_CHECK"; then
27545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
27546 $as_echo "$GTKDOC_CHECK" >&6; }
27547 else
27548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27549 $as_echo "no" >&6; }
27550 fi
27551
27552
27553   for ac_prog in gtkdoc-rebase
27554 do
27555   # Extract the first word of "$ac_prog", so it can be a program name with args.
27556 set dummy $ac_prog; ac_word=$2
27557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27558 $as_echo_n "checking for $ac_word... " >&6; }
27559 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
27560   $as_echo_n "(cached) " >&6
27561 else
27562   case $GTKDOC_REBASE in
27563   [\\/]* | ?:[\\/]*)
27564   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
27565   ;;
27566   *)
27567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27568 for as_dir in $PATH
27569 do
27570   IFS=$as_save_IFS
27571   test -z "$as_dir" && as_dir=.
27572     for ac_exec_ext in '' $ac_executable_extensions; do
27573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27574     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
27575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27576     break 2
27577   fi
27578 done
27579   done
27580 IFS=$as_save_IFS
27581
27582   ;;
27583 esac
27584 fi
27585 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
27586 if test -n "$GTKDOC_REBASE"; then
27587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
27588 $as_echo "$GTKDOC_REBASE" >&6; }
27589 else
27590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27591 $as_echo "no" >&6; }
27592 fi
27593
27594
27595   test -n "$GTKDOC_REBASE" && break
27596 done
27597 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
27598
27599   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
27600 set dummy gtkdoc-mkpdf; ac_word=$2
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27602 $as_echo_n "checking for $ac_word... " >&6; }
27603 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
27604   $as_echo_n "(cached) " >&6
27605 else
27606   case $GTKDOC_MKPDF in
27607   [\\/]* | ?:[\\/]*)
27608   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
27609   ;;
27610   *)
27611   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27612 for as_dir in $PATH
27613 do
27614   IFS=$as_save_IFS
27615   test -z "$as_dir" && as_dir=.
27616     for ac_exec_ext in '' $ac_executable_extensions; do
27617   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27618     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
27619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27620     break 2
27621   fi
27622 done
27623   done
27624 IFS=$as_save_IFS
27625
27626   ;;
27627 esac
27628 fi
27629 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
27630 if test -n "$GTKDOC_MKPDF"; then
27631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
27632 $as_echo "$GTKDOC_MKPDF" >&6; }
27633 else
27634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27635 $as_echo "no" >&6; }
27636 fi
27637
27638
27639
27640
27641 # Check whether --with-html-dir was given.
27642 if test "${with_html_dir+set}" = set; then :
27643   withval=$with_html_dir;
27644 else
27645   with_html_dir='${datadir}/gtk-doc/html'
27646 fi
27647
27648   HTML_DIR="$with_html_dir"
27649
27650
27651     # Check whether --enable-gtk-doc was given.
27652 if test "${enable_gtk_doc+set}" = set; then :
27653   enableval=$enable_gtk_doc;
27654 else
27655   enable_gtk_doc=no
27656 fi
27657
27658
27659   if test x$enable_gtk_doc = xyes; then
27660     if test -n "$PKG_CONFIG" && \
27661     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
27662   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
27663   ac_status=$?
27664   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27665   test $ac_status = 0; }; then
27666   :
27667 else
27668   as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
27669 fi
27670         if test "x$PACKAGE_NAME" != "xglib"; then
27671
27672 pkg_failed=no
27673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
27674 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
27675
27676 if test -n "$GTKDOC_DEPS_CFLAGS"; then
27677     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
27678  elif test -n "$PKG_CONFIG"; then
27679     if test -n "$PKG_CONFIG" && \
27680     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
27681   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
27682   ac_status=$?
27683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27684   test $ac_status = 0; }; then
27685   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
27686 else
27687   pkg_failed=yes
27688 fi
27689  else
27690     pkg_failed=untried
27691 fi
27692 if test -n "$GTKDOC_DEPS_LIBS"; then
27693     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
27694  elif test -n "$PKG_CONFIG"; then
27695     if test -n "$PKG_CONFIG" && \
27696     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0\""; } >&5
27697   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
27698   ac_status=$?
27699   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27700   test $ac_status = 0; }; then
27701   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
27702 else
27703   pkg_failed=yes
27704 fi
27705  else
27706     pkg_failed=untried
27707 fi
27708
27709
27710
27711 if test $pkg_failed = yes; then
27712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 $as_echo "no" >&6; }
27714
27715 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27716         _pkg_short_errors_supported=yes
27717 else
27718         _pkg_short_errors_supported=no
27719 fi
27720         if test $_pkg_short_errors_supported = yes; then
27721                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
27722         else
27723                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
27724         fi
27725         # Put the nasty error message in config.log where it belongs
27726         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
27727
27728         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
27729
27730 $GTKDOC_DEPS_PKG_ERRORS
27731
27732 Consider adjusting the PKG_CONFIG_PATH environment variable if you
27733 installed software in a non-standard prefix.
27734
27735 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27736 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27737 See the pkg-config man page for more details." "$LINENO" 5
27738
27739 elif test $pkg_failed = untried; then
27740         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27741 $as_echo "no" >&6; }
27742         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27744 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
27745 is in your PATH or set the PKG_CONFIG environment variable to the full
27746 path to pkg-config.
27747
27748 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
27749 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
27750 See the pkg-config man page for more details.
27751
27752 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
27753 See \`config.log' for more details" "$LINENO" 5; }
27754
27755 else
27756         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
27757         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
27758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27759 $as_echo "yes" >&6; }
27760
27761 fi
27762     fi
27763   fi
27764
27765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
27766 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
27767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
27768 $as_echo "$enable_gtk_doc" >&6; }
27769
27770     # Check whether --enable-gtk-doc-html was given.
27771 if test "${enable_gtk_doc_html+set}" = set; then :
27772   enableval=$enable_gtk_doc_html;
27773 else
27774   enable_gtk_doc_html=yes
27775 fi
27776
27777     # Check whether --enable-gtk-doc-pdf was given.
27778 if test "${enable_gtk_doc_pdf+set}" = set; then :
27779   enableval=$enable_gtk_doc_pdf;
27780 else
27781   enable_gtk_doc_pdf=no
27782 fi
27783
27784
27785   if test -z "$GTKDOC_MKPDF"; then
27786     enable_gtk_doc_pdf=no
27787   fi
27788
27789
27790    if test x$enable_gtk_doc = xyes; then
27791   ENABLE_GTK_DOC_TRUE=
27792   ENABLE_GTK_DOC_FALSE='#'
27793 else
27794   ENABLE_GTK_DOC_TRUE='#'
27795   ENABLE_GTK_DOC_FALSE=
27796 fi
27797
27798    if test x$enable_gtk_doc_html = xyes; then
27799   GTK_DOC_BUILD_HTML_TRUE=
27800   GTK_DOC_BUILD_HTML_FALSE='#'
27801 else
27802   GTK_DOC_BUILD_HTML_TRUE='#'
27803   GTK_DOC_BUILD_HTML_FALSE=
27804 fi
27805
27806    if test x$enable_gtk_doc_pdf = xyes; then
27807   GTK_DOC_BUILD_PDF_TRUE=
27808   GTK_DOC_BUILD_PDF_FALSE='#'
27809 else
27810   GTK_DOC_BUILD_PDF_TRUE='#'
27811   GTK_DOC_BUILD_PDF_FALSE=
27812 fi
27813
27814    if test -n "$LIBTOOL"; then
27815   GTK_DOC_USE_LIBTOOL_TRUE=
27816   GTK_DOC_USE_LIBTOOL_FALSE='#'
27817 else
27818   GTK_DOC_USE_LIBTOOL_TRUE='#'
27819   GTK_DOC_USE_LIBTOOL_FALSE=
27820 fi
27821
27822    if test -n "$GTKDOC_REBASE"; then
27823   GTK_DOC_USE_REBASE_TRUE=
27824   GTK_DOC_USE_REBASE_FALSE='#'
27825 else
27826   GTK_DOC_USE_REBASE_TRUE='#'
27827   GTK_DOC_USE_REBASE_FALSE=
27828 fi
27829
27830
27831
27832 # Check whether --enable-man was given.
27833 if test "${enable_man+set}" = set; then :
27834   enableval=$enable_man; enable_man=yes
27835 else
27836   enable_man=no
27837 fi
27838
27839
27840 if test "${enable_man}" != no; then
27841 # Extract the first word of "xsltproc", so it can be a program name with args.
27842 set dummy xsltproc; ac_word=$2
27843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27844 $as_echo_n "checking for $ac_word... " >&6; }
27845 if ${ac_cv_path_XSLTPROC+:} false; then :
27846   $as_echo_n "(cached) " >&6
27847 else
27848   case $XSLTPROC in
27849   [\\/]* | ?:[\\/]*)
27850   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
27851   ;;
27852   *)
27853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27854 for as_dir in $PATH
27855 do
27856   IFS=$as_save_IFS
27857   test -z "$as_dir" && as_dir=.
27858     for ac_exec_ext in '' $ac_executable_extensions; do
27859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27860     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
27861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27862     break 2
27863   fi
27864 done
27865   done
27866 IFS=$as_save_IFS
27867
27868   ;;
27869 esac
27870 fi
27871 XSLTPROC=$ac_cv_path_XSLTPROC
27872 if test -n "$XSLTPROC"; then
27873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
27874 $as_echo "$XSLTPROC" >&6; }
27875 else
27876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27877 $as_echo "no" >&6; }
27878 fi
27879
27880
27881   if test -z "$XSLTPROC"; then
27882     enable_man=no
27883   fi
27884
27885
27886   # check for the presence of the XML catalog
27887
27888 # Check whether --with-xml-catalog was given.
27889 if test "${with_xml_catalog+set}" = set; then :
27890   withval=$with_xml_catalog;
27891 else
27892   with_xml_catalog=/etc/xml/catalog
27893 fi
27894
27895   jh_found_xmlcatalog=true
27896   XML_CATALOG_FILE="$with_xml_catalog"
27897
27898   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
27899 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
27900   if test -f "$XML_CATALOG_FILE"; then
27901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27902 $as_echo "found" >&6; }
27903   else
27904     jh_found_xmlcatalog=false
27905     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27906 $as_echo "not found" >&6; }
27907   fi
27908
27909   # check for the xmlcatalog program
27910   # Extract the first word of "xmlcatalog", so it can be a program name with args.
27911 set dummy xmlcatalog; ac_word=$2
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27913 $as_echo_n "checking for $ac_word... " >&6; }
27914 if ${ac_cv_path_XMLCATALOG+:} false; then :
27915   $as_echo_n "(cached) " >&6
27916 else
27917   case $XMLCATALOG in
27918   [\\/]* | ?:[\\/]*)
27919   ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
27920   ;;
27921   *)
27922   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27923 for as_dir in $PATH
27924 do
27925   IFS=$as_save_IFS
27926   test -z "$as_dir" && as_dir=.
27927     for ac_exec_ext in '' $ac_executable_extensions; do
27928   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27929     ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
27930     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27931     break 2
27932   fi
27933 done
27934   done
27935 IFS=$as_save_IFS
27936
27937   test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
27938   ;;
27939 esac
27940 fi
27941 XMLCATALOG=$ac_cv_path_XMLCATALOG
27942 if test -n "$XMLCATALOG"; then
27943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
27944 $as_echo "$XMLCATALOG" >&6; }
27945 else
27946   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27947 $as_echo "no" >&6; }
27948 fi
27949
27950
27951   if test "x$XMLCATALOG" = xno; then
27952     jh_found_xmlcatalog=false
27953   fi
27954
27955   if $jh_found_xmlcatalog; then
27956     :
27957   else
27958     :
27959   fi
27960
27961
27962     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.1.2 in XML catalog" >&5
27963 $as_echo_n "checking for DocBook XML DTD V4.1.2 in XML catalog... " >&6; }
27964   if $jh_found_xmlcatalog && \
27965      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.1.2//EN\" >&2"; } >&5
27966   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.1.2//EN" >&2) 2>&5
27967   ac_status=$?
27968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27969   test $ac_status = 0; }; then
27970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27971 $as_echo "found" >&6; }
27972       else
27973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27974 $as_echo "not found" >&6; }
27975     enable_man=no
27976   fi
27977
27978
27979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
27980 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
27981   if $jh_found_xmlcatalog && \
27982      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
27983   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
27984   ac_status=$?
27985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27986   test $ac_status = 0; }; then
27987     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27988 $as_echo "found" >&6; }
27989       else
27990     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27991 $as_echo "not found" >&6; }
27992     enable_man=no
27993   fi
27994
27995 fi
27996
27997  if test x$enable_man != xno; then
27998   ENABLE_MAN_TRUE=
27999   ENABLE_MAN_FALSE='#'
28000 else
28001   ENABLE_MAN_TRUE='#'
28002   ENABLE_MAN_FALSE=
28003 fi
28004
28005
28006
28007 # Check whether --enable-dtrace was given.
28008 if test "${enable_dtrace+set}" = set; then :
28009   enableval=$enable_dtrace;
28010 fi
28011
28012 have_dtrace=no
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include dtrace tracing support" >&5
28014 $as_echo_n "checking whether to include dtrace tracing support... " >&6; }
28015 if test "x$enable_dtrace" != xno; then
28016   if test x$glib_have_carbon = xyes; then
28017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no (not yet compatible with MacOS dtrace)" >&5
28018 $as_echo "no (not yet compatible with MacOS dtrace)" >&6; }
28019   else
28020     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28021 $as_echo "yes" >&6; }
28022     for ac_prog in dtrace
28023 do
28024   # Extract the first word of "$ac_prog", so it can be a program name with args.
28025 set dummy $ac_prog; ac_word=$2
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28027 $as_echo_n "checking for $ac_word... " >&6; }
28028 if ${ac_cv_prog_DTRACE+:} false; then :
28029   $as_echo_n "(cached) " >&6
28030 else
28031   if test -n "$DTRACE"; then
28032   ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
28033 else
28034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28035 for as_dir in $PATH
28036 do
28037   IFS=$as_save_IFS
28038   test -z "$as_dir" && as_dir=.
28039     for ac_exec_ext in '' $ac_executable_extensions; do
28040   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28041     ac_cv_prog_DTRACE="$ac_prog"
28042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28043     break 2
28044   fi
28045 done
28046   done
28047 IFS=$as_save_IFS
28048
28049 fi
28050 fi
28051 DTRACE=$ac_cv_prog_DTRACE
28052 if test -n "$DTRACE"; then
28053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
28054 $as_echo "$DTRACE" >&6; }
28055 else
28056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28057 $as_echo "no" >&6; }
28058 fi
28059
28060
28061   test -n "$DTRACE" && break
28062 done
28063
28064     if test -z "$DTRACE"; then
28065       if test "x$enable_dtrace" = xyes; then
28066         as_fn_error $? "dtrace not found" "$LINENO" 5
28067       fi
28068     else
28069       ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
28070 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
28071   have_dtrace=yes
28072 else
28073   if test "x$enable_dtrace" = xyes; then
28074                         as_fn_error $? "dtrace support needs sys/sdt.h header" "$LINENO" 5
28075                        fi
28076 fi
28077
28078
28079     fi
28080   fi
28081 else
28082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28083 $as_echo "no" >&6; }
28084 fi
28085 if test "x$have_dtrace" = xyes; then
28086
28087 $as_echo "#define HAVE_DTRACE 1" >>confdefs.h
28088
28089 fi
28090  if test x$have_dtrace = xyes ; then
28091   ENABLE_DTRACE_TRUE=
28092   ENABLE_DTRACE_FALSE='#'
28093 else
28094   ENABLE_DTRACE_TRUE='#'
28095   ENABLE_DTRACE_FALSE=
28096 fi
28097
28098
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include systemtap tracing support" >&5
28100 $as_echo_n "checking whether to include systemtap tracing support... " >&6; }
28101 # Check whether --enable-systemtap was given.
28102 if test "${enable_systemtap+set}" = set; then :
28103   enableval=$enable_systemtap;
28104 fi
28105
28106 have_systemtap=no
28107 if test "x$enable_systemtap" != xno -a "x$have_dtrace" = xyes; then
28108   have_systemtap=yes
28109 fi
28110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_systemtap}" >&5
28111 $as_echo "${have_systemtap}" >&6; }
28112
28113  if test x$have_systemtap = xyes; then
28114   ENABLE_SYSTEMTAP_TRUE=
28115   ENABLE_SYSTEMTAP_FALSE='#'
28116 else
28117   ENABLE_SYSTEMTAP_TRUE='#'
28118   ENABLE_SYSTEMTAP_FALSE=
28119 fi
28120
28121
28122
28123 # Check whether --with-tapset-install-dir was given.
28124 if test "${with_tapset_install_dir+set}" = set; then :
28125   withval=$with_tapset_install_dir; if test "x${withval}" = x; then
28126                ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28127              else
28128                ABS_TAPSET_DIR="${withval}"
28129               fi
28130 else
28131   ABS_TAPSET_DIR="\$(datadir)/systemtap/tapset"
28132 fi
28133
28134
28135
28136
28137 # Check whether --enable-gcov was given.
28138 if test "${enable_gcov+set}" = set; then :
28139   enableval=$enable_gcov; use_gcov=$enableval
28140 else
28141   use_gcov=no
28142 fi
28143
28144
28145 if test "x$use_gcov" = "xyes"; then
28146     if test "$GCC" != "yes"; then
28147     as_fn_error $? "GCC is required for --enable-gcov" "$LINENO" 5
28148   fi
28149
28150     # Extract the first word of "shtool", so it can be a program name with args.
28151 set dummy shtool; ac_word=$2
28152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28153 $as_echo_n "checking for $ac_word... " >&6; }
28154 if ${ac_cv_prog_SHTOOL+:} false; then :
28155   $as_echo_n "(cached) " >&6
28156 else
28157   if test -n "$SHTOOL"; then
28158   ac_cv_prog_SHTOOL="$SHTOOL" # Let the user override the test.
28159 else
28160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28161 for as_dir in $PATH
28162 do
28163   IFS=$as_save_IFS
28164   test -z "$as_dir" && as_dir=.
28165     for ac_exec_ext in '' $ac_executable_extensions; do
28166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28167     ac_cv_prog_SHTOOL="shtool"
28168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28169     break 2
28170   fi
28171 done
28172   done
28173 IFS=$as_save_IFS
28174
28175 fi
28176 fi
28177 SHTOOL=$ac_cv_prog_SHTOOL
28178 if test -n "$SHTOOL"; then
28179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHTOOL" >&5
28180 $as_echo "$SHTOOL" >&6; }
28181 else
28182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28183 $as_echo "no" >&6; }
28184 fi
28185
28186
28187   case `$SHTOOL path $CC` in
28188     *ccache*) gcc_ccache=yes;;
28189     *) gcc_ccache=no;;
28190   esac
28191
28192   if test "$gcc_ccache" = "yes" && (test -z "$CCACHE_DISABLE" || test "$CCACHE_DISABLE" != "1"); then
28193     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
28194   fi
28195
28196   ltp_version_list="1.6 1.7 1.8 1.9"
28197   # Extract the first word of "lcov", so it can be a program name with args.
28198 set dummy lcov; ac_word=$2
28199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28200 $as_echo_n "checking for $ac_word... " >&6; }
28201 if ${ac_cv_prog_LTP+:} false; then :
28202   $as_echo_n "(cached) " >&6
28203 else
28204   if test -n "$LTP"; then
28205   ac_cv_prog_LTP="$LTP" # Let the user override the test.
28206 else
28207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28208 for as_dir in $PATH
28209 do
28210   IFS=$as_save_IFS
28211   test -z "$as_dir" && as_dir=.
28212     for ac_exec_ext in '' $ac_executable_extensions; do
28213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28214     ac_cv_prog_LTP="lcov"
28215     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28216     break 2
28217   fi
28218 done
28219   done
28220 IFS=$as_save_IFS
28221
28222 fi
28223 fi
28224 LTP=$ac_cv_prog_LTP
28225 if test -n "$LTP"; then
28226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP" >&5
28227 $as_echo "$LTP" >&6; }
28228 else
28229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28230 $as_echo "no" >&6; }
28231 fi
28232
28233
28234   # Extract the first word of "genhtml", so it can be a program name with args.
28235 set dummy genhtml; ac_word=$2
28236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28237 $as_echo_n "checking for $ac_word... " >&6; }
28238 if ${ac_cv_prog_LTP_GENHTML+:} false; then :
28239   $as_echo_n "(cached) " >&6
28240 else
28241   if test -n "$LTP_GENHTML"; then
28242   ac_cv_prog_LTP_GENHTML="$LTP_GENHTML" # Let the user override the test.
28243 else
28244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28245 for as_dir in $PATH
28246 do
28247   IFS=$as_save_IFS
28248   test -z "$as_dir" && as_dir=.
28249     for ac_exec_ext in '' $ac_executable_extensions; do
28250   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28251     ac_cv_prog_LTP_GENHTML="genhtml"
28252     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28253     break 2
28254   fi
28255 done
28256   done
28257 IFS=$as_save_IFS
28258
28259 fi
28260 fi
28261 LTP_GENHTML=$ac_cv_prog_LTP_GENHTML
28262 if test -n "$LTP_GENHTML"; then
28263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTP_GENHTML" >&5
28264 $as_echo "$LTP_GENHTML" >&6; }
28265 else
28266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28267 $as_echo "no" >&6; }
28268 fi
28269
28270
28271
28272   if test "$LTP"; then
28273     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ltp version" >&5
28274 $as_echo_n "checking for ltp version... " >&6; }
28275 if ${glib_cv_ltp_version+:} false; then :
28276   $as_echo_n "(cached) " >&6
28277 else
28278
28279       glib_cv_ltp_version=invalid
28280       ltp_version=`$LTP -v 2>/dev/null | $SED -e 's/^.* //'`
28281       for ltp_check_version in $ltp_version_list; do
28282         if test "$ltp_version" = "$ltp_check_version"; then
28283           glib_cv_ltp_version="$ltp_check_version (ok)"
28284         fi
28285       done
28286
28287 fi
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $glib_cv_ltp_version" >&5
28289 $as_echo "$glib_cv_ltp_version" >&6; }
28290   else
28291     ltp_msg="To enable code coverage reporting you must have one of the following LTP versions installed: $ltp_version_list"
28292     as_fn_error $? "$ltp_msg" "$LINENO" 5
28293   fi
28294
28295   case $glib_cv_ltp_version in
28296     ""|invalid)
28297       ltp_msg="You must have one of the following versions of LTP: $ltp_version_list (found: $ltp_version)."
28298       as_fn_error $? "$ltp_msg" "$LINENO" 5
28299       LTP="exit 0;"
28300       ;;
28301   esac
28302
28303   if test -z "$LTP_GENHTML"; then
28304     as_fn_error $? "Could not find genhtml from the LTP package" "$LINENO" 5
28305   fi
28306
28307
28308   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
28309
28310
28311     CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
28312   LDFLAGS="$LDFLAGS -lgcov"
28313 fi
28314
28315
28316 ac_config_commands="$ac_config_commands glib/glibconfig.h"
28317
28318
28319 # Check for libdbus1 - Optional - is only used in the GDBus test cases
28320 #
28321 # 1.2.14 required for dbus_message_set_serial
28322
28323 pkg_failed=no
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS1" >&5
28325 $as_echo_n "checking for DBUS1... " >&6; }
28326
28327 if test -n "$DBUS1_CFLAGS"; then
28328     pkg_cv_DBUS1_CFLAGS="$DBUS1_CFLAGS"
28329  elif test -n "$PKG_CONFIG"; then
28330     if test -n "$PKG_CONFIG" && \
28331     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28332   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28333   ac_status=$?
28334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28335   test $ac_status = 0; }; then
28336   pkg_cv_DBUS1_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.2.14" 2>/dev/null`
28337 else
28338   pkg_failed=yes
28339 fi
28340  else
28341     pkg_failed=untried
28342 fi
28343 if test -n "$DBUS1_LIBS"; then
28344     pkg_cv_DBUS1_LIBS="$DBUS1_LIBS"
28345  elif test -n "$PKG_CONFIG"; then
28346     if test -n "$PKG_CONFIG" && \
28347     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 1.2.14\""; } >&5
28348   ($PKG_CONFIG --exists --print-errors "dbus-1 >= 1.2.14") 2>&5
28349   ac_status=$?
28350   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28351   test $ac_status = 0; }; then
28352   pkg_cv_DBUS1_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.2.14" 2>/dev/null`
28353 else
28354   pkg_failed=yes
28355 fi
28356  else
28357     pkg_failed=untried
28358 fi
28359
28360
28361
28362 if test $pkg_failed = yes; then
28363         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28364 $as_echo "no" >&6; }
28365
28366 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28367         _pkg_short_errors_supported=yes
28368 else
28369         _pkg_short_errors_supported=no
28370 fi
28371         if test $_pkg_short_errors_supported = yes; then
28372                 DBUS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "dbus-1 >= 1.2.14" 2>&1`
28373         else
28374                 DBUS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "dbus-1 >= 1.2.14" 2>&1`
28375         fi
28376         # Put the nasty error message in config.log where it belongs
28377         echo "$DBUS1_PKG_ERRORS" >&5
28378
28379         have_dbus1=no
28380 elif test $pkg_failed = untried; then
28381         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28382 $as_echo "no" >&6; }
28383         have_dbus1=no
28384 else
28385         DBUS1_CFLAGS=$pkg_cv_DBUS1_CFLAGS
28386         DBUS1_LIBS=$pkg_cv_DBUS1_LIBS
28387         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28388 $as_echo "yes" >&6; }
28389
28390 $as_echo "#define HAVE_DBUS1 1" >>confdefs.h
28391  have_dbus1=yes
28392 fi
28393
28394
28395  if test "x$have_dbus1" = "xyes"; then
28396   HAVE_DBUS1_TRUE=
28397   HAVE_DBUS1_FALSE='#'
28398 else
28399   HAVE_DBUS1_TRUE='#'
28400   HAVE_DBUS1_FALSE=
28401 fi
28402
28403
28404
28405 # Check whether --enable-Bsymbolic was given.
28406 if test "${enable_Bsymbolic+set}" = set; then :
28407   enableval=$enable_Bsymbolic;
28408 else
28409   SAVED_LDFLAGS="${LDFLAGS}"
28410                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
28411 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
28412                LDFLAGS=-Wl,-Bsymbolic-functions
28413                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28414 /* end confdefs.h.  */
28415
28416 int
28417 main ()
28418 {
28419 int main (void) { return 0; }
28420   ;
28421   return 0;
28422 }
28423 _ACEOF
28424 if ac_fn_c_try_link "$LINENO"; then :
28425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28426 $as_echo "yes" >&6; }
28427                            enable_Bsymbolic=yes
28428 else
28429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28430 $as_echo "no" >&6; }
28431                            enable_Bsymbolic=no
28432 fi
28433 rm -f core conftest.err conftest.$ac_objext \
28434     conftest$ac_exeext conftest.$ac_ext
28435                LDFLAGS="${SAVED_LDFLAGS}"
28436 fi
28437
28438
28439 if test "x${enable_Bsymbolic}" = "xyes"; then
28440   GLIB_LINK_FLAGS=-Wl,-Bsymbolic-functions
28441 fi
28442
28443
28444
28445 #
28446 # Define variables corresponding to the correct include paths to use for
28447 # in-tree building.
28448 #
28449
28450 # for config.h:
28451 config_h_INCLUDES='-I$(top_builddir)'
28452
28453
28454 # glib:
28455 #   config.h
28456 #   $(top_builddir)/glib: for glibconfig.h
28457 #   $(top_srcdir)/glib:   for glib.h
28458 #   $(top_srcdir):        for everything
28459 glib_INCLUDES='$(config_h_INCLUDES) -I$(top_builddir)/glib -I$(top_srcdir)/glib -I$(top_srcdir)'
28460
28461
28462 # gthread:
28463 #   same as glib
28464 gthread_INCLUDES='$(glib_INCLUDES)'
28465
28466
28467 # gobject:
28468 #   same as gthread
28469 gobject_INCLUDES='$(gthread_INCLUDES)'
28470
28471
28472 # gmodule:
28473 #   glib includes
28474 #   $(top_srcdir)/gmodule: for gmodule.h
28475 gmodule_INCLUDES='$(glib_INCLUDES) -I$(top_srcdir)/gmodule'
28476
28477
28478 # gio:
28479 #   same as gmodule
28480 gio_INCLUDES='$(gmodule_INCLUDES)'
28481
28482
28483
28484 ac_config_files="$ac_config_files glib-2.0.pc gmodule-2.0.pc gmodule-export-2.0.pc gmodule-no-export-2.0.pc gthread-2.0.pc gobject-2.0.pc gio-2.0.pc gio-unix-2.0.pc gio-windows-2.0.pc glib-zip glib-gettextize Makefile build/Makefile build/win32/Makefile build/win32/dirent/Makefile build/win32/vs9/Makefile build/win32/vs10/Makefile glib/Makefile glib/glib.stp glib/libcharset/Makefile glib/gnulib/Makefile glib/pcre/Makefile glib/update-pcre/Makefile glib/tests/Makefile gmodule/Makefile gmodule/gmoduleconf.h gobject/Makefile gobject/gobject.stp gobject/glib-mkenums gobject/tests/Makefile gthread/Makefile gio/Makefile gio/gdbus-2.0/codegen/Makefile gio/gdbus-2.0/codegen/config.py gio/xdgmime/Makefile gio/inotify/Makefile gio/fen/Makefile gio/fam/Makefile gio/win32/Makefile gio/tests/Makefile gio/tests/gdbus-object-manager-example/Makefile po/Makefile.in docs/Makefile docs/reference/Makefile docs/reference/glib/Makefile docs/reference/glib/version.xml docs/reference/gobject/Makefile docs/reference/gobject/version.xml docs/reference/gio/Makefile docs/reference/gio/gdbus-object-manager-example/Makefile docs/reference/gio/version.xml tests/Makefile tests/gobject/Makefile tests/refcount/Makefile m4macros/Makefile"
28485
28486
28487 ac_config_commands="$ac_config_commands chmod-scripts"
28488
28489
28490 # we want to invoke this macro solely so that the config.status script
28491 # and automake generated makefiles know about these generated files.
28492 # They are only needed to distcheck the package
28493 if false; then
28494   ac_config_files="$ac_config_files INSTALL README config.h.win32 glib/glibconfig.h.win32 glib/makefile.msc glib/glib.rc gmodule/makefile.msc gmodule/gmodule.rc gobject/makefile.msc gobject/gobject.rc gthread/makefile.msc gthread/gthread.rc gio/gio.rc tests/makefile.msc"
28495
28496 fi
28497
28498 cat >confcache <<\_ACEOF
28499 # This file is a shell script that caches the results of configure
28500 # tests run on this system so they can be shared between configure
28501 # scripts and configure runs, see configure's option --config-cache.
28502 # It is not useful on other systems.  If it contains results you don't
28503 # want to keep, you may remove or edit it.
28504 #
28505 # config.status only pays attention to the cache file if you give it
28506 # the --recheck option to rerun configure.
28507 #
28508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28510 # following values.
28511
28512 _ACEOF
28513
28514 # The following way of writing the cache mishandles newlines in values,
28515 # but we know of no workaround that is simple, portable, and efficient.
28516 # So, we kill variables containing newlines.
28517 # Ultrix sh set writes to stderr and can't be redirected directly,
28518 # and sets the high bit in the cache file unless we assign to the vars.
28519 (
28520   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28521     eval ac_val=\$$ac_var
28522     case $ac_val in #(
28523     *${as_nl}*)
28524       case $ac_var in #(
28525       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28526 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28527       esac
28528       case $ac_var in #(
28529       _ | IFS | as_nl) ;; #(
28530       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28531       *) { eval $ac_var=; unset $ac_var;} ;;
28532       esac ;;
28533     esac
28534   done
28535
28536   (set) 2>&1 |
28537     case $as_nl`(ac_space=' '; set) 2>&1` in #(
28538     *${as_nl}ac_space=\ *)
28539       # `set' does not quote correctly, so add quotes: double-quote
28540       # substitution turns \\\\ into \\, and sed turns \\ into \.
28541       sed -n \
28542         "s/'/'\\\\''/g;
28543           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28544       ;; #(
28545     *)
28546       # `set' quotes correctly as required by POSIX, so do not add quotes.
28547       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28548       ;;
28549     esac |
28550     sort
28551 ) |
28552   sed '
28553      /^ac_cv_env_/b end
28554      t clear
28555      :clear
28556      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28557      t end
28558      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28559      :end' >>confcache
28560 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28561   if test -w "$cache_file"; then
28562     if test "x$cache_file" != "x/dev/null"; then
28563       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28564 $as_echo "$as_me: updating cache $cache_file" >&6;}
28565       if test ! -f "$cache_file" || test -h "$cache_file"; then
28566         cat confcache >"$cache_file"
28567       else
28568         case $cache_file in #(
28569         */* | ?:*)
28570           mv -f confcache "$cache_file"$$ &&
28571           mv -f "$cache_file"$$ "$cache_file" ;; #(
28572         *)
28573           mv -f confcache "$cache_file" ;;
28574         esac
28575       fi
28576     fi
28577   else
28578     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28579 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28580   fi
28581 fi
28582 rm -f confcache
28583
28584 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28585 # Let make expand exec_prefix.
28586 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28587
28588 DEFS=-DHAVE_CONFIG_H
28589
28590 ac_libobjs=
28591 ac_ltlibobjs=
28592 U=
28593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28594   # 1. Remove the extension, and $U if already installed.
28595   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28596   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28597   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
28598   #    will be set to the directory where LIBOBJS objects are built.
28599   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28600   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28601 done
28602 LIBOBJS=$ac_libobjs
28603
28604 LTLIBOBJS=$ac_ltlibobjs
28605
28606
28607  if test -n "$EXEEXT"; then
28608   am__EXEEXT_TRUE=
28609   am__EXEEXT_FALSE='#'
28610 else
28611   am__EXEEXT_TRUE='#'
28612   am__EXEEXT_FALSE=
28613 fi
28614
28615 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28616   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
28617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28618 fi
28619 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
28620   as_fn_error $? "conditional \"AMDEP\" was never defined.
28621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28622 fi
28623 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28624   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28626 fi
28627 if test -z "${HAVE_GCC_TRUE}" && test -z "${HAVE_GCC_FALSE}"; then
28628   as_fn_error $? "conditional \"HAVE_GCC\" was never defined.
28629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28630 fi
28631 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
28632   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
28633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28634 fi
28635 if test -z "${OS_WIN32_X64_TRUE}" && test -z "${OS_WIN32_X64_FALSE}"; then
28636   as_fn_error $? "conditional \"OS_WIN32_X64\" was never defined.
28637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28638 fi
28639 if test -z "${OS_UNIX_TRUE}" && test -z "${OS_UNIX_FALSE}"; then
28640   as_fn_error $? "conditional \"OS_UNIX\" was never defined.
28641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28642 fi
28643 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
28644   as_fn_error $? "conditional \"OS_LINUX\" was never defined.
28645 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28646 fi
28647 if test -z "${OS_CARBON_TRUE}" && test -z "${OS_CARBON_FALSE}"; then
28648   as_fn_error $? "conditional \"OS_CARBON\" was never defined.
28649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28650 fi
28651 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
28652   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
28653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28654 fi
28655 if test -z "${HAVE_GLIB_RUNTIME_LIBDIR_TRUE}" && test -z "${HAVE_GLIB_RUNTIME_LIBDIR_FALSE}"; then
28656   as_fn_error $? "conditional \"HAVE_GLIB_RUNTIME_LIBDIR\" was never defined.
28657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28658 fi
28659 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
28660   as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
28661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28662 fi
28663 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
28664   as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
28665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28666 fi
28667 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
28668   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
28669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28670 fi
28671 if test -z "${OS_WIN32_AND_DLL_COMPILATION_TRUE}" && test -z "${OS_WIN32_AND_DLL_COMPILATION_FALSE}"; then
28672   as_fn_error $? "conditional \"OS_WIN32_AND_DLL_COMPILATION\" was never defined.
28673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28674 fi
28675 if test -z "${HAVE_GNUC_VISIBILITY_TRUE}" && test -z "${HAVE_GNUC_VISIBILITY_FALSE}"; then
28676   as_fn_error $? "conditional \"HAVE_GNUC_VISIBILITY\" was never defined.
28677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28678 fi
28679 if test -z "${HAVE_SUNSTUDIO_VISIBILITY_TRUE}" && test -z "${HAVE_SUNSTUDIO_VISIBILITY_FALSE}"; then
28680   as_fn_error $? "conditional \"HAVE_SUNSTUDIO_VISIBILITY\" was never defined.
28681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28682 fi
28683
28684 if test -z "${HAVE_NETLINK_TRUE}" && test -z "${HAVE_NETLINK_FALSE}"; then
28685   as_fn_error $? "conditional \"HAVE_NETLINK\" was never defined.
28686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28687 fi
28688 if test -z "${HAVE_GOOD_PRINTF_TRUE}" && test -z "${HAVE_GOOD_PRINTF_FALSE}"; then
28689   as_fn_error $? "conditional \"HAVE_GOOD_PRINTF\" was never defined.
28690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28691 fi
28692 if test -z "${HAVE_INOTIFY_TRUE}" && test -z "${HAVE_INOTIFY_FALSE}"; then
28693   as_fn_error $? "conditional \"HAVE_INOTIFY\" was never defined.
28694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28695 fi
28696 if test -z "${HAVE_FEN_TRUE}" && test -z "${HAVE_FEN_FALSE}"; then
28697   as_fn_error $? "conditional \"HAVE_FEN\" was never defined.
28698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28699 fi
28700 if test -z "${HAVE_FAM_TRUE}" && test -z "${HAVE_FAM_FALSE}"; then
28701   as_fn_error $? "conditional \"HAVE_FAM\" was never defined.
28702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28703 fi
28704 if test -z "${ENABLE_TIMELOOP_TRUE}" && test -z "${ENABLE_TIMELOOP_FALSE}"; then
28705   as_fn_error $? "conditional \"ENABLE_TIMELOOP\" was never defined.
28706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28707 fi
28708 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
28709   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
28710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28711 fi
28712 if test -z "${HAVE_EVENTFD_TRUE}" && test -z "${HAVE_EVENTFD_FALSE}"; then
28713   as_fn_error $? "conditional \"HAVE_EVENTFD\" was never defined.
28714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28715 fi
28716 if test -z "${USE_SYSTEM_PCRE_TRUE}" && test -z "${USE_SYSTEM_PCRE_FALSE}"; then
28717   as_fn_error $? "conditional \"USE_SYSTEM_PCRE\" was never defined.
28718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28719 fi
28720 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
28721   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
28722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28723 fi
28724 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
28725   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
28726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28727 fi
28728 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
28729   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
28730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28731 fi
28732 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
28733   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
28734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28735 fi
28736 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
28737   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
28738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28739 fi
28740 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
28741   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
28742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28743 fi
28744 if test -z "${ENABLE_MAN_TRUE}" && test -z "${ENABLE_MAN_FALSE}"; then
28745   as_fn_error $? "conditional \"ENABLE_MAN\" was never defined.
28746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28747 fi
28748 if test -z "${ENABLE_DTRACE_TRUE}" && test -z "${ENABLE_DTRACE_FALSE}"; then
28749   as_fn_error $? "conditional \"ENABLE_DTRACE\" was never defined.
28750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28751 fi
28752 if test -z "${ENABLE_SYSTEMTAP_TRUE}" && test -z "${ENABLE_SYSTEMTAP_FALSE}"; then
28753   as_fn_error $? "conditional \"ENABLE_SYSTEMTAP\" was never defined.
28754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28755 fi
28756 if test -z "${HAVE_DBUS1_TRUE}" && test -z "${HAVE_DBUS1_FALSE}"; then
28757   as_fn_error $? "conditional \"HAVE_DBUS1\" was never defined.
28758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28759 fi
28760
28761 : "${CONFIG_STATUS=./config.status}"
28762 ac_write_fail=0
28763 ac_clean_files_save=$ac_clean_files
28764 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28766 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28767 as_write_fail=0
28768 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28769 #! $SHELL
28770 # Generated by $as_me.
28771 # Run this file to recreate the current configuration.
28772 # Compiler output produced by configure, useful for debugging
28773 # configure, is in config.log if it exists.
28774
28775 debug=false
28776 ac_cs_recheck=false
28777 ac_cs_silent=false
28778
28779 SHELL=\${CONFIG_SHELL-$SHELL}
28780 export SHELL
28781 _ASEOF
28782 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28783 ## -------------------- ##
28784 ## M4sh Initialization. ##
28785 ## -------------------- ##
28786
28787 # Be more Bourne compatible
28788 DUALCASE=1; export DUALCASE # for MKS sh
28789 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28790   emulate sh
28791   NULLCMD=:
28792   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28793   # is contrary to our usage.  Disable this feature.
28794   alias -g '${1+"$@"}'='"$@"'
28795   setopt NO_GLOB_SUBST
28796 else
28797   case `(set -o) 2>/dev/null` in #(
28798   *posix*) :
28799     set -o posix ;; #(
28800   *) :
28801      ;;
28802 esac
28803 fi
28804
28805
28806 as_nl='
28807 '
28808 export as_nl
28809 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28810 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28811 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28813 # Prefer a ksh shell builtin over an external printf program on Solaris,
28814 # but without wasting forks for bash or zsh.
28815 if test -z "$BASH_VERSION$ZSH_VERSION" \
28816     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28817   as_echo='print -r --'
28818   as_echo_n='print -rn --'
28819 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28820   as_echo='printf %s\n'
28821   as_echo_n='printf %s'
28822 else
28823   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28824     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28825     as_echo_n='/usr/ucb/echo -n'
28826   else
28827     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28828     as_echo_n_body='eval
28829       arg=$1;
28830       case $arg in #(
28831       *"$as_nl"*)
28832         expr "X$arg" : "X\\(.*\\)$as_nl";
28833         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28834       esac;
28835       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28836     '
28837     export as_echo_n_body
28838     as_echo_n='sh -c $as_echo_n_body as_echo'
28839   fi
28840   export as_echo_body
28841   as_echo='sh -c $as_echo_body as_echo'
28842 fi
28843
28844 # The user is always right.
28845 if test "${PATH_SEPARATOR+set}" != set; then
28846   PATH_SEPARATOR=:
28847   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28848     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28849       PATH_SEPARATOR=';'
28850   }
28851 fi
28852
28853
28854 # IFS
28855 # We need space, tab and new line, in precisely that order.  Quoting is
28856 # there to prevent editors from complaining about space-tab.
28857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28858 # splitting by setting IFS to empty value.)
28859 IFS=" ""        $as_nl"
28860
28861 # Find who we are.  Look in the path if we contain no directory separator.
28862 as_myself=
28863 case $0 in #((
28864   *[\\/]* ) as_myself=$0 ;;
28865   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28866 for as_dir in $PATH
28867 do
28868   IFS=$as_save_IFS
28869   test -z "$as_dir" && as_dir=.
28870     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28871   done
28872 IFS=$as_save_IFS
28873
28874      ;;
28875 esac
28876 # We did not find ourselves, most probably we were run as `sh COMMAND'
28877 # in which case we are not to be found in the path.
28878 if test "x$as_myself" = x; then
28879   as_myself=$0
28880 fi
28881 if test ! -f "$as_myself"; then
28882   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28883   exit 1
28884 fi
28885
28886 # Unset variables that we do not need and which cause bugs (e.g. in
28887 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
28888 # suppresses any "Segmentation fault" message there.  '((' could
28889 # trigger a bug in pdksh 5.2.14.
28890 for as_var in BASH_ENV ENV MAIL MAILPATH
28891 do eval test x\${$as_var+set} = xset \
28892   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28893 done
28894 PS1='$ '
28895 PS2='> '
28896 PS4='+ '
28897
28898 # NLS nuisances.
28899 LC_ALL=C
28900 export LC_ALL
28901 LANGUAGE=C
28902 export LANGUAGE
28903
28904 # CDPATH.
28905 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28906
28907
28908 # as_fn_error STATUS ERROR [LINENO LOG_FD]
28909 # ----------------------------------------
28910 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28911 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28912 # script with STATUS, using 1 if that was 0.
28913 as_fn_error ()
28914 {
28915   as_status=$1; test $as_status -eq 0 && as_status=1
28916   if test "$4"; then
28917     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28918     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
28919   fi
28920   $as_echo "$as_me: error: $2" >&2
28921   as_fn_exit $as_status
28922 } # as_fn_error
28923
28924
28925 # as_fn_set_status STATUS
28926 # -----------------------
28927 # Set $? to STATUS, without forking.
28928 as_fn_set_status ()
28929 {
28930   return $1
28931 } # as_fn_set_status
28932
28933 # as_fn_exit STATUS
28934 # -----------------
28935 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28936 as_fn_exit ()
28937 {
28938   set +e
28939   as_fn_set_status $1
28940   exit $1
28941 } # as_fn_exit
28942
28943 # as_fn_unset VAR
28944 # ---------------
28945 # Portably unset VAR.
28946 as_fn_unset ()
28947 {
28948   { eval $1=; unset $1;}
28949 }
28950 as_unset=as_fn_unset
28951 # as_fn_append VAR VALUE
28952 # ----------------------
28953 # Append the text in VALUE to the end of the definition contained in VAR. Take
28954 # advantage of any shell optimizations that allow amortized linear growth over
28955 # repeated appends, instead of the typical quadratic growth present in naive
28956 # implementations.
28957 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28958   eval 'as_fn_append ()
28959   {
28960     eval $1+=\$2
28961   }'
28962 else
28963   as_fn_append ()
28964   {
28965     eval $1=\$$1\$2
28966   }
28967 fi # as_fn_append
28968
28969 # as_fn_arith ARG...
28970 # ------------------
28971 # Perform arithmetic evaluation on the ARGs, and store the result in the
28972 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28973 # must be portable across $(()) and expr.
28974 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28975   eval 'as_fn_arith ()
28976   {
28977     as_val=$(( $* ))
28978   }'
28979 else
28980   as_fn_arith ()
28981   {
28982     as_val=`expr "$@" || test $? -eq 1`
28983   }
28984 fi # as_fn_arith
28985
28986
28987 if expr a : '\(a\)' >/dev/null 2>&1 &&
28988    test "X`expr 00001 : '.*\(...\)'`" = X001; then
28989   as_expr=expr
28990 else
28991   as_expr=false
28992 fi
28993
28994 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28995   as_basename=basename
28996 else
28997   as_basename=false
28998 fi
28999
29000 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29001   as_dirname=dirname
29002 else
29003   as_dirname=false
29004 fi
29005
29006 as_me=`$as_basename -- "$0" ||
29007 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29008          X"$0" : 'X\(//\)$' \| \
29009          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29010 $as_echo X/"$0" |
29011     sed '/^.*\/\([^/][^/]*\)\/*$/{
29012             s//\1/
29013             q
29014           }
29015           /^X\/\(\/\/\)$/{
29016             s//\1/
29017             q
29018           }
29019           /^X\/\(\/\).*/{
29020             s//\1/
29021             q
29022           }
29023           s/.*/./; q'`
29024
29025 # Avoid depending upon Character Ranges.
29026 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29027 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29028 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29029 as_cr_digits='0123456789'
29030 as_cr_alnum=$as_cr_Letters$as_cr_digits
29031
29032 ECHO_C= ECHO_N= ECHO_T=
29033 case `echo -n x` in #(((((
29034 -n*)
29035   case `echo 'xy\c'` in
29036   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
29037   xy)  ECHO_C='\c';;
29038   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
29039        ECHO_T=' ';;
29040   esac;;
29041 *)
29042   ECHO_N='-n';;
29043 esac
29044
29045 rm -f conf$$ conf$$.exe conf$$.file
29046 if test -d conf$$.dir; then
29047   rm -f conf$$.dir/conf$$.file
29048 else
29049   rm -f conf$$.dir
29050   mkdir conf$$.dir 2>/dev/null
29051 fi
29052 if (echo >conf$$.file) 2>/dev/null; then
29053   if ln -s conf$$.file conf$$ 2>/dev/null; then
29054     as_ln_s='ln -s'
29055     # ... but there are two gotchas:
29056     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29057     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29058     # In both cases, we have to default to `cp -p'.
29059     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29060       as_ln_s='cp -p'
29061   elif ln conf$$.file conf$$ 2>/dev/null; then
29062     as_ln_s=ln
29063   else
29064     as_ln_s='cp -p'
29065   fi
29066 else
29067   as_ln_s='cp -p'
29068 fi
29069 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29070 rmdir conf$$.dir 2>/dev/null
29071
29072
29073 # as_fn_mkdir_p
29074 # -------------
29075 # Create "$as_dir" as a directory, including parents if necessary.
29076 as_fn_mkdir_p ()
29077 {
29078
29079   case $as_dir in #(
29080   -*) as_dir=./$as_dir;;
29081   esac
29082   test -d "$as_dir" || eval $as_mkdir_p || {
29083     as_dirs=
29084     while :; do
29085       case $as_dir in #(
29086       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
29087       *) as_qdir=$as_dir;;
29088       esac
29089       as_dirs="'$as_qdir' $as_dirs"
29090       as_dir=`$as_dirname -- "$as_dir" ||
29091 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29092          X"$as_dir" : 'X\(//\)[^/]' \| \
29093          X"$as_dir" : 'X\(//\)$' \| \
29094          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
29095 $as_echo X"$as_dir" |
29096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29097             s//\1/
29098             q
29099           }
29100           /^X\(\/\/\)[^/].*/{
29101             s//\1/
29102             q
29103           }
29104           /^X\(\/\/\)$/{
29105             s//\1/
29106             q
29107           }
29108           /^X\(\/\).*/{
29109             s//\1/
29110             q
29111           }
29112           s/.*/./; q'`
29113       test -d "$as_dir" && break
29114     done
29115     test -z "$as_dirs" || eval "mkdir $as_dirs"
29116   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
29117
29118
29119 } # as_fn_mkdir_p
29120 if mkdir -p . 2>/dev/null; then
29121   as_mkdir_p='mkdir -p "$as_dir"'
29122 else
29123   test -d ./-p && rmdir ./-p
29124   as_mkdir_p=false
29125 fi
29126
29127 if test -x / >/dev/null 2>&1; then
29128   as_test_x='test -x'
29129 else
29130   if ls -dL / >/dev/null 2>&1; then
29131     as_ls_L_option=L
29132   else
29133     as_ls_L_option=
29134   fi
29135   as_test_x='
29136     eval sh -c '\''
29137       if test -d "$1"; then
29138         test -d "$1/.";
29139       else
29140         case $1 in #(
29141         -*)set "./$1";;
29142         esac;
29143         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
29144         ???[sx]*):;;*)false;;esac;fi
29145     '\'' sh
29146   '
29147 fi
29148 as_executable_p=$as_test_x
29149
29150 # Sed expression to map a string onto a valid CPP name.
29151 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29152
29153 # Sed expression to map a string onto a valid variable name.
29154 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29155
29156
29157 exec 6>&1
29158 ## ----------------------------------- ##
29159 ## Main body of $CONFIG_STATUS script. ##
29160 ## ----------------------------------- ##
29161 _ASEOF
29162 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
29163
29164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29165 # Save the log message, to keep $0 and so on meaningful, and to
29166 # report actual input values of CONFIG_FILES etc. instead of their
29167 # values after options handling.
29168 ac_log="
29169 This file was extended by glib $as_me 2.31.20, which was
29170 generated by GNU Autoconf 2.68.  Invocation command line was
29171
29172   CONFIG_FILES    = $CONFIG_FILES
29173   CONFIG_HEADERS  = $CONFIG_HEADERS
29174   CONFIG_LINKS    = $CONFIG_LINKS
29175   CONFIG_COMMANDS = $CONFIG_COMMANDS
29176   $ $0 $@
29177
29178 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29179 "
29180
29181 _ACEOF
29182
29183 case $ac_config_files in *"
29184 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29185 esac
29186
29187 case $ac_config_headers in *"
29188 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29189 esac
29190
29191
29192 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29193 # Files that config.status was made for.
29194 config_files="$ac_config_files"
29195 config_headers="$ac_config_headers"
29196 config_commands="$ac_config_commands"
29197
29198 _ACEOF
29199
29200 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29201 ac_cs_usage="\
29202 \`$as_me' instantiates files and other configuration actions
29203 from templates according to the current configuration.  Unless the files
29204 and actions are specified as TAGs, all are instantiated by default.
29205
29206 Usage: $0 [OPTION]... [TAG]...
29207
29208   -h, --help       print this help, then exit
29209   -V, --version    print version number and configuration settings, then exit
29210       --config     print configuration, then exit
29211   -q, --quiet, --silent
29212                    do not print progress messages
29213   -d, --debug      don't remove temporary files
29214       --recheck    update $as_me by reconfiguring in the same conditions
29215       --file=FILE[:TEMPLATE]
29216                    instantiate the configuration file FILE
29217       --header=FILE[:TEMPLATE]
29218                    instantiate the configuration header FILE
29219
29220 Configuration files:
29221 $config_files
29222
29223 Configuration headers:
29224 $config_headers
29225
29226 Configuration commands:
29227 $config_commands
29228
29229 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib>."
29230
29231 _ACEOF
29232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29233 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29234 ac_cs_version="\\
29235 glib config.status 2.31.20
29236 configured by $0, generated by GNU Autoconf 2.68,
29237   with options \\"\$ac_cs_config\\"
29238
29239 Copyright (C) 2010 Free Software Foundation, Inc.
29240 This config.status script is free software; the Free Software Foundation
29241 gives unlimited permission to copy, distribute and modify it."
29242
29243 ac_pwd='$ac_pwd'
29244 srcdir='$srcdir'
29245 INSTALL='$INSTALL'
29246 MKDIR_P='$MKDIR_P'
29247 AWK='$AWK'
29248 test -n "\$AWK" || AWK=awk
29249 _ACEOF
29250
29251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29252 # The default lists apply if the user does not specify any file.
29253 ac_need_defaults=:
29254 while test $# != 0
29255 do
29256   case $1 in
29257   --*=?*)
29258     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29259     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29260     ac_shift=:
29261     ;;
29262   --*=)
29263     ac_option=`expr "X$1" : 'X\([^=]*\)='`
29264     ac_optarg=
29265     ac_shift=:
29266     ;;
29267   *)
29268     ac_option=$1
29269     ac_optarg=$2
29270     ac_shift=shift
29271     ;;
29272   esac
29273
29274   case $ac_option in
29275   # Handling of the options.
29276   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29277     ac_cs_recheck=: ;;
29278   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29279     $as_echo "$ac_cs_version"; exit ;;
29280   --config | --confi | --conf | --con | --co | --c )
29281     $as_echo "$ac_cs_config"; exit ;;
29282   --debug | --debu | --deb | --de | --d | -d )
29283     debug=: ;;
29284   --file | --fil | --fi | --f )
29285     $ac_shift
29286     case $ac_optarg in
29287     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29288     '') as_fn_error $? "missing file argument" ;;
29289     esac
29290     as_fn_append CONFIG_FILES " '$ac_optarg'"
29291     ac_need_defaults=false;;
29292   --header | --heade | --head | --hea )
29293     $ac_shift
29294     case $ac_optarg in
29295     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29296     esac
29297     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29298     ac_need_defaults=false;;
29299   --he | --h)
29300     # Conflict between --help and --header
29301     as_fn_error $? "ambiguous option: \`$1'
29302 Try \`$0 --help' for more information.";;
29303   --help | --hel | -h )
29304     $as_echo "$ac_cs_usage"; exit ;;
29305   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29306   | -silent | --silent | --silen | --sile | --sil | --si | --s)
29307     ac_cs_silent=: ;;
29308
29309   # This is an error.
29310   -*) as_fn_error $? "unrecognized option: \`$1'
29311 Try \`$0 --help' for more information." ;;
29312
29313   *) as_fn_append ac_config_targets " $1"
29314      ac_need_defaults=false ;;
29315
29316   esac
29317   shift
29318 done
29319
29320 ac_configure_extra_args=
29321
29322 if $ac_cs_silent; then
29323   exec 6>/dev/null
29324   ac_configure_extra_args="$ac_configure_extra_args --silent"
29325 fi
29326
29327 _ACEOF
29328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29329 if \$ac_cs_recheck; then
29330   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29331   shift
29332   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29333   CONFIG_SHELL='$SHELL'
29334   export CONFIG_SHELL
29335   exec "\$@"
29336 fi
29337
29338 _ACEOF
29339 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29340 exec 5>>config.log
29341 {
29342   echo
29343   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29344 ## Running $as_me. ##
29345 _ASBOX
29346   $as_echo "$ac_log"
29347 } >&5
29348
29349 _ACEOF
29350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29351 #
29352 # INIT-COMMANDS
29353 #
29354 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
29355
29356
29357
29358 # The HP-UX ksh and POSIX shell print the target directory to stdout
29359 # if CDPATH is set.
29360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29361
29362 sed_quote_subst='$sed_quote_subst'
29363 double_quote_subst='$double_quote_subst'
29364 delay_variable_subst='$delay_variable_subst'
29365 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
29366 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
29367 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
29368 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
29369 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
29370 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
29371 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
29372 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
29373 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
29374 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
29375 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
29376 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
29377 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
29378 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
29379 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
29380 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
29381 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
29382 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
29383 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
29384 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
29385 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
29386 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
29387 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
29388 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
29389 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
29390 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
29391 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
29392 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
29393 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
29394 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
29395 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
29396 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
29397 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
29398 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
29399 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
29400 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
29401 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
29402 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
29403 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
29404 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
29405 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
29406 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
29407 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
29408 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
29409 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
29410 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
29411 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29412 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29413 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
29414 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
29415 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
29416 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
29417 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
29418 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
29419 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
29420 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
29421 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
29422 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"`'
29423 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
29424 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
29425 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
29426 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
29427 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
29428 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
29429 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
29430 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
29431 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
29432 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
29433 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
29434 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
29435 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
29436 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
29437 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
29438 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
29439 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
29440 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
29441 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29442 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
29443 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
29444 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
29445 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
29446 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
29447 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
29448 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
29449 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
29450 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29451 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
29452 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
29453 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
29454 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
29455 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
29456 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
29457 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
29458 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
29459 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
29460 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
29461 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
29462 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
29463 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
29464 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
29465 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
29466 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
29467 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
29468 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
29469 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
29470 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
29471 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
29472 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
29473 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
29474 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
29475 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
29476 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
29477 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
29478 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
29479 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
29480 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
29481 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
29482 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
29483 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
29484 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
29485 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
29486 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
29487 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
29488 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
29489 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
29490 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
29491 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
29492 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
29493 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
29494 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
29495 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
29496 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
29497 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
29498 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
29499 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
29500 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
29501 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
29502 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
29503 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
29504 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29505 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29506 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
29507 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
29508 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
29509 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
29510 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
29511 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
29512 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
29513 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
29514 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
29515 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29516 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29517 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
29518 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29519 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29520 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29521 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29522 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29523 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29524 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
29525 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29526 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
29527 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
29528 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
29529 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
29530 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
29531 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
29532 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
29533 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
29534 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
29535 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
29536 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
29537 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29538 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29539 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
29540 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29541 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
29542 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
29543 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
29544 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
29545 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29546 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
29547 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
29548 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
29549 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
29550
29551 LTCC='$LTCC'
29552 LTCFLAGS='$LTCFLAGS'
29553 compiler='$compiler_DEFAULT'
29554
29555 # A function that is used when there is no print builtin or printf.
29556 func_fallback_echo ()
29557 {
29558   eval 'cat <<_LTECHO_EOF
29559 \$1
29560 _LTECHO_EOF'
29561 }
29562
29563 # Quote evaled strings.
29564 for var in AS \
29565 DLLTOOL \
29566 OBJDUMP \
29567 SHELL \
29568 ECHO \
29569 PATH_SEPARATOR \
29570 SED \
29571 GREP \
29572 EGREP \
29573 FGREP \
29574 LD \
29575 NM \
29576 LN_S \
29577 lt_SP2NL \
29578 lt_NL2SP \
29579 reload_flag \
29580 deplibs_check_method \
29581 file_magic_cmd \
29582 file_magic_glob \
29583 want_nocaseglob \
29584 sharedlib_from_linklib_cmd \
29585 AR \
29586 AR_FLAGS \
29587 archiver_list_spec \
29588 STRIP \
29589 RANLIB \
29590 CC \
29591 CFLAGS \
29592 compiler \
29593 lt_cv_sys_global_symbol_pipe \
29594 lt_cv_sys_global_symbol_to_cdecl \
29595 lt_cv_sys_global_symbol_to_c_name_address \
29596 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29597 nm_file_list_spec \
29598 lt_prog_compiler_no_builtin_flag \
29599 lt_prog_compiler_pic \
29600 lt_prog_compiler_wl \
29601 lt_prog_compiler_static \
29602 lt_cv_prog_compiler_c_o \
29603 need_locks \
29604 MANIFEST_TOOL \
29605 DSYMUTIL \
29606 NMEDIT \
29607 LIPO \
29608 OTOOL \
29609 OTOOL64 \
29610 shrext_cmds \
29611 export_dynamic_flag_spec \
29612 whole_archive_flag_spec \
29613 compiler_needs_object \
29614 with_gnu_ld \
29615 allow_undefined_flag \
29616 no_undefined_flag \
29617 hardcode_libdir_flag_spec \
29618 hardcode_libdir_separator \
29619 exclude_expsyms \
29620 include_expsyms \
29621 file_list_spec \
29622 variables_saved_for_relink \
29623 libname_spec \
29624 library_names_spec \
29625 soname_spec \
29626 install_override_mode \
29627 finish_eval \
29628 old_striplib \
29629 striplib \
29630 compiler_lib_search_dirs \
29631 predep_objects \
29632 postdep_objects \
29633 predeps \
29634 postdeps \
29635 compiler_lib_search_path \
29636 LD_CXX \
29637 reload_flag_CXX \
29638 compiler_CXX \
29639 lt_prog_compiler_no_builtin_flag_CXX \
29640 lt_prog_compiler_pic_CXX \
29641 lt_prog_compiler_wl_CXX \
29642 lt_prog_compiler_static_CXX \
29643 lt_cv_prog_compiler_c_o_CXX \
29644 export_dynamic_flag_spec_CXX \
29645 whole_archive_flag_spec_CXX \
29646 compiler_needs_object_CXX \
29647 with_gnu_ld_CXX \
29648 allow_undefined_flag_CXX \
29649 no_undefined_flag_CXX \
29650 hardcode_libdir_flag_spec_CXX \
29651 hardcode_libdir_separator_CXX \
29652 exclude_expsyms_CXX \
29653 include_expsyms_CXX \
29654 file_list_spec_CXX \
29655 compiler_lib_search_dirs_CXX \
29656 predep_objects_CXX \
29657 postdep_objects_CXX \
29658 predeps_CXX \
29659 postdeps_CXX \
29660 compiler_lib_search_path_CXX; do
29661     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29662     *[\\\\\\\`\\"\\\$]*)
29663       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29664       ;;
29665     *)
29666       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29667       ;;
29668     esac
29669 done
29670
29671 # Double-quote double-evaled strings.
29672 for var in reload_cmds \
29673 old_postinstall_cmds \
29674 old_postuninstall_cmds \
29675 old_archive_cmds \
29676 extract_expsyms_cmds \
29677 old_archive_from_new_cmds \
29678 old_archive_from_expsyms_cmds \
29679 archive_cmds \
29680 archive_expsym_cmds \
29681 module_cmds \
29682 module_expsym_cmds \
29683 export_symbols_cmds \
29684 prelink_cmds \
29685 postlink_cmds \
29686 postinstall_cmds \
29687 postuninstall_cmds \
29688 finish_cmds \
29689 sys_lib_search_path_spec \
29690 sys_lib_dlsearch_path_spec \
29691 reload_cmds_CXX \
29692 old_archive_cmds_CXX \
29693 old_archive_from_new_cmds_CXX \
29694 old_archive_from_expsyms_cmds_CXX \
29695 archive_cmds_CXX \
29696 archive_expsym_cmds_CXX \
29697 module_cmds_CXX \
29698 module_expsym_cmds_CXX \
29699 export_symbols_cmds_CXX \
29700 prelink_cmds_CXX \
29701 postlink_cmds_CXX; do
29702     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
29703     *[\\\\\\\`\\"\\\$]*)
29704       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29705       ;;
29706     *)
29707       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29708       ;;
29709     esac
29710 done
29711
29712 ac_aux_dir='$ac_aux_dir'
29713 xsi_shell='$xsi_shell'
29714 lt_shell_append='$lt_shell_append'
29715
29716 # See if we are running on zsh, and set the options which allow our
29717 # commands through without removal of \ escapes INIT.
29718 if test -n "\${ZSH_VERSION+set}" ; then
29719    setopt NO_GLOB_SUBST
29720 fi
29721
29722
29723     PACKAGE='$PACKAGE'
29724     VERSION='$VERSION'
29725     TIMESTAMP='$TIMESTAMP'
29726     RM='$RM'
29727     ofile='$ofile'
29728
29729
29730
29731 ac_aux_dir='$ac_aux_dir'
29732
29733
29734
29735
29736 # Note that if two cases are the same, case goes with the first one.
29737 # Note also that this is inside an AC_OUTPUT_COMMAND.  We do not depend
29738 # on variable expansion in case labels.  Look at the generated config.status
29739 # for a hint.
29740
29741 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
29742   glib_header_alloca_h="$ac_cv_working_alloca_h"
29743 else
29744   glib_header_alloca_h="$ac_cv_header_alloca_h"
29745 fi
29746
29747 case xyes in
29748 x$ac_cv_header_float_h)
29749   glib_float_h=yes
29750   glib_mf=FLT_MIN glib_Mf=FLT_MAX
29751   glib_md=DBL_MIN glib_Md=DBL_MAX
29752   ;;
29753 x$ac_cv_header_values_h)
29754   glib_values_h=yes
29755   glib_mf=MINFLOAT  glib_Mf=MAXFLOAT
29756   glib_md=MINDOUBLE glib_Md=MAXDOUBLE
29757   ;;
29758 esac
29759
29760 case xyes in
29761 x$ac_cv_header_limits_h)
29762   glib_limits_h=yes
29763   glib_ms=SHRT_MIN glib_Ms=SHRT_MAX glib_Mus=USHRT_MAX
29764   glib_mi=INT_MIN  glib_Mi=INT_MAX  glib_Mui=UINT_MAX
29765   glib_ml=LONG_MIN glib_Ml=LONG_MAX glib_Mul=ULONG_MAX
29766   ;;
29767 x$ac_cv_header_values_h)
29768   glib_values_h=yes
29769   glib_ms=MINSHORT glib_Ms=MAXSHORT glib_Mus="(((gushort)G_MAXSHORT)*2+1)"
29770   glib_mi=MININT   glib_Mi=MAXINT   glib_Mui="(((guint)G_MAXINT)*2+1)"
29771   glib_ml=MINLONG  glib_Ml=MAXLONG  glib_Mul="(((gulong)G_MAXLONG)*2+1)"
29772   ;;
29773 esac
29774
29775 if test x$ac_cv_header_sys_poll_h = xyes ; then
29776   glib_sys_poll_h=yes
29777 fi
29778
29779 if test x$enable_included_printf = xyes ; then
29780   glib_included_printf=yes
29781 fi
29782
29783 case 2 in
29784 $ac_cv_sizeof_short)
29785   gint16=short
29786   gint16_modifier='"h"'
29787   gint16_format='"hi"'
29788   guint16_format='"hu"'
29789   ;;
29790 $ac_cv_sizeof_int)
29791   gint16=int
29792   gint16_modifier='""'
29793   gint16_format='"i"'
29794   guint16_format='"u"'
29795   ;;
29796 esac
29797 case 4 in
29798 $ac_cv_sizeof_short)
29799   gint32=short
29800   gint32_modifier='"h"'
29801   gint32_format='"hi"'
29802   guint32_format='"hu"'
29803   ;;
29804 $ac_cv_sizeof_int)
29805   gint32=int
29806   gint32_modifier='""'
29807   gint32_format='"i"'
29808   guint32_format='"u"'
29809   ;;
29810 $ac_cv_sizeof_long)
29811   gint32=long
29812   gint32_modifier='"l"'
29813   gint32_format='"li"'
29814   guint32_format='"lu"'
29815   ;;
29816 esac
29817 case 8 in
29818 $ac_cv_sizeof_int)
29819   gint64=int
29820   gint64_modifier='""'
29821   gint64_format='"i"'
29822   guint64_format='"u"'
29823   glib_extension=
29824   gint64_constant='(val)'
29825   guint64_constant='(val)'
29826   ;;
29827 $ac_cv_sizeof_long)
29828   gint64=long
29829   gint64_modifier='"l"'
29830   gint64_format='"li"'
29831   guint64_format='"lu"'
29832   glib_extension=
29833   gint64_constant='(val##L)'
29834   guint64_constant='(val##UL)'
29835   ;;
29836 $ac_cv_sizeof_long_long)
29837   gint64='long long'
29838   if test -n "$glib_cv_long_long_format"; then
29839     gint64_modifier='"'$glib_cv_long_long_format'"'
29840     gint64_format='"'$glib_cv_long_long_format'i"'
29841     guint64_format='"'$glib_cv_long_long_format'u"'
29842   fi
29843   glib_extension='G_GNUC_EXTENSION '
29844   gint64_constant='(G_GNUC_EXTENSION (val##LL))'
29845   guint64_constant='(G_GNUC_EXTENSION (val##ULL))'
29846   ;;
29847 $ac_cv_sizeof___int64)
29848   gint64='__int64'
29849   if test -n "$glib_cv_long_long_format"; then
29850     gint64_modifier='"'$glib_cv_long_long_format'"'
29851     gint64_format='"'$glib_cv_long_long_format'i"'
29852     guint64_format='"'$glib_cv_long_long_format'u"'
29853   fi
29854   glib_extension=
29855   gint64_constant='(val##i64)'
29856   guint64_constant='(val##ui64)'
29857   ;;
29858 esac
29859 glib_size_t=$ac_cv_sizeof_size_t
29860 glib_size_type_define="$glib_size_type"
29861 glib_void_p=$ac_cv_sizeof_void_p
29862 glib_long=$ac_cv_sizeof_long
29863
29864 case "$glib_size_type" in
29865 short)
29866   gsize_modifier='"h"'
29867   gsize_format='"hu"'
29868   gssize_format='"hi"'
29869   glib_msize_type='SHRT'
29870   ;;
29871 int)
29872   gsize_modifier='""'
29873   gsize_format='"u"'
29874   gssize_format='"i"'
29875   glib_msize_type='INT'
29876   ;;
29877 long)
29878   gsize_modifier='"l"'
29879   gsize_format='"lu"'
29880   gssize_format='"li"'
29881   glib_msize_type='LONG'
29882   ;;
29883 "long long"|__int64)
29884   gsize_modifier='"I64"'
29885   gsize_format='"I64u"'
29886   gssize_format='"I64i"'
29887   glib_msize_type='INT64'
29888   ;;
29889 esac
29890
29891 gintbits=`expr $ac_cv_sizeof_int \* 8`
29892 glongbits=`expr $ac_cv_sizeof_long \* 8`
29893 gsizebits=`expr $ac_cv_sizeof_size_t \* 8`
29894
29895 case $ac_cv_sizeof_void_p in
29896 $ac_cv_sizeof_int)
29897   glib_intptr_type_define=int
29898   gintptr_modifier='""'
29899   gintptr_format='"i"'
29900   guintptr_format='"u"'
29901   glib_gpi_cast='(gint)'
29902   glib_gpui_cast='(guint)'
29903   ;;
29904 $ac_cv_sizeof_long)
29905   glib_intptr_type_define=long
29906   gintptr_modifier='"l"'
29907   gintptr_format='"li"'
29908   guintptr_format='"lu"'
29909   glib_gpi_cast='(glong)'
29910   glib_gpui_cast='(gulong)'
29911   ;;
29912 $ac_cv_sizeof_long_long)
29913   glib_intptr_type_define='long long'
29914   gintptr_modifier='"I64"'
29915   gintptr_format='"I64i"'
29916   guintptr_format='"I64u"'
29917   glib_gpi_cast='(gint64)'
29918   glib_gpui_cast='(guint64)'
29919   ;;
29920 $ac_cv_sizeof___int64)
29921   glib_intptr_type_define=__int64
29922   gintptr_modifier='"I64"'
29923   gintptr_format='"I64i"'
29924   guintptr_format='"I64u"'
29925   glib_gpi_cast='(gint64)'
29926   glib_gpui_cast='(guint64)'
29927   ;;
29928 *)
29929   glib_unknown_void_p=yes
29930   ;;
29931 esac
29932
29933
29934 case xyes in
29935 x$ac_cv_func_atexit)
29936   glib_atexit="
29937 #ifdef NeXT /* @#%@! NeXTStep */
29938 # define g_ATEXIT(proc) (!atexit (proc))
29939 #else
29940 # define g_ATEXIT(proc) (atexit (proc))
29941 #endif"
29942   ;;
29943 x$ac_cv_func_on_exit)
29944   glib_atexit="
29945 #define g_ATEXIT(proc)  (on_exit ((void (*)(int, void*))(proc), NULL))"
29946   ;;
29947 esac
29948
29949 case xyes in
29950 x$ac_cv_func_memmove)
29951   glib_memmove='
29952 #define g_memmove(dest,src,len) G_STMT_START { memmove ((dest), (src), (len)); } G_STMT_END'
29953   ;;
29954 x$glib_cv_working_bcopy)
29955   glib_memmove="
29956 /* memmove isn't available, but bcopy can copy overlapping memory regions */
29957 #define g_memmove(d,s,n) G_STMT_START { bcopy ((s), (d), (n)); } G_STMT_END"
29958   ;;
29959 *)
29960   glib_memmove="
29961 /* memmove isn't found and bcopy can't copy overlapping memory regions,
29962  * so we have to roll our own copy routine. */
29963 void g_memmove (void* dest, const void * src, unsigned long len);"
29964   ;;
29965 esac
29966
29967 glib_defines="
29968 #define GLIB_MAJOR_VERSION $GLIB_MAJOR_VERSION
29969 #define GLIB_MINOR_VERSION $GLIB_MINOR_VERSION
29970 #define GLIB_MICRO_VERSION $GLIB_MICRO_VERSION
29971 "
29972
29973 case xyes in
29974 x$glib_cv_va_copy)      glib_vacopy='#define G_VA_COPY  va_copy' ;;
29975 x$glib_cv___va_copy)    glib_vacopy='#define G_VA_COPY  __va_copy' ;;
29976 *)                      glib_vacopy=''
29977 esac
29978
29979 if test x$glib_cv_va_val_copy = xno; then
29980   glib_vacopy="\$glib_vacopy
29981 #define G_VA_COPY_AS_ARRAY 1"
29982 fi
29983
29984 if test x$glib_cv_hasinline = xyes; then
29985     glib_inline='#define G_HAVE_INLINE 1'
29986 fi
29987 if test x$glib_cv_has__inline = xyes; then
29988     glib_inline="\$glib_inline
29989 #define G_HAVE___INLINE 1"
29990 fi
29991 if test x$glib_cv_has__inline__ = xyes; then
29992     glib_inline="\$glib_inline
29993 #define G_HAVE___INLINE__ 1"
29994 fi
29995
29996 g_have_gnuc_varargs=$g_have_gnuc_varargs
29997 g_have_iso_c_varargs=$g_have_iso_c_varargs
29998 g_have_iso_cxx_varargs=$g_have_iso_cxx_varargs
29999
30000 g_can_inline=$g_can_inline
30001 g_have_gnuc_visibility=$g_have_gnuc_visibility
30002 g_have_sunstudio_visibility=$g_have_sunstudio_visibility
30003
30004 if test x$ac_cv_c_bigendian = xyes; then
30005   g_byte_order=G_BIG_ENDIAN
30006   g_bs_native=BE
30007   g_bs_alien=LE
30008 else
30009   g_byte_order=G_LITTLE_ENDIAN
30010   g_bs_native=LE
30011   g_bs_alien=BE
30012 fi
30013
30014 g_pollin=$glib_cv_value_POLLIN
30015 g_pollout=$glib_cv_value_POLLOUT
30016 g_pollpri=$glib_cv_value_POLLPRI
30017 g_pollhup=$glib_cv_value_POLLHUP
30018 g_pollerr=$glib_cv_value_POLLERR
30019 g_pollnval=$glib_cv_value_POLLNVAL
30020
30021 g_af_unix=$glib_cv_value_AF_UNIX
30022 g_af_inet=$glib_cv_value_AF_INET
30023 g_af_inet6=$glib_cv_value_AF_INET6
30024
30025 g_msg_peek=$glib_cv_value_MSG_PEEK
30026 g_msg_oob=$glib_cv_value_MSG_OOB
30027 g_msg_dontroute=$glib_cv_value_MSG_DONTROUTE
30028
30029 g_stack_grows=$glib_cv_stack_grows
30030
30031 g_have_eilseq=$have_eilseq
30032
30033 g_threads_impl_def=$g_threads_impl
30034
30035 g_atomic_lock_free="$glib_cv_g_atomic_lock_free"
30036 g_memory_barrier_needed="$glib_memory_barrier_needed"
30037 g_gcc_atomic_ops="$glib_cv_gcc_has_builtin_atomic_operations"
30038
30039 g_module_suffix="$glib_gmodule_suffix"
30040
30041 g_pid_type="$glib_pid_type"
30042 case $host in
30043   *-*-beos*)
30044     glib_os="#define G_OS_BEOS"
30045     ;;
30046   *-*-cygwin*)
30047     glib_os="#define G_OS_UNIX
30048 #define G_PLATFORM_WIN32
30049 #define G_WITH_CYGWIN"
30050     ;;
30051   *-*-mingw*)
30052     glib_os="#define G_OS_WIN32
30053 #define G_PLATFORM_WIN32"
30054     ;;
30055   *)
30056     glib_os="#define G_OS_UNIX"
30057     ;;
30058 esac
30059 glib_static_compilation=""
30060 if test x$glib_win32_static_compilation = xyes; then
30061   glib_static_compilation="#define GLIB_STATIC_COMPILATION 1
30062 #define GOBJECT_STATIC_COMPILATION 1"
30063 fi
30064
30065
30066 _ACEOF
30067
30068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30069
30070 # Handling of arguments.
30071 for ac_config_target in $ac_config_targets
30072 do
30073   case $ac_config_target in
30074     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
30075     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
30076     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30077     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30078     "glib/glibconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS glib/glibconfig.h" ;;
30079     "glib-2.0.pc") CONFIG_FILES="$CONFIG_FILES glib-2.0.pc" ;;
30080     "gmodule-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-2.0.pc" ;;
30081     "gmodule-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-export-2.0.pc" ;;
30082     "gmodule-no-export-2.0.pc") CONFIG_FILES="$CONFIG_FILES gmodule-no-export-2.0.pc" ;;
30083     "gthread-2.0.pc") CONFIG_FILES="$CONFIG_FILES gthread-2.0.pc" ;;
30084     "gobject-2.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-2.0.pc" ;;
30085     "gio-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-2.0.pc" ;;
30086     "gio-unix-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-unix-2.0.pc" ;;
30087     "gio-windows-2.0.pc") CONFIG_FILES="$CONFIG_FILES gio-windows-2.0.pc" ;;
30088     "glib-zip") CONFIG_FILES="$CONFIG_FILES glib-zip" ;;
30089     "glib-gettextize") CONFIG_FILES="$CONFIG_FILES glib-gettextize" ;;
30090     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30091     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
30092     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
30093     "build/win32/dirent/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/dirent/Makefile" ;;
30094     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
30095     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
30096     "glib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/Makefile" ;;
30097     "glib/glib.stp") CONFIG_FILES="$CONFIG_FILES glib/glib.stp" ;;
30098     "glib/libcharset/Makefile") CONFIG_FILES="$CONFIG_FILES glib/libcharset/Makefile" ;;
30099     "glib/gnulib/Makefile") CONFIG_FILES="$CONFIG_FILES glib/gnulib/Makefile" ;;
30100     "glib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/pcre/Makefile" ;;
30101     "glib/update-pcre/Makefile") CONFIG_FILES="$CONFIG_FILES glib/update-pcre/Makefile" ;;
30102     "glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES glib/tests/Makefile" ;;
30103     "gmodule/Makefile") CONFIG_FILES="$CONFIG_FILES gmodule/Makefile" ;;
30104     "gmodule/gmoduleconf.h") CONFIG_FILES="$CONFIG_FILES gmodule/gmoduleconf.h" ;;
30105     "gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/Makefile" ;;
30106     "gobject/gobject.stp") CONFIG_FILES="$CONFIG_FILES gobject/gobject.stp" ;;
30107     "gobject/glib-mkenums") CONFIG_FILES="$CONFIG_FILES gobject/glib-mkenums" ;;
30108     "gobject/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gobject/tests/Makefile" ;;
30109     "gthread/Makefile") CONFIG_FILES="$CONFIG_FILES gthread/Makefile" ;;
30110     "gio/Makefile") CONFIG_FILES="$CONFIG_FILES gio/Makefile" ;;
30111     "gio/gdbus-2.0/codegen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/Makefile" ;;
30112     "gio/gdbus-2.0/codegen/config.py") CONFIG_FILES="$CONFIG_FILES gio/gdbus-2.0/codegen/config.py" ;;
30113     "gio/xdgmime/Makefile") CONFIG_FILES="$CONFIG_FILES gio/xdgmime/Makefile" ;;
30114     "gio/inotify/Makefile") CONFIG_FILES="$CONFIG_FILES gio/inotify/Makefile" ;;
30115     "gio/fen/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fen/Makefile" ;;
30116     "gio/fam/Makefile") CONFIG_FILES="$CONFIG_FILES gio/fam/Makefile" ;;
30117     "gio/win32/Makefile") CONFIG_FILES="$CONFIG_FILES gio/win32/Makefile" ;;
30118     "gio/tests/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/Makefile" ;;
30119     "gio/tests/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES gio/tests/gdbus-object-manager-example/Makefile" ;;
30120     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30121     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
30122     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
30123     "docs/reference/glib/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/Makefile" ;;
30124     "docs/reference/glib/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/glib/version.xml" ;;
30125     "docs/reference/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/Makefile" ;;
30126     "docs/reference/gobject/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gobject/version.xml" ;;
30127     "docs/reference/gio/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/Makefile" ;;
30128     "docs/reference/gio/gdbus-object-manager-example/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/gdbus-object-manager-example/Makefile" ;;
30129     "docs/reference/gio/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/gio/version.xml" ;;
30130     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
30131     "tests/gobject/Makefile") CONFIG_FILES="$CONFIG_FILES tests/gobject/Makefile" ;;
30132     "tests/refcount/Makefile") CONFIG_FILES="$CONFIG_FILES tests/refcount/Makefile" ;;
30133     "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
30134     "chmod-scripts") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-scripts" ;;
30135     "INSTALL") CONFIG_FILES="$CONFIG_FILES INSTALL" ;;
30136     "README") CONFIG_FILES="$CONFIG_FILES README" ;;
30137     "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
30138     "glib/glibconfig.h.win32") CONFIG_FILES="$CONFIG_FILES glib/glibconfig.h.win32" ;;
30139     "glib/makefile.msc") CONFIG_FILES="$CONFIG_FILES glib/makefile.msc" ;;
30140     "glib/glib.rc") CONFIG_FILES="$CONFIG_FILES glib/glib.rc" ;;
30141     "gmodule/makefile.msc") CONFIG_FILES="$CONFIG_FILES gmodule/makefile.msc" ;;
30142     "gmodule/gmodule.rc") CONFIG_FILES="$CONFIG_FILES gmodule/gmodule.rc" ;;
30143     "gobject/makefile.msc") CONFIG_FILES="$CONFIG_FILES gobject/makefile.msc" ;;
30144     "gobject/gobject.rc") CONFIG_FILES="$CONFIG_FILES gobject/gobject.rc" ;;
30145     "gthread/makefile.msc") CONFIG_FILES="$CONFIG_FILES gthread/makefile.msc" ;;
30146     "gthread/gthread.rc") CONFIG_FILES="$CONFIG_FILES gthread/gthread.rc" ;;
30147     "gio/gio.rc") CONFIG_FILES="$CONFIG_FILES gio/gio.rc" ;;
30148     "tests/makefile.msc") CONFIG_FILES="$CONFIG_FILES tests/makefile.msc" ;;
30149
30150   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30151   esac
30152 done
30153
30154
30155 # If the user did not use the arguments to specify the items to instantiate,
30156 # then the envvar interface is used.  Set only those that are not.
30157 # We use the long form for the default assignment because of an extremely
30158 # bizarre bug on SunOS 4.1.3.
30159 if $ac_need_defaults; then
30160   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30161   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30162   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30163 fi
30164
30165 # Have a temporary directory for convenience.  Make it in the build tree
30166 # simply because there is no reason against having it here, and in addition,
30167 # creating and moving files from /tmp can sometimes cause problems.
30168 # Hook for its removal unless debugging.
30169 # Note that there is a small window in which the directory will not be cleaned:
30170 # after its creation but before its name has been assigned to `$tmp'.
30171 $debug ||
30172 {
30173   tmp= ac_tmp=
30174   trap 'exit_status=$?
30175   : "${ac_tmp:=$tmp}"
30176   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30177 ' 0
30178   trap 'as_fn_exit 1' 1 2 13 15
30179 }
30180 # Create a (secure) tmp directory for tmp files.
30181
30182 {
30183   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30184   test -d "$tmp"
30185 }  ||
30186 {
30187   tmp=./conf$$-$RANDOM
30188   (umask 077 && mkdir "$tmp")
30189 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30190 ac_tmp=$tmp
30191
30192 # Set up the scripts for CONFIG_FILES section.
30193 # No need to generate them if there are no CONFIG_FILES.
30194 # This happens for instance with `./config.status config.h'.
30195 if test -n "$CONFIG_FILES"; then
30196
30197
30198 ac_cr=`echo X | tr X '\015'`
30199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
30200 # But we know of no other shell where ac_cr would be empty at this
30201 # point, so we can use a bashism as a fallback.
30202 if test "x$ac_cr" = x; then
30203   eval ac_cr=\$\'\\r\'
30204 fi
30205 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
30206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
30207   ac_cs_awk_cr='\\r'
30208 else
30209   ac_cs_awk_cr=$ac_cr
30210 fi
30211
30212 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
30213 _ACEOF
30214
30215
30216 {
30217   echo "cat >conf$$subs.awk <<_ACEOF" &&
30218   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
30219   echo "_ACEOF"
30220 } >conf$$subs.sh ||
30221   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
30223 ac_delim='%!_!# '
30224 for ac_last_try in false false false false false :; do
30225   . ./conf$$subs.sh ||
30226     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30227
30228   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
30229   if test $ac_delim_n = $ac_delim_num; then
30230     break
30231   elif $ac_last_try; then
30232     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
30233   else
30234     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30235   fi
30236 done
30237 rm -f conf$$subs.sh
30238
30239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30240 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
30241 _ACEOF
30242 sed -n '
30243 h
30244 s/^/S["/; s/!.*/"]=/
30245 p
30246 g
30247 s/^[^!]*!//
30248 :repl
30249 t repl
30250 s/'"$ac_delim"'$//
30251 t delim
30252 :nl
30253 h
30254 s/\(.\{148\}\)..*/\1/
30255 t more1
30256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
30257 p
30258 n
30259 b repl
30260 :more1
30261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30262 p
30263 g
30264 s/.\{148\}//
30265 t nl
30266 :delim
30267 h
30268 s/\(.\{148\}\)..*/\1/
30269 t more2
30270 s/["\\]/\\&/g; s/^/"/; s/$/"/
30271 p
30272 b
30273 :more2
30274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
30275 p
30276 g
30277 s/.\{148\}//
30278 t delim
30279 ' <conf$$subs.awk | sed '
30280 /^[^""]/{
30281   N
30282   s/\n//
30283 }
30284 ' >>$CONFIG_STATUS || ac_write_fail=1
30285 rm -f conf$$subs.awk
30286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30287 _ACAWK
30288 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
30289   for (key in S) S_is_set[key] = 1
30290   FS = "\a"
30291
30292 }
30293 {
30294   line = $ 0
30295   nfields = split(line, field, "@")
30296   substed = 0
30297   len = length(field[1])
30298   for (i = 2; i < nfields; i++) {
30299     key = field[i]
30300     keylen = length(key)
30301     if (S_is_set[key]) {
30302       value = S[key]
30303       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
30304       len += length(value) + length(field[++i])
30305       substed = 1
30306     } else
30307       len += 1 + keylen
30308   }
30309
30310   print line
30311 }
30312
30313 _ACAWK
30314 _ACEOF
30315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
30317   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
30318 else
30319   cat
30320 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
30321   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
30322 _ACEOF
30323
30324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
30325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
30326 # trailing colons and then remove the whole line if VPATH becomes empty
30327 # (actually we leave an empty line to preserve line numbers).
30328 if test "x$srcdir" = x.; then
30329   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
30330 h
30331 s///
30332 s/^/:/
30333 s/[      ]*$/:/
30334 s/:\$(srcdir):/:/g
30335 s/:\${srcdir}:/:/g
30336 s/:@srcdir@:/:/g
30337 s/^:*//
30338 s/:*$//
30339 x
30340 s/\(=[   ]*\).*/\1/
30341 G
30342 s/\n//
30343 s/^[^=]*=[       ]*$//
30344 }'
30345 fi
30346
30347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30348 fi # test -n "$CONFIG_FILES"
30349
30350 # Set up the scripts for CONFIG_HEADERS section.
30351 # No need to generate them if there are no CONFIG_HEADERS.
30352 # This happens for instance with `./config.status Makefile'.
30353 if test -n "$CONFIG_HEADERS"; then
30354 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
30355 BEGIN {
30356 _ACEOF
30357
30358 # Transform confdefs.h into an awk script `defines.awk', embedded as
30359 # here-document in config.status, that substitutes the proper values into
30360 # config.h.in to produce config.h.
30361
30362 # Create a delimiter string that does not exist in confdefs.h, to ease
30363 # handling of long lines.
30364 ac_delim='%!_!# '
30365 for ac_last_try in false false :; do
30366   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
30367   if test -z "$ac_tt"; then
30368     break
30369   elif $ac_last_try; then
30370     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
30371   else
30372     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30373   fi
30374 done
30375
30376 # For the awk script, D is an array of macro values keyed by name,
30377 # likewise P contains macro parameters if any.  Preserve backslash
30378 # newline sequences.
30379
30380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30381 sed -n '
30382 s/.\{148\}/&'"$ac_delim"'/g
30383 t rset
30384 :rset
30385 s/^[     ]*#[    ]*define[       ][      ]*/ /
30386 t def
30387 d
30388 :def
30389 s/\\$//
30390 t bsnl
30391 s/["\\]/\\&/g
30392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30393 D["\1"]=" \3"/p
30394 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
30395 d
30396 :bsnl
30397 s/["\\]/\\&/g
30398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
30399 D["\1"]=" \3\\\\\\n"\\/p
30400 t cont
30401 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
30402 t cont
30403 d
30404 :cont
30405 n
30406 s/.\{148\}/&'"$ac_delim"'/g
30407 t clear
30408 :clear
30409 s/\\$//
30410 t bsnlc
30411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
30412 d
30413 :bsnlc
30414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
30415 b cont
30416 ' <confdefs.h | sed '
30417 s/'"$ac_delim"'/"\\\
30418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
30419
30420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30421   for (key in D) D_is_set[key] = 1
30422   FS = "\a"
30423 }
30424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
30425   line = \$ 0
30426   split(line, arg, " ")
30427   if (arg[1] == "#") {
30428     defundef = arg[2]
30429     mac1 = arg[3]
30430   } else {
30431     defundef = substr(arg[1], 2)
30432     mac1 = arg[2]
30433   }
30434   split(mac1, mac2, "(") #)
30435   macro = mac2[1]
30436   prefix = substr(line, 1, index(line, defundef) - 1)
30437   if (D_is_set[macro]) {
30438     # Preserve the white space surrounding the "#".
30439     print prefix "define", macro P[macro] D[macro]
30440     next
30441   } else {
30442     # Replace #undef with comments.  This is necessary, for example,
30443     # in the case of _POSIX_SOURCE, which is predefined and required
30444     # on some systems where configure will not decide to define it.
30445     if (defundef == "undef") {
30446       print "/*", prefix defundef, macro, "*/"
30447       next
30448     }
30449   }
30450 }
30451 { print }
30452 _ACAWK
30453 _ACEOF
30454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30455   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
30456 fi # test -n "$CONFIG_HEADERS"
30457
30458
30459 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
30460 shift
30461 for ac_tag
30462 do
30463   case $ac_tag in
30464   :[FHLC]) ac_mode=$ac_tag; continue;;
30465   esac
30466   case $ac_mode$ac_tag in
30467   :[FHL]*:*);;
30468   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
30469   :[FH]-) ac_tag=-:-;;
30470   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30471   esac
30472   ac_save_IFS=$IFS
30473   IFS=:
30474   set x $ac_tag
30475   IFS=$ac_save_IFS
30476   shift
30477   ac_file=$1
30478   shift
30479
30480   case $ac_mode in
30481   :L) ac_source=$1;;
30482   :[FH])
30483     ac_file_inputs=
30484     for ac_f
30485     do
30486       case $ac_f in
30487       -) ac_f="$ac_tmp/stdin";;
30488       *) # Look for the file first in the build tree, then in the source tree
30489          # (if the path is not absolute).  The absolute path cannot be DOS-style,
30490          # because $ac_f cannot contain `:'.
30491          test -f "$ac_f" ||
30492            case $ac_f in
30493            [\\/$]*) false;;
30494            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30495            esac ||
30496            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
30497       esac
30498       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
30499       as_fn_append ac_file_inputs " '$ac_f'"
30500     done
30501
30502     # Let's still pretend it is `configure' which instantiates (i.e., don't
30503     # use $as_me), people would be surprised to read:
30504     #    /* config.h.  Generated by config.status.  */
30505     configure_input='Generated from '`
30506           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30507         `' by configure.'
30508     if test x"$ac_file" != x-; then
30509       configure_input="$ac_file.  $configure_input"
30510       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30511 $as_echo "$as_me: creating $ac_file" >&6;}
30512     fi
30513     # Neutralize special characters interpreted by sed in replacement strings.
30514     case $configure_input in #(
30515     *\&* | *\|* | *\\* )
30516        ac_sed_conf_input=`$as_echo "$configure_input" |
30517        sed 's/[\\\\&|]/\\\\&/g'`;; #(
30518     *) ac_sed_conf_input=$configure_input;;
30519     esac
30520
30521     case $ac_tag in
30522     *:-:* | *:-) cat >"$ac_tmp/stdin" \
30523       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
30524     esac
30525     ;;
30526   esac
30527
30528   ac_dir=`$as_dirname -- "$ac_file" ||
30529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30530          X"$ac_file" : 'X\(//\)[^/]' \| \
30531          X"$ac_file" : 'X\(//\)$' \| \
30532          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30533 $as_echo X"$ac_file" |
30534     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30535             s//\1/
30536             q
30537           }
30538           /^X\(\/\/\)[^/].*/{
30539             s//\1/
30540             q
30541           }
30542           /^X\(\/\/\)$/{
30543             s//\1/
30544             q
30545           }
30546           /^X\(\/\).*/{
30547             s//\1/
30548             q
30549           }
30550           s/.*/./; q'`
30551   as_dir="$ac_dir"; as_fn_mkdir_p
30552   ac_builddir=.
30553
30554 case "$ac_dir" in
30555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30556 *)
30557   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30558   # A ".." for each directory in $ac_dir_suffix.
30559   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30560   case $ac_top_builddir_sub in
30561   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30562   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30563   esac ;;
30564 esac
30565 ac_abs_top_builddir=$ac_pwd
30566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30567 # for backward compatibility:
30568 ac_top_builddir=$ac_top_build_prefix
30569
30570 case $srcdir in
30571   .)  # We are building in place.
30572     ac_srcdir=.
30573     ac_top_srcdir=$ac_top_builddir_sub
30574     ac_abs_top_srcdir=$ac_pwd ;;
30575   [\\/]* | ?:[\\/]* )  # Absolute name.
30576     ac_srcdir=$srcdir$ac_dir_suffix;
30577     ac_top_srcdir=$srcdir
30578     ac_abs_top_srcdir=$srcdir ;;
30579   *) # Relative name.
30580     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30581     ac_top_srcdir=$ac_top_build_prefix$srcdir
30582     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30583 esac
30584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30585
30586
30587   case $ac_mode in
30588   :F)
30589   #
30590   # CONFIG_FILE
30591   #
30592
30593   case $INSTALL in
30594   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30595   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30596   esac
30597   ac_MKDIR_P=$MKDIR_P
30598   case $MKDIR_P in
30599   [\\/$]* | ?:[\\/]* ) ;;
30600   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30601   esac
30602 _ACEOF
30603
30604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30605 # If the template does not know about datarootdir, expand it.
30606 # FIXME: This hack should be removed a few years after 2.60.
30607 ac_datarootdir_hack=; ac_datarootdir_seen=
30608 ac_sed_dataroot='
30609 /datarootdir/ {
30610   p
30611   q
30612 }
30613 /@datadir@/p
30614 /@docdir@/p
30615 /@infodir@/p
30616 /@localedir@/p
30617 /@mandir@/p'
30618 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30619 *datarootdir*) ac_datarootdir_seen=yes;;
30620 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30621   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30622 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30623 _ACEOF
30624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30625   ac_datarootdir_hack='
30626   s&@datadir@&$datadir&g
30627   s&@docdir@&$docdir&g
30628   s&@infodir@&$infodir&g
30629   s&@localedir@&$localedir&g
30630   s&@mandir@&$mandir&g
30631   s&\\\${datarootdir}&$datarootdir&g' ;;
30632 esac
30633 _ACEOF
30634
30635 # Neutralize VPATH when `$srcdir' = `.'.
30636 # Shell code in configure.ac might set extrasub.
30637 # FIXME: do we really want to maintain this feature?
30638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30639 ac_sed_extra="$ac_vpsub
30640 $extrasub
30641 _ACEOF
30642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30643 :t
30644 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30645 s|@configure_input@|$ac_sed_conf_input|;t t
30646 s&@top_builddir@&$ac_top_builddir_sub&;t t
30647 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30648 s&@srcdir@&$ac_srcdir&;t t
30649 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30650 s&@top_srcdir@&$ac_top_srcdir&;t t
30651 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30652 s&@builddir@&$ac_builddir&;t t
30653 s&@abs_builddir@&$ac_abs_builddir&;t t
30654 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30655 s&@INSTALL@&$ac_INSTALL&;t t
30656 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30657 $ac_datarootdir_hack
30658 "
30659 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
30660   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30661
30662 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30663   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
30664   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
30665       "$ac_tmp/out"`; test -z "$ac_out"; } &&
30666   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30667 which seems to be undefined.  Please make sure it is defined" >&5
30668 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30669 which seems to be undefined.  Please make sure it is defined" >&2;}
30670
30671   rm -f "$ac_tmp/stdin"
30672   case $ac_file in
30673   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
30674   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
30675   esac \
30676   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30677  ;;
30678   :H)
30679   #
30680   # CONFIG_HEADER
30681   #
30682   if test x"$ac_file" != x-; then
30683     {
30684       $as_echo "/* $configure_input  */" \
30685       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
30686     } >"$ac_tmp/config.h" \
30687       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30688     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
30689       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30690 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30691     else
30692       rm -f "$ac_file"
30693       mv "$ac_tmp/config.h" "$ac_file" \
30694         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
30695     fi
30696   else
30697     $as_echo "/* $configure_input  */" \
30698       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
30699       || as_fn_error $? "could not create -" "$LINENO" 5
30700   fi
30701 # Compute "$ac_file"'s index in $config_headers.
30702 _am_arg="$ac_file"
30703 _am_stamp_count=1
30704 for _am_header in $config_headers :; do
30705   case $_am_header in
30706     $_am_arg | $_am_arg:* )
30707       break ;;
30708     * )
30709       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30710   esac
30711 done
30712 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30713 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30714          X"$_am_arg" : 'X\(//\)[^/]' \| \
30715          X"$_am_arg" : 'X\(//\)$' \| \
30716          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30717 $as_echo X"$_am_arg" |
30718     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30719             s//\1/
30720             q
30721           }
30722           /^X\(\/\/\)[^/].*/{
30723             s//\1/
30724             q
30725           }
30726           /^X\(\/\/\)$/{
30727             s//\1/
30728             q
30729           }
30730           /^X\(\/\).*/{
30731             s//\1/
30732             q
30733           }
30734           s/.*/./; q'`/stamp-h$_am_stamp_count
30735  ;;
30736
30737   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30738 $as_echo "$as_me: executing $ac_file commands" >&6;}
30739  ;;
30740   esac
30741
30742
30743   case $ac_file$ac_mode in
30744     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
30745   # Autoconf 2.62 quotes --file arguments for eval, but not when files
30746   # are listed without --file.  Let's play safe and only enable the eval
30747   # if we detect the quoting.
30748   case $CONFIG_FILES in
30749   *\'*) eval set x "$CONFIG_FILES" ;;
30750   *)   set x $CONFIG_FILES ;;
30751   esac
30752   shift
30753   for mf
30754   do
30755     # Strip MF so we end up with the name of the file.
30756     mf=`echo "$mf" | sed -e 's/:.*$//'`
30757     # Check whether this is an Automake generated Makefile or not.
30758     # We used to match only the files named `Makefile.in', but
30759     # some people rename them; so instead we look at the file content.
30760     # Grep'ing the first line is not enough: some people post-process
30761     # each Makefile.in and add a new line on top of each file to say so.
30762     # Grep'ing the whole file is not good either: AIX grep has a line
30763     # limit of 2048, but all sed's we know have understand at least 4000.
30764     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
30765       dirpart=`$as_dirname -- "$mf" ||
30766 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30767          X"$mf" : 'X\(//\)[^/]' \| \
30768          X"$mf" : 'X\(//\)$' \| \
30769          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
30770 $as_echo X"$mf" |
30771     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30772             s//\1/
30773             q
30774           }
30775           /^X\(\/\/\)[^/].*/{
30776             s//\1/
30777             q
30778           }
30779           /^X\(\/\/\)$/{
30780             s//\1/
30781             q
30782           }
30783           /^X\(\/\).*/{
30784             s//\1/
30785             q
30786           }
30787           s/.*/./; q'`
30788     else
30789       continue
30790     fi
30791     # Extract the definition of DEPDIR, am__include, and am__quote
30792     # from the Makefile without running `make'.
30793     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
30794     test -z "$DEPDIR" && continue
30795     am__include=`sed -n 's/^am__include = //p' < "$mf"`
30796     test -z "am__include" && continue
30797     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
30798     # When using ansi2knr, U may be empty or an underscore; expand it
30799     U=`sed -n 's/^U = //p' < "$mf"`
30800     # Find all dependency output files, they are included files with
30801     # $(DEPDIR) in their names.  We invoke sed twice because it is the
30802     # simplest approach to changing $(DEPDIR) to its actual value in the
30803     # expansion.
30804     for file in `sed -n "
30805       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
30806          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
30807       # Make sure the directory exists.
30808       test -f "$dirpart/$file" && continue
30809       fdir=`$as_dirname -- "$file" ||
30810 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30811          X"$file" : 'X\(//\)[^/]' \| \
30812          X"$file" : 'X\(//\)$' \| \
30813          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
30814 $as_echo X"$file" |
30815     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30816             s//\1/
30817             q
30818           }
30819           /^X\(\/\/\)[^/].*/{
30820             s//\1/
30821             q
30822           }
30823           /^X\(\/\/\)$/{
30824             s//\1/
30825             q
30826           }
30827           /^X\(\/\).*/{
30828             s//\1/
30829             q
30830           }
30831           s/.*/./; q'`
30832       as_dir=$dirpart/$fdir; as_fn_mkdir_p
30833       # echo "creating $dirpart/$file"
30834       echo '# dummy' > "$dirpart/$file"
30835     done
30836   done
30837 }
30838  ;;
30839     "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
30840         sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
30841       esac ;;
30842     "libtool":C)
30843
30844     # See if we are running on zsh, and set the options which allow our
30845     # commands through without removal of \ escapes.
30846     if test -n "${ZSH_VERSION+set}" ; then
30847       setopt NO_GLOB_SUBST
30848     fi
30849
30850     cfgfile="${ofile}T"
30851     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30852     $RM "$cfgfile"
30853
30854     cat <<_LT_EOF >> "$cfgfile"
30855 #! $SHELL
30856
30857 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30858 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30859 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30860 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30861 #
30862 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30863 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
30864 #                 Foundation, Inc.
30865 #   Written by Gordon Matzigkeit, 1996
30866 #
30867 #   This file is part of GNU Libtool.
30868 #
30869 # GNU Libtool is free software; you can redistribute it and/or
30870 # modify it under the terms of the GNU General Public License as
30871 # published by the Free Software Foundation; either version 2 of
30872 # the License, or (at your option) any later version.
30873 #
30874 # As a special exception to the GNU General Public License,
30875 # if you distribute this file as part of a program or library that
30876 # is built using GNU Libtool, you may include this file under the
30877 # same distribution terms that you use for the rest of that program.
30878 #
30879 # GNU Libtool is distributed in the hope that it will be useful,
30880 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30881 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30882 # GNU General Public License for more details.
30883 #
30884 # You should have received a copy of the GNU General Public License
30885 # along with GNU Libtool; see the file COPYING.  If not, a copy
30886 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30887 # obtained by writing to the Free Software Foundation, Inc.,
30888 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30889
30890
30891 # The names of the tagged configurations supported by this script.
30892 available_tags="CXX "
30893
30894 # ### BEGIN LIBTOOL CONFIG
30895
30896 # Which release of libtool.m4 was used?
30897 macro_version=$macro_version
30898 macro_revision=$macro_revision
30899
30900 # Whether or not to build static libraries.
30901 build_old_libs=$enable_static
30902
30903 # Assembler program.
30904 AS=$lt_AS
30905
30906 # DLL creation program.
30907 DLLTOOL=$lt_DLLTOOL
30908
30909 # Object dumper program.
30910 OBJDUMP=$lt_OBJDUMP
30911
30912 # Whether or not to build shared libraries.
30913 build_libtool_libs=$enable_shared
30914
30915 # What type of objects to build.
30916 pic_mode=$pic_mode
30917
30918 # Whether or not to optimize for fast installation.
30919 fast_install=$enable_fast_install
30920
30921 # Shell to use when invoking shell scripts.
30922 SHELL=$lt_SHELL
30923
30924 # An echo program that protects backslashes.
30925 ECHO=$lt_ECHO
30926
30927 # The PATH separator for the build system.
30928 PATH_SEPARATOR=$lt_PATH_SEPARATOR
30929
30930 # The host system.
30931 host_alias=$host_alias
30932 host=$host
30933 host_os=$host_os
30934
30935 # The build system.
30936 build_alias=$build_alias
30937 build=$build
30938 build_os=$build_os
30939
30940 # A sed program that does not truncate output.
30941 SED=$lt_SED
30942
30943 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30944 Xsed="\$SED -e 1s/^X//"
30945
30946 # A grep program that handles long lines.
30947 GREP=$lt_GREP
30948
30949 # An ERE matcher.
30950 EGREP=$lt_EGREP
30951
30952 # A literal string matcher.
30953 FGREP=$lt_FGREP
30954
30955 # A BSD- or MS-compatible name lister.
30956 NM=$lt_NM
30957
30958 # Whether we need soft or hard links.
30959 LN_S=$lt_LN_S
30960
30961 # What is the maximum length of a command?
30962 max_cmd_len=$max_cmd_len
30963
30964 # Object file suffix (normally "o").
30965 objext=$ac_objext
30966
30967 # Executable file suffix (normally "").
30968 exeext=$exeext
30969
30970 # whether the shell understands "unset".
30971 lt_unset=$lt_unset
30972
30973 # turn spaces into newlines.
30974 SP2NL=$lt_lt_SP2NL
30975
30976 # turn newlines into spaces.
30977 NL2SP=$lt_lt_NL2SP
30978
30979 # convert \$build file names to \$host format.
30980 to_host_file_cmd=$lt_cv_to_host_file_cmd
30981
30982 # convert \$build files to toolchain format.
30983 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
30984
30985 # Method to check whether dependent libraries are shared objects.
30986 deplibs_check_method=$lt_deplibs_check_method
30987
30988 # Command to use when deplibs_check_method = "file_magic".
30989 file_magic_cmd=$lt_file_magic_cmd
30990
30991 # How to find potential files when deplibs_check_method = "file_magic".
30992 file_magic_glob=$lt_file_magic_glob
30993
30994 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
30995 want_nocaseglob=$lt_want_nocaseglob
30996
30997 # Command to associate shared and link libraries.
30998 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
30999
31000 # The archiver.
31001 AR=$lt_AR
31002
31003 # Flags to create an archive.
31004 AR_FLAGS=$lt_AR_FLAGS
31005
31006 # How to feed a file listing to the archiver.
31007 archiver_list_spec=$lt_archiver_list_spec
31008
31009 # A symbol stripping program.
31010 STRIP=$lt_STRIP
31011
31012 # Commands used to install an old-style archive.
31013 RANLIB=$lt_RANLIB
31014 old_postinstall_cmds=$lt_old_postinstall_cmds
31015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31016
31017 # Whether to use a lock for old archive extraction.
31018 lock_old_archive_extraction=$lock_old_archive_extraction
31019
31020 # A C compiler.
31021 LTCC=$lt_CC
31022
31023 # LTCC compiler flags.
31024 LTCFLAGS=$lt_CFLAGS
31025
31026 # Take the output of nm and produce a listing of raw symbols and C names.
31027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31028
31029 # Transform the output of nm in a proper C declaration.
31030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31031
31032 # Transform the output of nm in a C name address pair.
31033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31034
31035 # Transform the output of nm in a C name address pair when lib prefix is needed.
31036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31037
31038 # Specify filename containing input files for \$NM.
31039 nm_file_list_spec=$lt_nm_file_list_spec
31040
31041 # The root where to search for dependent libraries,and in which our libraries should be installed.
31042 lt_sysroot=$lt_sysroot
31043
31044 # The name of the directory that contains temporary libtool files.
31045 objdir=$objdir
31046
31047 # Used to examine libraries when file_magic_cmd begins with "file".
31048 MAGIC_CMD=$MAGIC_CMD
31049
31050 # Must we lock files when doing compilation?
31051 need_locks=$lt_need_locks
31052
31053 # Manifest tool.
31054 MANIFEST_TOOL=$lt_MANIFEST_TOOL
31055
31056 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31057 DSYMUTIL=$lt_DSYMUTIL
31058
31059 # Tool to change global to local symbols on Mac OS X.
31060 NMEDIT=$lt_NMEDIT
31061
31062 # Tool to manipulate fat objects and archives on Mac OS X.
31063 LIPO=$lt_LIPO
31064
31065 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31066 OTOOL=$lt_OTOOL
31067
31068 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31069 OTOOL64=$lt_OTOOL64
31070
31071 # Old archive suffix (normally "a").
31072 libext=$libext
31073
31074 # Shared library suffix (normally ".so").
31075 shrext_cmds=$lt_shrext_cmds
31076
31077 # The commands to extract the exported symbol list from a shared archive.
31078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31079
31080 # Variables whose values should be saved in libtool wrapper scripts and
31081 # restored at link time.
31082 variables_saved_for_relink=$lt_variables_saved_for_relink
31083
31084 # Do we need the "lib" prefix for modules?
31085 need_lib_prefix=$need_lib_prefix
31086
31087 # Do we need a version for libraries?
31088 need_version=$need_version
31089
31090 # Library versioning type.
31091 version_type=$version_type
31092
31093 # Shared library runtime path variable.
31094 runpath_var=$runpath_var
31095
31096 # Shared library path variable.
31097 shlibpath_var=$shlibpath_var
31098
31099 # Is shlibpath searched before the hard-coded library search path?
31100 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31101
31102 # Format of library name prefix.
31103 libname_spec=$lt_libname_spec
31104
31105 # List of archive names.  First name is the real one, the rest are links.
31106 # The last name is the one that the linker finds with -lNAME
31107 library_names_spec=$lt_library_names_spec
31108
31109 # The coded name of the library, if different from the real name.
31110 soname_spec=$lt_soname_spec
31111
31112 # Permission mode override for installation of shared libraries.
31113 install_override_mode=$lt_install_override_mode
31114
31115 # Command to use after installation of a shared archive.
31116 postinstall_cmds=$lt_postinstall_cmds
31117
31118 # Command to use after uninstallation of a shared archive.
31119 postuninstall_cmds=$lt_postuninstall_cmds
31120
31121 # Commands used to finish a libtool library installation in a directory.
31122 finish_cmds=$lt_finish_cmds
31123
31124 # As "finish_cmds", except a single script fragment to be evaled but
31125 # not shown.
31126 finish_eval=$lt_finish_eval
31127
31128 # Whether we should hardcode library paths into libraries.
31129 hardcode_into_libs=$hardcode_into_libs
31130
31131 # Compile-time system search path for libraries.
31132 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31133
31134 # Run-time system search path for libraries.
31135 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31136
31137 # Whether dlopen is supported.
31138 dlopen_support=$enable_dlopen
31139
31140 # Whether dlopen of programs is supported.
31141 dlopen_self=$enable_dlopen_self
31142
31143 # Whether dlopen of statically linked programs is supported.
31144 dlopen_self_static=$enable_dlopen_self_static
31145
31146 # Commands to strip libraries.
31147 old_striplib=$lt_old_striplib
31148 striplib=$lt_striplib
31149
31150
31151 # The linker used to build libraries.
31152 LD=$lt_LD
31153
31154 # How to create reloadable object files.
31155 reload_flag=$lt_reload_flag
31156 reload_cmds=$lt_reload_cmds
31157
31158 # Commands used to build an old-style archive.
31159 old_archive_cmds=$lt_old_archive_cmds
31160
31161 # A language specific compiler.
31162 CC=$lt_compiler
31163
31164 # Is the compiler the GNU compiler?
31165 with_gcc=$GCC
31166
31167 # Compiler flag to turn off builtin functions.
31168 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31169
31170 # Additional compiler flags for building library objects.
31171 pic_flag=$lt_lt_prog_compiler_pic
31172
31173 # How to pass a linker flag through the compiler.
31174 wl=$lt_lt_prog_compiler_wl
31175
31176 # Compiler flag to prevent dynamic linking.
31177 link_static_flag=$lt_lt_prog_compiler_static
31178
31179 # Does compiler simultaneously support -c and -o options?
31180 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31181
31182 # Whether or not to add -lc for building shared libraries.
31183 build_libtool_need_lc=$archive_cmds_need_lc
31184
31185 # Whether or not to disallow shared libs when runtime libs are static.
31186 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31187
31188 # Compiler flag to allow reflexive dlopens.
31189 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31190
31191 # Compiler flag to generate shared objects directly from archives.
31192 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31193
31194 # Whether the compiler copes with passing no objects directly.
31195 compiler_needs_object=$lt_compiler_needs_object
31196
31197 # Create an old-style archive from a shared archive.
31198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31199
31200 # Create a temporary old-style archive to link instead of a shared archive.
31201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31202
31203 # Commands used to build a shared archive.
31204 archive_cmds=$lt_archive_cmds
31205 archive_expsym_cmds=$lt_archive_expsym_cmds
31206
31207 # Commands used to build a loadable module if different from building
31208 # a shared archive.
31209 module_cmds=$lt_module_cmds
31210 module_expsym_cmds=$lt_module_expsym_cmds
31211
31212 # Whether we are building with GNU ld or not.
31213 with_gnu_ld=$lt_with_gnu_ld
31214
31215 # Flag that allows shared libraries with undefined symbols to be built.
31216 allow_undefined_flag=$lt_allow_undefined_flag
31217
31218 # Flag that enforces no undefined symbols.
31219 no_undefined_flag=$lt_no_undefined_flag
31220
31221 # Flag to hardcode \$libdir into a binary during linking.
31222 # This must work even if \$libdir does not exist
31223 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31224
31225 # Whether we need a single "-rpath" flag with a separated argument.
31226 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31227
31228 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31229 # DIR into the resulting binary.
31230 hardcode_direct=$hardcode_direct
31231
31232 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31233 # DIR into the resulting binary and the resulting library dependency is
31234 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31235 # library is relocated.
31236 hardcode_direct_absolute=$hardcode_direct_absolute
31237
31238 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31239 # into the resulting binary.
31240 hardcode_minus_L=$hardcode_minus_L
31241
31242 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31243 # into the resulting binary.
31244 hardcode_shlibpath_var=$hardcode_shlibpath_var
31245
31246 # Set to "yes" if building a shared library automatically hardcodes DIR
31247 # into the library and all subsequent libraries and executables linked
31248 # against it.
31249 hardcode_automatic=$hardcode_automatic
31250
31251 # Set to yes if linker adds runtime paths of dependent libraries
31252 # to runtime path list.
31253 inherit_rpath=$inherit_rpath
31254
31255 # Whether libtool must link a program against all its dependency libraries.
31256 link_all_deplibs=$link_all_deplibs
31257
31258 # Set to "yes" if exported symbols are required.
31259 always_export_symbols=$always_export_symbols
31260
31261 # The commands to list exported symbols.
31262 export_symbols_cmds=$lt_export_symbols_cmds
31263
31264 # Symbols that should not be listed in the preloaded symbols.
31265 exclude_expsyms=$lt_exclude_expsyms
31266
31267 # Symbols that must always be exported.
31268 include_expsyms=$lt_include_expsyms
31269
31270 # Commands necessary for linking programs (against libraries) with templates.
31271 prelink_cmds=$lt_prelink_cmds
31272
31273 # Commands necessary for finishing linking programs.
31274 postlink_cmds=$lt_postlink_cmds
31275
31276 # Specify filename containing input files.
31277 file_list_spec=$lt_file_list_spec
31278
31279 # How to hardcode a shared library path into an executable.
31280 hardcode_action=$hardcode_action
31281
31282 # The directories searched by this compiler when creating a shared library.
31283 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31284
31285 # Dependencies to place before and after the objects being linked to
31286 # create a shared library.
31287 predep_objects=$lt_predep_objects
31288 postdep_objects=$lt_postdep_objects
31289 predeps=$lt_predeps
31290 postdeps=$lt_postdeps
31291
31292 # The library search path used internally by the compiler when linking
31293 # a shared library.
31294 compiler_lib_search_path=$lt_compiler_lib_search_path
31295
31296 # ### END LIBTOOL CONFIG
31297
31298 _LT_EOF
31299
31300   case $host_os in
31301   aix3*)
31302     cat <<\_LT_EOF >> "$cfgfile"
31303 # AIX sometimes has problems with the GCC collect2 program.  For some
31304 # reason, if we set the COLLECT_NAMES environment variable, the problems
31305 # vanish in a puff of smoke.
31306 if test "X${COLLECT_NAMES+set}" != Xset; then
31307   COLLECT_NAMES=
31308   export COLLECT_NAMES
31309 fi
31310 _LT_EOF
31311     ;;
31312   esac
31313
31314
31315 ltmain="$ac_aux_dir/ltmain.sh"
31316
31317
31318   # We use sed instead of cat because bash on DJGPP gets confused if
31319   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31320   # text mode, it properly converts lines to CR/LF.  This bash problem
31321   # is reportedly fixed, but why not run on old versions too?
31322   sed '$q' "$ltmain" >> "$cfgfile" \
31323      || (rm -f "$cfgfile"; exit 1)
31324
31325   if test x"$xsi_shell" = xyes; then
31326   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
31327 func_dirname ()\
31328 {\
31329 \    case ${1} in\
31330 \      */*) func_dirname_result="${1%/*}${2}" ;;\
31331 \      *  ) func_dirname_result="${3}" ;;\
31332 \    esac\
31333 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
31334   && mv -f "$cfgfile.tmp" "$cfgfile" \
31335     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31336 test 0 -eq $? || _lt_function_replace_fail=:
31337
31338
31339   sed -e '/^func_basename ()$/,/^} # func_basename /c\
31340 func_basename ()\
31341 {\
31342 \    func_basename_result="${1##*/}"\
31343 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
31344   && mv -f "$cfgfile.tmp" "$cfgfile" \
31345     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31346 test 0 -eq $? || _lt_function_replace_fail=:
31347
31348
31349   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
31350 func_dirname_and_basename ()\
31351 {\
31352 \    case ${1} in\
31353 \      */*) func_dirname_result="${1%/*}${2}" ;;\
31354 \      *  ) func_dirname_result="${3}" ;;\
31355 \    esac\
31356 \    func_basename_result="${1##*/}"\
31357 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
31358   && mv -f "$cfgfile.tmp" "$cfgfile" \
31359     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31360 test 0 -eq $? || _lt_function_replace_fail=:
31361
31362
31363   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
31364 func_stripname ()\
31365 {\
31366 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
31367 \    # positional parameters, so assign one to ordinary parameter first.\
31368 \    func_stripname_result=${3}\
31369 \    func_stripname_result=${func_stripname_result#"${1}"}\
31370 \    func_stripname_result=${func_stripname_result%"${2}"}\
31371 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
31372   && mv -f "$cfgfile.tmp" "$cfgfile" \
31373     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31374 test 0 -eq $? || _lt_function_replace_fail=:
31375
31376
31377   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
31378 func_split_long_opt ()\
31379 {\
31380 \    func_split_long_opt_name=${1%%=*}\
31381 \    func_split_long_opt_arg=${1#*=}\
31382 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
31383   && mv -f "$cfgfile.tmp" "$cfgfile" \
31384     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31385 test 0 -eq $? || _lt_function_replace_fail=:
31386
31387
31388   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
31389 func_split_short_opt ()\
31390 {\
31391 \    func_split_short_opt_arg=${1#??}\
31392 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
31393 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
31394   && mv -f "$cfgfile.tmp" "$cfgfile" \
31395     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31396 test 0 -eq $? || _lt_function_replace_fail=:
31397
31398
31399   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
31400 func_lo2o ()\
31401 {\
31402 \    case ${1} in\
31403 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
31404 \      *)    func_lo2o_result=${1} ;;\
31405 \    esac\
31406 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
31407   && mv -f "$cfgfile.tmp" "$cfgfile" \
31408     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31409 test 0 -eq $? || _lt_function_replace_fail=:
31410
31411
31412   sed -e '/^func_xform ()$/,/^} # func_xform /c\
31413 func_xform ()\
31414 {\
31415     func_xform_result=${1%.*}.lo\
31416 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
31417   && mv -f "$cfgfile.tmp" "$cfgfile" \
31418     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31419 test 0 -eq $? || _lt_function_replace_fail=:
31420
31421
31422   sed -e '/^func_arith ()$/,/^} # func_arith /c\
31423 func_arith ()\
31424 {\
31425     func_arith_result=$(( $* ))\
31426 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
31427   && mv -f "$cfgfile.tmp" "$cfgfile" \
31428     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31429 test 0 -eq $? || _lt_function_replace_fail=:
31430
31431
31432   sed -e '/^func_len ()$/,/^} # func_len /c\
31433 func_len ()\
31434 {\
31435     func_len_result=${#1}\
31436 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
31437   && mv -f "$cfgfile.tmp" "$cfgfile" \
31438     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31439 test 0 -eq $? || _lt_function_replace_fail=:
31440
31441 fi
31442
31443 if test x"$lt_shell_append" = xyes; then
31444   sed -e '/^func_append ()$/,/^} # func_append /c\
31445 func_append ()\
31446 {\
31447     eval "${1}+=\\${2}"\
31448 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
31449   && mv -f "$cfgfile.tmp" "$cfgfile" \
31450     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31451 test 0 -eq $? || _lt_function_replace_fail=:
31452
31453
31454   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
31455 func_append_quoted ()\
31456 {\
31457 \    func_quote_for_eval "${2}"\
31458 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
31459 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
31460   && mv -f "$cfgfile.tmp" "$cfgfile" \
31461     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31462 test 0 -eq $? || _lt_function_replace_fail=:
31463
31464
31465   # Save a `func_append' function call where possible by direct use of '+='
31466   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
31467     && mv -f "$cfgfile.tmp" "$cfgfile" \
31468       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31469   test 0 -eq $? || _lt_function_replace_fail=:
31470 else
31471   # Save a `func_append' function call even when '+=' is not available
31472   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
31473     && mv -f "$cfgfile.tmp" "$cfgfile" \
31474       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
31475   test 0 -eq $? || _lt_function_replace_fail=:
31476 fi
31477
31478 if test x"$_lt_function_replace_fail" = x":"; then
31479   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
31480 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
31481 fi
31482
31483
31484    mv -f "$cfgfile" "$ofile" ||
31485     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
31486   chmod +x "$ofile"
31487
31488
31489     cat <<_LT_EOF >> "$ofile"
31490
31491 # ### BEGIN LIBTOOL TAG CONFIG: CXX
31492
31493 # The linker used to build libraries.
31494 LD=$lt_LD_CXX
31495
31496 # How to create reloadable object files.
31497 reload_flag=$lt_reload_flag_CXX
31498 reload_cmds=$lt_reload_cmds_CXX
31499
31500 # Commands used to build an old-style archive.
31501 old_archive_cmds=$lt_old_archive_cmds_CXX
31502
31503 # A language specific compiler.
31504 CC=$lt_compiler_CXX
31505
31506 # Is the compiler the GNU compiler?
31507 with_gcc=$GCC_CXX
31508
31509 # Compiler flag to turn off builtin functions.
31510 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
31511
31512 # Additional compiler flags for building library objects.
31513 pic_flag=$lt_lt_prog_compiler_pic_CXX
31514
31515 # How to pass a linker flag through the compiler.
31516 wl=$lt_lt_prog_compiler_wl_CXX
31517
31518 # Compiler flag to prevent dynamic linking.
31519 link_static_flag=$lt_lt_prog_compiler_static_CXX
31520
31521 # Does compiler simultaneously support -c and -o options?
31522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
31523
31524 # Whether or not to add -lc for building shared libraries.
31525 build_libtool_need_lc=$archive_cmds_need_lc_CXX
31526
31527 # Whether or not to disallow shared libs when runtime libs are static.
31528 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
31529
31530 # Compiler flag to allow reflexive dlopens.
31531 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
31532
31533 # Compiler flag to generate shared objects directly from archives.
31534 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
31535
31536 # Whether the compiler copes with passing no objects directly.
31537 compiler_needs_object=$lt_compiler_needs_object_CXX
31538
31539 # Create an old-style archive from a shared archive.
31540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
31541
31542 # Create a temporary old-style archive to link instead of a shared archive.
31543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
31544
31545 # Commands used to build a shared archive.
31546 archive_cmds=$lt_archive_cmds_CXX
31547 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
31548
31549 # Commands used to build a loadable module if different from building
31550 # a shared archive.
31551 module_cmds=$lt_module_cmds_CXX
31552 module_expsym_cmds=$lt_module_expsym_cmds_CXX
31553
31554 # Whether we are building with GNU ld or not.
31555 with_gnu_ld=$lt_with_gnu_ld_CXX
31556
31557 # Flag that allows shared libraries with undefined symbols to be built.
31558 allow_undefined_flag=$lt_allow_undefined_flag_CXX
31559
31560 # Flag that enforces no undefined symbols.
31561 no_undefined_flag=$lt_no_undefined_flag_CXX
31562
31563 # Flag to hardcode \$libdir into a binary during linking.
31564 # This must work even if \$libdir does not exist
31565 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31566
31567 # Whether we need a single "-rpath" flag with a separated argument.
31568 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31569
31570 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31571 # DIR into the resulting binary.
31572 hardcode_direct=$hardcode_direct_CXX
31573
31574 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31575 # DIR into the resulting binary and the resulting library dependency is
31576 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31577 # library is relocated.
31578 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31579
31580 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31581 # into the resulting binary.
31582 hardcode_minus_L=$hardcode_minus_L_CXX
31583
31584 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31585 # into the resulting binary.
31586 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31587
31588 # Set to "yes" if building a shared library automatically hardcodes DIR
31589 # into the library and all subsequent libraries and executables linked
31590 # against it.
31591 hardcode_automatic=$hardcode_automatic_CXX
31592
31593 # Set to yes if linker adds runtime paths of dependent libraries
31594 # to runtime path list.
31595 inherit_rpath=$inherit_rpath_CXX
31596
31597 # Whether libtool must link a program against all its dependency libraries.
31598 link_all_deplibs=$link_all_deplibs_CXX
31599
31600 # Set to "yes" if exported symbols are required.
31601 always_export_symbols=$always_export_symbols_CXX
31602
31603 # The commands to list exported symbols.
31604 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31605
31606 # Symbols that should not be listed in the preloaded symbols.
31607 exclude_expsyms=$lt_exclude_expsyms_CXX
31608
31609 # Symbols that must always be exported.
31610 include_expsyms=$lt_include_expsyms_CXX
31611
31612 # Commands necessary for linking programs (against libraries) with templates.
31613 prelink_cmds=$lt_prelink_cmds_CXX
31614
31615 # Commands necessary for finishing linking programs.
31616 postlink_cmds=$lt_postlink_cmds_CXX
31617
31618 # Specify filename containing input files.
31619 file_list_spec=$lt_file_list_spec_CXX
31620
31621 # How to hardcode a shared library path into an executable.
31622 hardcode_action=$hardcode_action_CXX
31623
31624 # The directories searched by this compiler when creating a shared library.
31625 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31626
31627 # Dependencies to place before and after the objects being linked to
31628 # create a shared library.
31629 predep_objects=$lt_predep_objects_CXX
31630 postdep_objects=$lt_postdep_objects_CXX
31631 predeps=$lt_predeps_CXX
31632 postdeps=$lt_postdeps_CXX
31633
31634 # The library search path used internally by the compiler when linking
31635 # a shared library.
31636 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31637
31638 # ### END LIBTOOL TAG CONFIG: CXX
31639 _LT_EOF
31640
31641  ;;
31642     "glib/glibconfig.h":C)
31643         outfile=glib/glibconfig.h-tmp
31644         cat > $outfile <<\_______EOF
31645 /* glibconfig.h
31646  *
31647  * This is a generated file.  Please modify 'configure.ac'
31648  */
31649
31650 #ifndef __GLIBCONFIG_H__
31651 #define __GLIBCONFIG_H__
31652
31653 #include <glib/gmacros.h>
31654
31655 _______EOF
31656
31657         if test x$glib_limits_h = xyes; then
31658           echo '#include <limits.h>' >> $outfile
31659         fi
31660         if test x$glib_float_h = xyes; then
31661           echo '#include <float.h>' >> $outfile
31662         fi
31663         if test x$glib_values_h = xyes; then
31664           echo '#include <values.h>' >> $outfile
31665         fi
31666         if test "$glib_header_alloca_h" = "yes"; then
31667           echo '#define GLIB_HAVE_ALLOCA_H' >> $outfile
31668         fi
31669         if test x$glib_sys_poll_h = xyes; then
31670           echo '#define GLIB_HAVE_SYS_POLL_H' >> $outfile
31671         fi
31672         if test x$glib_included_printf != xyes; then
31673           echo "
31674 /* Specifies that GLib's g_print*() functions wrap the
31675  * system printf functions.  This is useful to know, for example,
31676  * when using glibc's register_printf_function().
31677  */" >> $outfile
31678           echo '#define GLIB_USING_SYSTEM_PRINTF' >> $outfile
31679         fi
31680
31681         cat >> $outfile <<_______EOF
31682
31683 G_BEGIN_DECLS
31684
31685 #define G_MINFLOAT      $glib_mf
31686 #define G_MAXFLOAT      $glib_Mf
31687 #define G_MINDOUBLE     $glib_md
31688 #define G_MAXDOUBLE     $glib_Md
31689 #define G_MINSHORT      $glib_ms
31690 #define G_MAXSHORT      $glib_Ms
31691 #define G_MAXUSHORT     $glib_Mus
31692 #define G_MININT        $glib_mi
31693 #define G_MAXINT        $glib_Mi
31694 #define G_MAXUINT       $glib_Mui
31695 #define G_MINLONG       $glib_ml
31696 #define G_MAXLONG       $glib_Ml
31697 #define G_MAXULONG      $glib_Mul
31698
31699 _______EOF
31700
31701
31702         ### this should always be true in a modern C/C++ compiler
31703         cat >>$outfile <<_______EOF
31704 typedef signed char gint8;
31705 typedef unsigned char guint8;
31706 _______EOF
31707
31708
31709         if test -n "$gint16"; then
31710           cat >>$outfile <<_______EOF
31711 typedef signed $gint16 gint16;
31712 typedef unsigned $gint16 guint16;
31713 #define G_GINT16_MODIFIER $gint16_modifier
31714 #define G_GINT16_FORMAT $gint16_format
31715 #define G_GUINT16_FORMAT $guint16_format
31716 _______EOF
31717         fi
31718
31719
31720         if test -n "$gint32"; then
31721           cat >>$outfile <<_______EOF
31722 typedef signed $gint32 gint32;
31723 typedef unsigned $gint32 guint32;
31724 #define G_GINT32_MODIFIER $gint32_modifier
31725 #define G_GINT32_FORMAT $gint32_format
31726 #define G_GUINT32_FORMAT $guint32_format
31727 _______EOF
31728         fi
31729
31730         cat >>$outfile <<_______EOF
31731 #define G_HAVE_GINT64 1          /* deprecated, always true */
31732
31733 ${glib_extension}typedef signed $gint64 gint64;
31734 ${glib_extension}typedef unsigned $gint64 guint64;
31735
31736 #define G_GINT64_CONSTANT(val)  $gint64_constant
31737 #define G_GUINT64_CONSTANT(val) $guint64_constant
31738 _______EOF
31739
31740         if test x$gint64_format != x ; then
31741           cat >>$outfile <<_______EOF
31742 #define G_GINT64_MODIFIER $gint64_modifier
31743 #define G_GINT64_FORMAT $gint64_format
31744 #define G_GUINT64_FORMAT $guint64_format
31745 _______EOF
31746         else
31747           cat >>$outfile <<_______EOF
31748 #undef G_GINT64_MODIFIER
31749 #undef G_GINT64_FORMAT
31750 #undef G_GUINT64_FORMAT
31751 _______EOF
31752         fi
31753
31754         cat >>$outfile <<_______EOF
31755
31756 #define GLIB_SIZEOF_VOID_P $glib_void_p
31757 #define GLIB_SIZEOF_LONG   $glib_long
31758 #define GLIB_SIZEOF_SIZE_T $glib_size_t
31759
31760 _______EOF
31761
31762         cat >>$outfile <<_______EOF
31763 typedef signed $glib_size_type_define gssize;
31764 typedef unsigned $glib_size_type_define gsize;
31765 #define G_GSIZE_MODIFIER $gsize_modifier
31766 #define G_GSSIZE_FORMAT $gssize_format
31767 #define G_GSIZE_FORMAT $gsize_format
31768
31769 #define G_MAXSIZE       G_MAXU$glib_msize_type
31770 #define G_MINSSIZE      G_MIN$glib_msize_type
31771 #define G_MAXSSIZE      G_MAX$glib_msize_type
31772
31773 typedef gint64 goffset;
31774 #define G_MINOFFSET     G_MININT64
31775 #define G_MAXOFFSET     G_MAXINT64
31776
31777 #define G_GOFFSET_MODIFIER      G_GINT64_MODIFIER
31778 #define G_GOFFSET_FORMAT        G_GINT64_FORMAT
31779 #define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
31780
31781 _______EOF
31782
31783         if test -z "$glib_unknown_void_p"; then
31784           cat >>$outfile <<_______EOF
31785
31786 #define GPOINTER_TO_INT(p)      ((gint)  ${glib_gpi_cast} (p))
31787 #define GPOINTER_TO_UINT(p)     ((guint) ${glib_gpui_cast} (p))
31788
31789 #define GINT_TO_POINTER(i)      ((gpointer) ${glib_gpi_cast} (i))
31790 #define GUINT_TO_POINTER(u)     ((gpointer) ${glib_gpui_cast} (u))
31791
31792 typedef signed $glib_intptr_type_define gintptr;
31793 typedef unsigned $glib_intptr_type_define guintptr;
31794
31795 #define G_GINTPTR_MODIFIER      $gintptr_modifier
31796 #define G_GINTPTR_FORMAT        $gintptr_format
31797 #define G_GUINTPTR_FORMAT       $guintptr_format
31798 _______EOF
31799         else
31800           echo '#error SIZEOF_VOID_P unknown - This should never happen' >>$outfile
31801         fi
31802
31803
31804
31805         cat >>$outfile <<_______EOF
31806 $glib_atexit
31807 $glib_memmove
31808 $glib_defines
31809 $glib_os
31810 $glib_static_compilation
31811
31812 $glib_vacopy
31813
31814 #ifdef  __cplusplus
31815 #define G_HAVE_INLINE   1
31816 #else   /* !__cplusplus */
31817 $glib_inline
31818 #endif  /* !__cplusplus */
31819
31820 #ifdef  __cplusplus
31821 #define G_CAN_INLINE    1
31822 _______EOF
31823
31824         if test x$g_can_inline = xyes ; then
31825                 cat >>$outfile <<_______EOF
31826 #else   /* !__cplusplus */
31827 #define G_CAN_INLINE    1
31828 _______EOF
31829         fi
31830
31831         cat >>$outfile <<_______EOF
31832 #endif
31833
31834 _______EOF
31835
31836         if test x$g_have_iso_c_varargs = xyes ; then
31837                 cat >>$outfile <<_______EOF
31838 #ifndef __cplusplus
31839 # define G_HAVE_ISO_VARARGS 1
31840 #endif
31841 _______EOF
31842         fi
31843         if test x$g_have_iso_cxx_varargs = xyes ; then
31844                 cat >>$outfile <<_______EOF
31845 #ifdef __cplusplus
31846 # define G_HAVE_ISO_VARARGS 1
31847 #endif
31848 _______EOF
31849         fi
31850         if test x$g_have_gnuc_varargs = xyes ; then
31851                 cat >>$outfile <<_______EOF
31852
31853 /* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
31854  * is passed ISO vararg support is turned off, and there is no work
31855  * around to turn it on, so we unconditionally turn it off.
31856  */
31857 #if __GNUC__ == 2 && __GNUC_MINOR__ == 95
31858 #  undef G_HAVE_ISO_VARARGS
31859 #endif
31860
31861 #define G_HAVE_GNUC_VARARGS 1
31862 _______EOF
31863         fi
31864
31865         case x$g_stack_grows in
31866         xyes) echo "#define G_HAVE_GROWING_STACK 1" >>$outfile ;;
31867         *)    echo "#define G_HAVE_GROWING_STACK 0" >>$outfile ;;
31868         esac
31869
31870
31871         echo >>$outfile
31872         if test x$g_have_eilseq = xno; then
31873                 cat >>$outfile <<_______EOF
31874 #ifndef EILSEQ
31875 /* On some systems, like SunOS and NetBSD, EILSEQ is not defined.
31876  * The correspondence between this and the corresponding definition
31877  * in libiconv is essential.
31878  */
31879 #  define EILSEQ ENOENT
31880 #endif
31881 _______EOF
31882
31883         fi
31884
31885         if test x$g_have_gnuc_visibility = xyes; then
31886                 cat >>$outfile <<_______EOF
31887 #define G_HAVE_GNUC_VISIBILITY 1
31888 _______EOF
31889         fi
31890                 cat >>$outfile <<_______EOF
31891 #if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
31892 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
31893 #elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
31894 #define G_GNUC_INTERNAL __hidden
31895 #elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
31896 #define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
31897 #else
31898 #define G_GNUC_INTERNAL
31899 #endif
31900 _______EOF
31901
31902         echo >>$outfile
31903         cat >>$outfile <<_______EOF
31904 #define G_THREADS_ENABLED
31905 #define G_THREADS_IMPL_$g_threads_impl_def
31906 _______EOF
31907
31908         if test x"$g_memory_barrier_needed" != xno; then
31909           echo >>$outfile
31910           echo "#define G_ATOMIC_OP_MEMORY_BARRIER_NEEDED 1" >>$outfile
31911         fi
31912         if test x"$g_atomic_lock_free" = xyes; then
31913           echo >>$outfile
31914           echo "#define G_ATOMIC_LOCK_FREE" >>$outfile
31915         fi
31916         echo >>$outfile
31917         g_bit_sizes="16 32 64"
31918         for bits in $g_bit_sizes; do
31919           cat >>$outfile <<_______EOF
31920 #define GINT${bits}_TO_${g_bs_native}(val)      ((gint${bits}) (val))
31921 #define GUINT${bits}_TO_${g_bs_native}(val)     ((guint${bits}) (val))
31922 #define GINT${bits}_TO_${g_bs_alien}(val)       ((gint${bits}) GUINT${bits}_SWAP_LE_BE (val))
31923 #define GUINT${bits}_TO_${g_bs_alien}(val)      (GUINT${bits}_SWAP_LE_BE (val))
31924 _______EOF
31925         done
31926
31927         cat >>$outfile <<_______EOF
31928 #define GLONG_TO_LE(val)        ((glong) GINT${glongbits}_TO_LE (val))
31929 #define GULONG_TO_LE(val)       ((gulong) GUINT${glongbits}_TO_LE (val))
31930 #define GLONG_TO_BE(val)        ((glong) GINT${glongbits}_TO_BE (val))
31931 #define GULONG_TO_BE(val)       ((gulong) GUINT${glongbits}_TO_BE (val))
31932 #define GINT_TO_LE(val)         ((gint) GINT${gintbits}_TO_LE (val))
31933 #define GUINT_TO_LE(val)        ((guint) GUINT${gintbits}_TO_LE (val))
31934 #define GINT_TO_BE(val)         ((gint) GINT${gintbits}_TO_BE (val))
31935 #define GUINT_TO_BE(val)        ((guint) GUINT${gintbits}_TO_BE (val))
31936 #define GSIZE_TO_LE(val)        ((gsize) GUINT${gsizebits}_TO_LE (val))
31937 #define GSSIZE_TO_LE(val)       ((gssize) GINT${gsizebits}_TO_LE (val))
31938 #define GSIZE_TO_BE(val)        ((gsize) GUINT${gsizebits}_TO_BE (val))
31939 #define GSSIZE_TO_BE(val)       ((gssize) GINT${gsizebits}_TO_BE (val))
31940 #define G_BYTE_ORDER $g_byte_order
31941
31942 #define GLIB_SYSDEF_POLLIN =$g_pollin
31943 #define GLIB_SYSDEF_POLLOUT =$g_pollout
31944 #define GLIB_SYSDEF_POLLPRI =$g_pollpri
31945 #define GLIB_SYSDEF_POLLHUP =$g_pollhup
31946 #define GLIB_SYSDEF_POLLERR =$g_pollerr
31947 #define GLIB_SYSDEF_POLLNVAL =$g_pollnval
31948
31949 #define G_MODULE_SUFFIX "$g_module_suffix"
31950
31951 typedef $g_pid_type GPid;
31952
31953 #define GLIB_SYSDEF_AF_UNIX $g_af_unix
31954 #define GLIB_SYSDEF_AF_INET $g_af_inet
31955 #define GLIB_SYSDEF_AF_INET6 $g_af_inet6
31956
31957 #define GLIB_SYSDEF_MSG_OOB $g_msg_oob
31958 #define GLIB_SYSDEF_MSG_PEEK $g_msg_peek
31959 #define GLIB_SYSDEF_MSG_DONTROUTE $g_msg_dontroute
31960
31961 G_END_DECLS
31962
31963 #endif /* __GLIBCONFIG_H__ */
31964 _______EOF
31965
31966
31967         if cmp -s $outfile glib/glibconfig.h; then
31968           { $as_echo "$as_me:${as_lineno-$LINENO}: glib/glibconfig.h is unchanged" >&5
31969 $as_echo "$as_me: glib/glibconfig.h is unchanged" >&6;}
31970           rm -f $outfile
31971         else
31972           mv $outfile glib/glibconfig.h
31973         fi
31974  ;;
31975     "chmod-scripts":C) chmod 0755 glib-zip
31976 chmod 0755 glib-gettextize
31977 chmod 0755 gobject/glib-mkenums ;;
31978
31979   esac
31980 done # for ac_tag
31981
31982
31983 as_fn_exit 0
31984 _ACEOF
31985 ac_clean_files=$ac_clean_files_save
31986
31987 test $ac_write_fail = 0 ||
31988   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
31989
31990
31991 # configure is writing to config.log, and then calls config.status.
31992 # config.status does its own redirection, appending to config.log.
31993 # Unfortunately, on DOS this fails, as config.log is still kept open
31994 # by configure, so config.status won't be able to write to it; its
31995 # output is simply discarded.  So we exec the FD to /dev/null,
31996 # effectively closing config.log, so it can be properly (re)opened and
31997 # appended to by config.status.  When coming back to configure, we
31998 # need to make the FD available again.
31999 if test "$no_create" != yes; then
32000   ac_cs_success=:
32001   ac_config_status_args=
32002   test "$silent" = yes &&
32003     ac_config_status_args="$ac_config_status_args --quiet"
32004   exec 5>/dev/null
32005   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32006   exec 5>>config.log
32007   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32008   # would make configure fail if this is the last instruction.
32009   $ac_cs_success || as_fn_exit 1
32010 fi
32011 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32012   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32013 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32014 fi
32015