Initial Import
[profile/ivi/json-glib.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for json-glib 0.14.2.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-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
178   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182     PATH=/empty FPATH=/empty; export PATH FPATH
183     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || 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=json-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='json-glib'
573 PACKAGE_TARNAME='json-glib'
574 PACKAGE_VERSION='0.14.2'
575 PACKAGE_STRING='json-glib 0.14.2'
576 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib'
577 PACKAGE_URL='http://live.gnome.org/JsonGlib'
578
579 ac_unique_file="json-glib/json-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 gt_needs=
617 ac_subst_vars='am__EXEEXT_FALSE
618 am__EXEEXT_TRUE
619 LTLIBOBJS
620 LIBOBJS
621 ALL_LINGUAS
622 GETTEXT_PACKAGE
623 POSUB
624 LTLIBINTL
625 LIBINTL
626 INTLLIBS
627 LTLIBICONV
628 LIBICONV
629 INTL_MACOSX_LIBS
630 XGETTEXT_EXTRA_OPTIONS
631 MSGMERGE
632 XGETTEXT_015
633 XGETTEXT
634 GMSGFMT_015
635 MSGFMT_015
636 GMSGFMT
637 MSGFMT
638 GETTEXT_MACRO_VERSION
639 USE_NLS
640 HAVE_INTROSPECTION_FALSE
641 HAVE_INTROSPECTION_TRUE
642 INTROSPECTION_MAKEFILE
643 INTROSPECTION_LIBS
644 INTROSPECTION_CFLAGS
645 INTROSPECTION_TYPELIBDIR
646 INTROSPECTION_GIRDIR
647 INTROSPECTION_GENERATE
648 INTROSPECTION_COMPILER
649 INTROSPECTION_SCANNER
650 GTK_DOC_USE_REBASE_FALSE
651 GTK_DOC_USE_REBASE_TRUE
652 GTK_DOC_USE_LIBTOOL_FALSE
653 GTK_DOC_USE_LIBTOOL_TRUE
654 GTK_DOC_BUILD_PDF_FALSE
655 GTK_DOC_BUILD_PDF_TRUE
656 GTK_DOC_BUILD_HTML_FALSE
657 GTK_DOC_BUILD_HTML_TRUE
658 ENABLE_GTK_DOC_FALSE
659 ENABLE_GTK_DOC_TRUE
660 GTKDOC_DEPS_LIBS
661 GTKDOC_DEPS_CFLAGS
662 HTML_DIR
663 GTKDOC_MKPDF
664 GTKDOC_REBASE
665 GTKDOC_CHECK
666 GCOV_LDFLAGS
667 GCOV_CFLAGS
668 GCOV_ENABLED_FALSE
669 GCOV_ENABLED_TRUE
670 MAINTAINER_CFLAGS
671 JSON_DEBUG_CFLAGS
672 ENABLE_GLIB_TEST_FALSE
673 ENABLE_GLIB_TEST_TRUE
674 JSON_LIBS
675 JSON_CFLAGS
676 GLIB_PREFIX
677 JSON_LT_LDFLAGS
678 JSON_RELEASE_STATUS
679 JSON_VERSION
680 JSON_MINOR_VERSION
681 JSON_MICRO_VERSION
682 JSON_MAJOR_VERSION
683 CPP
684 OTOOL64
685 OTOOL
686 LIPO
687 NMEDIT
688 DSYMUTIL
689 MANIFEST_TOOL
690 RANLIB
691 ac_ct_AR
692 AR
693 DLLTOOL
694 OBJDUMP
695 LN_S
696 NM
697 ac_ct_DUMPBIN
698 DUMPBIN
699 LD
700 FGREP
701 EGREP
702 GREP
703 SED
704 host_os
705 host_vendor
706 host_cpu
707 host
708 build_os
709 build_vendor
710 build_cpu
711 build
712 LIBTOOL
713 GLIB_MKENUMS
714 GOBJECT_QUERY
715 GLIB_GENMARSHAL
716 GLIB_LIBS
717 GLIB_CFLAGS
718 am__fastdepCC_FALSE
719 am__fastdepCC_TRUE
720 CCDEPMODE
721 AMDEPBACKSLASH
722 AMDEP_FALSE
723 AMDEP_TRUE
724 am__quote
725 am__include
726 DEPDIR
727 OBJEXT
728 EXEEXT
729 ac_ct_CC
730 CPPFLAGS
731 LDFLAGS
732 CFLAGS
733 CC
734 PKG_CONFIG_LIBDIR
735 PKG_CONFIG_PATH
736 PKG_CONFIG
737 AM_BACKSLASH
738 AM_DEFAULT_VERBOSITY
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
744 AWK
745 mkdir_p
746 MKDIR_P
747 INSTALL_STRIP_PROGRAM
748 STRIP
749 install_sh
750 MAKEINFO
751 AUTOHEADER
752 AUTOMAKE
753 AUTOCONF
754 ACLOCAL
755 VERSION
756 PACKAGE
757 CYGPATH_W
758 am__isrc
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 target_alias
763 host_alias
764 build_alias
765 LIBS
766 ECHO_T
767 ECHO_N
768 ECHO_C
769 DEFS
770 mandir
771 localedir
772 libdir
773 psdir
774 pdfdir
775 dvidir
776 htmldir
777 infodir
778 docdir
779 oldincludedir
780 includedir
781 localstatedir
782 sharedstatedir
783 sysconfdir
784 datadir
785 datarootdir
786 libexecdir
787 sbindir
788 bindir
789 program_transform_name
790 prefix
791 exec_prefix
792 PACKAGE_URL
793 PACKAGE_BUGREPORT
794 PACKAGE_STRING
795 PACKAGE_VERSION
796 PACKAGE_TARNAME
797 PACKAGE_NAME
798 PATH_SEPARATOR
799 SHELL'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_silent_rules
804 enable_glibtest
805 enable_dependency_tracking
806 enable_static
807 enable_shared
808 with_pic
809 enable_fast_install
810 with_gnu_ld
811 with_sysroot
812 enable_libtool_lock
813 enable_debug
814 enable_maintainer_flags
815 enable_gcov
816 with_html_dir
817 enable_gtk_doc
818 enable_gtk_doc_html
819 enable_gtk_doc_pdf
820 enable_introspection
821 enable_nls
822 enable_rpath
823 with_libiconv_prefix
824 with_libintl_prefix
825 '
826       ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 PKG_CONFIG
830 PKG_CONFIG_PATH
831 PKG_CONFIG_LIBDIR
832 CC
833 CFLAGS
834 LDFLAGS
835 LIBS
836 CPPFLAGS
837 CPP
838 JSON_CFLAGS
839 JSON_LIBS
840 GTKDOC_DEPS_CFLAGS
841 GTKDOC_DEPS_LIBS'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 includedir='${prefix}/include'
881 oldincludedir='/usr/include'
882 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
883 infodir='${datarootdir}/info'
884 htmldir='${docdir}'
885 dvidir='${docdir}'
886 pdfdir='${docdir}'
887 psdir='${docdir}'
888 libdir='${exec_prefix}/lib'
889 localedir='${datarootdir}/locale'
890 mandir='${datarootdir}/man'
891
892 ac_prev=
893 ac_dashdash=
894 for ac_option
895 do
896   # If the previous option needs an argument, assign it.
897   if test -n "$ac_prev"; then
898     eval $ac_prev=\$ac_option
899     ac_prev=
900     continue
901   fi
902
903   case $ac_option in
904   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
905   *=)   ac_optarg= ;;
906   *)    ac_optarg=yes ;;
907   esac
908
909   # Accept the important Cygnus configure options, so we can diagnose typos.
910
911   case $ac_dashdash$ac_option in
912   --)
913     ac_dashdash=yes ;;
914
915   -bindir | --bindir | --bindi | --bind | --bin | --bi)
916     ac_prev=bindir ;;
917   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
918     bindir=$ac_optarg ;;
919
920   -build | --build | --buil | --bui | --bu)
921     ac_prev=build_alias ;;
922   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
923     build_alias=$ac_optarg ;;
924
925   -cache-file | --cache-file | --cache-fil | --cache-fi \
926   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
927     ac_prev=cache_file ;;
928   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
929   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
930     cache_file=$ac_optarg ;;
931
932   --config-cache | -C)
933     cache_file=config.cache ;;
934
935   -datadir | --datadir | --datadi | --datad)
936     ac_prev=datadir ;;
937   -datadir=* | --datadir=* | --datadi=* | --datad=*)
938     datadir=$ac_optarg ;;
939
940   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
941   | --dataroo | --dataro | --datar)
942     ac_prev=datarootdir ;;
943   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
944   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
945     datarootdir=$ac_optarg ;;
946
947   -disable-* | --disable-*)
948     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
949     # Reject names that are not valid shell variable names.
950     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
951       as_fn_error $? "invalid feature name: $ac_useropt"
952     ac_useropt_orig=$ac_useropt
953     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
954     case $ac_user_opts in
955       *"
956 "enable_$ac_useropt"
957 "*) ;;
958       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
959          ac_unrecognized_sep=', ';;
960     esac
961     eval enable_$ac_useropt=no ;;
962
963   -docdir | --docdir | --docdi | --doc | --do)
964     ac_prev=docdir ;;
965   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966     docdir=$ac_optarg ;;
967
968   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969     ac_prev=dvidir ;;
970   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971     dvidir=$ac_optarg ;;
972
973   -enable-* | --enable-*)
974     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975     # Reject names that are not valid shell variable names.
976     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977       as_fn_error $? "invalid feature name: $ac_useropt"
978     ac_useropt_orig=$ac_useropt
979     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980     case $ac_user_opts in
981       *"
982 "enable_$ac_useropt"
983 "*) ;;
984       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
985          ac_unrecognized_sep=', ';;
986     esac
987     eval enable_$ac_useropt=\$ac_optarg ;;
988
989   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
990   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
991   | --exec | --exe | --ex)
992     ac_prev=exec_prefix ;;
993   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
994   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
995   | --exec=* | --exe=* | --ex=*)
996     exec_prefix=$ac_optarg ;;
997
998   -gas | --gas | --ga | --g)
999     # Obsolete; use --with-gas.
1000     with_gas=yes ;;
1001
1002   -help | --help | --hel | --he | -h)
1003     ac_init_help=long ;;
1004   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1005     ac_init_help=recursive ;;
1006   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1007     ac_init_help=short ;;
1008
1009   -host | --host | --hos | --ho)
1010     ac_prev=host_alias ;;
1011   -host=* | --host=* | --hos=* | --ho=*)
1012     host_alias=$ac_optarg ;;
1013
1014   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1015     ac_prev=htmldir ;;
1016   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1017   | --ht=*)
1018     htmldir=$ac_optarg ;;
1019
1020   -includedir | --includedir | --includedi | --included | --include \
1021   | --includ | --inclu | --incl | --inc)
1022     ac_prev=includedir ;;
1023   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1024   | --includ=* | --inclu=* | --incl=* | --inc=*)
1025     includedir=$ac_optarg ;;
1026
1027   -infodir | --infodir | --infodi | --infod | --info | --inf)
1028     ac_prev=infodir ;;
1029   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1030     infodir=$ac_optarg ;;
1031
1032   -libdir | --libdir | --libdi | --libd)
1033     ac_prev=libdir ;;
1034   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1035     libdir=$ac_optarg ;;
1036
1037   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1038   | --libexe | --libex | --libe)
1039     ac_prev=libexecdir ;;
1040   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1041   | --libexe=* | --libex=* | --libe=*)
1042     libexecdir=$ac_optarg ;;
1043
1044   -localedir | --localedir | --localedi | --localed | --locale)
1045     ac_prev=localedir ;;
1046   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1047     localedir=$ac_optarg ;;
1048
1049   -localstatedir | --localstatedir | --localstatedi | --localstated \
1050   | --localstate | --localstat | --localsta | --localst | --locals)
1051     ac_prev=localstatedir ;;
1052   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1053   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1054     localstatedir=$ac_optarg ;;
1055
1056   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1057     ac_prev=mandir ;;
1058   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1059     mandir=$ac_optarg ;;
1060
1061   -nfp | --nfp | --nf)
1062     # Obsolete; use --without-fp.
1063     with_fp=no ;;
1064
1065   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1066   | --no-cr | --no-c | -n)
1067     no_create=yes ;;
1068
1069   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1070   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1071     no_recursion=yes ;;
1072
1073   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1074   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1075   | --oldin | --oldi | --old | --ol | --o)
1076     ac_prev=oldincludedir ;;
1077   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1078   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1079   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1080     oldincludedir=$ac_optarg ;;
1081
1082   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1083     ac_prev=prefix ;;
1084   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1085     prefix=$ac_optarg ;;
1086
1087   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1088   | --program-pre | --program-pr | --program-p)
1089     ac_prev=program_prefix ;;
1090   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1091   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1092     program_prefix=$ac_optarg ;;
1093
1094   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1095   | --program-suf | --program-su | --program-s)
1096     ac_prev=program_suffix ;;
1097   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1098   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1099     program_suffix=$ac_optarg ;;
1100
1101   -program-transform-name | --program-transform-name \
1102   | --program-transform-nam | --program-transform-na \
1103   | --program-transform-n | --program-transform- \
1104   | --program-transform | --program-transfor \
1105   | --program-transfo | --program-transf \
1106   | --program-trans | --program-tran \
1107   | --progr-tra | --program-tr | --program-t)
1108     ac_prev=program_transform_name ;;
1109   -program-transform-name=* | --program-transform-name=* \
1110   | --program-transform-nam=* | --program-transform-na=* \
1111   | --program-transform-n=* | --program-transform-=* \
1112   | --program-transform=* | --program-transfor=* \
1113   | --program-transfo=* | --program-transf=* \
1114   | --program-trans=* | --program-tran=* \
1115   | --progr-tra=* | --program-tr=* | --program-t=*)
1116     program_transform_name=$ac_optarg ;;
1117
1118   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1119     ac_prev=pdfdir ;;
1120   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1121     pdfdir=$ac_optarg ;;
1122
1123   -psdir | --psdir | --psdi | --psd | --ps)
1124     ac_prev=psdir ;;
1125   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1126     psdir=$ac_optarg ;;
1127
1128   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1129   | -silent | --silent | --silen | --sile | --sil)
1130     silent=yes ;;
1131
1132   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1133     ac_prev=sbindir ;;
1134   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1135   | --sbi=* | --sb=*)
1136     sbindir=$ac_optarg ;;
1137
1138   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1139   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1140   | --sharedst | --shareds | --shared | --share | --shar \
1141   | --sha | --sh)
1142     ac_prev=sharedstatedir ;;
1143   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1144   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1145   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1146   | --sha=* | --sh=*)
1147     sharedstatedir=$ac_optarg ;;
1148
1149   -site | --site | --sit)
1150     ac_prev=site ;;
1151   -site=* | --site=* | --sit=*)
1152     site=$ac_optarg ;;
1153
1154   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1155     ac_prev=srcdir ;;
1156   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1157     srcdir=$ac_optarg ;;
1158
1159   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1160   | --syscon | --sysco | --sysc | --sys | --sy)
1161     ac_prev=sysconfdir ;;
1162   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1163   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1164     sysconfdir=$ac_optarg ;;
1165
1166   -target | --target | --targe | --targ | --tar | --ta | --t)
1167     ac_prev=target_alias ;;
1168   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1169     target_alias=$ac_optarg ;;
1170
1171   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1172     verbose=yes ;;
1173
1174   -version | --version | --versio | --versi | --vers | -V)
1175     ac_init_version=: ;;
1176
1177   -with-* | --with-*)
1178     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1179     # Reject names that are not valid shell variable names.
1180     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1181       as_fn_error $? "invalid package name: $ac_useropt"
1182     ac_useropt_orig=$ac_useropt
1183     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184     case $ac_user_opts in
1185       *"
1186 "with_$ac_useropt"
1187 "*) ;;
1188       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1189          ac_unrecognized_sep=', ';;
1190     esac
1191     eval with_$ac_useropt=\$ac_optarg ;;
1192
1193   -without-* | --without-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=no ;;
1208
1209   --x)
1210     # Obsolete; use --with-x.
1211     with_x=yes ;;
1212
1213   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1214   | --x-incl | --x-inc | --x-in | --x-i)
1215     ac_prev=x_includes ;;
1216   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1217   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1218     x_includes=$ac_optarg ;;
1219
1220   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1221   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1222     ac_prev=x_libraries ;;
1223   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1224   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1225     x_libraries=$ac_optarg ;;
1226
1227   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1228 Try \`$0 --help' for more information"
1229     ;;
1230
1231   *=*)
1232     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1233     # Reject names that are not valid shell variable names.
1234     case $ac_envvar in #(
1235       '' | [0-9]* | *[!_$as_cr_alnum]* )
1236       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1237     esac
1238     eval $ac_envvar=\$ac_optarg
1239     export $ac_envvar ;;
1240
1241   *)
1242     # FIXME: should be removed in autoconf 3.0.
1243     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1244     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1245       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1246     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247     ;;
1248
1249   esac
1250 done
1251
1252 if test -n "$ac_prev"; then
1253   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1254   as_fn_error $? "missing argument to $ac_option"
1255 fi
1256
1257 if test -n "$ac_unrecognized_opts"; then
1258   case $enable_option_checking in
1259     no) ;;
1260     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1261     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1262   esac
1263 fi
1264
1265 # Check all directory arguments for consistency.
1266 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1267                 datadir sysconfdir sharedstatedir localstatedir includedir \
1268                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1269                 libdir localedir mandir
1270 do
1271   eval ac_val=\$$ac_var
1272   # Remove trailing slashes.
1273   case $ac_val in
1274     */ )
1275       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1276       eval $ac_var=\$ac_val;;
1277   esac
1278   # Be sure to have absolute directory names.
1279   case $ac_val in
1280     [\\/$]* | ?:[\\/]* )  continue;;
1281     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1282   esac
1283   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1284 done
1285
1286 # There might be people who depend on the old broken behavior: `$host'
1287 # used to hold the argument of --host etc.
1288 # FIXME: To remove some day.
1289 build=$build_alias
1290 host=$host_alias
1291 target=$target_alias
1292
1293 # FIXME: To remove some day.
1294 if test "x$host_alias" != x; then
1295   if test "x$build_alias" = x; then
1296     cross_compiling=maybe
1297     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1298     If a cross compiler is detected then cross compile mode will be used" >&2
1299   elif test "x$build_alias" != "x$host_alias"; then
1300     cross_compiling=yes
1301   fi
1302 fi
1303
1304 ac_tool_prefix=
1305 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1306
1307 test "$silent" = yes && exec 6>/dev/null
1308
1309
1310 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1311 ac_ls_di=`ls -di .` &&
1312 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1313   as_fn_error $? "working directory cannot be determined"
1314 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1315   as_fn_error $? "pwd does not report name of working directory"
1316
1317
1318 # Find the source files, if location was not specified.
1319 if test -z "$srcdir"; then
1320   ac_srcdir_defaulted=yes
1321   # Try the directory containing this script, then the parent directory.
1322   ac_confdir=`$as_dirname -- "$as_myself" ||
1323 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1324          X"$as_myself" : 'X\(//\)[^/]' \| \
1325          X"$as_myself" : 'X\(//\)$' \| \
1326          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1327 $as_echo X"$as_myself" |
1328     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1329             s//\1/
1330             q
1331           }
1332           /^X\(\/\/\)[^/].*/{
1333             s//\1/
1334             q
1335           }
1336           /^X\(\/\/\)$/{
1337             s//\1/
1338             q
1339           }
1340           /^X\(\/\).*/{
1341             s//\1/
1342             q
1343           }
1344           s/.*/./; q'`
1345   srcdir=$ac_confdir
1346   if test ! -r "$srcdir/$ac_unique_file"; then
1347     srcdir=..
1348   fi
1349 else
1350   ac_srcdir_defaulted=no
1351 fi
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1354   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1355 fi
1356 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1357 ac_abs_confdir=`(
1358         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1359         pwd)`
1360 # When building in place, set srcdir=.
1361 if test "$ac_abs_confdir" = "$ac_pwd"; then
1362   srcdir=.
1363 fi
1364 # Remove unnecessary trailing slashes from srcdir.
1365 # Double slashes in file names in object file debugging info
1366 # mess up M-x gdb in Emacs.
1367 case $srcdir in
1368 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1369 esac
1370 for ac_var in $ac_precious_vars; do
1371   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1372   eval ac_env_${ac_var}_value=\$${ac_var}
1373   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1374   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 done
1376
1377 #
1378 # Report the --help message.
1379 #
1380 if test "$ac_init_help" = "long"; then
1381   # Omit some internal or obsolete options to make the list less imposing.
1382   # This message is too long to be a string in the A/UX 3.1 sh.
1383   cat <<_ACEOF
1384 \`configure' configures json-glib 0.14.2 to adapt to many kinds of systems.
1385
1386 Usage: $0 [OPTION]... [VAR=VALUE]...
1387
1388 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1389 VAR=VALUE.  See below for descriptions of some of the useful variables.
1390
1391 Defaults for the options are specified in brackets.
1392
1393 Configuration:
1394   -h, --help              display this help and exit
1395       --help=short        display options specific to this package
1396       --help=recursive    display the short help of all the included packages
1397   -V, --version           display version information and exit
1398   -q, --quiet, --silent   do not print \`checking ...' messages
1399       --cache-file=FILE   cache test results in FILE [disabled]
1400   -C, --config-cache      alias for \`--cache-file=config.cache'
1401   -n, --no-create         do not create output files
1402       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1403
1404 Installation directories:
1405   --prefix=PREFIX         install architecture-independent files in PREFIX
1406                           [$ac_default_prefix]
1407   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1408                           [PREFIX]
1409
1410 By default, \`make install' will install all the files in
1411 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1412 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1413 for instance \`--prefix=\$HOME'.
1414
1415 For better control, use the options below.
1416
1417 Fine tuning of the installation directories:
1418   --bindir=DIR            user executables [EPREFIX/bin]
1419   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1420   --libexecdir=DIR        program executables [EPREFIX/libexec]
1421   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1422   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1423   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1424   --libdir=DIR            object code libraries [EPREFIX/lib]
1425   --includedir=DIR        C header files [PREFIX/include]
1426   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1427   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1428   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1429   --infodir=DIR           info documentation [DATAROOTDIR/info]
1430   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1431   --mandir=DIR            man documentation [DATAROOTDIR/man]
1432   --docdir=DIR            documentation root [DATAROOTDIR/doc/json-glib]
1433   --htmldir=DIR           html documentation [DOCDIR]
1434   --dvidir=DIR            dvi documentation [DOCDIR]
1435   --pdfdir=DIR            pdf documentation [DOCDIR]
1436   --psdir=DIR             ps documentation [DOCDIR]
1437 _ACEOF
1438
1439   cat <<\_ACEOF
1440
1441 Program names:
1442   --program-prefix=PREFIX            prepend PREFIX to installed program names
1443   --program-suffix=SUFFIX            append SUFFIX to installed program names
1444   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1445
1446 System types:
1447   --build=BUILD     configure for building on BUILD [guessed]
1448   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1449 _ACEOF
1450 fi
1451
1452 if test -n "$ac_init_help"; then
1453   case $ac_init_help in
1454      short | recursive ) echo "Configuration of json-glib 0.14.2:";;
1455    esac
1456   cat <<\_ACEOF
1457
1458 Optional Features:
1459   --disable-option-checking  ignore unrecognized --enable/--with options
1460   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1461   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1462   --enable-silent-rules          less verbose build output (undo: `make V=1')
1463   --disable-silent-rules         verbose build output (undo: `make V=0')
1464   --disable-glibtest      do not try to compile and run a test GLIB program
1465   --disable-dependency-tracking  speeds up one-time build
1466   --enable-dependency-tracking   do not reject slow dependency extractors
1467   --enable-static[=PKGS]  build static libraries [default=no]
1468   --enable-shared[=PKGS]  build shared libraries [default=yes]
1469   --enable-fast-install[=PKGS]
1470                           optimize for fast installation [default=yes]
1471   --disable-libtool-lock  avoid locking (might break parallel builds)
1472   --enable-debug=[no/minimum/yes]
1473                           turn on debugging [default=minimum]
1474   --enable-maintainer-flags=[no/yes]
1475                           Use strict compiler flags [default=no]
1476   --enable-gcov           Whether to enable coverage testing (requires gcc and
1477                           gcov)
1478   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1479   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1480   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1481   --enable-introspection=[no/auto/yes]
1482                           Enable introspection for this build
1483   --disable-nls           do not use Native Language Support
1484   --disable-rpath         do not hardcode runtime library paths
1485
1486 Optional Packages:
1487   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1488   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1489   --with-pic              try to use only PIC/non-PIC objects [default=use
1490                           both]
1491   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1492   --with-sysroot=DIR Search for dependent libraries within DIR
1493                         (or the compiler's sysroot if not specified).
1494   --with-html-dir=PATH    path to installed docs
1495   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1496   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1497   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1498   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1499   --without-libintl-prefix     don't search for libintl in includedir and libdir
1500
1501 Some influential environment variables:
1502   PKG_CONFIG  path to pkg-config utility
1503   PKG_CONFIG_PATH
1504               directories to add to pkg-config's search path
1505   PKG_CONFIG_LIBDIR
1506               path overriding pkg-config's built-in search path
1507   CC          C compiler command
1508   CFLAGS      C compiler flags
1509   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1510               nonstandard directory <lib dir>
1511   LIBS        libraries to pass to the linker, e.g. -l<library>
1512   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513               you have headers in a nonstandard directory <include dir>
1514   CPP         C preprocessor
1515   JSON_CFLAGS C compiler flags for JSON, overriding pkg-config
1516   JSON_LIBS   linker flags for JSON, overriding pkg-config
1517   GTKDOC_DEPS_CFLAGS
1518               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1519   GTKDOC_DEPS_LIBS
1520               linker flags for GTKDOC_DEPS, overriding pkg-config
1521
1522 Use these variables to override the choices made by `configure' or to help
1523 it to find libraries and programs with nonstandard names/locations.
1524
1525 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
1526 json-glib home page: <http://live.gnome.org/JsonGlib>.
1527 _ACEOF
1528 ac_status=$?
1529 fi
1530
1531 if test "$ac_init_help" = "recursive"; then
1532   # If there are subdirs, report their specific --help.
1533   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534     test -d "$ac_dir" ||
1535       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1536       continue
1537     ac_builddir=.
1538
1539 case "$ac_dir" in
1540 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *)
1542   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543   # A ".." for each directory in $ac_dir_suffix.
1544   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545   case $ac_top_builddir_sub in
1546   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1548   esac ;;
1549 esac
1550 ac_abs_top_builddir=$ac_pwd
1551 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552 # for backward compatibility:
1553 ac_top_builddir=$ac_top_build_prefix
1554
1555 case $srcdir in
1556   .)  # We are building in place.
1557     ac_srcdir=.
1558     ac_top_srcdir=$ac_top_builddir_sub
1559     ac_abs_top_srcdir=$ac_pwd ;;
1560   [\\/]* | ?:[\\/]* )  # Absolute name.
1561     ac_srcdir=$srcdir$ac_dir_suffix;
1562     ac_top_srcdir=$srcdir
1563     ac_abs_top_srcdir=$srcdir ;;
1564   *) # Relative name.
1565     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566     ac_top_srcdir=$ac_top_build_prefix$srcdir
1567     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1568 esac
1569 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1570
1571     cd "$ac_dir" || { ac_status=$?; continue; }
1572     # Check for guested configure.
1573     if test -f "$ac_srcdir/configure.gnu"; then
1574       echo &&
1575       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576     elif test -f "$ac_srcdir/configure"; then
1577       echo &&
1578       $SHELL "$ac_srcdir/configure" --help=recursive
1579     else
1580       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1581     fi || ac_status=$?
1582     cd "$ac_pwd" || { ac_status=$?; break; }
1583   done
1584 fi
1585
1586 test -n "$ac_init_help" && exit $ac_status
1587 if $ac_init_version; then
1588   cat <<\_ACEOF
1589 json-glib configure 0.14.2
1590 generated by GNU Autoconf 2.68
1591
1592 Copyright (C) 2010 Free Software Foundation, Inc.
1593 This configure script is free software; the Free Software Foundation
1594 gives unlimited permission to copy, distribute and modify it.
1595 _ACEOF
1596   exit
1597 fi
1598
1599 ## ------------------------ ##
1600 ## Autoconf initialization. ##
1601 ## ------------------------ ##
1602
1603 # ac_fn_c_try_compile LINENO
1604 # --------------------------
1605 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1606 ac_fn_c_try_compile ()
1607 {
1608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609   rm -f conftest.$ac_objext
1610   if { { ac_try="$ac_compile"
1611 case "(($ac_try" in
1612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613   *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617   (eval "$ac_compile") 2>conftest.err
1618   ac_status=$?
1619   if test -s conftest.err; then
1620     grep -v '^ *+' conftest.err >conftest.er1
1621     cat conftest.er1 >&5
1622     mv -f conftest.er1 conftest.err
1623   fi
1624   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625   test $ac_status = 0; } && {
1626          test -z "$ac_c_werror_flag" ||
1627          test ! -s conftest.err
1628        } && test -s conftest.$ac_objext; then :
1629   ac_retval=0
1630 else
1631   $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1633
1634         ac_retval=1
1635 fi
1636   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637   as_fn_set_status $ac_retval
1638
1639 } # ac_fn_c_try_compile
1640
1641 # ac_fn_c_try_run LINENO
1642 # ----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1644 # that executables *can* be run.
1645 ac_fn_c_try_run ()
1646 {
1647   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648   if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651   *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655   (eval "$ac_link") 2>&5
1656   ac_status=$?
1657   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1659   { { case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_try") 2>&5
1666   ac_status=$?
1667   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668   test $ac_status = 0; }; }; then :
1669   ac_retval=0
1670 else
1671   $as_echo "$as_me: program exited with status $ac_status" >&5
1672        $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675        ac_retval=$ac_status
1676 fi
1677   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1678   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1679   as_fn_set_status $ac_retval
1680
1681 } # ac_fn_c_try_run
1682
1683 # ac_fn_c_try_link LINENO
1684 # -----------------------
1685 # Try to link conftest.$ac_ext, and return whether this succeeded.
1686 ac_fn_c_try_link ()
1687 {
1688   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689   rm -f conftest.$ac_objext conftest$ac_exeext
1690   if { { ac_try="$ac_link"
1691 case "(($ac_try" in
1692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1693   *) ac_try_echo=$ac_try;;
1694 esac
1695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1696 $as_echo "$ac_try_echo"; } >&5
1697   (eval "$ac_link") 2>conftest.err
1698   ac_status=$?
1699   if test -s conftest.err; then
1700     grep -v '^ *+' conftest.err >conftest.er1
1701     cat conftest.er1 >&5
1702     mv -f conftest.er1 conftest.err
1703   fi
1704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705   test $ac_status = 0; } && {
1706          test -z "$ac_c_werror_flag" ||
1707          test ! -s conftest.err
1708        } && test -s conftest$ac_exeext && {
1709          test "$cross_compiling" = yes ||
1710          $as_test_x conftest$ac_exeext
1711        }; then :
1712   ac_retval=0
1713 else
1714   $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1716
1717         ac_retval=1
1718 fi
1719   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1720   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1721   # interfere with the next link command; also delete a directory that is
1722   # left behind by Apple's compiler.  We do this before executing the actions.
1723   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1724   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725   as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_link
1728
1729 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists and can be compiled using the include files in
1732 # INCLUDES, setting the cache variable VAR accordingly.
1733 ac_fn_c_check_header_compile ()
1734 {
1735   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739   $as_echo_n "(cached) " >&6
1740 else
1741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h.  */
1743 $4
1744 #include <$2>
1745 _ACEOF
1746 if ac_fn_c_try_compile "$LINENO"; then :
1747   eval "$3=yes"
1748 else
1749   eval "$3=no"
1750 fi
1751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752 fi
1753 eval ac_res=\$$3
1754                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1755 $as_echo "$ac_res" >&6; }
1756   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1757
1758 } # ac_fn_c_check_header_compile
1759
1760 # ac_fn_c_try_cpp LINENO
1761 # ----------------------
1762 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_cpp ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   if { { ac_try="$ac_cpp conftest.$ac_ext"
1767 case "(($ac_try" in
1768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769   *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774   ac_status=$?
1775   if test -s conftest.err; then
1776     grep -v '^ *+' conftest.err >conftest.er1
1777     cat conftest.er1 >&5
1778     mv -f conftest.er1 conftest.err
1779   fi
1780   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781   test $ac_status = 0; } > conftest.i && {
1782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783          test ! -s conftest.err
1784        }; then :
1785   ac_retval=0
1786 else
1787   $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790     ac_retval=1
1791 fi
1792   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793   as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_cpp
1796
1797 # ac_fn_c_check_func LINENO FUNC VAR
1798 # ----------------------------------
1799 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1800 ac_fn_c_check_func ()
1801 {
1802   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804 $as_echo_n "checking for $2... " >&6; }
1805 if eval \${$3+:} false; then :
1806   $as_echo_n "(cached) " >&6
1807 else
1808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809 /* end confdefs.h.  */
1810 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1812 #define $2 innocuous_$2
1813
1814 /* System header to define __stub macros and hopefully few prototypes,
1815     which can conflict with char $2 (); below.
1816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1817     <limits.h> exists even on freestanding compilers.  */
1818
1819 #ifdef __STDC__
1820 # include <limits.h>
1821 #else
1822 # include <assert.h>
1823 #endif
1824
1825 #undef $2
1826
1827 /* Override any GCC internal prototype to avoid an error.
1828    Use char because int might match the return type of a GCC
1829    builtin and then its argument prototype would still apply.  */
1830 #ifdef __cplusplus
1831 extern "C"
1832 #endif
1833 char $2 ();
1834 /* The GNU C library defines this for functions which it implements
1835     to always fail with ENOSYS.  Some functions are actually named
1836     something starting with __ and the normal name is an alias.  */
1837 #if defined __stub_$2 || defined __stub___$2
1838 choke me
1839 #endif
1840
1841 int
1842 main ()
1843 {
1844 return $2 ();
1845   ;
1846   return 0;
1847 }
1848 _ACEOF
1849 if ac_fn_c_try_link "$LINENO"; then :
1850   eval "$3=yes"
1851 else
1852   eval "$3=no"
1853 fi
1854 rm -f core conftest.err conftest.$ac_objext \
1855     conftest$ac_exeext conftest.$ac_ext
1856 fi
1857 eval ac_res=\$$3
1858                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861
1862 } # ac_fn_c_check_func
1863 cat >config.log <<_ACEOF
1864 This file contains any messages produced by compilers while
1865 running configure, to aid debugging if configure makes a mistake.
1866
1867 It was created by json-glib $as_me 0.14.2, which was
1868 generated by GNU Autoconf 2.68.  Invocation command line was
1869
1870   $ $0 $@
1871
1872 _ACEOF
1873 exec 5>>config.log
1874 {
1875 cat <<_ASUNAME
1876 ## --------- ##
1877 ## Platform. ##
1878 ## --------- ##
1879
1880 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1881 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1882 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1883 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1884 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1885
1886 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1887 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1888
1889 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1890 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1891 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1892 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1893 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1894 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1895 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1896
1897 _ASUNAME
1898
1899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1900 for as_dir in $PATH
1901 do
1902   IFS=$as_save_IFS
1903   test -z "$as_dir" && as_dir=.
1904     $as_echo "PATH: $as_dir"
1905   done
1906 IFS=$as_save_IFS
1907
1908 } >&5
1909
1910 cat >&5 <<_ACEOF
1911
1912
1913 ## ----------- ##
1914 ## Core tests. ##
1915 ## ----------- ##
1916
1917 _ACEOF
1918
1919
1920 # Keep a trace of the command line.
1921 # Strip out --no-create and --no-recursion so they do not pile up.
1922 # Strip out --silent because we don't want to record it for future runs.
1923 # Also quote any args containing shell meta-characters.
1924 # Make two passes to allow for proper duplicate-argument suppression.
1925 ac_configure_args=
1926 ac_configure_args0=
1927 ac_configure_args1=
1928 ac_must_keep_next=false
1929 for ac_pass in 1 2
1930 do
1931   for ac_arg
1932   do
1933     case $ac_arg in
1934     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1935     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1936     | -silent | --silent | --silen | --sile | --sil)
1937       continue ;;
1938     *\'*)
1939       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1940     esac
1941     case $ac_pass in
1942     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1943     2)
1944       as_fn_append ac_configure_args1 " '$ac_arg'"
1945       if test $ac_must_keep_next = true; then
1946         ac_must_keep_next=false # Got value, back to normal.
1947       else
1948         case $ac_arg in
1949           *=* | --config-cache | -C | -disable-* | --disable-* \
1950           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1951           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1952           | -with-* | --with-* | -without-* | --without-* | --x)
1953             case "$ac_configure_args0 " in
1954               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1955             esac
1956             ;;
1957           -* ) ac_must_keep_next=true ;;
1958         esac
1959       fi
1960       as_fn_append ac_configure_args " '$ac_arg'"
1961       ;;
1962     esac
1963   done
1964 done
1965 { ac_configure_args0=; unset ac_configure_args0;}
1966 { ac_configure_args1=; unset ac_configure_args1;}
1967
1968 # When interrupted or exit'd, cleanup temporary files, and complete
1969 # config.log.  We remove comments because anyway the quotes in there
1970 # would cause problems or look ugly.
1971 # WARNING: Use '\'' to represent an apostrophe within the trap.
1972 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1973 trap 'exit_status=$?
1974   # Save into config.log some information that might help in debugging.
1975   {
1976     echo
1977
1978     $as_echo "## ---------------- ##
1979 ## Cache variables. ##
1980 ## ---------------- ##"
1981     echo
1982     # The following way of writing the cache mishandles newlines in values,
1983 (
1984   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1985     eval ac_val=\$$ac_var
1986     case $ac_val in #(
1987     *${as_nl}*)
1988       case $ac_var in #(
1989       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1990 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1991       esac
1992       case $ac_var in #(
1993       _ | IFS | as_nl) ;; #(
1994       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1995       *) { eval $ac_var=; unset $ac_var;} ;;
1996       esac ;;
1997     esac
1998   done
1999   (set) 2>&1 |
2000     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2001     *${as_nl}ac_space=\ *)
2002       sed -n \
2003         "s/'\''/'\''\\\\'\'''\''/g;
2004           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2005       ;; #(
2006     *)
2007       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2008       ;;
2009     esac |
2010     sort
2011 )
2012     echo
2013
2014     $as_echo "## ----------------- ##
2015 ## Output variables. ##
2016 ## ----------------- ##"
2017     echo
2018     for ac_var in $ac_subst_vars
2019     do
2020       eval ac_val=\$$ac_var
2021       case $ac_val in
2022       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2023       esac
2024       $as_echo "$ac_var='\''$ac_val'\''"
2025     done | sort
2026     echo
2027
2028     if test -n "$ac_subst_files"; then
2029       $as_echo "## ------------------- ##
2030 ## File substitutions. ##
2031 ## ------------------- ##"
2032       echo
2033       for ac_var in $ac_subst_files
2034       do
2035         eval ac_val=\$$ac_var
2036         case $ac_val in
2037         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038         esac
2039         $as_echo "$ac_var='\''$ac_val'\''"
2040       done | sort
2041       echo
2042     fi
2043
2044     if test -s confdefs.h; then
2045       $as_echo "## ----------- ##
2046 ## confdefs.h. ##
2047 ## ----------- ##"
2048       echo
2049       cat confdefs.h
2050       echo
2051     fi
2052     test "$ac_signal" != 0 &&
2053       $as_echo "$as_me: caught signal $ac_signal"
2054     $as_echo "$as_me: exit $exit_status"
2055   } >&5
2056   rm -f core *.core core.conftest.* &&
2057     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2058     exit $exit_status
2059 ' 0
2060 for ac_signal in 1 2 13 15; do
2061   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2062 done
2063 ac_signal=0
2064
2065 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2066 rm -f -r conftest* confdefs.h
2067
2068 $as_echo "/* confdefs.h */" > confdefs.h
2069
2070 # Predefined preprocessor variables.
2071
2072 cat >>confdefs.h <<_ACEOF
2073 #define PACKAGE_NAME "$PACKAGE_NAME"
2074 _ACEOF
2075
2076 cat >>confdefs.h <<_ACEOF
2077 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2078 _ACEOF
2079
2080 cat >>confdefs.h <<_ACEOF
2081 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2082 _ACEOF
2083
2084 cat >>confdefs.h <<_ACEOF
2085 #define PACKAGE_STRING "$PACKAGE_STRING"
2086 _ACEOF
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_URL "$PACKAGE_URL"
2094 _ACEOF
2095
2096
2097 # Let the site file select an alternate cache file if it wants to.
2098 # Prefer an explicitly selected file to automatically selected ones.
2099 ac_site_file1=NONE
2100 ac_site_file2=NONE
2101 if test -n "$CONFIG_SITE"; then
2102   # We do not want a PATH search for config.site.
2103   case $CONFIG_SITE in #((
2104     -*)  ac_site_file1=./$CONFIG_SITE;;
2105     */*) ac_site_file1=$CONFIG_SITE;;
2106     *)   ac_site_file1=./$CONFIG_SITE;;
2107   esac
2108 elif test "x$prefix" != xNONE; then
2109   ac_site_file1=$prefix/share/config.site
2110   ac_site_file2=$prefix/etc/config.site
2111 else
2112   ac_site_file1=$ac_default_prefix/share/config.site
2113   ac_site_file2=$ac_default_prefix/etc/config.site
2114 fi
2115 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2116 do
2117   test "x$ac_site_file" = xNONE && continue
2118   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2119     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2120 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2121     sed 's/^/| /' "$ac_site_file" >&5
2122     . "$ac_site_file" \
2123       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2125 as_fn_error $? "failed to load site script $ac_site_file
2126 See \`config.log' for more details" "$LINENO" 5; }
2127   fi
2128 done
2129
2130 if test -r "$cache_file"; then
2131   # Some versions of bash will fail to source /dev/null (special files
2132   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2133   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2134     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2135 $as_echo "$as_me: loading cache $cache_file" >&6;}
2136     case $cache_file in
2137       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2138       *)                      . "./$cache_file";;
2139     esac
2140   fi
2141 else
2142   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2143 $as_echo "$as_me: creating cache $cache_file" >&6;}
2144   >$cache_file
2145 fi
2146
2147 gt_needs="$gt_needs "
2148 # Check that the precious variables saved in the cache have kept the same
2149 # value.
2150 ac_cache_corrupted=false
2151 for ac_var in $ac_precious_vars; do
2152   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2153   eval ac_new_set=\$ac_env_${ac_var}_set
2154   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2155   eval ac_new_val=\$ac_env_${ac_var}_value
2156   case $ac_old_set,$ac_new_set in
2157     set,)
2158       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2159 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2160       ac_cache_corrupted=: ;;
2161     ,set)
2162       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2164       ac_cache_corrupted=: ;;
2165     ,);;
2166     *)
2167       if test "x$ac_old_val" != "x$ac_new_val"; then
2168         # differences in whitespace do not lead to failure.
2169         ac_old_val_w=`echo x $ac_old_val`
2170         ac_new_val_w=`echo x $ac_new_val`
2171         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2172           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2173 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2174           ac_cache_corrupted=:
2175         else
2176           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2177 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2178           eval $ac_var=\$ac_old_val
2179         fi
2180         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2181 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2182         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2183 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2184       fi;;
2185   esac
2186   # Pass precious variables to config.status.
2187   if test "$ac_new_set" = set; then
2188     case $ac_new_val in
2189     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2190     *) ac_arg=$ac_var=$ac_new_val ;;
2191     esac
2192     case " $ac_configure_args " in
2193       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2194       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2195     esac
2196   fi
2197 done
2198 if $ac_cache_corrupted; then
2199   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2201   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2202 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2203   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2204 fi
2205 ## -------------------- ##
2206 ## Main body of script. ##
2207 ## -------------------- ##
2208
2209 ac_ext=c
2210 ac_cpp='$CPP $CPPFLAGS'
2211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2214
2215
2216
2217 ac_config_headers="$ac_config_headers config.h"
2218
2219
2220 ac_aux_dir=
2221 for ac_dir in build "$srcdir"/build; do
2222   if test -f "$ac_dir/install-sh"; then
2223     ac_aux_dir=$ac_dir
2224     ac_install_sh="$ac_aux_dir/install-sh -c"
2225     break
2226   elif test -f "$ac_dir/install.sh"; then
2227     ac_aux_dir=$ac_dir
2228     ac_install_sh="$ac_aux_dir/install.sh -c"
2229     break
2230   elif test -f "$ac_dir/shtool"; then
2231     ac_aux_dir=$ac_dir
2232     ac_install_sh="$ac_aux_dir/shtool install -c"
2233     break
2234   fi
2235 done
2236 if test -z "$ac_aux_dir"; then
2237   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build \"$srcdir\"/build" "$LINENO" 5
2238 fi
2239
2240 # These three variables are undocumented and unsupported,
2241 # and are intended to be withdrawn in a future Autoconf release.
2242 # They can cause serious problems if a builder's source tree is in a directory
2243 # whose full name contains unusual characters.
2244 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2245 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2246 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2247
2248
2249
2250
2251 am__api_version='1.11'
2252
2253 # Find a good install program.  We prefer a C program (faster),
2254 # so one script is as good as another.  But avoid the broken or
2255 # incompatible versions:
2256 # SysV /etc/install, /usr/sbin/install
2257 # SunOS /usr/etc/install
2258 # IRIX /sbin/install
2259 # AIX /bin/install
2260 # AmigaOS /C/install, which installs bootblocks on floppy discs
2261 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2262 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2263 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2264 # OS/2's system install, which has a completely different semantic
2265 # ./install, which can be erroneously created by make from ./install.sh.
2266 # Reject install programs that cannot install multiple files.
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2268 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2269 if test -z "$INSTALL"; then
2270 if ${ac_cv_path_install+:} false; then :
2271   $as_echo_n "(cached) " >&6
2272 else
2273   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2275 do
2276   IFS=$as_save_IFS
2277   test -z "$as_dir" && as_dir=.
2278     # Account for people who put trailing slashes in PATH elements.
2279 case $as_dir/ in #((
2280   ./ | .// | /[cC]/* | \
2281   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2282   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2283   /usr/ucb/* ) ;;
2284   *)
2285     # OSF1 and SCO ODT 3.0 have their own names for install.
2286     # Don't use installbsd from OSF since it installs stuff as root
2287     # by default.
2288     for ac_prog in ginstall scoinst install; do
2289       for ac_exec_ext in '' $ac_executable_extensions; do
2290         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2291           if test $ac_prog = install &&
2292             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2293             # AIX install.  It has an incompatible calling convention.
2294             :
2295           elif test $ac_prog = install &&
2296             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297             # program-specific install script used by HP pwplus--don't use.
2298             :
2299           else
2300             rm -rf conftest.one conftest.two conftest.dir
2301             echo one > conftest.one
2302             echo two > conftest.two
2303             mkdir conftest.dir
2304             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2305               test -s conftest.one && test -s conftest.two &&
2306               test -s conftest.dir/conftest.one &&
2307               test -s conftest.dir/conftest.two
2308             then
2309               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2310               break 3
2311             fi
2312           fi
2313         fi
2314       done
2315     done
2316     ;;
2317 esac
2318
2319   done
2320 IFS=$as_save_IFS
2321
2322 rm -rf conftest.one conftest.two conftest.dir
2323
2324 fi
2325   if test "${ac_cv_path_install+set}" = set; then
2326     INSTALL=$ac_cv_path_install
2327   else
2328     # As a last resort, use the slow shell script.  Don't cache a
2329     # value for INSTALL within a source directory, because that will
2330     # break other packages using the cache if that directory is
2331     # removed, or if the value is a relative name.
2332     INSTALL=$ac_install_sh
2333   fi
2334 fi
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2336 $as_echo "$INSTALL" >&6; }
2337
2338 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2339 # It thinks the first close brace ends the variable substitution.
2340 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2341
2342 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2343
2344 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2345
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2347 $as_echo_n "checking whether build environment is sane... " >&6; }
2348 # Just in case
2349 sleep 1
2350 echo timestamp > conftest.file
2351 # Reject unsafe characters in $srcdir or the absolute working directory
2352 # name.  Accept space and tab only in the latter.
2353 am_lf='
2354 '
2355 case `pwd` in
2356   *[\\\"\#\$\&\'\`$am_lf]*)
2357     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2358 esac
2359 case $srcdir in
2360   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2361     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2362 esac
2363
2364 # Do `set' in a subshell so we don't clobber the current shell's
2365 # arguments.  Must try -L first in case configure is actually a
2366 # symlink; some systems play weird games with the mod time of symlinks
2367 # (eg FreeBSD returns the mod time of the symlink's containing
2368 # directory).
2369 if (
2370    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2371    if test "$*" = "X"; then
2372       # -L didn't work.
2373       set X `ls -t "$srcdir/configure" conftest.file`
2374    fi
2375    rm -f conftest.file
2376    if test "$*" != "X $srcdir/configure conftest.file" \
2377       && test "$*" != "X conftest.file $srcdir/configure"; then
2378
2379       # If neither matched, then we have a broken ls.  This can happen
2380       # if, for instance, CONFIG_SHELL is bash and it inherits a
2381       # broken ls alias from the environment.  This has actually
2382       # happened.  Such a system could not be considered "sane".
2383       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2384 alias in your environment" "$LINENO" 5
2385    fi
2386
2387    test "$2" = conftest.file
2388    )
2389 then
2390    # Ok.
2391    :
2392 else
2393    as_fn_error $? "newly created file is older than distributed files!
2394 Check your system clock" "$LINENO" 5
2395 fi
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2397 $as_echo "yes" >&6; }
2398 test "$program_prefix" != NONE &&
2399   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2400 # Use a double $ so make ignores it.
2401 test "$program_suffix" != NONE &&
2402   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2403 # Double any \ or $.
2404 # By default was `s,x,x', remove it if useless.
2405 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2406 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2407
2408 # expand $ac_aux_dir to an absolute path
2409 am_aux_dir=`cd $ac_aux_dir && pwd`
2410
2411 if test x"${MISSING+set}" != xset; then
2412   case $am_aux_dir in
2413   *\ * | *\     *)
2414     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2415   *)
2416     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2417   esac
2418 fi
2419 # Use eval to expand $SHELL
2420 if eval "$MISSING --run true"; then
2421   am_missing_run="$MISSING --run "
2422 else
2423   am_missing_run=
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2425 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2426 fi
2427
2428 if test x"${install_sh}" != xset; then
2429   case $am_aux_dir in
2430   *\ * | *\     *)
2431     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2432   *)
2433     install_sh="\${SHELL} $am_aux_dir/install-sh"
2434   esac
2435 fi
2436
2437 # Installed binaries are usually stripped using `strip' when the user
2438 # run `make install-strip'.  However `strip' might not be the right
2439 # tool to use in cross-compilation environments, therefore Automake
2440 # will honor the `STRIP' environment variable to overrule this program.
2441 if test "$cross_compiling" != no; then
2442   if test -n "$ac_tool_prefix"; then
2443   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}strip; ac_word=$2
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2446 $as_echo_n "checking for $ac_word... " >&6; }
2447 if ${ac_cv_prog_STRIP+:} false; then :
2448   $as_echo_n "(cached) " >&6
2449 else
2450   if test -n "$STRIP"; then
2451   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2452 else
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454 for as_dir in $PATH
2455 do
2456   IFS=$as_save_IFS
2457   test -z "$as_dir" && as_dir=.
2458     for ac_exec_ext in '' $ac_executable_extensions; do
2459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2461     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2462     break 2
2463   fi
2464 done
2465   done
2466 IFS=$as_save_IFS
2467
2468 fi
2469 fi
2470 STRIP=$ac_cv_prog_STRIP
2471 if test -n "$STRIP"; then
2472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2473 $as_echo "$STRIP" >&6; }
2474 else
2475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2476 $as_echo "no" >&6; }
2477 fi
2478
2479
2480 fi
2481 if test -z "$ac_cv_prog_STRIP"; then
2482   ac_ct_STRIP=$STRIP
2483   # Extract the first word of "strip", so it can be a program name with args.
2484 set dummy strip; ac_word=$2
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2486 $as_echo_n "checking for $ac_word... " >&6; }
2487 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2488   $as_echo_n "(cached) " >&6
2489 else
2490   if test -n "$ac_ct_STRIP"; then
2491   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2492 else
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2494 for as_dir in $PATH
2495 do
2496   IFS=$as_save_IFS
2497   test -z "$as_dir" && as_dir=.
2498     for ac_exec_ext in '' $ac_executable_extensions; do
2499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500     ac_cv_prog_ac_ct_STRIP="strip"
2501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2502     break 2
2503   fi
2504 done
2505   done
2506 IFS=$as_save_IFS
2507
2508 fi
2509 fi
2510 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2511 if test -n "$ac_ct_STRIP"; then
2512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2513 $as_echo "$ac_ct_STRIP" >&6; }
2514 else
2515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2516 $as_echo "no" >&6; }
2517 fi
2518
2519   if test "x$ac_ct_STRIP" = x; then
2520     STRIP=":"
2521   else
2522     case $cross_compiling:$ac_tool_warned in
2523 yes:)
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2526 ac_tool_warned=yes ;;
2527 esac
2528     STRIP=$ac_ct_STRIP
2529   fi
2530 else
2531   STRIP="$ac_cv_prog_STRIP"
2532 fi
2533
2534 fi
2535 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2536
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2538 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2539 if test -z "$MKDIR_P"; then
2540   if ${ac_cv_path_mkdir+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548     for ac_prog in mkdir gmkdir; do
2549          for ac_exec_ext in '' $ac_executable_extensions; do
2550            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2551            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2552              'mkdir (GNU coreutils) '* | \
2553              'mkdir (coreutils) '* | \
2554              'mkdir (fileutils) '4.1*)
2555                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2556                break 3;;
2557            esac
2558          done
2559        done
2560   done
2561 IFS=$as_save_IFS
2562
2563 fi
2564
2565   test -d ./--version && rmdir ./--version
2566   if test "${ac_cv_path_mkdir+set}" = set; then
2567     MKDIR_P="$ac_cv_path_mkdir -p"
2568   else
2569     # As a last resort, use the slow shell script.  Don't cache a
2570     # value for MKDIR_P within a source directory, because that will
2571     # break other packages using the cache if that directory is
2572     # removed, or if the value is a relative name.
2573     MKDIR_P="$ac_install_sh -d"
2574   fi
2575 fi
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2577 $as_echo "$MKDIR_P" >&6; }
2578
2579 mkdir_p="$MKDIR_P"
2580 case $mkdir_p in
2581   [\\/$]* | ?:[\\/]*) ;;
2582   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2583 esac
2584
2585 for ac_prog in gawk mawk nawk awk
2586 do
2587   # Extract the first word of "$ac_prog", so it can be a program name with args.
2588 set dummy $ac_prog; ac_word=$2
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if ${ac_cv_prog_AWK+:} false; then :
2592   $as_echo_n "(cached) " >&6
2593 else
2594   if test -n "$AWK"; then
2595   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602     for ac_exec_ext in '' $ac_executable_extensions; do
2603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604     ac_cv_prog_AWK="$ac_prog"
2605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2606     break 2
2607   fi
2608 done
2609   done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 AWK=$ac_cv_prog_AWK
2615 if test -n "$AWK"; then
2616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2617 $as_echo "$AWK" >&6; }
2618 else
2619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623
2624   test -n "$AWK" && break
2625 done
2626
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2628 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2629 set x ${MAKE-make}
2630 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2631 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2632   $as_echo_n "(cached) " >&6
2633 else
2634   cat >conftest.make <<\_ACEOF
2635 SHELL = /bin/sh
2636 all:
2637         @echo '@@@%%%=$(MAKE)=@@@%%%'
2638 _ACEOF
2639 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2640 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2641   *@@@%%%=?*=@@@%%%*)
2642     eval ac_cv_prog_make_${ac_make}_set=yes;;
2643   *)
2644     eval ac_cv_prog_make_${ac_make}_set=no;;
2645 esac
2646 rm -f conftest.make
2647 fi
2648 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650 $as_echo "yes" >&6; }
2651   SET_MAKE=
2652 else
2653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2654 $as_echo "no" >&6; }
2655   SET_MAKE="MAKE=${MAKE-make}"
2656 fi
2657
2658 rm -rf .tst 2>/dev/null
2659 mkdir .tst 2>/dev/null
2660 if test -d .tst; then
2661   am__leading_dot=.
2662 else
2663   am__leading_dot=_
2664 fi
2665 rmdir .tst 2>/dev/null
2666
2667 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2668   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2669   # is not polluted with repeated "-I."
2670   am__isrc=' -I$(srcdir)'
2671   # test to see if srcdir already configured
2672   if test -f $srcdir/config.status; then
2673     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2674   fi
2675 fi
2676
2677 # test whether we have cygpath
2678 if test -z "$CYGPATH_W"; then
2679   if (cygpath --version) >/dev/null 2>/dev/null; then
2680     CYGPATH_W='cygpath -w'
2681   else
2682     CYGPATH_W=echo
2683   fi
2684 fi
2685
2686
2687 # Define the identity of the package.
2688  PACKAGE='json-glib'
2689  VERSION='0.14.2'
2690
2691
2692 # Some tools Automake needs.
2693
2694 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2695
2696
2697 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2698
2699
2700 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2701
2702
2703 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2704
2705
2706 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2707
2708 # We need awk for the "check" target.  The system "awk" is bad on
2709 # some platforms.
2710 # Always define AMTAR for backward compatibility.
2711
2712 AMTAR=${AMTAR-"${am_missing_run}tar"}
2713
2714
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
2716 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
2717 # Loop over all known methods to create a tar archive until one works.
2718 _am_tools='gnutar plaintar pax cpio none'
2719 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
2720 # Do not fold the above two line into one, because Tru64 sh and
2721 # Solaris sh will not grok spaces in the rhs of `-'.
2722 for _am_tool in $_am_tools
2723 do
2724   case $_am_tool in
2725   gnutar)
2726     for _am_tar in tar gnutar gtar;
2727     do
2728       { echo "$as_me:$LINENO: $_am_tar --version" >&5
2729    ($_am_tar --version) >&5 2>&5
2730    ac_status=$?
2731    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732    (exit $ac_status); } && break
2733     done
2734     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
2735     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
2736     am__untar="$_am_tar -xf -"
2737     ;;
2738   plaintar)
2739     # Must skip GNU tar: if it does not support --format= it doesn't create
2740     # ustar tarball either.
2741     (tar --version) >/dev/null 2>&1 && continue
2742     am__tar='tar chf - "$$tardir"'
2743     am__tar_='tar chf - "$tardir"'
2744     am__untar='tar xf -'
2745     ;;
2746   pax)
2747     am__tar='pax -L -x ustar -w "$$tardir"'
2748     am__tar_='pax -L -x ustar -w "$tardir"'
2749     am__untar='pax -r'
2750     ;;
2751   cpio)
2752     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
2753     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
2754     am__untar='cpio -i -H ustar -d'
2755     ;;
2756   none)
2757     am__tar=false
2758     am__tar_=false
2759     am__untar=false
2760     ;;
2761   esac
2762
2763   # If the value was cached, stop now.  We just wanted to have am__tar
2764   # and am__untar set.
2765   test -n "${am_cv_prog_tar_ustar}" && break
2766
2767   # tar/untar a dummy directory, and stop if the command works
2768   rm -rf conftest.dir
2769   mkdir conftest.dir
2770   echo GrepMe > conftest.dir/file
2771   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
2772    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
2773    ac_status=$?
2774    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2775    (exit $ac_status); }
2776   rm -rf conftest.dir
2777   if test -s conftest.tar; then
2778     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
2779    ($am__untar <conftest.tar) >&5 2>&5
2780    ac_status=$?
2781    echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782    (exit $ac_status); }
2783     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
2784   fi
2785 done
2786 rm -rf conftest.dir
2787
2788 if ${am_cv_prog_tar_ustar+:} false; then :
2789   $as_echo_n "(cached) " >&6
2790 else
2791   am_cv_prog_tar_ustar=$_am_tool
2792 fi
2793
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
2795 $as_echo "$am_cv_prog_tar_ustar" >&6; }
2796
2797
2798
2799
2800
2801
2802 # Check whether --enable-silent-rules was given.
2803 if test "${enable_silent_rules+set}" = set; then :
2804   enableval=$enable_silent_rules;
2805 fi
2806
2807 case $enable_silent_rules in
2808 yes) AM_DEFAULT_VERBOSITY=0;;
2809 no)  AM_DEFAULT_VERBOSITY=1;;
2810 *)   AM_DEFAULT_VERBOSITY=0;;
2811 esac
2812 AM_BACKSLASH='\'
2813
2814 DEPDIR="${am__leading_dot}deps"
2815
2816 ac_config_commands="$ac_config_commands depfiles"
2817
2818
2819 am_make=${MAKE-make}
2820 cat > confinc << 'END'
2821 am__doit:
2822         @echo this is the am__doit target
2823 .PHONY: am__doit
2824 END
2825 # If we don't find an include directive, just comment out the code.
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2827 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2828 am__include="#"
2829 am__quote=
2830 _am_result=none
2831 # First try GNU make style include.
2832 echo "include confinc" > confmf
2833 # Ignore all kinds of additional output from `make'.
2834 case `$am_make -s -f confmf 2> /dev/null` in #(
2835 *the\ am__doit\ target*)
2836   am__include=include
2837   am__quote=
2838   _am_result=GNU
2839   ;;
2840 esac
2841 # Now try BSD make style include.
2842 if test "$am__include" = "#"; then
2843    echo '.include "confinc"' > confmf
2844    case `$am_make -s -f confmf 2> /dev/null` in #(
2845    *the\ am__doit\ target*)
2846      am__include=.include
2847      am__quote="\""
2848      _am_result=BSD
2849      ;;
2850    esac
2851 fi
2852
2853
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2855 $as_echo "$_am_result" >&6; }
2856 rm -f confinc confmf
2857
2858 # Check whether --enable-dependency-tracking was given.
2859 if test "${enable_dependency_tracking+set}" = set; then :
2860   enableval=$enable_dependency_tracking;
2861 fi
2862
2863 if test "x$enable_dependency_tracking" != xno; then
2864   am_depcomp="$ac_aux_dir/depcomp"
2865   AMDEPBACKSLASH='\'
2866 fi
2867  if test "x$enable_dependency_tracking" != xno; then
2868   AMDEP_TRUE=
2869   AMDEP_FALSE='#'
2870 else
2871   AMDEP_TRUE='#'
2872   AMDEP_FALSE=
2873 fi
2874
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if ${ac_cv_prog_CC+:} false; then :
2887   $as_echo_n "(cached) " >&6
2888 else
2889   if test -n "$CC"; then
2890   ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897     for ac_exec_ext in '' $ac_executable_extensions; do
2898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904   done
2905 IFS=$as_save_IFS
2906
2907 fi
2908 fi
2909 CC=$ac_cv_prog_CC
2910 if test -n "$CC"; then
2911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2912 $as_echo "$CC" >&6; }
2913 else
2914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2916 fi
2917
2918
2919 fi
2920 if test -z "$ac_cv_prog_CC"; then
2921   ac_ct_CC=$CC
2922   # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2927   $as_echo_n "(cached) " >&6
2928 else
2929   if test -n "$ac_ct_CC"; then
2930   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2934 do
2935   IFS=$as_save_IFS
2936   test -z "$as_dir" && as_dir=.
2937     for ac_exec_ext in '' $ac_executable_extensions; do
2938   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939     ac_cv_prog_ac_ct_CC="gcc"
2940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941     break 2
2942   fi
2943 done
2944   done
2945 IFS=$as_save_IFS
2946
2947 fi
2948 fi
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952 $as_echo "$ac_ct_CC" >&6; }
2953 else
2954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2956 fi
2957
2958   if test "x$ac_ct_CC" = x; then
2959     CC=""
2960   else
2961     case $cross_compiling:$ac_tool_warned in
2962 yes:)
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965 ac_tool_warned=yes ;;
2966 esac
2967     CC=$ac_ct_CC
2968   fi
2969 else
2970   CC="$ac_cv_prog_CC"
2971 fi
2972
2973 if test -z "$CC"; then
2974           if test -n "$ac_tool_prefix"; then
2975     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2976 set dummy ${ac_tool_prefix}cc; ac_word=$2
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if ${ac_cv_prog_CC+:} false; then :
2980   $as_echo_n "(cached) " >&6
2981 else
2982   if test -n "$CC"; then
2983   ac_cv_prog_CC="$CC" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990     for ac_exec_ext in '' $ac_executable_extensions; do
2991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992     ac_cv_prog_CC="${ac_tool_prefix}cc"
2993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997   done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 CC=$ac_cv_prog_CC
3003 if test -n "$CC"; then
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3005 $as_echo "$CC" >&6; }
3006 else
3007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011
3012   fi
3013 fi
3014 if test -z "$CC"; then
3015   # Extract the first word of "cc", so it can be a program name with args.
3016 set dummy cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if ${ac_cv_prog_CC+:} false; then :
3020   $as_echo_n "(cached) " >&6
3021 else
3022   if test -n "$CC"; then
3023   ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025   ac_prog_rejected=no
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027 for as_dir in $PATH
3028 do
3029   IFS=$as_save_IFS
3030   test -z "$as_dir" && as_dir=.
3031     for ac_exec_ext in '' $ac_executable_extensions; do
3032   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3034        ac_prog_rejected=yes
3035        continue
3036      fi
3037     ac_cv_prog_CC="cc"
3038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039     break 2
3040   fi
3041 done
3042   done
3043 IFS=$as_save_IFS
3044
3045 if test $ac_prog_rejected = yes; then
3046   # We found a bogon in the path, so make sure we never use it.
3047   set dummy $ac_cv_prog_CC
3048   shift
3049   if test $# != 0; then
3050     # We chose a different compiler from the bogus one.
3051     # However, it has the same basename, so the bogon will be chosen
3052     # first if we set CC to just the basename; use the full file name.
3053     shift
3054     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3055   fi
3056 fi
3057 fi
3058 fi
3059 CC=$ac_cv_prog_CC
3060 if test -n "$CC"; then
3061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3062 $as_echo "$CC" >&6; }
3063 else
3064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065 $as_echo "no" >&6; }
3066 fi
3067
3068
3069 fi
3070 if test -z "$CC"; then
3071   if test -n "$ac_tool_prefix"; then
3072   for ac_prog in cl.exe
3073   do
3074     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3075 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3091     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111     test -n "$CC" && break
3112   done
3113 fi
3114 if test -z "$CC"; then
3115   ac_ct_CC=$CC
3116   for ac_prog in cl.exe
3117 do
3118   # Extract the first word of "$ac_prog", so it can be a program name with args.
3119 set dummy $ac_prog; ac_word=$2
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3121 $as_echo_n "checking for $ac_word... " >&6; }
3122 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3123   $as_echo_n "(cached) " >&6
3124 else
3125   if test -n "$ac_ct_CC"; then
3126   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3127 else
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 for as_dir in $PATH
3130 do
3131   IFS=$as_save_IFS
3132   test -z "$as_dir" && as_dir=.
3133     for ac_exec_ext in '' $ac_executable_extensions; do
3134   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135     ac_cv_prog_ac_ct_CC="$ac_prog"
3136     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137     break 2
3138   fi
3139 done
3140   done
3141 IFS=$as_save_IFS
3142
3143 fi
3144 fi
3145 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3146 if test -n "$ac_ct_CC"; then
3147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3148 $as_echo "$ac_ct_CC" >&6; }
3149 else
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3151 $as_echo "no" >&6; }
3152 fi
3153
3154
3155   test -n "$ac_ct_CC" && break
3156 done
3157
3158   if test "x$ac_ct_CC" = x; then
3159     CC=""
3160   else
3161     case $cross_compiling:$ac_tool_warned in
3162 yes:)
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3164 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3165 ac_tool_warned=yes ;;
3166 esac
3167     CC=$ac_ct_CC
3168   fi
3169 fi
3170
3171 fi
3172
3173
3174 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3176 as_fn_error $? "no acceptable C compiler found in \$PATH
3177 See \`config.log' for more details" "$LINENO" 5; }
3178
3179 # Provide some information about the compiler.
3180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3181 set X $ac_compile
3182 ac_compiler=$2
3183 for ac_option in --version -v -V -qversion; do
3184   { { ac_try="$ac_compiler $ac_option >&5"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190 $as_echo "$ac_try_echo"; } >&5
3191   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3192   ac_status=$?
3193   if test -s conftest.err; then
3194     sed '10a\
3195 ... rest of stderr output deleted ...
3196          10q' conftest.err >conftest.er1
3197     cat conftest.er1 >&5
3198   fi
3199   rm -f conftest.er1 conftest.err
3200   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3201   test $ac_status = 0; }
3202 done
3203
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3205 /* end confdefs.h.  */
3206
3207 int
3208 main ()
3209 {
3210
3211   ;
3212   return 0;
3213 }
3214 _ACEOF
3215 ac_clean_files_save=$ac_clean_files
3216 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3217 # Try to create an executable without -o first, disregard a.out.
3218 # It will help us diagnose broken compilers, and finding out an intuition
3219 # of exeext.
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3221 $as_echo_n "checking whether the C compiler works... " >&6; }
3222 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3223
3224 # The possible output files:
3225 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3226
3227 ac_rmfiles=
3228 for ac_file in $ac_files
3229 do
3230   case $ac_file in
3231     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3232     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3233   esac
3234 done
3235 rm -f $ac_rmfiles
3236
3237 if { { ac_try="$ac_link_default"
3238 case "(($ac_try" in
3239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240   *) ac_try_echo=$ac_try;;
3241 esac
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244   (eval "$ac_link_default") 2>&5
3245   ac_status=$?
3246   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247   test $ac_status = 0; }; then :
3248   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3249 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3250 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3251 # so that the user can short-circuit this test for compilers unknown to
3252 # Autoconf.
3253 for ac_file in $ac_files ''
3254 do
3255   test -f "$ac_file" || continue
3256   case $ac_file in
3257     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3258         ;;
3259     [ab].out )
3260         # We found the default executable, but exeext='' is most
3261         # certainly right.
3262         break;;
3263     *.* )
3264         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3265         then :; else
3266            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3267         fi
3268         # We set ac_cv_exeext here because the later test for it is not
3269         # safe: cross compilers may not add the suffix if given an `-o'
3270         # argument, so we may need to know it at that point already.
3271         # Even if this section looks crufty: it has the advantage of
3272         # actually working.
3273         break;;
3274     * )
3275         break;;
3276   esac
3277 done
3278 test "$ac_cv_exeext" = no && ac_cv_exeext=
3279
3280 else
3281   ac_file=''
3282 fi
3283 if test -z "$ac_file"; then :
3284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3285 $as_echo "no" >&6; }
3286 $as_echo "$as_me: failed program was:" >&5
3287 sed 's/^/| /' conftest.$ac_ext >&5
3288
3289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3291 as_fn_error 77 "C compiler cannot create executables
3292 See \`config.log' for more details" "$LINENO" 5; }
3293 else
3294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3295 $as_echo "yes" >&6; }
3296 fi
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3298 $as_echo_n "checking for C compiler default output file name... " >&6; }
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3300 $as_echo "$ac_file" >&6; }
3301 ac_exeext=$ac_cv_exeext
3302
3303 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3304 ac_clean_files=$ac_clean_files_save
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3306 $as_echo_n "checking for suffix of executables... " >&6; }
3307 if { { ac_try="$ac_link"
3308 case "(($ac_try" in
3309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3310   *) ac_try_echo=$ac_try;;
3311 esac
3312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3313 $as_echo "$ac_try_echo"; } >&5
3314   (eval "$ac_link") 2>&5
3315   ac_status=$?
3316   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3317   test $ac_status = 0; }; then :
3318   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3319 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3320 # work properly (i.e., refer to `conftest.exe'), while it won't with
3321 # `rm'.
3322 for ac_file in conftest.exe conftest conftest.*; do
3323   test -f "$ac_file" || continue
3324   case $ac_file in
3325     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3326     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3327           break;;
3328     * ) break;;
3329   esac
3330 done
3331 else
3332   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3334 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3335 See \`config.log' for more details" "$LINENO" 5; }
3336 fi
3337 rm -f conftest conftest$ac_cv_exeext
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3339 $as_echo "$ac_cv_exeext" >&6; }
3340
3341 rm -f conftest.$ac_ext
3342 EXEEXT=$ac_cv_exeext
3343 ac_exeext=$EXEEXT
3344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3345 /* end confdefs.h.  */
3346 #include <stdio.h>
3347 int
3348 main ()
3349 {
3350 FILE *f = fopen ("conftest.out", "w");
3351  return ferror (f) || fclose (f) != 0;
3352
3353   ;
3354   return 0;
3355 }
3356 _ACEOF
3357 ac_clean_files="$ac_clean_files conftest.out"
3358 # Check that the compiler produces executables we can run.  If not, either
3359 # the compiler is broken, or we cross compile.
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3361 $as_echo_n "checking whether we are cross compiling... " >&6; }
3362 if test "$cross_compiling" != yes; then
3363   { { ac_try="$ac_link"
3364 case "(($ac_try" in
3365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366   *) ac_try_echo=$ac_try;;
3367 esac
3368 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3369 $as_echo "$ac_try_echo"; } >&5
3370   (eval "$ac_link") 2>&5
3371   ac_status=$?
3372   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3373   test $ac_status = 0; }
3374   if { ac_try='./conftest$ac_cv_exeext'
3375   { { case "(($ac_try" in
3376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377   *) ac_try_echo=$ac_try;;
3378 esac
3379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3380 $as_echo "$ac_try_echo"; } >&5
3381   (eval "$ac_try") 2>&5
3382   ac_status=$?
3383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3384   test $ac_status = 0; }; }; then
3385     cross_compiling=no
3386   else
3387     if test "$cross_compiling" = maybe; then
3388         cross_compiling=yes
3389     else
3390         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392 as_fn_error $? "cannot run C compiled programs.
3393 If you meant to cross compile, use \`--host'.
3394 See \`config.log' for more details" "$LINENO" 5; }
3395     fi
3396   fi
3397 fi
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3399 $as_echo "$cross_compiling" >&6; }
3400
3401 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3402 ac_clean_files=$ac_clean_files_save
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3404 $as_echo_n "checking for suffix of object files... " >&6; }
3405 if ${ac_cv_objext+:} false; then :
3406   $as_echo_n "(cached) " >&6
3407 else
3408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h.  */
3410
3411 int
3412 main ()
3413 {
3414
3415   ;
3416   return 0;
3417 }
3418 _ACEOF
3419 rm -f conftest.o conftest.obj
3420 if { { ac_try="$ac_compile"
3421 case "(($ac_try" in
3422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3423   *) ac_try_echo=$ac_try;;
3424 esac
3425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3426 $as_echo "$ac_try_echo"; } >&5
3427   (eval "$ac_compile") 2>&5
3428   ac_status=$?
3429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3430   test $ac_status = 0; }; then :
3431   for ac_file in conftest.o conftest.obj conftest.*; do
3432   test -f "$ac_file" || continue;
3433   case $ac_file in
3434     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3435     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3436        break;;
3437   esac
3438 done
3439 else
3440   $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot compute suffix of object files: cannot compile
3446 See \`config.log' for more details" "$LINENO" 5; }
3447 fi
3448 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3449 fi
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3451 $as_echo "$ac_cv_objext" >&6; }
3452 OBJEXT=$ac_cv_objext
3453 ac_objext=$OBJEXT
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3455 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3456 if ${ac_cv_c_compiler_gnu+:} false; then :
3457   $as_echo_n "(cached) " >&6
3458 else
3459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h.  */
3461
3462 int
3463 main ()
3464 {
3465 #ifndef __GNUC__
3466        choke me
3467 #endif
3468
3469   ;
3470   return 0;
3471 }
3472 _ACEOF
3473 if ac_fn_c_try_compile "$LINENO"; then :
3474   ac_compiler_gnu=yes
3475 else
3476   ac_compiler_gnu=no
3477 fi
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3480
3481 fi
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3483 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3484 if test $ac_compiler_gnu = yes; then
3485   GCC=yes
3486 else
3487   GCC=
3488 fi
3489 ac_test_CFLAGS=${CFLAGS+set}
3490 ac_save_CFLAGS=$CFLAGS
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3492 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3493 if ${ac_cv_prog_cc_g+:} false; then :
3494   $as_echo_n "(cached) " >&6
3495 else
3496   ac_save_c_werror_flag=$ac_c_werror_flag
3497    ac_c_werror_flag=yes
3498    ac_cv_prog_cc_g=no
3499    CFLAGS="-g"
3500    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3501 /* end confdefs.h.  */
3502
3503 int
3504 main ()
3505 {
3506
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 if ac_fn_c_try_compile "$LINENO"; then :
3512   ac_cv_prog_cc_g=yes
3513 else
3514   CFLAGS=""
3515       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h.  */
3517
3518 int
3519 main ()
3520 {
3521
3522   ;
3523   return 0;
3524 }
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527
3528 else
3529   ac_c_werror_flag=$ac_save_c_werror_flag
3530          CFLAGS="-g"
3531          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532 /* end confdefs.h.  */
3533
3534 int
3535 main ()
3536 {
3537
3538   ;
3539   return 0;
3540 }
3541 _ACEOF
3542 if ac_fn_c_try_compile "$LINENO"; then :
3543   ac_cv_prog_cc_g=yes
3544 fi
3545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 fi
3547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3548 fi
3549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3550    ac_c_werror_flag=$ac_save_c_werror_flag
3551 fi
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3553 $as_echo "$ac_cv_prog_cc_g" >&6; }
3554 if test "$ac_test_CFLAGS" = set; then
3555   CFLAGS=$ac_save_CFLAGS
3556 elif test $ac_cv_prog_cc_g = yes; then
3557   if test "$GCC" = yes; then
3558     CFLAGS="-g -O2"
3559   else
3560     CFLAGS="-g"
3561   fi
3562 else
3563   if test "$GCC" = yes; then
3564     CFLAGS="-O2"
3565   else
3566     CFLAGS=
3567   fi
3568 fi
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3570 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3571 if ${ac_cv_prog_cc_c89+:} false; then :
3572   $as_echo_n "(cached) " >&6
3573 else
3574   ac_cv_prog_cc_c89=no
3575 ac_save_CC=$CC
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h.  */
3578 #include <stdarg.h>
3579 #include <stdio.h>
3580 #include <sys/types.h>
3581 #include <sys/stat.h>
3582 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3583 struct buf { int x; };
3584 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3585 static char *e (p, i)
3586      char **p;
3587      int i;
3588 {
3589   return p[i];
3590 }
3591 static char *f (char * (*g) (char **, int), char **p, ...)
3592 {
3593   char *s;
3594   va_list v;
3595   va_start (v,p);
3596   s = g (p, va_arg (v,int));
3597   va_end (v);
3598   return s;
3599 }
3600
3601 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3602    function prototypes and stuff, but not '\xHH' hex character constants.
3603    These don't provoke an error unfortunately, instead are silently treated
3604    as 'x'.  The following induces an error, until -std is added to get
3605    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3606    array size at least.  It's necessary to write '\x00'==0 to get something
3607    that's true only with -std.  */
3608 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3609
3610 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3611    inside strings and character constants.  */
3612 #define FOO(x) 'x'
3613 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3614
3615 int test (int i, double x);
3616 struct s1 {int (*f) (int a);};
3617 struct s2 {int (*f) (double a);};
3618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3619 int argc;
3620 char **argv;
3621 int
3622 main ()
3623 {
3624 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3625   ;
3626   return 0;
3627 }
3628 _ACEOF
3629 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3630         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3631 do
3632   CC="$ac_save_CC $ac_arg"
3633   if ac_fn_c_try_compile "$LINENO"; then :
3634   ac_cv_prog_cc_c89=$ac_arg
3635 fi
3636 rm -f core conftest.err conftest.$ac_objext
3637   test "x$ac_cv_prog_cc_c89" != "xno" && break
3638 done
3639 rm -f conftest.$ac_ext
3640 CC=$ac_save_CC
3641
3642 fi
3643 # AC_CACHE_VAL
3644 case "x$ac_cv_prog_cc_c89" in
3645   x)
3646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3647 $as_echo "none needed" >&6; } ;;
3648   xno)
3649     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3650 $as_echo "unsupported" >&6; } ;;
3651   *)
3652     CC="$CC $ac_cv_prog_cc_c89"
3653     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3654 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3655 esac
3656 if test "x$ac_cv_prog_cc_c89" != xno; then :
3657
3658 fi
3659
3660 ac_ext=c
3661 ac_cpp='$CPP $CPPFLAGS'
3662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3665
3666 depcc="$CC"   am_compiler_list=
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3669 $as_echo_n "checking dependency style of $depcc... " >&6; }
3670 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3671   $as_echo_n "(cached) " >&6
3672 else
3673   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3674   # We make a subdir and do the tests there.  Otherwise we can end up
3675   # making bogus files that we don't know about and never remove.  For
3676   # instance it was reported that on HP-UX the gcc test will end up
3677   # making a dummy file named `D' -- because `-MD' means `put the output
3678   # in D'.
3679   mkdir conftest.dir
3680   # Copy depcomp to subdir because otherwise we won't find it if we're
3681   # using a relative directory.
3682   cp "$am_depcomp" conftest.dir
3683   cd conftest.dir
3684   # We will build objects and dependencies in a subdirectory because
3685   # it helps to detect inapplicable dependency modes.  For instance
3686   # both Tru64's cc and ICC support -MD to output dependencies as a
3687   # side effect of compilation, but ICC will put the dependencies in
3688   # the current directory while Tru64 will put them in the object
3689   # directory.
3690   mkdir sub
3691
3692   am_cv_CC_dependencies_compiler_type=none
3693   if test "$am_compiler_list" = ""; then
3694      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3695   fi
3696   am__universal=false
3697   case " $depcc " in #(
3698      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3699      esac
3700
3701   for depmode in $am_compiler_list; do
3702     # Setup a source with many dependencies, because some compilers
3703     # like to wrap large dependency lists on column 80 (with \), and
3704     # we should not choose a depcomp mode which is confused by this.
3705     #
3706     # We need to recreate these files for each test, as the compiler may
3707     # overwrite some of them when testing with obscure command lines.
3708     # This happens at least with the AIX C compiler.
3709     : > sub/conftest.c
3710     for i in 1 2 3 4 5 6; do
3711       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3712       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3713       # Solaris 8's {/usr,}/bin/sh.
3714       touch sub/conftst$i.h
3715     done
3716     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3717
3718     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3719     # mode.  It turns out that the SunPro C++ compiler does not properly
3720     # handle `-M -o', and we need to detect this.  Also, some Intel
3721     # versions had trouble with output in subdirs
3722     am__obj=sub/conftest.${OBJEXT-o}
3723     am__minus_obj="-o $am__obj"
3724     case $depmode in
3725     gcc)
3726       # This depmode causes a compiler race in universal mode.
3727       test "$am__universal" = false || continue
3728       ;;
3729     nosideeffect)
3730       # after this tag, mechanisms are not by side-effect, so they'll
3731       # only be used when explicitly requested
3732       if test "x$enable_dependency_tracking" = xyes; then
3733         continue
3734       else
3735         break
3736       fi
3737       ;;
3738     msvisualcpp | msvcmsys)
3739       # This compiler won't grok `-c -o', but also, the minuso test has
3740       # not run yet.  These depmodes are late enough in the game, and
3741       # so weak that their functioning should not be impacted.
3742       am__obj=conftest.${OBJEXT-o}
3743       am__minus_obj=
3744       ;;
3745     none) break ;;
3746     esac
3747     if depmode=$depmode \
3748        source=sub/conftest.c object=$am__obj \
3749        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3750        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3751          >/dev/null 2>conftest.err &&
3752        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3753        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3754        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3755        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3756       # icc doesn't choke on unknown options, it will just issue warnings
3757       # or remarks (even with -Werror).  So we grep stderr for any message
3758       # that says an option was ignored or not supported.
3759       # When given -MP, icc 7.0 and 7.1 complain thusly:
3760       #   icc: Command line warning: ignoring option '-M'; no argument required
3761       # The diagnosis changed in icc 8.0:
3762       #   icc: Command line remark: option '-MP' not supported
3763       if (grep 'ignoring option' conftest.err ||
3764           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3765         am_cv_CC_dependencies_compiler_type=$depmode
3766         break
3767       fi
3768     fi
3769   done
3770
3771   cd ..
3772   rm -rf conftest.dir
3773 else
3774   am_cv_CC_dependencies_compiler_type=none
3775 fi
3776
3777 fi
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3779 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3780 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3781
3782  if
3783   test "x$enable_dependency_tracking" != xno \
3784   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3785   am__fastdepCC_TRUE=
3786   am__fastdepCC_FALSE='#'
3787 else
3788   am__fastdepCC_TRUE='#'
3789   am__fastdepCC_FALSE=
3790 fi
3791
3792
3793
3794 # Check whether --enable-glibtest was given.
3795 if test "${enable_glibtest+set}" = set; then :
3796   enableval=$enable_glibtest;
3797 else
3798   enable_glibtest=yes
3799 fi
3800
3801
3802   pkg_config_args=glib-2.0
3803   for module in .
3804   do
3805       case "$module" in
3806          gmodule)
3807              pkg_config_args="$pkg_config_args gmodule-2.0"
3808          ;;
3809          gmodule-no-export)
3810              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
3811          ;;
3812          gobject)
3813              pkg_config_args="$pkg_config_args gobject-2.0"
3814          ;;
3815          gthread)
3816              pkg_config_args="$pkg_config_args gthread-2.0"
3817          ;;
3818          gio*)
3819              pkg_config_args="$pkg_config_args $module-2.0"
3820          ;;
3821       esac
3822   done
3823
3824
3825
3826
3827
3828
3829
3830 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3831         if test -n "$ac_tool_prefix"; then
3832   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3833 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3837   $as_echo_n "(cached) " >&6
3838 else
3839   case $PKG_CONFIG in
3840   [\\/]* | ?:[\\/]*)
3841   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3842   ;;
3843   *)
3844   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   test -z "$as_dir" && as_dir=.
3849     for ac_exec_ext in '' $ac_executable_extensions; do
3850   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853     break 2
3854   fi
3855 done
3856   done
3857 IFS=$as_save_IFS
3858
3859   ;;
3860 esac
3861 fi
3862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3863 if test -n "$PKG_CONFIG"; then
3864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3865 $as_echo "$PKG_CONFIG" >&6; }
3866 else
3867   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 $as_echo "no" >&6; }
3869 fi
3870
3871
3872 fi
3873 if test -z "$ac_cv_path_PKG_CONFIG"; then
3874   ac_pt_PKG_CONFIG=$PKG_CONFIG
3875   # Extract the first word of "pkg-config", so it can be a program name with args.
3876 set dummy pkg-config; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3880   $as_echo_n "(cached) " >&6
3881 else
3882   case $ac_pt_PKG_CONFIG in
3883   [\\/]* | ?:[\\/]*)
3884   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3885   ;;
3886   *)
3887   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 for as_dir in $PATH
3889 do
3890   IFS=$as_save_IFS
3891   test -z "$as_dir" && as_dir=.
3892     for ac_exec_ext in '' $ac_executable_extensions; do
3893   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3894     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3895     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896     break 2
3897   fi
3898 done
3899   done
3900 IFS=$as_save_IFS
3901
3902   ;;
3903 esac
3904 fi
3905 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3906 if test -n "$ac_pt_PKG_CONFIG"; then
3907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3908 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3909 else
3910   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3912 fi
3913
3914   if test "x$ac_pt_PKG_CONFIG" = x; then
3915     PKG_CONFIG=""
3916   else
3917     case $cross_compiling:$ac_tool_warned in
3918 yes:)
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3921 ac_tool_warned=yes ;;
3922 esac
3923     PKG_CONFIG=$ac_pt_PKG_CONFIG
3924   fi
3925 else
3926   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3927 fi
3928
3929 fi
3930 if test -n "$PKG_CONFIG"; then
3931         _pkg_min_version=0.16
3932         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3933 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3934         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3935                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3936 $as_echo "yes" >&6; }
3937         else
3938                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939 $as_echo "no" >&6; }
3940                 PKG_CONFIG=""
3941         fi
3942 fi
3943
3944   no_glib=""
3945
3946   if test "x$PKG_CONFIG" = x ; then
3947     no_glib=yes
3948     PKG_CONFIG=no
3949   fi
3950
3951   min_glib_version=2.0.0
3952   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
3953 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
3954
3955   if test x$PKG_CONFIG != xno ; then
3956     ## don't try to run the test against uninstalled libtool libs
3957     if $PKG_CONFIG --uninstalled $pkg_config_args; then
3958           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
3959           enable_glibtest=no
3960     fi
3961
3962     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
3963           :
3964     else
3965           no_glib=yes
3966     fi
3967   fi
3968
3969   if test x"$no_glib" = x ; then
3970     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
3971     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
3972     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
3973
3974     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
3975     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
3976     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
3977            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3978     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
3979            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3980     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
3981            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3982     if test "x$enable_glibtest" = "xyes" ; then
3983       ac_save_CFLAGS="$CFLAGS"
3984       ac_save_LIBS="$LIBS"
3985       CFLAGS="$CFLAGS $GLIB_CFLAGS"
3986       LIBS="$GLIB_LIBS $LIBS"
3987       rm -f conf.glibtest
3988       if test "$cross_compiling" = yes; then :
3989   echo $ac_n "cross compiling; assumed OK... $ac_c"
3990 else
3991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3992 /* end confdefs.h.  */
3993
3994 #include <glib.h>
3995 #include <stdio.h>
3996 #include <stdlib.h>
3997
3998 int
3999 main ()
4000 {
4001   unsigned int major, minor, micro;
4002   char *tmp_version;
4003
4004   fclose (fopen ("conf.glibtest", "w"));
4005
4006   /* HP/UX 9 (%@#!) writes to sscanf strings */
4007   tmp_version = g_strdup("$min_glib_version");
4008   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
4009      printf("%s, bad version string\n", "$min_glib_version");
4010      exit(1);
4011    }
4012
4013   if ((glib_major_version != $glib_config_major_version) ||
4014       (glib_minor_version != $glib_config_minor_version) ||
4015       (glib_micro_version != $glib_config_micro_version))
4016     {
4017       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
4018              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
4019              glib_major_version, glib_minor_version, glib_micro_version);
4020       printf ("*** was found! If pkg-config was correct, then it is best\n");
4021       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
4022       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
4023       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
4024       printf("*** required on your system.\n");
4025       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
4026       printf("*** to point to the correct configuration files\n");
4027     }
4028   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
4029            (glib_minor_version != GLIB_MINOR_VERSION) ||
4030            (glib_micro_version != GLIB_MICRO_VERSION))
4031     {
4032       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
4033              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
4034       printf("*** library (version %d.%d.%d)\n",
4035              glib_major_version, glib_minor_version, glib_micro_version);
4036     }
4037   else
4038     {
4039       if ((glib_major_version > major) ||
4040         ((glib_major_version == major) && (glib_minor_version > minor)) ||
4041         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
4042       {
4043         return 0;
4044        }
4045      else
4046       {
4047         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
4048                glib_major_version, glib_minor_version, glib_micro_version);
4049         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
4050                major, minor, micro);
4051         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
4052         printf("***\n");
4053         printf("*** If you have already installed a sufficiently new version, this error\n");
4054         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
4055         printf("*** being found. The easiest way to fix this is to remove the old version\n");
4056         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
4057         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
4058         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4059         printf("*** so that the correct libraries are found at run-time))\n");
4060       }
4061     }
4062   return 1;
4063 }
4064
4065 _ACEOF
4066 if ac_fn_c_try_run "$LINENO"; then :
4067
4068 else
4069   no_glib=yes
4070 fi
4071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4072   conftest.$ac_objext conftest.beam conftest.$ac_ext
4073 fi
4074
4075        CFLAGS="$ac_save_CFLAGS"
4076        LIBS="$ac_save_LIBS"
4077      fi
4078   fi
4079   if test "x$no_glib" = x ; then
4080      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
4081 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
4082      :
4083   else
4084      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4085 $as_echo "no" >&6; }
4086      if test "$PKG_CONFIG" = "no" ; then
4087        echo "*** A new enough version of pkg-config was not found."
4088        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
4089      else
4090        if test -f conf.glibtest ; then
4091         :
4092        else
4093           echo "*** Could not run GLIB test program, checking why..."
4094           ac_save_CFLAGS="$CFLAGS"
4095           ac_save_LIBS="$LIBS"
4096           CFLAGS="$CFLAGS $GLIB_CFLAGS"
4097           LIBS="$LIBS $GLIB_LIBS"
4098           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4099 /* end confdefs.h.  */
4100
4101 #include <glib.h>
4102 #include <stdio.h>
4103
4104 int
4105 main ()
4106 {
4107  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
4108   ;
4109   return 0;
4110 }
4111 _ACEOF
4112 if ac_fn_c_try_link "$LINENO"; then :
4113    echo "*** The test program compiled, but did not run. This usually means"
4114           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
4115           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
4116           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4117           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
4118           echo "*** is required on your system"
4119           echo "***"
4120           echo "*** If you have an old version installed, it is best to remove it, although"
4121           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4122 else
4123    echo "*** The test program failed to compile or link. See the file config.log for the"
4124           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext \
4127     conftest$ac_exeext conftest.$ac_ext
4128           CFLAGS="$ac_save_CFLAGS"
4129           LIBS="$ac_save_LIBS"
4130        fi
4131      fi
4132      GLIB_CFLAGS=""
4133      GLIB_LIBS=""
4134      GLIB_GENMARSHAL=""
4135      GOBJECT_QUERY=""
4136      GLIB_MKENUMS=""
4137      :
4138   fi
4139
4140
4141
4142
4143
4144   rm -f conf.glibtest
4145
4146 if test "x$CC" != xcc; then
4147   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4148 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4149 else
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4151 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4152 fi
4153 set dummy $CC; ac_cc=`$as_echo "$2" |
4154                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4155 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4156   $as_echo_n "(cached) " >&6
4157 else
4158   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h.  */
4160
4161 int
4162 main ()
4163 {
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 # Make sure it works both with $CC and with simple cc.
4170 # We do the test twice because some compilers refuse to overwrite an
4171 # existing .o file with -o, though they will create one.
4172 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4173 rm -f conftest2.*
4174 if { { case "(($ac_try" in
4175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176   *) ac_try_echo=$ac_try;;
4177 esac
4178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179 $as_echo "$ac_try_echo"; } >&5
4180   (eval "$ac_try") 2>&5
4181   ac_status=$?
4182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4183   test $ac_status = 0; } &&
4184    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4189 $as_echo "$ac_try_echo"; } >&5
4190   (eval "$ac_try") 2>&5
4191   ac_status=$?
4192   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4193   test $ac_status = 0; };
4194 then
4195   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4196   if test "x$CC" != xcc; then
4197     # Test first that cc exists at all.
4198     if { ac_try='cc -c conftest.$ac_ext >&5'
4199   { { case "(($ac_try" in
4200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201   *) ac_try_echo=$ac_try;;
4202 esac
4203 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4204 $as_echo "$ac_try_echo"; } >&5
4205   (eval "$ac_try") 2>&5
4206   ac_status=$?
4207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208   test $ac_status = 0; }; }; then
4209       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4210       rm -f conftest2.*
4211       if { { case "(($ac_try" in
4212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213   *) ac_try_echo=$ac_try;;
4214 esac
4215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4216 $as_echo "$ac_try_echo"; } >&5
4217   (eval "$ac_try") 2>&5
4218   ac_status=$?
4219   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4220   test $ac_status = 0; } &&
4221          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223   *) ac_try_echo=$ac_try;;
4224 esac
4225 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4226 $as_echo "$ac_try_echo"; } >&5
4227   (eval "$ac_try") 2>&5
4228   ac_status=$?
4229   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230   test $ac_status = 0; };
4231       then
4232         # cc works too.
4233         :
4234       else
4235         # cc exists but doesn't like -o.
4236         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4237       fi
4238     fi
4239   fi
4240 else
4241   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4242 fi
4243 rm -f core conftest*
4244
4245 fi
4246 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4248 $as_echo "yes" >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252
4253 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4254
4255 fi
4256
4257 # FIXME: we rely on the cache variable name because
4258 # there is no other way.
4259 set dummy $CC
4260 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4261 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4262 if test "$am_t" != yes; then
4263    # Losing compiler, so override with the script.
4264    # FIXME: It is wrong to rewrite CC.
4265    # But if we don't then we get into trouble of one sort or another.
4266    # A longer-term fix would be to have automake use am__CC in this case,
4267    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4268    CC="$am_aux_dir/compile $CC"
4269 fi
4270
4271
4272
4273
4274 case `pwd` in
4275   *\ * | *\     *)
4276     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4277 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4278 esac
4279
4280
4281
4282 macro_version='2.4'
4283 macro_revision='1.3293'
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297 ltmain="$ac_aux_dir/ltmain.sh"
4298
4299 # Make sure we can run config.sub.
4300 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4301   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4302
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4304 $as_echo_n "checking build system type... " >&6; }
4305 if ${ac_cv_build+:} false; then :
4306   $as_echo_n "(cached) " >&6
4307 else
4308   ac_build_alias=$build_alias
4309 test "x$ac_build_alias" = x &&
4310   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4311 test "x$ac_build_alias" = x &&
4312   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4313 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4314   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4315
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4318 $as_echo "$ac_cv_build" >&6; }
4319 case $ac_cv_build in
4320 *-*-*) ;;
4321 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4322 esac
4323 build=$ac_cv_build
4324 ac_save_IFS=$IFS; IFS='-'
4325 set x $ac_cv_build
4326 shift
4327 build_cpu=$1
4328 build_vendor=$2
4329 shift; shift
4330 # Remember, the first character of IFS is used to create $*,
4331 # except with old shells:
4332 build_os=$*
4333 IFS=$ac_save_IFS
4334 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4335
4336
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4338 $as_echo_n "checking host system type... " >&6; }
4339 if ${ac_cv_host+:} false; then :
4340   $as_echo_n "(cached) " >&6
4341 else
4342   if test "x$host_alias" = x; then
4343   ac_cv_host=$ac_cv_build
4344 else
4345   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4346     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4347 fi
4348
4349 fi
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4351 $as_echo "$ac_cv_host" >&6; }
4352 case $ac_cv_host in
4353 *-*-*) ;;
4354 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4355 esac
4356 host=$ac_cv_host
4357 ac_save_IFS=$IFS; IFS='-'
4358 set x $ac_cv_host
4359 shift
4360 host_cpu=$1
4361 host_vendor=$2
4362 shift; shift
4363 # Remember, the first character of IFS is used to create $*,
4364 # except with old shells:
4365 host_os=$*
4366 IFS=$ac_save_IFS
4367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4368
4369
4370 # Backslashify metacharacters that are still active within
4371 # double-quoted strings.
4372 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4373
4374 # Same as above, but do not quote variable references.
4375 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4376
4377 # Sed substitution to delay expansion of an escaped shell variable in a
4378 # double_quote_subst'ed string.
4379 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4380
4381 # Sed substitution to delay expansion of an escaped single quote.
4382 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4383
4384 # Sed substitution to avoid accidental globbing in evaled expressions
4385 no_glob_subst='s/\*/\\\*/g'
4386
4387 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4388 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4389 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4390
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4392 $as_echo_n "checking how to print strings... " >&6; }
4393 # Test print first, because it will be a builtin if present.
4394 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4395    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4396   ECHO='print -r --'
4397 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4398   ECHO='printf %s\n'
4399 else
4400   # Use this function as a fallback that always works.
4401   func_fallback_echo ()
4402   {
4403     eval 'cat <<_LTECHO_EOF
4404 $1
4405 _LTECHO_EOF'
4406   }
4407   ECHO='func_fallback_echo'
4408 fi
4409
4410 # func_echo_all arg...
4411 # Invoke $ECHO with all args, space-separated.
4412 func_echo_all ()
4413 {
4414     $ECHO ""
4415 }
4416
4417 case "$ECHO" in
4418   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4419 $as_echo "printf" >&6; } ;;
4420   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4421 $as_echo "print -r" >&6; } ;;
4422   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4423 $as_echo "cat" >&6; } ;;
4424 esac
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4440 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4441 if ${ac_cv_path_SED+:} false; then :
4442   $as_echo_n "(cached) " >&6
4443 else
4444             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4445      for ac_i in 1 2 3 4 5 6 7; do
4446        ac_script="$ac_script$as_nl$ac_script"
4447      done
4448      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4449      { ac_script=; unset ac_script;}
4450      if test -z "$SED"; then
4451   ac_path_SED_found=false
4452   # Loop through the user's path and test for each of PROGNAME-LIST
4453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH
4455 do
4456   IFS=$as_save_IFS
4457   test -z "$as_dir" && as_dir=.
4458     for ac_prog in sed gsed; do
4459     for ac_exec_ext in '' $ac_executable_extensions; do
4460       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4461       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4462 # Check for GNU ac_path_SED and select it if it is found.
4463   # Check for GNU $ac_path_SED
4464 case `"$ac_path_SED" --version 2>&1` in
4465 *GNU*)
4466   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4467 *)
4468   ac_count=0
4469   $as_echo_n 0123456789 >"conftest.in"
4470   while :
4471   do
4472     cat "conftest.in" "conftest.in" >"conftest.tmp"
4473     mv "conftest.tmp" "conftest.in"
4474     cp "conftest.in" "conftest.nl"
4475     $as_echo '' >> "conftest.nl"
4476     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478     as_fn_arith $ac_count + 1 && ac_count=$as_val
4479     if test $ac_count -gt ${ac_path_SED_max-0}; then
4480       # Best one so far, save it but keep looking for a better one
4481       ac_cv_path_SED="$ac_path_SED"
4482       ac_path_SED_max=$ac_count
4483     fi
4484     # 10*(2^10) chars as input seems more than enough
4485     test $ac_count -gt 10 && break
4486   done
4487   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 esac
4489
4490       $ac_path_SED_found && break 3
4491     done
4492   done
4493   done
4494 IFS=$as_save_IFS
4495   if test -z "$ac_cv_path_SED"; then
4496     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4497   fi
4498 else
4499   ac_cv_path_SED=$SED
4500 fi
4501
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4504 $as_echo "$ac_cv_path_SED" >&6; }
4505  SED="$ac_cv_path_SED"
4506   rm -f conftest.sed
4507
4508 test -z "$SED" && SED=sed
4509 Xsed="$SED -e 1s/^X//"
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4522 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4523 if ${ac_cv_path_GREP+:} false; then :
4524   $as_echo_n "(cached) " >&6
4525 else
4526   if test -z "$GREP"; then
4527   ac_path_GREP_found=false
4528   # Loop through the user's path and test for each of PROGNAME-LIST
4529   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531 do
4532   IFS=$as_save_IFS
4533   test -z "$as_dir" && as_dir=.
4534     for ac_prog in grep ggrep; do
4535     for ac_exec_ext in '' $ac_executable_extensions; do
4536       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4537       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4538 # Check for GNU ac_path_GREP and select it if it is found.
4539   # Check for GNU $ac_path_GREP
4540 case `"$ac_path_GREP" --version 2>&1` in
4541 *GNU*)
4542   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4543 *)
4544   ac_count=0
4545   $as_echo_n 0123456789 >"conftest.in"
4546   while :
4547   do
4548     cat "conftest.in" "conftest.in" >"conftest.tmp"
4549     mv "conftest.tmp" "conftest.in"
4550     cp "conftest.in" "conftest.nl"
4551     $as_echo 'GREP' >> "conftest.nl"
4552     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4553     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4554     as_fn_arith $ac_count + 1 && ac_count=$as_val
4555     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4556       # Best one so far, save it but keep looking for a better one
4557       ac_cv_path_GREP="$ac_path_GREP"
4558       ac_path_GREP_max=$ac_count
4559     fi
4560     # 10*(2^10) chars as input seems more than enough
4561     test $ac_count -gt 10 && break
4562   done
4563   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4564 esac
4565
4566       $ac_path_GREP_found && break 3
4567     done
4568   done
4569   done
4570 IFS=$as_save_IFS
4571   if test -z "$ac_cv_path_GREP"; then
4572     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4573   fi
4574 else
4575   ac_cv_path_GREP=$GREP
4576 fi
4577
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4580 $as_echo "$ac_cv_path_GREP" >&6; }
4581  GREP="$ac_cv_path_GREP"
4582
4583
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4585 $as_echo_n "checking for egrep... " >&6; }
4586 if ${ac_cv_path_EGREP+:} false; then :
4587   $as_echo_n "(cached) " >&6
4588 else
4589   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4590    then ac_cv_path_EGREP="$GREP -E"
4591    else
4592      if test -z "$EGREP"; then
4593   ac_path_EGREP_found=false
4594   # Loop through the user's path and test for each of PROGNAME-LIST
4595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 do
4598   IFS=$as_save_IFS
4599   test -z "$as_dir" && as_dir=.
4600     for ac_prog in egrep; do
4601     for ac_exec_ext in '' $ac_executable_extensions; do
4602       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4603       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4604 # Check for GNU ac_path_EGREP and select it if it is found.
4605   # Check for GNU $ac_path_EGREP
4606 case `"$ac_path_EGREP" --version 2>&1` in
4607 *GNU*)
4608   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4609 *)
4610   ac_count=0
4611   $as_echo_n 0123456789 >"conftest.in"
4612   while :
4613   do
4614     cat "conftest.in" "conftest.in" >"conftest.tmp"
4615     mv "conftest.tmp" "conftest.in"
4616     cp "conftest.in" "conftest.nl"
4617     $as_echo 'EGREP' >> "conftest.nl"
4618     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4619     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4620     as_fn_arith $ac_count + 1 && ac_count=$as_val
4621     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4622       # Best one so far, save it but keep looking for a better one
4623       ac_cv_path_EGREP="$ac_path_EGREP"
4624       ac_path_EGREP_max=$ac_count
4625     fi
4626     # 10*(2^10) chars as input seems more than enough
4627     test $ac_count -gt 10 && break
4628   done
4629   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4630 esac
4631
4632       $ac_path_EGREP_found && break 3
4633     done
4634   done
4635   done
4636 IFS=$as_save_IFS
4637   if test -z "$ac_cv_path_EGREP"; then
4638     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639   fi
4640 else
4641   ac_cv_path_EGREP=$EGREP
4642 fi
4643
4644    fi
4645 fi
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4647 $as_echo "$ac_cv_path_EGREP" >&6; }
4648  EGREP="$ac_cv_path_EGREP"
4649
4650
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4652 $as_echo_n "checking for fgrep... " >&6; }
4653 if ${ac_cv_path_FGREP+:} false; then :
4654   $as_echo_n "(cached) " >&6
4655 else
4656   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4657    then ac_cv_path_FGREP="$GREP -F"
4658    else
4659      if test -z "$FGREP"; then
4660   ac_path_FGREP_found=false
4661   # Loop through the user's path and test for each of PROGNAME-LIST
4662   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4664 do
4665   IFS=$as_save_IFS
4666   test -z "$as_dir" && as_dir=.
4667     for ac_prog in fgrep; do
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4670       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4671 # Check for GNU ac_path_FGREP and select it if it is found.
4672   # Check for GNU $ac_path_FGREP
4673 case `"$ac_path_FGREP" --version 2>&1` in
4674 *GNU*)
4675   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4676 *)
4677   ac_count=0
4678   $as_echo_n 0123456789 >"conftest.in"
4679   while :
4680   do
4681     cat "conftest.in" "conftest.in" >"conftest.tmp"
4682     mv "conftest.tmp" "conftest.in"
4683     cp "conftest.in" "conftest.nl"
4684     $as_echo 'FGREP' >> "conftest.nl"
4685     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4686     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4687     as_fn_arith $ac_count + 1 && ac_count=$as_val
4688     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4689       # Best one so far, save it but keep looking for a better one
4690       ac_cv_path_FGREP="$ac_path_FGREP"
4691       ac_path_FGREP_max=$ac_count
4692     fi
4693     # 10*(2^10) chars as input seems more than enough
4694     test $ac_count -gt 10 && break
4695   done
4696   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4697 esac
4698
4699       $ac_path_FGREP_found && break 3
4700     done
4701   done
4702   done
4703 IFS=$as_save_IFS
4704   if test -z "$ac_cv_path_FGREP"; then
4705     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4706   fi
4707 else
4708   ac_cv_path_FGREP=$FGREP
4709 fi
4710
4711    fi
4712 fi
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4714 $as_echo "$ac_cv_path_FGREP" >&6; }
4715  FGREP="$ac_cv_path_FGREP"
4716
4717
4718 test -z "$GREP" && GREP=grep
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738 # Check whether --with-gnu-ld was given.
4739 if test "${with_gnu_ld+set}" = set; then :
4740   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4741 else
4742   with_gnu_ld=no
4743 fi
4744
4745 ac_prog=ld
4746 if test "$GCC" = yes; then
4747   # Check if gcc -print-prog-name=ld gives a path.
4748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4749 $as_echo_n "checking for ld used by $CC... " >&6; }
4750   case $host in
4751   *-*-mingw*)
4752     # gcc leaves a trailing carriage return which upsets mingw
4753     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4754   *)
4755     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4756   esac
4757   case $ac_prog in
4758     # Accept absolute paths.
4759     [\\/]* | ?:[\\/]*)
4760       re_direlt='/[^/][^/]*/\.\./'
4761       # Canonicalize the pathname of ld
4762       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4763       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4764         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4765       done
4766       test -z "$LD" && LD="$ac_prog"
4767       ;;
4768   "")
4769     # If it fails, then pretend we aren't using GCC.
4770     ac_prog=ld
4771     ;;
4772   *)
4773     # If it is relative, then search for the first ld in PATH.
4774     with_gnu_ld=unknown
4775     ;;
4776   esac
4777 elif test "$with_gnu_ld" = yes; then
4778   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4779 $as_echo_n "checking for GNU ld... " >&6; }
4780 else
4781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4782 $as_echo_n "checking for non-GNU ld... " >&6; }
4783 fi
4784 if ${lt_cv_path_LD+:} false; then :
4785   $as_echo_n "(cached) " >&6
4786 else
4787   if test -z "$LD"; then
4788   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4789   for ac_dir in $PATH; do
4790     IFS="$lt_save_ifs"
4791     test -z "$ac_dir" && ac_dir=.
4792     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4793       lt_cv_path_LD="$ac_dir/$ac_prog"
4794       # Check to see if the program is GNU ld.  I'd rather use --version,
4795       # but apparently some variants of GNU ld only accept -v.
4796       # Break only if it was the GNU/non-GNU ld that we prefer.
4797       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4798       *GNU* | *'with BFD'*)
4799         test "$with_gnu_ld" != no && break
4800         ;;
4801       *)
4802         test "$with_gnu_ld" != yes && break
4803         ;;
4804       esac
4805     fi
4806   done
4807   IFS="$lt_save_ifs"
4808 else
4809   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4810 fi
4811 fi
4812
4813 LD="$lt_cv_path_LD"
4814 if test -n "$LD"; then
4815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4816 $as_echo "$LD" >&6; }
4817 else
4818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4819 $as_echo "no" >&6; }
4820 fi
4821 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4823 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4824 if ${lt_cv_prog_gnu_ld+:} false; then :
4825   $as_echo_n "(cached) " >&6
4826 else
4827   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4828 case `$LD -v 2>&1 </dev/null` in
4829 *GNU* | *'with BFD'*)
4830   lt_cv_prog_gnu_ld=yes
4831   ;;
4832 *)
4833   lt_cv_prog_gnu_ld=no
4834   ;;
4835 esac
4836 fi
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4838 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4839 with_gnu_ld=$lt_cv_prog_gnu_ld
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4850 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4851 if ${lt_cv_path_NM+:} false; then :
4852   $as_echo_n "(cached) " >&6
4853 else
4854   if test -n "$NM"; then
4855   # Let the user override the test.
4856   lt_cv_path_NM="$NM"
4857 else
4858   lt_nm_to_check="${ac_tool_prefix}nm"
4859   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4860     lt_nm_to_check="$lt_nm_to_check nm"
4861   fi
4862   for lt_tmp_nm in $lt_nm_to_check; do
4863     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4864     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4865       IFS="$lt_save_ifs"
4866       test -z "$ac_dir" && ac_dir=.
4867       tmp_nm="$ac_dir/$lt_tmp_nm"
4868       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4869         # Check to see if the nm accepts a BSD-compat flag.
4870         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4871         #   nm: unknown option "B" ignored
4872         # Tru64's nm complains that /dev/null is an invalid object file
4873         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4874         */dev/null* | *'Invalid file or object type'*)
4875           lt_cv_path_NM="$tmp_nm -B"
4876           break
4877           ;;
4878         *)
4879           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4880           */dev/null*)
4881             lt_cv_path_NM="$tmp_nm -p"
4882             break
4883             ;;
4884           *)
4885             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4886             continue # so that we can try to find one that supports BSD flags
4887             ;;
4888           esac
4889           ;;
4890         esac
4891       fi
4892     done
4893     IFS="$lt_save_ifs"
4894   done
4895   : ${lt_cv_path_NM=no}
4896 fi
4897 fi
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4899 $as_echo "$lt_cv_path_NM" >&6; }
4900 if test "$lt_cv_path_NM" != "no"; then
4901   NM="$lt_cv_path_NM"
4902 else
4903   # Didn't find any BSD compatible name lister, look for dumpbin.
4904   if test -n "$DUMPBIN"; then :
4905     # Let the user override the test.
4906   else
4907     if test -n "$ac_tool_prefix"; then
4908   for ac_prog in dumpbin "link -dump"
4909   do
4910     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if ${ac_cv_prog_DUMPBIN+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   if test -n "$DUMPBIN"; then
4918   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4922 do
4923   IFS=$as_save_IFS
4924   test -z "$as_dir" && as_dir=.
4925     for ac_exec_ext in '' $ac_executable_extensions; do
4926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929     break 2
4930   fi
4931 done
4932   done
4933 IFS=$as_save_IFS
4934
4935 fi
4936 fi
4937 DUMPBIN=$ac_cv_prog_DUMPBIN
4938 if test -n "$DUMPBIN"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4940 $as_echo "$DUMPBIN" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947     test -n "$DUMPBIN" && break
4948   done
4949 fi
4950 if test -z "$DUMPBIN"; then
4951   ac_ct_DUMPBIN=$DUMPBIN
4952   for ac_prog in dumpbin "link -dump"
4953 do
4954   # Extract the first word of "$ac_prog", so it can be a program name with args.
4955 set dummy $ac_prog; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4959   $as_echo_n "(cached) " >&6
4960 else
4961   if test -n "$ac_ct_DUMPBIN"; then
4962   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969     for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973     break 2
4974   fi
4975 done
4976   done
4977 IFS=$as_save_IFS
4978
4979 fi
4980 fi
4981 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4982 if test -n "$ac_ct_DUMPBIN"; then
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4984 $as_echo "$ac_ct_DUMPBIN" >&6; }
4985 else
4986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4988 fi
4989
4990
4991   test -n "$ac_ct_DUMPBIN" && break
4992 done
4993
4994   if test "x$ac_ct_DUMPBIN" = x; then
4995     DUMPBIN=":"
4996   else
4997     case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003     DUMPBIN=$ac_ct_DUMPBIN
5004   fi
5005 fi
5006
5007     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5008     *COFF*)
5009       DUMPBIN="$DUMPBIN -symbols"
5010       ;;
5011     *)
5012       DUMPBIN=:
5013       ;;
5014     esac
5015   fi
5016
5017   if test "$DUMPBIN" != ":"; then
5018     NM="$DUMPBIN"
5019   fi
5020 fi
5021 test -z "$NM" && NM=nm
5022
5023
5024
5025
5026
5027
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5029 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5030 if ${lt_cv_nm_interface+:} false; then :
5031   $as_echo_n "(cached) " >&6
5032 else
5033   lt_cv_nm_interface="BSD nm"
5034   echo "int some_variable = 0;" > conftest.$ac_ext
5035   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5036   (eval "$ac_compile" 2>conftest.err)
5037   cat conftest.err >&5
5038   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5039   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5040   cat conftest.err >&5
5041   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5042   cat conftest.out >&5
5043   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5044     lt_cv_nm_interface="MS dumpbin"
5045   fi
5046   rm -f conftest*
5047 fi
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5049 $as_echo "$lt_cv_nm_interface" >&6; }
5050
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5052 $as_echo_n "checking whether ln -s works... " >&6; }
5053 LN_S=$as_ln_s
5054 if test "$LN_S" = "ln -s"; then
5055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5056 $as_echo "yes" >&6; }
5057 else
5058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5059 $as_echo "no, using $LN_S" >&6; }
5060 fi
5061
5062 # find the maximum length of command line arguments
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5064 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5065 if ${lt_cv_sys_max_cmd_len+:} false; then :
5066   $as_echo_n "(cached) " >&6
5067 else
5068     i=0
5069   teststring="ABCD"
5070
5071   case $build_os in
5072   msdosdjgpp*)
5073     # On DJGPP, this test can blow up pretty badly due to problems in libc
5074     # (any single argument exceeding 2000 bytes causes a buffer overrun
5075     # during glob expansion).  Even if it were fixed, the result of this
5076     # check would be larger than it should be.
5077     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5078     ;;
5079
5080   gnu*)
5081     # Under GNU Hurd, this test is not required because there is
5082     # no limit to the length of command line arguments.
5083     # Libtool will interpret -1 as no limit whatsoever
5084     lt_cv_sys_max_cmd_len=-1;
5085     ;;
5086
5087   cygwin* | mingw* | cegcc*)
5088     # On Win9x/ME, this test blows up -- it succeeds, but takes
5089     # about 5 minutes as the teststring grows exponentially.
5090     # Worse, since 9x/ME are not pre-emptively multitasking,
5091     # you end up with a "frozen" computer, even though with patience
5092     # the test eventually succeeds (with a max line length of 256k).
5093     # Instead, let's just punt: use the minimum linelength reported by
5094     # all of the supported platforms: 8192 (on NT/2K/XP).
5095     lt_cv_sys_max_cmd_len=8192;
5096     ;;
5097
5098   mint*)
5099     # On MiNT this can take a long time and run out of memory.
5100     lt_cv_sys_max_cmd_len=8192;
5101     ;;
5102
5103   amigaos*)
5104     # On AmigaOS with pdksh, this test takes hours, literally.
5105     # So we just punt and use a minimum line length of 8192.
5106     lt_cv_sys_max_cmd_len=8192;
5107     ;;
5108
5109   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5110     # This has been around since 386BSD, at least.  Likely further.
5111     if test -x /sbin/sysctl; then
5112       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5113     elif test -x /usr/sbin/sysctl; then
5114       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5115     else
5116       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5117     fi
5118     # And add a safety zone
5119     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5120     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5121     ;;
5122
5123   interix*)
5124     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5125     lt_cv_sys_max_cmd_len=196608
5126     ;;
5127
5128   osf*)
5129     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5130     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5131     # nice to cause kernel panics so lets avoid the loop below.
5132     # First set a reasonable default.
5133     lt_cv_sys_max_cmd_len=16384
5134     #
5135     if test -x /sbin/sysconfig; then
5136       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5137         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5138       esac
5139     fi
5140     ;;
5141   sco3.2v5*)
5142     lt_cv_sys_max_cmd_len=102400
5143     ;;
5144   sysv5* | sco5v6* | sysv4.2uw2*)
5145     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5146     if test -n "$kargmax"; then
5147       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5148     else
5149       lt_cv_sys_max_cmd_len=32768
5150     fi
5151     ;;
5152   *)
5153     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5154     if test -n "$lt_cv_sys_max_cmd_len"; then
5155       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5156       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5157     else
5158       # Make teststring a little bigger before we do anything with it.
5159       # a 1K string should be a reasonable start.
5160       for i in 1 2 3 4 5 6 7 8 ; do
5161         teststring=$teststring$teststring
5162       done
5163       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5164       # If test is not a shell built-in, we'll probably end up computing a
5165       # maximum length that is only half of the actual maximum length, but
5166       # we can't tell.
5167       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5168                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5169               test $i != 17 # 1/2 MB should be enough
5170       do
5171         i=`expr $i + 1`
5172         teststring=$teststring$teststring
5173       done
5174       # Only check the string length outside the loop.
5175       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5176       teststring=
5177       # Add a significant safety factor because C++ compilers can tack on
5178       # massive amounts of additional arguments before passing them to the
5179       # linker.  It appears as though 1/2 is a usable value.
5180       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5181     fi
5182     ;;
5183   esac
5184
5185 fi
5186
5187 if test -n $lt_cv_sys_max_cmd_len ; then
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5189 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5190 else
5191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5192 $as_echo "none" >&6; }
5193 fi
5194 max_cmd_len=$lt_cv_sys_max_cmd_len
5195
5196
5197
5198
5199
5200
5201 : ${CP="cp -f"}
5202 : ${MV="mv -f"}
5203 : ${RM="rm -f"}
5204
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5206 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5207 # Try some XSI features
5208 xsi_shell=no
5209 ( _lt_dummy="a/b/c"
5210   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5211       = c,a/b,b/c, \
5212     && eval 'test $(( 1 + 1 )) -eq 2 \
5213     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5214   && xsi_shell=yes
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5216 $as_echo "$xsi_shell" >&6; }
5217
5218
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5220 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5221 lt_shell_append=no
5222 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5223     >/dev/null 2>&1 \
5224   && lt_shell_append=yes
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5226 $as_echo "$lt_shell_append" >&6; }
5227
5228
5229 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5230   lt_unset=unset
5231 else
5232   lt_unset=false
5233 fi
5234
5235
5236
5237
5238
5239 # test EBCDIC or ASCII
5240 case `echo X|tr X '\101'` in
5241  A) # ASCII based system
5242     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5243   lt_SP2NL='tr \040 \012'
5244   lt_NL2SP='tr \015\012 \040\040'
5245   ;;
5246  *) # EBCDIC based system
5247   lt_SP2NL='tr \100 \n'
5248   lt_NL2SP='tr \r\n \100\100'
5249   ;;
5250 esac
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5261 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5262 if ${lt_cv_to_host_file_cmd+:} false; then :
5263   $as_echo_n "(cached) " >&6
5264 else
5265   case $host in
5266   *-*-mingw* )
5267     case $build in
5268       *-*-mingw* ) # actually msys
5269         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5270         ;;
5271       *-*-cygwin* )
5272         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5273         ;;
5274       * ) # otherwise, assume *nix
5275         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5276         ;;
5277     esac
5278     ;;
5279   *-*-cygwin* )
5280     case $build in
5281       *-*-mingw* ) # actually msys
5282         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5283         ;;
5284       *-*-cygwin* )
5285         lt_cv_to_host_file_cmd=func_convert_file_noop
5286         ;;
5287       * ) # otherwise, assume *nix
5288         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5289         ;;
5290     esac
5291     ;;
5292   * ) # unhandled hosts (and "normal" native builds)
5293     lt_cv_to_host_file_cmd=func_convert_file_noop
5294     ;;
5295 esac
5296
5297 fi
5298
5299 to_host_file_cmd=$lt_cv_to_host_file_cmd
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5301 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5302
5303
5304
5305
5306
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5308 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5309 if ${lt_cv_to_tool_file_cmd+:} false; then :
5310   $as_echo_n "(cached) " >&6
5311 else
5312   #assume ordinary cross tools, or native build.
5313 lt_cv_to_tool_file_cmd=func_convert_file_noop
5314 case $host in
5315   *-*-mingw* )
5316     case $build in
5317       *-*-mingw* ) # actually msys
5318         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5319         ;;
5320     esac
5321     ;;
5322 esac
5323
5324 fi
5325
5326 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5328 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5329
5330
5331
5332
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5335 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5336 if ${lt_cv_ld_reload_flag+:} false; then :
5337   $as_echo_n "(cached) " >&6
5338 else
5339   lt_cv_ld_reload_flag='-r'
5340 fi
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5342 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5343 reload_flag=$lt_cv_ld_reload_flag
5344 case $reload_flag in
5345 "" | " "*) ;;
5346 *) reload_flag=" $reload_flag" ;;
5347 esac
5348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5349 case $host_os in
5350   cygwin* | mingw* | pw32* | cegcc*)
5351     if test "$GCC" != yes; then
5352       reload_cmds=false
5353     fi
5354     ;;
5355   darwin*)
5356     if test "$GCC" = yes; then
5357       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5358     else
5359       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5360     fi
5361     ;;
5362 esac
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 if test -n "$ac_tool_prefix"; then
5373   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5374 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376 $as_echo_n "checking for $ac_word... " >&6; }
5377 if ${ac_cv_prog_OBJDUMP+:} false; then :
5378   $as_echo_n "(cached) " >&6
5379 else
5380   if test -n "$OBJDUMP"; then
5381   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5382 else
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386   IFS=$as_save_IFS
5387   test -z "$as_dir" && as_dir=.
5388     for ac_exec_ext in '' $ac_executable_extensions; do
5389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5390     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5392     break 2
5393   fi
5394 done
5395   done
5396 IFS=$as_save_IFS
5397
5398 fi
5399 fi
5400 OBJDUMP=$ac_cv_prog_OBJDUMP
5401 if test -n "$OBJDUMP"; then
5402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5403 $as_echo "$OBJDUMP" >&6; }
5404 else
5405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5407 fi
5408
5409
5410 fi
5411 if test -z "$ac_cv_prog_OBJDUMP"; then
5412   ac_ct_OBJDUMP=$OBJDUMP
5413   # Extract the first word of "objdump", so it can be a program name with args.
5414 set dummy objdump; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   if test -n "$ac_ct_OBJDUMP"; then
5421   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435   done
5436 IFS=$as_save_IFS
5437
5438 fi
5439 fi
5440 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5441 if test -n "$ac_ct_OBJDUMP"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5443 $as_echo "$ac_ct_OBJDUMP" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449   if test "x$ac_ct_OBJDUMP" = x; then
5450     OBJDUMP="false"
5451   else
5452     case $cross_compiling:$ac_tool_warned in
5453 yes:)
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5456 ac_tool_warned=yes ;;
5457 esac
5458     OBJDUMP=$ac_ct_OBJDUMP
5459   fi
5460 else
5461   OBJDUMP="$ac_cv_prog_OBJDUMP"
5462 fi
5463
5464 test -z "$OBJDUMP" && OBJDUMP=objdump
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5475 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5476 if ${lt_cv_deplibs_check_method+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   lt_cv_file_magic_cmd='$MAGIC_CMD'
5480 lt_cv_file_magic_test_file=
5481 lt_cv_deplibs_check_method='unknown'
5482 # Need to set the preceding variable on all platforms that support
5483 # interlibrary dependencies.
5484 # 'none' -- dependencies not supported.
5485 # `unknown' -- same as none, but documents that we really don't know.
5486 # 'pass_all' -- all dependencies passed with no checks.
5487 # 'test_compile' -- check by making test program.
5488 # 'file_magic [[regex]]' -- check by looking for files in library path
5489 # which responds to the $file_magic_cmd with a given extended regex.
5490 # If you have `file' or equivalent on your system and you're not sure
5491 # whether `pass_all' will *always* work, you probably want this one.
5492
5493 case $host_os in
5494 aix[4-9]*)
5495   lt_cv_deplibs_check_method=pass_all
5496   ;;
5497
5498 beos*)
5499   lt_cv_deplibs_check_method=pass_all
5500   ;;
5501
5502 bsdi[45]*)
5503   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5504   lt_cv_file_magic_cmd='/usr/bin/file -L'
5505   lt_cv_file_magic_test_file=/shlib/libc.so
5506   ;;
5507
5508 cygwin*)
5509   # func_win32_libid is a shell function defined in ltmain.sh
5510   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5511   lt_cv_file_magic_cmd='func_win32_libid'
5512   ;;
5513
5514 mingw* | pw32*)
5515   # Base MSYS/MinGW do not provide the 'file' command needed by
5516   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5517   # unless we find 'file', for example because we are cross-compiling.
5518   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5519   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5520     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5521     lt_cv_file_magic_cmd='func_win32_libid'
5522   else
5523     # Keep this pattern in sync with the one in func_win32_libid.
5524     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5525     lt_cv_file_magic_cmd='$OBJDUMP -f'
5526   fi
5527   ;;
5528
5529 cegcc*)
5530   # use the weaker test based on 'objdump'. See mingw*.
5531   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5532   lt_cv_file_magic_cmd='$OBJDUMP -f'
5533   ;;
5534
5535 darwin* | rhapsody*)
5536   lt_cv_deplibs_check_method=pass_all
5537   ;;
5538
5539 freebsd* | dragonfly*)
5540   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541     case $host_cpu in
5542     i*86 )
5543       # Not sure whether the presence of OpenBSD here was a mistake.
5544       # Let's accept both of them until this is cleared up.
5545       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5546       lt_cv_file_magic_cmd=/usr/bin/file
5547       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5548       ;;
5549     esac
5550   else
5551     lt_cv_deplibs_check_method=pass_all
5552   fi
5553   ;;
5554
5555 gnu*)
5556   lt_cv_deplibs_check_method=pass_all
5557   ;;
5558
5559 haiku*)
5560   lt_cv_deplibs_check_method=pass_all
5561   ;;
5562
5563 hpux10.20* | hpux11*)
5564   lt_cv_file_magic_cmd=/usr/bin/file
5565   case $host_cpu in
5566   ia64*)
5567     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5568     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5569     ;;
5570   hppa*64*)
5571     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]'
5572     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5573     ;;
5574   *)
5575     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5576     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5577     ;;
5578   esac
5579   ;;
5580
5581 interix[3-9]*)
5582   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5583   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5584   ;;
5585
5586 irix5* | irix6* | nonstopux*)
5587   case $LD in
5588   *-32|*"-32 ") libmagic=32-bit;;
5589   *-n32|*"-n32 ") libmagic=N32;;
5590   *-64|*"-64 ") libmagic=64-bit;;
5591   *) libmagic=never-match;;
5592   esac
5593   lt_cv_deplibs_check_method=pass_all
5594   ;;
5595
5596 # This must be Linux ELF.
5597 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5598   lt_cv_deplibs_check_method=pass_all
5599   ;;
5600
5601 netbsd*)
5602   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5603     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5604   else
5605     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5606   fi
5607   ;;
5608
5609 newos6*)
5610   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5611   lt_cv_file_magic_cmd=/usr/bin/file
5612   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5613   ;;
5614
5615 *nto* | *qnx*)
5616   lt_cv_deplibs_check_method=pass_all
5617   ;;
5618
5619 openbsd*)
5620   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5622   else
5623     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5624   fi
5625   ;;
5626
5627 osf3* | osf4* | osf5*)
5628   lt_cv_deplibs_check_method=pass_all
5629   ;;
5630
5631 rdos*)
5632   lt_cv_deplibs_check_method=pass_all
5633   ;;
5634
5635 solaris*)
5636   lt_cv_deplibs_check_method=pass_all
5637   ;;
5638
5639 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5640   lt_cv_deplibs_check_method=pass_all
5641   ;;
5642
5643 sysv4 | sysv4.3*)
5644   case $host_vendor in
5645   motorola)
5646     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]'
5647     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5648     ;;
5649   ncr)
5650     lt_cv_deplibs_check_method=pass_all
5651     ;;
5652   sequent)
5653     lt_cv_file_magic_cmd='/bin/file'
5654     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5655     ;;
5656   sni)
5657     lt_cv_file_magic_cmd='/bin/file'
5658     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5659     lt_cv_file_magic_test_file=/lib/libc.so
5660     ;;
5661   siemens)
5662     lt_cv_deplibs_check_method=pass_all
5663     ;;
5664   pc)
5665     lt_cv_deplibs_check_method=pass_all
5666     ;;
5667   esac
5668   ;;
5669
5670 tpf*)
5671   lt_cv_deplibs_check_method=pass_all
5672   ;;
5673 esac
5674
5675 fi
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5677 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5678
5679 file_magic_glob=
5680 want_nocaseglob=no
5681 if test "$build" = "$host"; then
5682   case $host_os in
5683   mingw* | pw32*)
5684     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5685       want_nocaseglob=yes
5686     else
5687       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5688     fi
5689     ;;
5690   esac
5691 fi
5692
5693 file_magic_cmd=$lt_cv_file_magic_cmd
5694 deplibs_check_method=$lt_cv_deplibs_check_method
5695 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718 if test -n "$ac_tool_prefix"; then
5719   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5720 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5722 $as_echo_n "checking for $ac_word... " >&6; }
5723 if ${ac_cv_prog_DLLTOOL+:} false; then :
5724   $as_echo_n "(cached) " >&6
5725 else
5726   if test -n "$DLLTOOL"; then
5727   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734     for ac_exec_ext in '' $ac_executable_extensions; do
5735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5736     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738     break 2
5739   fi
5740 done
5741   done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 DLLTOOL=$ac_cv_prog_DLLTOOL
5747 if test -n "$DLLTOOL"; then
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5749 $as_echo "$DLLTOOL" >&6; }
5750 else
5751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5753 fi
5754
5755
5756 fi
5757 if test -z "$ac_cv_prog_DLLTOOL"; then
5758   ac_ct_DLLTOOL=$DLLTOOL
5759   # Extract the first word of "dlltool", so it can be a program name with args.
5760 set dummy dlltool; ac_word=$2
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5762 $as_echo_n "checking for $ac_word... " >&6; }
5763 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5764   $as_echo_n "(cached) " >&6
5765 else
5766   if test -n "$ac_ct_DLLTOOL"; then
5767   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5768 else
5769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 for as_dir in $PATH
5771 do
5772   IFS=$as_save_IFS
5773   test -z "$as_dir" && as_dir=.
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5776     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5777     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5778     break 2
5779   fi
5780 done
5781   done
5782 IFS=$as_save_IFS
5783
5784 fi
5785 fi
5786 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5787 if test -n "$ac_ct_DLLTOOL"; then
5788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5789 $as_echo "$ac_ct_DLLTOOL" >&6; }
5790 else
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5793 fi
5794
5795   if test "x$ac_ct_DLLTOOL" = x; then
5796     DLLTOOL="false"
5797   else
5798     case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5803 esac
5804     DLLTOOL=$ac_ct_DLLTOOL
5805   fi
5806 else
5807   DLLTOOL="$ac_cv_prog_DLLTOOL"
5808 fi
5809
5810 test -z "$DLLTOOL" && DLLTOOL=dlltool
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5822 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5823 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5824   $as_echo_n "(cached) " >&6
5825 else
5826   lt_cv_sharedlib_from_linklib_cmd='unknown'
5827
5828 case $host_os in
5829 cygwin* | mingw* | pw32* | cegcc*)
5830   # two different shell functions defined in ltmain.sh
5831   # decide which to use based on capabilities of $DLLTOOL
5832   case `$DLLTOOL --help 2>&1` in
5833   *--identify-strict*)
5834     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5835     ;;
5836   *)
5837     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5838     ;;
5839   esac
5840   ;;
5841 *)
5842   # fallback: assume linklib IS sharedlib
5843   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5844   ;;
5845 esac
5846
5847 fi
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5849 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5850 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5851 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5852
5853
5854
5855
5856
5857
5858
5859 if test -n "$ac_tool_prefix"; then
5860   for ac_prog in ar
5861   do
5862     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_AR+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$AR"; then
5870   ac_cv_prog_AR="$AR" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5879     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 AR=$ac_cv_prog_AR
5890 if test -n "$AR"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5892 $as_echo "$AR" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898
5899     test -n "$AR" && break
5900   done
5901 fi
5902 if test -z "$AR"; then
5903   ac_ct_AR=$AR
5904   for ac_prog in ar
5905 do
5906   # Extract the first word of "$ac_prog", so it can be a program name with args.
5907 set dummy $ac_prog; ac_word=$2
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5909 $as_echo_n "checking for $ac_word... " >&6; }
5910 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if test -n "$ac_ct_AR"; then
5914   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5915 else
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5917 for as_dir in $PATH
5918 do
5919   IFS=$as_save_IFS
5920   test -z "$as_dir" && as_dir=.
5921     for ac_exec_ext in '' $ac_executable_extensions; do
5922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5923     ac_cv_prog_ac_ct_AR="$ac_prog"
5924     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5925     break 2
5926   fi
5927 done
5928   done
5929 IFS=$as_save_IFS
5930
5931 fi
5932 fi
5933 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5934 if test -n "$ac_ct_AR"; then
5935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5936 $as_echo "$ac_ct_AR" >&6; }
5937 else
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5939 $as_echo "no" >&6; }
5940 fi
5941
5942
5943   test -n "$ac_ct_AR" && break
5944 done
5945
5946   if test "x$ac_ct_AR" = x; then
5947     AR="false"
5948   else
5949     case $cross_compiling:$ac_tool_warned in
5950 yes:)
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5953 ac_tool_warned=yes ;;
5954 esac
5955     AR=$ac_ct_AR
5956   fi
5957 fi
5958
5959 : ${AR=ar}
5960 : ${AR_FLAGS=cru}
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5973 $as_echo_n "checking for archiver @FILE support... " >&6; }
5974 if ${lt_cv_ar_at_file+:} false; then :
5975   $as_echo_n "(cached) " >&6
5976 else
5977   lt_cv_ar_at_file=no
5978    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h.  */
5980
5981 int
5982 main ()
5983 {
5984
5985   ;
5986   return 0;
5987 }
5988 _ACEOF
5989 if ac_fn_c_try_compile "$LINENO"; then :
5990   echo conftest.$ac_objext > conftest.lst
5991       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5992       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5993   (eval $lt_ar_try) 2>&5
5994   ac_status=$?
5995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5996   test $ac_status = 0; }
5997       if test "$ac_status" -eq 0; then
5998         # Ensure the archiver fails upon bogus file names.
5999         rm -f conftest.$ac_objext libconftest.a
6000         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6001   (eval $lt_ar_try) 2>&5
6002   ac_status=$?
6003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6004   test $ac_status = 0; }
6005         if test "$ac_status" -ne 0; then
6006           lt_cv_ar_at_file=@
6007         fi
6008       fi
6009       rm -f conftest.* libconftest.a
6010
6011 fi
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6013
6014 fi
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6016 $as_echo "$lt_cv_ar_at_file" >&6; }
6017
6018 if test "x$lt_cv_ar_at_file" = xno; then
6019   archiver_list_spec=
6020 else
6021   archiver_list_spec=$lt_cv_ar_at_file
6022 fi
6023
6024
6025
6026
6027
6028
6029
6030 if test -n "$ac_tool_prefix"; then
6031   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}strip; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if ${ac_cv_prog_STRIP+:} false; then :
6036   $as_echo_n "(cached) " >&6
6037 else
6038   if test -n "$STRIP"; then
6039   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6043 do
6044   IFS=$as_save_IFS
6045   test -z "$as_dir" && as_dir=.
6046     for ac_exec_ext in '' $ac_executable_extensions; do
6047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050     break 2
6051   fi
6052 done
6053   done
6054 IFS=$as_save_IFS
6055
6056 fi
6057 fi
6058 STRIP=$ac_cv_prog_STRIP
6059 if test -n "$STRIP"; then
6060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6061 $as_echo "$STRIP" >&6; }
6062 else
6063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6065 fi
6066
6067
6068 fi
6069 if test -z "$ac_cv_prog_STRIP"; then
6070   ac_ct_STRIP=$STRIP
6071   # Extract the first word of "strip", so it can be a program name with args.
6072 set dummy strip; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   if test -n "$ac_ct_STRIP"; then
6079   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6083 do
6084   IFS=$as_save_IFS
6085   test -z "$as_dir" && as_dir=.
6086     for ac_exec_ext in '' $ac_executable_extensions; do
6087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088     ac_cv_prog_ac_ct_STRIP="strip"
6089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090     break 2
6091   fi
6092 done
6093   done
6094 IFS=$as_save_IFS
6095
6096 fi
6097 fi
6098 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6099 if test -n "$ac_ct_STRIP"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6101 $as_echo "$ac_ct_STRIP" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107   if test "x$ac_ct_STRIP" = x; then
6108     STRIP=":"
6109   else
6110     case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116     STRIP=$ac_ct_STRIP
6117   fi
6118 else
6119   STRIP="$ac_cv_prog_STRIP"
6120 fi
6121
6122 test -z "$STRIP" && STRIP=:
6123
6124
6125
6126
6127
6128
6129 if test -n "$ac_tool_prefix"; then
6130   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6131 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133 $as_echo_n "checking for $ac_word... " >&6; }
6134 if ${ac_cv_prog_RANLIB+:} false; then :
6135   $as_echo_n "(cached) " >&6
6136 else
6137   if test -n "$RANLIB"; then
6138   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6139 else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141 for as_dir in $PATH
6142 do
6143   IFS=$as_save_IFS
6144   test -z "$as_dir" && as_dir=.
6145     for ac_exec_ext in '' $ac_executable_extensions; do
6146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149     break 2
6150   fi
6151 done
6152   done
6153 IFS=$as_save_IFS
6154
6155 fi
6156 fi
6157 RANLIB=$ac_cv_prog_RANLIB
6158 if test -n "$RANLIB"; then
6159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6160 $as_echo "$RANLIB" >&6; }
6161 else
6162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6164 fi
6165
6166
6167 fi
6168 if test -z "$ac_cv_prog_RANLIB"; then
6169   ac_ct_RANLIB=$RANLIB
6170   # Extract the first word of "ranlib", so it can be a program name with args.
6171 set dummy ranlib; ac_word=$2
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173 $as_echo_n "checking for $ac_word... " >&6; }
6174 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6175   $as_echo_n "(cached) " >&6
6176 else
6177   if test -n "$ac_ct_RANLIB"; then
6178   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6179 else
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181 for as_dir in $PATH
6182 do
6183   IFS=$as_save_IFS
6184   test -z "$as_dir" && as_dir=.
6185     for ac_exec_ext in '' $ac_executable_extensions; do
6186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187     ac_cv_prog_ac_ct_RANLIB="ranlib"
6188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189     break 2
6190   fi
6191 done
6192   done
6193 IFS=$as_save_IFS
6194
6195 fi
6196 fi
6197 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6198 if test -n "$ac_ct_RANLIB"; then
6199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6200 $as_echo "$ac_ct_RANLIB" >&6; }
6201 else
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203 $as_echo "no" >&6; }
6204 fi
6205
6206   if test "x$ac_ct_RANLIB" = x; then
6207     RANLIB=":"
6208   else
6209     case $cross_compiling:$ac_tool_warned in
6210 yes:)
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6213 ac_tool_warned=yes ;;
6214 esac
6215     RANLIB=$ac_ct_RANLIB
6216   fi
6217 else
6218   RANLIB="$ac_cv_prog_RANLIB"
6219 fi
6220
6221 test -z "$RANLIB" && RANLIB=:
6222
6223
6224
6225
6226
6227
6228 # Determine commands to create old-style static archives.
6229 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6230 old_postinstall_cmds='chmod 644 $oldlib'
6231 old_postuninstall_cmds=
6232
6233 if test -n "$RANLIB"; then
6234   case $host_os in
6235   openbsd*)
6236     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6237     ;;
6238   *)
6239     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6240     ;;
6241   esac
6242   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6243 fi
6244
6245 case $host_os in
6246   darwin*)
6247     lock_old_archive_extraction=yes ;;
6248   *)
6249     lock_old_archive_extraction=no ;;
6250 esac
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290 # If no C compiler was specified, use CC.
6291 LTCC=${LTCC-"$CC"}
6292
6293 # If no C compiler flags were specified, use CFLAGS.
6294 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6295
6296 # Allow CC to be a program name with arguments.
6297 compiler=$CC
6298
6299
6300 # Check for command to grab the raw symbol name followed by C symbol from nm.
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6302 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6303 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6304   $as_echo_n "(cached) " >&6
6305 else
6306
6307 # These are sane defaults that work on at least a few old systems.
6308 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6309
6310 # Character class describing NM global symbol codes.
6311 symcode='[BCDEGRST]'
6312
6313 # Regexp to match symbols that can be accessed directly from C.
6314 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6315
6316 # Define system-specific variables.
6317 case $host_os in
6318 aix*)
6319   symcode='[BCDT]'
6320   ;;
6321 cygwin* | mingw* | pw32* | cegcc*)
6322   symcode='[ABCDGISTW]'
6323   ;;
6324 hpux*)
6325   if test "$host_cpu" = ia64; then
6326     symcode='[ABCDEGRST]'
6327   fi
6328   ;;
6329 irix* | nonstopux*)
6330   symcode='[BCDEGRST]'
6331   ;;
6332 osf*)
6333   symcode='[BCDEGQRST]'
6334   ;;
6335 solaris*)
6336   symcode='[BDRT]'
6337   ;;
6338 sco3.2v5*)
6339   symcode='[DT]'
6340   ;;
6341 sysv4.2uw2*)
6342   symcode='[DT]'
6343   ;;
6344 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6345   symcode='[ABDT]'
6346   ;;
6347 sysv4)
6348   symcode='[DFNSTU]'
6349   ;;
6350 esac
6351
6352 # If we're using GNU nm, then use its standard symbol codes.
6353 case `$NM -V 2>&1` in
6354 *GNU* | *'with BFD'*)
6355   symcode='[ABCDGIRSTW]' ;;
6356 esac
6357
6358 # Transform an extracted symbol line into a proper C declaration.
6359 # Some systems (esp. on ia64) link data and code symbols differently,
6360 # so use this general approach.
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6362
6363 # Transform an extracted symbol line into symbol name and symbol address
6364 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6365 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'"
6366
6367 # Handle CRLF in mingw tool chain
6368 opt_cr=
6369 case $build_os in
6370 mingw*)
6371   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6372   ;;
6373 esac
6374
6375 # Try without a prefix underscore, then with it.
6376 for ac_symprfx in "" "_"; do
6377
6378   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6379   symxfrm="\\1 $ac_symprfx\\2 \\2"
6380
6381   # Write the raw and C identifiers.
6382   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6383     # Fake it for dumpbin and say T for any non-static function
6384     # and D for any global variable.
6385     # Also find C++ and __fastcall symbols from MSVC++,
6386     # which start with @ or ?.
6387     lt_cv_sys_global_symbol_pipe="$AWK '"\
6388 "     {last_section=section; section=\$ 3};"\
6389 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6390 "     \$ 0!~/External *\|/{next};"\
6391 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6392 "     {if(hide[section]) next};"\
6393 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6394 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6395 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6396 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6397 "     ' prfx=^$ac_symprfx"
6398   else
6399     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6400   fi
6401   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6402
6403   # Check to see that the pipe works correctly.
6404   pipe_works=no
6405
6406   rm -f conftest*
6407   cat > conftest.$ac_ext <<_LT_EOF
6408 #ifdef __cplusplus
6409 extern "C" {
6410 #endif
6411 char nm_test_var;
6412 void nm_test_func(void);
6413 void nm_test_func(void){}
6414 #ifdef __cplusplus
6415 }
6416 #endif
6417 int main(){nm_test_var='a';nm_test_func();return(0);}
6418 _LT_EOF
6419
6420   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6421   (eval $ac_compile) 2>&5
6422   ac_status=$?
6423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424   test $ac_status = 0; }; then
6425     # Now try to grab the symbols.
6426     nlist=conftest.nm
6427     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6428   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6429   ac_status=$?
6430   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6431   test $ac_status = 0; } && test -s "$nlist"; then
6432       # Try sorting and uniquifying the output.
6433       if sort "$nlist" | uniq > "$nlist"T; then
6434         mv -f "$nlist"T "$nlist"
6435       else
6436         rm -f "$nlist"T
6437       fi
6438
6439       # Make sure that we snagged all the symbols we need.
6440       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6441         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6442           cat <<_LT_EOF > conftest.$ac_ext
6443 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6444 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6445 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6446    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6447 # define LT_DLSYM_CONST
6448 #elif defined(__osf__)
6449 /* This system does not cope well with relocations in const data.  */
6450 # define LT_DLSYM_CONST
6451 #else
6452 # define LT_DLSYM_CONST const
6453 #endif
6454
6455 #ifdef __cplusplus
6456 extern "C" {
6457 #endif
6458
6459 _LT_EOF
6460           # Now generate the symbol file.
6461           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6462
6463           cat <<_LT_EOF >> conftest.$ac_ext
6464
6465 /* The mapping between symbol names and symbols.  */
6466 LT_DLSYM_CONST struct {
6467   const char *name;
6468   void       *address;
6469 }
6470 lt__PROGRAM__LTX_preloaded_symbols[] =
6471 {
6472   { "@PROGRAM@", (void *) 0 },
6473 _LT_EOF
6474           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6475           cat <<\_LT_EOF >> conftest.$ac_ext
6476   {0, (void *) 0}
6477 };
6478
6479 /* This works around a problem in FreeBSD linker */
6480 #ifdef FREEBSD_WORKAROUND
6481 static const void *lt_preloaded_setup() {
6482   return lt__PROGRAM__LTX_preloaded_symbols;
6483 }
6484 #endif
6485
6486 #ifdef __cplusplus
6487 }
6488 #endif
6489 _LT_EOF
6490           # Now try linking the two files.
6491           mv conftest.$ac_objext conftstm.$ac_objext
6492           lt_globsym_save_LIBS=$LIBS
6493           lt_globsym_save_CFLAGS=$CFLAGS
6494           LIBS="conftstm.$ac_objext"
6495           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6496           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6497   (eval $ac_link) 2>&5
6498   ac_status=$?
6499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6500   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6501             pipe_works=yes
6502           fi
6503           LIBS=$lt_globsym_save_LIBS
6504           CFLAGS=$lt_globsym_save_CFLAGS
6505         else
6506           echo "cannot find nm_test_func in $nlist" >&5
6507         fi
6508       else
6509         echo "cannot find nm_test_var in $nlist" >&5
6510       fi
6511     else
6512       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6513     fi
6514   else
6515     echo "$progname: failed program was:" >&5
6516     cat conftest.$ac_ext >&5
6517   fi
6518   rm -rf conftest* conftst*
6519
6520   # Do not use the global_symbol_pipe unless it works.
6521   if test "$pipe_works" = yes; then
6522     break
6523   else
6524     lt_cv_sys_global_symbol_pipe=
6525   fi
6526 done
6527
6528 fi
6529
6530 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6531   lt_cv_sys_global_symbol_to_cdecl=
6532 fi
6533 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6535 $as_echo "failed" >&6; }
6536 else
6537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6538 $as_echo "ok" >&6; }
6539 fi
6540
6541 # Response file support.
6542 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6543   nm_file_list_spec='@'
6544 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6545   nm_file_list_spec='@'
6546 fi
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6575 $as_echo_n "checking for sysroot... " >&6; }
6576
6577 # Check whether --with-sysroot was given.
6578 if test "${with_sysroot+set}" = set; then :
6579   withval=$with_sysroot;
6580 else
6581   with_sysroot=no
6582 fi
6583
6584
6585 lt_sysroot=
6586 case ${with_sysroot} in #(
6587  yes)
6588    if test "$GCC" = yes; then
6589      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6590    fi
6591    ;; #(
6592  /*)
6593    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6594    ;; #(
6595  no|'')
6596    ;; #(
6597  *)
6598    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6599 $as_echo "${with_sysroot}" >&6; }
6600    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6601    ;;
6602 esac
6603
6604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6605 $as_echo "${lt_sysroot:-no}" >&6; }
6606
6607
6608
6609
6610
6611 # Check whether --enable-libtool-lock was given.
6612 if test "${enable_libtool_lock+set}" = set; then :
6613   enableval=$enable_libtool_lock;
6614 fi
6615
6616 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6617
6618 # Some flags need to be propagated to the compiler or linker for good
6619 # libtool support.
6620 case $host in
6621 ia64-*-hpux*)
6622   # Find out which ABI we are using.
6623   echo 'int i;' > conftest.$ac_ext
6624   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6625   (eval $ac_compile) 2>&5
6626   ac_status=$?
6627   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6628   test $ac_status = 0; }; then
6629     case `/usr/bin/file conftest.$ac_objext` in
6630       *ELF-32*)
6631         HPUX_IA64_MODE="32"
6632         ;;
6633       *ELF-64*)
6634         HPUX_IA64_MODE="64"
6635         ;;
6636     esac
6637   fi
6638   rm -rf conftest*
6639   ;;
6640 *-*-irix6*)
6641   # Find out which ABI we are using.
6642   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6643   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6644   (eval $ac_compile) 2>&5
6645   ac_status=$?
6646   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6647   test $ac_status = 0; }; then
6648     if test "$lt_cv_prog_gnu_ld" = yes; then
6649       case `/usr/bin/file conftest.$ac_objext` in
6650         *32-bit*)
6651           LD="${LD-ld} -melf32bsmip"
6652           ;;
6653         *N32*)
6654           LD="${LD-ld} -melf32bmipn32"
6655           ;;
6656         *64-bit*)
6657           LD="${LD-ld} -melf64bmip"
6658         ;;
6659       esac
6660     else
6661       case `/usr/bin/file conftest.$ac_objext` in
6662         *32-bit*)
6663           LD="${LD-ld} -32"
6664           ;;
6665         *N32*)
6666           LD="${LD-ld} -n32"
6667           ;;
6668         *64-bit*)
6669           LD="${LD-ld} -64"
6670           ;;
6671       esac
6672     fi
6673   fi
6674   rm -rf conftest*
6675   ;;
6676
6677 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6678 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6679   # Find out which ABI we are using.
6680   echo 'int i;' > conftest.$ac_ext
6681   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6682   (eval $ac_compile) 2>&5
6683   ac_status=$?
6684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6685   test $ac_status = 0; }; then
6686     case `/usr/bin/file conftest.o` in
6687       *32-bit*)
6688         case $host in
6689           x86_64-*kfreebsd*-gnu)
6690             LD="${LD-ld} -m elf_i386_fbsd"
6691             ;;
6692           x86_64-*linux*)
6693             LD="${LD-ld} -m elf_i386"
6694             ;;
6695           ppc64-*linux*|powerpc64-*linux*)
6696             LD="${LD-ld} -m elf32ppclinux"
6697             ;;
6698           s390x-*linux*)
6699             LD="${LD-ld} -m elf_s390"
6700             ;;
6701           sparc64-*linux*)
6702             LD="${LD-ld} -m elf32_sparc"
6703             ;;
6704         esac
6705         ;;
6706       *64-bit*)
6707         case $host in
6708           x86_64-*kfreebsd*-gnu)
6709             LD="${LD-ld} -m elf_x86_64_fbsd"
6710             ;;
6711           x86_64-*linux*)
6712             LD="${LD-ld} -m elf_x86_64"
6713             ;;
6714           ppc*-*linux*|powerpc*-*linux*)
6715             LD="${LD-ld} -m elf64ppc"
6716             ;;
6717           s390*-*linux*|s390*-*tpf*)
6718             LD="${LD-ld} -m elf64_s390"
6719             ;;
6720           sparc*-*linux*)
6721             LD="${LD-ld} -m elf64_sparc"
6722             ;;
6723         esac
6724         ;;
6725     esac
6726   fi
6727   rm -rf conftest*
6728   ;;
6729
6730 *-*-sco3.2v5*)
6731   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6732   SAVE_CFLAGS="$CFLAGS"
6733   CFLAGS="$CFLAGS -belf"
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6735 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6736 if ${lt_cv_cc_needs_belf+:} false; then :
6737   $as_echo_n "(cached) " >&6
6738 else
6739   ac_ext=c
6740 ac_cpp='$CPP $CPPFLAGS'
6741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6744
6745      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h.  */
6747
6748 int
6749 main ()
6750 {
6751
6752   ;
6753   return 0;
6754 }
6755 _ACEOF
6756 if ac_fn_c_try_link "$LINENO"; then :
6757   lt_cv_cc_needs_belf=yes
6758 else
6759   lt_cv_cc_needs_belf=no
6760 fi
6761 rm -f core conftest.err conftest.$ac_objext \
6762     conftest$ac_exeext conftest.$ac_ext
6763      ac_ext=c
6764 ac_cpp='$CPP $CPPFLAGS'
6765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6768
6769 fi
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6771 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6772   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6773     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6774     CFLAGS="$SAVE_CFLAGS"
6775   fi
6776   ;;
6777 sparc*-*solaris*)
6778   # Find out which ABI we are using.
6779   echo 'int i;' > conftest.$ac_ext
6780   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6781   (eval $ac_compile) 2>&5
6782   ac_status=$?
6783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784   test $ac_status = 0; }; then
6785     case `/usr/bin/file conftest.o` in
6786     *64-bit*)
6787       case $lt_cv_prog_gnu_ld in
6788       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6789       *)
6790         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6791           LD="${LD-ld} -64"
6792         fi
6793         ;;
6794       esac
6795       ;;
6796     esac
6797   fi
6798   rm -rf conftest*
6799   ;;
6800 esac
6801
6802 need_locks="$enable_libtool_lock"
6803
6804 if test -n "$ac_tool_prefix"; then
6805   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}mt; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   if test -n "$MANIFEST_TOOL"; then
6813   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820     for ac_exec_ext in '' $ac_executable_extensions; do
6821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827   done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6833 if test -n "$MANIFEST_TOOL"; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6835 $as_echo "$MANIFEST_TOOL" >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841
6842 fi
6843 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6844   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6845   # Extract the first word of "mt", so it can be a program name with args.
6846 set dummy mt; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6850   $as_echo_n "(cached) " >&6
6851 else
6852   if test -n "$ac_ct_MANIFEST_TOOL"; then
6853   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858   IFS=$as_save_IFS
6859   test -z "$as_dir" && as_dir=.
6860     for ac_exec_ext in '' $ac_executable_extensions; do
6861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864     break 2
6865   fi
6866 done
6867   done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6873 if test -n "$ac_ct_MANIFEST_TOOL"; then
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6875 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6876 else
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6882     MANIFEST_TOOL=":"
6883   else
6884     case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6891   fi
6892 else
6893   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6894 fi
6895
6896 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6898 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6899 if ${lt_cv_path_mainfest_tool+:} false; then :
6900   $as_echo_n "(cached) " >&6
6901 else
6902   lt_cv_path_mainfest_tool=no
6903   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6904   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6905   cat conftest.err >&5
6906   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6907     lt_cv_path_mainfest_tool=yes
6908   fi
6909   rm -f conftest*
6910 fi
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6912 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6913 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6914   MANIFEST_TOOL=:
6915 fi
6916
6917
6918
6919
6920
6921
6922   case $host_os in
6923     rhapsody* | darwin*)
6924     if test -n "$ac_tool_prefix"; then
6925   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6926 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6928 $as_echo_n "checking for $ac_word... " >&6; }
6929 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6930   $as_echo_n "(cached) " >&6
6931 else
6932   if test -n "$DSYMUTIL"; then
6933   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6934 else
6935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 for as_dir in $PATH
6937 do
6938   IFS=$as_save_IFS
6939   test -z "$as_dir" && as_dir=.
6940     for ac_exec_ext in '' $ac_executable_extensions; do
6941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6942     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6944     break 2
6945   fi
6946 done
6947   done
6948 IFS=$as_save_IFS
6949
6950 fi
6951 fi
6952 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6953 if test -n "$DSYMUTIL"; then
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6955 $as_echo "$DSYMUTIL" >&6; }
6956 else
6957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6958 $as_echo "no" >&6; }
6959 fi
6960
6961
6962 fi
6963 if test -z "$ac_cv_prog_DSYMUTIL"; then
6964   ac_ct_DSYMUTIL=$DSYMUTIL
6965   # Extract the first word of "dsymutil", so it can be a program name with args.
6966 set dummy dsymutil; ac_word=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6970   $as_echo_n "(cached) " >&6
6971 else
6972   if test -n "$ac_ct_DSYMUTIL"; then
6973   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6974 else
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in $PATH
6977 do
6978   IFS=$as_save_IFS
6979   test -z "$as_dir" && as_dir=.
6980     for ac_exec_ext in '' $ac_executable_extensions; do
6981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6983     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6984     break 2
6985   fi
6986 done
6987   done
6988 IFS=$as_save_IFS
6989
6990 fi
6991 fi
6992 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6993 if test -n "$ac_ct_DSYMUTIL"; then
6994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6995 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6996 else
6997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
6999 fi
7000
7001   if test "x$ac_ct_DSYMUTIL" = x; then
7002     DSYMUTIL=":"
7003   else
7004     case $cross_compiling:$ac_tool_warned in
7005 yes:)
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7008 ac_tool_warned=yes ;;
7009 esac
7010     DSYMUTIL=$ac_ct_DSYMUTIL
7011   fi
7012 else
7013   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7014 fi
7015
7016     if test -n "$ac_tool_prefix"; then
7017   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7018 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_NMEDIT+:} false; then :
7022   $as_echo_n "(cached) " >&6
7023 else
7024   if test -n "$NMEDIT"; then
7025   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030   IFS=$as_save_IFS
7031   test -z "$as_dir" && as_dir=.
7032     for ac_exec_ext in '' $ac_executable_extensions; do
7033   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7034     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7035     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036     break 2
7037   fi
7038 done
7039   done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 NMEDIT=$ac_cv_prog_NMEDIT
7045 if test -n "$NMEDIT"; then
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7047 $as_echo "$NMEDIT" >&6; }
7048 else
7049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053
7054 fi
7055 if test -z "$ac_cv_prog_NMEDIT"; then
7056   ac_ct_NMEDIT=$NMEDIT
7057   # Extract the first word of "nmedit", so it can be a program name with args.
7058 set dummy nmedit; ac_word=$2
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7060 $as_echo_n "checking for $ac_word... " >&6; }
7061 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7062   $as_echo_n "(cached) " >&6
7063 else
7064   if test -n "$ac_ct_NMEDIT"; then
7065   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7066 else
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 for as_dir in $PATH
7069 do
7070   IFS=$as_save_IFS
7071   test -z "$as_dir" && as_dir=.
7072     for ac_exec_ext in '' $ac_executable_extensions; do
7073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7074     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7076     break 2
7077   fi
7078 done
7079   done
7080 IFS=$as_save_IFS
7081
7082 fi
7083 fi
7084 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7085 if test -n "$ac_ct_NMEDIT"; then
7086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7087 $as_echo "$ac_ct_NMEDIT" >&6; }
7088 else
7089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7090 $as_echo "no" >&6; }
7091 fi
7092
7093   if test "x$ac_ct_NMEDIT" = x; then
7094     NMEDIT=":"
7095   else
7096     case $cross_compiling:$ac_tool_warned in
7097 yes:)
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7100 ac_tool_warned=yes ;;
7101 esac
7102     NMEDIT=$ac_ct_NMEDIT
7103   fi
7104 else
7105   NMEDIT="$ac_cv_prog_NMEDIT"
7106 fi
7107
7108     if test -n "$ac_tool_prefix"; then
7109   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7110 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 $as_echo_n "checking for $ac_word... " >&6; }
7113 if ${ac_cv_prog_LIPO+:} false; then :
7114   $as_echo_n "(cached) " >&6
7115 else
7116   if test -n "$LIPO"; then
7117   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7118 else
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH
7121 do
7122   IFS=$as_save_IFS
7123   test -z "$as_dir" && as_dir=.
7124     for ac_exec_ext in '' $ac_executable_extensions; do
7125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7126     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7128     break 2
7129   fi
7130 done
7131   done
7132 IFS=$as_save_IFS
7133
7134 fi
7135 fi
7136 LIPO=$ac_cv_prog_LIPO
7137 if test -n "$LIPO"; then
7138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7139 $as_echo "$LIPO" >&6; }
7140 else
7141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }
7143 fi
7144
7145
7146 fi
7147 if test -z "$ac_cv_prog_LIPO"; then
7148   ac_ct_LIPO=$LIPO
7149   # Extract the first word of "lipo", so it can be a program name with args.
7150 set dummy lipo; ac_word=$2
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7152 $as_echo_n "checking for $ac_word... " >&6; }
7153 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156   if test -n "$ac_ct_LIPO"; then
7157   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7158 else
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7160 for as_dir in $PATH
7161 do
7162   IFS=$as_save_IFS
7163   test -z "$as_dir" && as_dir=.
7164     for ac_exec_ext in '' $ac_executable_extensions; do
7165   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7166     ac_cv_prog_ac_ct_LIPO="lipo"
7167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7168     break 2
7169   fi
7170 done
7171   done
7172 IFS=$as_save_IFS
7173
7174 fi
7175 fi
7176 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7177 if test -n "$ac_ct_LIPO"; then
7178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7179 $as_echo "$ac_ct_LIPO" >&6; }
7180 else
7181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 fi
7184
7185   if test "x$ac_ct_LIPO" = x; then
7186     LIPO=":"
7187   else
7188     case $cross_compiling:$ac_tool_warned in
7189 yes:)
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7192 ac_tool_warned=yes ;;
7193 esac
7194     LIPO=$ac_ct_LIPO
7195   fi
7196 else
7197   LIPO="$ac_cv_prog_LIPO"
7198 fi
7199
7200     if test -n "$ac_tool_prefix"; then
7201   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7202 set dummy ${ac_tool_prefix}otool; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_prog_OTOOL+:} false; then :
7206   $as_echo_n "(cached) " >&6
7207 else
7208   if test -n "$OTOOL"; then
7209   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7210 else
7211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7212 for as_dir in $PATH
7213 do
7214   IFS=$as_save_IFS
7215   test -z "$as_dir" && as_dir=.
7216     for ac_exec_ext in '' $ac_executable_extensions; do
7217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7218     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7219     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7220     break 2
7221   fi
7222 done
7223   done
7224 IFS=$as_save_IFS
7225
7226 fi
7227 fi
7228 OTOOL=$ac_cv_prog_OTOOL
7229 if test -n "$OTOOL"; then
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7231 $as_echo "$OTOOL" >&6; }
7232 else
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7234 $as_echo "no" >&6; }
7235 fi
7236
7237
7238 fi
7239 if test -z "$ac_cv_prog_OTOOL"; then
7240   ac_ct_OTOOL=$OTOOL
7241   # Extract the first word of "otool", so it can be a program name with args.
7242 set dummy otool; ac_word=$2
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244 $as_echo_n "checking for $ac_word... " >&6; }
7245 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7246   $as_echo_n "(cached) " >&6
7247 else
7248   if test -n "$ac_ct_OTOOL"; then
7249   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7250 else
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7252 for as_dir in $PATH
7253 do
7254   IFS=$as_save_IFS
7255   test -z "$as_dir" && as_dir=.
7256     for ac_exec_ext in '' $ac_executable_extensions; do
7257   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258     ac_cv_prog_ac_ct_OTOOL="otool"
7259     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260     break 2
7261   fi
7262 done
7263   done
7264 IFS=$as_save_IFS
7265
7266 fi
7267 fi
7268 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7269 if test -n "$ac_ct_OTOOL"; then
7270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7271 $as_echo "$ac_ct_OTOOL" >&6; }
7272 else
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274 $as_echo "no" >&6; }
7275 fi
7276
7277   if test "x$ac_ct_OTOOL" = x; then
7278     OTOOL=":"
7279   else
7280     case $cross_compiling:$ac_tool_warned in
7281 yes:)
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7284 ac_tool_warned=yes ;;
7285 esac
7286     OTOOL=$ac_ct_OTOOL
7287   fi
7288 else
7289   OTOOL="$ac_cv_prog_OTOOL"
7290 fi
7291
7292     if test -n "$ac_tool_prefix"; then
7293   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7294 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7296 $as_echo_n "checking for $ac_word... " >&6; }
7297 if ${ac_cv_prog_OTOOL64+:} false; then :
7298   $as_echo_n "(cached) " >&6
7299 else
7300   if test -n "$OTOOL64"; then
7301   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7302 else
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304 for as_dir in $PATH
7305 do
7306   IFS=$as_save_IFS
7307   test -z "$as_dir" && as_dir=.
7308     for ac_exec_ext in '' $ac_executable_extensions; do
7309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7310     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7312     break 2
7313   fi
7314 done
7315   done
7316 IFS=$as_save_IFS
7317
7318 fi
7319 fi
7320 OTOOL64=$ac_cv_prog_OTOOL64
7321 if test -n "$OTOOL64"; then
7322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7323 $as_echo "$OTOOL64" >&6; }
7324 else
7325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7327 fi
7328
7329
7330 fi
7331 if test -z "$ac_cv_prog_OTOOL64"; then
7332   ac_ct_OTOOL64=$OTOOL64
7333   # Extract the first word of "otool64", so it can be a program name with args.
7334 set dummy otool64; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7338   $as_echo_n "(cached) " >&6
7339 else
7340   if test -n "$ac_ct_OTOOL64"; then
7341   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7342 else
7343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7344 for as_dir in $PATH
7345 do
7346   IFS=$as_save_IFS
7347   test -z "$as_dir" && as_dir=.
7348     for ac_exec_ext in '' $ac_executable_extensions; do
7349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7350     ac_cv_prog_ac_ct_OTOOL64="otool64"
7351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7352     break 2
7353   fi
7354 done
7355   done
7356 IFS=$as_save_IFS
7357
7358 fi
7359 fi
7360 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7361 if test -n "$ac_ct_OTOOL64"; then
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7363 $as_echo "$ac_ct_OTOOL64" >&6; }
7364 else
7365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7366 $as_echo "no" >&6; }
7367 fi
7368
7369   if test "x$ac_ct_OTOOL64" = x; then
7370     OTOOL64=":"
7371   else
7372     case $cross_compiling:$ac_tool_warned in
7373 yes:)
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7376 ac_tool_warned=yes ;;
7377 esac
7378     OTOOL64=$ac_ct_OTOOL64
7379   fi
7380 else
7381   OTOOL64="$ac_cv_prog_OTOOL64"
7382 fi
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7411 $as_echo_n "checking for -single_module linker flag... " >&6; }
7412 if ${lt_cv_apple_cc_single_mod+:} false; then :
7413   $as_echo_n "(cached) " >&6
7414 else
7415   lt_cv_apple_cc_single_mod=no
7416       if test -z "${LT_MULTI_MODULE}"; then
7417         # By default we will add the -single_module flag. You can override
7418         # by either setting the environment variable LT_MULTI_MODULE
7419         # non-empty at configure time, or by adding -multi_module to the
7420         # link flags.
7421         rm -rf libconftest.dylib*
7422         echo "int foo(void){return 1;}" > conftest.c
7423         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7424 -dynamiclib -Wl,-single_module conftest.c" >&5
7425         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7426           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7427         _lt_result=$?
7428         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7429           lt_cv_apple_cc_single_mod=yes
7430         else
7431           cat conftest.err >&5
7432         fi
7433         rm -rf libconftest.dylib*
7434         rm -f conftest.*
7435       fi
7436 fi
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7438 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7439     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7440 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7441 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7442   $as_echo_n "(cached) " >&6
7443 else
7444   lt_cv_ld_exported_symbols_list=no
7445       save_LDFLAGS=$LDFLAGS
7446       echo "_main" > conftest.sym
7447       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7448       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449 /* end confdefs.h.  */
7450
7451 int
7452 main ()
7453 {
7454
7455   ;
7456   return 0;
7457 }
7458 _ACEOF
7459 if ac_fn_c_try_link "$LINENO"; then :
7460   lt_cv_ld_exported_symbols_list=yes
7461 else
7462   lt_cv_ld_exported_symbols_list=no
7463 fi
7464 rm -f core conftest.err conftest.$ac_objext \
7465     conftest$ac_exeext conftest.$ac_ext
7466         LDFLAGS="$save_LDFLAGS"
7467
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7470 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7472 $as_echo_n "checking for -force_load linker flag... " >&6; }
7473 if ${lt_cv_ld_force_load+:} false; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   lt_cv_ld_force_load=no
7477       cat > conftest.c << _LT_EOF
7478 int forced_loaded() { return 2;}
7479 _LT_EOF
7480       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7481       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7482       echo "$AR cru libconftest.a conftest.o" >&5
7483       $AR cru libconftest.a conftest.o 2>&5
7484       echo "$RANLIB libconftest.a" >&5
7485       $RANLIB libconftest.a 2>&5
7486       cat > conftest.c << _LT_EOF
7487 int main() { return 0;}
7488 _LT_EOF
7489       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7490       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7491       _lt_result=$?
7492       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7493         lt_cv_ld_force_load=yes
7494       else
7495         cat conftest.err >&5
7496       fi
7497         rm -f conftest.err libconftest.a conftest conftest.c
7498         rm -rf conftest.dSYM
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7502 $as_echo "$lt_cv_ld_force_load" >&6; }
7503     case $host_os in
7504     rhapsody* | darwin1.[012])
7505       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7506     darwin1.*)
7507       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7508     darwin*) # darwin 5.x on
7509       # if running on 10.5 or later, the deployment target defaults
7510       # to the OS version, if on x86, and 10.4, the deployment
7511       # target defaults to 10.4. Don't you love it?
7512       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7513         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7514           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7515         10.[012]*)
7516           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7517         10.*)
7518           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7519       esac
7520     ;;
7521   esac
7522     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7523       _lt_dar_single_mod='$single_module'
7524     fi
7525     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7526       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7527     else
7528       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7529     fi
7530     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7531       _lt_dsymutil='~$DSYMUTIL $lib || :'
7532     else
7533       _lt_dsymutil=
7534     fi
7535     ;;
7536   esac
7537
7538 ac_ext=c
7539 ac_cpp='$CPP $CPPFLAGS'
7540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7544 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7545 # On Suns, sometimes $CPP names a directory.
7546 if test -n "$CPP" && test -d "$CPP"; then
7547   CPP=
7548 fi
7549 if test -z "$CPP"; then
7550   if ${ac_cv_prog_CPP+:} false; then :
7551   $as_echo_n "(cached) " >&6
7552 else
7553       # Double quotes because CPP needs to be expanded
7554     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7555     do
7556       ac_preproc_ok=false
7557 for ac_c_preproc_warn_flag in '' yes
7558 do
7559   # Use a header file that comes with gcc, so configuring glibc
7560   # with a fresh cross-compiler works.
7561   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7562   # <limits.h> exists even on freestanding compilers.
7563   # On the NeXT, cc -E runs the code through the compiler's parser,
7564   # not just through cpp. "Syntax error" is here to catch this case.
7565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7566 /* end confdefs.h.  */
7567 #ifdef __STDC__
7568 # include <limits.h>
7569 #else
7570 # include <assert.h>
7571 #endif
7572                      Syntax error
7573 _ACEOF
7574 if ac_fn_c_try_cpp "$LINENO"; then :
7575
7576 else
7577   # Broken: fails on valid input.
7578 continue
7579 fi
7580 rm -f conftest.err conftest.i conftest.$ac_ext
7581
7582   # OK, works on sane cases.  Now check whether nonexistent headers
7583   # can be detected and how.
7584   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h.  */
7586 #include <ac_nonexistent.h>
7587 _ACEOF
7588 if ac_fn_c_try_cpp "$LINENO"; then :
7589   # Broken: success on invalid input.
7590 continue
7591 else
7592   # Passes both tests.
7593 ac_preproc_ok=:
7594 break
7595 fi
7596 rm -f conftest.err conftest.i conftest.$ac_ext
7597
7598 done
7599 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7600 rm -f conftest.i conftest.err conftest.$ac_ext
7601 if $ac_preproc_ok; then :
7602   break
7603 fi
7604
7605     done
7606     ac_cv_prog_CPP=$CPP
7607
7608 fi
7609   CPP=$ac_cv_prog_CPP
7610 else
7611   ac_cv_prog_CPP=$CPP
7612 fi
7613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7614 $as_echo "$CPP" >&6; }
7615 ac_preproc_ok=false
7616 for ac_c_preproc_warn_flag in '' yes
7617 do
7618   # Use a header file that comes with gcc, so configuring glibc
7619   # with a fresh cross-compiler works.
7620   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7621   # <limits.h> exists even on freestanding compilers.
7622   # On the NeXT, cc -E runs the code through the compiler's parser,
7623   # not just through cpp. "Syntax error" is here to catch this case.
7624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7625 /* end confdefs.h.  */
7626 #ifdef __STDC__
7627 # include <limits.h>
7628 #else
7629 # include <assert.h>
7630 #endif
7631                      Syntax error
7632 _ACEOF
7633 if ac_fn_c_try_cpp "$LINENO"; then :
7634
7635 else
7636   # Broken: fails on valid input.
7637 continue
7638 fi
7639 rm -f conftest.err conftest.i conftest.$ac_ext
7640
7641   # OK, works on sane cases.  Now check whether nonexistent headers
7642   # can be detected and how.
7643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7644 /* end confdefs.h.  */
7645 #include <ac_nonexistent.h>
7646 _ACEOF
7647 if ac_fn_c_try_cpp "$LINENO"; then :
7648   # Broken: success on invalid input.
7649 continue
7650 else
7651   # Passes both tests.
7652 ac_preproc_ok=:
7653 break
7654 fi
7655 rm -f conftest.err conftest.i conftest.$ac_ext
7656
7657 done
7658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7659 rm -f conftest.i conftest.err conftest.$ac_ext
7660 if $ac_preproc_ok; then :
7661
7662 else
7663   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7665 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7666 See \`config.log' for more details" "$LINENO" 5; }
7667 fi
7668
7669 ac_ext=c
7670 ac_cpp='$CPP $CPPFLAGS'
7671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7674
7675
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7677 $as_echo_n "checking for ANSI C header files... " >&6; }
7678 if ${ac_cv_header_stdc+:} false; then :
7679   $as_echo_n "(cached) " >&6
7680 else
7681   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7682 /* end confdefs.h.  */
7683 #include <stdlib.h>
7684 #include <stdarg.h>
7685 #include <string.h>
7686 #include <float.h>
7687
7688 int
7689 main ()
7690 {
7691
7692   ;
7693   return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_compile "$LINENO"; then :
7697   ac_cv_header_stdc=yes
7698 else
7699   ac_cv_header_stdc=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702
7703 if test $ac_cv_header_stdc = yes; then
7704   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7706 /* end confdefs.h.  */
7707 #include <string.h>
7708
7709 _ACEOF
7710 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7711   $EGREP "memchr" >/dev/null 2>&1; then :
7712
7713 else
7714   ac_cv_header_stdc=no
7715 fi
7716 rm -f conftest*
7717
7718 fi
7719
7720 if test $ac_cv_header_stdc = yes; then
7721   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h.  */
7724 #include <stdlib.h>
7725
7726 _ACEOF
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728   $EGREP "free" >/dev/null 2>&1; then :
7729
7730 else
7731   ac_cv_header_stdc=no
7732 fi
7733 rm -f conftest*
7734
7735 fi
7736
7737 if test $ac_cv_header_stdc = yes; then
7738   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7739   if test "$cross_compiling" = yes; then :
7740   :
7741 else
7742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h.  */
7744 #include <ctype.h>
7745 #include <stdlib.h>
7746 #if ((' ' & 0x0FF) == 0x020)
7747 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7748 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7749 #else
7750 # define ISLOWER(c) \
7751                    (('a' <= (c) && (c) <= 'i') \
7752                      || ('j' <= (c) && (c) <= 'r') \
7753                      || ('s' <= (c) && (c) <= 'z'))
7754 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7755 #endif
7756
7757 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7758 int
7759 main ()
7760 {
7761   int i;
7762   for (i = 0; i < 256; i++)
7763     if (XOR (islower (i), ISLOWER (i))
7764         || toupper (i) != TOUPPER (i))
7765       return 2;
7766   return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_run "$LINENO"; then :
7770
7771 else
7772   ac_cv_header_stdc=no
7773 fi
7774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7775   conftest.$ac_objext conftest.beam conftest.$ac_ext
7776 fi
7777
7778 fi
7779 fi
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7781 $as_echo "$ac_cv_header_stdc" >&6; }
7782 if test $ac_cv_header_stdc = yes; then
7783
7784 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7785
7786 fi
7787
7788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7789 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7790                   inttypes.h stdint.h unistd.h
7791 do :
7792   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7793 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7794 "
7795 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7796   cat >>confdefs.h <<_ACEOF
7797 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7798 _ACEOF
7799
7800 fi
7801
7802 done
7803
7804
7805 for ac_header in dlfcn.h
7806 do :
7807   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7808 "
7809 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7810   cat >>confdefs.h <<_ACEOF
7811 #define HAVE_DLFCN_H 1
7812 _ACEOF
7813
7814 fi
7815
7816 done
7817
7818
7819
7820
7821
7822 # Set options
7823 # Check whether --enable-static was given.
7824 if test "${enable_static+set}" = set; then :
7825   enableval=$enable_static; p=${PACKAGE-default}
7826     case $enableval in
7827     yes) enable_static=yes ;;
7828     no) enable_static=no ;;
7829     *)
7830      enable_static=no
7831       # Look at the argument we got.  We use all the common list separators.
7832       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7833       for pkg in $enableval; do
7834         IFS="$lt_save_ifs"
7835         if test "X$pkg" = "X$p"; then
7836           enable_static=yes
7837         fi
7838       done
7839       IFS="$lt_save_ifs"
7840       ;;
7841     esac
7842 else
7843   enable_static=no
7844 fi
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855         enable_dlopen=no
7856
7857
7858   enable_win32_dll=no
7859
7860
7861             # Check whether --enable-shared was given.
7862 if test "${enable_shared+set}" = set; then :
7863   enableval=$enable_shared; p=${PACKAGE-default}
7864     case $enableval in
7865     yes) enable_shared=yes ;;
7866     no) enable_shared=no ;;
7867     *)
7868       enable_shared=no
7869       # Look at the argument we got.  We use all the common list separators.
7870       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7871       for pkg in $enableval; do
7872         IFS="$lt_save_ifs"
7873         if test "X$pkg" = "X$p"; then
7874           enable_shared=yes
7875         fi
7876       done
7877       IFS="$lt_save_ifs"
7878       ;;
7879     esac
7880 else
7881   enable_shared=yes
7882 fi
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894 # Check whether --with-pic was given.
7895 if test "${with_pic+set}" = set; then :
7896   withval=$with_pic; pic_mode="$withval"
7897 else
7898   pic_mode=default
7899 fi
7900
7901
7902 test -z "$pic_mode" && pic_mode=default
7903
7904
7905
7906
7907
7908
7909
7910   # Check whether --enable-fast-install was given.
7911 if test "${enable_fast_install+set}" = set; then :
7912   enableval=$enable_fast_install; p=${PACKAGE-default}
7913     case $enableval in
7914     yes) enable_fast_install=yes ;;
7915     no) enable_fast_install=no ;;
7916     *)
7917       enable_fast_install=no
7918       # Look at the argument we got.  We use all the common list separators.
7919       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7920       for pkg in $enableval; do
7921         IFS="$lt_save_ifs"
7922         if test "X$pkg" = "X$p"; then
7923           enable_fast_install=yes
7924         fi
7925       done
7926       IFS="$lt_save_ifs"
7927       ;;
7928     esac
7929 else
7930   enable_fast_install=yes
7931 fi
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943 # This can be used to rebuild libtool when needed
7944 LIBTOOL_DEPS="$ltmain"
7945
7946 # Always use our own libtool.
7947 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974 test -z "$LN_S" && LN_S="ln -s"
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989 if test -n "${ZSH_VERSION+set}" ; then
7990    setopt NO_GLOB_SUBST
7991 fi
7992
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7994 $as_echo_n "checking for objdir... " >&6; }
7995 if ${lt_cv_objdir+:} false; then :
7996   $as_echo_n "(cached) " >&6
7997 else
7998   rm -f .libs 2>/dev/null
7999 mkdir .libs 2>/dev/null
8000 if test -d .libs; then
8001   lt_cv_objdir=.libs
8002 else
8003   # MS-DOS does not allow filenames that begin with a dot.
8004   lt_cv_objdir=_libs
8005 fi
8006 rmdir .libs 2>/dev/null
8007 fi
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8009 $as_echo "$lt_cv_objdir" >&6; }
8010 objdir=$lt_cv_objdir
8011
8012
8013
8014
8015
8016 cat >>confdefs.h <<_ACEOF
8017 #define LT_OBJDIR "$lt_cv_objdir/"
8018 _ACEOF
8019
8020
8021
8022
8023 case $host_os in
8024 aix3*)
8025   # AIX sometimes has problems with the GCC collect2 program.  For some
8026   # reason, if we set the COLLECT_NAMES environment variable, the problems
8027   # vanish in a puff of smoke.
8028   if test "X${COLLECT_NAMES+set}" != Xset; then
8029     COLLECT_NAMES=
8030     export COLLECT_NAMES
8031   fi
8032   ;;
8033 esac
8034
8035 # Global variables:
8036 ofile=libtool
8037 can_build_shared=yes
8038
8039 # All known linkers require a `.a' archive for static linking (except MSVC,
8040 # which needs '.lib').
8041 libext=a
8042
8043 with_gnu_ld="$lt_cv_prog_gnu_ld"
8044
8045 old_CC="$CC"
8046 old_CFLAGS="$CFLAGS"
8047
8048 # Set sane defaults for various variables
8049 test -z "$CC" && CC=cc
8050 test -z "$LTCC" && LTCC=$CC
8051 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8052 test -z "$LD" && LD=ld
8053 test -z "$ac_objext" && ac_objext=o
8054
8055 for cc_temp in $compiler""; do
8056   case $cc_temp in
8057     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8058     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8059     \-*) ;;
8060     *) break;;
8061   esac
8062 done
8063 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8064
8065
8066 # Only perform the check for file, if the check method requires it
8067 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8068 case $deplibs_check_method in
8069 file_magic*)
8070   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8072 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8073 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8074   $as_echo_n "(cached) " >&6
8075 else
8076   case $MAGIC_CMD in
8077 [\\/*] |  ?:[\\/]*)
8078   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8079   ;;
8080 *)
8081   lt_save_MAGIC_CMD="$MAGIC_CMD"
8082   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8083   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8084   for ac_dir in $ac_dummy; do
8085     IFS="$lt_save_ifs"
8086     test -z "$ac_dir" && ac_dir=.
8087     if test -f $ac_dir/${ac_tool_prefix}file; then
8088       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8089       if test -n "$file_magic_test_file"; then
8090         case $deplibs_check_method in
8091         "file_magic "*)
8092           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8093           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8094           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8095             $EGREP "$file_magic_regex" > /dev/null; then
8096             :
8097           else
8098             cat <<_LT_EOF 1>&2
8099
8100 *** Warning: the command libtool uses to detect shared libraries,
8101 *** $file_magic_cmd, produces output that libtool cannot recognize.
8102 *** The result is that libtool may fail to recognize shared libraries
8103 *** as such.  This will affect the creation of libtool libraries that
8104 *** depend on shared libraries, but programs linked with such libtool
8105 *** libraries will work regardless of this problem.  Nevertheless, you
8106 *** may want to report the problem to your system manager and/or to
8107 *** bug-libtool@gnu.org
8108
8109 _LT_EOF
8110           fi ;;
8111         esac
8112       fi
8113       break
8114     fi
8115   done
8116   IFS="$lt_save_ifs"
8117   MAGIC_CMD="$lt_save_MAGIC_CMD"
8118   ;;
8119 esac
8120 fi
8121
8122 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8123 if test -n "$MAGIC_CMD"; then
8124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8125 $as_echo "$MAGIC_CMD" >&6; }
8126 else
8127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8128 $as_echo "no" >&6; }
8129 fi
8130
8131
8132
8133
8134
8135 if test -z "$lt_cv_path_MAGIC_CMD"; then
8136   if test -n "$ac_tool_prefix"; then
8137     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8138 $as_echo_n "checking for file... " >&6; }
8139 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8140   $as_echo_n "(cached) " >&6
8141 else
8142   case $MAGIC_CMD in
8143 [\\/*] |  ?:[\\/]*)
8144   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8145   ;;
8146 *)
8147   lt_save_MAGIC_CMD="$MAGIC_CMD"
8148   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8149   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8150   for ac_dir in $ac_dummy; do
8151     IFS="$lt_save_ifs"
8152     test -z "$ac_dir" && ac_dir=.
8153     if test -f $ac_dir/file; then
8154       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8155       if test -n "$file_magic_test_file"; then
8156         case $deplibs_check_method in
8157         "file_magic "*)
8158           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8159           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8160           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8161             $EGREP "$file_magic_regex" > /dev/null; then
8162             :
8163           else
8164             cat <<_LT_EOF 1>&2
8165
8166 *** Warning: the command libtool uses to detect shared libraries,
8167 *** $file_magic_cmd, produces output that libtool cannot recognize.
8168 *** The result is that libtool may fail to recognize shared libraries
8169 *** as such.  This will affect the creation of libtool libraries that
8170 *** depend on shared libraries, but programs linked with such libtool
8171 *** libraries will work regardless of this problem.  Nevertheless, you
8172 *** may want to report the problem to your system manager and/or to
8173 *** bug-libtool@gnu.org
8174
8175 _LT_EOF
8176           fi ;;
8177         esac
8178       fi
8179       break
8180     fi
8181   done
8182   IFS="$lt_save_ifs"
8183   MAGIC_CMD="$lt_save_MAGIC_CMD"
8184   ;;
8185 esac
8186 fi
8187
8188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8189 if test -n "$MAGIC_CMD"; then
8190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8191 $as_echo "$MAGIC_CMD" >&6; }
8192 else
8193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198   else
8199     MAGIC_CMD=:
8200   fi
8201 fi
8202
8203   fi
8204   ;;
8205 esac
8206
8207 # Use C for the default configuration in the libtool script
8208
8209 lt_save_CC="$CC"
8210 ac_ext=c
8211 ac_cpp='$CPP $CPPFLAGS'
8212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8215
8216
8217 # Source file extension for C test sources.
8218 ac_ext=c
8219
8220 # Object file extension for compiled C test sources.
8221 objext=o
8222 objext=$objext
8223
8224 # Code to be used in simple compile tests
8225 lt_simple_compile_test_code="int some_variable = 0;"
8226
8227 # Code to be used in simple link tests
8228 lt_simple_link_test_code='int main(){return(0);}'
8229
8230
8231
8232
8233
8234
8235
8236 # If no C compiler was specified, use CC.
8237 LTCC=${LTCC-"$CC"}
8238
8239 # If no C compiler flags were specified, use CFLAGS.
8240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8241
8242 # Allow CC to be a program name with arguments.
8243 compiler=$CC
8244
8245 # Save the default compiler, since it gets overwritten when the other
8246 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8247 compiler_DEFAULT=$CC
8248
8249 # save warnings/boilerplate of simple test code
8250 ac_outfile=conftest.$ac_objext
8251 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8252 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8253 _lt_compiler_boilerplate=`cat conftest.err`
8254 $RM conftest*
8255
8256 ac_outfile=conftest.$ac_objext
8257 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8258 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8259 _lt_linker_boilerplate=`cat conftest.err`
8260 $RM -r conftest*
8261
8262
8263 ## CAVEAT EMPTOR:
8264 ## There is no encapsulation within the following macros, do not change
8265 ## the running order or otherwise move them around unless you know exactly
8266 ## what you are doing...
8267 if test -n "$compiler"; then
8268
8269 lt_prog_compiler_no_builtin_flag=
8270
8271 if test "$GCC" = yes; then
8272   case $cc_basename in
8273   nvcc*)
8274     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8275   *)
8276     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8277   esac
8278
8279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8280 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8281 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8282   $as_echo_n "(cached) " >&6
8283 else
8284   lt_cv_prog_compiler_rtti_exceptions=no
8285    ac_outfile=conftest.$ac_objext
8286    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8287    lt_compiler_flag="-fno-rtti -fno-exceptions"
8288    # Insert the option either (1) after the last *FLAGS variable, or
8289    # (2) before a word containing "conftest.", or (3) at the end.
8290    # Note that $ac_compile itself does not contain backslashes and begins
8291    # with a dollar sign (not a hyphen), so the echo should work correctly.
8292    # The option is referenced via a variable to avoid confusing sed.
8293    lt_compile=`echo "$ac_compile" | $SED \
8294    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8295    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8296    -e 's:$: $lt_compiler_flag:'`
8297    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8298    (eval "$lt_compile" 2>conftest.err)
8299    ac_status=$?
8300    cat conftest.err >&5
8301    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302    if (exit $ac_status) && test -s "$ac_outfile"; then
8303      # The compiler can only warn and ignore the option if not recognized
8304      # So say no if there are warnings other than the usual output.
8305      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8306      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8307      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8308        lt_cv_prog_compiler_rtti_exceptions=yes
8309      fi
8310    fi
8311    $RM conftest*
8312
8313 fi
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8315 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8316
8317 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8318     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8319 else
8320     :
8321 fi
8322
8323 fi
8324
8325
8326
8327
8328
8329
8330   lt_prog_compiler_wl=
8331 lt_prog_compiler_pic=
8332 lt_prog_compiler_static=
8333
8334
8335   if test "$GCC" = yes; then
8336     lt_prog_compiler_wl='-Wl,'
8337     lt_prog_compiler_static='-static'
8338
8339     case $host_os in
8340       aix*)
8341       # All AIX code is PIC.
8342       if test "$host_cpu" = ia64; then
8343         # AIX 5 now supports IA64 processor
8344         lt_prog_compiler_static='-Bstatic'
8345       fi
8346       ;;
8347
8348     amigaos*)
8349       case $host_cpu in
8350       powerpc)
8351             # see comment about AmigaOS4 .so support
8352             lt_prog_compiler_pic='-fPIC'
8353         ;;
8354       m68k)
8355             # FIXME: we need at least 68020 code to build shared libraries, but
8356             # adding the `-m68020' flag to GCC prevents building anything better,
8357             # like `-m68040'.
8358             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8359         ;;
8360       esac
8361       ;;
8362
8363     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8364       # PIC is the default for these OSes.
8365       ;;
8366
8367     mingw* | cygwin* | pw32* | os2* | cegcc*)
8368       # This hack is so that the source file can tell whether it is being
8369       # built for inclusion in a dll (and should export symbols for example).
8370       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8371       # (--disable-auto-import) libraries
8372       lt_prog_compiler_pic='-DDLL_EXPORT'
8373       ;;
8374
8375     darwin* | rhapsody*)
8376       # PIC is the default on this platform
8377       # Common symbols not allowed in MH_DYLIB files
8378       lt_prog_compiler_pic='-fno-common'
8379       ;;
8380
8381     haiku*)
8382       # PIC is the default for Haiku.
8383       # The "-static" flag exists, but is broken.
8384       lt_prog_compiler_static=
8385       ;;
8386
8387     hpux*)
8388       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8389       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8390       # sets the default TLS model and affects inlining.
8391       case $host_cpu in
8392       hppa*64*)
8393         # +Z the default
8394         ;;
8395       *)
8396         lt_prog_compiler_pic='-fPIC'
8397         ;;
8398       esac
8399       ;;
8400
8401     interix[3-9]*)
8402       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8403       # Instead, we relocate shared libraries at runtime.
8404       ;;
8405
8406     msdosdjgpp*)
8407       # Just because we use GCC doesn't mean we suddenly get shared libraries
8408       # on systems that don't support them.
8409       lt_prog_compiler_can_build_shared=no
8410       enable_shared=no
8411       ;;
8412
8413     *nto* | *qnx*)
8414       # QNX uses GNU C++, but need to define -shared option too, otherwise
8415       # it will coredump.
8416       lt_prog_compiler_pic='-fPIC -shared'
8417       ;;
8418
8419     sysv4*MP*)
8420       if test -d /usr/nec; then
8421         lt_prog_compiler_pic=-Kconform_pic
8422       fi
8423       ;;
8424
8425     *)
8426       lt_prog_compiler_pic='-fPIC'
8427       ;;
8428     esac
8429
8430     case $cc_basename in
8431     nvcc*) # Cuda Compiler Driver 2.2
8432       lt_prog_compiler_wl='-Xlinker '
8433       lt_prog_compiler_pic='-Xcompiler -fPIC'
8434       ;;
8435     esac
8436   else
8437     # PORTME Check for flag to pass linker flags through the system compiler.
8438     case $host_os in
8439     aix*)
8440       lt_prog_compiler_wl='-Wl,'
8441       if test "$host_cpu" = ia64; then
8442         # AIX 5 now supports IA64 processor
8443         lt_prog_compiler_static='-Bstatic'
8444       else
8445         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8446       fi
8447       ;;
8448
8449     mingw* | cygwin* | pw32* | os2* | cegcc*)
8450       # This hack is so that the source file can tell whether it is being
8451       # built for inclusion in a dll (and should export symbols for example).
8452       lt_prog_compiler_pic='-DDLL_EXPORT'
8453       ;;
8454
8455     hpux9* | hpux10* | hpux11*)
8456       lt_prog_compiler_wl='-Wl,'
8457       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8458       # not for PA HP-UX.
8459       case $host_cpu in
8460       hppa*64*|ia64*)
8461         # +Z the default
8462         ;;
8463       *)
8464         lt_prog_compiler_pic='+Z'
8465         ;;
8466       esac
8467       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8468       lt_prog_compiler_static='${wl}-a ${wl}archive'
8469       ;;
8470
8471     irix5* | irix6* | nonstopux*)
8472       lt_prog_compiler_wl='-Wl,'
8473       # PIC (with -KPIC) is the default.
8474       lt_prog_compiler_static='-non_shared'
8475       ;;
8476
8477     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8478       case $cc_basename in
8479       # old Intel for x86_64 which still supported -KPIC.
8480       ecc*)
8481         lt_prog_compiler_wl='-Wl,'
8482         lt_prog_compiler_pic='-KPIC'
8483         lt_prog_compiler_static='-static'
8484         ;;
8485       # icc used to be incompatible with GCC.
8486       # ICC 10 doesn't accept -KPIC any more.
8487       icc* | ifort*)
8488         lt_prog_compiler_wl='-Wl,'
8489         lt_prog_compiler_pic='-fPIC'
8490         lt_prog_compiler_static='-static'
8491         ;;
8492       # Lahey Fortran 8.1.
8493       lf95*)
8494         lt_prog_compiler_wl='-Wl,'
8495         lt_prog_compiler_pic='--shared'
8496         lt_prog_compiler_static='--static'
8497         ;;
8498       nagfor*)
8499         # NAG Fortran compiler
8500         lt_prog_compiler_wl='-Wl,-Wl,,'
8501         lt_prog_compiler_pic='-PIC'
8502         lt_prog_compiler_static='-Bstatic'
8503         ;;
8504       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8505         # Portland Group compilers (*not* the Pentium gcc compiler,
8506         # which looks to be a dead project)
8507         lt_prog_compiler_wl='-Wl,'
8508         lt_prog_compiler_pic='-fpic'
8509         lt_prog_compiler_static='-Bstatic'
8510         ;;
8511       ccc*)
8512         lt_prog_compiler_wl='-Wl,'
8513         # All Alpha code is PIC.
8514         lt_prog_compiler_static='-non_shared'
8515         ;;
8516       xl* | bgxl* | bgf* | mpixl*)
8517         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8518         lt_prog_compiler_wl='-Wl,'
8519         lt_prog_compiler_pic='-qpic'
8520         lt_prog_compiler_static='-qstaticlink'
8521         ;;
8522       *)
8523         case `$CC -V 2>&1 | sed 5q` in
8524         *Sun\ F* | *Sun*Fortran*)
8525           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8526           lt_prog_compiler_pic='-KPIC'
8527           lt_prog_compiler_static='-Bstatic'
8528           lt_prog_compiler_wl=''
8529           ;;
8530         *Sun\ C*)
8531           # Sun C 5.9
8532           lt_prog_compiler_pic='-KPIC'
8533           lt_prog_compiler_static='-Bstatic'
8534           lt_prog_compiler_wl='-Wl,'
8535           ;;
8536         esac
8537         ;;
8538       esac
8539       ;;
8540
8541     newsos6)
8542       lt_prog_compiler_pic='-KPIC'
8543       lt_prog_compiler_static='-Bstatic'
8544       ;;
8545
8546     *nto* | *qnx*)
8547       # QNX uses GNU C++, but need to define -shared option too, otherwise
8548       # it will coredump.
8549       lt_prog_compiler_pic='-fPIC -shared'
8550       ;;
8551
8552     osf3* | osf4* | osf5*)
8553       lt_prog_compiler_wl='-Wl,'
8554       # All OSF/1 code is PIC.
8555       lt_prog_compiler_static='-non_shared'
8556       ;;
8557
8558     rdos*)
8559       lt_prog_compiler_static='-non_shared'
8560       ;;
8561
8562     solaris*)
8563       lt_prog_compiler_pic='-KPIC'
8564       lt_prog_compiler_static='-Bstatic'
8565       case $cc_basename in
8566       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8567         lt_prog_compiler_wl='-Qoption ld ';;
8568       *)
8569         lt_prog_compiler_wl='-Wl,';;
8570       esac
8571       ;;
8572
8573     sunos4*)
8574       lt_prog_compiler_wl='-Qoption ld '
8575       lt_prog_compiler_pic='-PIC'
8576       lt_prog_compiler_static='-Bstatic'
8577       ;;
8578
8579     sysv4 | sysv4.2uw2* | sysv4.3*)
8580       lt_prog_compiler_wl='-Wl,'
8581       lt_prog_compiler_pic='-KPIC'
8582       lt_prog_compiler_static='-Bstatic'
8583       ;;
8584
8585     sysv4*MP*)
8586       if test -d /usr/nec ;then
8587         lt_prog_compiler_pic='-Kconform_pic'
8588         lt_prog_compiler_static='-Bstatic'
8589       fi
8590       ;;
8591
8592     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8593       lt_prog_compiler_wl='-Wl,'
8594       lt_prog_compiler_pic='-KPIC'
8595       lt_prog_compiler_static='-Bstatic'
8596       ;;
8597
8598     unicos*)
8599       lt_prog_compiler_wl='-Wl,'
8600       lt_prog_compiler_can_build_shared=no
8601       ;;
8602
8603     uts4*)
8604       lt_prog_compiler_pic='-pic'
8605       lt_prog_compiler_static='-Bstatic'
8606       ;;
8607
8608     *)
8609       lt_prog_compiler_can_build_shared=no
8610       ;;
8611     esac
8612   fi
8613
8614 case $host_os in
8615   # For platforms which do not support PIC, -DPIC is meaningless:
8616   *djgpp*)
8617     lt_prog_compiler_pic=
8618     ;;
8619   *)
8620     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8621     ;;
8622 esac
8623
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8625 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8626 if ${lt_cv_prog_compiler_pic+:} false; then :
8627   $as_echo_n "(cached) " >&6
8628 else
8629   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8630 fi
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8632 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8633 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8634
8635 #
8636 # Check to make sure the PIC flag actually works.
8637 #
8638 if test -n "$lt_prog_compiler_pic"; then
8639   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8640 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8641 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   lt_cv_prog_compiler_pic_works=no
8645    ac_outfile=conftest.$ac_objext
8646    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8647    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8648    # Insert the option either (1) after the last *FLAGS variable, or
8649    # (2) before a word containing "conftest.", or (3) at the end.
8650    # Note that $ac_compile itself does not contain backslashes and begins
8651    # with a dollar sign (not a hyphen), so the echo should work correctly.
8652    # The option is referenced via a variable to avoid confusing sed.
8653    lt_compile=`echo "$ac_compile" | $SED \
8654    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8655    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8656    -e 's:$: $lt_compiler_flag:'`
8657    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8658    (eval "$lt_compile" 2>conftest.err)
8659    ac_status=$?
8660    cat conftest.err >&5
8661    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662    if (exit $ac_status) && test -s "$ac_outfile"; then
8663      # The compiler can only warn and ignore the option if not recognized
8664      # So say no if there are warnings other than the usual output.
8665      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8666      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8667      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8668        lt_cv_prog_compiler_pic_works=yes
8669      fi
8670    fi
8671    $RM conftest*
8672
8673 fi
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8675 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8676
8677 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8678     case $lt_prog_compiler_pic in
8679      "" | " "*) ;;
8680      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8681      esac
8682 else
8683     lt_prog_compiler_pic=
8684      lt_prog_compiler_can_build_shared=no
8685 fi
8686
8687 fi
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 #
8700 # Check to make sure the static flag actually works.
8701 #
8702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8705 if ${lt_cv_prog_compiler_static_works+:} false; then :
8706   $as_echo_n "(cached) " >&6
8707 else
8708   lt_cv_prog_compiler_static_works=no
8709    save_LDFLAGS="$LDFLAGS"
8710    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8711    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8712    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8713      # The linker can only warn and ignore the option if not recognized
8714      # So say no if there are warnings
8715      if test -s conftest.err; then
8716        # Append any errors to the config.log.
8717        cat conftest.err 1>&5
8718        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8719        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720        if diff conftest.exp conftest.er2 >/dev/null; then
8721          lt_cv_prog_compiler_static_works=yes
8722        fi
8723      else
8724        lt_cv_prog_compiler_static_works=yes
8725      fi
8726    fi
8727    $RM -r conftest*
8728    LDFLAGS="$save_LDFLAGS"
8729
8730 fi
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8732 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8733
8734 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8735     :
8736 else
8737     lt_prog_compiler_static=
8738 fi
8739
8740
8741
8742
8743
8744
8745
8746   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8748 if ${lt_cv_prog_compiler_c_o+:} false; then :
8749   $as_echo_n "(cached) " >&6
8750 else
8751   lt_cv_prog_compiler_c_o=no
8752    $RM -r conftest 2>/dev/null
8753    mkdir conftest
8754    cd conftest
8755    mkdir out
8756    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8757
8758    lt_compiler_flag="-o out/conftest2.$ac_objext"
8759    # Insert the option either (1) after the last *FLAGS variable, or
8760    # (2) before a word containing "conftest.", or (3) at the end.
8761    # Note that $ac_compile itself does not contain backslashes and begins
8762    # with a dollar sign (not a hyphen), so the echo should work correctly.
8763    lt_compile=`echo "$ac_compile" | $SED \
8764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8766    -e 's:$: $lt_compiler_flag:'`
8767    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8768    (eval "$lt_compile" 2>out/conftest.err)
8769    ac_status=$?
8770    cat out/conftest.err >&5
8771    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8773    then
8774      # The compiler can only warn and ignore the option if not recognized
8775      # So say no if there are warnings
8776      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8777      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8778      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8779        lt_cv_prog_compiler_c_o=yes
8780      fi
8781    fi
8782    chmod u+w . 2>&5
8783    $RM conftest*
8784    # SGI C++ compiler will create directory out/ii_files/ for
8785    # template instantiation
8786    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8787    $RM out/* && rmdir out
8788    cd ..
8789    $RM -r conftest
8790    $RM conftest*
8791
8792 fi
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8795
8796
8797
8798
8799
8800
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8803 if ${lt_cv_prog_compiler_c_o+:} false; then :
8804   $as_echo_n "(cached) " >&6
8805 else
8806   lt_cv_prog_compiler_c_o=no
8807    $RM -r conftest 2>/dev/null
8808    mkdir conftest
8809    cd conftest
8810    mkdir out
8811    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8812
8813    lt_compiler_flag="-o out/conftest2.$ac_objext"
8814    # Insert the option either (1) after the last *FLAGS variable, or
8815    # (2) before a word containing "conftest.", or (3) at the end.
8816    # Note that $ac_compile itself does not contain backslashes and begins
8817    # with a dollar sign (not a hyphen), so the echo should work correctly.
8818    lt_compile=`echo "$ac_compile" | $SED \
8819    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8821    -e 's:$: $lt_compiler_flag:'`
8822    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8823    (eval "$lt_compile" 2>out/conftest.err)
8824    ac_status=$?
8825    cat out/conftest.err >&5
8826    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8828    then
8829      # The compiler can only warn and ignore the option if not recognized
8830      # So say no if there are warnings
8831      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8832      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8833      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8834        lt_cv_prog_compiler_c_o=yes
8835      fi
8836    fi
8837    chmod u+w . 2>&5
8838    $RM conftest*
8839    # SGI C++ compiler will create directory out/ii_files/ for
8840    # template instantiation
8841    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8842    $RM out/* && rmdir out
8843    cd ..
8844    $RM -r conftest
8845    $RM conftest*
8846
8847 fi
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8849 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8850
8851
8852
8853
8854 hard_links="nottested"
8855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8856   # do not overwrite the value of need_locks provided by the user
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8858 $as_echo_n "checking if we can lock with hard links... " >&6; }
8859   hard_links=yes
8860   $RM conftest*
8861   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8862   touch conftest.a
8863   ln conftest.a conftest.b 2>&5 || hard_links=no
8864   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8866 $as_echo "$hard_links" >&6; }
8867   if test "$hard_links" = no; then
8868     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8870     need_locks=warn
8871   fi
8872 else
8873   need_locks=no
8874 fi
8875
8876
8877
8878
8879
8880
8881   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8883
8884   runpath_var=
8885   allow_undefined_flag=
8886   always_export_symbols=no
8887   archive_cmds=
8888   archive_expsym_cmds=
8889   compiler_needs_object=no
8890   enable_shared_with_static_runtimes=no
8891   export_dynamic_flag_spec=
8892   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8893   hardcode_automatic=no
8894   hardcode_direct=no
8895   hardcode_direct_absolute=no
8896   hardcode_libdir_flag_spec=
8897   hardcode_libdir_flag_spec_ld=
8898   hardcode_libdir_separator=
8899   hardcode_minus_L=no
8900   hardcode_shlibpath_var=unsupported
8901   inherit_rpath=no
8902   link_all_deplibs=unknown
8903   module_cmds=
8904   module_expsym_cmds=
8905   old_archive_from_new_cmds=
8906   old_archive_from_expsyms_cmds=
8907   thread_safe_flag_spec=
8908   whole_archive_flag_spec=
8909   # include_expsyms should be a list of space-separated symbols to be *always*
8910   # included in the symbol list
8911   include_expsyms=
8912   # exclude_expsyms can be an extended regexp of symbols to exclude
8913   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8914   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8915   # as well as any symbol that contains `d'.
8916   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8917   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8918   # platforms (ab)use it in PIC code, but their linkers get confused if
8919   # the symbol is explicitly referenced.  Since portable code cannot
8920   # rely on this symbol name, it's probably fine to never include it in
8921   # preloaded symbol tables.
8922   # Exclude shared library initialization/finalization symbols.
8923   extract_expsyms_cmds=
8924
8925   case $host_os in
8926   cygwin* | mingw* | pw32* | cegcc*)
8927     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8928     # When not using gcc, we currently assume that we are using
8929     # Microsoft Visual C++.
8930     if test "$GCC" != yes; then
8931       with_gnu_ld=no
8932     fi
8933     ;;
8934   interix*)
8935     # we just hope/assume this is gcc and not c89 (= MSVC++)
8936     with_gnu_ld=yes
8937     ;;
8938   openbsd*)
8939     with_gnu_ld=no
8940     ;;
8941   esac
8942
8943   ld_shlibs=yes
8944
8945   # On some targets, GNU ld is compatible enough with the native linker
8946   # that we're better off using the native interface for both.
8947   lt_use_gnu_ld_interface=no
8948   if test "$with_gnu_ld" = yes; then
8949     case $host_os in
8950       aix*)
8951         # The AIX port of GNU ld has always aspired to compatibility
8952         # with the native linker.  However, as the warning in the GNU ld
8953         # block says, versions before 2.19.5* couldn't really create working
8954         # shared libraries, regardless of the interface used.
8955         case `$LD -v 2>&1` in
8956           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8957           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8958           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8959           *)
8960             lt_use_gnu_ld_interface=yes
8961             ;;
8962         esac
8963         ;;
8964       *)
8965         lt_use_gnu_ld_interface=yes
8966         ;;
8967     esac
8968   fi
8969
8970   if test "$lt_use_gnu_ld_interface" = yes; then
8971     # If archive_cmds runs LD, not CC, wlarc should be empty
8972     wlarc='${wl}'
8973
8974     # Set some defaults for GNU ld with shared library support. These
8975     # are reset later if shared libraries are not supported. Putting them
8976     # here allows them to be overridden if necessary.
8977     runpath_var=LD_RUN_PATH
8978     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8979     export_dynamic_flag_spec='${wl}--export-dynamic'
8980     # ancient GNU ld didn't support --whole-archive et. al.
8981     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8982       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8983     else
8984       whole_archive_flag_spec=
8985     fi
8986     supports_anon_versioning=no
8987     case `$LD -v 2>&1` in
8988       *GNU\ gold*) supports_anon_versioning=yes ;;
8989       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8990       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8991       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8992       *\ 2.11.*) ;; # other 2.11 versions
8993       *) supports_anon_versioning=yes ;;
8994     esac
8995
8996     # See if GNU ld supports shared libraries.
8997     case $host_os in
8998     aix[3-9]*)
8999       # On AIX/PPC, the GNU linker is very broken
9000       if test "$host_cpu" != ia64; then
9001         ld_shlibs=no
9002         cat <<_LT_EOF 1>&2
9003
9004 *** Warning: the GNU linker, at least up to release 2.19, is reported
9005 *** to be unable to reliably create shared libraries on AIX.
9006 *** Therefore, libtool is disabling shared libraries support.  If you
9007 *** really care for shared libraries, you may want to install binutils
9008 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9009 *** You will then need to restart the configuration process.
9010
9011 _LT_EOF
9012       fi
9013       ;;
9014
9015     amigaos*)
9016       case $host_cpu in
9017       powerpc)
9018             # see comment about AmigaOS4 .so support
9019             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9020             archive_expsym_cmds=''
9021         ;;
9022       m68k)
9023             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)'
9024             hardcode_libdir_flag_spec='-L$libdir'
9025             hardcode_minus_L=yes
9026         ;;
9027       esac
9028       ;;
9029
9030     beos*)
9031       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9032         allow_undefined_flag=unsupported
9033         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9034         # support --undefined.  This deserves some investigation.  FIXME
9035         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9036       else
9037         ld_shlibs=no
9038       fi
9039       ;;
9040
9041     cygwin* | mingw* | pw32* | cegcc*)
9042       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9043       # as there is no search path for DLLs.
9044       hardcode_libdir_flag_spec='-L$libdir'
9045       export_dynamic_flag_spec='${wl}--export-all-symbols'
9046       allow_undefined_flag=unsupported
9047       always_export_symbols=no
9048       enable_shared_with_static_runtimes=yes
9049       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'
9050       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9051
9052       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9053         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9054         # If the export-symbols file already is a .def file (1st line
9055         # is EXPORTS), use it as is; otherwise, prepend...
9056         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057           cp $export_symbols $output_objdir/$soname.def;
9058         else
9059           echo EXPORTS > $output_objdir/$soname.def;
9060           cat $export_symbols >> $output_objdir/$soname.def;
9061         fi~
9062         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9063       else
9064         ld_shlibs=no
9065       fi
9066       ;;
9067
9068     haiku*)
9069       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070       link_all_deplibs=yes
9071       ;;
9072
9073     interix[3-9]*)
9074       hardcode_direct=no
9075       hardcode_shlibpath_var=no
9076       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9077       export_dynamic_flag_spec='${wl}-E'
9078       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9079       # Instead, shared libraries are loaded at an image base (0x10000000 by
9080       # default) and relocated if they conflict, which is a slow very memory
9081       # consuming and fragmenting process.  To avoid this, we pick a random,
9082       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9083       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9084       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9085       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'
9086       ;;
9087
9088     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9089       tmp_diet=no
9090       if test "$host_os" = linux-dietlibc; then
9091         case $cc_basename in
9092           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9093         esac
9094       fi
9095       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9096          && test "$tmp_diet" = no
9097       then
9098         tmp_addflag=' $pic_flag'
9099         tmp_sharedflag='-shared'
9100         case $cc_basename,$host_cpu in
9101         pgcc*)                          # Portland Group C compiler
9102           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'
9103           tmp_addflag=' $pic_flag'
9104           ;;
9105         pgf77* | pgf90* | pgf95* | pgfortran*)
9106                                         # Portland Group f77 and f90 compilers
9107           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'
9108           tmp_addflag=' $pic_flag -Mnomain' ;;
9109         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9110           tmp_addflag=' -i_dynamic' ;;
9111         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9112           tmp_addflag=' -i_dynamic -nofor_main' ;;
9113         ifc* | ifort*)                  # Intel Fortran compiler
9114           tmp_addflag=' -nofor_main' ;;
9115         lf95*)                          # Lahey Fortran 8.1
9116           whole_archive_flag_spec=
9117           tmp_sharedflag='--shared' ;;
9118         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9119           tmp_sharedflag='-qmkshrobj'
9120           tmp_addflag= ;;
9121         nvcc*)  # Cuda Compiler Driver 2.2
9122           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'
9123           compiler_needs_object=yes
9124           ;;
9125         esac
9126         case `$CC -V 2>&1 | sed 5q` in
9127         *Sun\ C*)                       # Sun C 5.9
9128           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'
9129           compiler_needs_object=yes
9130           tmp_sharedflag='-G' ;;
9131         *Sun\ F*)                       # Sun Fortran 8.3
9132           tmp_sharedflag='-G' ;;
9133         esac
9134         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9135
9136         if test "x$supports_anon_versioning" = xyes; then
9137           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9138             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9139             echo "local: *; };" >> $output_objdir/$libname.ver~
9140             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9141         fi
9142
9143         case $cc_basename in
9144         xlf* | bgf* | bgxlf* | mpixlf*)
9145           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9146           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9147           hardcode_libdir_flag_spec=
9148           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9149           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9150           if test "x$supports_anon_versioning" = xyes; then
9151             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9152               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9153               echo "local: *; };" >> $output_objdir/$libname.ver~
9154               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9155           fi
9156           ;;
9157         esac
9158       else
9159         ld_shlibs=no
9160       fi
9161       ;;
9162
9163     netbsd*)
9164       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9165         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9166         wlarc=
9167       else
9168         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170       fi
9171       ;;
9172
9173     solaris*)
9174       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9175         ld_shlibs=no
9176         cat <<_LT_EOF 1>&2
9177
9178 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9179 *** create shared libraries on Solaris systems.  Therefore, libtool
9180 *** is disabling shared libraries support.  We urge you to upgrade GNU
9181 *** binutils to release 2.9.1 or newer.  Another option is to modify
9182 *** your PATH or compiler configuration so that the native linker is
9183 *** used, and then restart.
9184
9185 _LT_EOF
9186       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9187         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9188         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9189       else
9190         ld_shlibs=no
9191       fi
9192       ;;
9193
9194     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9195       case `$LD -v 2>&1` in
9196         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9197         ld_shlibs=no
9198         cat <<_LT_EOF 1>&2
9199
9200 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9201 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9202 *** is disabling shared libraries support.  We urge you to upgrade GNU
9203 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9204 *** your PATH or compiler configuration so that the native linker is
9205 *** used, and then restart.
9206
9207 _LT_EOF
9208         ;;
9209         *)
9210           # For security reasons, it is highly recommended that you always
9211           # use absolute paths for naming shared libraries, and exclude the
9212           # DT_RUNPATH tag from executables and libraries.  But doing so
9213           # requires that you compile everything twice, which is a pain.
9214           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9215             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9216             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9218           else
9219             ld_shlibs=no
9220           fi
9221         ;;
9222       esac
9223       ;;
9224
9225     sunos4*)
9226       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9227       wlarc=
9228       hardcode_direct=yes
9229       hardcode_shlibpath_var=no
9230       ;;
9231
9232     *)
9233       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9234         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9235         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9236       else
9237         ld_shlibs=no
9238       fi
9239       ;;
9240     esac
9241
9242     if test "$ld_shlibs" = no; then
9243       runpath_var=
9244       hardcode_libdir_flag_spec=
9245       export_dynamic_flag_spec=
9246       whole_archive_flag_spec=
9247     fi
9248   else
9249     # PORTME fill in a description of your system's linker (not GNU ld)
9250     case $host_os in
9251     aix3*)
9252       allow_undefined_flag=unsupported
9253       always_export_symbols=yes
9254       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'
9255       # Note: this linker hardcodes the directories in LIBPATH if there
9256       # are no directories specified by -L.
9257       hardcode_minus_L=yes
9258       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9259         # Neither direct hardcoding nor static linking is supported with a
9260         # broken collect2.
9261         hardcode_direct=unsupported
9262       fi
9263       ;;
9264
9265     aix[4-9]*)
9266       if test "$host_cpu" = ia64; then
9267         # On IA64, the linker does run time linking by default, so we don't
9268         # have to do anything special.
9269         aix_use_runtimelinking=no
9270         exp_sym_flag='-Bexport'
9271         no_entry_flag=""
9272       else
9273         # If we're using GNU nm, then we don't want the "-C" option.
9274         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9275         # Also, AIX nm treats weak defined symbols like other global
9276         # defined symbols, whereas GNU nm marks them as "W".
9277         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9278           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'
9279         else
9280           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'
9281         fi
9282         aix_use_runtimelinking=no
9283
9284         # Test if we are trying to use run time linking or normal
9285         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9286         # need to do runtime linking.
9287         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9288           for ld_flag in $LDFLAGS; do
9289           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9290             aix_use_runtimelinking=yes
9291             break
9292           fi
9293           done
9294           ;;
9295         esac
9296
9297         exp_sym_flag='-bexport'
9298         no_entry_flag='-bnoentry'
9299       fi
9300
9301       # When large executables or shared objects are built, AIX ld can
9302       # have problems creating the table of contents.  If linking a library
9303       # or program results in "error TOC overflow" add -mminimal-toc to
9304       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9305       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9306
9307       archive_cmds=''
9308       hardcode_direct=yes
9309       hardcode_direct_absolute=yes
9310       hardcode_libdir_separator=':'
9311       link_all_deplibs=yes
9312       file_list_spec='${wl}-f,'
9313
9314       if test "$GCC" = yes; then
9315         case $host_os in aix4.[012]|aix4.[012].*)
9316         # We only want to do this on AIX 4.2 and lower, the check
9317         # below for broken collect2 doesn't work under 4.3+
9318           collect2name=`${CC} -print-prog-name=collect2`
9319           if test -f "$collect2name" &&
9320            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9321           then
9322           # We have reworked collect2
9323           :
9324           else
9325           # We have old collect2
9326           hardcode_direct=unsupported
9327           # It fails to find uninstalled libraries when the uninstalled
9328           # path is not listed in the libpath.  Setting hardcode_minus_L
9329           # to unsupported forces relinking
9330           hardcode_minus_L=yes
9331           hardcode_libdir_flag_spec='-L$libdir'
9332           hardcode_libdir_separator=
9333           fi
9334           ;;
9335         esac
9336         shared_flag='-shared'
9337         if test "$aix_use_runtimelinking" = yes; then
9338           shared_flag="$shared_flag "'${wl}-G'
9339         fi
9340       else
9341         # not using gcc
9342         if test "$host_cpu" = ia64; then
9343         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9344         # chokes on -Wl,-G. The following line is correct:
9345           shared_flag='-G'
9346         else
9347           if test "$aix_use_runtimelinking" = yes; then
9348             shared_flag='${wl}-G'
9349           else
9350             shared_flag='${wl}-bM:SRE'
9351           fi
9352         fi
9353       fi
9354
9355       export_dynamic_flag_spec='${wl}-bexpall'
9356       # It seems that -bexpall does not export symbols beginning with
9357       # underscore (_), so it is better to generate a list of symbols to export.
9358       always_export_symbols=yes
9359       if test "$aix_use_runtimelinking" = yes; then
9360         # Warning - without using the other runtime loading flags (-brtl),
9361         # -berok will link without error, but may produce a broken library.
9362         allow_undefined_flag='-berok'
9363         # Determine the default libpath from the value encoded in an
9364         # empty executable.
9365         if test "${lt_cv_aix_libpath+set}" = set; then
9366   aix_libpath=$lt_cv_aix_libpath
9367 else
9368   if ${lt_cv_aix_libpath_+:} false; then :
9369   $as_echo_n "(cached) " >&6
9370 else
9371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9372 /* end confdefs.h.  */
9373
9374 int
9375 main ()
9376 {
9377
9378   ;
9379   return 0;
9380 }
9381 _ACEOF
9382 if ac_fn_c_try_link "$LINENO"; then :
9383
9384   lt_aix_libpath_sed='
9385       /Import File Strings/,/^$/ {
9386           /^0/ {
9387               s/^0  *\([^ ]*\) *$/\1/
9388               p
9389           }
9390       }'
9391   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9392   # Check for a 64-bit object if we didn't find anything.
9393   if test -z "$lt_cv_aix_libpath_"; then
9394     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9395   fi
9396 fi
9397 rm -f core conftest.err conftest.$ac_objext \
9398     conftest$ac_exeext conftest.$ac_ext
9399   if test -z "$lt_cv_aix_libpath_"; then
9400     lt_cv_aix_libpath_="/usr/lib:/lib"
9401   fi
9402
9403 fi
9404
9405   aix_libpath=$lt_cv_aix_libpath_
9406 fi
9407
9408         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9409         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"
9410       else
9411         if test "$host_cpu" = ia64; then
9412           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9413           allow_undefined_flag="-z nodefs"
9414           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"
9415         else
9416          # Determine the default libpath from the value encoded in an
9417          # empty executable.
9418          if test "${lt_cv_aix_libpath+set}" = set; then
9419   aix_libpath=$lt_cv_aix_libpath
9420 else
9421   if ${lt_cv_aix_libpath_+:} false; then :
9422   $as_echo_n "(cached) " >&6
9423 else
9424   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h.  */
9426
9427 int
9428 main ()
9429 {
9430
9431   ;
9432   return 0;
9433 }
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9436
9437   lt_aix_libpath_sed='
9438       /Import File Strings/,/^$/ {
9439           /^0/ {
9440               s/^0  *\([^ ]*\) *$/\1/
9441               p
9442           }
9443       }'
9444   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445   # Check for a 64-bit object if we didn't find anything.
9446   if test -z "$lt_cv_aix_libpath_"; then
9447     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9448   fi
9449 fi
9450 rm -f core conftest.err conftest.$ac_objext \
9451     conftest$ac_exeext conftest.$ac_ext
9452   if test -z "$lt_cv_aix_libpath_"; then
9453     lt_cv_aix_libpath_="/usr/lib:/lib"
9454   fi
9455
9456 fi
9457
9458   aix_libpath=$lt_cv_aix_libpath_
9459 fi
9460
9461          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9462           # Warning - without using the other run time loading flags,
9463           # -berok will link without error, but may produce a broken library.
9464           no_undefined_flag=' ${wl}-bernotok'
9465           allow_undefined_flag=' ${wl}-berok'
9466           if test "$with_gnu_ld" = yes; then
9467             # We only use this code for GNU lds that support --whole-archive.
9468             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9469           else
9470             # Exported symbols can be pulled into shared objects from archives
9471             whole_archive_flag_spec='$convenience'
9472           fi
9473           archive_cmds_need_lc=yes
9474           # This is similar to how AIX traditionally builds its shared libraries.
9475           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'
9476         fi
9477       fi
9478       ;;
9479
9480     amigaos*)
9481       case $host_cpu in
9482       powerpc)
9483             # see comment about AmigaOS4 .so support
9484             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9485             archive_expsym_cmds=''
9486         ;;
9487       m68k)
9488             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)'
9489             hardcode_libdir_flag_spec='-L$libdir'
9490             hardcode_minus_L=yes
9491         ;;
9492       esac
9493       ;;
9494
9495     bsdi[45]*)
9496       export_dynamic_flag_spec=-rdynamic
9497       ;;
9498
9499     cygwin* | mingw* | pw32* | cegcc*)
9500       # When not using gcc, we currently assume that we are using
9501       # Microsoft Visual C++.
9502       # hardcode_libdir_flag_spec is actually meaningless, as there is
9503       # no search path for DLLs.
9504       case $cc_basename in
9505       cl*)
9506         # Native MSVC
9507         hardcode_libdir_flag_spec=' '
9508         allow_undefined_flag=unsupported
9509         always_export_symbols=yes
9510         file_list_spec='@'
9511         # Tell ltmain to make .lib files, not .a files.
9512         libext=lib
9513         # Tell ltmain to make .dll files, not .so files.
9514         shrext_cmds=".dll"
9515         # FIXME: Setting linknames here is a bad hack.
9516         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9517         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9518             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9519           else
9520             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9521           fi~
9522           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9523           linknames='
9524         # The linker will not automatically build a static lib if we build a DLL.
9525         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9526         enable_shared_with_static_runtimes=yes
9527         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9528         # Don't use ranlib
9529         old_postinstall_cmds='chmod 644 $oldlib'
9530         postlink_cmds='lt_outputfile="@OUTPUT@"~
9531           lt_tool_outputfile="@TOOL_OUTPUT@"~
9532           case $lt_outputfile in
9533             *.exe|*.EXE) ;;
9534             *)
9535               lt_outputfile="$lt_outputfile.exe"
9536               lt_tool_outputfile="$lt_tool_outputfile.exe"
9537               ;;
9538           esac~
9539           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9540             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9541             $RM "$lt_outputfile.manifest";
9542           fi'
9543         ;;
9544       *)
9545         # Assume MSVC wrapper
9546         hardcode_libdir_flag_spec=' '
9547         allow_undefined_flag=unsupported
9548         # Tell ltmain to make .lib files, not .a files.
9549         libext=lib
9550         # Tell ltmain to make .dll files, not .so files.
9551         shrext_cmds=".dll"
9552         # FIXME: Setting linknames here is a bad hack.
9553         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9554         # The linker will automatically build a .lib file if we build a DLL.
9555         old_archive_from_new_cmds='true'
9556         # FIXME: Should let the user specify the lib program.
9557         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9558         enable_shared_with_static_runtimes=yes
9559         ;;
9560       esac
9561       ;;
9562
9563     darwin* | rhapsody*)
9564
9565
9566   archive_cmds_need_lc=no
9567   hardcode_direct=no
9568   hardcode_automatic=yes
9569   hardcode_shlibpath_var=unsupported
9570   if test "$lt_cv_ld_force_load" = "yes"; then
9571     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\"`'
9572   else
9573     whole_archive_flag_spec=''
9574   fi
9575   link_all_deplibs=yes
9576   allow_undefined_flag="$_lt_dar_allow_undefined"
9577   case $cc_basename in
9578      ifort*) _lt_dar_can_shared=yes ;;
9579      *) _lt_dar_can_shared=$GCC ;;
9580   esac
9581   if test "$_lt_dar_can_shared" = "yes"; then
9582     output_verbose_link_cmd=func_echo_all
9583     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9584     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9585     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}"
9586     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}"
9587
9588   else
9589   ld_shlibs=no
9590   fi
9591
9592       ;;
9593
9594     dgux*)
9595       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9596       hardcode_libdir_flag_spec='-L$libdir'
9597       hardcode_shlibpath_var=no
9598       ;;
9599
9600     freebsd1*)
9601       ld_shlibs=no
9602       ;;
9603
9604     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9605     # support.  Future versions do this automatically, but an explicit c++rt0.o
9606     # does not break anything, and helps significantly (at the cost of a little
9607     # extra space).
9608     freebsd2.2*)
9609       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9610       hardcode_libdir_flag_spec='-R$libdir'
9611       hardcode_direct=yes
9612       hardcode_shlibpath_var=no
9613       ;;
9614
9615     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9616     freebsd2*)
9617       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618       hardcode_direct=yes
9619       hardcode_minus_L=yes
9620       hardcode_shlibpath_var=no
9621       ;;
9622
9623     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9624     freebsd* | dragonfly*)
9625       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9626       hardcode_libdir_flag_spec='-R$libdir'
9627       hardcode_direct=yes
9628       hardcode_shlibpath_var=no
9629       ;;
9630
9631     hpux9*)
9632       if test "$GCC" = yes; then
9633         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'
9634       else
9635         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'
9636       fi
9637       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9638       hardcode_libdir_separator=:
9639       hardcode_direct=yes
9640
9641       # hardcode_minus_L: Not really in the search PATH,
9642       # but as the default location of the library.
9643       hardcode_minus_L=yes
9644       export_dynamic_flag_spec='${wl}-E'
9645       ;;
9646
9647     hpux10*)
9648       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9649         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9650       else
9651         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9652       fi
9653       if test "$with_gnu_ld" = no; then
9654         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9655         hardcode_libdir_flag_spec_ld='+b $libdir'
9656         hardcode_libdir_separator=:
9657         hardcode_direct=yes
9658         hardcode_direct_absolute=yes
9659         export_dynamic_flag_spec='${wl}-E'
9660         # hardcode_minus_L: Not really in the search PATH,
9661         # but as the default location of the library.
9662         hardcode_minus_L=yes
9663       fi
9664       ;;
9665
9666     hpux11*)
9667       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9668         case $host_cpu in
9669         hppa*64*)
9670           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9671           ;;
9672         ia64*)
9673           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9674           ;;
9675         *)
9676           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9677           ;;
9678         esac
9679       else
9680         case $host_cpu in
9681         hppa*64*)
9682           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9683           ;;
9684         ia64*)
9685           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9686           ;;
9687         *)
9688
9689           # Older versions of the 11.00 compiler do not understand -b yet
9690           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9691           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9692 $as_echo_n "checking if $CC understands -b... " >&6; }
9693 if ${lt_cv_prog_compiler__b+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   lt_cv_prog_compiler__b=no
9697    save_LDFLAGS="$LDFLAGS"
9698    LDFLAGS="$LDFLAGS -b"
9699    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9700    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9701      # The linker can only warn and ignore the option if not recognized
9702      # So say no if there are warnings
9703      if test -s conftest.err; then
9704        # Append any errors to the config.log.
9705        cat conftest.err 1>&5
9706        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9707        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9708        if diff conftest.exp conftest.er2 >/dev/null; then
9709          lt_cv_prog_compiler__b=yes
9710        fi
9711      else
9712        lt_cv_prog_compiler__b=yes
9713      fi
9714    fi
9715    $RM -r conftest*
9716    LDFLAGS="$save_LDFLAGS"
9717
9718 fi
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9720 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9721
9722 if test x"$lt_cv_prog_compiler__b" = xyes; then
9723     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9724 else
9725     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9726 fi
9727
9728           ;;
9729         esac
9730       fi
9731       if test "$with_gnu_ld" = no; then
9732         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9733         hardcode_libdir_separator=:
9734
9735         case $host_cpu in
9736         hppa*64*|ia64*)
9737           hardcode_direct=no
9738           hardcode_shlibpath_var=no
9739           ;;
9740         *)
9741           hardcode_direct=yes
9742           hardcode_direct_absolute=yes
9743           export_dynamic_flag_spec='${wl}-E'
9744
9745           # hardcode_minus_L: Not really in the search PATH,
9746           # but as the default location of the library.
9747           hardcode_minus_L=yes
9748           ;;
9749         esac
9750       fi
9751       ;;
9752
9753     irix5* | irix6* | nonstopux*)
9754       if test "$GCC" = yes; then
9755         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'
9756         # Try to use the -exported_symbol ld option, if it does not
9757         # work, assume that -exports_file does not work either and
9758         # implicitly export all symbols.
9759         # This should be the same for all languages, so no per-tag cache variable.
9760         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9761 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9762 if ${lt_cv_irix_exported_symbol+:} false; then :
9763   $as_echo_n "(cached) " >&6
9764 else
9765   save_LDFLAGS="$LDFLAGS"
9766            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9767            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9768 /* end confdefs.h.  */
9769 int foo (void) { return 0; }
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772   lt_cv_irix_exported_symbol=yes
9773 else
9774   lt_cv_irix_exported_symbol=no
9775 fi
9776 rm -f core conftest.err conftest.$ac_objext \
9777     conftest$ac_exeext conftest.$ac_ext
9778            LDFLAGS="$save_LDFLAGS"
9779 fi
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9781 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9782         if test "$lt_cv_irix_exported_symbol" = yes; then
9783           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'
9784         fi
9785       else
9786         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'
9787         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'
9788       fi
9789       archive_cmds_need_lc='no'
9790       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9791       hardcode_libdir_separator=:
9792       inherit_rpath=yes
9793       link_all_deplibs=yes
9794       ;;
9795
9796     netbsd*)
9797       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9798         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9799       else
9800         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9801       fi
9802       hardcode_libdir_flag_spec='-R$libdir'
9803       hardcode_direct=yes
9804       hardcode_shlibpath_var=no
9805       ;;
9806
9807     newsos6)
9808       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809       hardcode_direct=yes
9810       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9811       hardcode_libdir_separator=:
9812       hardcode_shlibpath_var=no
9813       ;;
9814
9815     *nto* | *qnx*)
9816       ;;
9817
9818     openbsd*)
9819       if test -f /usr/libexec/ld.so; then
9820         hardcode_direct=yes
9821         hardcode_shlibpath_var=no
9822         hardcode_direct_absolute=yes
9823         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9824           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9825           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9826           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9827           export_dynamic_flag_spec='${wl}-E'
9828         else
9829           case $host_os in
9830            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9831              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9832              hardcode_libdir_flag_spec='-R$libdir'
9833              ;;
9834            *)
9835              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9836              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9837              ;;
9838           esac
9839         fi
9840       else
9841         ld_shlibs=no
9842       fi
9843       ;;
9844
9845     os2*)
9846       hardcode_libdir_flag_spec='-L$libdir'
9847       hardcode_minus_L=yes
9848       allow_undefined_flag=unsupported
9849       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'
9850       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9851       ;;
9852
9853     osf3*)
9854       if test "$GCC" = yes; then
9855         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9856         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'
9857       else
9858         allow_undefined_flag=' -expect_unresolved \*'
9859         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'
9860       fi
9861       archive_cmds_need_lc='no'
9862       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9863       hardcode_libdir_separator=:
9864       ;;
9865
9866     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9867       if test "$GCC" = yes; then
9868         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9869         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'
9870         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9871       else
9872         allow_undefined_flag=' -expect_unresolved \*'
9873         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'
9874         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~
9875         $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'
9876
9877         # Both c and cxx compiler support -rpath directly
9878         hardcode_libdir_flag_spec='-rpath $libdir'
9879       fi
9880       archive_cmds_need_lc='no'
9881       hardcode_libdir_separator=:
9882       ;;
9883
9884     solaris*)
9885       no_undefined_flag=' -z defs'
9886       if test "$GCC" = yes; then
9887         wlarc='${wl}'
9888         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9889         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9890           $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'
9891       else
9892         case `$CC -V 2>&1` in
9893         *"Compilers 5.0"*)
9894           wlarc=''
9895           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9898           ;;
9899         *)
9900           wlarc='${wl}'
9901           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9902           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9903           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9904           ;;
9905         esac
9906       fi
9907       hardcode_libdir_flag_spec='-R$libdir'
9908       hardcode_shlibpath_var=no
9909       case $host_os in
9910       solaris2.[0-5] | solaris2.[0-5].*) ;;
9911       *)
9912         # The compiler driver will combine and reorder linker options,
9913         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9914         # but is careful enough not to reorder.
9915         # Supported since Solaris 2.6 (maybe 2.5.1?)
9916         if test "$GCC" = yes; then
9917           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9918         else
9919           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9920         fi
9921         ;;
9922       esac
9923       link_all_deplibs=yes
9924       ;;
9925
9926     sunos4*)
9927       if test "x$host_vendor" = xsequent; then
9928         # Use $CC to link under sequent, because it throws in some extra .o
9929         # files that make .init and .fini sections work.
9930         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9931       else
9932         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9933       fi
9934       hardcode_libdir_flag_spec='-L$libdir'
9935       hardcode_direct=yes
9936       hardcode_minus_L=yes
9937       hardcode_shlibpath_var=no
9938       ;;
9939
9940     sysv4)
9941       case $host_vendor in
9942         sni)
9943           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944           hardcode_direct=yes # is this really true???
9945         ;;
9946         siemens)
9947           ## LD is ld it makes a PLAMLIB
9948           ## CC just makes a GrossModule.
9949           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9950           reload_cmds='$CC -r -o $output$reload_objs'
9951           hardcode_direct=no
9952         ;;
9953         motorola)
9954           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9955           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9956         ;;
9957       esac
9958       runpath_var='LD_RUN_PATH'
9959       hardcode_shlibpath_var=no
9960       ;;
9961
9962     sysv4.3*)
9963       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9964       hardcode_shlibpath_var=no
9965       export_dynamic_flag_spec='-Bexport'
9966       ;;
9967
9968     sysv4*MP*)
9969       if test -d /usr/nec; then
9970         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971         hardcode_shlibpath_var=no
9972         runpath_var=LD_RUN_PATH
9973         hardcode_runpath_var=yes
9974         ld_shlibs=yes
9975       fi
9976       ;;
9977
9978     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9979       no_undefined_flag='${wl}-z,text'
9980       archive_cmds_need_lc=no
9981       hardcode_shlibpath_var=no
9982       runpath_var='LD_RUN_PATH'
9983
9984       if test "$GCC" = yes; then
9985         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987       else
9988         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9989         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990       fi
9991       ;;
9992
9993     sysv5* | sco3.2v5* | sco5v6*)
9994       # Note: We can NOT use -z defs as we might desire, because we do not
9995       # link with -lc, and that would cause any symbols used from libc to
9996       # always be unresolved, which means just about no library would
9997       # ever link correctly.  If we're not using GNU ld we use -z text
9998       # though, which does catch some bad symbols but isn't as heavy-handed
9999       # as -z defs.
10000       no_undefined_flag='${wl}-z,text'
10001       allow_undefined_flag='${wl}-z,nodefs'
10002       archive_cmds_need_lc=no
10003       hardcode_shlibpath_var=no
10004       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10005       hardcode_libdir_separator=':'
10006       link_all_deplibs=yes
10007       export_dynamic_flag_spec='${wl}-Bexport'
10008       runpath_var='LD_RUN_PATH'
10009
10010       if test "$GCC" = yes; then
10011         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013       else
10014         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10015         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016       fi
10017       ;;
10018
10019     uts4*)
10020       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021       hardcode_libdir_flag_spec='-L$libdir'
10022       hardcode_shlibpath_var=no
10023       ;;
10024
10025     *)
10026       ld_shlibs=no
10027       ;;
10028     esac
10029
10030     if test x$host_vendor = xsni; then
10031       case $host in
10032       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10033         export_dynamic_flag_spec='${wl}-Blargedynsym'
10034         ;;
10035       esac
10036     fi
10037   fi
10038
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10040 $as_echo "$ld_shlibs" >&6; }
10041 test "$ld_shlibs" = no && can_build_shared=no
10042
10043 with_gnu_ld=$with_gnu_ld
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059 #
10060 # Do we need to explicitly link libc?
10061 #
10062 case "x$archive_cmds_need_lc" in
10063 x|xyes)
10064   # Assume -lc should be added
10065   archive_cmds_need_lc=yes
10066
10067   if test "$enable_shared" = yes && test "$GCC" = yes; then
10068     case $archive_cmds in
10069     *'~'*)
10070       # FIXME: we may have to deal with multi-command sequences.
10071       ;;
10072     '$CC '*)
10073       # Test whether the compiler implicitly links with -lc since on some
10074       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10075       # to ld, don't add -lc before -lgcc.
10076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10077 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10078 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10079   $as_echo_n "(cached) " >&6
10080 else
10081   $RM conftest*
10082         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10083
10084         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10085   (eval $ac_compile) 2>&5
10086   ac_status=$?
10087   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10088   test $ac_status = 0; } 2>conftest.err; then
10089           soname=conftest
10090           lib=conftest
10091           libobjs=conftest.$ac_objext
10092           deplibs=
10093           wl=$lt_prog_compiler_wl
10094           pic_flag=$lt_prog_compiler_pic
10095           compiler_flags=-v
10096           linker_flags=-v
10097           verstring=
10098           output_objdir=.
10099           libname=conftest
10100           lt_save_allow_undefined_flag=$allow_undefined_flag
10101           allow_undefined_flag=
10102           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10103   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10104   ac_status=$?
10105   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10106   test $ac_status = 0; }
10107           then
10108             lt_cv_archive_cmds_need_lc=no
10109           else
10110             lt_cv_archive_cmds_need_lc=yes
10111           fi
10112           allow_undefined_flag=$lt_save_allow_undefined_flag
10113         else
10114           cat conftest.err 1>&5
10115         fi
10116         $RM conftest*
10117
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10120 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10121       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10122       ;;
10123     esac
10124   fi
10125   ;;
10126 esac
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10285 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10286
10287 if test "$GCC" = yes; then
10288   case $host_os in
10289     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10290     *) lt_awk_arg="/^libraries:/" ;;
10291   esac
10292   case $host_os in
10293     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10294     *) lt_sed_strip_eq="s,=/,/,g" ;;
10295   esac
10296   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10297   case $lt_search_path_spec in
10298   *\;*)
10299     # if the path contains ";" then we assume it to be the separator
10300     # otherwise default to the standard path separator (i.e. ":") - it is
10301     # assumed that no part of a normal pathname contains ";" but that should
10302     # okay in the real world where ";" in dirpaths is itself problematic.
10303     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10304     ;;
10305   *)
10306     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10307     ;;
10308   esac
10309   # Ok, now we have the path, separated by spaces, we can step through it
10310   # and add multilib dir if necessary.
10311   lt_tmp_lt_search_path_spec=
10312   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10313   for lt_sys_path in $lt_search_path_spec; do
10314     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10315       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10316     else
10317       test -d "$lt_sys_path" && \
10318         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10319     fi
10320   done
10321   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10322 BEGIN {RS=" "; FS="/|\n";} {
10323   lt_foo="";
10324   lt_count=0;
10325   for (lt_i = NF; lt_i > 0; lt_i--) {
10326     if ($lt_i != "" && $lt_i != ".") {
10327       if ($lt_i == "..") {
10328         lt_count++;
10329       } else {
10330         if (lt_count == 0) {
10331           lt_foo="/" $lt_i lt_foo;
10332         } else {
10333           lt_count--;
10334         }
10335       }
10336     }
10337   }
10338   if (lt_foo != "") { lt_freq[lt_foo]++; }
10339   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10340 }'`
10341   # AWK program above erroneously prepends '/' to C:/dos/paths
10342   # for these hosts.
10343   case $host_os in
10344     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10345       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10346   esac
10347   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10348 else
10349   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10350 fi
10351 library_names_spec=
10352 libname_spec='lib$name'
10353 soname_spec=
10354 shrext_cmds=".so"
10355 postinstall_cmds=
10356 postuninstall_cmds=
10357 finish_cmds=
10358 finish_eval=
10359 shlibpath_var=
10360 shlibpath_overrides_runpath=unknown
10361 version_type=none
10362 dynamic_linker="$host_os ld.so"
10363 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10364 need_lib_prefix=unknown
10365 hardcode_into_libs=no
10366
10367 # when you set need_version to no, make sure it does not cause -set_version
10368 # flags to be left without arguments
10369 need_version=unknown
10370
10371 case $host_os in
10372 aix3*)
10373   version_type=linux
10374   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10375   shlibpath_var=LIBPATH
10376
10377   # AIX 3 has no versioning support, so we append a major version to the name.
10378   soname_spec='${libname}${release}${shared_ext}$major'
10379   ;;
10380
10381 aix[4-9]*)
10382   version_type=linux
10383   need_lib_prefix=no
10384   need_version=no
10385   hardcode_into_libs=yes
10386   if test "$host_cpu" = ia64; then
10387     # AIX 5 supports IA64
10388     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10389     shlibpath_var=LD_LIBRARY_PATH
10390   else
10391     # With GCC up to 2.95.x, collect2 would create an import file
10392     # for dependence libraries.  The import file would start with
10393     # the line `#! .'.  This would cause the generated library to
10394     # depend on `.', always an invalid library.  This was fixed in
10395     # development snapshots of GCC prior to 3.0.
10396     case $host_os in
10397       aix4 | aix4.[01] | aix4.[01].*)
10398       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10399            echo ' yes '
10400            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10401         :
10402       else
10403         can_build_shared=no
10404       fi
10405       ;;
10406     esac
10407     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10408     # soname into executable. Probably we can add versioning support to
10409     # collect2, so additional links can be useful in future.
10410     if test "$aix_use_runtimelinking" = yes; then
10411       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10412       # instead of lib<name>.a to let people know that these are not
10413       # typical AIX shared libraries.
10414       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10415     else
10416       # We preserve .a as extension for shared libraries through AIX4.2
10417       # and later when we are not doing run time linking.
10418       library_names_spec='${libname}${release}.a $libname.a'
10419       soname_spec='${libname}${release}${shared_ext}$major'
10420     fi
10421     shlibpath_var=LIBPATH
10422   fi
10423   ;;
10424
10425 amigaos*)
10426   case $host_cpu in
10427   powerpc)
10428     # Since July 2007 AmigaOS4 officially supports .so libraries.
10429     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10430     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431     ;;
10432   m68k)
10433     library_names_spec='$libname.ixlibrary $libname.a'
10434     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10435     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'
10436     ;;
10437   esac
10438   ;;
10439
10440 beos*)
10441   library_names_spec='${libname}${shared_ext}'
10442   dynamic_linker="$host_os ld.so"
10443   shlibpath_var=LIBRARY_PATH
10444   ;;
10445
10446 bsdi[45]*)
10447   version_type=linux
10448   need_version=no
10449   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10450   soname_spec='${libname}${release}${shared_ext}$major'
10451   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10452   shlibpath_var=LD_LIBRARY_PATH
10453   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10454   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10455   # the default ld.so.conf also contains /usr/contrib/lib and
10456   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10457   # libtool to hard-code these into programs
10458   ;;
10459
10460 cygwin* | mingw* | pw32* | cegcc*)
10461   version_type=windows
10462   shrext_cmds=".dll"
10463   need_version=no
10464   need_lib_prefix=no
10465
10466   case $GCC,$cc_basename in
10467   yes,*)
10468     # gcc
10469     library_names_spec='$libname.dll.a'
10470     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10471     postinstall_cmds='base_file=`basename \${file}`~
10472       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10473       dldir=$destdir/`dirname \$dlpath`~
10474       test -d \$dldir || mkdir -p \$dldir~
10475       $install_prog $dir/$dlname \$dldir/$dlname~
10476       chmod a+x \$dldir/$dlname~
10477       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10478         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10479       fi'
10480     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10481       dlpath=$dir/\$dldll~
10482        $RM \$dlpath'
10483     shlibpath_overrides_runpath=yes
10484
10485     case $host_os in
10486     cygwin*)
10487       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10488       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10489
10490       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10491       ;;
10492     mingw* | cegcc*)
10493       # MinGW DLLs use traditional 'lib' prefix
10494       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10495       ;;
10496     pw32*)
10497       # pw32 DLLs use 'pw' prefix rather than 'lib'
10498       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10499       ;;
10500     esac
10501     dynamic_linker='Win32 ld.exe'
10502     ;;
10503
10504   *,cl*)
10505     # Native MSVC
10506     libname_spec='$name'
10507     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10508     library_names_spec='${libname}.dll.lib'
10509
10510     case $build_os in
10511     mingw*)
10512       sys_lib_search_path_spec=
10513       lt_save_ifs=$IFS
10514       IFS=';'
10515       for lt_path in $LIB
10516       do
10517         IFS=$lt_save_ifs
10518         # Let DOS variable expansion print the short 8.3 style file name.
10519         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10520         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10521       done
10522       IFS=$lt_save_ifs
10523       # Convert to MSYS style.
10524       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10525       ;;
10526     cygwin*)
10527       # Convert to unix form, then to dos form, then back to unix form
10528       # but this time dos style (no spaces!) so that the unix form looks
10529       # like /cygdrive/c/PROGRA~1:/cygdr...
10530       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10531       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10532       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10533       ;;
10534     *)
10535       sys_lib_search_path_spec="$LIB"
10536       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10537         # It is most probably a Windows format PATH.
10538         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10539       else
10540         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10541       fi
10542       # FIXME: find the short name or the path components, as spaces are
10543       # common. (e.g. "Program Files" -> "PROGRA~1")
10544       ;;
10545     esac
10546
10547     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10548     postinstall_cmds='base_file=`basename \${file}`~
10549       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10550       dldir=$destdir/`dirname \$dlpath`~
10551       test -d \$dldir || mkdir -p \$dldir~
10552       $install_prog $dir/$dlname \$dldir/$dlname'
10553     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10554       dlpath=$dir/\$dldll~
10555        $RM \$dlpath'
10556     shlibpath_overrides_runpath=yes
10557     dynamic_linker='Win32 link.exe'
10558     ;;
10559
10560   *)
10561     # Assume MSVC wrapper
10562     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10563     dynamic_linker='Win32 ld.exe'
10564     ;;
10565   esac
10566   # FIXME: first we should search . and the directory the executable is in
10567   shlibpath_var=PATH
10568   ;;
10569
10570 darwin* | rhapsody*)
10571   dynamic_linker="$host_os dyld"
10572   version_type=darwin
10573   need_lib_prefix=no
10574   need_version=no
10575   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10576   soname_spec='${libname}${release}${major}$shared_ext'
10577   shlibpath_overrides_runpath=yes
10578   shlibpath_var=DYLD_LIBRARY_PATH
10579   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10580
10581   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10582   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10583   ;;
10584
10585 dgux*)
10586   version_type=linux
10587   need_lib_prefix=no
10588   need_version=no
10589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10590   soname_spec='${libname}${release}${shared_ext}$major'
10591   shlibpath_var=LD_LIBRARY_PATH
10592   ;;
10593
10594 freebsd1*)
10595   dynamic_linker=no
10596   ;;
10597
10598 freebsd* | dragonfly*)
10599   # DragonFly does not have aout.  When/if they implement a new
10600   # versioning mechanism, adjust this.
10601   if test -x /usr/bin/objformat; then
10602     objformat=`/usr/bin/objformat`
10603   else
10604     case $host_os in
10605     freebsd[123]*) objformat=aout ;;
10606     *) objformat=elf ;;
10607     esac
10608   fi
10609   version_type=freebsd-$objformat
10610   case $version_type in
10611     freebsd-elf*)
10612       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10613       need_version=no
10614       need_lib_prefix=no
10615       ;;
10616     freebsd-*)
10617       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10618       need_version=yes
10619       ;;
10620   esac
10621   shlibpath_var=LD_LIBRARY_PATH
10622   case $host_os in
10623   freebsd2*)
10624     shlibpath_overrides_runpath=yes
10625     ;;
10626   freebsd3.[01]* | freebsdelf3.[01]*)
10627     shlibpath_overrides_runpath=yes
10628     hardcode_into_libs=yes
10629     ;;
10630   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10631   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10632     shlibpath_overrides_runpath=no
10633     hardcode_into_libs=yes
10634     ;;
10635   *) # from 4.6 on, and DragonFly
10636     shlibpath_overrides_runpath=yes
10637     hardcode_into_libs=yes
10638     ;;
10639   esac
10640   ;;
10641
10642 gnu*)
10643   version_type=linux
10644   need_lib_prefix=no
10645   need_version=no
10646   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10647   soname_spec='${libname}${release}${shared_ext}$major'
10648   shlibpath_var=LD_LIBRARY_PATH
10649   hardcode_into_libs=yes
10650   ;;
10651
10652 haiku*)
10653   version_type=linux
10654   need_lib_prefix=no
10655   need_version=no
10656   dynamic_linker="$host_os runtime_loader"
10657   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10658   soname_spec='${libname}${release}${shared_ext}$major'
10659   shlibpath_var=LIBRARY_PATH
10660   shlibpath_overrides_runpath=yes
10661   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10662   hardcode_into_libs=yes
10663   ;;
10664
10665 hpux9* | hpux10* | hpux11*)
10666   # Give a soname corresponding to the major version so that dld.sl refuses to
10667   # link against other versions.
10668   version_type=sunos
10669   need_lib_prefix=no
10670   need_version=no
10671   case $host_cpu in
10672   ia64*)
10673     shrext_cmds='.so'
10674     hardcode_into_libs=yes
10675     dynamic_linker="$host_os dld.so"
10676     shlibpath_var=LD_LIBRARY_PATH
10677     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10678     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679     soname_spec='${libname}${release}${shared_ext}$major'
10680     if test "X$HPUX_IA64_MODE" = X32; then
10681       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10682     else
10683       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10684     fi
10685     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10686     ;;
10687   hppa*64*)
10688     shrext_cmds='.sl'
10689     hardcode_into_libs=yes
10690     dynamic_linker="$host_os dld.sl"
10691     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10692     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10693     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694     soname_spec='${libname}${release}${shared_ext}$major'
10695     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10696     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10697     ;;
10698   *)
10699     shrext_cmds='.sl'
10700     dynamic_linker="$host_os dld.sl"
10701     shlibpath_var=SHLIB_PATH
10702     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10703     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10704     soname_spec='${libname}${release}${shared_ext}$major'
10705     ;;
10706   esac
10707   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10708   postinstall_cmds='chmod 555 $lib'
10709   # or fails outright, so override atomically:
10710   install_override_mode=555
10711   ;;
10712
10713 interix[3-9]*)
10714   version_type=linux
10715   need_lib_prefix=no
10716   need_version=no
10717   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10718   soname_spec='${libname}${release}${shared_ext}$major'
10719   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10720   shlibpath_var=LD_LIBRARY_PATH
10721   shlibpath_overrides_runpath=no
10722   hardcode_into_libs=yes
10723   ;;
10724
10725 irix5* | irix6* | nonstopux*)
10726   case $host_os in
10727     nonstopux*) version_type=nonstopux ;;
10728     *)
10729         if test "$lt_cv_prog_gnu_ld" = yes; then
10730                 version_type=linux
10731         else
10732                 version_type=irix
10733         fi ;;
10734   esac
10735   need_lib_prefix=no
10736   need_version=no
10737   soname_spec='${libname}${release}${shared_ext}$major'
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10739   case $host_os in
10740   irix5* | nonstopux*)
10741     libsuff= shlibsuff=
10742     ;;
10743   *)
10744     case $LD in # libtool.m4 will add one of these switches to LD
10745     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10746       libsuff= shlibsuff= libmagic=32-bit;;
10747     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10748       libsuff=32 shlibsuff=N32 libmagic=N32;;
10749     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10750       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10751     *) libsuff= shlibsuff= libmagic=never-match;;
10752     esac
10753     ;;
10754   esac
10755   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10756   shlibpath_overrides_runpath=no
10757   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10758   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10759   hardcode_into_libs=yes
10760   ;;
10761
10762 # No shared lib support for Linux oldld, aout, or coff.
10763 linux*oldld* | linux*aout* | linux*coff*)
10764   dynamic_linker=no
10765   ;;
10766
10767 # This must be Linux ELF.
10768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10769   version_type=linux
10770   need_lib_prefix=no
10771   need_version=no
10772   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773   soname_spec='${libname}${release}${shared_ext}$major'
10774   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10775   shlibpath_var=LD_LIBRARY_PATH
10776   shlibpath_overrides_runpath=no
10777
10778   # Some binutils ld are patched to set DT_RUNPATH
10779   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10780   $as_echo_n "(cached) " >&6
10781 else
10782   lt_cv_shlibpath_overrides_runpath=no
10783     save_LDFLAGS=$LDFLAGS
10784     save_libdir=$libdir
10785     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10786          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10787     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789
10790 int
10791 main ()
10792 {
10793
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_link "$LINENO"; then :
10799   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10800   lt_cv_shlibpath_overrides_runpath=yes
10801 fi
10802 fi
10803 rm -f core conftest.err conftest.$ac_objext \
10804     conftest$ac_exeext conftest.$ac_ext
10805     LDFLAGS=$save_LDFLAGS
10806     libdir=$save_libdir
10807
10808 fi
10809
10810   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10811
10812   # This implies no fast_install, which is unacceptable.
10813   # Some rework will be needed to allow for fast_install
10814   # before this can be enabled.
10815   hardcode_into_libs=yes
10816
10817   # Add ABI-specific directories to the system library path.
10818   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10819
10820   # Append ld.so.conf contents to the search path
10821   if test -f /etc/ld.so.conf; then
10822     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' ' '`
10823     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10824
10825   fi
10826
10827   # We used to test for /lib/ld.so.1 and disable shared libraries on
10828   # powerpc, because MkLinux only supported shared libraries with the
10829   # GNU dynamic linker.  Since this was broken with cross compilers,
10830   # most powerpc-linux boxes support dynamic linking these days and
10831   # people can always --disable-shared, the test was removed, and we
10832   # assume the GNU/Linux dynamic linker is in use.
10833   dynamic_linker='GNU/Linux ld.so'
10834   ;;
10835
10836 netbsd*)
10837   version_type=sunos
10838   need_lib_prefix=no
10839   need_version=no
10840   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10842     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10843     dynamic_linker='NetBSD (a.out) ld.so'
10844   else
10845     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10846     soname_spec='${libname}${release}${shared_ext}$major'
10847     dynamic_linker='NetBSD ld.elf_so'
10848   fi
10849   shlibpath_var=LD_LIBRARY_PATH
10850   shlibpath_overrides_runpath=yes
10851   hardcode_into_libs=yes
10852   ;;
10853
10854 newsos6)
10855   version_type=linux
10856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10857   shlibpath_var=LD_LIBRARY_PATH
10858   shlibpath_overrides_runpath=yes
10859   ;;
10860
10861 *nto* | *qnx*)
10862   version_type=qnx
10863   need_lib_prefix=no
10864   need_version=no
10865   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10866   soname_spec='${libname}${release}${shared_ext}$major'
10867   shlibpath_var=LD_LIBRARY_PATH
10868   shlibpath_overrides_runpath=no
10869   hardcode_into_libs=yes
10870   dynamic_linker='ldqnx.so'
10871   ;;
10872
10873 openbsd*)
10874   version_type=sunos
10875   sys_lib_dlsearch_path_spec="/usr/lib"
10876   need_lib_prefix=no
10877   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10878   case $host_os in
10879     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10880     *)                          need_version=no  ;;
10881   esac
10882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10883   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10884   shlibpath_var=LD_LIBRARY_PATH
10885   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10886     case $host_os in
10887       openbsd2.[89] | openbsd2.[89].*)
10888         shlibpath_overrides_runpath=no
10889         ;;
10890       *)
10891         shlibpath_overrides_runpath=yes
10892         ;;
10893       esac
10894   else
10895     shlibpath_overrides_runpath=yes
10896   fi
10897   ;;
10898
10899 os2*)
10900   libname_spec='$name'
10901   shrext_cmds=".dll"
10902   need_lib_prefix=no
10903   library_names_spec='$libname${shared_ext} $libname.a'
10904   dynamic_linker='OS/2 ld.exe'
10905   shlibpath_var=LIBPATH
10906   ;;
10907
10908 osf3* | osf4* | osf5*)
10909   version_type=osf
10910   need_lib_prefix=no
10911   need_version=no
10912   soname_spec='${libname}${release}${shared_ext}$major'
10913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10914   shlibpath_var=LD_LIBRARY_PATH
10915   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10916   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10917   ;;
10918
10919 rdos*)
10920   dynamic_linker=no
10921   ;;
10922
10923 solaris*)
10924   version_type=linux
10925   need_lib_prefix=no
10926   need_version=no
10927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928   soname_spec='${libname}${release}${shared_ext}$major'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   shlibpath_overrides_runpath=yes
10931   hardcode_into_libs=yes
10932   # ldd complains unless libraries are executable
10933   postinstall_cmds='chmod +x $lib'
10934   ;;
10935
10936 sunos4*)
10937   version_type=sunos
10938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10939   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10940   shlibpath_var=LD_LIBRARY_PATH
10941   shlibpath_overrides_runpath=yes
10942   if test "$with_gnu_ld" = yes; then
10943     need_lib_prefix=no
10944   fi
10945   need_version=yes
10946   ;;
10947
10948 sysv4 | sysv4.3*)
10949   version_type=linux
10950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10951   soname_spec='${libname}${release}${shared_ext}$major'
10952   shlibpath_var=LD_LIBRARY_PATH
10953   case $host_vendor in
10954     sni)
10955       shlibpath_overrides_runpath=no
10956       need_lib_prefix=no
10957       runpath_var=LD_RUN_PATH
10958       ;;
10959     siemens)
10960       need_lib_prefix=no
10961       ;;
10962     motorola)
10963       need_lib_prefix=no
10964       need_version=no
10965       shlibpath_overrides_runpath=no
10966       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10967       ;;
10968   esac
10969   ;;
10970
10971 sysv4*MP*)
10972   if test -d /usr/nec ;then
10973     version_type=linux
10974     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10975     soname_spec='$libname${shared_ext}.$major'
10976     shlibpath_var=LD_LIBRARY_PATH
10977   fi
10978   ;;
10979
10980 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10981   version_type=freebsd-elf
10982   need_lib_prefix=no
10983   need_version=no
10984   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10985   soname_spec='${libname}${release}${shared_ext}$major'
10986   shlibpath_var=LD_LIBRARY_PATH
10987   shlibpath_overrides_runpath=yes
10988   hardcode_into_libs=yes
10989   if test "$with_gnu_ld" = yes; then
10990     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10991   else
10992     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10993     case $host_os in
10994       sco3.2v5*)
10995         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10996         ;;
10997     esac
10998   fi
10999   sys_lib_dlsearch_path_spec='/usr/lib'
11000   ;;
11001
11002 tpf*)
11003   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11004   version_type=linux
11005   need_lib_prefix=no
11006   need_version=no
11007   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008   shlibpath_var=LD_LIBRARY_PATH
11009   shlibpath_overrides_runpath=no
11010   hardcode_into_libs=yes
11011   ;;
11012
11013 uts4*)
11014   version_type=linux
11015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11016   soname_spec='${libname}${release}${shared_ext}$major'
11017   shlibpath_var=LD_LIBRARY_PATH
11018   ;;
11019
11020 *)
11021   dynamic_linker=no
11022   ;;
11023 esac
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11025 $as_echo "$dynamic_linker" >&6; }
11026 test "$dynamic_linker" = no && can_build_shared=no
11027
11028 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11029 if test "$GCC" = yes; then
11030   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11031 fi
11032
11033 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11034   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11035 fi
11036 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11037   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11038 fi
11039
11040
11041
11042
11043
11044
11045
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
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11132 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11133 hardcode_action=
11134 if test -n "$hardcode_libdir_flag_spec" ||
11135    test -n "$runpath_var" ||
11136    test "X$hardcode_automatic" = "Xyes" ; then
11137
11138   # We can hardcode non-existent directories.
11139   if test "$hardcode_direct" != no &&
11140      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11141      # have to relink, otherwise we might link with an installed library
11142      # when we should be linking with a yet-to-be-installed one
11143      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11144      test "$hardcode_minus_L" != no; then
11145     # Linking always hardcodes the temporary library directory.
11146     hardcode_action=relink
11147   else
11148     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11149     hardcode_action=immediate
11150   fi
11151 else
11152   # We cannot hardcode anything, or else we can only hardcode existing
11153   # directories.
11154   hardcode_action=unsupported
11155 fi
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11157 $as_echo "$hardcode_action" >&6; }
11158
11159 if test "$hardcode_action" = relink ||
11160    test "$inherit_rpath" = yes; then
11161   # Fast installation is not supported
11162   enable_fast_install=no
11163 elif test "$shlibpath_overrides_runpath" = yes ||
11164      test "$enable_shared" = no; then
11165   # Fast installation is not necessary
11166   enable_fast_install=needless
11167 fi
11168
11169
11170
11171
11172
11173
11174   if test "x$enable_dlopen" != xyes; then
11175   enable_dlopen=unknown
11176   enable_dlopen_self=unknown
11177   enable_dlopen_self_static=unknown
11178 else
11179   lt_cv_dlopen=no
11180   lt_cv_dlopen_libs=
11181
11182   case $host_os in
11183   beos*)
11184     lt_cv_dlopen="load_add_on"
11185     lt_cv_dlopen_libs=
11186     lt_cv_dlopen_self=yes
11187     ;;
11188
11189   mingw* | pw32* | cegcc*)
11190     lt_cv_dlopen="LoadLibrary"
11191     lt_cv_dlopen_libs=
11192     ;;
11193
11194   cygwin*)
11195     lt_cv_dlopen="dlopen"
11196     lt_cv_dlopen_libs=
11197     ;;
11198
11199   darwin*)
11200   # if libdl is installed we need to link against it
11201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11202 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11203 if ${ac_cv_lib_dl_dlopen+:} false; then :
11204   $as_echo_n "(cached) " >&6
11205 else
11206   ac_check_lib_save_LIBS=$LIBS
11207 LIBS="-ldl  $LIBS"
11208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11209 /* end confdefs.h.  */
11210
11211 /* Override any GCC internal prototype to avoid an error.
11212    Use char because int might match the return type of a GCC
11213    builtin and then its argument prototype would still apply.  */
11214 #ifdef __cplusplus
11215 extern "C"
11216 #endif
11217 char dlopen ();
11218 int
11219 main ()
11220 {
11221 return dlopen ();
11222   ;
11223   return 0;
11224 }
11225 _ACEOF
11226 if ac_fn_c_try_link "$LINENO"; then :
11227   ac_cv_lib_dl_dlopen=yes
11228 else
11229   ac_cv_lib_dl_dlopen=no
11230 fi
11231 rm -f core conftest.err conftest.$ac_objext \
11232     conftest$ac_exeext conftest.$ac_ext
11233 LIBS=$ac_check_lib_save_LIBS
11234 fi
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11236 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11237 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11238   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11239 else
11240
11241     lt_cv_dlopen="dyld"
11242     lt_cv_dlopen_libs=
11243     lt_cv_dlopen_self=yes
11244
11245 fi
11246
11247     ;;
11248
11249   *)
11250     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11251 if test "x$ac_cv_func_shl_load" = xyes; then :
11252   lt_cv_dlopen="shl_load"
11253 else
11254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11255 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11256 if ${ac_cv_lib_dld_shl_load+:} false; then :
11257   $as_echo_n "(cached) " >&6
11258 else
11259   ac_check_lib_save_LIBS=$LIBS
11260 LIBS="-ldld  $LIBS"
11261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11262 /* end confdefs.h.  */
11263
11264 /* Override any GCC internal prototype to avoid an error.
11265    Use char because int might match the return type of a GCC
11266    builtin and then its argument prototype would still apply.  */
11267 #ifdef __cplusplus
11268 extern "C"
11269 #endif
11270 char shl_load ();
11271 int
11272 main ()
11273 {
11274 return shl_load ();
11275   ;
11276   return 0;
11277 }
11278 _ACEOF
11279 if ac_fn_c_try_link "$LINENO"; then :
11280   ac_cv_lib_dld_shl_load=yes
11281 else
11282   ac_cv_lib_dld_shl_load=no
11283 fi
11284 rm -f core conftest.err conftest.$ac_objext \
11285     conftest$ac_exeext conftest.$ac_ext
11286 LIBS=$ac_check_lib_save_LIBS
11287 fi
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11289 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11290 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11291   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11292 else
11293   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11294 if test "x$ac_cv_func_dlopen" = xyes; then :
11295   lt_cv_dlopen="dlopen"
11296 else
11297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11298 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11299 if ${ac_cv_lib_dl_dlopen+:} false; then :
11300   $as_echo_n "(cached) " >&6
11301 else
11302   ac_check_lib_save_LIBS=$LIBS
11303 LIBS="-ldl  $LIBS"
11304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11305 /* end confdefs.h.  */
11306
11307 /* Override any GCC internal prototype to avoid an error.
11308    Use char because int might match the return type of a GCC
11309    builtin and then its argument prototype would still apply.  */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char dlopen ();
11314 int
11315 main ()
11316 {
11317 return dlopen ();
11318   ;
11319   return 0;
11320 }
11321 _ACEOF
11322 if ac_fn_c_try_link "$LINENO"; then :
11323   ac_cv_lib_dl_dlopen=yes
11324 else
11325   ac_cv_lib_dl_dlopen=no
11326 fi
11327 rm -f core conftest.err conftest.$ac_objext \
11328     conftest$ac_exeext conftest.$ac_ext
11329 LIBS=$ac_check_lib_save_LIBS
11330 fi
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11332 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11333 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11334   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11335 else
11336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11337 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11338 if ${ac_cv_lib_svld_dlopen+:} false; then :
11339   $as_echo_n "(cached) " >&6
11340 else
11341   ac_check_lib_save_LIBS=$LIBS
11342 LIBS="-lsvld  $LIBS"
11343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11344 /* end confdefs.h.  */
11345
11346 /* Override any GCC internal prototype to avoid an error.
11347    Use char because int might match the return type of a GCC
11348    builtin and then its argument prototype would still apply.  */
11349 #ifdef __cplusplus
11350 extern "C"
11351 #endif
11352 char dlopen ();
11353 int
11354 main ()
11355 {
11356 return dlopen ();
11357   ;
11358   return 0;
11359 }
11360 _ACEOF
11361 if ac_fn_c_try_link "$LINENO"; then :
11362   ac_cv_lib_svld_dlopen=yes
11363 else
11364   ac_cv_lib_svld_dlopen=no
11365 fi
11366 rm -f core conftest.err conftest.$ac_objext \
11367     conftest$ac_exeext conftest.$ac_ext
11368 LIBS=$ac_check_lib_save_LIBS
11369 fi
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11371 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11372 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11373   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11374 else
11375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11376 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11377 if ${ac_cv_lib_dld_dld_link+:} false; then :
11378   $as_echo_n "(cached) " >&6
11379 else
11380   ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldld  $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h.  */
11384
11385 /* Override any GCC internal prototype to avoid an error.
11386    Use char because int might match the return type of a GCC
11387    builtin and then its argument prototype would still apply.  */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char dld_link ();
11392 int
11393 main ()
11394 {
11395 return dld_link ();
11396   ;
11397   return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401   ac_cv_lib_dld_dld_link=yes
11402 else
11403   ac_cv_lib_dld_dld_link=no
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406     conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11410 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11411 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11412   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11413 fi
11414
11415
11416 fi
11417
11418
11419 fi
11420
11421
11422 fi
11423
11424
11425 fi
11426
11427
11428 fi
11429
11430     ;;
11431   esac
11432
11433   if test "x$lt_cv_dlopen" != xno; then
11434     enable_dlopen=yes
11435   else
11436     enable_dlopen=no
11437   fi
11438
11439   case $lt_cv_dlopen in
11440   dlopen)
11441     save_CPPFLAGS="$CPPFLAGS"
11442     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11443
11444     save_LDFLAGS="$LDFLAGS"
11445     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11446
11447     save_LIBS="$LIBS"
11448     LIBS="$lt_cv_dlopen_libs $LIBS"
11449
11450     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11451 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11452 if ${lt_cv_dlopen_self+:} false; then :
11453   $as_echo_n "(cached) " >&6
11454 else
11455           if test "$cross_compiling" = yes; then :
11456   lt_cv_dlopen_self=cross
11457 else
11458   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11459   lt_status=$lt_dlunknown
11460   cat > conftest.$ac_ext <<_LT_EOF
11461 #line $LINENO "configure"
11462 #include "confdefs.h"
11463
11464 #if HAVE_DLFCN_H
11465 #include <dlfcn.h>
11466 #endif
11467
11468 #include <stdio.h>
11469
11470 #ifdef RTLD_GLOBAL
11471 #  define LT_DLGLOBAL           RTLD_GLOBAL
11472 #else
11473 #  ifdef DL_GLOBAL
11474 #    define LT_DLGLOBAL         DL_GLOBAL
11475 #  else
11476 #    define LT_DLGLOBAL         0
11477 #  endif
11478 #endif
11479
11480 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11481    find out it does not work in some platform. */
11482 #ifndef LT_DLLAZY_OR_NOW
11483 #  ifdef RTLD_LAZY
11484 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11485 #  else
11486 #    ifdef DL_LAZY
11487 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11488 #    else
11489 #      ifdef RTLD_NOW
11490 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11491 #      else
11492 #        ifdef DL_NOW
11493 #          define LT_DLLAZY_OR_NOW      DL_NOW
11494 #        else
11495 #          define LT_DLLAZY_OR_NOW      0
11496 #        endif
11497 #      endif
11498 #    endif
11499 #  endif
11500 #endif
11501
11502 /* When -fvisbility=hidden is used, assume the code has been annotated
11503    correspondingly for the symbols needed.  */
11504 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11505 int fnord () __attribute__((visibility("default")));
11506 #endif
11507
11508 int fnord () { return 42; }
11509 int main ()
11510 {
11511   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11512   int status = $lt_dlunknown;
11513
11514   if (self)
11515     {
11516       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11517       else
11518         {
11519           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11520           else puts (dlerror ());
11521         }
11522       /* dlclose (self); */
11523     }
11524   else
11525     puts (dlerror ());
11526
11527   return status;
11528 }
11529 _LT_EOF
11530   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11531   (eval $ac_link) 2>&5
11532   ac_status=$?
11533   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11534   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11535     (./conftest; exit; ) >&5 2>/dev/null
11536     lt_status=$?
11537     case x$lt_status in
11538       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11539       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11540       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11541     esac
11542   else :
11543     # compilation failed
11544     lt_cv_dlopen_self=no
11545   fi
11546 fi
11547 rm -fr conftest*
11548
11549
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11552 $as_echo "$lt_cv_dlopen_self" >&6; }
11553
11554     if test "x$lt_cv_dlopen_self" = xyes; then
11555       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11556       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11557 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11558 if ${lt_cv_dlopen_self_static+:} false; then :
11559   $as_echo_n "(cached) " >&6
11560 else
11561           if test "$cross_compiling" = yes; then :
11562   lt_cv_dlopen_self_static=cross
11563 else
11564   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11565   lt_status=$lt_dlunknown
11566   cat > conftest.$ac_ext <<_LT_EOF
11567 #line $LINENO "configure"
11568 #include "confdefs.h"
11569
11570 #if HAVE_DLFCN_H
11571 #include <dlfcn.h>
11572 #endif
11573
11574 #include <stdio.h>
11575
11576 #ifdef RTLD_GLOBAL
11577 #  define LT_DLGLOBAL           RTLD_GLOBAL
11578 #else
11579 #  ifdef DL_GLOBAL
11580 #    define LT_DLGLOBAL         DL_GLOBAL
11581 #  else
11582 #    define LT_DLGLOBAL         0
11583 #  endif
11584 #endif
11585
11586 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11587    find out it does not work in some platform. */
11588 #ifndef LT_DLLAZY_OR_NOW
11589 #  ifdef RTLD_LAZY
11590 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11591 #  else
11592 #    ifdef DL_LAZY
11593 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11594 #    else
11595 #      ifdef RTLD_NOW
11596 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11597 #      else
11598 #        ifdef DL_NOW
11599 #          define LT_DLLAZY_OR_NOW      DL_NOW
11600 #        else
11601 #          define LT_DLLAZY_OR_NOW      0
11602 #        endif
11603 #      endif
11604 #    endif
11605 #  endif
11606 #endif
11607
11608 /* When -fvisbility=hidden is used, assume the code has been annotated
11609    correspondingly for the symbols needed.  */
11610 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11611 int fnord () __attribute__((visibility("default")));
11612 #endif
11613
11614 int fnord () { return 42; }
11615 int main ()
11616 {
11617   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11618   int status = $lt_dlunknown;
11619
11620   if (self)
11621     {
11622       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11623       else
11624         {
11625           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11626           else puts (dlerror ());
11627         }
11628       /* dlclose (self); */
11629     }
11630   else
11631     puts (dlerror ());
11632
11633   return status;
11634 }
11635 _LT_EOF
11636   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11637   (eval $ac_link) 2>&5
11638   ac_status=$?
11639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11640   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11641     (./conftest; exit; ) >&5 2>/dev/null
11642     lt_status=$?
11643     case x$lt_status in
11644       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11645       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11646       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11647     esac
11648   else :
11649     # compilation failed
11650     lt_cv_dlopen_self_static=no
11651   fi
11652 fi
11653 rm -fr conftest*
11654
11655
11656 fi
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11658 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11659     fi
11660
11661     CPPFLAGS="$save_CPPFLAGS"
11662     LDFLAGS="$save_LDFLAGS"
11663     LIBS="$save_LIBS"
11664     ;;
11665   esac
11666
11667   case $lt_cv_dlopen_self in
11668   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11669   *) enable_dlopen_self=unknown ;;
11670   esac
11671
11672   case $lt_cv_dlopen_self_static in
11673   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11674   *) enable_dlopen_self_static=unknown ;;
11675   esac
11676 fi
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694 striplib=
11695 old_striplib=
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11697 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11698 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11699   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11700   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11702 $as_echo "yes" >&6; }
11703 else
11704 # FIXME - insert some real tests, host_os isn't really good enough
11705   case $host_os in
11706   darwin*)
11707     if test -n "$STRIP" ; then
11708       striplib="$STRIP -x"
11709       old_striplib="$STRIP -S"
11710       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11711 $as_echo "yes" >&6; }
11712     else
11713       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714 $as_echo "no" >&6; }
11715     fi
11716     ;;
11717   *)
11718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720     ;;
11721   esac
11722 fi
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735   # Report which library types will actually be built
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11737 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11739 $as_echo "$can_build_shared" >&6; }
11740
11741   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11742 $as_echo_n "checking whether to build shared libraries... " >&6; }
11743   test "$can_build_shared" = "no" && enable_shared=no
11744
11745   # On AIX, shared libraries and static libraries use the same namespace, and
11746   # are all built from PIC.
11747   case $host_os in
11748   aix3*)
11749     test "$enable_shared" = yes && enable_static=no
11750     if test -n "$RANLIB"; then
11751       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11752       postinstall_cmds='$RANLIB $lib'
11753     fi
11754     ;;
11755
11756   aix[4-9]*)
11757     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11758       test "$enable_shared" = yes && enable_static=no
11759     fi
11760     ;;
11761   esac
11762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11763 $as_echo "$enable_shared" >&6; }
11764
11765   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11766 $as_echo_n "checking whether to build static libraries... " >&6; }
11767   # Make sure either enable_shared or enable_static is yes.
11768   test "$enable_shared" = yes || enable_static=yes
11769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11770 $as_echo "$enable_static" >&6; }
11771
11772
11773
11774
11775 fi
11776 ac_ext=c
11777 ac_cpp='$CPP $CPPFLAGS'
11778 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11779 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11780 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11781
11782 CC="$lt_save_CC"
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796         ac_config_commands="$ac_config_commands libtool"
11797
11798
11799
11800
11801 # Only expand once:
11802
11803
11804
11805 # Honor aclocal flags
11806 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
11807
11808 JSON_MAJOR_VERSION=0
11809 JSON_MINOR_VERSION=14
11810 JSON_MICRO_VERSION=2
11811 JSON_VERSION=0.14.2
11812 JSON_RELEASE_STATUS=release
11813
11814
11815
11816
11817
11818
11819 JSON_LT_CURRENT=1400
11820 JSON_LT_REVISION=2
11821 JSON_LT_AGE=1400
11822 JSON_LT_VERSION="$JSON_LT_CURRENT:$JSON_LT_REVISION:$JSON_LT_AGE"
11823 JSON_LT_LDFLAGS="-version-info $JSON_LT_VERSION"
11824
11825
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building for some Win32 platform" >&5
11827 $as_echo_n "checking if building for some Win32 platform... " >&6; }
11828 case $host in #(
11829   *-*-mingw*|*-*-cygwin*) :
11830
11831           JSON_LT_LDFLAGS="$JSON_LT_LDFLAGS -no-undefined"
11832           platform_win32=yes
11833          ;; #(
11834   *) :
11835     platform_win32=no
11836  ;;
11837 esac
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
11839 $as_echo "$platform_win32" >&6; }
11840
11841
11842
11843 GLIB_PREFIX="`$PKG_CONFIG --variable=prefix glib-2.0`"
11844
11845
11846
11847 pkg_failed=no
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSON" >&5
11849 $as_echo_n "checking for JSON... " >&6; }
11850
11851 if test -n "$JSON_CFLAGS"; then
11852     pkg_cv_JSON_CFLAGS="$JSON_CFLAGS"
11853  elif test -n "$PKG_CONFIG"; then
11854     if test -n "$PKG_CONFIG" && \
11855     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.26 gio-2.0\""; } >&5
11856   ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.26 gio-2.0") 2>&5
11857   ac_status=$?
11858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859   test $ac_status = 0; }; then
11860   pkg_cv_JSON_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 >= 2.26 gio-2.0" 2>/dev/null`
11861 else
11862   pkg_failed=yes
11863 fi
11864  else
11865     pkg_failed=untried
11866 fi
11867 if test -n "$JSON_LIBS"; then
11868     pkg_cv_JSON_LIBS="$JSON_LIBS"
11869  elif test -n "$PKG_CONFIG"; then
11870     if test -n "$PKG_CONFIG" && \
11871     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 >= 2.26 gio-2.0\""; } >&5
11872   ($PKG_CONFIG --exists --print-errors "gobject-2.0 >= 2.26 gio-2.0") 2>&5
11873   ac_status=$?
11874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11875   test $ac_status = 0; }; then
11876   pkg_cv_JSON_LIBS=`$PKG_CONFIG --libs "gobject-2.0 >= 2.26 gio-2.0" 2>/dev/null`
11877 else
11878   pkg_failed=yes
11879 fi
11880  else
11881     pkg_failed=untried
11882 fi
11883
11884
11885
11886 if test $pkg_failed = yes; then
11887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11889
11890 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11891         _pkg_short_errors_supported=yes
11892 else
11893         _pkg_short_errors_supported=no
11894 fi
11895         if test $_pkg_short_errors_supported = yes; then
11896                 JSON_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-2.0 >= 2.26 gio-2.0" 2>&1`
11897         else
11898                 JSON_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-2.0 >= 2.26 gio-2.0" 2>&1`
11899         fi
11900         # Put the nasty error message in config.log where it belongs
11901         echo "$JSON_PKG_ERRORS" >&5
11902
11903         as_fn_error $? "Package requirements (gobject-2.0 >= 2.26 gio-2.0) were not met:
11904
11905 $JSON_PKG_ERRORS
11906
11907 Consider adjusting the PKG_CONFIG_PATH environment variable if you
11908 installed software in a non-standard prefix.
11909
11910 Alternatively, you may set the environment variables JSON_CFLAGS
11911 and JSON_LIBS to avoid the need to call pkg-config.
11912 See the pkg-config man page for more details." "$LINENO" 5
11913
11914 elif test $pkg_failed = untried; then
11915         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11919 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
11920 is in your PATH or set the PKG_CONFIG environment variable to the full
11921 path to pkg-config.
11922
11923 Alternatively, you may set the environment variables JSON_CFLAGS
11924 and JSON_LIBS to avoid the need to call pkg-config.
11925 See the pkg-config man page for more details.
11926
11927 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11928 See \`config.log' for more details" "$LINENO" 5; }
11929
11930 else
11931         JSON_CFLAGS=$pkg_cv_JSON_CFLAGS
11932         JSON_LIBS=$pkg_cv_JSON_LIBS
11933         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11934 $as_echo "yes" >&6; }
11935
11936 fi
11937
11938
11939
11940  if test "x$enable_glibtest" = "xyes"; then
11941   ENABLE_GLIB_TEST_TRUE=
11942   ENABLE_GLIB_TEST_FALSE='#'
11943 else
11944   ENABLE_GLIB_TEST_TRUE='#'
11945   ENABLE_GLIB_TEST_FALSE=
11946 fi
11947
11948
11949
11950
11951
11952 # Check whether --enable-debug was given.
11953 if test "${enable_debug+set}" = set; then :
11954   enableval=$enable_debug;
11955 else
11956   enable_debug=minimum
11957 fi
11958
11959
11960 case $enable_debug in #(
11961   yes) :
11962
11963           test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
11964           JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG"
11965          ;; #(
11966   minimum) :
11967
11968           JSON_DEBUG_CFLAGS="-DJSON_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
11969          ;; #(
11970   no) :
11971
11972           JSON_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
11973          ;; #(
11974   *) :
11975     as_fn_error $? "Unknown argument to --enable-debug" "$LINENO" 5
11976  ;;
11977 esac
11978
11979
11980
11981
11982 # use strict compiler flags only on development releases
11983
11984 # Check whether --enable-maintainer-flags was given.
11985 if test "${enable_maintainer_flags+set}" = set; then :
11986   enableval=$enable_maintainer_flags;
11987 else
11988   enable_maintainer_flags=no
11989 fi
11990
11991
11992 if test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"; then :
11993
11994
11995   list="-Wall -Wshadow -Wcast-align
11996                             -Wno-uninitialized -Wformat -Wformat-security
11997                             -Wno-strict-aliasing -Winit-self
11998                             -Wempty-body -Wdeclaration-after-statement
11999                             -Wno-strict-aliasing"
12000   flags_supported=""
12001   flags_unsupported=""
12002   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported compiler flags" >&5
12003 $as_echo_n "checking for supported compiler flags... " >&6; }
12004   for each in $list
12005   do
12006     save_CFLAGS="$CFLAGS"
12007     CFLAGS="$CFLAGS $each"
12008     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12009 /* end confdefs.h.  */
12010
12011 int
12012 main ()
12013 {
12014
12015   ;
12016   return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_compile "$LINENO"; then :
12020   flag_ok=yes
12021 else
12022   flag_ok=no
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025     CFLAGS="$save_CFLAGS"
12026
12027     if test "X$flag_ok" = Xyes ; then
12028       flags_supported="$flags_supported $each"
12029     else
12030       flags_unsupported="$flags_unsupported $each"
12031     fi
12032   done
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flags_supported" >&5
12034 $as_echo "$flags_supported" >&6; }
12035   if test "X$flags_unsupported" != X ; then
12036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsupported compiler flags: $flags_unsupported" >&5
12037 $as_echo "$as_me: WARNING: unsupported compiler flags: $flags_unsupported" >&2;}
12038   fi
12039   MAINTAINER_CFLAGS="$MAINTAINER_CFLAGS $flags_supported"
12040
12041
12042
12043 fi
12044 MAINTAINER_CFLAGS="${MAINTAINER_CFLAGS#*  }"
12045
12046
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with gcov testing" >&5
12048 $as_echo_n "checking whether to build with gcov testing... " >&6; }
12049 # Check whether --enable-gcov was given.
12050 if test "${enable_gcov+set}" = set; then :
12051   enableval=$enable_gcov;
12052 else
12053   enable_gcov=no
12054 fi
12055
12056
12057 if test "x$enable_gcov" = "xyes" && test "x$GCC" = "xyes"; then :
12058
12059         GCOV_CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
12060         GCOV_LDFLAGS="$LDFLAGS -lgcov"
12061
12062
12063 fi
12064
12065  if test "x$enable_gcov" = "xyes"; then
12066   GCOV_ENABLED_TRUE=
12067   GCOV_ENABLED_FALSE='#'
12068 else
12069   GCOV_ENABLED_TRUE='#'
12070   GCOV_ENABLED_FALSE=
12071 fi
12072
12073
12074
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gcov" >&5
12076 $as_echo "$enable_gcov" >&6; }
12077
12078
12079
12080
12081     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
12082 set dummy gtkdoc-check; ac_word=$2
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12084 $as_echo_n "checking for $ac_word... " >&6; }
12085 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
12086   $as_echo_n "(cached) " >&6
12087 else
12088   case $GTKDOC_CHECK in
12089   [\\/]* | ?:[\\/]*)
12090   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
12091   ;;
12092   *)
12093   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12095 do
12096   IFS=$as_save_IFS
12097   test -z "$as_dir" && as_dir=.
12098     for ac_exec_ext in '' $ac_executable_extensions; do
12099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
12101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102     break 2
12103   fi
12104 done
12105   done
12106 IFS=$as_save_IFS
12107
12108   ;;
12109 esac
12110 fi
12111 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
12112 if test -n "$GTKDOC_CHECK"; then
12113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
12114 $as_echo "$GTKDOC_CHECK" >&6; }
12115 else
12116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12118 fi
12119
12120
12121   for ac_prog in gtkdoc-rebase
12122 do
12123   # Extract the first word of "$ac_prog", so it can be a program name with args.
12124 set dummy $ac_prog; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
12128   $as_echo_n "(cached) " >&6
12129 else
12130   case $GTKDOC_REBASE in
12131   [\\/]* | ?:[\\/]*)
12132   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
12133   ;;
12134   *)
12135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138   IFS=$as_save_IFS
12139   test -z "$as_dir" && as_dir=.
12140     for ac_exec_ext in '' $ac_executable_extensions; do
12141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
12143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12144     break 2
12145   fi
12146 done
12147   done
12148 IFS=$as_save_IFS
12149
12150   ;;
12151 esac
12152 fi
12153 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
12154 if test -n "$GTKDOC_REBASE"; then
12155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
12156 $as_echo "$GTKDOC_REBASE" >&6; }
12157 else
12158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12159 $as_echo "no" >&6; }
12160 fi
12161
12162
12163   test -n "$GTKDOC_REBASE" && break
12164 done
12165 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
12166
12167   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
12168 set dummy gtkdoc-mkpdf; ac_word=$2
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12170 $as_echo_n "checking for $ac_word... " >&6; }
12171 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
12172   $as_echo_n "(cached) " >&6
12173 else
12174   case $GTKDOC_MKPDF in
12175   [\\/]* | ?:[\\/]*)
12176   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
12177   ;;
12178   *)
12179   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12180 for as_dir in $PATH
12181 do
12182   IFS=$as_save_IFS
12183   test -z "$as_dir" && as_dir=.
12184     for ac_exec_ext in '' $ac_executable_extensions; do
12185   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12186     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
12187     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12188     break 2
12189   fi
12190 done
12191   done
12192 IFS=$as_save_IFS
12193
12194   ;;
12195 esac
12196 fi
12197 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
12198 if test -n "$GTKDOC_MKPDF"; then
12199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
12200 $as_echo "$GTKDOC_MKPDF" >&6; }
12201 else
12202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12203 $as_echo "no" >&6; }
12204 fi
12205
12206
12207
12208
12209 # Check whether --with-html-dir was given.
12210 if test "${with_html_dir+set}" = set; then :
12211   withval=$with_html_dir;
12212 else
12213   with_html_dir='${datadir}/gtk-doc/html'
12214 fi
12215
12216   HTML_DIR="$with_html_dir"
12217
12218
12219     # Check whether --enable-gtk-doc was given.
12220 if test "${enable_gtk_doc+set}" = set; then :
12221   enableval=$enable_gtk_doc;
12222 else
12223   enable_gtk_doc=no
12224 fi
12225
12226
12227   if test x$enable_gtk_doc = xyes; then
12228     if test -n "$PKG_CONFIG" && \
12229     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.13\""; } >&5
12230   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.13") 2>&5
12231   ac_status=$?
12232   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233   test $ac_status = 0; }; then
12234   :
12235 else
12236   as_fn_error $? "You need to have gtk-doc >= 1.13 installed to build $PACKAGE_NAME" "$LINENO" 5
12237 fi
12238         if test "x$PACKAGE_NAME" != "xglib"; then
12239
12240 pkg_failed=no
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
12242 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
12243
12244 if test -n "$GTKDOC_DEPS_CFLAGS"; then
12245     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
12246  elif test -n "$PKG_CONFIG"; then
12247     if test -n "$PKG_CONFIG" && \
12248     { { $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
12249   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12250   ac_status=$?
12251   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12252   test $ac_status = 0; }; then
12253   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12254 else
12255   pkg_failed=yes
12256 fi
12257  else
12258     pkg_failed=untried
12259 fi
12260 if test -n "$GTKDOC_DEPS_LIBS"; then
12261     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
12262  elif test -n "$PKG_CONFIG"; then
12263     if test -n "$PKG_CONFIG" && \
12264     { { $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
12265   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
12266   ac_status=$?
12267   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12268   test $ac_status = 0; }; then
12269   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
12270 else
12271   pkg_failed=yes
12272 fi
12273  else
12274     pkg_failed=untried
12275 fi
12276
12277
12278
12279 if test $pkg_failed = yes; then
12280         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12281 $as_echo "no" >&6; }
12282
12283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12284         _pkg_short_errors_supported=yes
12285 else
12286         _pkg_short_errors_supported=no
12287 fi
12288         if test $_pkg_short_errors_supported = yes; then
12289                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12290         else
12291                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
12292         fi
12293         # Put the nasty error message in config.log where it belongs
12294         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
12295
12296         as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0) were not met:
12297
12298 $GTKDOC_DEPS_PKG_ERRORS
12299
12300 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12301 installed software in a non-standard prefix.
12302
12303 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12304 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12305 See the pkg-config man page for more details." "$LINENO" 5
12306
12307 elif test $pkg_failed = untried; then
12308         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12310         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12312 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12313 is in your PATH or set the PKG_CONFIG environment variable to the full
12314 path to pkg-config.
12315
12316 Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS
12317 and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config.
12318 See the pkg-config man page for more details.
12319
12320 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12321 See \`config.log' for more details" "$LINENO" 5; }
12322
12323 else
12324         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
12325         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
12326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12327 $as_echo "yes" >&6; }
12328
12329 fi
12330     fi
12331   fi
12332
12333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
12334 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
12336 $as_echo "$enable_gtk_doc" >&6; }
12337
12338     # Check whether --enable-gtk-doc-html was given.
12339 if test "${enable_gtk_doc_html+set}" = set; then :
12340   enableval=$enable_gtk_doc_html;
12341 else
12342   enable_gtk_doc_html=yes
12343 fi
12344
12345     # Check whether --enable-gtk-doc-pdf was given.
12346 if test "${enable_gtk_doc_pdf+set}" = set; then :
12347   enableval=$enable_gtk_doc_pdf;
12348 else
12349   enable_gtk_doc_pdf=no
12350 fi
12351
12352
12353   if test -z "$GTKDOC_MKPDF"; then
12354     enable_gtk_doc_pdf=no
12355   fi
12356
12357
12358    if test x$enable_gtk_doc = xyes; then
12359   ENABLE_GTK_DOC_TRUE=
12360   ENABLE_GTK_DOC_FALSE='#'
12361 else
12362   ENABLE_GTK_DOC_TRUE='#'
12363   ENABLE_GTK_DOC_FALSE=
12364 fi
12365
12366    if test x$enable_gtk_doc_html = xyes; then
12367   GTK_DOC_BUILD_HTML_TRUE=
12368   GTK_DOC_BUILD_HTML_FALSE='#'
12369 else
12370   GTK_DOC_BUILD_HTML_TRUE='#'
12371   GTK_DOC_BUILD_HTML_FALSE=
12372 fi
12373
12374    if test x$enable_gtk_doc_pdf = xyes; then
12375   GTK_DOC_BUILD_PDF_TRUE=
12376   GTK_DOC_BUILD_PDF_FALSE='#'
12377 else
12378   GTK_DOC_BUILD_PDF_TRUE='#'
12379   GTK_DOC_BUILD_PDF_FALSE=
12380 fi
12381
12382    if test -n "$LIBTOOL"; then
12383   GTK_DOC_USE_LIBTOOL_TRUE=
12384   GTK_DOC_USE_LIBTOOL_FALSE='#'
12385 else
12386   GTK_DOC_USE_LIBTOOL_TRUE='#'
12387   GTK_DOC_USE_LIBTOOL_FALSE=
12388 fi
12389
12390    if test -n "$GTKDOC_REBASE"; then
12391   GTK_DOC_USE_REBASE_TRUE=
12392   GTK_DOC_USE_REBASE_FALSE='#'
12393 else
12394   GTK_DOC_USE_REBASE_TRUE='#'
12395   GTK_DOC_USE_REBASE_FALSE=
12396 fi
12397
12398
12399
12400
12401
12402
12403                 # Check whether --enable-introspection was given.
12404 if test "${enable_introspection+set}" = set; then :
12405   enableval=$enable_introspection;
12406 else
12407   enable_introspection=auto
12408 fi
12409
12410
12411     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
12412 $as_echo_n "checking for gobject-introspection... " >&6; }
12413
12414         case $enable_introspection in #(
12415   no) :
12416             found_introspection="no (disabled, use --enable-introspection to enable)"
12417      ;; #(
12418       yes) :
12419             if test -n "$PKG_CONFIG" && \
12420     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
12421   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
12422   ac_status=$?
12423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12424   test $ac_status = 0; }; then
12425   :
12426 else
12427   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
12428 fi
12429         if test -n "$PKG_CONFIG" && \
12430     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12431   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12432   ac_status=$?
12433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12434   test $ac_status = 0; }; then
12435   found_introspection=yes
12436 else
12437   as_fn_error $? "You need to have gobject-introspection >= 0.9.5 installed to build json-glib" "$LINENO" 5
12438 fi
12439      ;; #(
12440       auto) :
12441             if test -n "$PKG_CONFIG" && \
12442     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.5\""; } >&5
12443   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.5") 2>&5
12444   ac_status=$?
12445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12446   test $ac_status = 0; }; then
12447   found_introspection=yes
12448 else
12449   found_introspection=no
12450 fi
12451      ;; #(
12452   *) :
12453                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
12454      ;;
12455 esac
12456     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
12457 $as_echo "$found_introspection" >&6; }
12458
12459     INTROSPECTION_SCANNER=
12460     INTROSPECTION_COMPILER=
12461     INTROSPECTION_GENERATE=
12462     INTROSPECTION_GIRDIR=
12463     INTROSPECTION_TYPELIBDIR=
12464     if test "x$found_introspection" = "xyes"; then
12465        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
12466        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
12467        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
12468        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
12469        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
12470        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
12471        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
12472        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
12473     fi
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483      if test "x$found_introspection" = "xyes"; then
12484   HAVE_INTROSPECTION_TRUE=
12485   HAVE_INTROSPECTION_FALSE='#'
12486 else
12487   HAVE_INTROSPECTION_TRUE='#'
12488   HAVE_INTROSPECTION_FALSE=
12489 fi
12490
12491
12492
12493
12494
12495
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
12497 $as_echo_n "checking whether NLS is requested... " >&6; }
12498     # Check whether --enable-nls was given.
12499 if test "${enable_nls+set}" = set; then :
12500   enableval=$enable_nls; USE_NLS=$enableval
12501 else
12502   USE_NLS=yes
12503 fi
12504
12505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12506 $as_echo "$USE_NLS" >&6; }
12507
12508
12509
12510
12511       GETTEXT_MACRO_VERSION=0.18
12512
12513
12514
12515
12516 # Prepare PATH_SEPARATOR.
12517 # The user is always right.
12518 if test "${PATH_SEPARATOR+set}" != set; then
12519   echo "#! /bin/sh" >conf$$.sh
12520   echo  "exit 0"   >>conf$$.sh
12521   chmod +x conf$$.sh
12522   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12523     PATH_SEPARATOR=';'
12524   else
12525     PATH_SEPARATOR=:
12526   fi
12527   rm -f conf$$.sh
12528 fi
12529
12530 # Find out how to test for executable files. Don't use a zero-byte file,
12531 # as systems may use methods other than mode bits to determine executability.
12532 cat >conf$$.file <<_ASEOF
12533 #! /bin/sh
12534 exit 0
12535 _ASEOF
12536 chmod +x conf$$.file
12537 if test -x conf$$.file >/dev/null 2>&1; then
12538   ac_executable_p="test -x"
12539 else
12540   ac_executable_p="test -f"
12541 fi
12542 rm -f conf$$.file
12543
12544 # Extract the first word of "msgfmt", so it can be a program name with args.
12545 set dummy msgfmt; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12547 $as_echo_n "checking for $ac_word... " >&6; }
12548 if ${ac_cv_path_MSGFMT+:} false; then :
12549   $as_echo_n "(cached) " >&6
12550 else
12551   case "$MSGFMT" in
12552   [\\/]* | ?:[\\/]*)
12553     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12554     ;;
12555   *)
12556     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12557     for ac_dir in $PATH; do
12558       IFS="$ac_save_IFS"
12559       test -z "$ac_dir" && ac_dir=.
12560       for ac_exec_ext in '' $ac_executable_extensions; do
12561         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12562           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12563           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12564      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12565             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12566             break 2
12567           fi
12568         fi
12569       done
12570     done
12571     IFS="$ac_save_IFS"
12572   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12573     ;;
12574 esac
12575 fi
12576 MSGFMT="$ac_cv_path_MSGFMT"
12577 if test "$MSGFMT" != ":"; then
12578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12579 $as_echo "$MSGFMT" >&6; }
12580 else
12581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12582 $as_echo "no" >&6; }
12583 fi
12584
12585   # Extract the first word of "gmsgfmt", so it can be a program name with args.
12586 set dummy gmsgfmt; ac_word=$2
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12588 $as_echo_n "checking for $ac_word... " >&6; }
12589 if ${ac_cv_path_GMSGFMT+:} false; then :
12590   $as_echo_n "(cached) " >&6
12591 else
12592   case $GMSGFMT in
12593   [\\/]* | ?:[\\/]*)
12594   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12595   ;;
12596   *)
12597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12599 do
12600   IFS=$as_save_IFS
12601   test -z "$as_dir" && as_dir=.
12602     for ac_exec_ext in '' $ac_executable_extensions; do
12603   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12605     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606     break 2
12607   fi
12608 done
12609   done
12610 IFS=$as_save_IFS
12611
12612   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12613   ;;
12614 esac
12615 fi
12616 GMSGFMT=$ac_cv_path_GMSGFMT
12617 if test -n "$GMSGFMT"; then
12618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12619 $as_echo "$GMSGFMT" >&6; }
12620 else
12621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12622 $as_echo "no" >&6; }
12623 fi
12624
12625
12626
12627     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12628     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12629     *) MSGFMT_015=$MSGFMT ;;
12630   esac
12631
12632   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12633     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12634     *) GMSGFMT_015=$GMSGFMT ;;
12635   esac
12636
12637
12638
12639 # Prepare PATH_SEPARATOR.
12640 # The user is always right.
12641 if test "${PATH_SEPARATOR+set}" != set; then
12642   echo "#! /bin/sh" >conf$$.sh
12643   echo  "exit 0"   >>conf$$.sh
12644   chmod +x conf$$.sh
12645   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12646     PATH_SEPARATOR=';'
12647   else
12648     PATH_SEPARATOR=:
12649   fi
12650   rm -f conf$$.sh
12651 fi
12652
12653 # Find out how to test for executable files. Don't use a zero-byte file,
12654 # as systems may use methods other than mode bits to determine executability.
12655 cat >conf$$.file <<_ASEOF
12656 #! /bin/sh
12657 exit 0
12658 _ASEOF
12659 chmod +x conf$$.file
12660 if test -x conf$$.file >/dev/null 2>&1; then
12661   ac_executable_p="test -x"
12662 else
12663   ac_executable_p="test -f"
12664 fi
12665 rm -f conf$$.file
12666
12667 # Extract the first word of "xgettext", so it can be a program name with args.
12668 set dummy xgettext; ac_word=$2
12669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12670 $as_echo_n "checking for $ac_word... " >&6; }
12671 if ${ac_cv_path_XGETTEXT+:} false; then :
12672   $as_echo_n "(cached) " >&6
12673 else
12674   case "$XGETTEXT" in
12675   [\\/]* | ?:[\\/]*)
12676     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12677     ;;
12678   *)
12679     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12680     for ac_dir in $PATH; do
12681       IFS="$ac_save_IFS"
12682       test -z "$ac_dir" && ac_dir=.
12683       for ac_exec_ext in '' $ac_executable_extensions; do
12684         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12685           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12686           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12687      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12688             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12689             break 2
12690           fi
12691         fi
12692       done
12693     done
12694     IFS="$ac_save_IFS"
12695   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12696     ;;
12697 esac
12698 fi
12699 XGETTEXT="$ac_cv_path_XGETTEXT"
12700 if test "$XGETTEXT" != ":"; then
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12702 $as_echo "$XGETTEXT" >&6; }
12703 else
12704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12705 $as_echo "no" >&6; }
12706 fi
12707
12708     rm -f messages.po
12709
12710     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12711     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12712     *) XGETTEXT_015=$XGETTEXT ;;
12713   esac
12714
12715
12716
12717 # Prepare PATH_SEPARATOR.
12718 # The user is always right.
12719 if test "${PATH_SEPARATOR+set}" != set; then
12720   echo "#! /bin/sh" >conf$$.sh
12721   echo  "exit 0"   >>conf$$.sh
12722   chmod +x conf$$.sh
12723   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12724     PATH_SEPARATOR=';'
12725   else
12726     PATH_SEPARATOR=:
12727   fi
12728   rm -f conf$$.sh
12729 fi
12730
12731 # Find out how to test for executable files. Don't use a zero-byte file,
12732 # as systems may use methods other than mode bits to determine executability.
12733 cat >conf$$.file <<_ASEOF
12734 #! /bin/sh
12735 exit 0
12736 _ASEOF
12737 chmod +x conf$$.file
12738 if test -x conf$$.file >/dev/null 2>&1; then
12739   ac_executable_p="test -x"
12740 else
12741   ac_executable_p="test -f"
12742 fi
12743 rm -f conf$$.file
12744
12745 # Extract the first word of "msgmerge", so it can be a program name with args.
12746 set dummy msgmerge; ac_word=$2
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12748 $as_echo_n "checking for $ac_word... " >&6; }
12749 if ${ac_cv_path_MSGMERGE+:} false; then :
12750   $as_echo_n "(cached) " >&6
12751 else
12752   case "$MSGMERGE" in
12753   [\\/]* | ?:[\\/]*)
12754     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12755     ;;
12756   *)
12757     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12758     for ac_dir in $PATH; do
12759       IFS="$ac_save_IFS"
12760       test -z "$ac_dir" && ac_dir=.
12761       for ac_exec_ext in '' $ac_executable_extensions; do
12762         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12763           echo "$as_me: trying $ac_dir/$ac_word..." >&5
12764           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12765             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12766             break 2
12767           fi
12768         fi
12769       done
12770     done
12771     IFS="$ac_save_IFS"
12772   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12773     ;;
12774 esac
12775 fi
12776 MSGMERGE="$ac_cv_path_MSGMERGE"
12777 if test "$MSGMERGE" != ":"; then
12778   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12779 $as_echo "$MSGMERGE" >&6; }
12780 else
12781   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12782 $as_echo "no" >&6; }
12783 fi
12784
12785
12786         test -n "$localedir" || localedir='${datadir}/locale'
12787
12788
12789     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12790
12791
12792   ac_config_commands="$ac_config_commands po-directories"
12793
12794
12795
12796       if test "X$prefix" = "XNONE"; then
12797     acl_final_prefix="$ac_default_prefix"
12798   else
12799     acl_final_prefix="$prefix"
12800   fi
12801   if test "X$exec_prefix" = "XNONE"; then
12802     acl_final_exec_prefix='${prefix}'
12803   else
12804     acl_final_exec_prefix="$exec_prefix"
12805   fi
12806   acl_save_prefix="$prefix"
12807   prefix="$acl_final_prefix"
12808   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12809   prefix="$acl_save_prefix"
12810
12811
12812 # Check whether --with-gnu-ld was given.
12813 if test "${with_gnu_ld+set}" = set; then :
12814   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12815 else
12816   with_gnu_ld=no
12817 fi
12818
12819 # Prepare PATH_SEPARATOR.
12820 # The user is always right.
12821 if test "${PATH_SEPARATOR+set}" != set; then
12822   echo "#! /bin/sh" >conf$$.sh
12823   echo  "exit 0"   >>conf$$.sh
12824   chmod +x conf$$.sh
12825   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12826     PATH_SEPARATOR=';'
12827   else
12828     PATH_SEPARATOR=:
12829   fi
12830   rm -f conf$$.sh
12831 fi
12832 ac_prog=ld
12833 if test "$GCC" = yes; then
12834   # Check if gcc -print-prog-name=ld gives a path.
12835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12836 $as_echo_n "checking for ld used by GCC... " >&6; }
12837   case $host in
12838   *-*-mingw*)
12839     # gcc leaves a trailing carriage return which upsets mingw
12840     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12841   *)
12842     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12843   esac
12844   case $ac_prog in
12845     # Accept absolute paths.
12846     [\\/]* | [A-Za-z]:[\\/]*)
12847       re_direlt='/[^/][^/]*/\.\./'
12848       # Canonicalize the path of ld
12849       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12850       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12851         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12852       done
12853       test -z "$LD" && LD="$ac_prog"
12854       ;;
12855   "")
12856     # If it fails, then pretend we aren't using GCC.
12857     ac_prog=ld
12858     ;;
12859   *)
12860     # If it is relative, then search for the first ld in PATH.
12861     with_gnu_ld=unknown
12862     ;;
12863   esac
12864 elif test "$with_gnu_ld" = yes; then
12865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12866 $as_echo_n "checking for GNU ld... " >&6; }
12867 else
12868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12869 $as_echo_n "checking for non-GNU ld... " >&6; }
12870 fi
12871 if ${acl_cv_path_LD+:} false; then :
12872   $as_echo_n "(cached) " >&6
12873 else
12874   if test -z "$LD"; then
12875   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12876   for ac_dir in $PATH; do
12877     test -z "$ac_dir" && ac_dir=.
12878     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12879       acl_cv_path_LD="$ac_dir/$ac_prog"
12880       # Check to see if the program is GNU ld.  I'd rather use --version,
12881       # but apparently some GNU ld's only accept -v.
12882       # Break only if it was the GNU/non-GNU ld that we prefer.
12883       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12884       *GNU* | *'with BFD'*)
12885         test "$with_gnu_ld" != no && break ;;
12886       *)
12887         test "$with_gnu_ld" != yes && break ;;
12888       esac
12889     fi
12890   done
12891   IFS="$ac_save_ifs"
12892 else
12893   acl_cv_path_LD="$LD" # Let the user override the test with a path.
12894 fi
12895 fi
12896
12897 LD="$acl_cv_path_LD"
12898 if test -n "$LD"; then
12899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12900 $as_echo "$LD" >&6; }
12901 else
12902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12903 $as_echo "no" >&6; }
12904 fi
12905 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12907 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12908 if ${acl_cv_prog_gnu_ld+:} false; then :
12909   $as_echo_n "(cached) " >&6
12910 else
12911   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12912 case `$LD -v 2>&1 </dev/null` in
12913 *GNU* | *'with BFD'*)
12914   acl_cv_prog_gnu_ld=yes ;;
12915 *)
12916   acl_cv_prog_gnu_ld=no ;;
12917 esac
12918 fi
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12920 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
12921 with_gnu_ld=$acl_cv_prog_gnu_ld
12922
12923
12924
12925
12926                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12927 $as_echo_n "checking for shared library run path origin... " >&6; }
12928 if ${acl_cv_rpath+:} false; then :
12929   $as_echo_n "(cached) " >&6
12930 else
12931
12932     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12933     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12934     . ./conftest.sh
12935     rm -f ./conftest.sh
12936     acl_cv_rpath=done
12937
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12940 $as_echo "$acl_cv_rpath" >&6; }
12941   wl="$acl_cv_wl"
12942   acl_libext="$acl_cv_libext"
12943   acl_shlibext="$acl_cv_shlibext"
12944   acl_libname_spec="$acl_cv_libname_spec"
12945   acl_library_names_spec="$acl_cv_library_names_spec"
12946   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12947   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12948   acl_hardcode_direct="$acl_cv_hardcode_direct"
12949   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12950     # Check whether --enable-rpath was given.
12951 if test "${enable_rpath+set}" = set; then :
12952   enableval=$enable_rpath; :
12953 else
12954   enable_rpath=yes
12955 fi
12956
12957
12958
12959
12960   acl_libdirstem=lib
12961   acl_libdirstem2=
12962   case "$host_os" in
12963     solaris*)
12964                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
12965 $as_echo_n "checking for 64-bit host... " >&6; }
12966 if ${gl_cv_solaris_64bit+:} false; then :
12967   $as_echo_n "(cached) " >&6
12968 else
12969   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970 /* end confdefs.h.  */
12971
12972 #ifdef _LP64
12973 sixtyfour bits
12974 #endif
12975
12976 _ACEOF
12977 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12978   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
12979   gl_cv_solaris_64bit=yes
12980 else
12981   gl_cv_solaris_64bit=no
12982 fi
12983 rm -f conftest*
12984
12985
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
12988 $as_echo "$gl_cv_solaris_64bit" >&6; }
12989       if test $gl_cv_solaris_64bit = yes; then
12990         acl_libdirstem=lib/64
12991         case "$host_cpu" in
12992           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
12993           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
12994         esac
12995       fi
12996       ;;
12997     *)
12998       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12999       if test -n "$searchpath"; then
13000         acl_save_IFS="${IFS=    }"; IFS=":"
13001         for searchdir in $searchpath; do
13002           if test -d "$searchdir"; then
13003             case "$searchdir" in
13004               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
13005               */../ | */.. )
13006                 # Better ignore directories of this form. They are misleading.
13007                 ;;
13008               *) searchdir=`cd "$searchdir" && pwd`
13009                  case "$searchdir" in
13010                    */lib64 ) acl_libdirstem=lib64 ;;
13011                  esac ;;
13012             esac
13013           fi
13014         done
13015         IFS="$acl_save_IFS"
13016       fi
13017       ;;
13018   esac
13019   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
13020
13021
13022
13023
13024
13025
13026
13027
13028
13029
13030
13031
13032     use_additional=yes
13033
13034   acl_save_prefix="$prefix"
13035   prefix="$acl_final_prefix"
13036   acl_save_exec_prefix="$exec_prefix"
13037   exec_prefix="$acl_final_exec_prefix"
13038
13039     eval additional_includedir=\"$includedir\"
13040     eval additional_libdir=\"$libdir\"
13041
13042   exec_prefix="$acl_save_exec_prefix"
13043   prefix="$acl_save_prefix"
13044
13045
13046 # Check whether --with-libiconv-prefix was given.
13047 if test "${with_libiconv_prefix+set}" = set; then :
13048   withval=$with_libiconv_prefix;
13049     if test "X$withval" = "Xno"; then
13050       use_additional=no
13051     else
13052       if test "X$withval" = "X"; then
13053
13054   acl_save_prefix="$prefix"
13055   prefix="$acl_final_prefix"
13056   acl_save_exec_prefix="$exec_prefix"
13057   exec_prefix="$acl_final_exec_prefix"
13058
13059           eval additional_includedir=\"$includedir\"
13060           eval additional_libdir=\"$libdir\"
13061
13062   exec_prefix="$acl_save_exec_prefix"
13063   prefix="$acl_save_prefix"
13064
13065       else
13066         additional_includedir="$withval/include"
13067         additional_libdir="$withval/$acl_libdirstem"
13068         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13069            && ! test -d "$withval/$acl_libdirstem"; then
13070           additional_libdir="$withval/$acl_libdirstem2"
13071         fi
13072       fi
13073     fi
13074
13075 fi
13076
13077       LIBICONV=
13078   LTLIBICONV=
13079   INCICONV=
13080   LIBICONV_PREFIX=
13081       HAVE_LIBICONV=
13082   rpathdirs=
13083   ltrpathdirs=
13084   names_already_handled=
13085   names_next_round='iconv '
13086   while test -n "$names_next_round"; do
13087     names_this_round="$names_next_round"
13088     names_next_round=
13089     for name in $names_this_round; do
13090       already_handled=
13091       for n in $names_already_handled; do
13092         if test "$n" = "$name"; then
13093           already_handled=yes
13094           break
13095         fi
13096       done
13097       if test -z "$already_handled"; then
13098         names_already_handled="$names_already_handled $name"
13099                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13100         eval value=\"\$HAVE_LIB$uppername\"
13101         if test -n "$value"; then
13102           if test "$value" = yes; then
13103             eval value=\"\$LIB$uppername\"
13104             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
13105             eval value=\"\$LTLIB$uppername\"
13106             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
13107           else
13108                                     :
13109           fi
13110         else
13111                               found_dir=
13112           found_la=
13113           found_so=
13114           found_a=
13115           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13116           if test -n "$acl_shlibext"; then
13117             shrext=".$acl_shlibext"             # typically: shrext=.so
13118           else
13119             shrext=
13120           fi
13121           if test $use_additional = yes; then
13122             dir="$additional_libdir"
13123                                     if test -n "$acl_shlibext"; then
13124               if test -f "$dir/$libname$shrext"; then
13125                 found_dir="$dir"
13126                 found_so="$dir/$libname$shrext"
13127               else
13128                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13129                   ver=`(cd "$dir" && \
13130                         for f in "$libname$shrext".*; do echo "$f"; done \
13131                         | sed -e "s,^$libname$shrext\\\\.,," \
13132                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13133                         | sed 1q ) 2>/dev/null`
13134                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13135                     found_dir="$dir"
13136                     found_so="$dir/$libname$shrext.$ver"
13137                   fi
13138                 else
13139                   eval library_names=\"$acl_library_names_spec\"
13140                   for f in $library_names; do
13141                     if test -f "$dir/$f"; then
13142                       found_dir="$dir"
13143                       found_so="$dir/$f"
13144                       break
13145                     fi
13146                   done
13147                 fi
13148               fi
13149             fi
13150                         if test "X$found_dir" = "X"; then
13151               if test -f "$dir/$libname.$acl_libext"; then
13152                 found_dir="$dir"
13153                 found_a="$dir/$libname.$acl_libext"
13154               fi
13155             fi
13156             if test "X$found_dir" != "X"; then
13157               if test -f "$dir/$libname.la"; then
13158                 found_la="$dir/$libname.la"
13159               fi
13160             fi
13161           fi
13162           if test "X$found_dir" = "X"; then
13163             for x in $LDFLAGS $LTLIBICONV; do
13164
13165   acl_save_prefix="$prefix"
13166   prefix="$acl_final_prefix"
13167   acl_save_exec_prefix="$exec_prefix"
13168   exec_prefix="$acl_final_exec_prefix"
13169   eval x=\"$x\"
13170   exec_prefix="$acl_save_exec_prefix"
13171   prefix="$acl_save_prefix"
13172
13173               case "$x" in
13174                 -L*)
13175                   dir=`echo "X$x" | sed -e 's/^X-L//'`
13176                                     if test -n "$acl_shlibext"; then
13177                     if test -f "$dir/$libname$shrext"; then
13178                       found_dir="$dir"
13179                       found_so="$dir/$libname$shrext"
13180                     else
13181                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13182                         ver=`(cd "$dir" && \
13183                               for f in "$libname$shrext".*; do echo "$f"; done \
13184                               | sed -e "s,^$libname$shrext\\\\.,," \
13185                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13186                               | sed 1q ) 2>/dev/null`
13187                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13188                           found_dir="$dir"
13189                           found_so="$dir/$libname$shrext.$ver"
13190                         fi
13191                       else
13192                         eval library_names=\"$acl_library_names_spec\"
13193                         for f in $library_names; do
13194                           if test -f "$dir/$f"; then
13195                             found_dir="$dir"
13196                             found_so="$dir/$f"
13197                             break
13198                           fi
13199                         done
13200                       fi
13201                     fi
13202                   fi
13203                                     if test "X$found_dir" = "X"; then
13204                     if test -f "$dir/$libname.$acl_libext"; then
13205                       found_dir="$dir"
13206                       found_a="$dir/$libname.$acl_libext"
13207                     fi
13208                   fi
13209                   if test "X$found_dir" != "X"; then
13210                     if test -f "$dir/$libname.la"; then
13211                       found_la="$dir/$libname.la"
13212                     fi
13213                   fi
13214                   ;;
13215               esac
13216               if test "X$found_dir" != "X"; then
13217                 break
13218               fi
13219             done
13220           fi
13221           if test "X$found_dir" != "X"; then
13222                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13223             if test "X$found_so" != "X"; then
13224                                                         if test "$enable_rpath" = no \
13225                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
13226                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
13227                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13228               else
13229                                                                                 haveit=
13230                 for x in $ltrpathdirs; do
13231                   if test "X$x" = "X$found_dir"; then
13232                     haveit=yes
13233                     break
13234                   fi
13235                 done
13236                 if test -z "$haveit"; then
13237                   ltrpathdirs="$ltrpathdirs $found_dir"
13238                 fi
13239                                 if test "$acl_hardcode_direct" = yes; then
13240                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13241                 else
13242                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13243                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13244                                                             haveit=
13245                     for x in $rpathdirs; do
13246                       if test "X$x" = "X$found_dir"; then
13247                         haveit=yes
13248                         break
13249                       fi
13250                     done
13251                     if test -z "$haveit"; then
13252                       rpathdirs="$rpathdirs $found_dir"
13253                     fi
13254                   else
13255                                                                                 haveit=
13256                     for x in $LDFLAGS $LIBICONV; do
13257
13258   acl_save_prefix="$prefix"
13259   prefix="$acl_final_prefix"
13260   acl_save_exec_prefix="$exec_prefix"
13261   exec_prefix="$acl_final_exec_prefix"
13262   eval x=\"$x\"
13263   exec_prefix="$acl_save_exec_prefix"
13264   prefix="$acl_save_prefix"
13265
13266                       if test "X$x" = "X-L$found_dir"; then
13267                         haveit=yes
13268                         break
13269                       fi
13270                     done
13271                     if test -z "$haveit"; then
13272                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13273                     fi
13274                     if test "$acl_hardcode_minus_L" != no; then
13275                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13276                     else
13277                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13278                     fi
13279                   fi
13280                 fi
13281               fi
13282             else
13283               if test "X$found_a" != "X"; then
13284                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13285               else
13286                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13287               fi
13288             fi
13289                         additional_includedir=
13290             case "$found_dir" in
13291               */$acl_libdirstem | */$acl_libdirstem/)
13292                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13293                 if test "$name" = 'iconv'; then
13294                   LIBICONV_PREFIX="$basedir"
13295                 fi
13296                 additional_includedir="$basedir/include"
13297                 ;;
13298               */$acl_libdirstem2 | */$acl_libdirstem2/)
13299                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
13300                 if test "$name" = 'iconv'; then
13301                   LIBICONV_PREFIX="$basedir"
13302                 fi
13303                 additional_includedir="$basedir/include"
13304                 ;;
13305             esac
13306             if test "X$additional_includedir" != "X"; then
13307                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
13308                 haveit=
13309                 if test "X$additional_includedir" = "X/usr/local/include"; then
13310                   if test -n "$GCC"; then
13311                     case $host_os in
13312                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13313                     esac
13314                   fi
13315                 fi
13316                 if test -z "$haveit"; then
13317                   for x in $CPPFLAGS $INCICONV; do
13318
13319   acl_save_prefix="$prefix"
13320   prefix="$acl_final_prefix"
13321   acl_save_exec_prefix="$exec_prefix"
13322   exec_prefix="$acl_final_exec_prefix"
13323   eval x=\"$x\"
13324   exec_prefix="$acl_save_exec_prefix"
13325   prefix="$acl_save_prefix"
13326
13327                     if test "X$x" = "X-I$additional_includedir"; then
13328                       haveit=yes
13329                       break
13330                     fi
13331                   done
13332                   if test -z "$haveit"; then
13333                     if test -d "$additional_includedir"; then
13334                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13335                     fi
13336                   fi
13337                 fi
13338               fi
13339             fi
13340                         if test -n "$found_la"; then
13341                                                         save_libdir="$libdir"
13342               case "$found_la" in
13343                 */* | *\\*) . "$found_la" ;;
13344                 *) . "./$found_la" ;;
13345               esac
13346               libdir="$save_libdir"
13347                             for dep in $dependency_libs; do
13348                 case "$dep" in
13349                   -L*)
13350                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13351                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
13352                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
13353                       haveit=
13354                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
13355                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
13356                         if test -n "$GCC"; then
13357                           case $host_os in
13358                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13359                           esac
13360                         fi
13361                       fi
13362                       if test -z "$haveit"; then
13363                         haveit=
13364                         for x in $LDFLAGS $LIBICONV; do
13365
13366   acl_save_prefix="$prefix"
13367   prefix="$acl_final_prefix"
13368   acl_save_exec_prefix="$exec_prefix"
13369   exec_prefix="$acl_final_exec_prefix"
13370   eval x=\"$x\"
13371   exec_prefix="$acl_save_exec_prefix"
13372   prefix="$acl_save_prefix"
13373
13374                           if test "X$x" = "X-L$additional_libdir"; then
13375                             haveit=yes
13376                             break
13377                           fi
13378                         done
13379                         if test -z "$haveit"; then
13380                           if test -d "$additional_libdir"; then
13381                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13382                           fi
13383                         fi
13384                         haveit=
13385                         for x in $LDFLAGS $LTLIBICONV; do
13386
13387   acl_save_prefix="$prefix"
13388   prefix="$acl_final_prefix"
13389   acl_save_exec_prefix="$exec_prefix"
13390   exec_prefix="$acl_final_exec_prefix"
13391   eval x=\"$x\"
13392   exec_prefix="$acl_save_exec_prefix"
13393   prefix="$acl_save_prefix"
13394
13395                           if test "X$x" = "X-L$additional_libdir"; then
13396                             haveit=yes
13397                             break
13398                           fi
13399                         done
13400                         if test -z "$haveit"; then
13401                           if test -d "$additional_libdir"; then
13402                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13403                           fi
13404                         fi
13405                       fi
13406                     fi
13407                     ;;
13408                   -R*)
13409                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
13410                     if test "$enable_rpath" != no; then
13411                                                                   haveit=
13412                       for x in $rpathdirs; do
13413                         if test "X$x" = "X$dir"; then
13414                           haveit=yes
13415                           break
13416                         fi
13417                       done
13418                       if test -z "$haveit"; then
13419                         rpathdirs="$rpathdirs $dir"
13420                       fi
13421                                                                   haveit=
13422                       for x in $ltrpathdirs; do
13423                         if test "X$x" = "X$dir"; then
13424                           haveit=yes
13425                           break
13426                         fi
13427                       done
13428                       if test -z "$haveit"; then
13429                         ltrpathdirs="$ltrpathdirs $dir"
13430                       fi
13431                     fi
13432                     ;;
13433                   -l*)
13434                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13435                     ;;
13436                   *.la)
13437                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13438                     ;;
13439                   *)
13440                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13441                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13442                     ;;
13443                 esac
13444               done
13445             fi
13446           else
13447                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13448             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13449           fi
13450         fi
13451       fi
13452     done
13453   done
13454   if test "X$rpathdirs" != "X"; then
13455     if test -n "$acl_hardcode_libdir_separator"; then
13456                         alldirs=
13457       for found_dir in $rpathdirs; do
13458         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13459       done
13460             acl_save_libdir="$libdir"
13461       libdir="$alldirs"
13462       eval flag=\"$acl_hardcode_libdir_flag_spec\"
13463       libdir="$acl_save_libdir"
13464       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13465     else
13466             for found_dir in $rpathdirs; do
13467         acl_save_libdir="$libdir"
13468         libdir="$found_dir"
13469         eval flag=\"$acl_hardcode_libdir_flag_spec\"
13470         libdir="$acl_save_libdir"
13471         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13472       done
13473     fi
13474   fi
13475   if test "X$ltrpathdirs" != "X"; then
13476             for found_dir in $ltrpathdirs; do
13477       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13478     done
13479   fi
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13512 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13513 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   gt_save_LIBS="$LIBS"
13517      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13518      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h.  */
13520 #include <CoreFoundation/CFPreferences.h>
13521 int
13522 main ()
13523 {
13524 CFPreferencesCopyAppValue(NULL, NULL)
13525   ;
13526   return 0;
13527 }
13528 _ACEOF
13529 if ac_fn_c_try_link "$LINENO"; then :
13530   gt_cv_func_CFPreferencesCopyAppValue=yes
13531 else
13532   gt_cv_func_CFPreferencesCopyAppValue=no
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext \
13535     conftest$ac_exeext conftest.$ac_ext
13536      LIBS="$gt_save_LIBS"
13537 fi
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13539 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13540   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13541
13542 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13543
13544   fi
13545     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13546 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13547 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13548   $as_echo_n "(cached) " >&6
13549 else
13550   gt_save_LIBS="$LIBS"
13551      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13552      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h.  */
13554 #include <CoreFoundation/CFLocale.h>
13555 int
13556 main ()
13557 {
13558 CFLocaleCopyCurrent();
13559   ;
13560   return 0;
13561 }
13562 _ACEOF
13563 if ac_fn_c_try_link "$LINENO"; then :
13564   gt_cv_func_CFLocaleCopyCurrent=yes
13565 else
13566   gt_cv_func_CFLocaleCopyCurrent=no
13567 fi
13568 rm -f core conftest.err conftest.$ac_objext \
13569     conftest$ac_exeext conftest.$ac_ext
13570      LIBS="$gt_save_LIBS"
13571 fi
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13573 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13574   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13575
13576 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13577
13578   fi
13579   INTL_MACOSX_LIBS=
13580   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13581     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13582   fi
13583
13584
13585
13586
13587
13588
13589   LIBINTL=
13590   LTLIBINTL=
13591   POSUB=
13592
13593     case " $gt_needs " in
13594     *" need-formatstring-macros "*) gt_api_version=3 ;;
13595     *" need-ngettext "*) gt_api_version=2 ;;
13596     *) gt_api_version=1 ;;
13597   esac
13598   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13599   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13600
13601     if test "$USE_NLS" = "yes"; then
13602     gt_use_preinstalled_gnugettext=no
13603
13604
13605         if test $gt_api_version -ge 3; then
13606           gt_revision_test_code='
13607 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13608 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13609 #endif
13610 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13611 '
13612         else
13613           gt_revision_test_code=
13614         fi
13615         if test $gt_api_version -ge 2; then
13616           gt_expression_test_code=' + * ngettext ("", "", 0)'
13617         else
13618           gt_expression_test_code=
13619         fi
13620
13621         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13622 $as_echo_n "checking for GNU gettext in libc... " >&6; }
13623 if eval \${$gt_func_gnugettext_libc+:} false; then :
13624   $as_echo_n "(cached) " >&6
13625 else
13626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h.  */
13628 #include <libintl.h>
13629 $gt_revision_test_code
13630 extern int _nl_msg_cat_cntr;
13631 extern int *_nl_domain_bindings;
13632 int
13633 main ()
13634 {
13635 bindtextdomain ("", "");
13636 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13637   ;
13638   return 0;
13639 }
13640 _ACEOF
13641 if ac_fn_c_try_link "$LINENO"; then :
13642   eval "$gt_func_gnugettext_libc=yes"
13643 else
13644   eval "$gt_func_gnugettext_libc=no"
13645 fi
13646 rm -f core conftest.err conftest.$ac_objext \
13647     conftest$ac_exeext conftest.$ac_ext
13648 fi
13649 eval ac_res=\$$gt_func_gnugettext_libc
13650                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13651 $as_echo "$ac_res" >&6; }
13652
13653         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13654
13655
13656
13657
13658
13659           am_save_CPPFLAGS="$CPPFLAGS"
13660
13661   for element in $INCICONV; do
13662     haveit=
13663     for x in $CPPFLAGS; do
13664
13665   acl_save_prefix="$prefix"
13666   prefix="$acl_final_prefix"
13667   acl_save_exec_prefix="$exec_prefix"
13668   exec_prefix="$acl_final_exec_prefix"
13669   eval x=\"$x\"
13670   exec_prefix="$acl_save_exec_prefix"
13671   prefix="$acl_save_prefix"
13672
13673       if test "X$x" = "X$element"; then
13674         haveit=yes
13675         break
13676       fi
13677     done
13678     if test -z "$haveit"; then
13679       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13680     fi
13681   done
13682
13683
13684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13685 $as_echo_n "checking for iconv... " >&6; }
13686 if ${am_cv_func_iconv+:} false; then :
13687   $as_echo_n "(cached) " >&6
13688 else
13689
13690     am_cv_func_iconv="no, consider installing GNU libiconv"
13691     am_cv_lib_iconv=no
13692     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h.  */
13694 #include <stdlib.h>
13695 #include <iconv.h>
13696 int
13697 main ()
13698 {
13699 iconv_t cd = iconv_open("","");
13700        iconv(cd,NULL,NULL,NULL,NULL);
13701        iconv_close(cd);
13702   ;
13703   return 0;
13704 }
13705 _ACEOF
13706 if ac_fn_c_try_link "$LINENO"; then :
13707   am_cv_func_iconv=yes
13708 fi
13709 rm -f core conftest.err conftest.$ac_objext \
13710     conftest$ac_exeext conftest.$ac_ext
13711     if test "$am_cv_func_iconv" != yes; then
13712       am_save_LIBS="$LIBS"
13713       LIBS="$LIBS $LIBICONV"
13714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716 #include <stdlib.h>
13717 #include <iconv.h>
13718 int
13719 main ()
13720 {
13721 iconv_t cd = iconv_open("","");
13722          iconv(cd,NULL,NULL,NULL,NULL);
13723          iconv_close(cd);
13724   ;
13725   return 0;
13726 }
13727 _ACEOF
13728 if ac_fn_c_try_link "$LINENO"; then :
13729   am_cv_lib_iconv=yes
13730         am_cv_func_iconv=yes
13731 fi
13732 rm -f core conftest.err conftest.$ac_objext \
13733     conftest$ac_exeext conftest.$ac_ext
13734       LIBS="$am_save_LIBS"
13735     fi
13736
13737 fi
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13739 $as_echo "$am_cv_func_iconv" >&6; }
13740   if test "$am_cv_func_iconv" = yes; then
13741     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13742 $as_echo_n "checking for working iconv... " >&6; }
13743 if ${am_cv_func_iconv_works+:} false; then :
13744   $as_echo_n "(cached) " >&6
13745 else
13746
13747             am_save_LIBS="$LIBS"
13748       if test $am_cv_lib_iconv = yes; then
13749         LIBS="$LIBS $LIBICONV"
13750       fi
13751       if test "$cross_compiling" = yes; then :
13752   case "$host_os" in
13753            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13754            *)            am_cv_func_iconv_works="guessing yes" ;;
13755          esac
13756 else
13757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h.  */
13759
13760 #include <iconv.h>
13761 #include <string.h>
13762 int main ()
13763 {
13764   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13765      returns.  */
13766   {
13767     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13768     if (cd_utf8_to_88591 != (iconv_t)(-1))
13769       {
13770         static const char input[] = "\342\202\254"; /* EURO SIGN */
13771         char buf[10];
13772         const char *inptr = input;
13773         size_t inbytesleft = strlen (input);
13774         char *outptr = buf;
13775         size_t outbytesleft = sizeof (buf);
13776         size_t res = iconv (cd_utf8_to_88591,
13777                             (char **) &inptr, &inbytesleft,
13778                             &outptr, &outbytesleft);
13779         if (res == 0)
13780           return 1;
13781       }
13782   }
13783   /* Test against Solaris 10 bug: Failures are not distinguishable from
13784      successful returns.  */
13785   {
13786     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
13787     if (cd_ascii_to_88591 != (iconv_t)(-1))
13788       {
13789         static const char input[] = "\263";
13790         char buf[10];
13791         const char *inptr = input;
13792         size_t inbytesleft = strlen (input);
13793         char *outptr = buf;
13794         size_t outbytesleft = sizeof (buf);
13795         size_t res = iconv (cd_ascii_to_88591,
13796                             (char **) &inptr, &inbytesleft,
13797                             &outptr, &outbytesleft);
13798         if (res == 0)
13799           return 1;
13800       }
13801   }
13802 #if 0 /* This bug could be worked around by the caller.  */
13803   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
13804   {
13805     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13806     if (cd_88591_to_utf8 != (iconv_t)(-1))
13807       {
13808         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13809         char buf[50];
13810         const char *inptr = input;
13811         size_t inbytesleft = strlen (input);
13812         char *outptr = buf;
13813         size_t outbytesleft = sizeof (buf);
13814         size_t res = iconv (cd_88591_to_utf8,
13815                             (char **) &inptr, &inbytesleft,
13816                             &outptr, &outbytesleft);
13817         if ((int)res > 0)
13818           return 1;
13819       }
13820   }
13821 #endif
13822   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13823      provided.  */
13824   if (/* Try standardized names.  */
13825       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13826       /* Try IRIX, OSF/1 names.  */
13827       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13828       /* Try AIX names.  */
13829       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13830       /* Try HP-UX names.  */
13831       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13832     return 1;
13833   return 0;
13834 }
13835 _ACEOF
13836 if ac_fn_c_try_run "$LINENO"; then :
13837   am_cv_func_iconv_works=yes
13838 else
13839   am_cv_func_iconv_works=no
13840 fi
13841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13842   conftest.$ac_objext conftest.beam conftest.$ac_ext
13843 fi
13844
13845       LIBS="$am_save_LIBS"
13846
13847 fi
13848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13849 $as_echo "$am_cv_func_iconv_works" >&6; }
13850     case "$am_cv_func_iconv_works" in
13851       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
13852       *)   am_func_iconv=yes ;;
13853     esac
13854   else
13855     am_func_iconv=no am_cv_lib_iconv=no
13856   fi
13857   if test "$am_func_iconv" = yes; then
13858
13859 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
13860
13861   fi
13862   if test "$am_cv_lib_iconv" = yes; then
13863     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13864 $as_echo_n "checking how to link with libiconv... " >&6; }
13865     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13866 $as_echo "$LIBICONV" >&6; }
13867   else
13868             CPPFLAGS="$am_save_CPPFLAGS"
13869     LIBICONV=
13870     LTLIBICONV=
13871   fi
13872
13873
13874
13875
13876
13877
13878
13879
13880
13881
13882
13883     use_additional=yes
13884
13885   acl_save_prefix="$prefix"
13886   prefix="$acl_final_prefix"
13887   acl_save_exec_prefix="$exec_prefix"
13888   exec_prefix="$acl_final_exec_prefix"
13889
13890     eval additional_includedir=\"$includedir\"
13891     eval additional_libdir=\"$libdir\"
13892
13893   exec_prefix="$acl_save_exec_prefix"
13894   prefix="$acl_save_prefix"
13895
13896
13897 # Check whether --with-libintl-prefix was given.
13898 if test "${with_libintl_prefix+set}" = set; then :
13899   withval=$with_libintl_prefix;
13900     if test "X$withval" = "Xno"; then
13901       use_additional=no
13902     else
13903       if test "X$withval" = "X"; then
13904
13905   acl_save_prefix="$prefix"
13906   prefix="$acl_final_prefix"
13907   acl_save_exec_prefix="$exec_prefix"
13908   exec_prefix="$acl_final_exec_prefix"
13909
13910           eval additional_includedir=\"$includedir\"
13911           eval additional_libdir=\"$libdir\"
13912
13913   exec_prefix="$acl_save_exec_prefix"
13914   prefix="$acl_save_prefix"
13915
13916       else
13917         additional_includedir="$withval/include"
13918         additional_libdir="$withval/$acl_libdirstem"
13919         if test "$acl_libdirstem2" != "$acl_libdirstem" \
13920            && ! test -d "$withval/$acl_libdirstem"; then
13921           additional_libdir="$withval/$acl_libdirstem2"
13922         fi
13923       fi
13924     fi
13925
13926 fi
13927
13928       LIBINTL=
13929   LTLIBINTL=
13930   INCINTL=
13931   LIBINTL_PREFIX=
13932       HAVE_LIBINTL=
13933   rpathdirs=
13934   ltrpathdirs=
13935   names_already_handled=
13936   names_next_round='intl '
13937   while test -n "$names_next_round"; do
13938     names_this_round="$names_next_round"
13939     names_next_round=
13940     for name in $names_this_round; do
13941       already_handled=
13942       for n in $names_already_handled; do
13943         if test "$n" = "$name"; then
13944           already_handled=yes
13945           break
13946         fi
13947       done
13948       if test -z "$already_handled"; then
13949         names_already_handled="$names_already_handled $name"
13950                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13951         eval value=\"\$HAVE_LIB$uppername\"
13952         if test -n "$value"; then
13953           if test "$value" = yes; then
13954             eval value=\"\$LIB$uppername\"
13955             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13956             eval value=\"\$LTLIB$uppername\"
13957             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13958           else
13959                                     :
13960           fi
13961         else
13962                               found_dir=
13963           found_la=
13964           found_so=
13965           found_a=
13966           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
13967           if test -n "$acl_shlibext"; then
13968             shrext=".$acl_shlibext"             # typically: shrext=.so
13969           else
13970             shrext=
13971           fi
13972           if test $use_additional = yes; then
13973             dir="$additional_libdir"
13974                                     if test -n "$acl_shlibext"; then
13975               if test -f "$dir/$libname$shrext"; then
13976                 found_dir="$dir"
13977                 found_so="$dir/$libname$shrext"
13978               else
13979                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13980                   ver=`(cd "$dir" && \
13981                         for f in "$libname$shrext".*; do echo "$f"; done \
13982                         | sed -e "s,^$libname$shrext\\\\.,," \
13983                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13984                         | sed 1q ) 2>/dev/null`
13985                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13986                     found_dir="$dir"
13987                     found_so="$dir/$libname$shrext.$ver"
13988                   fi
13989                 else
13990                   eval library_names=\"$acl_library_names_spec\"
13991                   for f in $library_names; do
13992                     if test -f "$dir/$f"; then
13993                       found_dir="$dir"
13994                       found_so="$dir/$f"
13995                       break
13996                     fi
13997                   done
13998                 fi
13999               fi
14000             fi
14001                         if test "X$found_dir" = "X"; then
14002               if test -f "$dir/$libname.$acl_libext"; then
14003                 found_dir="$dir"
14004                 found_a="$dir/$libname.$acl_libext"
14005               fi
14006             fi
14007             if test "X$found_dir" != "X"; then
14008               if test -f "$dir/$libname.la"; then
14009                 found_la="$dir/$libname.la"
14010               fi
14011             fi
14012           fi
14013           if test "X$found_dir" = "X"; then
14014             for x in $LDFLAGS $LTLIBINTL; do
14015
14016   acl_save_prefix="$prefix"
14017   prefix="$acl_final_prefix"
14018   acl_save_exec_prefix="$exec_prefix"
14019   exec_prefix="$acl_final_exec_prefix"
14020   eval x=\"$x\"
14021   exec_prefix="$acl_save_exec_prefix"
14022   prefix="$acl_save_prefix"
14023
14024               case "$x" in
14025                 -L*)
14026                   dir=`echo "X$x" | sed -e 's/^X-L//'`
14027                                     if test -n "$acl_shlibext"; then
14028                     if test -f "$dir/$libname$shrext"; then
14029                       found_dir="$dir"
14030                       found_so="$dir/$libname$shrext"
14031                     else
14032                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
14033                         ver=`(cd "$dir" && \
14034                               for f in "$libname$shrext".*; do echo "$f"; done \
14035                               | sed -e "s,^$libname$shrext\\\\.,," \
14036                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
14037                               | sed 1q ) 2>/dev/null`
14038                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
14039                           found_dir="$dir"
14040                           found_so="$dir/$libname$shrext.$ver"
14041                         fi
14042                       else
14043                         eval library_names=\"$acl_library_names_spec\"
14044                         for f in $library_names; do
14045                           if test -f "$dir/$f"; then
14046                             found_dir="$dir"
14047                             found_so="$dir/$f"
14048                             break
14049                           fi
14050                         done
14051                       fi
14052                     fi
14053                   fi
14054                                     if test "X$found_dir" = "X"; then
14055                     if test -f "$dir/$libname.$acl_libext"; then
14056                       found_dir="$dir"
14057                       found_a="$dir/$libname.$acl_libext"
14058                     fi
14059                   fi
14060                   if test "X$found_dir" != "X"; then
14061                     if test -f "$dir/$libname.la"; then
14062                       found_la="$dir/$libname.la"
14063                     fi
14064                   fi
14065                   ;;
14066               esac
14067               if test "X$found_dir" != "X"; then
14068                 break
14069               fi
14070             done
14071           fi
14072           if test "X$found_dir" != "X"; then
14073                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
14074             if test "X$found_so" != "X"; then
14075                                                         if test "$enable_rpath" = no \
14076                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
14077                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
14078                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14079               else
14080                                                                                 haveit=
14081                 for x in $ltrpathdirs; do
14082                   if test "X$x" = "X$found_dir"; then
14083                     haveit=yes
14084                     break
14085                   fi
14086                 done
14087                 if test -z "$haveit"; then
14088                   ltrpathdirs="$ltrpathdirs $found_dir"
14089                 fi
14090                                 if test "$acl_hardcode_direct" = yes; then
14091                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14092                 else
14093                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
14094                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14095                                                             haveit=
14096                     for x in $rpathdirs; do
14097                       if test "X$x" = "X$found_dir"; then
14098                         haveit=yes
14099                         break
14100                       fi
14101                     done
14102                     if test -z "$haveit"; then
14103                       rpathdirs="$rpathdirs $found_dir"
14104                     fi
14105                   else
14106                                                                                 haveit=
14107                     for x in $LDFLAGS $LIBINTL; do
14108
14109   acl_save_prefix="$prefix"
14110   prefix="$acl_final_prefix"
14111   acl_save_exec_prefix="$exec_prefix"
14112   exec_prefix="$acl_final_exec_prefix"
14113   eval x=\"$x\"
14114   exec_prefix="$acl_save_exec_prefix"
14115   prefix="$acl_save_prefix"
14116
14117                       if test "X$x" = "X-L$found_dir"; then
14118                         haveit=yes
14119                         break
14120                       fi
14121                     done
14122                     if test -z "$haveit"; then
14123                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
14124                     fi
14125                     if test "$acl_hardcode_minus_L" != no; then
14126                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
14127                     else
14128                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14129                     fi
14130                   fi
14131                 fi
14132               fi
14133             else
14134               if test "X$found_a" != "X"; then
14135                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
14136               else
14137                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
14138               fi
14139             fi
14140                         additional_includedir=
14141             case "$found_dir" in
14142               */$acl_libdirstem | */$acl_libdirstem/)
14143                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
14144                 if test "$name" = 'intl'; then
14145                   LIBINTL_PREFIX="$basedir"
14146                 fi
14147                 additional_includedir="$basedir/include"
14148                 ;;
14149               */$acl_libdirstem2 | */$acl_libdirstem2/)
14150                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
14151                 if test "$name" = 'intl'; then
14152                   LIBINTL_PREFIX="$basedir"
14153                 fi
14154                 additional_includedir="$basedir/include"
14155                 ;;
14156             esac
14157             if test "X$additional_includedir" != "X"; then
14158                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
14159                 haveit=
14160                 if test "X$additional_includedir" = "X/usr/local/include"; then
14161                   if test -n "$GCC"; then
14162                     case $host_os in
14163                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14164                     esac
14165                   fi
14166                 fi
14167                 if test -z "$haveit"; then
14168                   for x in $CPPFLAGS $INCINTL; do
14169
14170   acl_save_prefix="$prefix"
14171   prefix="$acl_final_prefix"
14172   acl_save_exec_prefix="$exec_prefix"
14173   exec_prefix="$acl_final_exec_prefix"
14174   eval x=\"$x\"
14175   exec_prefix="$acl_save_exec_prefix"
14176   prefix="$acl_save_prefix"
14177
14178                     if test "X$x" = "X-I$additional_includedir"; then
14179                       haveit=yes
14180                       break
14181                     fi
14182                   done
14183                   if test -z "$haveit"; then
14184                     if test -d "$additional_includedir"; then
14185                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
14186                     fi
14187                   fi
14188                 fi
14189               fi
14190             fi
14191                         if test -n "$found_la"; then
14192                                                         save_libdir="$libdir"
14193               case "$found_la" in
14194                 */* | *\\*) . "$found_la" ;;
14195                 *) . "./$found_la" ;;
14196               esac
14197               libdir="$save_libdir"
14198                             for dep in $dependency_libs; do
14199                 case "$dep" in
14200                   -L*)
14201                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
14202                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
14203                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
14204                       haveit=
14205                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
14206                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
14207                         if test -n "$GCC"; then
14208                           case $host_os in
14209                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
14210                           esac
14211                         fi
14212                       fi
14213                       if test -z "$haveit"; then
14214                         haveit=
14215                         for x in $LDFLAGS $LIBINTL; do
14216
14217   acl_save_prefix="$prefix"
14218   prefix="$acl_final_prefix"
14219   acl_save_exec_prefix="$exec_prefix"
14220   exec_prefix="$acl_final_exec_prefix"
14221   eval x=\"$x\"
14222   exec_prefix="$acl_save_exec_prefix"
14223   prefix="$acl_save_prefix"
14224
14225                           if test "X$x" = "X-L$additional_libdir"; then
14226                             haveit=yes
14227                             break
14228                           fi
14229                         done
14230                         if test -z "$haveit"; then
14231                           if test -d "$additional_libdir"; then
14232                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
14233                           fi
14234                         fi
14235                         haveit=
14236                         for x in $LDFLAGS $LTLIBINTL; do
14237
14238   acl_save_prefix="$prefix"
14239   prefix="$acl_final_prefix"
14240   acl_save_exec_prefix="$exec_prefix"
14241   exec_prefix="$acl_final_exec_prefix"
14242   eval x=\"$x\"
14243   exec_prefix="$acl_save_exec_prefix"
14244   prefix="$acl_save_prefix"
14245
14246                           if test "X$x" = "X-L$additional_libdir"; then
14247                             haveit=yes
14248                             break
14249                           fi
14250                         done
14251                         if test -z "$haveit"; then
14252                           if test -d "$additional_libdir"; then
14253                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
14254                           fi
14255                         fi
14256                       fi
14257                     fi
14258                     ;;
14259                   -R*)
14260                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
14261                     if test "$enable_rpath" != no; then
14262                                                                   haveit=
14263                       for x in $rpathdirs; do
14264                         if test "X$x" = "X$dir"; then
14265                           haveit=yes
14266                           break
14267                         fi
14268                       done
14269                       if test -z "$haveit"; then
14270                         rpathdirs="$rpathdirs $dir"
14271                       fi
14272                                                                   haveit=
14273                       for x in $ltrpathdirs; do
14274                         if test "X$x" = "X$dir"; then
14275                           haveit=yes
14276                           break
14277                         fi
14278                       done
14279                       if test -z "$haveit"; then
14280                         ltrpathdirs="$ltrpathdirs $dir"
14281                       fi
14282                     fi
14283                     ;;
14284                   -l*)
14285                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14286                     ;;
14287                   *.la)
14288                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14289                     ;;
14290                   *)
14291                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14292                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14293                     ;;
14294                 esac
14295               done
14296             fi
14297           else
14298                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14299             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14300           fi
14301         fi
14302       fi
14303     done
14304   done
14305   if test "X$rpathdirs" != "X"; then
14306     if test -n "$acl_hardcode_libdir_separator"; then
14307                         alldirs=
14308       for found_dir in $rpathdirs; do
14309         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14310       done
14311             acl_save_libdir="$libdir"
14312       libdir="$alldirs"
14313       eval flag=\"$acl_hardcode_libdir_flag_spec\"
14314       libdir="$acl_save_libdir"
14315       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14316     else
14317             for found_dir in $rpathdirs; do
14318         acl_save_libdir="$libdir"
14319         libdir="$found_dir"
14320         eval flag=\"$acl_hardcode_libdir_flag_spec\"
14321         libdir="$acl_save_libdir"
14322         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14323       done
14324     fi
14325   fi
14326   if test "X$ltrpathdirs" != "X"; then
14327             for found_dir in $ltrpathdirs; do
14328       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14329     done
14330   fi
14331
14332
14333
14334
14335
14336
14337           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14338 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
14339 if eval \${$gt_func_gnugettext_libintl+:} false; then :
14340   $as_echo_n "(cached) " >&6
14341 else
14342   gt_save_CPPFLAGS="$CPPFLAGS"
14343             CPPFLAGS="$CPPFLAGS $INCINTL"
14344             gt_save_LIBS="$LIBS"
14345             LIBS="$LIBS $LIBINTL"
14346                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14347 /* end confdefs.h.  */
14348 #include <libintl.h>
14349 $gt_revision_test_code
14350 extern int _nl_msg_cat_cntr;
14351 extern
14352 #ifdef __cplusplus
14353 "C"
14354 #endif
14355 const char *_nl_expand_alias (const char *);
14356 int
14357 main ()
14358 {
14359 bindtextdomain ("", "");
14360 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14361   ;
14362   return 0;
14363 }
14364 _ACEOF
14365 if ac_fn_c_try_link "$LINENO"; then :
14366   eval "$gt_func_gnugettext_libintl=yes"
14367 else
14368   eval "$gt_func_gnugettext_libintl=no"
14369 fi
14370 rm -f core conftest.err conftest.$ac_objext \
14371     conftest$ac_exeext conftest.$ac_ext
14372                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14373               LIBS="$LIBS $LIBICONV"
14374               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14375 /* end confdefs.h.  */
14376 #include <libintl.h>
14377 $gt_revision_test_code
14378 extern int _nl_msg_cat_cntr;
14379 extern
14380 #ifdef __cplusplus
14381 "C"
14382 #endif
14383 const char *_nl_expand_alias (const char *);
14384 int
14385 main ()
14386 {
14387 bindtextdomain ("", "");
14388 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14389   ;
14390   return 0;
14391 }
14392 _ACEOF
14393 if ac_fn_c_try_link "$LINENO"; then :
14394   LIBINTL="$LIBINTL $LIBICONV"
14395                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14396                 eval "$gt_func_gnugettext_libintl=yes"
14397
14398 fi
14399 rm -f core conftest.err conftest.$ac_objext \
14400     conftest$ac_exeext conftest.$ac_ext
14401             fi
14402             CPPFLAGS="$gt_save_CPPFLAGS"
14403             LIBS="$gt_save_LIBS"
14404 fi
14405 eval ac_res=\$$gt_func_gnugettext_libintl
14406                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14407 $as_echo "$ac_res" >&6; }
14408         fi
14409
14410                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14411            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14412                 && test "$PACKAGE" != gettext-runtime \
14413                 && test "$PACKAGE" != gettext-tools; }; then
14414           gt_use_preinstalled_gnugettext=yes
14415         else
14416                     LIBINTL=
14417           LTLIBINTL=
14418           INCINTL=
14419         fi
14420
14421
14422
14423     if test -n "$INTL_MACOSX_LIBS"; then
14424       if test "$gt_use_preinstalled_gnugettext" = "yes" \
14425          || test "$nls_cv_use_gnu_gettext" = "yes"; then
14426                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14427         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14428       fi
14429     fi
14430
14431     if test "$gt_use_preinstalled_gnugettext" = "yes" \
14432        || test "$nls_cv_use_gnu_gettext" = "yes"; then
14433
14434 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
14435
14436     else
14437       USE_NLS=no
14438     fi
14439   fi
14440
14441   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14442 $as_echo_n "checking whether to use NLS... " >&6; }
14443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14444 $as_echo "$USE_NLS" >&6; }
14445   if test "$USE_NLS" = "yes"; then
14446     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14447 $as_echo_n "checking where the gettext function comes from... " >&6; }
14448     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14449       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14450         gt_source="external libintl"
14451       else
14452         gt_source="libc"
14453       fi
14454     else
14455       gt_source="included intl directory"
14456     fi
14457     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14458 $as_echo "$gt_source" >&6; }
14459   fi
14460
14461   if test "$USE_NLS" = "yes"; then
14462
14463     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14464       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14465         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14466 $as_echo_n "checking how to link with libintl... " >&6; }
14467         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14468 $as_echo "$LIBINTL" >&6; }
14469
14470   for element in $INCINTL; do
14471     haveit=
14472     for x in $CPPFLAGS; do
14473
14474   acl_save_prefix="$prefix"
14475   prefix="$acl_final_prefix"
14476   acl_save_exec_prefix="$exec_prefix"
14477   exec_prefix="$acl_final_exec_prefix"
14478   eval x=\"$x\"
14479   exec_prefix="$acl_save_exec_prefix"
14480   prefix="$acl_save_prefix"
14481
14482       if test "X$x" = "X$element"; then
14483         haveit=yes
14484         break
14485       fi
14486     done
14487     if test -z "$haveit"; then
14488       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14489     fi
14490   done
14491
14492       fi
14493
14494
14495 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14496
14497
14498 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14499
14500     fi
14501
14502         POSUB=po
14503   fi
14504
14505
14506
14507     INTLLIBS="$LIBINTL"
14508
14509
14510
14511
14512
14513
14514
14515 GETTEXT_PACKAGE="json-glib-1.0"
14516
14517
14518 cat >>confdefs.h <<_ACEOF
14519 #define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
14520 _ACEOF
14521
14522
14523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linguas" >&5
14524 $as_echo_n "checking for linguas... " >&6; }
14525  podir="$srcdir/po"
14526  linguas=`cd $podir && ls *.po 2>/dev/null | awk 'BEGIN { FS="."; ORS=" " } { print $1 }'`
14527  if test -f "$podir/LINGUAS.ignore"; then
14528    ALL_LINGUAS="";
14529    ignore_linguas=`sed -n -e 's/^\s\+\|\s\+$//g' -e '/^#/b' -e '/\S/!b' \
14530                        -e 's/\s\+/\n/g' -e p "$podir/LINGUAS.ignore"`;
14531    for lang in $linguas; do
14532      if ! echo "$ignore_linguas" | grep -q "^${lang}$"; then
14533        ALL_LINGUAS="$ALL_LINGUAS $lang";
14534      fi;
14535    done;
14536  else
14537    ALL_LINGUAS="$linguas";
14538  fi;
14539
14540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5
14541 $as_echo "$ALL_LINGUAS" >&6; }
14542
14543
14544 ac_config_files="$ac_config_files Makefile build/Makefile build/autotools/Makefile build/win32/Makefile build/win32/config.h.win32 build/win32/vs9/Makefile build/win32/vs10/Makefile json-glib/Makefile json-glib/json-version.h json-glib/tests/Makefile doc/Makefile doc/reference/Makefile doc/reference/version.xml po/Makefile.in json-glib.pc"
14545
14546
14547 cat >confcache <<\_ACEOF
14548 # This file is a shell script that caches the results of configure
14549 # tests run on this system so they can be shared between configure
14550 # scripts and configure runs, see configure's option --config-cache.
14551 # It is not useful on other systems.  If it contains results you don't
14552 # want to keep, you may remove or edit it.
14553 #
14554 # config.status only pays attention to the cache file if you give it
14555 # the --recheck option to rerun configure.
14556 #
14557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14559 # following values.
14560
14561 _ACEOF
14562
14563 # The following way of writing the cache mishandles newlines in values,
14564 # but we know of no workaround that is simple, portable, and efficient.
14565 # So, we kill variables containing newlines.
14566 # Ultrix sh set writes to stderr and can't be redirected directly,
14567 # and sets the high bit in the cache file unless we assign to the vars.
14568 (
14569   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14570     eval ac_val=\$$ac_var
14571     case $ac_val in #(
14572     *${as_nl}*)
14573       case $ac_var in #(
14574       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14575 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14576       esac
14577       case $ac_var in #(
14578       _ | IFS | as_nl) ;; #(
14579       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14580       *) { eval $ac_var=; unset $ac_var;} ;;
14581       esac ;;
14582     esac
14583   done
14584
14585   (set) 2>&1 |
14586     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14587     *${as_nl}ac_space=\ *)
14588       # `set' does not quote correctly, so add quotes: double-quote
14589       # substitution turns \\\\ into \\, and sed turns \\ into \.
14590       sed -n \
14591         "s/'/'\\\\''/g;
14592           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14593       ;; #(
14594     *)
14595       # `set' quotes correctly as required by POSIX, so do not add quotes.
14596       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14597       ;;
14598     esac |
14599     sort
14600 ) |
14601   sed '
14602      /^ac_cv_env_/b end
14603      t clear
14604      :clear
14605      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14606      t end
14607      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14608      :end' >>confcache
14609 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14610   if test -w "$cache_file"; then
14611     if test "x$cache_file" != "x/dev/null"; then
14612       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14613 $as_echo "$as_me: updating cache $cache_file" >&6;}
14614       if test ! -f "$cache_file" || test -h "$cache_file"; then
14615         cat confcache >"$cache_file"
14616       else
14617         case $cache_file in #(
14618         */* | ?:*)
14619           mv -f confcache "$cache_file"$$ &&
14620           mv -f "$cache_file"$$ "$cache_file" ;; #(
14621         *)
14622           mv -f confcache "$cache_file" ;;
14623         esac
14624       fi
14625     fi
14626   else
14627     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14628 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14629   fi
14630 fi
14631 rm -f confcache
14632
14633 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14634 # Let make expand exec_prefix.
14635 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14636
14637 DEFS=-DHAVE_CONFIG_H
14638
14639 ac_libobjs=
14640 ac_ltlibobjs=
14641 U=
14642 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14643   # 1. Remove the extension, and $U if already installed.
14644   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14645   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14646   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14647   #    will be set to the directory where LIBOBJS objects are built.
14648   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14649   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14650 done
14651 LIBOBJS=$ac_libobjs
14652
14653 LTLIBOBJS=$ac_ltlibobjs
14654
14655
14656  if test -n "$EXEEXT"; then
14657   am__EXEEXT_TRUE=
14658   am__EXEEXT_FALSE='#'
14659 else
14660   am__EXEEXT_TRUE='#'
14661   am__EXEEXT_FALSE=
14662 fi
14663
14664 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14665   as_fn_error $? "conditional \"AMDEP\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 fi
14668 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14669   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 fi
14672 if test -z "${ENABLE_GLIB_TEST_TRUE}" && test -z "${ENABLE_GLIB_TEST_FALSE}"; then
14673   as_fn_error $? "conditional \"ENABLE_GLIB_TEST\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 fi
14676 if test -z "${GCOV_ENABLED_TRUE}" && test -z "${GCOV_ENABLED_FALSE}"; then
14677   as_fn_error $? "conditional \"GCOV_ENABLED\" was never defined.
14678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14679 fi
14680 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14681   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
14682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14683 fi
14684 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
14685   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
14686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 fi
14688 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
14689   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
14690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14691 fi
14692 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14693   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14695 fi
14696 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
14697   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
14698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14699 fi
14700 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
14701   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
14702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14703 fi
14704
14705 : "${CONFIG_STATUS=./config.status}"
14706 ac_write_fail=0
14707 ac_clean_files_save=$ac_clean_files
14708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14710 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14711 as_write_fail=0
14712 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14713 #! $SHELL
14714 # Generated by $as_me.
14715 # Run this file to recreate the current configuration.
14716 # Compiler output produced by configure, useful for debugging
14717 # configure, is in config.log if it exists.
14718
14719 debug=false
14720 ac_cs_recheck=false
14721 ac_cs_silent=false
14722
14723 SHELL=\${CONFIG_SHELL-$SHELL}
14724 export SHELL
14725 _ASEOF
14726 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14727 ## -------------------- ##
14728 ## M4sh Initialization. ##
14729 ## -------------------- ##
14730
14731 # Be more Bourne compatible
14732 DUALCASE=1; export DUALCASE # for MKS sh
14733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14734   emulate sh
14735   NULLCMD=:
14736   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14737   # is contrary to our usage.  Disable this feature.
14738   alias -g '${1+"$@"}'='"$@"'
14739   setopt NO_GLOB_SUBST
14740 else
14741   case `(set -o) 2>/dev/null` in #(
14742   *posix*) :
14743     set -o posix ;; #(
14744   *) :
14745      ;;
14746 esac
14747 fi
14748
14749
14750 as_nl='
14751 '
14752 export as_nl
14753 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14754 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14755 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14756 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14757 # Prefer a ksh shell builtin over an external printf program on Solaris,
14758 # but without wasting forks for bash or zsh.
14759 if test -z "$BASH_VERSION$ZSH_VERSION" \
14760     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14761   as_echo='print -r --'
14762   as_echo_n='print -rn --'
14763 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14764   as_echo='printf %s\n'
14765   as_echo_n='printf %s'
14766 else
14767   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14768     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14769     as_echo_n='/usr/ucb/echo -n'
14770   else
14771     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14772     as_echo_n_body='eval
14773       arg=$1;
14774       case $arg in #(
14775       *"$as_nl"*)
14776         expr "X$arg" : "X\\(.*\\)$as_nl";
14777         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14778       esac;
14779       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14780     '
14781     export as_echo_n_body
14782     as_echo_n='sh -c $as_echo_n_body as_echo'
14783   fi
14784   export as_echo_body
14785   as_echo='sh -c $as_echo_body as_echo'
14786 fi
14787
14788 # The user is always right.
14789 if test "${PATH_SEPARATOR+set}" != set; then
14790   PATH_SEPARATOR=:
14791   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14792     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14793       PATH_SEPARATOR=';'
14794   }
14795 fi
14796
14797
14798 # IFS
14799 # We need space, tab and new line, in precisely that order.  Quoting is
14800 # there to prevent editors from complaining about space-tab.
14801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14802 # splitting by setting IFS to empty value.)
14803 IFS=" ""        $as_nl"
14804
14805 # Find who we are.  Look in the path if we contain no directory separator.
14806 as_myself=
14807 case $0 in #((
14808   *[\\/]* ) as_myself=$0 ;;
14809   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14810 for as_dir in $PATH
14811 do
14812   IFS=$as_save_IFS
14813   test -z "$as_dir" && as_dir=.
14814     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14815   done
14816 IFS=$as_save_IFS
14817
14818      ;;
14819 esac
14820 # We did not find ourselves, most probably we were run as `sh COMMAND'
14821 # in which case we are not to be found in the path.
14822 if test "x$as_myself" = x; then
14823   as_myself=$0
14824 fi
14825 if test ! -f "$as_myself"; then
14826   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14827   exit 1
14828 fi
14829
14830 # Unset variables that we do not need and which cause bugs (e.g. in
14831 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14832 # suppresses any "Segmentation fault" message there.  '((' could
14833 # trigger a bug in pdksh 5.2.14.
14834 for as_var in BASH_ENV ENV MAIL MAILPATH
14835 do eval test x\${$as_var+set} = xset \
14836   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14837 done
14838 PS1='$ '
14839 PS2='> '
14840 PS4='+ '
14841
14842 # NLS nuisances.
14843 LC_ALL=C
14844 export LC_ALL
14845 LANGUAGE=C
14846 export LANGUAGE
14847
14848 # CDPATH.
14849 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14850
14851
14852 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14853 # ----------------------------------------
14854 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14855 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14856 # script with STATUS, using 1 if that was 0.
14857 as_fn_error ()
14858 {
14859   as_status=$1; test $as_status -eq 0 && as_status=1
14860   if test "$4"; then
14861     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14862     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14863   fi
14864   $as_echo "$as_me: error: $2" >&2
14865   as_fn_exit $as_status
14866 } # as_fn_error
14867
14868
14869 # as_fn_set_status STATUS
14870 # -----------------------
14871 # Set $? to STATUS, without forking.
14872 as_fn_set_status ()
14873 {
14874   return $1
14875 } # as_fn_set_status
14876
14877 # as_fn_exit STATUS
14878 # -----------------
14879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14880 as_fn_exit ()
14881 {
14882   set +e
14883   as_fn_set_status $1
14884   exit $1
14885 } # as_fn_exit
14886
14887 # as_fn_unset VAR
14888 # ---------------
14889 # Portably unset VAR.
14890 as_fn_unset ()
14891 {
14892   { eval $1=; unset $1;}
14893 }
14894 as_unset=as_fn_unset
14895 # as_fn_append VAR VALUE
14896 # ----------------------
14897 # Append the text in VALUE to the end of the definition contained in VAR. Take
14898 # advantage of any shell optimizations that allow amortized linear growth over
14899 # repeated appends, instead of the typical quadratic growth present in naive
14900 # implementations.
14901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14902   eval 'as_fn_append ()
14903   {
14904     eval $1+=\$2
14905   }'
14906 else
14907   as_fn_append ()
14908   {
14909     eval $1=\$$1\$2
14910   }
14911 fi # as_fn_append
14912
14913 # as_fn_arith ARG...
14914 # ------------------
14915 # Perform arithmetic evaluation on the ARGs, and store the result in the
14916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14917 # must be portable across $(()) and expr.
14918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14919   eval 'as_fn_arith ()
14920   {
14921     as_val=$(( $* ))
14922   }'
14923 else
14924   as_fn_arith ()
14925   {
14926     as_val=`expr "$@" || test $? -eq 1`
14927   }
14928 fi # as_fn_arith
14929
14930
14931 if expr a : '\(a\)' >/dev/null 2>&1 &&
14932    test "X`expr 00001 : '.*\(...\)'`" = X001; then
14933   as_expr=expr
14934 else
14935   as_expr=false
14936 fi
14937
14938 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14939   as_basename=basename
14940 else
14941   as_basename=false
14942 fi
14943
14944 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14945   as_dirname=dirname
14946 else
14947   as_dirname=false
14948 fi
14949
14950 as_me=`$as_basename -- "$0" ||
14951 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14952          X"$0" : 'X\(//\)$' \| \
14953          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14954 $as_echo X/"$0" |
14955     sed '/^.*\/\([^/][^/]*\)\/*$/{
14956             s//\1/
14957             q
14958           }
14959           /^X\/\(\/\/\)$/{
14960             s//\1/
14961             q
14962           }
14963           /^X\/\(\/\).*/{
14964             s//\1/
14965             q
14966           }
14967           s/.*/./; q'`
14968
14969 # Avoid depending upon Character Ranges.
14970 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14971 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14972 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14973 as_cr_digits='0123456789'
14974 as_cr_alnum=$as_cr_Letters$as_cr_digits
14975
14976 ECHO_C= ECHO_N= ECHO_T=
14977 case `echo -n x` in #(((((
14978 -n*)
14979   case `echo 'xy\c'` in
14980   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
14981   xy)  ECHO_C='\c';;
14982   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14983        ECHO_T=' ';;
14984   esac;;
14985 *)
14986   ECHO_N='-n';;
14987 esac
14988
14989 rm -f conf$$ conf$$.exe conf$$.file
14990 if test -d conf$$.dir; then
14991   rm -f conf$$.dir/conf$$.file
14992 else
14993   rm -f conf$$.dir
14994   mkdir conf$$.dir 2>/dev/null
14995 fi
14996 if (echo >conf$$.file) 2>/dev/null; then
14997   if ln -s conf$$.file conf$$ 2>/dev/null; then
14998     as_ln_s='ln -s'
14999     # ... but there are two gotchas:
15000     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15001     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15002     # In both cases, we have to default to `cp -p'.
15003     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15004       as_ln_s='cp -p'
15005   elif ln conf$$.file conf$$ 2>/dev/null; then
15006     as_ln_s=ln
15007   else
15008     as_ln_s='cp -p'
15009   fi
15010 else
15011   as_ln_s='cp -p'
15012 fi
15013 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15014 rmdir conf$$.dir 2>/dev/null
15015
15016
15017 # as_fn_mkdir_p
15018 # -------------
15019 # Create "$as_dir" as a directory, including parents if necessary.
15020 as_fn_mkdir_p ()
15021 {
15022
15023   case $as_dir in #(
15024   -*) as_dir=./$as_dir;;
15025   esac
15026   test -d "$as_dir" || eval $as_mkdir_p || {
15027     as_dirs=
15028     while :; do
15029       case $as_dir in #(
15030       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15031       *) as_qdir=$as_dir;;
15032       esac
15033       as_dirs="'$as_qdir' $as_dirs"
15034       as_dir=`$as_dirname -- "$as_dir" ||
15035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15036          X"$as_dir" : 'X\(//\)[^/]' \| \
15037          X"$as_dir" : 'X\(//\)$' \| \
15038          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15039 $as_echo X"$as_dir" |
15040     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15041             s//\1/
15042             q
15043           }
15044           /^X\(\/\/\)[^/].*/{
15045             s//\1/
15046             q
15047           }
15048           /^X\(\/\/\)$/{
15049             s//\1/
15050             q
15051           }
15052           /^X\(\/\).*/{
15053             s//\1/
15054             q
15055           }
15056           s/.*/./; q'`
15057       test -d "$as_dir" && break
15058     done
15059     test -z "$as_dirs" || eval "mkdir $as_dirs"
15060   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15061
15062
15063 } # as_fn_mkdir_p
15064 if mkdir -p . 2>/dev/null; then
15065   as_mkdir_p='mkdir -p "$as_dir"'
15066 else
15067   test -d ./-p && rmdir ./-p
15068   as_mkdir_p=false
15069 fi
15070
15071 if test -x / >/dev/null 2>&1; then
15072   as_test_x='test -x'
15073 else
15074   if ls -dL / >/dev/null 2>&1; then
15075     as_ls_L_option=L
15076   else
15077     as_ls_L_option=
15078   fi
15079   as_test_x='
15080     eval sh -c '\''
15081       if test -d "$1"; then
15082         test -d "$1/.";
15083       else
15084         case $1 in #(
15085         -*)set "./$1";;
15086         esac;
15087         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15088         ???[sx]*):;;*)false;;esac;fi
15089     '\'' sh
15090   '
15091 fi
15092 as_executable_p=$as_test_x
15093
15094 # Sed expression to map a string onto a valid CPP name.
15095 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15096
15097 # Sed expression to map a string onto a valid variable name.
15098 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15099
15100
15101 exec 6>&1
15102 ## ----------------------------------- ##
15103 ## Main body of $CONFIG_STATUS script. ##
15104 ## ----------------------------------- ##
15105 _ASEOF
15106 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15107
15108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15109 # Save the log message, to keep $0 and so on meaningful, and to
15110 # report actual input values of CONFIG_FILES etc. instead of their
15111 # values after options handling.
15112 ac_log="
15113 This file was extended by json-glib $as_me 0.14.2, which was
15114 generated by GNU Autoconf 2.68.  Invocation command line was
15115
15116   CONFIG_FILES    = $CONFIG_FILES
15117   CONFIG_HEADERS  = $CONFIG_HEADERS
15118   CONFIG_LINKS    = $CONFIG_LINKS
15119   CONFIG_COMMANDS = $CONFIG_COMMANDS
15120   $ $0 $@
15121
15122 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15123 "
15124
15125 _ACEOF
15126
15127 case $ac_config_files in *"
15128 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15129 esac
15130
15131 case $ac_config_headers in *"
15132 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15133 esac
15134
15135
15136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15137 # Files that config.status was made for.
15138 config_files="$ac_config_files"
15139 config_headers="$ac_config_headers"
15140 config_commands="$ac_config_commands"
15141
15142 _ACEOF
15143
15144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15145 ac_cs_usage="\
15146 \`$as_me' instantiates files and other configuration actions
15147 from templates according to the current configuration.  Unless the files
15148 and actions are specified as TAGs, all are instantiated by default.
15149
15150 Usage: $0 [OPTION]... [TAG]...
15151
15152   -h, --help       print this help, then exit
15153   -V, --version    print version number and configuration settings, then exit
15154       --config     print configuration, then exit
15155   -q, --quiet, --silent
15156                    do not print progress messages
15157   -d, --debug      don't remove temporary files
15158       --recheck    update $as_me by reconfiguring in the same conditions
15159       --file=FILE[:TEMPLATE]
15160                    instantiate the configuration file FILE
15161       --header=FILE[:TEMPLATE]
15162                    instantiate the configuration header FILE
15163
15164 Configuration files:
15165 $config_files
15166
15167 Configuration headers:
15168 $config_headers
15169
15170 Configuration commands:
15171 $config_commands
15172
15173 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=json-glib>.
15174 json-glib home page: <http://live.gnome.org/JsonGlib>."
15175
15176 _ACEOF
15177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15178 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15179 ac_cs_version="\\
15180 json-glib config.status 0.14.2
15181 configured by $0, generated by GNU Autoconf 2.68,
15182   with options \\"\$ac_cs_config\\"
15183
15184 Copyright (C) 2010 Free Software Foundation, Inc.
15185 This config.status script is free software; the Free Software Foundation
15186 gives unlimited permission to copy, distribute and modify it."
15187
15188 ac_pwd='$ac_pwd'
15189 srcdir='$srcdir'
15190 INSTALL='$INSTALL'
15191 MKDIR_P='$MKDIR_P'
15192 AWK='$AWK'
15193 test -n "\$AWK" || AWK=awk
15194 _ACEOF
15195
15196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15197 # The default lists apply if the user does not specify any file.
15198 ac_need_defaults=:
15199 while test $# != 0
15200 do
15201   case $1 in
15202   --*=?*)
15203     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15204     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15205     ac_shift=:
15206     ;;
15207   --*=)
15208     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15209     ac_optarg=
15210     ac_shift=:
15211     ;;
15212   *)
15213     ac_option=$1
15214     ac_optarg=$2
15215     ac_shift=shift
15216     ;;
15217   esac
15218
15219   case $ac_option in
15220   # Handling of the options.
15221   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15222     ac_cs_recheck=: ;;
15223   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15224     $as_echo "$ac_cs_version"; exit ;;
15225   --config | --confi | --conf | --con | --co | --c )
15226     $as_echo "$ac_cs_config"; exit ;;
15227   --debug | --debu | --deb | --de | --d | -d )
15228     debug=: ;;
15229   --file | --fil | --fi | --f )
15230     $ac_shift
15231     case $ac_optarg in
15232     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15233     '') as_fn_error $? "missing file argument" ;;
15234     esac
15235     as_fn_append CONFIG_FILES " '$ac_optarg'"
15236     ac_need_defaults=false;;
15237   --header | --heade | --head | --hea )
15238     $ac_shift
15239     case $ac_optarg in
15240     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15241     esac
15242     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15243     ac_need_defaults=false;;
15244   --he | --h)
15245     # Conflict between --help and --header
15246     as_fn_error $? "ambiguous option: \`$1'
15247 Try \`$0 --help' for more information.";;
15248   --help | --hel | -h )
15249     $as_echo "$ac_cs_usage"; exit ;;
15250   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15251   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15252     ac_cs_silent=: ;;
15253
15254   # This is an error.
15255   -*) as_fn_error $? "unrecognized option: \`$1'
15256 Try \`$0 --help' for more information." ;;
15257
15258   *) as_fn_append ac_config_targets " $1"
15259      ac_need_defaults=false ;;
15260
15261   esac
15262   shift
15263 done
15264
15265 ac_configure_extra_args=
15266
15267 if $ac_cs_silent; then
15268   exec 6>/dev/null
15269   ac_configure_extra_args="$ac_configure_extra_args --silent"
15270 fi
15271
15272 _ACEOF
15273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15274 if \$ac_cs_recheck; then
15275   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15276   shift
15277   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15278   CONFIG_SHELL='$SHELL'
15279   export CONFIG_SHELL
15280   exec "\$@"
15281 fi
15282
15283 _ACEOF
15284 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15285 exec 5>>config.log
15286 {
15287   echo
15288   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15289 ## Running $as_me. ##
15290 _ASBOX
15291   $as_echo "$ac_log"
15292 } >&5
15293
15294 _ACEOF
15295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15296 #
15297 # INIT-COMMANDS
15298 #
15299 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15300
15301
15302 # The HP-UX ksh and POSIX shell print the target directory to stdout
15303 # if CDPATH is set.
15304 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15305
15306 sed_quote_subst='$sed_quote_subst'
15307 double_quote_subst='$double_quote_subst'
15308 delay_variable_subst='$delay_variable_subst'
15309 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15310 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15311 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15312 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15313 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15314 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15315 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15316 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15317 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15318 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15319 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15320 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15321 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15322 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15323 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15324 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15325 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15326 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15327 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15328 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15329 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15330 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15331 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15332 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15333 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15334 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15335 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15336 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15337 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15338 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15339 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15340 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15341 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15342 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15343 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15344 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15345 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15346 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15347 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15348 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15349 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15350 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15351 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15352 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15353 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15354 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15355 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15356 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15357 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15358 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15359 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15360 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15361 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15362 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15363 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15364 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"`'
15365 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15366 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15367 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15368 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15369 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15370 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15371 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15372 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15373 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15374 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15375 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15376 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15377 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15378 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15379 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15380 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15381 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15382 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15383 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15384 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15385 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15386 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15387 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15388 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15389 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15390 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15391 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15392 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15393 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15394 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15395 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15396 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15397 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15398 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15399 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15400 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15401 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15402 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15403 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15404 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15405 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15406 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15407 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15408 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15409 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15410 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15411 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15412 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15413 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15414 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15415 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15416 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15417 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15418 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15419 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15420 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15421 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15422 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15423 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15424 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15425 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15426 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15427 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15428 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15429 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15430 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15431 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15432 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15433 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15434 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15435 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15436 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15437 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15438 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15439
15440 LTCC='$LTCC'
15441 LTCFLAGS='$LTCFLAGS'
15442 compiler='$compiler_DEFAULT'
15443
15444 # A function that is used when there is no print builtin or printf.
15445 func_fallback_echo ()
15446 {
15447   eval 'cat <<_LTECHO_EOF
15448 \$1
15449 _LTECHO_EOF'
15450 }
15451
15452 # Quote evaled strings.
15453 for var in SHELL \
15454 ECHO \
15455 SED \
15456 GREP \
15457 EGREP \
15458 FGREP \
15459 LD \
15460 NM \
15461 LN_S \
15462 lt_SP2NL \
15463 lt_NL2SP \
15464 reload_flag \
15465 OBJDUMP \
15466 deplibs_check_method \
15467 file_magic_cmd \
15468 file_magic_glob \
15469 want_nocaseglob \
15470 DLLTOOL \
15471 sharedlib_from_linklib_cmd \
15472 AR \
15473 AR_FLAGS \
15474 archiver_list_spec \
15475 STRIP \
15476 RANLIB \
15477 CC \
15478 CFLAGS \
15479 compiler \
15480 lt_cv_sys_global_symbol_pipe \
15481 lt_cv_sys_global_symbol_to_cdecl \
15482 lt_cv_sys_global_symbol_to_c_name_address \
15483 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15484 nm_file_list_spec \
15485 lt_prog_compiler_no_builtin_flag \
15486 lt_prog_compiler_pic \
15487 lt_prog_compiler_wl \
15488 lt_prog_compiler_static \
15489 lt_cv_prog_compiler_c_o \
15490 need_locks \
15491 MANIFEST_TOOL \
15492 DSYMUTIL \
15493 NMEDIT \
15494 LIPO \
15495 OTOOL \
15496 OTOOL64 \
15497 shrext_cmds \
15498 export_dynamic_flag_spec \
15499 whole_archive_flag_spec \
15500 compiler_needs_object \
15501 with_gnu_ld \
15502 allow_undefined_flag \
15503 no_undefined_flag \
15504 hardcode_libdir_flag_spec \
15505 hardcode_libdir_flag_spec_ld \
15506 hardcode_libdir_separator \
15507 exclude_expsyms \
15508 include_expsyms \
15509 file_list_spec \
15510 variables_saved_for_relink \
15511 libname_spec \
15512 library_names_spec \
15513 soname_spec \
15514 install_override_mode \
15515 finish_eval \
15516 old_striplib \
15517 striplib; do
15518     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15519     *[\\\\\\\`\\"\\\$]*)
15520       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15521       ;;
15522     *)
15523       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15524       ;;
15525     esac
15526 done
15527
15528 # Double-quote double-evaled strings.
15529 for var in reload_cmds \
15530 old_postinstall_cmds \
15531 old_postuninstall_cmds \
15532 old_archive_cmds \
15533 extract_expsyms_cmds \
15534 old_archive_from_new_cmds \
15535 old_archive_from_expsyms_cmds \
15536 archive_cmds \
15537 archive_expsym_cmds \
15538 module_cmds \
15539 module_expsym_cmds \
15540 export_symbols_cmds \
15541 prelink_cmds \
15542 postlink_cmds \
15543 postinstall_cmds \
15544 postuninstall_cmds \
15545 finish_cmds \
15546 sys_lib_search_path_spec \
15547 sys_lib_dlsearch_path_spec; do
15548     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15549     *[\\\\\\\`\\"\\\$]*)
15550       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15551       ;;
15552     *)
15553       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15554       ;;
15555     esac
15556 done
15557
15558 ac_aux_dir='$ac_aux_dir'
15559 xsi_shell='$xsi_shell'
15560 lt_shell_append='$lt_shell_append'
15561
15562 # See if we are running on zsh, and set the options which allow our
15563 # commands through without removal of \ escapes INIT.
15564 if test -n "\${ZSH_VERSION+set}" ; then
15565    setopt NO_GLOB_SUBST
15566 fi
15567
15568
15569     PACKAGE='$PACKAGE'
15570     VERSION='$VERSION'
15571     TIMESTAMP='$TIMESTAMP'
15572     RM='$RM'
15573     ofile='$ofile'
15574
15575
15576
15577 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
15578     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15579     # from automake < 1.5.
15580     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15581     # Capture the value of LINGUAS because we need it to compute CATALOGS.
15582     LINGUAS="${LINGUAS-%UNSET%}"
15583
15584
15585 _ACEOF
15586
15587 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15588
15589 # Handling of arguments.
15590 for ac_config_target in $ac_config_targets
15591 do
15592   case $ac_config_target in
15593     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15594     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15595     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15596     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15597     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15598     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
15599     "build/autotools/Makefile") CONFIG_FILES="$CONFIG_FILES build/autotools/Makefile" ;;
15600     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
15601     "build/win32/config.h.win32") CONFIG_FILES="$CONFIG_FILES build/win32/config.h.win32" ;;
15602     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
15603     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
15604     "json-glib/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/Makefile" ;;
15605     "json-glib/json-version.h") CONFIG_FILES="$CONFIG_FILES json-glib/json-version.h" ;;
15606     "json-glib/tests/Makefile") CONFIG_FILES="$CONFIG_FILES json-glib/tests/Makefile" ;;
15607     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15608     "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
15609     "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
15610     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15611     "json-glib.pc") CONFIG_FILES="$CONFIG_FILES json-glib.pc" ;;
15612
15613   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15614   esac
15615 done
15616
15617
15618 # If the user did not use the arguments to specify the items to instantiate,
15619 # then the envvar interface is used.  Set only those that are not.
15620 # We use the long form for the default assignment because of an extremely
15621 # bizarre bug on SunOS 4.1.3.
15622 if $ac_need_defaults; then
15623   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15624   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15625   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15626 fi
15627
15628 # Have a temporary directory for convenience.  Make it in the build tree
15629 # simply because there is no reason against having it here, and in addition,
15630 # creating and moving files from /tmp can sometimes cause problems.
15631 # Hook for its removal unless debugging.
15632 # Note that there is a small window in which the directory will not be cleaned:
15633 # after its creation but before its name has been assigned to `$tmp'.
15634 $debug ||
15635 {
15636   tmp= ac_tmp=
15637   trap 'exit_status=$?
15638   : "${ac_tmp:=$tmp}"
15639   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15640 ' 0
15641   trap 'as_fn_exit 1' 1 2 13 15
15642 }
15643 # Create a (secure) tmp directory for tmp files.
15644
15645 {
15646   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15647   test -d "$tmp"
15648 }  ||
15649 {
15650   tmp=./conf$$-$RANDOM
15651   (umask 077 && mkdir "$tmp")
15652 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15653 ac_tmp=$tmp
15654
15655 # Set up the scripts for CONFIG_FILES section.
15656 # No need to generate them if there are no CONFIG_FILES.
15657 # This happens for instance with `./config.status config.h'.
15658 if test -n "$CONFIG_FILES"; then
15659
15660
15661 ac_cr=`echo X | tr X '\015'`
15662 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15663 # But we know of no other shell where ac_cr would be empty at this
15664 # point, so we can use a bashism as a fallback.
15665 if test "x$ac_cr" = x; then
15666   eval ac_cr=\$\'\\r\'
15667 fi
15668 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15669 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15670   ac_cs_awk_cr='\\r'
15671 else
15672   ac_cs_awk_cr=$ac_cr
15673 fi
15674
15675 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15676 _ACEOF
15677
15678
15679 {
15680   echo "cat >conf$$subs.awk <<_ACEOF" &&
15681   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15682   echo "_ACEOF"
15683 } >conf$$subs.sh ||
15684   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15685 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15686 ac_delim='%!_!# '
15687 for ac_last_try in false false false false false :; do
15688   . ./conf$$subs.sh ||
15689     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15690
15691   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15692   if test $ac_delim_n = $ac_delim_num; then
15693     break
15694   elif $ac_last_try; then
15695     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15696   else
15697     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15698   fi
15699 done
15700 rm -f conf$$subs.sh
15701
15702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15703 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15704 _ACEOF
15705 sed -n '
15706 h
15707 s/^/S["/; s/!.*/"]=/
15708 p
15709 g
15710 s/^[^!]*!//
15711 :repl
15712 t repl
15713 s/'"$ac_delim"'$//
15714 t delim
15715 :nl
15716 h
15717 s/\(.\{148\}\)..*/\1/
15718 t more1
15719 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15720 p
15721 n
15722 b repl
15723 :more1
15724 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15725 p
15726 g
15727 s/.\{148\}//
15728 t nl
15729 :delim
15730 h
15731 s/\(.\{148\}\)..*/\1/
15732 t more2
15733 s/["\\]/\\&/g; s/^/"/; s/$/"/
15734 p
15735 b
15736 :more2
15737 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15738 p
15739 g
15740 s/.\{148\}//
15741 t delim
15742 ' <conf$$subs.awk | sed '
15743 /^[^""]/{
15744   N
15745   s/\n//
15746 }
15747 ' >>$CONFIG_STATUS || ac_write_fail=1
15748 rm -f conf$$subs.awk
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 _ACAWK
15751 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15752   for (key in S) S_is_set[key] = 1
15753   FS = "\a"
15754
15755 }
15756 {
15757   line = $ 0
15758   nfields = split(line, field, "@")
15759   substed = 0
15760   len = length(field[1])
15761   for (i = 2; i < nfields; i++) {
15762     key = field[i]
15763     keylen = length(key)
15764     if (S_is_set[key]) {
15765       value = S[key]
15766       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15767       len += length(value) + length(field[++i])
15768       substed = 1
15769     } else
15770       len += 1 + keylen
15771   }
15772
15773   print line
15774 }
15775
15776 _ACAWK
15777 _ACEOF
15778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15779 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15780   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15781 else
15782   cat
15783 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15784   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15785 _ACEOF
15786
15787 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15788 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15789 # trailing colons and then remove the whole line if VPATH becomes empty
15790 # (actually we leave an empty line to preserve line numbers).
15791 if test "x$srcdir" = x.; then
15792   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15793 h
15794 s///
15795 s/^/:/
15796 s/[      ]*$/:/
15797 s/:\$(srcdir):/:/g
15798 s/:\${srcdir}:/:/g
15799 s/:@srcdir@:/:/g
15800 s/^:*//
15801 s/:*$//
15802 x
15803 s/\(=[   ]*\).*/\1/
15804 G
15805 s/\n//
15806 s/^[^=]*=[       ]*$//
15807 }'
15808 fi
15809
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15811 fi # test -n "$CONFIG_FILES"
15812
15813 # Set up the scripts for CONFIG_HEADERS section.
15814 # No need to generate them if there are no CONFIG_HEADERS.
15815 # This happens for instance with `./config.status Makefile'.
15816 if test -n "$CONFIG_HEADERS"; then
15817 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15818 BEGIN {
15819 _ACEOF
15820
15821 # Transform confdefs.h into an awk script `defines.awk', embedded as
15822 # here-document in config.status, that substitutes the proper values into
15823 # config.h.in to produce config.h.
15824
15825 # Create a delimiter string that does not exist in confdefs.h, to ease
15826 # handling of long lines.
15827 ac_delim='%!_!# '
15828 for ac_last_try in false false :; do
15829   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15830   if test -z "$ac_tt"; then
15831     break
15832   elif $ac_last_try; then
15833     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15834   else
15835     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15836   fi
15837 done
15838
15839 # For the awk script, D is an array of macro values keyed by name,
15840 # likewise P contains macro parameters if any.  Preserve backslash
15841 # newline sequences.
15842
15843 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15844 sed -n '
15845 s/.\{148\}/&'"$ac_delim"'/g
15846 t rset
15847 :rset
15848 s/^[     ]*#[    ]*define[       ][      ]*/ /
15849 t def
15850 d
15851 :def
15852 s/\\$//
15853 t bsnl
15854 s/["\\]/\\&/g
15855 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15856 D["\1"]=" \3"/p
15857 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
15858 d
15859 :bsnl
15860 s/["\\]/\\&/g
15861 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
15862 D["\1"]=" \3\\\\\\n"\\/p
15863 t cont
15864 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15865 t cont
15866 d
15867 :cont
15868 n
15869 s/.\{148\}/&'"$ac_delim"'/g
15870 t clear
15871 :clear
15872 s/\\$//
15873 t bsnlc
15874 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15875 d
15876 :bsnlc
15877 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15878 b cont
15879 ' <confdefs.h | sed '
15880 s/'"$ac_delim"'/"\\\
15881 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15882
15883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15884   for (key in D) D_is_set[key] = 1
15885   FS = "\a"
15886 }
15887 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15888   line = \$ 0
15889   split(line, arg, " ")
15890   if (arg[1] == "#") {
15891     defundef = arg[2]
15892     mac1 = arg[3]
15893   } else {
15894     defundef = substr(arg[1], 2)
15895     mac1 = arg[2]
15896   }
15897   split(mac1, mac2, "(") #)
15898   macro = mac2[1]
15899   prefix = substr(line, 1, index(line, defundef) - 1)
15900   if (D_is_set[macro]) {
15901     # Preserve the white space surrounding the "#".
15902     print prefix "define", macro P[macro] D[macro]
15903     next
15904   } else {
15905     # Replace #undef with comments.  This is necessary, for example,
15906     # in the case of _POSIX_SOURCE, which is predefined and required
15907     # on some systems where configure will not decide to define it.
15908     if (defundef == "undef") {
15909       print "/*", prefix defundef, macro, "*/"
15910       next
15911     }
15912   }
15913 }
15914 { print }
15915 _ACAWK
15916 _ACEOF
15917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15918   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15919 fi # test -n "$CONFIG_HEADERS"
15920
15921
15922 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15923 shift
15924 for ac_tag
15925 do
15926   case $ac_tag in
15927   :[FHLC]) ac_mode=$ac_tag; continue;;
15928   esac
15929   case $ac_mode$ac_tag in
15930   :[FHL]*:*);;
15931   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15932   :[FH]-) ac_tag=-:-;;
15933   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15934   esac
15935   ac_save_IFS=$IFS
15936   IFS=:
15937   set x $ac_tag
15938   IFS=$ac_save_IFS
15939   shift
15940   ac_file=$1
15941   shift
15942
15943   case $ac_mode in
15944   :L) ac_source=$1;;
15945   :[FH])
15946     ac_file_inputs=
15947     for ac_f
15948     do
15949       case $ac_f in
15950       -) ac_f="$ac_tmp/stdin";;
15951       *) # Look for the file first in the build tree, then in the source tree
15952          # (if the path is not absolute).  The absolute path cannot be DOS-style,
15953          # because $ac_f cannot contain `:'.
15954          test -f "$ac_f" ||
15955            case $ac_f in
15956            [\\/$]*) false;;
15957            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15958            esac ||
15959            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15960       esac
15961       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15962       as_fn_append ac_file_inputs " '$ac_f'"
15963     done
15964
15965     # Let's still pretend it is `configure' which instantiates (i.e., don't
15966     # use $as_me), people would be surprised to read:
15967     #    /* config.h.  Generated by config.status.  */
15968     configure_input='Generated from '`
15969           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15970         `' by configure.'
15971     if test x"$ac_file" != x-; then
15972       configure_input="$ac_file.  $configure_input"
15973       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15974 $as_echo "$as_me: creating $ac_file" >&6;}
15975     fi
15976     # Neutralize special characters interpreted by sed in replacement strings.
15977     case $configure_input in #(
15978     *\&* | *\|* | *\\* )
15979        ac_sed_conf_input=`$as_echo "$configure_input" |
15980        sed 's/[\\\\&|]/\\\\&/g'`;; #(
15981     *) ac_sed_conf_input=$configure_input;;
15982     esac
15983
15984     case $ac_tag in
15985     *:-:* | *:-) cat >"$ac_tmp/stdin" \
15986       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15987     esac
15988     ;;
15989   esac
15990
15991   ac_dir=`$as_dirname -- "$ac_file" ||
15992 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15993          X"$ac_file" : 'X\(//\)[^/]' \| \
15994          X"$ac_file" : 'X\(//\)$' \| \
15995          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15996 $as_echo X"$ac_file" |
15997     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15998             s//\1/
15999             q
16000           }
16001           /^X\(\/\/\)[^/].*/{
16002             s//\1/
16003             q
16004           }
16005           /^X\(\/\/\)$/{
16006             s//\1/
16007             q
16008           }
16009           /^X\(\/\).*/{
16010             s//\1/
16011             q
16012           }
16013           s/.*/./; q'`
16014   as_dir="$ac_dir"; as_fn_mkdir_p
16015   ac_builddir=.
16016
16017 case "$ac_dir" in
16018 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16019 *)
16020   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16021   # A ".." for each directory in $ac_dir_suffix.
16022   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16023   case $ac_top_builddir_sub in
16024   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16025   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16026   esac ;;
16027 esac
16028 ac_abs_top_builddir=$ac_pwd
16029 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16030 # for backward compatibility:
16031 ac_top_builddir=$ac_top_build_prefix
16032
16033 case $srcdir in
16034   .)  # We are building in place.
16035     ac_srcdir=.
16036     ac_top_srcdir=$ac_top_builddir_sub
16037     ac_abs_top_srcdir=$ac_pwd ;;
16038   [\\/]* | ?:[\\/]* )  # Absolute name.
16039     ac_srcdir=$srcdir$ac_dir_suffix;
16040     ac_top_srcdir=$srcdir
16041     ac_abs_top_srcdir=$srcdir ;;
16042   *) # Relative name.
16043     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16044     ac_top_srcdir=$ac_top_build_prefix$srcdir
16045     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16046 esac
16047 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16048
16049
16050   case $ac_mode in
16051   :F)
16052   #
16053   # CONFIG_FILE
16054   #
16055
16056   case $INSTALL in
16057   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16058   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16059   esac
16060   ac_MKDIR_P=$MKDIR_P
16061   case $MKDIR_P in
16062   [\\/$]* | ?:[\\/]* ) ;;
16063   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16064   esac
16065 _ACEOF
16066
16067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16068 # If the template does not know about datarootdir, expand it.
16069 # FIXME: This hack should be removed a few years after 2.60.
16070 ac_datarootdir_hack=; ac_datarootdir_seen=
16071 ac_sed_dataroot='
16072 /datarootdir/ {
16073   p
16074   q
16075 }
16076 /@datadir@/p
16077 /@docdir@/p
16078 /@infodir@/p
16079 /@localedir@/p
16080 /@mandir@/p'
16081 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16082 *datarootdir*) ac_datarootdir_seen=yes;;
16083 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16084   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16085 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16086 _ACEOF
16087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088   ac_datarootdir_hack='
16089   s&@datadir@&$datadir&g
16090   s&@docdir@&$docdir&g
16091   s&@infodir@&$infodir&g
16092   s&@localedir@&$localedir&g
16093   s&@mandir@&$mandir&g
16094   s&\\\${datarootdir}&$datarootdir&g' ;;
16095 esac
16096 _ACEOF
16097
16098 # Neutralize VPATH when `$srcdir' = `.'.
16099 # Shell code in configure.ac might set extrasub.
16100 # FIXME: do we really want to maintain this feature?
16101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16102 ac_sed_extra="$ac_vpsub
16103 $extrasub
16104 _ACEOF
16105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16106 :t
16107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16108 s|@configure_input@|$ac_sed_conf_input|;t t
16109 s&@top_builddir@&$ac_top_builddir_sub&;t t
16110 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16111 s&@srcdir@&$ac_srcdir&;t t
16112 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16113 s&@top_srcdir@&$ac_top_srcdir&;t t
16114 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16115 s&@builddir@&$ac_builddir&;t t
16116 s&@abs_builddir@&$ac_abs_builddir&;t t
16117 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16118 s&@INSTALL@&$ac_INSTALL&;t t
16119 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16120 $ac_datarootdir_hack
16121 "
16122 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16123   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16124
16125 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16126   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16127   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16128       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16129   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16130 which seems to be undefined.  Please make sure it is defined" >&5
16131 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16132 which seems to be undefined.  Please make sure it is defined" >&2;}
16133
16134   rm -f "$ac_tmp/stdin"
16135   case $ac_file in
16136   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16137   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16138   esac \
16139   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16140  ;;
16141   :H)
16142   #
16143   # CONFIG_HEADER
16144   #
16145   if test x"$ac_file" != x-; then
16146     {
16147       $as_echo "/* $configure_input  */" \
16148       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16149     } >"$ac_tmp/config.h" \
16150       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16151     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16152       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16153 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16154     else
16155       rm -f "$ac_file"
16156       mv "$ac_tmp/config.h" "$ac_file" \
16157         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16158     fi
16159   else
16160     $as_echo "/* $configure_input  */" \
16161       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16162       || as_fn_error $? "could not create -" "$LINENO" 5
16163   fi
16164 # Compute "$ac_file"'s index in $config_headers.
16165 _am_arg="$ac_file"
16166 _am_stamp_count=1
16167 for _am_header in $config_headers :; do
16168   case $_am_header in
16169     $_am_arg | $_am_arg:* )
16170       break ;;
16171     * )
16172       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16173   esac
16174 done
16175 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16176 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16177          X"$_am_arg" : 'X\(//\)[^/]' \| \
16178          X"$_am_arg" : 'X\(//\)$' \| \
16179          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16180 $as_echo X"$_am_arg" |
16181     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16182             s//\1/
16183             q
16184           }
16185           /^X\(\/\/\)[^/].*/{
16186             s//\1/
16187             q
16188           }
16189           /^X\(\/\/\)$/{
16190             s//\1/
16191             q
16192           }
16193           /^X\(\/\).*/{
16194             s//\1/
16195             q
16196           }
16197           s/.*/./; q'`/stamp-h$_am_stamp_count
16198  ;;
16199
16200   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16201 $as_echo "$as_me: executing $ac_file commands" >&6;}
16202  ;;
16203   esac
16204
16205
16206   case $ac_file$ac_mode in
16207     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16208   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16209   # are listed without --file.  Let's play safe and only enable the eval
16210   # if we detect the quoting.
16211   case $CONFIG_FILES in
16212   *\'*) eval set x "$CONFIG_FILES" ;;
16213   *)   set x $CONFIG_FILES ;;
16214   esac
16215   shift
16216   for mf
16217   do
16218     # Strip MF so we end up with the name of the file.
16219     mf=`echo "$mf" | sed -e 's/:.*$//'`
16220     # Check whether this is an Automake generated Makefile or not.
16221     # We used to match only the files named `Makefile.in', but
16222     # some people rename them; so instead we look at the file content.
16223     # Grep'ing the first line is not enough: some people post-process
16224     # each Makefile.in and add a new line on top of each file to say so.
16225     # Grep'ing the whole file is not good either: AIX grep has a line
16226     # limit of 2048, but all sed's we know have understand at least 4000.
16227     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16228       dirpart=`$as_dirname -- "$mf" ||
16229 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16230          X"$mf" : 'X\(//\)[^/]' \| \
16231          X"$mf" : 'X\(//\)$' \| \
16232          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16233 $as_echo X"$mf" |
16234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16235             s//\1/
16236             q
16237           }
16238           /^X\(\/\/\)[^/].*/{
16239             s//\1/
16240             q
16241           }
16242           /^X\(\/\/\)$/{
16243             s//\1/
16244             q
16245           }
16246           /^X\(\/\).*/{
16247             s//\1/
16248             q
16249           }
16250           s/.*/./; q'`
16251     else
16252       continue
16253     fi
16254     # Extract the definition of DEPDIR, am__include, and am__quote
16255     # from the Makefile without running `make'.
16256     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16257     test -z "$DEPDIR" && continue
16258     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16259     test -z "am__include" && continue
16260     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16261     # When using ansi2knr, U may be empty or an underscore; expand it
16262     U=`sed -n 's/^U = //p' < "$mf"`
16263     # Find all dependency output files, they are included files with
16264     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16265     # simplest approach to changing $(DEPDIR) to its actual value in the
16266     # expansion.
16267     for file in `sed -n "
16268       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16269          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16270       # Make sure the directory exists.
16271       test -f "$dirpart/$file" && continue
16272       fdir=`$as_dirname -- "$file" ||
16273 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16274          X"$file" : 'X\(//\)[^/]' \| \
16275          X"$file" : 'X\(//\)$' \| \
16276          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16277 $as_echo X"$file" |
16278     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16279             s//\1/
16280             q
16281           }
16282           /^X\(\/\/\)[^/].*/{
16283             s//\1/
16284             q
16285           }
16286           /^X\(\/\/\)$/{
16287             s//\1/
16288             q
16289           }
16290           /^X\(\/\).*/{
16291             s//\1/
16292             q
16293           }
16294           s/.*/./; q'`
16295       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16296       # echo "creating $dirpart/$file"
16297       echo '# dummy' > "$dirpart/$file"
16298     done
16299   done
16300 }
16301  ;;
16302     "libtool":C)
16303
16304     # See if we are running on zsh, and set the options which allow our
16305     # commands through without removal of \ escapes.
16306     if test -n "${ZSH_VERSION+set}" ; then
16307       setopt NO_GLOB_SUBST
16308     fi
16309
16310     cfgfile="${ofile}T"
16311     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16312     $RM "$cfgfile"
16313
16314     cat <<_LT_EOF >> "$cfgfile"
16315 #! $SHELL
16316
16317 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16318 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16319 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16320 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16321 #
16322 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16323 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16324 #                 Inc.
16325 #   Written by Gordon Matzigkeit, 1996
16326 #
16327 #   This file is part of GNU Libtool.
16328 #
16329 # GNU Libtool is free software; you can redistribute it and/or
16330 # modify it under the terms of the GNU General Public License as
16331 # published by the Free Software Foundation; either version 2 of
16332 # the License, or (at your option) any later version.
16333 #
16334 # As a special exception to the GNU General Public License,
16335 # if you distribute this file as part of a program or library that
16336 # is built using GNU Libtool, you may include this file under the
16337 # same distribution terms that you use for the rest of that program.
16338 #
16339 # GNU Libtool is distributed in the hope that it will be useful,
16340 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16341 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16342 # GNU General Public License for more details.
16343 #
16344 # You should have received a copy of the GNU General Public License
16345 # along with GNU Libtool; see the file COPYING.  If not, a copy
16346 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16347 # obtained by writing to the Free Software Foundation, Inc.,
16348 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16349
16350
16351 # The names of the tagged configurations supported by this script.
16352 available_tags=""
16353
16354 # ### BEGIN LIBTOOL CONFIG
16355
16356 # Which release of libtool.m4 was used?
16357 macro_version=$macro_version
16358 macro_revision=$macro_revision
16359
16360 # Whether or not to build static libraries.
16361 build_old_libs=$enable_static
16362
16363 # Whether or not to build shared libraries.
16364 build_libtool_libs=$enable_shared
16365
16366 # What type of objects to build.
16367 pic_mode=$pic_mode
16368
16369 # Whether or not to optimize for fast installation.
16370 fast_install=$enable_fast_install
16371
16372 # Shell to use when invoking shell scripts.
16373 SHELL=$lt_SHELL
16374
16375 # An echo program that protects backslashes.
16376 ECHO=$lt_ECHO
16377
16378 # The host system.
16379 host_alias=$host_alias
16380 host=$host
16381 host_os=$host_os
16382
16383 # The build system.
16384 build_alias=$build_alias
16385 build=$build
16386 build_os=$build_os
16387
16388 # A sed program that does not truncate output.
16389 SED=$lt_SED
16390
16391 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16392 Xsed="\$SED -e 1s/^X//"
16393
16394 # A grep program that handles long lines.
16395 GREP=$lt_GREP
16396
16397 # An ERE matcher.
16398 EGREP=$lt_EGREP
16399
16400 # A literal string matcher.
16401 FGREP=$lt_FGREP
16402
16403 # A BSD- or MS-compatible name lister.
16404 NM=$lt_NM
16405
16406 # Whether we need soft or hard links.
16407 LN_S=$lt_LN_S
16408
16409 # What is the maximum length of a command?
16410 max_cmd_len=$max_cmd_len
16411
16412 # Object file suffix (normally "o").
16413 objext=$ac_objext
16414
16415 # Executable file suffix (normally "").
16416 exeext=$exeext
16417
16418 # whether the shell understands "unset".
16419 lt_unset=$lt_unset
16420
16421 # turn spaces into newlines.
16422 SP2NL=$lt_lt_SP2NL
16423
16424 # turn newlines into spaces.
16425 NL2SP=$lt_lt_NL2SP
16426
16427 # convert \$build file names to \$host format.
16428 to_host_file_cmd=$lt_cv_to_host_file_cmd
16429
16430 # convert \$build files to toolchain format.
16431 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16432
16433 # An object symbol dumper.
16434 OBJDUMP=$lt_OBJDUMP
16435
16436 # Method to check whether dependent libraries are shared objects.
16437 deplibs_check_method=$lt_deplibs_check_method
16438
16439 # Command to use when deplibs_check_method = "file_magic".
16440 file_magic_cmd=$lt_file_magic_cmd
16441
16442 # How to find potential files when deplibs_check_method = "file_magic".
16443 file_magic_glob=$lt_file_magic_glob
16444
16445 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16446 want_nocaseglob=$lt_want_nocaseglob
16447
16448 # DLL creation program.
16449 DLLTOOL=$lt_DLLTOOL
16450
16451 # Command to associate shared and link libraries.
16452 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16453
16454 # The archiver.
16455 AR=$lt_AR
16456
16457 # Flags to create an archive.
16458 AR_FLAGS=$lt_AR_FLAGS
16459
16460 # How to feed a file listing to the archiver.
16461 archiver_list_spec=$lt_archiver_list_spec
16462
16463 # A symbol stripping program.
16464 STRIP=$lt_STRIP
16465
16466 # Commands used to install an old-style archive.
16467 RANLIB=$lt_RANLIB
16468 old_postinstall_cmds=$lt_old_postinstall_cmds
16469 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16470
16471 # Whether to use a lock for old archive extraction.
16472 lock_old_archive_extraction=$lock_old_archive_extraction
16473
16474 # A C compiler.
16475 LTCC=$lt_CC
16476
16477 # LTCC compiler flags.
16478 LTCFLAGS=$lt_CFLAGS
16479
16480 # Take the output of nm and produce a listing of raw symbols and C names.
16481 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16482
16483 # Transform the output of nm in a proper C declaration.
16484 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16485
16486 # Transform the output of nm in a C name address pair.
16487 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16488
16489 # Transform the output of nm in a C name address pair when lib prefix is needed.
16490 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16491
16492 # Specify filename containing input files for \$NM.
16493 nm_file_list_spec=$lt_nm_file_list_spec
16494
16495 # The root where to search for dependent libraries,and in which our libraries should be installed.
16496 lt_sysroot=$lt_sysroot
16497
16498 # The name of the directory that contains temporary libtool files.
16499 objdir=$objdir
16500
16501 # Used to examine libraries when file_magic_cmd begins with "file".
16502 MAGIC_CMD=$MAGIC_CMD
16503
16504 # Must we lock files when doing compilation?
16505 need_locks=$lt_need_locks
16506
16507 # Manifest tool.
16508 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16509
16510 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16511 DSYMUTIL=$lt_DSYMUTIL
16512
16513 # Tool to change global to local symbols on Mac OS X.
16514 NMEDIT=$lt_NMEDIT
16515
16516 # Tool to manipulate fat objects and archives on Mac OS X.
16517 LIPO=$lt_LIPO
16518
16519 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16520 OTOOL=$lt_OTOOL
16521
16522 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16523 OTOOL64=$lt_OTOOL64
16524
16525 # Old archive suffix (normally "a").
16526 libext=$libext
16527
16528 # Shared library suffix (normally ".so").
16529 shrext_cmds=$lt_shrext_cmds
16530
16531 # The commands to extract the exported symbol list from a shared archive.
16532 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16533
16534 # Variables whose values should be saved in libtool wrapper scripts and
16535 # restored at link time.
16536 variables_saved_for_relink=$lt_variables_saved_for_relink
16537
16538 # Do we need the "lib" prefix for modules?
16539 need_lib_prefix=$need_lib_prefix
16540
16541 # Do we need a version for libraries?
16542 need_version=$need_version
16543
16544 # Library versioning type.
16545 version_type=$version_type
16546
16547 # Shared library runtime path variable.
16548 runpath_var=$runpath_var
16549
16550 # Shared library path variable.
16551 shlibpath_var=$shlibpath_var
16552
16553 # Is shlibpath searched before the hard-coded library search path?
16554 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16555
16556 # Format of library name prefix.
16557 libname_spec=$lt_libname_spec
16558
16559 # List of archive names.  First name is the real one, the rest are links.
16560 # The last name is the one that the linker finds with -lNAME
16561 library_names_spec=$lt_library_names_spec
16562
16563 # The coded name of the library, if different from the real name.
16564 soname_spec=$lt_soname_spec
16565
16566 # Permission mode override for installation of shared libraries.
16567 install_override_mode=$lt_install_override_mode
16568
16569 # Command to use after installation of a shared archive.
16570 postinstall_cmds=$lt_postinstall_cmds
16571
16572 # Command to use after uninstallation of a shared archive.
16573 postuninstall_cmds=$lt_postuninstall_cmds
16574
16575 # Commands used to finish a libtool library installation in a directory.
16576 finish_cmds=$lt_finish_cmds
16577
16578 # As "finish_cmds", except a single script fragment to be evaled but
16579 # not shown.
16580 finish_eval=$lt_finish_eval
16581
16582 # Whether we should hardcode library paths into libraries.
16583 hardcode_into_libs=$hardcode_into_libs
16584
16585 # Compile-time system search path for libraries.
16586 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16587
16588 # Run-time system search path for libraries.
16589 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16590
16591 # Whether dlopen is supported.
16592 dlopen_support=$enable_dlopen
16593
16594 # Whether dlopen of programs is supported.
16595 dlopen_self=$enable_dlopen_self
16596
16597 # Whether dlopen of statically linked programs is supported.
16598 dlopen_self_static=$enable_dlopen_self_static
16599
16600 # Commands to strip libraries.
16601 old_striplib=$lt_old_striplib
16602 striplib=$lt_striplib
16603
16604
16605 # The linker used to build libraries.
16606 LD=$lt_LD
16607
16608 # How to create reloadable object files.
16609 reload_flag=$lt_reload_flag
16610 reload_cmds=$lt_reload_cmds
16611
16612 # Commands used to build an old-style archive.
16613 old_archive_cmds=$lt_old_archive_cmds
16614
16615 # A language specific compiler.
16616 CC=$lt_compiler
16617
16618 # Is the compiler the GNU compiler?
16619 with_gcc=$GCC
16620
16621 # Compiler flag to turn off builtin functions.
16622 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16623
16624 # Additional compiler flags for building library objects.
16625 pic_flag=$lt_lt_prog_compiler_pic
16626
16627 # How to pass a linker flag through the compiler.
16628 wl=$lt_lt_prog_compiler_wl
16629
16630 # Compiler flag to prevent dynamic linking.
16631 link_static_flag=$lt_lt_prog_compiler_static
16632
16633 # Does compiler simultaneously support -c and -o options?
16634 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16635
16636 # Whether or not to add -lc for building shared libraries.
16637 build_libtool_need_lc=$archive_cmds_need_lc
16638
16639 # Whether or not to disallow shared libs when runtime libs are static.
16640 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16641
16642 # Compiler flag to allow reflexive dlopens.
16643 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16644
16645 # Compiler flag to generate shared objects directly from archives.
16646 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16647
16648 # Whether the compiler copes with passing no objects directly.
16649 compiler_needs_object=$lt_compiler_needs_object
16650
16651 # Create an old-style archive from a shared archive.
16652 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16653
16654 # Create a temporary old-style archive to link instead of a shared archive.
16655 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16656
16657 # Commands used to build a shared archive.
16658 archive_cmds=$lt_archive_cmds
16659 archive_expsym_cmds=$lt_archive_expsym_cmds
16660
16661 # Commands used to build a loadable module if different from building
16662 # a shared archive.
16663 module_cmds=$lt_module_cmds
16664 module_expsym_cmds=$lt_module_expsym_cmds
16665
16666 # Whether we are building with GNU ld or not.
16667 with_gnu_ld=$lt_with_gnu_ld
16668
16669 # Flag that allows shared libraries with undefined symbols to be built.
16670 allow_undefined_flag=$lt_allow_undefined_flag
16671
16672 # Flag that enforces no undefined symbols.
16673 no_undefined_flag=$lt_no_undefined_flag
16674
16675 # Flag to hardcode \$libdir into a binary during linking.
16676 # This must work even if \$libdir does not exist
16677 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16678
16679 # If ld is used when linking, flag to hardcode \$libdir into a binary
16680 # during linking.  This must work even if \$libdir does not exist.
16681 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16682
16683 # Whether we need a single "-rpath" flag with a separated argument.
16684 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16685
16686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16687 # DIR into the resulting binary.
16688 hardcode_direct=$hardcode_direct
16689
16690 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16691 # DIR into the resulting binary and the resulting library dependency is
16692 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16693 # library is relocated.
16694 hardcode_direct_absolute=$hardcode_direct_absolute
16695
16696 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16697 # into the resulting binary.
16698 hardcode_minus_L=$hardcode_minus_L
16699
16700 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16701 # into the resulting binary.
16702 hardcode_shlibpath_var=$hardcode_shlibpath_var
16703
16704 # Set to "yes" if building a shared library automatically hardcodes DIR
16705 # into the library and all subsequent libraries and executables linked
16706 # against it.
16707 hardcode_automatic=$hardcode_automatic
16708
16709 # Set to yes if linker adds runtime paths of dependent libraries
16710 # to runtime path list.
16711 inherit_rpath=$inherit_rpath
16712
16713 # Whether libtool must link a program against all its dependency libraries.
16714 link_all_deplibs=$link_all_deplibs
16715
16716 # Set to "yes" if exported symbols are required.
16717 always_export_symbols=$always_export_symbols
16718
16719 # The commands to list exported symbols.
16720 export_symbols_cmds=$lt_export_symbols_cmds
16721
16722 # Symbols that should not be listed in the preloaded symbols.
16723 exclude_expsyms=$lt_exclude_expsyms
16724
16725 # Symbols that must always be exported.
16726 include_expsyms=$lt_include_expsyms
16727
16728 # Commands necessary for linking programs (against libraries) with templates.
16729 prelink_cmds=$lt_prelink_cmds
16730
16731 # Commands necessary for finishing linking programs.
16732 postlink_cmds=$lt_postlink_cmds
16733
16734 # Specify filename containing input files.
16735 file_list_spec=$lt_file_list_spec
16736
16737 # How to hardcode a shared library path into an executable.
16738 hardcode_action=$hardcode_action
16739
16740 # ### END LIBTOOL CONFIG
16741
16742 _LT_EOF
16743
16744   case $host_os in
16745   aix3*)
16746     cat <<\_LT_EOF >> "$cfgfile"
16747 # AIX sometimes has problems with the GCC collect2 program.  For some
16748 # reason, if we set the COLLECT_NAMES environment variable, the problems
16749 # vanish in a puff of smoke.
16750 if test "X${COLLECT_NAMES+set}" != Xset; then
16751   COLLECT_NAMES=
16752   export COLLECT_NAMES
16753 fi
16754 _LT_EOF
16755     ;;
16756   esac
16757
16758
16759 ltmain="$ac_aux_dir/ltmain.sh"
16760
16761
16762   # We use sed instead of cat because bash on DJGPP gets confused if
16763   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16764   # text mode, it properly converts lines to CR/LF.  This bash problem
16765   # is reportedly fixed, but why not run on old versions too?
16766   sed '$q' "$ltmain" >> "$cfgfile" \
16767      || (rm -f "$cfgfile"; exit 1)
16768
16769   if test x"$xsi_shell" = xyes; then
16770   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16771 func_dirname ()\
16772 {\
16773 \    case ${1} in\
16774 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16775 \      *  ) func_dirname_result="${3}" ;;\
16776 \    esac\
16777 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16778   && mv -f "$cfgfile.tmp" "$cfgfile" \
16779     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16780 test 0 -eq $? || _lt_function_replace_fail=:
16781
16782
16783   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16784 func_basename ()\
16785 {\
16786 \    func_basename_result="${1##*/}"\
16787 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16788   && mv -f "$cfgfile.tmp" "$cfgfile" \
16789     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16790 test 0 -eq $? || _lt_function_replace_fail=:
16791
16792
16793   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16794 func_dirname_and_basename ()\
16795 {\
16796 \    case ${1} in\
16797 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16798 \      *  ) func_dirname_result="${3}" ;;\
16799 \    esac\
16800 \    func_basename_result="${1##*/}"\
16801 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16802   && mv -f "$cfgfile.tmp" "$cfgfile" \
16803     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16804 test 0 -eq $? || _lt_function_replace_fail=:
16805
16806
16807   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16808 func_stripname ()\
16809 {\
16810 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16811 \    # positional parameters, so assign one to ordinary parameter first.\
16812 \    func_stripname_result=${3}\
16813 \    func_stripname_result=${func_stripname_result#"${1}"}\
16814 \    func_stripname_result=${func_stripname_result%"${2}"}\
16815 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16816   && mv -f "$cfgfile.tmp" "$cfgfile" \
16817     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16818 test 0 -eq $? || _lt_function_replace_fail=:
16819
16820
16821   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16822 func_split_long_opt ()\
16823 {\
16824 \    func_split_long_opt_name=${1%%=*}\
16825 \    func_split_long_opt_arg=${1#*=}\
16826 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16827   && mv -f "$cfgfile.tmp" "$cfgfile" \
16828     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16829 test 0 -eq $? || _lt_function_replace_fail=:
16830
16831
16832   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16833 func_split_short_opt ()\
16834 {\
16835 \    func_split_short_opt_arg=${1#??}\
16836 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16837 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16838   && mv -f "$cfgfile.tmp" "$cfgfile" \
16839     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16840 test 0 -eq $? || _lt_function_replace_fail=:
16841
16842
16843   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16844 func_lo2o ()\
16845 {\
16846 \    case ${1} in\
16847 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16848 \      *)    func_lo2o_result=${1} ;;\
16849 \    esac\
16850 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16851   && mv -f "$cfgfile.tmp" "$cfgfile" \
16852     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16853 test 0 -eq $? || _lt_function_replace_fail=:
16854
16855
16856   sed -e '/^func_xform ()$/,/^} # func_xform /c\
16857 func_xform ()\
16858 {\
16859     func_xform_result=${1%.*}.lo\
16860 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16861   && mv -f "$cfgfile.tmp" "$cfgfile" \
16862     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16863 test 0 -eq $? || _lt_function_replace_fail=:
16864
16865
16866   sed -e '/^func_arith ()$/,/^} # func_arith /c\
16867 func_arith ()\
16868 {\
16869     func_arith_result=$(( $* ))\
16870 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16871   && mv -f "$cfgfile.tmp" "$cfgfile" \
16872     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16873 test 0 -eq $? || _lt_function_replace_fail=:
16874
16875
16876   sed -e '/^func_len ()$/,/^} # func_len /c\
16877 func_len ()\
16878 {\
16879     func_len_result=${#1}\
16880 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16881   && mv -f "$cfgfile.tmp" "$cfgfile" \
16882     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16883 test 0 -eq $? || _lt_function_replace_fail=:
16884
16885 fi
16886
16887 if test x"$lt_shell_append" = xyes; then
16888   sed -e '/^func_append ()$/,/^} # func_append /c\
16889 func_append ()\
16890 {\
16891     eval "${1}+=\\${2}"\
16892 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16893   && mv -f "$cfgfile.tmp" "$cfgfile" \
16894     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16895 test 0 -eq $? || _lt_function_replace_fail=:
16896
16897
16898   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16899 func_append_quoted ()\
16900 {\
16901 \    func_quote_for_eval "${2}"\
16902 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16903 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16904   && mv -f "$cfgfile.tmp" "$cfgfile" \
16905     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16906 test 0 -eq $? || _lt_function_replace_fail=:
16907
16908
16909   # Save a `func_append' function call where possible by direct use of '+='
16910   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16911     && mv -f "$cfgfile.tmp" "$cfgfile" \
16912       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16913   test 0 -eq $? || _lt_function_replace_fail=:
16914 else
16915   # Save a `func_append' function call even when '+=' is not available
16916   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16917     && mv -f "$cfgfile.tmp" "$cfgfile" \
16918       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16919   test 0 -eq $? || _lt_function_replace_fail=:
16920 fi
16921
16922 if test x"$_lt_function_replace_fail" = x":"; then
16923   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16924 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16925 fi
16926
16927
16928    mv -f "$cfgfile" "$ofile" ||
16929     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16930   chmod +x "$ofile"
16931
16932  ;;
16933     "po-directories":C)
16934     for ac_file in $CONFIG_FILES; do
16935       # Support "outfile[:infile[:infile...]]"
16936       case "$ac_file" in
16937         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16938       esac
16939       # PO directories have a Makefile.in generated from Makefile.in.in.
16940       case "$ac_file" in */Makefile.in)
16941         # Adjust a relative srcdir.
16942         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16943         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16944         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16945         # In autoconf-2.13 it is called $ac_given_srcdir.
16946         # In autoconf-2.50 it is called $srcdir.
16947         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16948         case "$ac_given_srcdir" in
16949           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16950           /*) top_srcdir="$ac_given_srcdir" ;;
16951           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
16952         esac
16953         # Treat a directory as a PO directory if and only if it has a
16954         # POTFILES.in file. This allows packages to have multiple PO
16955         # directories under different names or in different locations.
16956         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16957           rm -f "$ac_dir/POTFILES"
16958           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16959           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16960           POMAKEFILEDEPS="POTFILES.in"
16961           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16962           # on $ac_dir but don't depend on user-specified configuration
16963           # parameters.
16964           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16965             # The LINGUAS file contains the set of available languages.
16966             if test -n "$OBSOLETE_ALL_LINGUAS"; then
16967               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16968             fi
16969             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16970             # Hide the ALL_LINGUAS assigment from automake < 1.5.
16971             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16972             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16973           else
16974             # The set of available languages was given in configure.in.
16975             # Hide the ALL_LINGUAS assigment from automake < 1.5.
16976             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16977           fi
16978           # Compute POFILES
16979           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16980           # Compute UPDATEPOFILES
16981           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16982           # Compute DUMMYPOFILES
16983           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16984           # Compute GMOFILES
16985           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16986           case "$ac_given_srcdir" in
16987             .) srcdirpre= ;;
16988             *) srcdirpre='$(srcdir)/' ;;
16989           esac
16990           POFILES=
16991           UPDATEPOFILES=
16992           DUMMYPOFILES=
16993           GMOFILES=
16994           for lang in $ALL_LINGUAS; do
16995             POFILES="$POFILES $srcdirpre$lang.po"
16996             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16997             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16998             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16999           done
17000           # CATALOGS depends on both $ac_dir and the user's LINGUAS
17001           # environment variable.
17002           INST_LINGUAS=
17003           if test -n "$ALL_LINGUAS"; then
17004             for presentlang in $ALL_LINGUAS; do
17005               useit=no
17006               if test "%UNSET%" != "$LINGUAS"; then
17007                 desiredlanguages="$LINGUAS"
17008               else
17009                 desiredlanguages="$ALL_LINGUAS"
17010               fi
17011               for desiredlang in $desiredlanguages; do
17012                 # Use the presentlang catalog if desiredlang is
17013                 #   a. equal to presentlang, or
17014                 #   b. a variant of presentlang (because in this case,
17015                 #      presentlang can be used as a fallback for messages
17016                 #      which are not translated in the desiredlang catalog).
17017                 case "$desiredlang" in
17018                   "$presentlang"*) useit=yes;;
17019                 esac
17020               done
17021               if test $useit = yes; then
17022                 INST_LINGUAS="$INST_LINGUAS $presentlang"
17023               fi
17024             done
17025           fi
17026           CATALOGS=
17027           if test -n "$INST_LINGUAS"; then
17028             for lang in $INST_LINGUAS; do
17029               CATALOGS="$CATALOGS $lang.gmo"
17030             done
17031           fi
17032           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
17033           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
17034           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17035             if test -f "$f"; then
17036               case "$f" in
17037                 *.orig | *.bak | *~) ;;
17038                 *) cat "$f" >> "$ac_dir/Makefile" ;;
17039               esac
17040             fi
17041           done
17042         fi
17043         ;;
17044       esac
17045     done ;;
17046
17047   esac
17048 done # for ac_tag
17049
17050
17051 as_fn_exit 0
17052 _ACEOF
17053 ac_clean_files=$ac_clean_files_save
17054
17055 test $ac_write_fail = 0 ||
17056   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17057
17058
17059 # configure is writing to config.log, and then calls config.status.
17060 # config.status does its own redirection, appending to config.log.
17061 # Unfortunately, on DOS this fails, as config.log is still kept open
17062 # by configure, so config.status won't be able to write to it; its
17063 # output is simply discarded.  So we exec the FD to /dev/null,
17064 # effectively closing config.log, so it can be properly (re)opened and
17065 # appended to by config.status.  When coming back to configure, we
17066 # need to make the FD available again.
17067 if test "$no_create" != yes; then
17068   ac_cs_success=:
17069   ac_config_status_args=
17070   test "$silent" = yes &&
17071     ac_config_status_args="$ac_config_status_args --quiet"
17072   exec 5>/dev/null
17073   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17074   exec 5>>config.log
17075   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17076   # would make configure fail if this is the last instruction.
17077   $ac_cs_success || as_fn_exit 1
17078 fi
17079 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17080   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17081 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17082 fi
17083
17084
17085
17086 echo ""
17087 echo " Json-GLib - $VERSION (${JSON_RELEASE_STATUS})"
17088 echo ""
17089 echo " • Prefix: ${prefix}"
17090 echo ""
17091 echo " • Debug level: ${enable_debug}"
17092 echo " • Compiler flags: ${CFLAGS} ${MAINTAINER_CFLAGS}"
17093 echo ""
17094 echo " • API reference: ${enable_gtk_doc}"
17095 echo ""
17096 echo " • Enable test suite: ${enable_glibtest}"
17097 echo " • Build introspection data: ${enable_introspection}"
17098 echo " • Enable coverage test: ${enable_gcov}"
17099 echo ""