Imported Upstream version 1.37.4
[platform/upstream/gobject-introspection.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for gobject-introspection 1.37.4.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283   fi
284   exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302   { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311   return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319   set +e
320   as_fn_set_status $1
321   exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330   case $as_dir in #(
331   -*) as_dir=./$as_dir;;
332   esac
333   test -d "$as_dir" || eval $as_mkdir_p || {
334     as_dirs=
335     while :; do
336       case $as_dir in #(
337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338       *) as_qdir=$as_dir;;
339       esac
340       as_dirs="'$as_qdir' $as_dirs"
341       as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343          X"$as_dir" : 'X\(//\)[^/]' \| \
344          X"$as_dir" : 'X\(//\)$' \| \
345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)[^/].*/{
352             s//\1/
353             q
354           }
355           /^X\(\/\/\)$/{
356             s//\1/
357             q
358           }
359           /^X\(\/\).*/{
360             s//\1/
361             q
362           }
363           s/.*/./; q'`
364       test -d "$as_dir" && break
365     done
366     test -z "$as_dirs" || eval "mkdir $as_dirs"
367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377   test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386   eval 'as_fn_append ()
387   {
388     eval $1+=\$2
389   }'
390 else
391   as_fn_append ()
392   {
393     eval $1=\$$1\$2
394   }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403   eval 'as_fn_arith ()
404   {
405     as_val=$(( $* ))
406   }'
407 else
408   as_fn_arith ()
409   {
410     as_val=`expr "$@" || test $? -eq 1`
411   }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422   as_status=$1; test $as_status -eq 0 && as_status=1
423   if test "$4"; then
424     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426   fi
427   $as_echo "$as_me: error: $2" >&2
428   as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432    test "X`expr 00001 : '.*\(...\)'`" = X001; then
433   as_expr=expr
434 else
435   as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439   as_basename=basename
440 else
441   as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445   as_dirname=dirname
446 else
447   as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452          X"$0" : 'X\(//\)$' \| \
453          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455     sed '/^.*\/\([^/][^/]*\)\/*$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\/\)$/{
460             s//\1/
461             q
462           }
463           /^X\/\(\/\).*/{
464             s//\1/
465             q
466           }
467           s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477   as_lineno_1=$LINENO as_lineno_1a=$LINENO
478   as_lineno_2=$LINENO as_lineno_2a=$LINENO
479   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
482   sed -n '
483     p
484     /[$]LINENO/=
485   ' <$as_myself |
486     sed '
487       s/[$]LINENO.*/&-/
488       t lineno
489       b
490       :lineno
491       N
492       :loop
493       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494       t loop
495       s/-\n.*//
496     ' >$as_me.lineno &&
497   chmod +x "$as_me.lineno" ||
498     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501   # already done that, so ensure we don't try to do so again and fall
502   # in an infinite loop.  This has already happened in practice.
503   _as_can_reexec=no; export _as_can_reexec
504   # Don't try to exec as it changes $[0], causing all sort of problems
505   # (the dirname of $[0] is not the place where we might find the
506   # original and so on.  Autoconf is especially sensitive to this).
507   . "./$as_me.lineno"
508   # Exit status is that of the last command.
509   exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515   case `echo 'xy\c'` in
516   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
517   xy)  ECHO_C='\c';;
518   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
519        ECHO_T=' ';;
520   esac;;
521 *)
522   ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527   rm -f conf$$.dir/conf$$.file
528 else
529   rm -f conf$$.dir
530   mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533   if ln -s conf$$.file conf$$ 2>/dev/null; then
534     as_ln_s='ln -s'
535     # ... but there are two gotchas:
536     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538     # In both cases, we have to default to `cp -pR'.
539     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540       as_ln_s='cp -pR'
541   elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543   else
544     as_ln_s='cp -pR'
545   fi
546 else
547   as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553   as_mkdir_p='mkdir -p "$as_dir"'
554 else
555   test -d ./-p && rmdir ./-p
556   as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='gobject-introspection'
593 PACKAGE_TARNAME='gobject-introspection'
594 PACKAGE_VERSION='1.37.4'
595 PACKAGE_STRING='gobject-introspection 1.37.4'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection'
597 PACKAGE_URL=''
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 #  include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #  include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_subst_vars='am__EXEEXT_FALSE
636 am__EXEEXT_TRUE
637 LTLIBOBJS
638 EXTRA_LINK_FLAGS
639 GLIBSRC
640 WITH_GLIBSRC_FALSE
641 WITH_GLIBSRC_TRUE
642 BUILD_DOCTOOL_FALSE
643 BUILD_DOCTOOL_TRUE
644 PYTHON_LIBS
645 PYTHON_INCLUDES
646 pkgpyexecdir
647 pyexecdir
648 pkgpythondir
649 pythondir
650 PYTHON_PLATFORM
651 PYTHON_EXEC_PREFIX
652 PYTHON_PREFIX
653 PYTHON_VERSION
654 PYTHON
655 LIBOBJS
656 POW_LIB
657 GTK_DOC_USE_REBASE_FALSE
658 GTK_DOC_USE_REBASE_TRUE
659 GTK_DOC_USE_LIBTOOL_FALSE
660 GTK_DOC_USE_LIBTOOL_TRUE
661 GTK_DOC_BUILD_PDF_FALSE
662 GTK_DOC_BUILD_PDF_TRUE
663 GTK_DOC_BUILD_HTML_FALSE
664 GTK_DOC_BUILD_HTML_TRUE
665 ENABLE_GTK_DOC_FALSE
666 ENABLE_GTK_DOC_TRUE
667 GTKDOC_DEPS_LIBS
668 GTKDOC_DEPS_CFLAGS
669 HTML_DIR
670 GTKDOC_MKPDF
671 GTKDOC_REBASE
672 GTKDOC_CHECK
673 GIREPO_LIBS
674 GIREPO_CFLAGS
675 FFI_PC_PACKAGES
676 FFI_PC_LIBS
677 FFI_PC_CFLAGS
678 FFI_LIBS
679 FFI_CFLAGS
680 SCANNER_LIBS
681 SCANNER_CFLAGS
682 CAIRO_GIR_PACKAGE
683 CAIRO_SHARED_LIBRARY
684 HAVE_CAIRO_FALSE
685 HAVE_CAIRO_TRUE
686 CAIRO_LIBS
687 CAIRO_CFLAGS
688 HAVE_GIO_UNIX_FALSE
689 HAVE_GIO_UNIX_TRUE
690 GIO_UNIX_LIBS
691 GIO_UNIX_CFLAGS
692 GIO_LIBS
693 GIO_CFLAGS
694 GMODULE_LIBS
695 GMODULE_CFLAGS
696 GOBJECT_LIBS
697 GOBJECT_CFLAGS
698 GLIB_LIBS
699 GLIB_CFLAGS
700 GIR_DIR
701 GIR_SUFFIX
702 GOBJECT_INTROSPECTION_LIBDIR
703 EXPANDED_DATADIR
704 EXPANDED_LIBEXECDIR
705 EXPANDED_LIBDIR
706 EXPANDED_BINDIR
707 EXPANDED_SYSCONFDIR
708 EXPANDED_LOCALSTATEDIR
709 YACC
710 LEXLIB
711 LEX_OUTPUT_ROOT
712 LEX
713 PKG_CONFIG_LIBDIR
714 PKG_CONFIG_PATH
715 PKG_CONFIG
716 CPP
717 OTOOL64
718 OTOOL
719 LIPO
720 NMEDIT
721 DSYMUTIL
722 MANIFEST_TOOL
723 RANLIB
724 ac_ct_AR
725 AR
726 DLLTOOL
727 OBJDUMP
728 LN_S
729 NM
730 ac_ct_DUMPBIN
731 DUMPBIN
732 LD
733 FGREP
734 EGREP
735 GREP
736 SED
737 LIBTOOL
738 am__fastdepCC_FALSE
739 am__fastdepCC_TRUE
740 CCDEPMODE
741 am__nodep
742 AMDEPBACKSLASH
743 AMDEP_FALSE
744 AMDEP_TRUE
745 am__quote
746 am__include
747 DEPDIR
748 OBJEXT
749 EXEEXT
750 ac_ct_CC
751 CPPFLAGS
752 LDFLAGS
753 CFLAGS
754 CC
755 OS_WIN32_FALSE
756 OS_WIN32_TRUE
757 host_os
758 host_vendor
759 host_cpu
760 host
761 build_os
762 build_vendor
763 build_cpu
764 build
765 MAINT
766 MAINTAINER_MODE_FALSE
767 MAINTAINER_MODE_TRUE
768 AM_BACKSLASH
769 AM_DEFAULT_VERBOSITY
770 AM_DEFAULT_V
771 AM_V
772 am__untar
773 am__tar
774 AMTAR
775 am__leading_dot
776 SET_MAKE
777 AWK
778 mkdir_p
779 MKDIR_P
780 INSTALL_STRIP_PROGRAM
781 STRIP
782 install_sh
783 MAKEINFO
784 AUTOHEADER
785 AUTOMAKE
786 AUTOCONF
787 ACLOCAL
788 VERSION
789 PACKAGE
790 CYGPATH_W
791 am__isrc
792 INSTALL_DATA
793 INSTALL_SCRIPT
794 INSTALL_PROGRAM
795 target_alias
796 host_alias
797 build_alias
798 LIBS
799 ECHO_T
800 ECHO_N
801 ECHO_C
802 DEFS
803 mandir
804 localedir
805 libdir
806 psdir
807 pdfdir
808 dvidir
809 htmldir
810 infodir
811 docdir
812 oldincludedir
813 includedir
814 localstatedir
815 sharedstatedir
816 sysconfdir
817 datadir
818 datarootdir
819 libexecdir
820 sbindir
821 bindir
822 program_transform_name
823 prefix
824 exec_prefix
825 PACKAGE_URL
826 PACKAGE_BUGREPORT
827 PACKAGE_STRING
828 PACKAGE_VERSION
829 PACKAGE_TARNAME
830 PACKAGE_NAME
831 PATH_SEPARATOR
832 SHELL'
833 ac_subst_files=''
834 ac_user_opts='
835 enable_option_checking
836 enable_silent_rules
837 enable_maintainer_mode
838 enable_dependency_tracking
839 enable_shared
840 enable_static
841 with_pic
842 enable_fast_install
843 with_gnu_ld
844 with_sysroot
845 enable_libtool_lock
846 with_cairo
847 with_html_dir
848 enable_gtk_doc
849 enable_gtk_doc_html
850 enable_gtk_doc_pdf
851 enable_doctool
852 with_glib_src
853 enable_Bsymbolic
854 '
855       ac_precious_vars='build_alias
856 host_alias
857 target_alias
858 CC
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
863 CPP
864 PKG_CONFIG
865 PKG_CONFIG_PATH
866 PKG_CONFIG_LIBDIR
867 GLIB_CFLAGS
868 GLIB_LIBS
869 GOBJECT_CFLAGS
870 GOBJECT_LIBS
871 GMODULE_CFLAGS
872 GMODULE_LIBS
873 GIO_CFLAGS
874 GIO_LIBS
875 GIO_UNIX_CFLAGS
876 GIO_UNIX_LIBS
877 CAIRO_CFLAGS
878 CAIRO_LIBS
879 SCANNER_CFLAGS
880 SCANNER_LIBS
881 FFI_CFLAGS
882 FFI_LIBS
883 GIREPO_CFLAGS
884 GIREPO_LIBS
885 GTKDOC_DEPS_CFLAGS
886 GTKDOC_DEPS_LIBS
887 PYTHON'
888
889
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
911
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
937
938 ac_prev=
939 ac_dashdash=
940 for ac_option
941 do
942   # If the previous option needs an argument, assign it.
943   if test -n "$ac_prev"; then
944     eval $ac_prev=\$ac_option
945     ac_prev=
946     continue
947   fi
948
949   case $ac_option in
950   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951   *=)   ac_optarg= ;;
952   *)    ac_optarg=yes ;;
953   esac
954
955   # Accept the important Cygnus configure options, so we can diagnose typos.
956
957   case $ac_dashdash$ac_option in
958   --)
959     ac_dashdash=yes ;;
960
961   -bindir | --bindir | --bindi | --bind | --bin | --bi)
962     ac_prev=bindir ;;
963   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964     bindir=$ac_optarg ;;
965
966   -build | --build | --buil | --bui | --bu)
967     ac_prev=build_alias ;;
968   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969     build_alias=$ac_optarg ;;
970
971   -cache-file | --cache-file | --cache-fil | --cache-fi \
972   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973     ac_prev=cache_file ;;
974   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976     cache_file=$ac_optarg ;;
977
978   --config-cache | -C)
979     cache_file=config.cache ;;
980
981   -datadir | --datadir | --datadi | --datad)
982     ac_prev=datadir ;;
983   -datadir=* | --datadir=* | --datadi=* | --datad=*)
984     datadir=$ac_optarg ;;
985
986   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987   | --dataroo | --dataro | --datar)
988     ac_prev=datarootdir ;;
989   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991     datarootdir=$ac_optarg ;;
992
993   -disable-* | --disable-*)
994     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995     # Reject names that are not valid shell variable names.
996     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997       as_fn_error $? "invalid feature name: $ac_useropt"
998     ac_useropt_orig=$ac_useropt
999     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000     case $ac_user_opts in
1001       *"
1002 "enable_$ac_useropt"
1003 "*) ;;
1004       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005          ac_unrecognized_sep=', ';;
1006     esac
1007     eval enable_$ac_useropt=no ;;
1008
1009   -docdir | --docdir | --docdi | --doc | --do)
1010     ac_prev=docdir ;;
1011   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012     docdir=$ac_optarg ;;
1013
1014   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015     ac_prev=dvidir ;;
1016   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017     dvidir=$ac_optarg ;;
1018
1019   -enable-* | --enable-*)
1020     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021     # Reject names that are not valid shell variable names.
1022     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023       as_fn_error $? "invalid feature name: $ac_useropt"
1024     ac_useropt_orig=$ac_useropt
1025     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026     case $ac_user_opts in
1027       *"
1028 "enable_$ac_useropt"
1029 "*) ;;
1030       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031          ac_unrecognized_sep=', ';;
1032     esac
1033     eval enable_$ac_useropt=\$ac_optarg ;;
1034
1035   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037   | --exec | --exe | --ex)
1038     ac_prev=exec_prefix ;;
1039   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041   | --exec=* | --exe=* | --ex=*)
1042     exec_prefix=$ac_optarg ;;
1043
1044   -gas | --gas | --ga | --g)
1045     # Obsolete; use --with-gas.
1046     with_gas=yes ;;
1047
1048   -help | --help | --hel | --he | -h)
1049     ac_init_help=long ;;
1050   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051     ac_init_help=recursive ;;
1052   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053     ac_init_help=short ;;
1054
1055   -host | --host | --hos | --ho)
1056     ac_prev=host_alias ;;
1057   -host=* | --host=* | --hos=* | --ho=*)
1058     host_alias=$ac_optarg ;;
1059
1060   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061     ac_prev=htmldir ;;
1062   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063   | --ht=*)
1064     htmldir=$ac_optarg ;;
1065
1066   -includedir | --includedir | --includedi | --included | --include \
1067   | --includ | --inclu | --incl | --inc)
1068     ac_prev=includedir ;;
1069   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070   | --includ=* | --inclu=* | --incl=* | --inc=*)
1071     includedir=$ac_optarg ;;
1072
1073   -infodir | --infodir | --infodi | --infod | --info | --inf)
1074     ac_prev=infodir ;;
1075   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076     infodir=$ac_optarg ;;
1077
1078   -libdir | --libdir | --libdi | --libd)
1079     ac_prev=libdir ;;
1080   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081     libdir=$ac_optarg ;;
1082
1083   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084   | --libexe | --libex | --libe)
1085     ac_prev=libexecdir ;;
1086   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087   | --libexe=* | --libex=* | --libe=*)
1088     libexecdir=$ac_optarg ;;
1089
1090   -localedir | --localedir | --localedi | --localed | --locale)
1091     ac_prev=localedir ;;
1092   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093     localedir=$ac_optarg ;;
1094
1095   -localstatedir | --localstatedir | --localstatedi | --localstated \
1096   | --localstate | --localstat | --localsta | --localst | --locals)
1097     ac_prev=localstatedir ;;
1098   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100     localstatedir=$ac_optarg ;;
1101
1102   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103     ac_prev=mandir ;;
1104   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105     mandir=$ac_optarg ;;
1106
1107   -nfp | --nfp | --nf)
1108     # Obsolete; use --without-fp.
1109     with_fp=no ;;
1110
1111   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112   | --no-cr | --no-c | -n)
1113     no_create=yes ;;
1114
1115   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117     no_recursion=yes ;;
1118
1119   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121   | --oldin | --oldi | --old | --ol | --o)
1122     ac_prev=oldincludedir ;;
1123   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126     oldincludedir=$ac_optarg ;;
1127
1128   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129     ac_prev=prefix ;;
1130   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131     prefix=$ac_optarg ;;
1132
1133   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134   | --program-pre | --program-pr | --program-p)
1135     ac_prev=program_prefix ;;
1136   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138     program_prefix=$ac_optarg ;;
1139
1140   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141   | --program-suf | --program-su | --program-s)
1142     ac_prev=program_suffix ;;
1143   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145     program_suffix=$ac_optarg ;;
1146
1147   -program-transform-name | --program-transform-name \
1148   | --program-transform-nam | --program-transform-na \
1149   | --program-transform-n | --program-transform- \
1150   | --program-transform | --program-transfor \
1151   | --program-transfo | --program-transf \
1152   | --program-trans | --program-tran \
1153   | --progr-tra | --program-tr | --program-t)
1154     ac_prev=program_transform_name ;;
1155   -program-transform-name=* | --program-transform-name=* \
1156   | --program-transform-nam=* | --program-transform-na=* \
1157   | --program-transform-n=* | --program-transform-=* \
1158   | --program-transform=* | --program-transfor=* \
1159   | --program-transfo=* | --program-transf=* \
1160   | --program-trans=* | --program-tran=* \
1161   | --progr-tra=* | --program-tr=* | --program-t=*)
1162     program_transform_name=$ac_optarg ;;
1163
1164   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165     ac_prev=pdfdir ;;
1166   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167     pdfdir=$ac_optarg ;;
1168
1169   -psdir | --psdir | --psdi | --psd | --ps)
1170     ac_prev=psdir ;;
1171   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172     psdir=$ac_optarg ;;
1173
1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175   | -silent | --silent | --silen | --sile | --sil)
1176     silent=yes ;;
1177
1178   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179     ac_prev=sbindir ;;
1180   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181   | --sbi=* | --sb=*)
1182     sbindir=$ac_optarg ;;
1183
1184   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186   | --sharedst | --shareds | --shared | --share | --shar \
1187   | --sha | --sh)
1188     ac_prev=sharedstatedir ;;
1189   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192   | --sha=* | --sh=*)
1193     sharedstatedir=$ac_optarg ;;
1194
1195   -site | --site | --sit)
1196     ac_prev=site ;;
1197   -site=* | --site=* | --sit=*)
1198     site=$ac_optarg ;;
1199
1200   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201     ac_prev=srcdir ;;
1202   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203     srcdir=$ac_optarg ;;
1204
1205   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206   | --syscon | --sysco | --sysc | --sys | --sy)
1207     ac_prev=sysconfdir ;;
1208   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210     sysconfdir=$ac_optarg ;;
1211
1212   -target | --target | --targe | --targ | --tar | --ta | --t)
1213     ac_prev=target_alias ;;
1214   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215     target_alias=$ac_optarg ;;
1216
1217   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218     verbose=yes ;;
1219
1220   -version | --version | --versio | --versi | --vers | -V)
1221     ac_init_version=: ;;
1222
1223   -with-* | --with-*)
1224     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227       as_fn_error $? "invalid package name: $ac_useropt"
1228     ac_useropt_orig=$ac_useropt
1229     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230     case $ac_user_opts in
1231       *"
1232 "with_$ac_useropt"
1233 "*) ;;
1234       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235          ac_unrecognized_sep=', ';;
1236     esac
1237     eval with_$ac_useropt=\$ac_optarg ;;
1238
1239   -without-* | --without-*)
1240     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241     # Reject names that are not valid shell variable names.
1242     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243       as_fn_error $? "invalid package name: $ac_useropt"
1244     ac_useropt_orig=$ac_useropt
1245     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246     case $ac_user_opts in
1247       *"
1248 "with_$ac_useropt"
1249 "*) ;;
1250       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251          ac_unrecognized_sep=', ';;
1252     esac
1253     eval with_$ac_useropt=no ;;
1254
1255   --x)
1256     # Obsolete; use --with-x.
1257     with_x=yes ;;
1258
1259   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260   | --x-incl | --x-inc | --x-in | --x-i)
1261     ac_prev=x_includes ;;
1262   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264     x_includes=$ac_optarg ;;
1265
1266   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268     ac_prev=x_libraries ;;
1269   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271     x_libraries=$ac_optarg ;;
1272
1273   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1275     ;;
1276
1277   *=*)
1278     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279     # Reject names that are not valid shell variable names.
1280     case $ac_envvar in #(
1281       '' | [0-9]* | *[!_$as_cr_alnum]* )
1282       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283     esac
1284     eval $ac_envvar=\$ac_optarg
1285     export $ac_envvar ;;
1286
1287   *)
1288     # FIXME: should be removed in autoconf 3.0.
1289     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1293     ;;
1294
1295   esac
1296 done
1297
1298 if test -n "$ac_prev"; then
1299   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300   as_fn_error $? "missing argument to $ac_option"
1301 fi
1302
1303 if test -n "$ac_unrecognized_opts"; then
1304   case $enable_option_checking in
1305     no) ;;
1306     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308   esac
1309 fi
1310
1311 # Check all directory arguments for consistency.
1312 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313                 datadir sysconfdir sharedstatedir localstatedir includedir \
1314                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315                 libdir localedir mandir
1316 do
1317   eval ac_val=\$$ac_var
1318   # Remove trailing slashes.
1319   case $ac_val in
1320     */ )
1321       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322       eval $ac_var=\$ac_val;;
1323   esac
1324   # Be sure to have absolute directory names.
1325   case $ac_val in
1326     [\\/$]* | ?:[\\/]* )  continue;;
1327     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328   esac
1329   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1331
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1338
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341   if test "x$build_alias" = x; then
1342     cross_compiling=maybe
1343   elif test "x$build_alias" != "x$host_alias"; then
1344     cross_compiling=yes
1345   fi
1346 fi
1347
1348 ac_tool_prefix=
1349 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1350
1351 test "$silent" = yes && exec 6>/dev/null
1352
1353
1354 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di=`ls -di .` &&
1356 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357   as_fn_error $? "working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359   as_fn_error $? "pwd does not report name of working directory"
1360
1361
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364   ac_srcdir_defaulted=yes
1365   # Try the directory containing this script, then the parent directory.
1366   ac_confdir=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368          X"$as_myself" : 'X\(//\)[^/]' \| \
1369          X"$as_myself" : 'X\(//\)$' \| \
1370          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1373             s//\1/
1374             q
1375           }
1376           /^X\(\/\/\)[^/].*/{
1377             s//\1/
1378             q
1379           }
1380           /^X\(\/\/\)$/{
1381             s//\1/
1382             q
1383           }
1384           /^X\(\/\).*/{
1385             s//\1/
1386             q
1387           }
1388           s/.*/./; q'`
1389   srcdir=$ac_confdir
1390   if test ! -r "$srcdir/$ac_unique_file"; then
1391     srcdir=..
1392   fi
1393 else
1394   ac_srcdir_defaulted=no
1395 fi
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1399 fi
1400 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1401 ac_abs_confdir=`(
1402         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1403         pwd)`
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1406   srcdir=.
1407 fi
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1411 case $srcdir in
1412 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1413 esac
1414 for ac_var in $ac_precious_vars; do
1415   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416   eval ac_env_${ac_var}_value=\$${ac_var}
1417   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1419 done
1420
1421 #
1422 # Report the --help message.
1423 #
1424 if test "$ac_init_help" = "long"; then
1425   # Omit some internal or obsolete options to make the list less imposing.
1426   # This message is too long to be a string in the A/UX 3.1 sh.
1427   cat <<_ACEOF
1428 \`configure' configures gobject-introspection 1.37.4 to adapt to many kinds of systems.
1429
1430 Usage: $0 [OPTION]... [VAR=VALUE]...
1431
1432 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433 VAR=VALUE.  See below for descriptions of some of the useful variables.
1434
1435 Defaults for the options are specified in brackets.
1436
1437 Configuration:
1438   -h, --help              display this help and exit
1439       --help=short        display options specific to this package
1440       --help=recursive    display the short help of all the included packages
1441   -V, --version           display version information and exit
1442   -q, --quiet, --silent   do not print \`checking ...' messages
1443       --cache-file=FILE   cache test results in FILE [disabled]
1444   -C, --config-cache      alias for \`--cache-file=config.cache'
1445   -n, --no-create         do not create output files
1446       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1447
1448 Installation directories:
1449   --prefix=PREFIX         install architecture-independent files in PREFIX
1450                           [$ac_default_prefix]
1451   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1452                           [PREFIX]
1453
1454 By default, \`make install' will install all the files in
1455 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1456 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457 for instance \`--prefix=\$HOME'.
1458
1459 For better control, use the options below.
1460
1461 Fine tuning of the installation directories:
1462   --bindir=DIR            user executables [EPREFIX/bin]
1463   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1464   --libexecdir=DIR        program executables [EPREFIX/libexec]
1465   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1466   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1467   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1468   --libdir=DIR            object code libraries [EPREFIX/lib]
1469   --includedir=DIR        C header files [PREFIX/include]
1470   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1471   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1472   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1473   --infodir=DIR           info documentation [DATAROOTDIR/info]
1474   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1475   --mandir=DIR            man documentation [DATAROOTDIR/man]
1476   --docdir=DIR            documentation root
1477                           [DATAROOTDIR/doc/gobject-introspection]
1478   --htmldir=DIR           html documentation [DOCDIR]
1479   --dvidir=DIR            dvi documentation [DOCDIR]
1480   --pdfdir=DIR            pdf documentation [DOCDIR]
1481   --psdir=DIR             ps documentation [DOCDIR]
1482 _ACEOF
1483
1484   cat <<\_ACEOF
1485
1486 Program names:
1487   --program-prefix=PREFIX            prepend PREFIX to installed program names
1488   --program-suffix=SUFFIX            append SUFFIX to installed program names
1489   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1490
1491 System types:
1492   --build=BUILD     configure for building on BUILD [guessed]
1493   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1495 fi
1496
1497 if test -n "$ac_init_help"; then
1498   case $ac_init_help in
1499      short | recursive ) echo "Configuration of gobject-introspection 1.37.4:";;
1500    esac
1501   cat <<\_ACEOF
1502
1503 Optional Features:
1504   --disable-option-checking  ignore unrecognized --enable/--with options
1505   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1506   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1507   --enable-silent-rules   less verbose build output (undo: "make V=1")
1508   --disable-silent-rules  verbose build output (undo: "make V=0")
1509   --disable-maintainer-mode
1510                           disable make rules and dependencies not useful (and
1511                           sometimes confusing) to the casual installer
1512   --enable-dependency-tracking
1513                           do not reject slow dependency extractors
1514   --disable-dependency-tracking
1515                           speeds up one-time build
1516   --enable-shared[=PKGS]  build shared libraries [default=yes]
1517   --enable-static[=PKGS]  build static libraries [default=yes]
1518   --enable-fast-install[=PKGS]
1519                           optimize for fast installation [default=yes]
1520   --disable-libtool-lock  avoid locking (might break parallel builds)
1521   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1522   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1523   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1524   --disable-doctool           disable g-ir-doctool
1525   --disable-Bsymbolic     avoid linking with -Bsymbolic
1526
1527 Optional Packages:
1528   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1531                           both]
1532   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1533   --with-sysroot=DIR Search for dependent libraries within DIR
1534                         (or the compiler's sysroot if not specified).
1535   --with-cairo            Use cairo [default=maybe]
1536   --with-html-dir=PATH    path to installed docs
1537   --with-glib-src=PATH    Source directory for glib - needed to add docs to gir
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   CPP         C preprocessor
1548   PKG_CONFIG  path to pkg-config utility
1549   PKG_CONFIG_PATH
1550               directories to add to pkg-config's search path
1551   PKG_CONFIG_LIBDIR
1552               path overriding pkg-config's built-in search path
1553   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1554   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1555   GOBJECT_CFLAGS
1556               C compiler flags for GOBJECT, overriding pkg-config
1557   GOBJECT_LIBS
1558               linker flags for GOBJECT, overriding pkg-config
1559   GMODULE_CFLAGS
1560               C compiler flags for GMODULE, overriding pkg-config
1561   GMODULE_LIBS
1562               linker flags for GMODULE, overriding pkg-config
1563   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1564   GIO_LIBS    linker flags for GIO, overriding pkg-config
1565   GIO_UNIX_CFLAGS
1566               C compiler flags for GIO_UNIX, overriding pkg-config
1567   GIO_UNIX_LIBS
1568               linker flags for GIO_UNIX, overriding pkg-config
1569   CAIRO_CFLAGS
1570               C compiler flags for CAIRO, overriding pkg-config
1571   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1572   SCANNER_CFLAGS
1573               C compiler flags for SCANNER, overriding pkg-config
1574   SCANNER_LIBS
1575               linker flags for SCANNER, overriding pkg-config
1576   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1577   FFI_LIBS    linker flags for FFI, overriding pkg-config
1578   GIREPO_CFLAGS
1579               C compiler flags for GIREPO, overriding pkg-config
1580   GIREPO_LIBS linker flags for GIREPO, overriding pkg-config
1581   GTKDOC_DEPS_CFLAGS
1582               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1583   GTKDOC_DEPS_LIBS
1584               linker flags for GTKDOC_DEPS, overriding pkg-config
1585   PYTHON      the Python interpreter
1586
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1589
1590 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>.
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596   # If there are subdirs, report their specific --help.
1597   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598     test -d "$ac_dir" ||
1599       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600       continue
1601     ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607   # A ".." for each directory in $ac_dir_suffix.
1608   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609   case $ac_top_builddir_sub in
1610   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612   esac ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620   .)  # We are building in place.
1621     ac_srcdir=.
1622     ac_top_srcdir=$ac_top_builddir_sub
1623     ac_abs_top_srcdir=$ac_pwd ;;
1624   [\\/]* | ?:[\\/]* )  # Absolute name.
1625     ac_srcdir=$srcdir$ac_dir_suffix;
1626     ac_top_srcdir=$srcdir
1627     ac_abs_top_srcdir=$srcdir ;;
1628   *) # Relative name.
1629     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630     ac_top_srcdir=$ac_top_build_prefix$srcdir
1631     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632 esac
1633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635     cd "$ac_dir" || { ac_status=$?; continue; }
1636     # Check for guested configure.
1637     if test -f "$ac_srcdir/configure.gnu"; then
1638       echo &&
1639       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640     elif test -f "$ac_srcdir/configure"; then
1641       echo &&
1642       $SHELL "$ac_srcdir/configure" --help=recursive
1643     else
1644       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645     fi || ac_status=$?
1646     cd "$ac_pwd" || { ac_status=$?; break; }
1647   done
1648 fi
1649
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652   cat <<\_ACEOF
1653 gobject-introspection configure 1.37.4
1654 generated by GNU Autoconf 2.69
1655
1656 Copyright (C) 2012 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1659 _ACEOF
1660   exit
1661 fi
1662
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1666
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile ()
1671 {
1672   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673   rm -f conftest.$ac_objext
1674   if { { ac_try="$ac_compile"
1675 case "(($ac_try" in
1676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677   *) ac_try_echo=$ac_try;;
1678 esac
1679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680 $as_echo "$ac_try_echo"; } >&5
1681   (eval "$ac_compile") 2>conftest.err
1682   ac_status=$?
1683   if test -s conftest.err; then
1684     grep -v '^ *+' conftest.err >conftest.er1
1685     cat conftest.er1 >&5
1686     mv -f conftest.er1 conftest.err
1687   fi
1688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689   test $ac_status = 0; } && {
1690          test -z "$ac_c_werror_flag" ||
1691          test ! -s conftest.err
1692        } && test -s conftest.$ac_objext; then :
1693   ac_retval=0
1694 else
1695   $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698         ac_retval=1
1699 fi
1700   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701   as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_compile
1704
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_fn_c_try_link ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   rm -f conftest.$ac_objext conftest$ac_exeext
1712   if { { ac_try="$ac_link"
1713 case "(($ac_try" in
1714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715   *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719   (eval "$ac_link") 2>conftest.err
1720   ac_status=$?
1721   if test -s conftest.err; then
1722     grep -v '^ *+' conftest.err >conftest.er1
1723     cat conftest.er1 >&5
1724     mv -f conftest.er1 conftest.err
1725   fi
1726   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727   test $ac_status = 0; } && {
1728          test -z "$ac_c_werror_flag" ||
1729          test ! -s conftest.err
1730        } && test -s conftest$ac_exeext && {
1731          test "$cross_compiling" = yes ||
1732          test -x conftest$ac_exeext
1733        }; then :
1734   ac_retval=0
1735 else
1736   $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739         ac_retval=1
1740 fi
1741   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743   # interfere with the next link command; also delete a directory that is
1744   # left behind by Apple's compiler.  We do this before executing the actions.
1745   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747   as_fn_set_status $ac_retval
1748
1749 } # ac_fn_c_try_link
1750
1751 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752 # -------------------------------------------------------
1753 # Tests whether HEADER exists and can be compiled using the include files in
1754 # INCLUDES, setting the cache variable VAR accordingly.
1755 ac_fn_c_check_header_compile ()
1756 {
1757   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759 $as_echo_n "checking for $2... " >&6; }
1760 if eval \${$3+:} false; then :
1761   $as_echo_n "(cached) " >&6
1762 else
1763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h.  */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769   eval "$3=yes"
1770 else
1771   eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval ac_res=\$$3
1776                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777 $as_echo "$ac_res" >&6; }
1778   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779
1780 } # ac_fn_c_check_header_compile
1781
1782 # ac_fn_c_try_cpp LINENO
1783 # ----------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_cpp ()
1786 {
1787   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788   if { { ac_try="$ac_cpp conftest.$ac_ext"
1789 case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796   ac_status=$?
1797   if test -s conftest.err; then
1798     grep -v '^ *+' conftest.err >conftest.er1
1799     cat conftest.er1 >&5
1800     mv -f conftest.er1 conftest.err
1801   fi
1802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803   test $ac_status = 0; } > conftest.i && {
1804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805          test ! -s conftest.err
1806        }; then :
1807   ac_retval=0
1808 else
1809   $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812     ac_retval=1
1813 fi
1814   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815   as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_cpp
1818
1819 # ac_fn_c_try_run LINENO
1820 # ----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822 # that executables *can* be run.
1823 ac_fn_c_try_run ()
1824 {
1825   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826   if { { ac_try="$ac_link"
1827 case "(($ac_try" in
1828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829   *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833   (eval "$ac_link") 2>&5
1834   ac_status=$?
1835   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837   { { case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_try") 2>&5
1844   ac_status=$?
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; }; }; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: program exited with status $ac_status" >&5
1850        $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853        ac_retval=$ac_status
1854 fi
1855   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857   as_fn_set_status $ac_retval
1858
1859 } # ac_fn_c_try_run
1860
1861 # ac_fn_c_check_func LINENO FUNC VAR
1862 # ----------------------------------
1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1864 ac_fn_c_check_func ()
1865 {
1866   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if eval \${$3+:} false; then :
1870   $as_echo_n "(cached) " >&6
1871 else
1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1874 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1876 #define $2 innocuous_$2
1877
1878 /* System header to define __stub macros and hopefully few prototypes,
1879     which can conflict with char $2 (); below.
1880     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881     <limits.h> exists even on freestanding compilers.  */
1882
1883 #ifdef __STDC__
1884 # include <limits.h>
1885 #else
1886 # include <assert.h>
1887 #endif
1888
1889 #undef $2
1890
1891 /* Override any GCC internal prototype to avoid an error.
1892    Use char because int might match the return type of a GCC
1893    builtin and then its argument prototype would still apply.  */
1894 #ifdef __cplusplus
1895 extern "C"
1896 #endif
1897 char $2 ();
1898 /* The GNU C library defines this for functions which it implements
1899     to always fail with ENOSYS.  Some functions are actually named
1900     something starting with __ and the normal name is an alias.  */
1901 #if defined __stub_$2 || defined __stub___$2
1902 choke me
1903 #endif
1904
1905 int
1906 main ()
1907 {
1908 return $2 ();
1909   ;
1910   return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_link "$LINENO"; then :
1914   eval "$3=yes"
1915 else
1916   eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext \
1919     conftest$ac_exeext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925
1926 } # ac_fn_c_check_func
1927
1928 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1929 # --------------------------------------------
1930 # Tries to find the compile-time value of EXPR in a program that includes
1931 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1932 # computed
1933 ac_fn_c_compute_int ()
1934 {
1935   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936   if test "$cross_compiling" = yes; then
1937     # Depending upon the size, compute the lo and hi bounds.
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h.  */
1940 $4
1941 int
1942 main ()
1943 {
1944 static int test_array [1 - 2 * !(($2) >= 0)];
1945 test_array [0] = 0;
1946 return test_array [0];
1947
1948   ;
1949   return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953   ac_lo=0 ac_mid=0
1954   while :; do
1955     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h.  */
1957 $4
1958 int
1959 main ()
1960 {
1961 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1962 test_array [0] = 0;
1963 return test_array [0];
1964
1965   ;
1966   return 0;
1967 }
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970   ac_hi=$ac_mid; break
1971 else
1972   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1973                         if test $ac_lo -le $ac_mid; then
1974                           ac_lo= ac_hi=
1975                           break
1976                         fi
1977                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980   done
1981 else
1982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h.  */
1984 $4
1985 int
1986 main ()
1987 {
1988 static int test_array [1 - 2 * !(($2) < 0)];
1989 test_array [0] = 0;
1990 return test_array [0];
1991
1992   ;
1993   return 0;
1994 }
1995 _ACEOF
1996 if ac_fn_c_try_compile "$LINENO"; then :
1997   ac_hi=-1 ac_mid=-1
1998   while :; do
1999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000 /* end confdefs.h.  */
2001 $4
2002 int
2003 main ()
2004 {
2005 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2006 test_array [0] = 0;
2007 return test_array [0];
2008
2009   ;
2010   return 0;
2011 }
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014   ac_lo=$ac_mid; break
2015 else
2016   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2017                         if test $ac_mid -le $ac_hi; then
2018                           ac_lo= ac_hi=
2019                           break
2020                         fi
2021                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024   done
2025 else
2026   ac_lo= ac_hi=
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 fi
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 # Binary search between lo and hi bounds.
2032 while test "x$ac_lo" != "x$ac_hi"; do
2033   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 int
2038 main ()
2039 {
2040 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2041 test_array [0] = 0;
2042 return test_array [0];
2043
2044   ;
2045   return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049   ac_hi=$ac_mid
2050 else
2051   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054 done
2055 case $ac_lo in #((
2056 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2057 '') ac_retval=1 ;;
2058 esac
2059   else
2060     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h.  */
2062 $4
2063 static long int longval () { return $2; }
2064 static unsigned long int ulongval () { return $2; }
2065 #include <stdio.h>
2066 #include <stdlib.h>
2067 int
2068 main ()
2069 {
2070
2071   FILE *f = fopen ("conftest.val", "w");
2072   if (! f)
2073     return 1;
2074   if (($2) < 0)
2075     {
2076       long int i = longval ();
2077       if (i != ($2))
2078         return 1;
2079       fprintf (f, "%ld", i);
2080     }
2081   else
2082     {
2083       unsigned long int i = ulongval ();
2084       if (i != ($2))
2085         return 1;
2086       fprintf (f, "%lu", i);
2087     }
2088   /* Do not output a trailing newline, as this causes \r\n confusion
2089      on some platforms.  */
2090   return ferror (f) || fclose (f) != 0;
2091
2092   ;
2093   return 0;
2094 }
2095 _ACEOF
2096 if ac_fn_c_try_run "$LINENO"; then :
2097   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2098 else
2099   ac_retval=1
2100 fi
2101 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2102   conftest.$ac_objext conftest.beam conftest.$ac_ext
2103 rm -f conftest.val
2104
2105   fi
2106   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2107   as_fn_set_status $ac_retval
2108
2109 } # ac_fn_c_compute_int
2110
2111 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2112 # -------------------------------------------------------
2113 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2114 # the include files in INCLUDES and setting the cache variable VAR
2115 # accordingly.
2116 ac_fn_c_check_header_mongrel ()
2117 {
2118   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119   if eval \${$3+:} false; then :
2120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2121 $as_echo_n "checking for $2... " >&6; }
2122 if eval \${$3+:} false; then :
2123   $as_echo_n "(cached) " >&6
2124 fi
2125 eval ac_res=\$$3
2126                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 else
2129   # Is the header compilable?
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2131 $as_echo_n "checking $2 usability... " >&6; }
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h.  */
2134 $4
2135 #include <$2>
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138   ac_header_compiler=yes
2139 else
2140   ac_header_compiler=no
2141 fi
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2144 $as_echo "$ac_header_compiler" >&6; }
2145
2146 # Is the header present?
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2148 $as_echo_n "checking $2 presence... " >&6; }
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 #include <$2>
2152 _ACEOF
2153 if ac_fn_c_try_cpp "$LINENO"; then :
2154   ac_header_preproc=yes
2155 else
2156   ac_header_preproc=no
2157 fi
2158 rm -f conftest.err conftest.i conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2160 $as_echo "$ac_header_preproc" >&6; }
2161
2162 # So?  What about this header?
2163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2164   yes:no: )
2165     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2166 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2167     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2168 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2169     ;;
2170   no:yes:* )
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2172 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2173     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2174 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2175     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2176 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2178 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181 ( $as_echo "## ------------------------------------------------------------------------------------------- ##
2182 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection ##
2183 ## ------------------------------------------------------------------------------------------- ##"
2184      ) | sed "s/^/$as_me: WARNING:     /" >&2
2185     ;;
2186 esac
2187   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if eval \${$3+:} false; then :
2190   $as_echo_n "(cached) " >&6
2191 else
2192   eval "$3=\$ac_header_compiler"
2193 fi
2194 eval ac_res=\$$3
2195                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 fi
2198   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199
2200 } # ac_fn_c_check_header_mongrel
2201 cat >config.log <<_ACEOF
2202 This file contains any messages produced by compilers while
2203 running configure, to aid debugging if configure makes a mistake.
2204
2205 It was created by gobject-introspection $as_me 1.37.4, which was
2206 generated by GNU Autoconf 2.69.  Invocation command line was
2207
2208   $ $0 $@
2209
2210 _ACEOF
2211 exec 5>>config.log
2212 {
2213 cat <<_ASUNAME
2214 ## --------- ##
2215 ## Platform. ##
2216 ## --------- ##
2217
2218 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2219 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2220 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2221 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2222 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2223
2224 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2225 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2226
2227 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2228 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2229 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2230 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2231 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2232 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2233 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2234
2235 _ASUNAME
2236
2237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238 for as_dir in $PATH
2239 do
2240   IFS=$as_save_IFS
2241   test -z "$as_dir" && as_dir=.
2242     $as_echo "PATH: $as_dir"
2243   done
2244 IFS=$as_save_IFS
2245
2246 } >&5
2247
2248 cat >&5 <<_ACEOF
2249
2250
2251 ## ----------- ##
2252 ## Core tests. ##
2253 ## ----------- ##
2254
2255 _ACEOF
2256
2257
2258 # Keep a trace of the command line.
2259 # Strip out --no-create and --no-recursion so they do not pile up.
2260 # Strip out --silent because we don't want to record it for future runs.
2261 # Also quote any args containing shell meta-characters.
2262 # Make two passes to allow for proper duplicate-argument suppression.
2263 ac_configure_args=
2264 ac_configure_args0=
2265 ac_configure_args1=
2266 ac_must_keep_next=false
2267 for ac_pass in 1 2
2268 do
2269   for ac_arg
2270   do
2271     case $ac_arg in
2272     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2273     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2274     | -silent | --silent | --silen | --sile | --sil)
2275       continue ;;
2276     *\'*)
2277       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2278     esac
2279     case $ac_pass in
2280     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2281     2)
2282       as_fn_append ac_configure_args1 " '$ac_arg'"
2283       if test $ac_must_keep_next = true; then
2284         ac_must_keep_next=false # Got value, back to normal.
2285       else
2286         case $ac_arg in
2287           *=* | --config-cache | -C | -disable-* | --disable-* \
2288           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2289           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2290           | -with-* | --with-* | -without-* | --without-* | --x)
2291             case "$ac_configure_args0 " in
2292               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2293             esac
2294             ;;
2295           -* ) ac_must_keep_next=true ;;
2296         esac
2297       fi
2298       as_fn_append ac_configure_args " '$ac_arg'"
2299       ;;
2300     esac
2301   done
2302 done
2303 { ac_configure_args0=; unset ac_configure_args0;}
2304 { ac_configure_args1=; unset ac_configure_args1;}
2305
2306 # When interrupted or exit'd, cleanup temporary files, and complete
2307 # config.log.  We remove comments because anyway the quotes in there
2308 # would cause problems or look ugly.
2309 # WARNING: Use '\'' to represent an apostrophe within the trap.
2310 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2311 trap 'exit_status=$?
2312   # Save into config.log some information that might help in debugging.
2313   {
2314     echo
2315
2316     $as_echo "## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##"
2319     echo
2320     # The following way of writing the cache mishandles newlines in values,
2321 (
2322   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2323     eval ac_val=\$$ac_var
2324     case $ac_val in #(
2325     *${as_nl}*)
2326       case $ac_var in #(
2327       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2328 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2329       esac
2330       case $ac_var in #(
2331       _ | IFS | as_nl) ;; #(
2332       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2333       *) { eval $ac_var=; unset $ac_var;} ;;
2334       esac ;;
2335     esac
2336   done
2337   (set) 2>&1 |
2338     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2339     *${as_nl}ac_space=\ *)
2340       sed -n \
2341         "s/'\''/'\''\\\\'\'''\''/g;
2342           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2343       ;; #(
2344     *)
2345       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2346       ;;
2347     esac |
2348     sort
2349 )
2350     echo
2351
2352     $as_echo "## ----------------- ##
2353 ## Output variables. ##
2354 ## ----------------- ##"
2355     echo
2356     for ac_var in $ac_subst_vars
2357     do
2358       eval ac_val=\$$ac_var
2359       case $ac_val in
2360       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2361       esac
2362       $as_echo "$ac_var='\''$ac_val'\''"
2363     done | sort
2364     echo
2365
2366     if test -n "$ac_subst_files"; then
2367       $as_echo "## ------------------- ##
2368 ## File substitutions. ##
2369 ## ------------------- ##"
2370       echo
2371       for ac_var in $ac_subst_files
2372       do
2373         eval ac_val=\$$ac_var
2374         case $ac_val in
2375         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2376         esac
2377         $as_echo "$ac_var='\''$ac_val'\''"
2378       done | sort
2379       echo
2380     fi
2381
2382     if test -s confdefs.h; then
2383       $as_echo "## ----------- ##
2384 ## confdefs.h. ##
2385 ## ----------- ##"
2386       echo
2387       cat confdefs.h
2388       echo
2389     fi
2390     test "$ac_signal" != 0 &&
2391       $as_echo "$as_me: caught signal $ac_signal"
2392     $as_echo "$as_me: exit $exit_status"
2393   } >&5
2394   rm -f core *.core core.conftest.* &&
2395     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2396     exit $exit_status
2397 ' 0
2398 for ac_signal in 1 2 13 15; do
2399   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2400 done
2401 ac_signal=0
2402
2403 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2404 rm -f -r conftest* confdefs.h
2405
2406 $as_echo "/* confdefs.h */" > confdefs.h
2407
2408 # Predefined preprocessor variables.
2409
2410 cat >>confdefs.h <<_ACEOF
2411 #define PACKAGE_NAME "$PACKAGE_NAME"
2412 _ACEOF
2413
2414 cat >>confdefs.h <<_ACEOF
2415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2416 _ACEOF
2417
2418 cat >>confdefs.h <<_ACEOF
2419 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2420 _ACEOF
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_STRING "$PACKAGE_STRING"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_URL "$PACKAGE_URL"
2432 _ACEOF
2433
2434
2435 # Let the site file select an alternate cache file if it wants to.
2436 # Prefer an explicitly selected file to automatically selected ones.
2437 ac_site_file1=NONE
2438 ac_site_file2=NONE
2439 if test -n "$CONFIG_SITE"; then
2440   # We do not want a PATH search for config.site.
2441   case $CONFIG_SITE in #((
2442     -*)  ac_site_file1=./$CONFIG_SITE;;
2443     */*) ac_site_file1=$CONFIG_SITE;;
2444     *)   ac_site_file1=./$CONFIG_SITE;;
2445   esac
2446 elif test "x$prefix" != xNONE; then
2447   ac_site_file1=$prefix/share/config.site
2448   ac_site_file2=$prefix/etc/config.site
2449 else
2450   ac_site_file1=$ac_default_prefix/share/config.site
2451   ac_site_file2=$ac_default_prefix/etc/config.site
2452 fi
2453 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2454 do
2455   test "x$ac_site_file" = xNONE && continue
2456   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2457     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2458 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2459     sed 's/^/| /' "$ac_site_file" >&5
2460     . "$ac_site_file" \
2461       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2463 as_fn_error $? "failed to load site script $ac_site_file
2464 See \`config.log' for more details" "$LINENO" 5; }
2465   fi
2466 done
2467
2468 if test -r "$cache_file"; then
2469   # Some versions of bash will fail to source /dev/null (special files
2470   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2471   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2472     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2473 $as_echo "$as_me: loading cache $cache_file" >&6;}
2474     case $cache_file in
2475       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2476       *)                      . "./$cache_file";;
2477     esac
2478   fi
2479 else
2480   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2481 $as_echo "$as_me: creating cache $cache_file" >&6;}
2482   >$cache_file
2483 fi
2484
2485 # Check that the precious variables saved in the cache have kept the same
2486 # value.
2487 ac_cache_corrupted=false
2488 for ac_var in $ac_precious_vars; do
2489   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2490   eval ac_new_set=\$ac_env_${ac_var}_set
2491   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2492   eval ac_new_val=\$ac_env_${ac_var}_value
2493   case $ac_old_set,$ac_new_set in
2494     set,)
2495       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2496 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2497       ac_cache_corrupted=: ;;
2498     ,set)
2499       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2500 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2501       ac_cache_corrupted=: ;;
2502     ,);;
2503     *)
2504       if test "x$ac_old_val" != "x$ac_new_val"; then
2505         # differences in whitespace do not lead to failure.
2506         ac_old_val_w=`echo x $ac_old_val`
2507         ac_new_val_w=`echo x $ac_new_val`
2508         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2509           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2510 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2511           ac_cache_corrupted=:
2512         else
2513           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2514 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2515           eval $ac_var=\$ac_old_val
2516         fi
2517         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2518 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2519         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2520 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2521       fi;;
2522   esac
2523   # Pass precious variables to config.status.
2524   if test "$ac_new_set" = set; then
2525     case $ac_new_val in
2526     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2527     *) ac_arg=$ac_var=$ac_new_val ;;
2528     esac
2529     case " $ac_configure_args " in
2530       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2531       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2532     esac
2533   fi
2534 done
2535 if $ac_cache_corrupted; then
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2539 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2540   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2541 fi
2542 ## -------------------- ##
2543 ## Main body of script. ##
2544 ## -------------------- ##
2545
2546 ac_ext=c
2547 ac_cpp='$CPP $CPPFLAGS'
2548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2551
2552
2553
2554 ac_config_headers="$ac_config_headers config.h"
2555
2556
2557 ac_aux_dir=
2558 for ac_dir in build-aux "$srcdir"/build-aux; do
2559   if test -f "$ac_dir/install-sh"; then
2560     ac_aux_dir=$ac_dir
2561     ac_install_sh="$ac_aux_dir/install-sh -c"
2562     break
2563   elif test -f "$ac_dir/install.sh"; then
2564     ac_aux_dir=$ac_dir
2565     ac_install_sh="$ac_aux_dir/install.sh -c"
2566     break
2567   elif test -f "$ac_dir/shtool"; then
2568     ac_aux_dir=$ac_dir
2569     ac_install_sh="$ac_aux_dir/shtool install -c"
2570     break
2571   fi
2572 done
2573 if test -z "$ac_aux_dir"; then
2574   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2575 fi
2576
2577 # These three variables are undocumented and unsupported,
2578 # and are intended to be withdrawn in a future Autoconf release.
2579 # They can cause serious problems if a builder's source tree is in a directory
2580 # whose full name contains unusual characters.
2581 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2582 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2583 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2584
2585
2586
2587 am__api_version='1.13'
2588
2589 # Find a good install program.  We prefer a C program (faster),
2590 # so one script is as good as another.  But avoid the broken or
2591 # incompatible versions:
2592 # SysV /etc/install, /usr/sbin/install
2593 # SunOS /usr/etc/install
2594 # IRIX /sbin/install
2595 # AIX /bin/install
2596 # AmigaOS /C/install, which installs bootblocks on floppy discs
2597 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2600 # OS/2's system install, which has a completely different semantic
2601 # ./install, which can be erroneously created by make from ./install.sh.
2602 # Reject install programs that cannot install multiple files.
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2604 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2605 if test -z "$INSTALL"; then
2606 if ${ac_cv_path_install+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2610 for as_dir in $PATH
2611 do
2612   IFS=$as_save_IFS
2613   test -z "$as_dir" && as_dir=.
2614     # Account for people who put trailing slashes in PATH elements.
2615 case $as_dir/ in #((
2616   ./ | .// | /[cC]/* | \
2617   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2618   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2619   /usr/ucb/* ) ;;
2620   *)
2621     # OSF1 and SCO ODT 3.0 have their own names for install.
2622     # Don't use installbsd from OSF since it installs stuff as root
2623     # by default.
2624     for ac_prog in ginstall scoinst install; do
2625       for ac_exec_ext in '' $ac_executable_extensions; do
2626         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2627           if test $ac_prog = install &&
2628             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2629             # AIX install.  It has an incompatible calling convention.
2630             :
2631           elif test $ac_prog = install &&
2632             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2633             # program-specific install script used by HP pwplus--don't use.
2634             :
2635           else
2636             rm -rf conftest.one conftest.two conftest.dir
2637             echo one > conftest.one
2638             echo two > conftest.two
2639             mkdir conftest.dir
2640             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2641               test -s conftest.one && test -s conftest.two &&
2642               test -s conftest.dir/conftest.one &&
2643               test -s conftest.dir/conftest.two
2644             then
2645               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2646               break 3
2647             fi
2648           fi
2649         fi
2650       done
2651     done
2652     ;;
2653 esac
2654
2655   done
2656 IFS=$as_save_IFS
2657
2658 rm -rf conftest.one conftest.two conftest.dir
2659
2660 fi
2661   if test "${ac_cv_path_install+set}" = set; then
2662     INSTALL=$ac_cv_path_install
2663   else
2664     # As a last resort, use the slow shell script.  Don't cache a
2665     # value for INSTALL within a source directory, because that will
2666     # break other packages using the cache if that directory is
2667     # removed, or if the value is a relative name.
2668     INSTALL=$ac_install_sh
2669   fi
2670 fi
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2672 $as_echo "$INSTALL" >&6; }
2673
2674 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2675 # It thinks the first close brace ends the variable substitution.
2676 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2677
2678 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2679
2680 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2681
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2683 $as_echo_n "checking whether build environment is sane... " >&6; }
2684 # Reject unsafe characters in $srcdir or the absolute working directory
2685 # name.  Accept space and tab only in the latter.
2686 am_lf='
2687 '
2688 case `pwd` in
2689   *[\\\"\#\$\&\'\`$am_lf]*)
2690     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2691 esac
2692 case $srcdir in
2693   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2694     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2695 esac
2696
2697 # Do 'set' in a subshell so we don't clobber the current shell's
2698 # arguments.  Must try -L first in case configure is actually a
2699 # symlink; some systems play weird games with the mod time of symlinks
2700 # (eg FreeBSD returns the mod time of the symlink's containing
2701 # directory).
2702 if (
2703    am_has_slept=no
2704    for am_try in 1 2; do
2705      echo "timestamp, slept: $am_has_slept" > conftest.file
2706      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2707      if test "$*" = "X"; then
2708         # -L didn't work.
2709         set X `ls -t "$srcdir/configure" conftest.file`
2710      fi
2711      if test "$*" != "X $srcdir/configure conftest.file" \
2712         && test "$*" != "X conftest.file $srcdir/configure"; then
2713
2714         # If neither matched, then we have a broken ls.  This can happen
2715         # if, for instance, CONFIG_SHELL is bash and it inherits a
2716         # broken ls alias from the environment.  This has actually
2717         # happened.  Such a system could not be considered "sane".
2718         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2719   alias in your environment" "$LINENO" 5
2720      fi
2721      if test "$2" = conftest.file || test $am_try -eq 2; then
2722        break
2723      fi
2724      # Just in case.
2725      sleep 1
2726      am_has_slept=yes
2727    done
2728    test "$2" = conftest.file
2729    )
2730 then
2731    # Ok.
2732    :
2733 else
2734    as_fn_error $? "newly created file is older than distributed files!
2735 Check your system clock" "$LINENO" 5
2736 fi
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2738 $as_echo "yes" >&6; }
2739 # If we didn't sleep, we still need to ensure time stamps of config.status and
2740 # generated files are strictly newer.
2741 am_sleep_pid=
2742 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2743   ( sleep 1 ) &
2744   am_sleep_pid=$!
2745 fi
2746
2747 rm -f conftest.file
2748
2749 test "$program_prefix" != NONE &&
2750   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2751 # Use a double $ so make ignores it.
2752 test "$program_suffix" != NONE &&
2753   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2754 # Double any \ or $.
2755 # By default was `s,x,x', remove it if useless.
2756 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2757 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2758
2759 # expand $ac_aux_dir to an absolute path
2760 am_aux_dir=`cd $ac_aux_dir && pwd`
2761
2762 if test x"${MISSING+set}" != xset; then
2763   case $am_aux_dir in
2764   *\ * | *\     *)
2765     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2766   *)
2767     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2768   esac
2769 fi
2770 # Use eval to expand $SHELL
2771 if eval "$MISSING --is-lightweight"; then
2772   am_missing_run="$MISSING "
2773 else
2774   am_missing_run=
2775   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2776 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2777 fi
2778
2779 if test x"${install_sh}" != xset; then
2780   case $am_aux_dir in
2781   *\ * | *\     *)
2782     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2783   *)
2784     install_sh="\${SHELL} $am_aux_dir/install-sh"
2785   esac
2786 fi
2787
2788 # Installed binaries are usually stripped using 'strip' when the user
2789 # run "make install-strip".  However 'strip' might not be the right
2790 # tool to use in cross-compilation environments, therefore Automake
2791 # will honor the 'STRIP' environment variable to overrule this program.
2792 if test "$cross_compiling" != no; then
2793   if test -n "$ac_tool_prefix"; then
2794   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}strip; ac_word=$2
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 $as_echo_n "checking for $ac_word... " >&6; }
2798 if ${ac_cv_prog_STRIP+:} false; then :
2799   $as_echo_n "(cached) " >&6
2800 else
2801   if test -n "$STRIP"; then
2802   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2803 else
2804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2805 for as_dir in $PATH
2806 do
2807   IFS=$as_save_IFS
2808   test -z "$as_dir" && as_dir=.
2809     for ac_exec_ext in '' $ac_executable_extensions; do
2810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2811     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2813     break 2
2814   fi
2815 done
2816   done
2817 IFS=$as_save_IFS
2818
2819 fi
2820 fi
2821 STRIP=$ac_cv_prog_STRIP
2822 if test -n "$STRIP"; then
2823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2824 $as_echo "$STRIP" >&6; }
2825 else
2826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2827 $as_echo "no" >&6; }
2828 fi
2829
2830
2831 fi
2832 if test -z "$ac_cv_prog_STRIP"; then
2833   ac_ct_STRIP=$STRIP
2834   # Extract the first word of "strip", so it can be a program name with args.
2835 set dummy strip; ac_word=$2
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2837 $as_echo_n "checking for $ac_word... " >&6; }
2838 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2839   $as_echo_n "(cached) " >&6
2840 else
2841   if test -n "$ac_ct_STRIP"; then
2842   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2843 else
2844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2845 for as_dir in $PATH
2846 do
2847   IFS=$as_save_IFS
2848   test -z "$as_dir" && as_dir=.
2849     for ac_exec_ext in '' $ac_executable_extensions; do
2850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2851     ac_cv_prog_ac_ct_STRIP="strip"
2852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2853     break 2
2854   fi
2855 done
2856   done
2857 IFS=$as_save_IFS
2858
2859 fi
2860 fi
2861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2862 if test -n "$ac_ct_STRIP"; then
2863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2864 $as_echo "$ac_ct_STRIP" >&6; }
2865 else
2866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2867 $as_echo "no" >&6; }
2868 fi
2869
2870   if test "x$ac_ct_STRIP" = x; then
2871     STRIP=":"
2872   else
2873     case $cross_compiling:$ac_tool_warned in
2874 yes:)
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2877 ac_tool_warned=yes ;;
2878 esac
2879     STRIP=$ac_ct_STRIP
2880   fi
2881 else
2882   STRIP="$ac_cv_prog_STRIP"
2883 fi
2884
2885 fi
2886 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2887
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2889 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2890 if test -z "$MKDIR_P"; then
2891   if ${ac_cv_path_mkdir+:} false; then :
2892   $as_echo_n "(cached) " >&6
2893 else
2894   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2896 do
2897   IFS=$as_save_IFS
2898   test -z "$as_dir" && as_dir=.
2899     for ac_prog in mkdir gmkdir; do
2900          for ac_exec_ext in '' $ac_executable_extensions; do
2901            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2902            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2903              'mkdir (GNU coreutils) '* | \
2904              'mkdir (coreutils) '* | \
2905              'mkdir (fileutils) '4.1*)
2906                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2907                break 3;;
2908            esac
2909          done
2910        done
2911   done
2912 IFS=$as_save_IFS
2913
2914 fi
2915
2916   test -d ./--version && rmdir ./--version
2917   if test "${ac_cv_path_mkdir+set}" = set; then
2918     MKDIR_P="$ac_cv_path_mkdir -p"
2919   else
2920     # As a last resort, use the slow shell script.  Don't cache a
2921     # value for MKDIR_P within a source directory, because that will
2922     # break other packages using the cache if that directory is
2923     # removed, or if the value is a relative name.
2924     MKDIR_P="$ac_install_sh -d"
2925   fi
2926 fi
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2928 $as_echo "$MKDIR_P" >&6; }
2929
2930 for ac_prog in gawk mawk nawk awk
2931 do
2932   # Extract the first word of "$ac_prog", so it can be a program name with args.
2933 set dummy $ac_prog; ac_word=$2
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2935 $as_echo_n "checking for $ac_word... " >&6; }
2936 if ${ac_cv_prog_AWK+:} false; then :
2937   $as_echo_n "(cached) " >&6
2938 else
2939   if test -n "$AWK"; then
2940   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2941 else
2942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2943 for as_dir in $PATH
2944 do
2945   IFS=$as_save_IFS
2946   test -z "$as_dir" && as_dir=.
2947     for ac_exec_ext in '' $ac_executable_extensions; do
2948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2949     ac_cv_prog_AWK="$ac_prog"
2950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2951     break 2
2952   fi
2953 done
2954   done
2955 IFS=$as_save_IFS
2956
2957 fi
2958 fi
2959 AWK=$ac_cv_prog_AWK
2960 if test -n "$AWK"; then
2961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2962 $as_echo "$AWK" >&6; }
2963 else
2964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2965 $as_echo "no" >&6; }
2966 fi
2967
2968
2969   test -n "$AWK" && break
2970 done
2971
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2973 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2974 set x ${MAKE-make}
2975 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2976 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2977   $as_echo_n "(cached) " >&6
2978 else
2979   cat >conftest.make <<\_ACEOF
2980 SHELL = /bin/sh
2981 all:
2982         @echo '@@@%%%=$(MAKE)=@@@%%%'
2983 _ACEOF
2984 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2985 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2986   *@@@%%%=?*=@@@%%%*)
2987     eval ac_cv_prog_make_${ac_make}_set=yes;;
2988   *)
2989     eval ac_cv_prog_make_${ac_make}_set=no;;
2990 esac
2991 rm -f conftest.make
2992 fi
2993 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2995 $as_echo "yes" >&6; }
2996   SET_MAKE=
2997 else
2998   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2999 $as_echo "no" >&6; }
3000   SET_MAKE="MAKE=${MAKE-make}"
3001 fi
3002
3003 rm -rf .tst 2>/dev/null
3004 mkdir .tst 2>/dev/null
3005 if test -d .tst; then
3006   am__leading_dot=.
3007 else
3008   am__leading_dot=_
3009 fi
3010 rmdir .tst 2>/dev/null
3011
3012 # Check whether --enable-silent-rules was given.
3013 if test "${enable_silent_rules+set}" = set; then :
3014   enableval=$enable_silent_rules;
3015 fi
3016
3017 case $enable_silent_rules in # (((
3018   yes) AM_DEFAULT_VERBOSITY=0;;
3019    no) AM_DEFAULT_VERBOSITY=1;;
3020     *) AM_DEFAULT_VERBOSITY=1;;
3021 esac
3022 am_make=${MAKE-make}
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3024 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3025 if ${am_cv_make_support_nested_variables+:} false; then :
3026   $as_echo_n "(cached) " >&6
3027 else
3028   if $as_echo 'TRUE=$(BAR$(V))
3029 BAR0=false
3030 BAR1=true
3031 V=1
3032 am__doit:
3033         @$(TRUE)
3034 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3035   am_cv_make_support_nested_variables=yes
3036 else
3037   am_cv_make_support_nested_variables=no
3038 fi
3039 fi
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3041 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3042 if test $am_cv_make_support_nested_variables = yes; then
3043     AM_V='$(V)'
3044   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3045 else
3046   AM_V=$AM_DEFAULT_VERBOSITY
3047   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3048 fi
3049 AM_BACKSLASH='\'
3050
3051 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3052   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3053   # is not polluted with repeated "-I."
3054   am__isrc=' -I$(srcdir)'
3055   # test to see if srcdir already configured
3056   if test -f $srcdir/config.status; then
3057     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3058   fi
3059 fi
3060
3061 # test whether we have cygpath
3062 if test -z "$CYGPATH_W"; then
3063   if (cygpath --version) >/dev/null 2>/dev/null; then
3064     CYGPATH_W='cygpath -w'
3065   else
3066     CYGPATH_W=echo
3067   fi
3068 fi
3069
3070
3071 # Define the identity of the package.
3072  PACKAGE='gobject-introspection'
3073  VERSION='1.37.4'
3074
3075
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE "$PACKAGE"
3078 _ACEOF
3079
3080
3081 cat >>confdefs.h <<_ACEOF
3082 #define VERSION "$VERSION"
3083 _ACEOF
3084
3085 # Some tools Automake needs.
3086
3087 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3088
3089
3090 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3091
3092
3093 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3094
3095
3096 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3097
3098
3099 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3100
3101 # For better backward compatibility.  To be removed once Automake 1.9.x
3102 # dies out for good.  For more background, see:
3103 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3104 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3105 mkdir_p='$(MKDIR_P)'
3106
3107 # We need awk for the "check" target.  The system "awk" is bad on
3108 # some platforms.
3109 # Always define AMTAR for backward compatibility.  Yes, it's still used
3110 # in the wild :-(  We should find a proper way to deprecate it ...
3111 AMTAR='$${TAR-tar}'
3112
3113
3114 # We'll loop over all known methods to create a tar archive until one works.
3115 _am_tools='gnutar plaintar pax cpio none'
3116
3117 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3118       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3119       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3120       # and bug#13588).
3121       am_max_uid=2097151 # 2^21 - 1
3122       am_max_gid=$am_max_uid
3123       # The $UID and $GID variables are not portable, so we need to resort
3124       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3125       # below are definitely unexpected, so allow the users to see them
3126       # (that is, avoid stderr redirection).
3127       am_uid=`id -u || echo unknown`
3128       am_gid=`id -g || echo unknown`
3129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3130 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3131       if test $am_uid -le $am_max_uid; then
3132          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3133 $as_echo "yes" >&6; }
3134       else
3135          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3137          _am_tools=none
3138       fi
3139       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3140 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3141       if test $am_gid -le $am_max_gid; then
3142          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3143 $as_echo "yes" >&6; }
3144       else
3145         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146 $as_echo "no" >&6; }
3147         _am_tools=none
3148       fi
3149
3150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3151 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3152
3153   # Go ahead even if we have the value already cached.  We do so because we
3154   # need to set the values for the 'am__tar' and 'am__untar' variables.
3155   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3156
3157   for _am_tool in $_am_tools; do
3158     case $_am_tool in
3159     gnutar)
3160       for _am_tar in tar gnutar gtar; do
3161         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3162    ($_am_tar --version) >&5 2>&5
3163    ac_status=$?
3164    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165    (exit $ac_status); } && break
3166       done
3167       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3168       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3169       am__untar="$_am_tar -xf -"
3170       ;;
3171     plaintar)
3172       # Must skip GNU tar: if it does not support --format= it doesn't create
3173       # ustar tarball either.
3174       (tar --version) >/dev/null 2>&1 && continue
3175       am__tar='tar chf - "$$tardir"'
3176       am__tar_='tar chf - "$tardir"'
3177       am__untar='tar xf -'
3178       ;;
3179     pax)
3180       am__tar='pax -L -x ustar -w "$$tardir"'
3181       am__tar_='pax -L -x ustar -w "$tardir"'
3182       am__untar='pax -r'
3183       ;;
3184     cpio)
3185       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3186       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3187       am__untar='cpio -i -H ustar -d'
3188       ;;
3189     none)
3190       am__tar=false
3191       am__tar_=false
3192       am__untar=false
3193       ;;
3194     esac
3195
3196     # If the value was cached, stop now.  We just wanted to have am__tar
3197     # and am__untar set.
3198     test -n "${am_cv_prog_tar_ustar}" && break
3199
3200     # tar/untar a dummy directory, and stop if the command works.
3201     rm -rf conftest.dir
3202     mkdir conftest.dir
3203     echo GrepMe > conftest.dir/file
3204     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3205    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3206    ac_status=$?
3207    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208    (exit $ac_status); }
3209     rm -rf conftest.dir
3210     if test -s conftest.tar; then
3211       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3212    ($am__untar <conftest.tar) >&5 2>&5
3213    ac_status=$?
3214    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3215    (exit $ac_status); }
3216       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3217    (cat conftest.dir/file) >&5 2>&5
3218    ac_status=$?
3219    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220    (exit $ac_status); }
3221       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3222     fi
3223   done
3224   rm -rf conftest.dir
3225
3226   if ${am_cv_prog_tar_ustar+:} false; then :
3227   $as_echo_n "(cached) " >&6
3228 else
3229   am_cv_prog_tar_ustar=$_am_tool
3230 fi
3231
3232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3233 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3234
3235
3236
3237
3238
3239
3240
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3242 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3243     # Check whether --enable-maintainer-mode was given.
3244 if test "${enable_maintainer_mode+set}" = set; then :
3245   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3246 else
3247   USE_MAINTAINER_MODE=yes
3248 fi
3249
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3251 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3252    if test $USE_MAINTAINER_MODE = yes; then
3253   MAINTAINER_MODE_TRUE=
3254   MAINTAINER_MODE_FALSE='#'
3255 else
3256   MAINTAINER_MODE_TRUE='#'
3257   MAINTAINER_MODE_FALSE=
3258 fi
3259
3260   MAINT=$MAINTAINER_MODE_TRUE
3261
3262
3263
3264 # Check whether --enable-silent-rules was given.
3265 if test "${enable_silent_rules+set}" = set; then :
3266   enableval=$enable_silent_rules;
3267 fi
3268
3269 case $enable_silent_rules in # (((
3270   yes) AM_DEFAULT_VERBOSITY=0;;
3271    no) AM_DEFAULT_VERBOSITY=1;;
3272     *) AM_DEFAULT_VERBOSITY=0;;
3273 esac
3274 am_make=${MAKE-make}
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3276 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3277 if ${am_cv_make_support_nested_variables+:} false; then :
3278   $as_echo_n "(cached) " >&6
3279 else
3280   if $as_echo 'TRUE=$(BAR$(V))
3281 BAR0=false
3282 BAR1=true
3283 V=1
3284 am__doit:
3285         @$(TRUE)
3286 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3287   am_cv_make_support_nested_variables=yes
3288 else
3289   am_cv_make_support_nested_variables=no
3290 fi
3291 fi
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3293 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3294 if test $am_cv_make_support_nested_variables = yes; then
3295     AM_V='$(V)'
3296   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3297 else
3298   AM_V=$AM_DEFAULT_VERBOSITY
3299   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3300 fi
3301 AM_BACKSLASH='\'
3302
3303
3304 # Check for Win32
3305 # Make sure we can run config.sub.
3306 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3307   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3308
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3310 $as_echo_n "checking build system type... " >&6; }
3311 if ${ac_cv_build+:} false; then :
3312   $as_echo_n "(cached) " >&6
3313 else
3314   ac_build_alias=$build_alias
3315 test "x$ac_build_alias" = x &&
3316   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3317 test "x$ac_build_alias" = x &&
3318   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3319 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3320   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3321
3322 fi
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3324 $as_echo "$ac_cv_build" >&6; }
3325 case $ac_cv_build in
3326 *-*-*) ;;
3327 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3328 esac
3329 build=$ac_cv_build
3330 ac_save_IFS=$IFS; IFS='-'
3331 set x $ac_cv_build
3332 shift
3333 build_cpu=$1
3334 build_vendor=$2
3335 shift; shift
3336 # Remember, the first character of IFS is used to create $*,
3337 # except with old shells:
3338 build_os=$*
3339 IFS=$ac_save_IFS
3340 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3341
3342
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3344 $as_echo_n "checking host system type... " >&6; }
3345 if ${ac_cv_host+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test "x$host_alias" = x; then
3349   ac_cv_host=$ac_cv_build
3350 else
3351   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3352     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3353 fi
3354
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3357 $as_echo "$ac_cv_host" >&6; }
3358 case $ac_cv_host in
3359 *-*-*) ;;
3360 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3361 esac
3362 host=$ac_cv_host
3363 ac_save_IFS=$IFS; IFS='-'
3364 set x $ac_cv_host
3365 shift
3366 host_cpu=$1
3367 host_vendor=$2
3368 shift; shift
3369 # Remember, the first character of IFS is used to create $*,
3370 # except with old shells:
3371 host_os=$*
3372 IFS=$ac_save_IFS
3373 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3374
3375
3376 case "$host" in
3377 *-*-mingw*)
3378         os_win32=yes
3379         ;;
3380 *)
3381         os_win32=no
3382         ;;
3383 esac
3384  if test "x$os_win32" = "xyes"; then
3385   OS_WIN32_TRUE=
3386   OS_WIN32_FALSE='#'
3387 else
3388   OS_WIN32_TRUE='#'
3389   OS_WIN32_FALSE=
3390 fi
3391
3392
3393 # Checks for programs.
3394 ac_ext=c
3395 ac_cpp='$CPP $CPPFLAGS'
3396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3399 if test -n "$ac_tool_prefix"; then
3400   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3401 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if ${ac_cv_prog_CC+:} false; then :
3405   $as_echo_n "(cached) " >&6
3406 else
3407   if test -n "$CC"; then
3408   ac_cv_prog_CC="$CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415     for ac_exec_ext in '' $ac_executable_extensions; do
3416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3417     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3419     break 2
3420   fi
3421 done
3422   done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3431 else
3432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3433 $as_echo "no" >&6; }
3434 fi
3435
3436
3437 fi
3438 if test -z "$ac_cv_prog_CC"; then
3439   ac_ct_CC=$CC
3440   # Extract the first word of "gcc", so it can be a program name with args.
3441 set dummy gcc; ac_word=$2
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3443 $as_echo_n "checking for $ac_word... " >&6; }
3444 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3445   $as_echo_n "(cached) " >&6
3446 else
3447   if test -n "$ac_ct_CC"; then
3448   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3449 else
3450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3451 for as_dir in $PATH
3452 do
3453   IFS=$as_save_IFS
3454   test -z "$as_dir" && as_dir=.
3455     for ac_exec_ext in '' $ac_executable_extensions; do
3456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3457     ac_cv_prog_ac_ct_CC="gcc"
3458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459     break 2
3460   fi
3461 done
3462   done
3463 IFS=$as_save_IFS
3464
3465 fi
3466 fi
3467 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3468 if test -n "$ac_ct_CC"; then
3469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3470 $as_echo "$ac_ct_CC" >&6; }
3471 else
3472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3474 fi
3475
3476   if test "x$ac_ct_CC" = x; then
3477     CC=""
3478   else
3479     case $cross_compiling:$ac_tool_warned in
3480 yes:)
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3483 ac_tool_warned=yes ;;
3484 esac
3485     CC=$ac_ct_CC
3486   fi
3487 else
3488   CC="$ac_cv_prog_CC"
3489 fi
3490
3491 if test -z "$CC"; then
3492           if test -n "$ac_tool_prefix"; then
3493     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3494 set dummy ${ac_tool_prefix}cc; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_CC+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if test -n "$CC"; then
3501   ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510     ac_cv_prog_CC="${ac_tool_prefix}cc"
3511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515   done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530   fi
3531 fi
3532 if test -z "$CC"; then
3533   # Extract the first word of "cc", so it can be a program name with args.
3534 set dummy cc; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_CC+:} false; then :
3538   $as_echo_n "(cached) " >&6
3539 else
3540   if test -n "$CC"; then
3541   ac_cv_prog_CC="$CC" # Let the user override the test.
3542 else
3543   ac_prog_rejected=no
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 for as_dir in $PATH
3546 do
3547   IFS=$as_save_IFS
3548   test -z "$as_dir" && as_dir=.
3549     for ac_exec_ext in '' $ac_executable_extensions; do
3550   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3552        ac_prog_rejected=yes
3553        continue
3554      fi
3555     ac_cv_prog_CC="cc"
3556     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557     break 2
3558   fi
3559 done
3560   done
3561 IFS=$as_save_IFS
3562
3563 if test $ac_prog_rejected = yes; then
3564   # We found a bogon in the path, so make sure we never use it.
3565   set dummy $ac_cv_prog_CC
3566   shift
3567   if test $# != 0; then
3568     # We chose a different compiler from the bogus one.
3569     # However, it has the same basename, so the bogon will be chosen
3570     # first if we set CC to just the basename; use the full file name.
3571     shift
3572     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3573   fi
3574 fi
3575 fi
3576 fi
3577 CC=$ac_cv_prog_CC
3578 if test -n "$CC"; then
3579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3580 $as_echo "$CC" >&6; }
3581 else
3582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 fi
3588 if test -z "$CC"; then
3589   if test -n "$ac_tool_prefix"; then
3590   for ac_prog in cl.exe
3591   do
3592     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3593 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3595 $as_echo_n "checking for $ac_word... " >&6; }
3596 if ${ac_cv_prog_CC+:} false; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   if test -n "$CC"; then
3600   ac_cv_prog_CC="$CC" # Let the user override the test.
3601 else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603 for as_dir in $PATH
3604 do
3605   IFS=$as_save_IFS
3606   test -z "$as_dir" && as_dir=.
3607     for ac_exec_ext in '' $ac_executable_extensions; do
3608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3609     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3611     break 2
3612   fi
3613 done
3614   done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 CC=$ac_cv_prog_CC
3620 if test -n "$CC"; then
3621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 $as_echo "$CC" >&6; }
3623 else
3624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 fi
3627
3628
3629     test -n "$CC" && break
3630   done
3631 fi
3632 if test -z "$CC"; then
3633   ac_ct_CC=$CC
3634   for ac_prog in cl.exe
3635 do
3636   # Extract the first word of "$ac_prog", so it can be a program name with args.
3637 set dummy $ac_prog; ac_word=$2
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3639 $as_echo_n "checking for $ac_word... " >&6; }
3640 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3641   $as_echo_n "(cached) " >&6
3642 else
3643   if test -n "$ac_ct_CC"; then
3644   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3645 else
3646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 for as_dir in $PATH
3648 do
3649   IFS=$as_save_IFS
3650   test -z "$as_dir" && as_dir=.
3651     for ac_exec_ext in '' $ac_executable_extensions; do
3652   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3653     ac_cv_prog_ac_ct_CC="$ac_prog"
3654     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655     break 2
3656   fi
3657 done
3658   done
3659 IFS=$as_save_IFS
3660
3661 fi
3662 fi
3663 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3664 if test -n "$ac_ct_CC"; then
3665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3666 $as_echo "$ac_ct_CC" >&6; }
3667 else
3668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 $as_echo "no" >&6; }
3670 fi
3671
3672
3673   test -n "$ac_ct_CC" && break
3674 done
3675
3676   if test "x$ac_ct_CC" = x; then
3677     CC=""
3678   else
3679     case $cross_compiling:$ac_tool_warned in
3680 yes:)
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3683 ac_tool_warned=yes ;;
3684 esac
3685     CC=$ac_ct_CC
3686   fi
3687 fi
3688
3689 fi
3690
3691
3692 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 as_fn_error $? "no acceptable C compiler found in \$PATH
3695 See \`config.log' for more details" "$LINENO" 5; }
3696
3697 # Provide some information about the compiler.
3698 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3699 set X $ac_compile
3700 ac_compiler=$2
3701 for ac_option in --version -v -V -qversion; do
3702   { { ac_try="$ac_compiler $ac_option >&5"
3703 case "(($ac_try" in
3704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705   *) ac_try_echo=$ac_try;;
3706 esac
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3710   ac_status=$?
3711   if test -s conftest.err; then
3712     sed '10a\
3713 ... rest of stderr output deleted ...
3714          10q' conftest.err >conftest.er1
3715     cat conftest.er1 >&5
3716   fi
3717   rm -f conftest.er1 conftest.err
3718   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3719   test $ac_status = 0; }
3720 done
3721
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h.  */
3724
3725 int
3726 main ()
3727 {
3728
3729   ;
3730   return 0;
3731 }
3732 _ACEOF
3733 ac_clean_files_save=$ac_clean_files
3734 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3735 # Try to create an executable without -o first, disregard a.out.
3736 # It will help us diagnose broken compilers, and finding out an intuition
3737 # of exeext.
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3739 $as_echo_n "checking whether the C compiler works... " >&6; }
3740 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3741
3742 # The possible output files:
3743 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3744
3745 ac_rmfiles=
3746 for ac_file in $ac_files
3747 do
3748   case $ac_file in
3749     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3750     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3751   esac
3752 done
3753 rm -f $ac_rmfiles
3754
3755 if { { ac_try="$ac_link_default"
3756 case "(($ac_try" in
3757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758   *) ac_try_echo=$ac_try;;
3759 esac
3760 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761 $as_echo "$ac_try_echo"; } >&5
3762   (eval "$ac_link_default") 2>&5
3763   ac_status=$?
3764   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765   test $ac_status = 0; }; then :
3766   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3767 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3768 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3769 # so that the user can short-circuit this test for compilers unknown to
3770 # Autoconf.
3771 for ac_file in $ac_files ''
3772 do
3773   test -f "$ac_file" || continue
3774   case $ac_file in
3775     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3776         ;;
3777     [ab].out )
3778         # We found the default executable, but exeext='' is most
3779         # certainly right.
3780         break;;
3781     *.* )
3782         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3783         then :; else
3784            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3785         fi
3786         # We set ac_cv_exeext here because the later test for it is not
3787         # safe: cross compilers may not add the suffix if given an `-o'
3788         # argument, so we may need to know it at that point already.
3789         # Even if this section looks crufty: it has the advantage of
3790         # actually working.
3791         break;;
3792     * )
3793         break;;
3794   esac
3795 done
3796 test "$ac_cv_exeext" = no && ac_cv_exeext=
3797
3798 else
3799   ac_file=''
3800 fi
3801 if test -z "$ac_file"; then :
3802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3806
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error 77 "C compiler cannot create executables
3810 See \`config.log' for more details" "$LINENO" 5; }
3811 else
3812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3813 $as_echo "yes" >&6; }
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3816 $as_echo_n "checking for C compiler default output file name... " >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3818 $as_echo "$ac_file" >&6; }
3819 ac_exeext=$ac_cv_exeext
3820
3821 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3822 ac_clean_files=$ac_clean_files_save
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3824 $as_echo_n "checking for suffix of executables... " >&6; }
3825 if { { ac_try="$ac_link"
3826 case "(($ac_try" in
3827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828   *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832   (eval "$ac_link") 2>&5
3833   ac_status=$?
3834   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835   test $ac_status = 0; }; then :
3836   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3837 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3838 # work properly (i.e., refer to `conftest.exe'), while it won't with
3839 # `rm'.
3840 for ac_file in conftest.exe conftest conftest.*; do
3841   test -f "$ac_file" || continue
3842   case $ac_file in
3843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845           break;;
3846     * ) break;;
3847   esac
3848 done
3849 else
3850   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3853 See \`config.log' for more details" "$LINENO" 5; }
3854 fi
3855 rm -f conftest conftest$ac_cv_exeext
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3857 $as_echo "$ac_cv_exeext" >&6; }
3858
3859 rm -f conftest.$ac_ext
3860 EXEEXT=$ac_cv_exeext
3861 ac_exeext=$EXEEXT
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h.  */
3864 #include <stdio.h>
3865 int
3866 main ()
3867 {
3868 FILE *f = fopen ("conftest.out", "w");
3869  return ferror (f) || fclose (f) != 0;
3870
3871   ;
3872   return 0;
3873 }
3874 _ACEOF
3875 ac_clean_files="$ac_clean_files conftest.out"
3876 # Check that the compiler produces executables we can run.  If not, either
3877 # the compiler is broken, or we cross compile.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3879 $as_echo_n "checking whether we are cross compiling... " >&6; }
3880 if test "$cross_compiling" != yes; then
3881   { { ac_try="$ac_link"
3882 case "(($ac_try" in
3883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884   *) ac_try_echo=$ac_try;;
3885 esac
3886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3887 $as_echo "$ac_try_echo"; } >&5
3888   (eval "$ac_link") 2>&5
3889   ac_status=$?
3890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891   test $ac_status = 0; }
3892   if { ac_try='./conftest$ac_cv_exeext'
3893   { { case "(($ac_try" in
3894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895   *) ac_try_echo=$ac_try;;
3896 esac
3897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898 $as_echo "$ac_try_echo"; } >&5
3899   (eval "$ac_try") 2>&5
3900   ac_status=$?
3901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3902   test $ac_status = 0; }; }; then
3903     cross_compiling=no
3904   else
3905     if test "$cross_compiling" = maybe; then
3906         cross_compiling=yes
3907     else
3908         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910 as_fn_error $? "cannot run C compiled programs.
3911 If you meant to cross compile, use \`--host'.
3912 See \`config.log' for more details" "$LINENO" 5; }
3913     fi
3914   fi
3915 fi
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3917 $as_echo "$cross_compiling" >&6; }
3918
3919 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3920 ac_clean_files=$ac_clean_files_save
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3922 $as_echo_n "checking for suffix of object files... " >&6; }
3923 if ${ac_cv_objext+:} false; then :
3924   $as_echo_n "(cached) " >&6
3925 else
3926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3927 /* end confdefs.h.  */
3928
3929 int
3930 main ()
3931 {
3932
3933   ;
3934   return 0;
3935 }
3936 _ACEOF
3937 rm -f conftest.o conftest.obj
3938 if { { ac_try="$ac_compile"
3939 case "(($ac_try" in
3940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941   *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945   (eval "$ac_compile") 2>&5
3946   ac_status=$?
3947   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3948   test $ac_status = 0; }; then :
3949   for ac_file in conftest.o conftest.obj conftest.*; do
3950   test -f "$ac_file" || continue;
3951   case $ac_file in
3952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3953     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3954        break;;
3955   esac
3956 done
3957 else
3958   $as_echo "$as_me: failed program was:" >&5
3959 sed 's/^/| /' conftest.$ac_ext >&5
3960
3961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3963 as_fn_error $? "cannot compute suffix of object files: cannot compile
3964 See \`config.log' for more details" "$LINENO" 5; }
3965 fi
3966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3969 $as_echo "$ac_cv_objext" >&6; }
3970 OBJEXT=$ac_cv_objext
3971 ac_objext=$OBJEXT
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3973 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3974 if ${ac_cv_c_compiler_gnu+:} false; then :
3975   $as_echo_n "(cached) " >&6
3976 else
3977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h.  */
3979
3980 int
3981 main ()
3982 {
3983 #ifndef __GNUC__
3984        choke me
3985 #endif
3986
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 if ac_fn_c_try_compile "$LINENO"; then :
3992   ac_compiler_gnu=yes
3993 else
3994   ac_compiler_gnu=no
3995 fi
3996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3998
3999 fi
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4001 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4002 if test $ac_compiler_gnu = yes; then
4003   GCC=yes
4004 else
4005   GCC=
4006 fi
4007 ac_test_CFLAGS=${CFLAGS+set}
4008 ac_save_CFLAGS=$CFLAGS
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4010 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4011 if ${ac_cv_prog_cc_g+:} false; then :
4012   $as_echo_n "(cached) " >&6
4013 else
4014   ac_save_c_werror_flag=$ac_c_werror_flag
4015    ac_c_werror_flag=yes
4016    ac_cv_prog_cc_g=no
4017    CFLAGS="-g"
4018    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h.  */
4020
4021 int
4022 main ()
4023 {
4024
4025   ;
4026   return 0;
4027 }
4028 _ACEOF
4029 if ac_fn_c_try_compile "$LINENO"; then :
4030   ac_cv_prog_cc_g=yes
4031 else
4032   CFLAGS=""
4033       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h.  */
4035
4036 int
4037 main ()
4038 {
4039
4040   ;
4041   return 0;
4042 }
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045
4046 else
4047   ac_c_werror_flag=$ac_save_c_werror_flag
4048          CFLAGS="-g"
4049          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050 /* end confdefs.h.  */
4051
4052 int
4053 main ()
4054 {
4055
4056   ;
4057   return 0;
4058 }
4059 _ACEOF
4060 if ac_fn_c_try_compile "$LINENO"; then :
4061   ac_cv_prog_cc_g=yes
4062 fi
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 fi
4065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 fi
4067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068    ac_c_werror_flag=$ac_save_c_werror_flag
4069 fi
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4071 $as_echo "$ac_cv_prog_cc_g" >&6; }
4072 if test "$ac_test_CFLAGS" = set; then
4073   CFLAGS=$ac_save_CFLAGS
4074 elif test $ac_cv_prog_cc_g = yes; then
4075   if test "$GCC" = yes; then
4076     CFLAGS="-g -O2"
4077   else
4078     CFLAGS="-g"
4079   fi
4080 else
4081   if test "$GCC" = yes; then
4082     CFLAGS="-O2"
4083   else
4084     CFLAGS=
4085   fi
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4088 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4089 if ${ac_cv_prog_cc_c89+:} false; then :
4090   $as_echo_n "(cached) " >&6
4091 else
4092   ac_cv_prog_cc_c89=no
4093 ac_save_CC=$CC
4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4095 /* end confdefs.h.  */
4096 #include <stdarg.h>
4097 #include <stdio.h>
4098 struct stat;
4099 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4100 struct buf { int x; };
4101 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4102 static char *e (p, i)
4103      char **p;
4104      int i;
4105 {
4106   return p[i];
4107 }
4108 static char *f (char * (*g) (char **, int), char **p, ...)
4109 {
4110   char *s;
4111   va_list v;
4112   va_start (v,p);
4113   s = g (p, va_arg (v,int));
4114   va_end (v);
4115   return s;
4116 }
4117
4118 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4119    function prototypes and stuff, but not '\xHH' hex character constants.
4120    These don't provoke an error unfortunately, instead are silently treated
4121    as 'x'.  The following induces an error, until -std is added to get
4122    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4123    array size at least.  It's necessary to write '\x00'==0 to get something
4124    that's true only with -std.  */
4125 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4126
4127 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4128    inside strings and character constants.  */
4129 #define FOO(x) 'x'
4130 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4131
4132 int test (int i, double x);
4133 struct s1 {int (*f) (int a);};
4134 struct s2 {int (*f) (double a);};
4135 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4136 int argc;
4137 char **argv;
4138 int
4139 main ()
4140 {
4141 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4142   ;
4143   return 0;
4144 }
4145 _ACEOF
4146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4147         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4148 do
4149   CC="$ac_save_CC $ac_arg"
4150   if ac_fn_c_try_compile "$LINENO"; then :
4151   ac_cv_prog_cc_c89=$ac_arg
4152 fi
4153 rm -f core conftest.err conftest.$ac_objext
4154   test "x$ac_cv_prog_cc_c89" != "xno" && break
4155 done
4156 rm -f conftest.$ac_ext
4157 CC=$ac_save_CC
4158
4159 fi
4160 # AC_CACHE_VAL
4161 case "x$ac_cv_prog_cc_c89" in
4162   x)
4163     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4164 $as_echo "none needed" >&6; } ;;
4165   xno)
4166     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4167 $as_echo "unsupported" >&6; } ;;
4168   *)
4169     CC="$CC $ac_cv_prog_cc_c89"
4170     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4172 esac
4173 if test "x$ac_cv_prog_cc_c89" != xno; then :
4174
4175 fi
4176
4177 ac_ext=c
4178 ac_cpp='$CPP $CPPFLAGS'
4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 DEPDIR="${am__leading_dot}deps"
4183
4184 ac_config_commands="$ac_config_commands depfiles"
4185
4186
4187 am_make=${MAKE-make}
4188 cat > confinc << 'END'
4189 am__doit:
4190         @echo this is the am__doit target
4191 .PHONY: am__doit
4192 END
4193 # If we don't find an include directive, just comment out the code.
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4195 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4196 am__include="#"
4197 am__quote=
4198 _am_result=none
4199 # First try GNU make style include.
4200 echo "include confinc" > confmf
4201 # Ignore all kinds of additional output from 'make'.
4202 case `$am_make -s -f confmf 2> /dev/null` in #(
4203 *the\ am__doit\ target*)
4204   am__include=include
4205   am__quote=
4206   _am_result=GNU
4207   ;;
4208 esac
4209 # Now try BSD make style include.
4210 if test "$am__include" = "#"; then
4211    echo '.include "confinc"' > confmf
4212    case `$am_make -s -f confmf 2> /dev/null` in #(
4213    *the\ am__doit\ target*)
4214      am__include=.include
4215      am__quote="\""
4216      _am_result=BSD
4217      ;;
4218    esac
4219 fi
4220
4221
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4223 $as_echo "$_am_result" >&6; }
4224 rm -f confinc confmf
4225
4226 # Check whether --enable-dependency-tracking was given.
4227 if test "${enable_dependency_tracking+set}" = set; then :
4228   enableval=$enable_dependency_tracking;
4229 fi
4230
4231 if test "x$enable_dependency_tracking" != xno; then
4232   am_depcomp="$ac_aux_dir/depcomp"
4233   AMDEPBACKSLASH='\'
4234   am__nodep='_no'
4235 fi
4236  if test "x$enable_dependency_tracking" != xno; then
4237   AMDEP_TRUE=
4238   AMDEP_FALSE='#'
4239 else
4240   AMDEP_TRUE='#'
4241   AMDEP_FALSE=
4242 fi
4243
4244
4245
4246 depcc="$CC"   am_compiler_list=
4247
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4249 $as_echo_n "checking dependency style of $depcc... " >&6; }
4250 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4254   # We make a subdir and do the tests there.  Otherwise we can end up
4255   # making bogus files that we don't know about and never remove.  For
4256   # instance it was reported that on HP-UX the gcc test will end up
4257   # making a dummy file named 'D' -- because '-MD' means "put the output
4258   # in D".
4259   rm -rf conftest.dir
4260   mkdir conftest.dir
4261   # Copy depcomp to subdir because otherwise we won't find it if we're
4262   # using a relative directory.
4263   cp "$am_depcomp" conftest.dir
4264   cd conftest.dir
4265   # We will build objects and dependencies in a subdirectory because
4266   # it helps to detect inapplicable dependency modes.  For instance
4267   # both Tru64's cc and ICC support -MD to output dependencies as a
4268   # side effect of compilation, but ICC will put the dependencies in
4269   # the current directory while Tru64 will put them in the object
4270   # directory.
4271   mkdir sub
4272
4273   am_cv_CC_dependencies_compiler_type=none
4274   if test "$am_compiler_list" = ""; then
4275      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4276   fi
4277   am__universal=false
4278   case " $depcc " in #(
4279      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4280      esac
4281
4282   for depmode in $am_compiler_list; do
4283     # Setup a source with many dependencies, because some compilers
4284     # like to wrap large dependency lists on column 80 (with \), and
4285     # we should not choose a depcomp mode which is confused by this.
4286     #
4287     # We need to recreate these files for each test, as the compiler may
4288     # overwrite some of them when testing with obscure command lines.
4289     # This happens at least with the AIX C compiler.
4290     : > sub/conftest.c
4291     for i in 1 2 3 4 5 6; do
4292       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4293       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4294       # Solaris 10 /bin/sh.
4295       echo '/* dummy */' > sub/conftst$i.h
4296     done
4297     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4298
4299     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4300     # mode.  It turns out that the SunPro C++ compiler does not properly
4301     # handle '-M -o', and we need to detect this.  Also, some Intel
4302     # versions had trouble with output in subdirs.
4303     am__obj=sub/conftest.${OBJEXT-o}
4304     am__minus_obj="-o $am__obj"
4305     case $depmode in
4306     gcc)
4307       # This depmode causes a compiler race in universal mode.
4308       test "$am__universal" = false || continue
4309       ;;
4310     nosideeffect)
4311       # After this tag, mechanisms are not by side-effect, so they'll
4312       # only be used when explicitly requested.
4313       if test "x$enable_dependency_tracking" = xyes; then
4314         continue
4315       else
4316         break
4317       fi
4318       ;;
4319     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4320       # This compiler won't grok '-c -o', but also, the minuso test has
4321       # not run yet.  These depmodes are late enough in the game, and
4322       # so weak that their functioning should not be impacted.
4323       am__obj=conftest.${OBJEXT-o}
4324       am__minus_obj=
4325       ;;
4326     none) break ;;
4327     esac
4328     if depmode=$depmode \
4329        source=sub/conftest.c object=$am__obj \
4330        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4331        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4332          >/dev/null 2>conftest.err &&
4333        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4334        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4335        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4336        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4337       # icc doesn't choke on unknown options, it will just issue warnings
4338       # or remarks (even with -Werror).  So we grep stderr for any message
4339       # that says an option was ignored or not supported.
4340       # When given -MP, icc 7.0 and 7.1 complain thusly:
4341       #   icc: Command line warning: ignoring option '-M'; no argument required
4342       # The diagnosis changed in icc 8.0:
4343       #   icc: Command line remark: option '-MP' not supported
4344       if (grep 'ignoring option' conftest.err ||
4345           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4346         am_cv_CC_dependencies_compiler_type=$depmode
4347         break
4348       fi
4349     fi
4350   done
4351
4352   cd ..
4353   rm -rf conftest.dir
4354 else
4355   am_cv_CC_dependencies_compiler_type=none
4356 fi
4357
4358 fi
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4360 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4361 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4362
4363  if
4364   test "x$enable_dependency_tracking" != xno \
4365   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4366   am__fastdepCC_TRUE=
4367   am__fastdepCC_FALSE='#'
4368 else
4369   am__fastdepCC_TRUE='#'
4370   am__fastdepCC_FALSE=
4371 fi
4372
4373
4374 if test "x$CC" != xcc; then
4375   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4376 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4377 else
4378   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4379 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4380 fi
4381 set dummy $CC; ac_cc=`$as_echo "$2" |
4382                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4383 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4384   $as_echo_n "(cached) " >&6
4385 else
4386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4387 /* end confdefs.h.  */
4388
4389 int
4390 main ()
4391 {
4392
4393   ;
4394   return 0;
4395 }
4396 _ACEOF
4397 # Make sure it works both with $CC and with simple cc.
4398 # We do the test twice because some compilers refuse to overwrite an
4399 # existing .o file with -o, though they will create one.
4400 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4401 rm -f conftest2.*
4402 if { { case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408   (eval "$ac_try") 2>&5
4409   ac_status=$?
4410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4411   test $ac_status = 0; } &&
4412    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421   test $ac_status = 0; };
4422 then
4423   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4424   if test "x$CC" != xcc; then
4425     # Test first that cc exists at all.
4426     if { ac_try='cc -c conftest.$ac_ext >&5'
4427   { { case "(($ac_try" in
4428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429   *) ac_try_echo=$ac_try;;
4430 esac
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433   (eval "$ac_try") 2>&5
4434   ac_status=$?
4435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436   test $ac_status = 0; }; }; then
4437       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4438       rm -f conftest2.*
4439       if { { case "(($ac_try" in
4440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441   *) ac_try_echo=$ac_try;;
4442 esac
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 $as_echo "$ac_try_echo"; } >&5
4445   (eval "$ac_try") 2>&5
4446   ac_status=$?
4447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448   test $ac_status = 0; } &&
4449          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455   (eval "$ac_try") 2>&5
4456   ac_status=$?
4457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458   test $ac_status = 0; };
4459       then
4460         # cc works too.
4461         :
4462       else
4463         # cc exists but doesn't like -o.
4464         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4465       fi
4466     fi
4467   fi
4468 else
4469   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4470 fi
4471 rm -f core conftest*
4472
4473 fi
4474 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4476 $as_echo "yes" >&6; }
4477 else
4478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4479 $as_echo "no" >&6; }
4480
4481 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4482
4483 fi
4484
4485 # FIXME: we rely on the cache variable name because
4486 # there is no other way.
4487 set dummy $CC
4488 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4489 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4490 if test "$am_t" != yes; then
4491    # Losing compiler, so override with the script.
4492    # FIXME: It is wrong to rewrite CC.
4493    # But if we don't then we get into trouble of one sort or another.
4494    # A longer-term fix would be to have automake use am__CC in this case,
4495    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4496    CC="$am_aux_dir/compile $CC"
4497 fi
4498
4499
4500
4501
4502 # Initialize libtool
4503
4504 case `pwd` in
4505   *\ * | *\     *)
4506     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4507 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4508 esac
4509
4510
4511
4512 macro_version='2.4.2'
4513 macro_revision='1.3337'
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527 ltmain="$ac_aux_dir/ltmain.sh"
4528
4529 # Backslashify metacharacters that are still active within
4530 # double-quoted strings.
4531 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4532
4533 # Same as above, but do not quote variable references.
4534 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4535
4536 # Sed substitution to delay expansion of an escaped shell variable in a
4537 # double_quote_subst'ed string.
4538 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4539
4540 # Sed substitution to delay expansion of an escaped single quote.
4541 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4542
4543 # Sed substitution to avoid accidental globbing in evaled expressions
4544 no_glob_subst='s/\*/\\\*/g'
4545
4546 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4547 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4548 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4549
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4551 $as_echo_n "checking how to print strings... " >&6; }
4552 # Test print first, because it will be a builtin if present.
4553 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4554    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4555   ECHO='print -r --'
4556 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4557   ECHO='printf %s\n'
4558 else
4559   # Use this function as a fallback that always works.
4560   func_fallback_echo ()
4561   {
4562     eval 'cat <<_LTECHO_EOF
4563 $1
4564 _LTECHO_EOF'
4565   }
4566   ECHO='func_fallback_echo'
4567 fi
4568
4569 # func_echo_all arg...
4570 # Invoke $ECHO with all args, space-separated.
4571 func_echo_all ()
4572 {
4573     $ECHO ""
4574 }
4575
4576 case "$ECHO" in
4577   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4578 $as_echo "printf" >&6; } ;;
4579   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4580 $as_echo "print -r" >&6; } ;;
4581   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4582 $as_echo "cat" >&6; } ;;
4583 esac
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4599 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4600 if ${ac_cv_path_SED+:} false; then :
4601   $as_echo_n "(cached) " >&6
4602 else
4603             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4604      for ac_i in 1 2 3 4 5 6 7; do
4605        ac_script="$ac_script$as_nl$ac_script"
4606      done
4607      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4608      { ac_script=; unset ac_script;}
4609      if test -z "$SED"; then
4610   ac_path_SED_found=false
4611   # Loop through the user's path and test for each of PROGNAME-LIST
4612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613 for as_dir in $PATH
4614 do
4615   IFS=$as_save_IFS
4616   test -z "$as_dir" && as_dir=.
4617     for ac_prog in sed gsed; do
4618     for ac_exec_ext in '' $ac_executable_extensions; do
4619       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4620       as_fn_executable_p "$ac_path_SED" || continue
4621 # Check for GNU ac_path_SED and select it if it is found.
4622   # Check for GNU $ac_path_SED
4623 case `"$ac_path_SED" --version 2>&1` in
4624 *GNU*)
4625   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4626 *)
4627   ac_count=0
4628   $as_echo_n 0123456789 >"conftest.in"
4629   while :
4630   do
4631     cat "conftest.in" "conftest.in" >"conftest.tmp"
4632     mv "conftest.tmp" "conftest.in"
4633     cp "conftest.in" "conftest.nl"
4634     $as_echo '' >> "conftest.nl"
4635     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4636     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4637     as_fn_arith $ac_count + 1 && ac_count=$as_val
4638     if test $ac_count -gt ${ac_path_SED_max-0}; then
4639       # Best one so far, save it but keep looking for a better one
4640       ac_cv_path_SED="$ac_path_SED"
4641       ac_path_SED_max=$ac_count
4642     fi
4643     # 10*(2^10) chars as input seems more than enough
4644     test $ac_count -gt 10 && break
4645   done
4646   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4647 esac
4648
4649       $ac_path_SED_found && break 3
4650     done
4651   done
4652   done
4653 IFS=$as_save_IFS
4654   if test -z "$ac_cv_path_SED"; then
4655     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4656   fi
4657 else
4658   ac_cv_path_SED=$SED
4659 fi
4660
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4663 $as_echo "$ac_cv_path_SED" >&6; }
4664  SED="$ac_cv_path_SED"
4665   rm -f conftest.sed
4666
4667 test -z "$SED" && SED=sed
4668 Xsed="$SED -e 1s/^X//"
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4681 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4682 if ${ac_cv_path_GREP+:} false; then :
4683   $as_echo_n "(cached) " >&6
4684 else
4685   if test -z "$GREP"; then
4686   ac_path_GREP_found=false
4687   # Loop through the user's path and test for each of PROGNAME-LIST
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693     for ac_prog in grep ggrep; do
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4696       as_fn_executable_p "$ac_path_GREP" || continue
4697 # Check for GNU ac_path_GREP and select it if it is found.
4698   # Check for GNU $ac_path_GREP
4699 case `"$ac_path_GREP" --version 2>&1` in
4700 *GNU*)
4701   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4702 *)
4703   ac_count=0
4704   $as_echo_n 0123456789 >"conftest.in"
4705   while :
4706   do
4707     cat "conftest.in" "conftest.in" >"conftest.tmp"
4708     mv "conftest.tmp" "conftest.in"
4709     cp "conftest.in" "conftest.nl"
4710     $as_echo 'GREP' >> "conftest.nl"
4711     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713     as_fn_arith $ac_count + 1 && ac_count=$as_val
4714     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4715       # Best one so far, save it but keep looking for a better one
4716       ac_cv_path_GREP="$ac_path_GREP"
4717       ac_path_GREP_max=$ac_count
4718     fi
4719     # 10*(2^10) chars as input seems more than enough
4720     test $ac_count -gt 10 && break
4721   done
4722   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723 esac
4724
4725       $ac_path_GREP_found && break 3
4726     done
4727   done
4728   done
4729 IFS=$as_save_IFS
4730   if test -z "$ac_cv_path_GREP"; then
4731     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732   fi
4733 else
4734   ac_cv_path_GREP=$GREP
4735 fi
4736
4737 fi
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4739 $as_echo "$ac_cv_path_GREP" >&6; }
4740  GREP="$ac_cv_path_GREP"
4741
4742
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4744 $as_echo_n "checking for egrep... " >&6; }
4745 if ${ac_cv_path_EGREP+:} false; then :
4746   $as_echo_n "(cached) " >&6
4747 else
4748   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4749    then ac_cv_path_EGREP="$GREP -E"
4750    else
4751      if test -z "$EGREP"; then
4752   ac_path_EGREP_found=false
4753   # Loop through the user's path and test for each of PROGNAME-LIST
4754   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 do
4757   IFS=$as_save_IFS
4758   test -z "$as_dir" && as_dir=.
4759     for ac_prog in egrep; do
4760     for ac_exec_ext in '' $ac_executable_extensions; do
4761       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4762       as_fn_executable_p "$ac_path_EGREP" || continue
4763 # Check for GNU ac_path_EGREP and select it if it is found.
4764   # Check for GNU $ac_path_EGREP
4765 case `"$ac_path_EGREP" --version 2>&1` in
4766 *GNU*)
4767   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4768 *)
4769   ac_count=0
4770   $as_echo_n 0123456789 >"conftest.in"
4771   while :
4772   do
4773     cat "conftest.in" "conftest.in" >"conftest.tmp"
4774     mv "conftest.tmp" "conftest.in"
4775     cp "conftest.in" "conftest.nl"
4776     $as_echo 'EGREP' >> "conftest.nl"
4777     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4778     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4779     as_fn_arith $ac_count + 1 && ac_count=$as_val
4780     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4781       # Best one so far, save it but keep looking for a better one
4782       ac_cv_path_EGREP="$ac_path_EGREP"
4783       ac_path_EGREP_max=$ac_count
4784     fi
4785     # 10*(2^10) chars as input seems more than enough
4786     test $ac_count -gt 10 && break
4787   done
4788   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4789 esac
4790
4791       $ac_path_EGREP_found && break 3
4792     done
4793   done
4794   done
4795 IFS=$as_save_IFS
4796   if test -z "$ac_cv_path_EGREP"; then
4797     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798   fi
4799 else
4800   ac_cv_path_EGREP=$EGREP
4801 fi
4802
4803    fi
4804 fi
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4806 $as_echo "$ac_cv_path_EGREP" >&6; }
4807  EGREP="$ac_cv_path_EGREP"
4808
4809
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4811 $as_echo_n "checking for fgrep... " >&6; }
4812 if ${ac_cv_path_FGREP+:} false; then :
4813   $as_echo_n "(cached) " >&6
4814 else
4815   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4816    then ac_cv_path_FGREP="$GREP -F"
4817    else
4818      if test -z "$FGREP"; then
4819   ac_path_FGREP_found=false
4820   # Loop through the user's path and test for each of PROGNAME-LIST
4821   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4822 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4823 do
4824   IFS=$as_save_IFS
4825   test -z "$as_dir" && as_dir=.
4826     for ac_prog in fgrep; do
4827     for ac_exec_ext in '' $ac_executable_extensions; do
4828       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4829       as_fn_executable_p "$ac_path_FGREP" || continue
4830 # Check for GNU ac_path_FGREP and select it if it is found.
4831   # Check for GNU $ac_path_FGREP
4832 case `"$ac_path_FGREP" --version 2>&1` in
4833 *GNU*)
4834   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4835 *)
4836   ac_count=0
4837   $as_echo_n 0123456789 >"conftest.in"
4838   while :
4839   do
4840     cat "conftest.in" "conftest.in" >"conftest.tmp"
4841     mv "conftest.tmp" "conftest.in"
4842     cp "conftest.in" "conftest.nl"
4843     $as_echo 'FGREP' >> "conftest.nl"
4844     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4845     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4846     as_fn_arith $ac_count + 1 && ac_count=$as_val
4847     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4848       # Best one so far, save it but keep looking for a better one
4849       ac_cv_path_FGREP="$ac_path_FGREP"
4850       ac_path_FGREP_max=$ac_count
4851     fi
4852     # 10*(2^10) chars as input seems more than enough
4853     test $ac_count -gt 10 && break
4854   done
4855   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4856 esac
4857
4858       $ac_path_FGREP_found && break 3
4859     done
4860   done
4861   done
4862 IFS=$as_save_IFS
4863   if test -z "$ac_cv_path_FGREP"; then
4864     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4865   fi
4866 else
4867   ac_cv_path_FGREP=$FGREP
4868 fi
4869
4870    fi
4871 fi
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4873 $as_echo "$ac_cv_path_FGREP" >&6; }
4874  FGREP="$ac_cv_path_FGREP"
4875
4876
4877 test -z "$GREP" && GREP=grep
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897 # Check whether --with-gnu-ld was given.
4898 if test "${with_gnu_ld+set}" = set; then :
4899   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4900 else
4901   with_gnu_ld=no
4902 fi
4903
4904 ac_prog=ld
4905 if test "$GCC" = yes; then
4906   # Check if gcc -print-prog-name=ld gives a path.
4907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4908 $as_echo_n "checking for ld used by $CC... " >&6; }
4909   case $host in
4910   *-*-mingw*)
4911     # gcc leaves a trailing carriage return which upsets mingw
4912     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4913   *)
4914     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4915   esac
4916   case $ac_prog in
4917     # Accept absolute paths.
4918     [\\/]* | ?:[\\/]*)
4919       re_direlt='/[^/][^/]*/\.\./'
4920       # Canonicalize the pathname of ld
4921       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4922       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4923         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4924       done
4925       test -z "$LD" && LD="$ac_prog"
4926       ;;
4927   "")
4928     # If it fails, then pretend we aren't using GCC.
4929     ac_prog=ld
4930     ;;
4931   *)
4932     # If it is relative, then search for the first ld in PATH.
4933     with_gnu_ld=unknown
4934     ;;
4935   esac
4936 elif test "$with_gnu_ld" = yes; then
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4938 $as_echo_n "checking for GNU ld... " >&6; }
4939 else
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4941 $as_echo_n "checking for non-GNU ld... " >&6; }
4942 fi
4943 if ${lt_cv_path_LD+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   if test -z "$LD"; then
4947   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4948   for ac_dir in $PATH; do
4949     IFS="$lt_save_ifs"
4950     test -z "$ac_dir" && ac_dir=.
4951     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4952       lt_cv_path_LD="$ac_dir/$ac_prog"
4953       # Check to see if the program is GNU ld.  I'd rather use --version,
4954       # but apparently some variants of GNU ld only accept -v.
4955       # Break only if it was the GNU/non-GNU ld that we prefer.
4956       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4957       *GNU* | *'with BFD'*)
4958         test "$with_gnu_ld" != no && break
4959         ;;
4960       *)
4961         test "$with_gnu_ld" != yes && break
4962         ;;
4963       esac
4964     fi
4965   done
4966   IFS="$lt_save_ifs"
4967 else
4968   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4969 fi
4970 fi
4971
4972 LD="$lt_cv_path_LD"
4973 if test -n "$LD"; then
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4975 $as_echo "$LD" >&6; }
4976 else
4977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4982 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4983 if ${lt_cv_prog_gnu_ld+:} false; then :
4984   $as_echo_n "(cached) " >&6
4985 else
4986   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4987 case `$LD -v 2>&1 </dev/null` in
4988 *GNU* | *'with BFD'*)
4989   lt_cv_prog_gnu_ld=yes
4990   ;;
4991 *)
4992   lt_cv_prog_gnu_ld=no
4993   ;;
4994 esac
4995 fi
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4997 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4998 with_gnu_ld=$lt_cv_prog_gnu_ld
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5009 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5010 if ${lt_cv_path_NM+:} false; then :
5011   $as_echo_n "(cached) " >&6
5012 else
5013   if test -n "$NM"; then
5014   # Let the user override the test.
5015   lt_cv_path_NM="$NM"
5016 else
5017   lt_nm_to_check="${ac_tool_prefix}nm"
5018   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5019     lt_nm_to_check="$lt_nm_to_check nm"
5020   fi
5021   for lt_tmp_nm in $lt_nm_to_check; do
5022     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5023     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5024       IFS="$lt_save_ifs"
5025       test -z "$ac_dir" && ac_dir=.
5026       tmp_nm="$ac_dir/$lt_tmp_nm"
5027       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5028         # Check to see if the nm accepts a BSD-compat flag.
5029         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5030         #   nm: unknown option "B" ignored
5031         # Tru64's nm complains that /dev/null is an invalid object file
5032         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5033         */dev/null* | *'Invalid file or object type'*)
5034           lt_cv_path_NM="$tmp_nm -B"
5035           break
5036           ;;
5037         *)
5038           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5039           */dev/null*)
5040             lt_cv_path_NM="$tmp_nm -p"
5041             break
5042             ;;
5043           *)
5044             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5045             continue # so that we can try to find one that supports BSD flags
5046             ;;
5047           esac
5048           ;;
5049         esac
5050       fi
5051     done
5052     IFS="$lt_save_ifs"
5053   done
5054   : ${lt_cv_path_NM=no}
5055 fi
5056 fi
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5058 $as_echo "$lt_cv_path_NM" >&6; }
5059 if test "$lt_cv_path_NM" != "no"; then
5060   NM="$lt_cv_path_NM"
5061 else
5062   # Didn't find any BSD compatible name lister, look for dumpbin.
5063   if test -n "$DUMPBIN"; then :
5064     # Let the user override the test.
5065   else
5066     if test -n "$ac_tool_prefix"; then
5067   for ac_prog in dumpbin "link -dump"
5068   do
5069     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5070 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if ${ac_cv_prog_DUMPBIN+:} false; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   if test -n "$DUMPBIN"; then
5077   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5078 else
5079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 for as_dir in $PATH
5081 do
5082   IFS=$as_save_IFS
5083   test -z "$as_dir" && as_dir=.
5084     for ac_exec_ext in '' $ac_executable_extensions; do
5085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5086     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5088     break 2
5089   fi
5090 done
5091   done
5092 IFS=$as_save_IFS
5093
5094 fi
5095 fi
5096 DUMPBIN=$ac_cv_prog_DUMPBIN
5097 if test -n "$DUMPBIN"; then
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5099 $as_echo "$DUMPBIN" >&6; }
5100 else
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102 $as_echo "no" >&6; }
5103 fi
5104
5105
5106     test -n "$DUMPBIN" && break
5107   done
5108 fi
5109 if test -z "$DUMPBIN"; then
5110   ac_ct_DUMPBIN=$DUMPBIN
5111   for ac_prog in dumpbin "link -dump"
5112 do
5113   # Extract the first word of "$ac_prog", so it can be a program name with args.
5114 set dummy $ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5118   $as_echo_n "(cached) " >&6
5119 else
5120   if test -n "$ac_ct_DUMPBIN"; then
5121   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135   done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5141 if test -n "$ac_ct_DUMPBIN"; then
5142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5143 $as_echo "$ac_ct_DUMPBIN" >&6; }
5144 else
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5147 fi
5148
5149
5150   test -n "$ac_ct_DUMPBIN" && break
5151 done
5152
5153   if test "x$ac_ct_DUMPBIN" = x; then
5154     DUMPBIN=":"
5155   else
5156     case $cross_compiling:$ac_tool_warned in
5157 yes:)
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5160 ac_tool_warned=yes ;;
5161 esac
5162     DUMPBIN=$ac_ct_DUMPBIN
5163   fi
5164 fi
5165
5166     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5167     *COFF*)
5168       DUMPBIN="$DUMPBIN -symbols"
5169       ;;
5170     *)
5171       DUMPBIN=:
5172       ;;
5173     esac
5174   fi
5175
5176   if test "$DUMPBIN" != ":"; then
5177     NM="$DUMPBIN"
5178   fi
5179 fi
5180 test -z "$NM" && NM=nm
5181
5182
5183
5184
5185
5186
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5188 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5189 if ${lt_cv_nm_interface+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   lt_cv_nm_interface="BSD nm"
5193   echo "int some_variable = 0;" > conftest.$ac_ext
5194   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5195   (eval "$ac_compile" 2>conftest.err)
5196   cat conftest.err >&5
5197   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5198   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5199   cat conftest.err >&5
5200   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5201   cat conftest.out >&5
5202   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5203     lt_cv_nm_interface="MS dumpbin"
5204   fi
5205   rm -f conftest*
5206 fi
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5208 $as_echo "$lt_cv_nm_interface" >&6; }
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5211 $as_echo_n "checking whether ln -s works... " >&6; }
5212 LN_S=$as_ln_s
5213 if test "$LN_S" = "ln -s"; then
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5215 $as_echo "yes" >&6; }
5216 else
5217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5218 $as_echo "no, using $LN_S" >&6; }
5219 fi
5220
5221 # find the maximum length of command line arguments
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5223 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5224 if ${lt_cv_sys_max_cmd_len+:} false; then :
5225   $as_echo_n "(cached) " >&6
5226 else
5227     i=0
5228   teststring="ABCD"
5229
5230   case $build_os in
5231   msdosdjgpp*)
5232     # On DJGPP, this test can blow up pretty badly due to problems in libc
5233     # (any single argument exceeding 2000 bytes causes a buffer overrun
5234     # during glob expansion).  Even if it were fixed, the result of this
5235     # check would be larger than it should be.
5236     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5237     ;;
5238
5239   gnu*)
5240     # Under GNU Hurd, this test is not required because there is
5241     # no limit to the length of command line arguments.
5242     # Libtool will interpret -1 as no limit whatsoever
5243     lt_cv_sys_max_cmd_len=-1;
5244     ;;
5245
5246   cygwin* | mingw* | cegcc*)
5247     # On Win9x/ME, this test blows up -- it succeeds, but takes
5248     # about 5 minutes as the teststring grows exponentially.
5249     # Worse, since 9x/ME are not pre-emptively multitasking,
5250     # you end up with a "frozen" computer, even though with patience
5251     # the test eventually succeeds (with a max line length of 256k).
5252     # Instead, let's just punt: use the minimum linelength reported by
5253     # all of the supported platforms: 8192 (on NT/2K/XP).
5254     lt_cv_sys_max_cmd_len=8192;
5255     ;;
5256
5257   mint*)
5258     # On MiNT this can take a long time and run out of memory.
5259     lt_cv_sys_max_cmd_len=8192;
5260     ;;
5261
5262   amigaos*)
5263     # On AmigaOS with pdksh, this test takes hours, literally.
5264     # So we just punt and use a minimum line length of 8192.
5265     lt_cv_sys_max_cmd_len=8192;
5266     ;;
5267
5268   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5269     # This has been around since 386BSD, at least.  Likely further.
5270     if test -x /sbin/sysctl; then
5271       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5272     elif test -x /usr/sbin/sysctl; then
5273       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5274     else
5275       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5276     fi
5277     # And add a safety zone
5278     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5279     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5280     ;;
5281
5282   interix*)
5283     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5284     lt_cv_sys_max_cmd_len=196608
5285     ;;
5286
5287   os2*)
5288     # The test takes a long time on OS/2.
5289     lt_cv_sys_max_cmd_len=8192
5290     ;;
5291
5292   osf*)
5293     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5294     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5295     # nice to cause kernel panics so lets avoid the loop below.
5296     # First set a reasonable default.
5297     lt_cv_sys_max_cmd_len=16384
5298     #
5299     if test -x /sbin/sysconfig; then
5300       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5301         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5302       esac
5303     fi
5304     ;;
5305   sco3.2v5*)
5306     lt_cv_sys_max_cmd_len=102400
5307     ;;
5308   sysv5* | sco5v6* | sysv4.2uw2*)
5309     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5310     if test -n "$kargmax"; then
5311       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5312     else
5313       lt_cv_sys_max_cmd_len=32768
5314     fi
5315     ;;
5316   *)
5317     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5318     if test -n "$lt_cv_sys_max_cmd_len"; then
5319       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5320       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5321     else
5322       # Make teststring a little bigger before we do anything with it.
5323       # a 1K string should be a reasonable start.
5324       for i in 1 2 3 4 5 6 7 8 ; do
5325         teststring=$teststring$teststring
5326       done
5327       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5328       # If test is not a shell built-in, we'll probably end up computing a
5329       # maximum length that is only half of the actual maximum length, but
5330       # we can't tell.
5331       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5332                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5333               test $i != 17 # 1/2 MB should be enough
5334       do
5335         i=`expr $i + 1`
5336         teststring=$teststring$teststring
5337       done
5338       # Only check the string length outside the loop.
5339       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5340       teststring=
5341       # Add a significant safety factor because C++ compilers can tack on
5342       # massive amounts of additional arguments before passing them to the
5343       # linker.  It appears as though 1/2 is a usable value.
5344       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5345     fi
5346     ;;
5347   esac
5348
5349 fi
5350
5351 if test -n $lt_cv_sys_max_cmd_len ; then
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5353 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5354 else
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5356 $as_echo "none" >&6; }
5357 fi
5358 max_cmd_len=$lt_cv_sys_max_cmd_len
5359
5360
5361
5362
5363
5364
5365 : ${CP="cp -f"}
5366 : ${MV="mv -f"}
5367 : ${RM="rm -f"}
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5370 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5371 # Try some XSI features
5372 xsi_shell=no
5373 ( _lt_dummy="a/b/c"
5374   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5375       = c,a/b,b/c, \
5376     && eval 'test $(( 1 + 1 )) -eq 2 \
5377     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5378   && xsi_shell=yes
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5380 $as_echo "$xsi_shell" >&6; }
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5384 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5385 lt_shell_append=no
5386 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5387     >/dev/null 2>&1 \
5388   && lt_shell_append=yes
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5390 $as_echo "$lt_shell_append" >&6; }
5391
5392
5393 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5394   lt_unset=unset
5395 else
5396   lt_unset=false
5397 fi
5398
5399
5400
5401
5402
5403 # test EBCDIC or ASCII
5404 case `echo X|tr X '\101'` in
5405  A) # ASCII based system
5406     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5407   lt_SP2NL='tr \040 \012'
5408   lt_NL2SP='tr \015\012 \040\040'
5409   ;;
5410  *) # EBCDIC based system
5411   lt_SP2NL='tr \100 \n'
5412   lt_NL2SP='tr \r\n \100\100'
5413   ;;
5414 esac
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5425 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5426 if ${lt_cv_to_host_file_cmd+:} false; then :
5427   $as_echo_n "(cached) " >&6
5428 else
5429   case $host in
5430   *-*-mingw* )
5431     case $build in
5432       *-*-mingw* ) # actually msys
5433         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5434         ;;
5435       *-*-cygwin* )
5436         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5437         ;;
5438       * ) # otherwise, assume *nix
5439         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5440         ;;
5441     esac
5442     ;;
5443   *-*-cygwin* )
5444     case $build in
5445       *-*-mingw* ) # actually msys
5446         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5447         ;;
5448       *-*-cygwin* )
5449         lt_cv_to_host_file_cmd=func_convert_file_noop
5450         ;;
5451       * ) # otherwise, assume *nix
5452         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5453         ;;
5454     esac
5455     ;;
5456   * ) # unhandled hosts (and "normal" native builds)
5457     lt_cv_to_host_file_cmd=func_convert_file_noop
5458     ;;
5459 esac
5460
5461 fi
5462
5463 to_host_file_cmd=$lt_cv_to_host_file_cmd
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5465 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5466
5467
5468
5469
5470
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5472 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5473 if ${lt_cv_to_tool_file_cmd+:} false; then :
5474   $as_echo_n "(cached) " >&6
5475 else
5476   #assume ordinary cross tools, or native build.
5477 lt_cv_to_tool_file_cmd=func_convert_file_noop
5478 case $host in
5479   *-*-mingw* )
5480     case $build in
5481       *-*-mingw* ) # actually msys
5482         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5483         ;;
5484     esac
5485     ;;
5486 esac
5487
5488 fi
5489
5490 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5492 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5493
5494
5495
5496
5497
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5499 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5500 if ${lt_cv_ld_reload_flag+:} false; then :
5501   $as_echo_n "(cached) " >&6
5502 else
5503   lt_cv_ld_reload_flag='-r'
5504 fi
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5506 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5507 reload_flag=$lt_cv_ld_reload_flag
5508 case $reload_flag in
5509 "" | " "*) ;;
5510 *) reload_flag=" $reload_flag" ;;
5511 esac
5512 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5513 case $host_os in
5514   cygwin* | mingw* | pw32* | cegcc*)
5515     if test "$GCC" != yes; then
5516       reload_cmds=false
5517     fi
5518     ;;
5519   darwin*)
5520     if test "$GCC" = yes; then
5521       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5522     else
5523       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5524     fi
5525     ;;
5526 esac
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536 if test -n "$ac_tool_prefix"; then
5537   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5538 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540 $as_echo_n "checking for $ac_word... " >&6; }
5541 if ${ac_cv_prog_OBJDUMP+:} false; then :
5542   $as_echo_n "(cached) " >&6
5543 else
5544   if test -n "$OBJDUMP"; then
5545   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5546 else
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548 for as_dir in $PATH
5549 do
5550   IFS=$as_save_IFS
5551   test -z "$as_dir" && as_dir=.
5552     for ac_exec_ext in '' $ac_executable_extensions; do
5553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5554     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556     break 2
5557   fi
5558 done
5559   done
5560 IFS=$as_save_IFS
5561
5562 fi
5563 fi
5564 OBJDUMP=$ac_cv_prog_OBJDUMP
5565 if test -n "$OBJDUMP"; then
5566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5567 $as_echo "$OBJDUMP" >&6; }
5568 else
5569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570 $as_echo "no" >&6; }
5571 fi
5572
5573
5574 fi
5575 if test -z "$ac_cv_prog_OBJDUMP"; then
5576   ac_ct_OBJDUMP=$OBJDUMP
5577   # Extract the first word of "objdump", so it can be a program name with args.
5578 set dummy objdump; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   if test -n "$ac_ct_OBJDUMP"; then
5585   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590   IFS=$as_save_IFS
5591   test -z "$as_dir" && as_dir=.
5592     for ac_exec_ext in '' $ac_executable_extensions; do
5593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596     break 2
5597   fi
5598 done
5599   done
5600 IFS=$as_save_IFS
5601
5602 fi
5603 fi
5604 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5605 if test -n "$ac_ct_OBJDUMP"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5607 $as_echo "$ac_ct_OBJDUMP" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613   if test "x$ac_ct_OBJDUMP" = x; then
5614     OBJDUMP="false"
5615   else
5616     case $cross_compiling:$ac_tool_warned in
5617 yes:)
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5620 ac_tool_warned=yes ;;
5621 esac
5622     OBJDUMP=$ac_ct_OBJDUMP
5623   fi
5624 else
5625   OBJDUMP="$ac_cv_prog_OBJDUMP"
5626 fi
5627
5628 test -z "$OBJDUMP" && OBJDUMP=objdump
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5639 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5640 if ${lt_cv_deplibs_check_method+:} false; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643   lt_cv_file_magic_cmd='$MAGIC_CMD'
5644 lt_cv_file_magic_test_file=
5645 lt_cv_deplibs_check_method='unknown'
5646 # Need to set the preceding variable on all platforms that support
5647 # interlibrary dependencies.
5648 # 'none' -- dependencies not supported.
5649 # `unknown' -- same as none, but documents that we really don't know.
5650 # 'pass_all' -- all dependencies passed with no checks.
5651 # 'test_compile' -- check by making test program.
5652 # 'file_magic [[regex]]' -- check by looking for files in library path
5653 # which responds to the $file_magic_cmd with a given extended regex.
5654 # If you have `file' or equivalent on your system and you're not sure
5655 # whether `pass_all' will *always* work, you probably want this one.
5656
5657 case $host_os in
5658 aix[4-9]*)
5659   lt_cv_deplibs_check_method=pass_all
5660   ;;
5661
5662 beos*)
5663   lt_cv_deplibs_check_method=pass_all
5664   ;;
5665
5666 bsdi[45]*)
5667   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5668   lt_cv_file_magic_cmd='/usr/bin/file -L'
5669   lt_cv_file_magic_test_file=/shlib/libc.so
5670   ;;
5671
5672 cygwin*)
5673   # func_win32_libid is a shell function defined in ltmain.sh
5674   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5675   lt_cv_file_magic_cmd='func_win32_libid'
5676   ;;
5677
5678 mingw* | pw32*)
5679   # Base MSYS/MinGW do not provide the 'file' command needed by
5680   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5681   # unless we find 'file', for example because we are cross-compiling.
5682   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5683   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5684     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5685     lt_cv_file_magic_cmd='func_win32_libid'
5686   else
5687     # Keep this pattern in sync with the one in func_win32_libid.
5688     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5689     lt_cv_file_magic_cmd='$OBJDUMP -f'
5690   fi
5691   ;;
5692
5693 cegcc*)
5694   # use the weaker test based on 'objdump'. See mingw*.
5695   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5696   lt_cv_file_magic_cmd='$OBJDUMP -f'
5697   ;;
5698
5699 darwin* | rhapsody*)
5700   lt_cv_deplibs_check_method=pass_all
5701   ;;
5702
5703 freebsd* | dragonfly*)
5704   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5705     case $host_cpu in
5706     i*86 )
5707       # Not sure whether the presence of OpenBSD here was a mistake.
5708       # Let's accept both of them until this is cleared up.
5709       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5710       lt_cv_file_magic_cmd=/usr/bin/file
5711       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5712       ;;
5713     esac
5714   else
5715     lt_cv_deplibs_check_method=pass_all
5716   fi
5717   ;;
5718
5719 gnu*)
5720   lt_cv_deplibs_check_method=pass_all
5721   ;;
5722
5723 haiku*)
5724   lt_cv_deplibs_check_method=pass_all
5725   ;;
5726
5727 hpux10.20* | hpux11*)
5728   lt_cv_file_magic_cmd=/usr/bin/file
5729   case $host_cpu in
5730   ia64*)
5731     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5732     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5733     ;;
5734   hppa*64*)
5735     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]'
5736     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5737     ;;
5738   *)
5739     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5740     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5741     ;;
5742   esac
5743   ;;
5744
5745 interix[3-9]*)
5746   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5747   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5748   ;;
5749
5750 irix5* | irix6* | nonstopux*)
5751   case $LD in
5752   *-32|*"-32 ") libmagic=32-bit;;
5753   *-n32|*"-n32 ") libmagic=N32;;
5754   *-64|*"-64 ") libmagic=64-bit;;
5755   *) libmagic=never-match;;
5756   esac
5757   lt_cv_deplibs_check_method=pass_all
5758   ;;
5759
5760 # This must be glibc/ELF.
5761 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5762   lt_cv_deplibs_check_method=pass_all
5763   ;;
5764
5765 netbsd*)
5766   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5767     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5768   else
5769     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5770   fi
5771   ;;
5772
5773 newos6*)
5774   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5775   lt_cv_file_magic_cmd=/usr/bin/file
5776   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5777   ;;
5778
5779 *nto* | *qnx*)
5780   lt_cv_deplibs_check_method=pass_all
5781   ;;
5782
5783 openbsd*)
5784   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5785     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5786   else
5787     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5788   fi
5789   ;;
5790
5791 osf3* | osf4* | osf5*)
5792   lt_cv_deplibs_check_method=pass_all
5793   ;;
5794
5795 rdos*)
5796   lt_cv_deplibs_check_method=pass_all
5797   ;;
5798
5799 solaris*)
5800   lt_cv_deplibs_check_method=pass_all
5801   ;;
5802
5803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5804   lt_cv_deplibs_check_method=pass_all
5805   ;;
5806
5807 sysv4 | sysv4.3*)
5808   case $host_vendor in
5809   motorola)
5810     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]'
5811     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5812     ;;
5813   ncr)
5814     lt_cv_deplibs_check_method=pass_all
5815     ;;
5816   sequent)
5817     lt_cv_file_magic_cmd='/bin/file'
5818     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5819     ;;
5820   sni)
5821     lt_cv_file_magic_cmd='/bin/file'
5822     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5823     lt_cv_file_magic_test_file=/lib/libc.so
5824     ;;
5825   siemens)
5826     lt_cv_deplibs_check_method=pass_all
5827     ;;
5828   pc)
5829     lt_cv_deplibs_check_method=pass_all
5830     ;;
5831   esac
5832   ;;
5833
5834 tpf*)
5835   lt_cv_deplibs_check_method=pass_all
5836   ;;
5837 esac
5838
5839 fi
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5841 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5842
5843 file_magic_glob=
5844 want_nocaseglob=no
5845 if test "$build" = "$host"; then
5846   case $host_os in
5847   mingw* | pw32*)
5848     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5849       want_nocaseglob=yes
5850     else
5851       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5852     fi
5853     ;;
5854   esac
5855 fi
5856
5857 file_magic_cmd=$lt_cv_file_magic_cmd
5858 deplibs_check_method=$lt_cv_deplibs_check_method
5859 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882 if test -n "$ac_tool_prefix"; then
5883   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5884 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5886 $as_echo_n "checking for $ac_word... " >&6; }
5887 if ${ac_cv_prog_DLLTOOL+:} false; then :
5888   $as_echo_n "(cached) " >&6
5889 else
5890   if test -n "$DLLTOOL"; then
5891   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5892 else
5893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5895 do
5896   IFS=$as_save_IFS
5897   test -z "$as_dir" && as_dir=.
5898     for ac_exec_ext in '' $ac_executable_extensions; do
5899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5900     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902     break 2
5903   fi
5904 done
5905   done
5906 IFS=$as_save_IFS
5907
5908 fi
5909 fi
5910 DLLTOOL=$ac_cv_prog_DLLTOOL
5911 if test -n "$DLLTOOL"; then
5912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5913 $as_echo "$DLLTOOL" >&6; }
5914 else
5915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5916 $as_echo "no" >&6; }
5917 fi
5918
5919
5920 fi
5921 if test -z "$ac_cv_prog_DLLTOOL"; then
5922   ac_ct_DLLTOOL=$DLLTOOL
5923   # Extract the first word of "dlltool", so it can be a program name with args.
5924 set dummy dlltool; ac_word=$2
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5926 $as_echo_n "checking for $ac_word... " >&6; }
5927 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5928   $as_echo_n "(cached) " >&6
5929 else
5930   if test -n "$ac_ct_DLLTOOL"; then
5931   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936   IFS=$as_save_IFS
5937   test -z "$as_dir" && as_dir=.
5938     for ac_exec_ext in '' $ac_executable_extensions; do
5939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5940     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942     break 2
5943   fi
5944 done
5945   done
5946 IFS=$as_save_IFS
5947
5948 fi
5949 fi
5950 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5951 if test -n "$ac_ct_DLLTOOL"; then
5952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5953 $as_echo "$ac_ct_DLLTOOL" >&6; }
5954 else
5955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5956 $as_echo "no" >&6; }
5957 fi
5958
5959   if test "x$ac_ct_DLLTOOL" = x; then
5960     DLLTOOL="false"
5961   else
5962     case $cross_compiling:$ac_tool_warned in
5963 yes:)
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5966 ac_tool_warned=yes ;;
5967 esac
5968     DLLTOOL=$ac_ct_DLLTOOL
5969   fi
5970 else
5971   DLLTOOL="$ac_cv_prog_DLLTOOL"
5972 fi
5973
5974 test -z "$DLLTOOL" && DLLTOOL=dlltool
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5986 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5987 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5988   $as_echo_n "(cached) " >&6
5989 else
5990   lt_cv_sharedlib_from_linklib_cmd='unknown'
5991
5992 case $host_os in
5993 cygwin* | mingw* | pw32* | cegcc*)
5994   # two different shell functions defined in ltmain.sh
5995   # decide which to use based on capabilities of $DLLTOOL
5996   case `$DLLTOOL --help 2>&1` in
5997   *--identify-strict*)
5998     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5999     ;;
6000   *)
6001     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6002     ;;
6003   esac
6004   ;;
6005 *)
6006   # fallback: assume linklib IS sharedlib
6007   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6008   ;;
6009 esac
6010
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6013 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6014 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6015 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6016
6017
6018
6019
6020
6021
6022
6023
6024 if test -n "$ac_tool_prefix"; then
6025   for ac_prog in ar
6026   do
6027     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6028 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030 $as_echo_n "checking for $ac_word... " >&6; }
6031 if ${ac_cv_prog_AR+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034   if test -n "$AR"; then
6035   ac_cv_prog_AR="$AR" # Let the user override the test.
6036 else
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6038 for as_dir in $PATH
6039 do
6040   IFS=$as_save_IFS
6041   test -z "$as_dir" && as_dir=.
6042     for ac_exec_ext in '' $ac_executable_extensions; do
6043   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6045     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6046     break 2
6047   fi
6048 done
6049   done
6050 IFS=$as_save_IFS
6051
6052 fi
6053 fi
6054 AR=$ac_cv_prog_AR
6055 if test -n "$AR"; then
6056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6057 $as_echo "$AR" >&6; }
6058 else
6059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6060 $as_echo "no" >&6; }
6061 fi
6062
6063
6064     test -n "$AR" && break
6065   done
6066 fi
6067 if test -z "$AR"; then
6068   ac_ct_AR=$AR
6069   for ac_prog in ar
6070 do
6071   # Extract the first word of "$ac_prog", so it can be a program name with args.
6072 set dummy $ac_prog; 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_AR+:} false; then :
6076   $as_echo_n "(cached) " >&6
6077 else
6078   if test -n "$ac_ct_AR"; then
6079   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088     ac_cv_prog_ac_ct_AR="$ac_prog"
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_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6102 else
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6105 fi
6106
6107
6108   test -n "$ac_ct_AR" && break
6109 done
6110
6111   if test "x$ac_ct_AR" = x; then
6112     AR="false"
6113   else
6114     case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120     AR=$ac_ct_AR
6121   fi
6122 fi
6123
6124 : ${AR=ar}
6125 : ${AR_FLAGS=cru}
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6138 $as_echo_n "checking for archiver @FILE support... " >&6; }
6139 if ${lt_cv_ar_at_file+:} false; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   lt_cv_ar_at_file=no
6143    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h.  */
6145
6146 int
6147 main ()
6148 {
6149
6150   ;
6151   return 0;
6152 }
6153 _ACEOF
6154 if ac_fn_c_try_compile "$LINENO"; then :
6155   echo conftest.$ac_objext > conftest.lst
6156       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6157       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6158   (eval $lt_ar_try) 2>&5
6159   ac_status=$?
6160   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6161   test $ac_status = 0; }
6162       if test "$ac_status" -eq 0; then
6163         # Ensure the archiver fails upon bogus file names.
6164         rm -f conftest.$ac_objext libconftest.a
6165         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6166   (eval $lt_ar_try) 2>&5
6167   ac_status=$?
6168   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6169   test $ac_status = 0; }
6170         if test "$ac_status" -ne 0; then
6171           lt_cv_ar_at_file=@
6172         fi
6173       fi
6174       rm -f conftest.* libconftest.a
6175
6176 fi
6177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6181 $as_echo "$lt_cv_ar_at_file" >&6; }
6182
6183 if test "x$lt_cv_ar_at_file" = xno; then
6184   archiver_list_spec=
6185 else
6186   archiver_list_spec=$lt_cv_ar_at_file
6187 fi
6188
6189
6190
6191
6192
6193
6194
6195 if test -n "$ac_tool_prefix"; then
6196   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6197 set dummy ${ac_tool_prefix}strip; ac_word=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_STRIP+:} false; then :
6201   $as_echo_n "(cached) " >&6
6202 else
6203   if test -n "$STRIP"; then
6204   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6205 else
6206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6207 for as_dir in $PATH
6208 do
6209   IFS=$as_save_IFS
6210   test -z "$as_dir" && as_dir=.
6211     for ac_exec_ext in '' $ac_executable_extensions; do
6212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6213     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6215     break 2
6216   fi
6217 done
6218   done
6219 IFS=$as_save_IFS
6220
6221 fi
6222 fi
6223 STRIP=$ac_cv_prog_STRIP
6224 if test -n "$STRIP"; then
6225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6226 $as_echo "$STRIP" >&6; }
6227 else
6228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6230 fi
6231
6232
6233 fi
6234 if test -z "$ac_cv_prog_STRIP"; then
6235   ac_ct_STRIP=$STRIP
6236   # Extract the first word of "strip", so it can be a program name with args.
6237 set dummy strip; ac_word=$2
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6239 $as_echo_n "checking for $ac_word... " >&6; }
6240 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6241   $as_echo_n "(cached) " >&6
6242 else
6243   if test -n "$ac_ct_STRIP"; then
6244   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249   IFS=$as_save_IFS
6250   test -z "$as_dir" && as_dir=.
6251     for ac_exec_ext in '' $ac_executable_extensions; do
6252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6253     ac_cv_prog_ac_ct_STRIP="strip"
6254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6255     break 2
6256   fi
6257 done
6258   done
6259 IFS=$as_save_IFS
6260
6261 fi
6262 fi
6263 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6264 if test -n "$ac_ct_STRIP"; then
6265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6266 $as_echo "$ac_ct_STRIP" >&6; }
6267 else
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6269 $as_echo "no" >&6; }
6270 fi
6271
6272   if test "x$ac_ct_STRIP" = x; then
6273     STRIP=":"
6274   else
6275     case $cross_compiling:$ac_tool_warned in
6276 yes:)
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279 ac_tool_warned=yes ;;
6280 esac
6281     STRIP=$ac_ct_STRIP
6282   fi
6283 else
6284   STRIP="$ac_cv_prog_STRIP"
6285 fi
6286
6287 test -z "$STRIP" && STRIP=:
6288
6289
6290
6291
6292
6293
6294 if test -n "$ac_tool_prefix"; then
6295   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6296 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298 $as_echo_n "checking for $ac_word... " >&6; }
6299 if ${ac_cv_prog_RANLIB+:} false; then :
6300   $as_echo_n "(cached) " >&6
6301 else
6302   if test -n "$RANLIB"; then
6303   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6304 else
6305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306 for as_dir in $PATH
6307 do
6308   IFS=$as_save_IFS
6309   test -z "$as_dir" && as_dir=.
6310     for ac_exec_ext in '' $ac_executable_extensions; do
6311   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6312     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314     break 2
6315   fi
6316 done
6317   done
6318 IFS=$as_save_IFS
6319
6320 fi
6321 fi
6322 RANLIB=$ac_cv_prog_RANLIB
6323 if test -n "$RANLIB"; then
6324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6325 $as_echo "$RANLIB" >&6; }
6326 else
6327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6329 fi
6330
6331
6332 fi
6333 if test -z "$ac_cv_prog_RANLIB"; then
6334   ac_ct_RANLIB=$RANLIB
6335   # Extract the first word of "ranlib", so it can be a program name with args.
6336 set dummy ranlib; ac_word=$2
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338 $as_echo_n "checking for $ac_word... " >&6; }
6339 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6340   $as_echo_n "(cached) " >&6
6341 else
6342   if test -n "$ac_ct_RANLIB"; then
6343   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6344 else
6345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346 for as_dir in $PATH
6347 do
6348   IFS=$as_save_IFS
6349   test -z "$as_dir" && as_dir=.
6350     for ac_exec_ext in '' $ac_executable_extensions; do
6351   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6352     ac_cv_prog_ac_ct_RANLIB="ranlib"
6353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354     break 2
6355   fi
6356 done
6357   done
6358 IFS=$as_save_IFS
6359
6360 fi
6361 fi
6362 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6363 if test -n "$ac_ct_RANLIB"; then
6364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6365 $as_echo "$ac_ct_RANLIB" >&6; }
6366 else
6367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6369 fi
6370
6371   if test "x$ac_ct_RANLIB" = x; then
6372     RANLIB=":"
6373   else
6374     case $cross_compiling:$ac_tool_warned in
6375 yes:)
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378 ac_tool_warned=yes ;;
6379 esac
6380     RANLIB=$ac_ct_RANLIB
6381   fi
6382 else
6383   RANLIB="$ac_cv_prog_RANLIB"
6384 fi
6385
6386 test -z "$RANLIB" && RANLIB=:
6387
6388
6389
6390
6391
6392
6393 # Determine commands to create old-style static archives.
6394 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6395 old_postinstall_cmds='chmod 644 $oldlib'
6396 old_postuninstall_cmds=
6397
6398 if test -n "$RANLIB"; then
6399   case $host_os in
6400   openbsd*)
6401     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6402     ;;
6403   *)
6404     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6405     ;;
6406   esac
6407   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6408 fi
6409
6410 case $host_os in
6411   darwin*)
6412     lock_old_archive_extraction=yes ;;
6413   *)
6414     lock_old_archive_extraction=no ;;
6415 esac
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455 # If no C compiler was specified, use CC.
6456 LTCC=${LTCC-"$CC"}
6457
6458 # If no C compiler flags were specified, use CFLAGS.
6459 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6460
6461 # Allow CC to be a program name with arguments.
6462 compiler=$CC
6463
6464
6465 # Check for command to grab the raw symbol name followed by C symbol from nm.
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6467 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6468 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6469   $as_echo_n "(cached) " >&6
6470 else
6471
6472 # These are sane defaults that work on at least a few old systems.
6473 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6474
6475 # Character class describing NM global symbol codes.
6476 symcode='[BCDEGRST]'
6477
6478 # Regexp to match symbols that can be accessed directly from C.
6479 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6480
6481 # Define system-specific variables.
6482 case $host_os in
6483 aix*)
6484   symcode='[BCDT]'
6485   ;;
6486 cygwin* | mingw* | pw32* | cegcc*)
6487   symcode='[ABCDGISTW]'
6488   ;;
6489 hpux*)
6490   if test "$host_cpu" = ia64; then
6491     symcode='[ABCDEGRST]'
6492   fi
6493   ;;
6494 irix* | nonstopux*)
6495   symcode='[BCDEGRST]'
6496   ;;
6497 osf*)
6498   symcode='[BCDEGQRST]'
6499   ;;
6500 solaris*)
6501   symcode='[BDRT]'
6502   ;;
6503 sco3.2v5*)
6504   symcode='[DT]'
6505   ;;
6506 sysv4.2uw2*)
6507   symcode='[DT]'
6508   ;;
6509 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6510   symcode='[ABDT]'
6511   ;;
6512 sysv4)
6513   symcode='[DFNSTU]'
6514   ;;
6515 esac
6516
6517 # If we're using GNU nm, then use its standard symbol codes.
6518 case `$NM -V 2>&1` in
6519 *GNU* | *'with BFD'*)
6520   symcode='[ABCDGIRSTW]' ;;
6521 esac
6522
6523 # Transform an extracted symbol line into a proper C declaration.
6524 # Some systems (esp. on ia64) link data and code symbols differently,
6525 # so use this general approach.
6526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6527
6528 # Transform an extracted symbol line into symbol name and symbol address
6529 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6530 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'"
6531
6532 # Handle CRLF in mingw tool chain
6533 opt_cr=
6534 case $build_os in
6535 mingw*)
6536   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6537   ;;
6538 esac
6539
6540 # Try without a prefix underscore, then with it.
6541 for ac_symprfx in "" "_"; do
6542
6543   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6544   symxfrm="\\1 $ac_symprfx\\2 \\2"
6545
6546   # Write the raw and C identifiers.
6547   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6548     # Fake it for dumpbin and say T for any non-static function
6549     # and D for any global variable.
6550     # Also find C++ and __fastcall symbols from MSVC++,
6551     # which start with @ or ?.
6552     lt_cv_sys_global_symbol_pipe="$AWK '"\
6553 "     {last_section=section; section=\$ 3};"\
6554 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6555 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6556 "     \$ 0!~/External *\|/{next};"\
6557 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6558 "     {if(hide[section]) next};"\
6559 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6560 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6561 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6562 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6563 "     ' prfx=^$ac_symprfx"
6564   else
6565     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6566   fi
6567   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6568
6569   # Check to see that the pipe works correctly.
6570   pipe_works=no
6571
6572   rm -f conftest*
6573   cat > conftest.$ac_ext <<_LT_EOF
6574 #ifdef __cplusplus
6575 extern "C" {
6576 #endif
6577 char nm_test_var;
6578 void nm_test_func(void);
6579 void nm_test_func(void){}
6580 #ifdef __cplusplus
6581 }
6582 #endif
6583 int main(){nm_test_var='a';nm_test_func();return(0);}
6584 _LT_EOF
6585
6586   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6587   (eval $ac_compile) 2>&5
6588   ac_status=$?
6589   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590   test $ac_status = 0; }; then
6591     # Now try to grab the symbols.
6592     nlist=conftest.nm
6593     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6594   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6595   ac_status=$?
6596   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6597   test $ac_status = 0; } && test -s "$nlist"; then
6598       # Try sorting and uniquifying the output.
6599       if sort "$nlist" | uniq > "$nlist"T; then
6600         mv -f "$nlist"T "$nlist"
6601       else
6602         rm -f "$nlist"T
6603       fi
6604
6605       # Make sure that we snagged all the symbols we need.
6606       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6607         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6608           cat <<_LT_EOF > conftest.$ac_ext
6609 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6610 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6611 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6612    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6613 # define LT_DLSYM_CONST
6614 #elif defined(__osf__)
6615 /* This system does not cope well with relocations in const data.  */
6616 # define LT_DLSYM_CONST
6617 #else
6618 # define LT_DLSYM_CONST const
6619 #endif
6620
6621 #ifdef __cplusplus
6622 extern "C" {
6623 #endif
6624
6625 _LT_EOF
6626           # Now generate the symbol file.
6627           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6628
6629           cat <<_LT_EOF >> conftest.$ac_ext
6630
6631 /* The mapping between symbol names and symbols.  */
6632 LT_DLSYM_CONST struct {
6633   const char *name;
6634   void       *address;
6635 }
6636 lt__PROGRAM__LTX_preloaded_symbols[] =
6637 {
6638   { "@PROGRAM@", (void *) 0 },
6639 _LT_EOF
6640           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6641           cat <<\_LT_EOF >> conftest.$ac_ext
6642   {0, (void *) 0}
6643 };
6644
6645 /* This works around a problem in FreeBSD linker */
6646 #ifdef FREEBSD_WORKAROUND
6647 static const void *lt_preloaded_setup() {
6648   return lt__PROGRAM__LTX_preloaded_symbols;
6649 }
6650 #endif
6651
6652 #ifdef __cplusplus
6653 }
6654 #endif
6655 _LT_EOF
6656           # Now try linking the two files.
6657           mv conftest.$ac_objext conftstm.$ac_objext
6658           lt_globsym_save_LIBS=$LIBS
6659           lt_globsym_save_CFLAGS=$CFLAGS
6660           LIBS="conftstm.$ac_objext"
6661           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6662           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6663   (eval $ac_link) 2>&5
6664   ac_status=$?
6665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6667             pipe_works=yes
6668           fi
6669           LIBS=$lt_globsym_save_LIBS
6670           CFLAGS=$lt_globsym_save_CFLAGS
6671         else
6672           echo "cannot find nm_test_func in $nlist" >&5
6673         fi
6674       else
6675         echo "cannot find nm_test_var in $nlist" >&5
6676       fi
6677     else
6678       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6679     fi
6680   else
6681     echo "$progname: failed program was:" >&5
6682     cat conftest.$ac_ext >&5
6683   fi
6684   rm -rf conftest* conftst*
6685
6686   # Do not use the global_symbol_pipe unless it works.
6687   if test "$pipe_works" = yes; then
6688     break
6689   else
6690     lt_cv_sys_global_symbol_pipe=
6691   fi
6692 done
6693
6694 fi
6695
6696 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6697   lt_cv_sys_global_symbol_to_cdecl=
6698 fi
6699 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6701 $as_echo "failed" >&6; }
6702 else
6703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6704 $as_echo "ok" >&6; }
6705 fi
6706
6707 # Response file support.
6708 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6709   nm_file_list_spec='@'
6710 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6711   nm_file_list_spec='@'
6712 fi
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6741 $as_echo_n "checking for sysroot... " >&6; }
6742
6743 # Check whether --with-sysroot was given.
6744 if test "${with_sysroot+set}" = set; then :
6745   withval=$with_sysroot;
6746 else
6747   with_sysroot=no
6748 fi
6749
6750
6751 lt_sysroot=
6752 case ${with_sysroot} in #(
6753  yes)
6754    if test "$GCC" = yes; then
6755      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6756    fi
6757    ;; #(
6758  /*)
6759    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6760    ;; #(
6761  no|'')
6762    ;; #(
6763  *)
6764    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6765 $as_echo "${with_sysroot}" >&6; }
6766    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6767    ;;
6768 esac
6769
6770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6771 $as_echo "${lt_sysroot:-no}" >&6; }
6772
6773
6774
6775
6776
6777 # Check whether --enable-libtool-lock was given.
6778 if test "${enable_libtool_lock+set}" = set; then :
6779   enableval=$enable_libtool_lock;
6780 fi
6781
6782 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6783
6784 # Some flags need to be propagated to the compiler or linker for good
6785 # libtool support.
6786 case $host in
6787 ia64-*-hpux*)
6788   # Find out which ABI we are using.
6789   echo 'int i;' > conftest.$ac_ext
6790   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791   (eval $ac_compile) 2>&5
6792   ac_status=$?
6793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6794   test $ac_status = 0; }; then
6795     case `/usr/bin/file conftest.$ac_objext` in
6796       *ELF-32*)
6797         HPUX_IA64_MODE="32"
6798         ;;
6799       *ELF-64*)
6800         HPUX_IA64_MODE="64"
6801         ;;
6802     esac
6803   fi
6804   rm -rf conftest*
6805   ;;
6806 *-*-irix6*)
6807   # Find out which ABI we are using.
6808   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6809   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6810   (eval $ac_compile) 2>&5
6811   ac_status=$?
6812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6813   test $ac_status = 0; }; then
6814     if test "$lt_cv_prog_gnu_ld" = yes; then
6815       case `/usr/bin/file conftest.$ac_objext` in
6816         *32-bit*)
6817           LD="${LD-ld} -melf32bsmip"
6818           ;;
6819         *N32*)
6820           LD="${LD-ld} -melf32bmipn32"
6821           ;;
6822         *64-bit*)
6823           LD="${LD-ld} -melf64bmip"
6824         ;;
6825       esac
6826     else
6827       case `/usr/bin/file conftest.$ac_objext` in
6828         *32-bit*)
6829           LD="${LD-ld} -32"
6830           ;;
6831         *N32*)
6832           LD="${LD-ld} -n32"
6833           ;;
6834         *64-bit*)
6835           LD="${LD-ld} -64"
6836           ;;
6837       esac
6838     fi
6839   fi
6840   rm -rf conftest*
6841   ;;
6842
6843 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6844 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6845   # Find out which ABI we are using.
6846   echo 'int i;' > conftest.$ac_ext
6847   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6848   (eval $ac_compile) 2>&5
6849   ac_status=$?
6850   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851   test $ac_status = 0; }; then
6852     case `/usr/bin/file conftest.o` in
6853       *32-bit*)
6854         case $host in
6855           x86_64-*kfreebsd*-gnu)
6856             LD="${LD-ld} -m elf_i386_fbsd"
6857             ;;
6858           x86_64-*linux*)
6859             LD="${LD-ld} -m elf_i386"
6860             ;;
6861           ppc64-*linux*|powerpc64-*linux*)
6862             LD="${LD-ld} -m elf32ppclinux"
6863             ;;
6864           s390x-*linux*)
6865             LD="${LD-ld} -m elf_s390"
6866             ;;
6867           sparc64-*linux*)
6868             LD="${LD-ld} -m elf32_sparc"
6869             ;;
6870         esac
6871         ;;
6872       *64-bit*)
6873         case $host in
6874           x86_64-*kfreebsd*-gnu)
6875             LD="${LD-ld} -m elf_x86_64_fbsd"
6876             ;;
6877           x86_64-*linux*)
6878             LD="${LD-ld} -m elf_x86_64"
6879             ;;
6880           ppc*-*linux*|powerpc*-*linux*)
6881             LD="${LD-ld} -m elf64ppc"
6882             ;;
6883           s390*-*linux*|s390*-*tpf*)
6884             LD="${LD-ld} -m elf64_s390"
6885             ;;
6886           sparc*-*linux*)
6887             LD="${LD-ld} -m elf64_sparc"
6888             ;;
6889         esac
6890         ;;
6891     esac
6892   fi
6893   rm -rf conftest*
6894   ;;
6895
6896 *-*-sco3.2v5*)
6897   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6898   SAVE_CFLAGS="$CFLAGS"
6899   CFLAGS="$CFLAGS -belf"
6900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6901 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6902 if ${lt_cv_cc_needs_belf+:} false; then :
6903   $as_echo_n "(cached) " >&6
6904 else
6905   ac_ext=c
6906 ac_cpp='$CPP $CPPFLAGS'
6907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6910
6911      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6912 /* end confdefs.h.  */
6913
6914 int
6915 main ()
6916 {
6917
6918   ;
6919   return 0;
6920 }
6921 _ACEOF
6922 if ac_fn_c_try_link "$LINENO"; then :
6923   lt_cv_cc_needs_belf=yes
6924 else
6925   lt_cv_cc_needs_belf=no
6926 fi
6927 rm -f core conftest.err conftest.$ac_objext \
6928     conftest$ac_exeext conftest.$ac_ext
6929      ac_ext=c
6930 ac_cpp='$CPP $CPPFLAGS'
6931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6934
6935 fi
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6937 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6938   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6939     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6940     CFLAGS="$SAVE_CFLAGS"
6941   fi
6942   ;;
6943 *-*solaris*)
6944   # Find out which ABI we are using.
6945   echo 'int i;' > conftest.$ac_ext
6946   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6947   (eval $ac_compile) 2>&5
6948   ac_status=$?
6949   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6950   test $ac_status = 0; }; then
6951     case `/usr/bin/file conftest.o` in
6952     *64-bit*)
6953       case $lt_cv_prog_gnu_ld in
6954       yes*)
6955         case $host in
6956         i?86-*-solaris*)
6957           LD="${LD-ld} -m elf_x86_64"
6958           ;;
6959         sparc*-*-solaris*)
6960           LD="${LD-ld} -m elf64_sparc"
6961           ;;
6962         esac
6963         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6964         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6965           LD="${LD-ld}_sol2"
6966         fi
6967         ;;
6968       *)
6969         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6970           LD="${LD-ld} -64"
6971         fi
6972         ;;
6973       esac
6974       ;;
6975     esac
6976   fi
6977   rm -rf conftest*
6978   ;;
6979 esac
6980
6981 need_locks="$enable_libtool_lock"
6982
6983 if test -n "$ac_tool_prefix"; then
6984   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6985 set dummy ${ac_tool_prefix}mt; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6989   $as_echo_n "(cached) " >&6
6990 else
6991   if test -n "$MANIFEST_TOOL"; then
6992   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6996 do
6997   IFS=$as_save_IFS
6998   test -z "$as_dir" && as_dir=.
6999     for ac_exec_ext in '' $ac_executable_extensions; do
7000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003     break 2
7004   fi
7005 done
7006   done
7007 IFS=$as_save_IFS
7008
7009 fi
7010 fi
7011 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7012 if test -n "$MANIFEST_TOOL"; then
7013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7014 $as_echo "$MANIFEST_TOOL" >&6; }
7015 else
7016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7018 fi
7019
7020
7021 fi
7022 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7023   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7024   # Extract the first word of "mt", so it can be a program name with args.
7025 set dummy mt; ac_word=$2
7026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027 $as_echo_n "checking for $ac_word... " >&6; }
7028 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7029   $as_echo_n "(cached) " >&6
7030 else
7031   if test -n "$ac_ct_MANIFEST_TOOL"; then
7032   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7033 else
7034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035 for as_dir in $PATH
7036 do
7037   IFS=$as_save_IFS
7038   test -z "$as_dir" && as_dir=.
7039     for ac_exec_ext in '' $ac_executable_extensions; do
7040   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7041     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7042     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043     break 2
7044   fi
7045 done
7046   done
7047 IFS=$as_save_IFS
7048
7049 fi
7050 fi
7051 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7052 if test -n "$ac_ct_MANIFEST_TOOL"; then
7053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7054 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7055 else
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057 $as_echo "no" >&6; }
7058 fi
7059
7060   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7061     MANIFEST_TOOL=":"
7062   else
7063     case $cross_compiling:$ac_tool_warned in
7064 yes:)
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067 ac_tool_warned=yes ;;
7068 esac
7069     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7070   fi
7071 else
7072   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7073 fi
7074
7075 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7077 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7078 if ${lt_cv_path_mainfest_tool+:} false; then :
7079   $as_echo_n "(cached) " >&6
7080 else
7081   lt_cv_path_mainfest_tool=no
7082   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7083   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7084   cat conftest.err >&5
7085   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7086     lt_cv_path_mainfest_tool=yes
7087   fi
7088   rm -f conftest*
7089 fi
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7091 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7092 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7093   MANIFEST_TOOL=:
7094 fi
7095
7096
7097
7098
7099
7100
7101   case $host_os in
7102     rhapsody* | darwin*)
7103     if test -n "$ac_tool_prefix"; then
7104   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7105 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107 $as_echo_n "checking for $ac_word... " >&6; }
7108 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7109   $as_echo_n "(cached) " >&6
7110 else
7111   if test -n "$DSYMUTIL"; then
7112   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7113 else
7114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119     for ac_exec_ext in '' $ac_executable_extensions; do
7120   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7121     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7122     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7123     break 2
7124   fi
7125 done
7126   done
7127 IFS=$as_save_IFS
7128
7129 fi
7130 fi
7131 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7132 if test -n "$DSYMUTIL"; then
7133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7134 $as_echo "$DSYMUTIL" >&6; }
7135 else
7136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137 $as_echo "no" >&6; }
7138 fi
7139
7140
7141 fi
7142 if test -z "$ac_cv_prog_DSYMUTIL"; then
7143   ac_ct_DSYMUTIL=$DSYMUTIL
7144   # Extract the first word of "dsymutil", so it can be a program name with args.
7145 set dummy dsymutil; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7149   $as_echo_n "(cached) " >&6
7150 else
7151   if test -n "$ac_ct_DSYMUTIL"; then
7152   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7156 do
7157   IFS=$as_save_IFS
7158   test -z "$as_dir" && as_dir=.
7159     for ac_exec_ext in '' $ac_executable_extensions; do
7160   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7162     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163     break 2
7164   fi
7165 done
7166   done
7167 IFS=$as_save_IFS
7168
7169 fi
7170 fi
7171 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7172 if test -n "$ac_ct_DSYMUTIL"; then
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7174 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7175 else
7176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7178 fi
7179
7180   if test "x$ac_ct_DSYMUTIL" = x; then
7181     DSYMUTIL=":"
7182   else
7183     case $cross_compiling:$ac_tool_warned in
7184 yes:)
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7187 ac_tool_warned=yes ;;
7188 esac
7189     DSYMUTIL=$ac_ct_DSYMUTIL
7190   fi
7191 else
7192   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7193 fi
7194
7195     if test -n "$ac_tool_prefix"; then
7196   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7197 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7199 $as_echo_n "checking for $ac_word... " >&6; }
7200 if ${ac_cv_prog_NMEDIT+:} false; then :
7201   $as_echo_n "(cached) " >&6
7202 else
7203   if test -n "$NMEDIT"; then
7204   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7205 else
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH
7208 do
7209   IFS=$as_save_IFS
7210   test -z "$as_dir" && as_dir=.
7211     for ac_exec_ext in '' $ac_executable_extensions; do
7212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7213     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7215     break 2
7216   fi
7217 done
7218   done
7219 IFS=$as_save_IFS
7220
7221 fi
7222 fi
7223 NMEDIT=$ac_cv_prog_NMEDIT
7224 if test -n "$NMEDIT"; then
7225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7226 $as_echo "$NMEDIT" >&6; }
7227 else
7228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7229 $as_echo "no" >&6; }
7230 fi
7231
7232
7233 fi
7234 if test -z "$ac_cv_prog_NMEDIT"; then
7235   ac_ct_NMEDIT=$NMEDIT
7236   # Extract the first word of "nmedit", so it can be a program name with args.
7237 set dummy nmedit; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7241   $as_echo_n "(cached) " >&6
7242 else
7243   if test -n "$ac_ct_NMEDIT"; then
7244   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249   IFS=$as_save_IFS
7250   test -z "$as_dir" && as_dir=.
7251     for ac_exec_ext in '' $ac_executable_extensions; do
7252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255     break 2
7256   fi
7257 done
7258   done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7264 if test -n "$ac_ct_NMEDIT"; then
7265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7266 $as_echo "$ac_ct_NMEDIT" >&6; }
7267 else
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7270 fi
7271
7272   if test "x$ac_ct_NMEDIT" = x; then
7273     NMEDIT=":"
7274   else
7275     case $cross_compiling:$ac_tool_warned in
7276 yes:)
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7279 ac_tool_warned=yes ;;
7280 esac
7281     NMEDIT=$ac_ct_NMEDIT
7282   fi
7283 else
7284   NMEDIT="$ac_cv_prog_NMEDIT"
7285 fi
7286
7287     if test -n "$ac_tool_prefix"; then
7288   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7289 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_LIPO+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   if test -n "$LIPO"; then
7296   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7300 do
7301   IFS=$as_save_IFS
7302   test -z "$as_dir" && as_dir=.
7303     for ac_exec_ext in '' $ac_executable_extensions; do
7304   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7306     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307     break 2
7308   fi
7309 done
7310   done
7311 IFS=$as_save_IFS
7312
7313 fi
7314 fi
7315 LIPO=$ac_cv_prog_LIPO
7316 if test -n "$LIPO"; then
7317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7318 $as_echo "$LIPO" >&6; }
7319 else
7320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7322 fi
7323
7324
7325 fi
7326 if test -z "$ac_cv_prog_LIPO"; then
7327   ac_ct_LIPO=$LIPO
7328   # Extract the first word of "lipo", so it can be a program name with args.
7329 set dummy lipo; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7333   $as_echo_n "(cached) " >&6
7334 else
7335   if test -n "$ac_ct_LIPO"; then
7336   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7340 do
7341   IFS=$as_save_IFS
7342   test -z "$as_dir" && as_dir=.
7343     for ac_exec_ext in '' $ac_executable_extensions; do
7344   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345     ac_cv_prog_ac_ct_LIPO="lipo"
7346     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347     break 2
7348   fi
7349 done
7350   done
7351 IFS=$as_save_IFS
7352
7353 fi
7354 fi
7355 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7356 if test -n "$ac_ct_LIPO"; then
7357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7358 $as_echo "$ac_ct_LIPO" >&6; }
7359 else
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7362 fi
7363
7364   if test "x$ac_ct_LIPO" = x; then
7365     LIPO=":"
7366   else
7367     case $cross_compiling:$ac_tool_warned in
7368 yes:)
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7371 ac_tool_warned=yes ;;
7372 esac
7373     LIPO=$ac_ct_LIPO
7374   fi
7375 else
7376   LIPO="$ac_cv_prog_LIPO"
7377 fi
7378
7379     if test -n "$ac_tool_prefix"; then
7380   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7381 set dummy ${ac_tool_prefix}otool; ac_word=$2
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7383 $as_echo_n "checking for $ac_word... " >&6; }
7384 if ${ac_cv_prog_OTOOL+:} false; then :
7385   $as_echo_n "(cached) " >&6
7386 else
7387   if test -n "$OTOOL"; then
7388   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7389 else
7390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 for as_dir in $PATH
7392 do
7393   IFS=$as_save_IFS
7394   test -z "$as_dir" && as_dir=.
7395     for ac_exec_ext in '' $ac_executable_extensions; do
7396   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7397     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7398     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7399     break 2
7400   fi
7401 done
7402   done
7403 IFS=$as_save_IFS
7404
7405 fi
7406 fi
7407 OTOOL=$ac_cv_prog_OTOOL
7408 if test -n "$OTOOL"; then
7409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7410 $as_echo "$OTOOL" >&6; }
7411 else
7412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }
7414 fi
7415
7416
7417 fi
7418 if test -z "$ac_cv_prog_OTOOL"; then
7419   ac_ct_OTOOL=$OTOOL
7420   # Extract the first word of "otool", so it can be a program name with args.
7421 set dummy otool; ac_word=$2
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 $as_echo_n "checking for $ac_word... " >&6; }
7424 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7425   $as_echo_n "(cached) " >&6
7426 else
7427   if test -n "$ac_ct_OTOOL"; then
7428   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7429 else
7430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431 for as_dir in $PATH
7432 do
7433   IFS=$as_save_IFS
7434   test -z "$as_dir" && as_dir=.
7435     for ac_exec_ext in '' $ac_executable_extensions; do
7436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437     ac_cv_prog_ac_ct_OTOOL="otool"
7438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439     break 2
7440   fi
7441 done
7442   done
7443 IFS=$as_save_IFS
7444
7445 fi
7446 fi
7447 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7448 if test -n "$ac_ct_OTOOL"; then
7449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7450 $as_echo "$ac_ct_OTOOL" >&6; }
7451 else
7452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }
7454 fi
7455
7456   if test "x$ac_ct_OTOOL" = x; then
7457     OTOOL=":"
7458   else
7459     case $cross_compiling:$ac_tool_warned in
7460 yes:)
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7463 ac_tool_warned=yes ;;
7464 esac
7465     OTOOL=$ac_ct_OTOOL
7466   fi
7467 else
7468   OTOOL="$ac_cv_prog_OTOOL"
7469 fi
7470
7471     if test -n "$ac_tool_prefix"; then
7472   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7473 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_OTOOL64+:} false; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   if test -n "$OTOOL64"; then
7480   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497 fi
7498 fi
7499 OTOOL64=$ac_cv_prog_OTOOL64
7500 if test -n "$OTOOL64"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7502 $as_echo "$OTOOL64" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508
7509 fi
7510 if test -z "$ac_cv_prog_OTOOL64"; then
7511   ac_ct_OTOOL64=$OTOOL64
7512   # Extract the first word of "otool64", so it can be a program name with args.
7513 set dummy otool64; ac_word=$2
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7515 $as_echo_n "checking for $ac_word... " >&6; }
7516 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7517   $as_echo_n "(cached) " >&6
7518 else
7519   if test -n "$ac_ct_OTOOL64"; then
7520   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7521 else
7522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7523 for as_dir in $PATH
7524 do
7525   IFS=$as_save_IFS
7526   test -z "$as_dir" && as_dir=.
7527     for ac_exec_ext in '' $ac_executable_extensions; do
7528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7529     ac_cv_prog_ac_ct_OTOOL64="otool64"
7530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7531     break 2
7532   fi
7533 done
7534   done
7535 IFS=$as_save_IFS
7536
7537 fi
7538 fi
7539 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7540 if test -n "$ac_ct_OTOOL64"; then
7541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7542 $as_echo "$ac_ct_OTOOL64" >&6; }
7543 else
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7545 $as_echo "no" >&6; }
7546 fi
7547
7548   if test "x$ac_ct_OTOOL64" = x; then
7549     OTOOL64=":"
7550   else
7551     case $cross_compiling:$ac_tool_warned in
7552 yes:)
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7554 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7555 ac_tool_warned=yes ;;
7556 esac
7557     OTOOL64=$ac_ct_OTOOL64
7558   fi
7559 else
7560   OTOOL64="$ac_cv_prog_OTOOL64"
7561 fi
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7590 $as_echo_n "checking for -single_module linker flag... " >&6; }
7591 if ${lt_cv_apple_cc_single_mod+:} false; then :
7592   $as_echo_n "(cached) " >&6
7593 else
7594   lt_cv_apple_cc_single_mod=no
7595       if test -z "${LT_MULTI_MODULE}"; then
7596         # By default we will add the -single_module flag. You can override
7597         # by either setting the environment variable LT_MULTI_MODULE
7598         # non-empty at configure time, or by adding -multi_module to the
7599         # link flags.
7600         rm -rf libconftest.dylib*
7601         echo "int foo(void){return 1;}" > conftest.c
7602         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7603 -dynamiclib -Wl,-single_module conftest.c" >&5
7604         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7605           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7606         _lt_result=$?
7607         # If there is a non-empty error log, and "single_module"
7608         # appears in it, assume the flag caused a linker warning
7609         if test -s conftest.err && $GREP single_module conftest.err; then
7610           cat conftest.err >&5
7611         # Otherwise, if the output was created with a 0 exit code from
7612         # the compiler, it worked.
7613         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7614           lt_cv_apple_cc_single_mod=yes
7615         else
7616           cat conftest.err >&5
7617         fi
7618         rm -rf libconftest.dylib*
7619         rm -f conftest.*
7620       fi
7621 fi
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7623 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7624
7625     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7626 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7627 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7628   $as_echo_n "(cached) " >&6
7629 else
7630   lt_cv_ld_exported_symbols_list=no
7631       save_LDFLAGS=$LDFLAGS
7632       echo "_main" > conftest.sym
7633       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7634       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h.  */
7636
7637 int
7638 main ()
7639 {
7640
7641   ;
7642   return 0;
7643 }
7644 _ACEOF
7645 if ac_fn_c_try_link "$LINENO"; then :
7646   lt_cv_ld_exported_symbols_list=yes
7647 else
7648   lt_cv_ld_exported_symbols_list=no
7649 fi
7650 rm -f core conftest.err conftest.$ac_objext \
7651     conftest$ac_exeext conftest.$ac_ext
7652         LDFLAGS="$save_LDFLAGS"
7653
7654 fi
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7656 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7657
7658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7659 $as_echo_n "checking for -force_load linker flag... " >&6; }
7660 if ${lt_cv_ld_force_load+:} false; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   lt_cv_ld_force_load=no
7664       cat > conftest.c << _LT_EOF
7665 int forced_loaded() { return 2;}
7666 _LT_EOF
7667       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7668       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7669       echo "$AR cru libconftest.a conftest.o" >&5
7670       $AR cru libconftest.a conftest.o 2>&5
7671       echo "$RANLIB libconftest.a" >&5
7672       $RANLIB libconftest.a 2>&5
7673       cat > conftest.c << _LT_EOF
7674 int main() { return 0;}
7675 _LT_EOF
7676       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7677       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7678       _lt_result=$?
7679       if test -s conftest.err && $GREP force_load conftest.err; then
7680         cat conftest.err >&5
7681       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7682         lt_cv_ld_force_load=yes
7683       else
7684         cat conftest.err >&5
7685       fi
7686         rm -f conftest.err libconftest.a conftest conftest.c
7687         rm -rf conftest.dSYM
7688
7689 fi
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7691 $as_echo "$lt_cv_ld_force_load" >&6; }
7692     case $host_os in
7693     rhapsody* | darwin1.[012])
7694       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7695     darwin1.*)
7696       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7697     darwin*) # darwin 5.x on
7698       # if running on 10.5 or later, the deployment target defaults
7699       # to the OS version, if on x86, and 10.4, the deployment
7700       # target defaults to 10.4. Don't you love it?
7701       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7702         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7703           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7704         10.[012]*)
7705           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7706         10.*)
7707           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7708       esac
7709     ;;
7710   esac
7711     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7712       _lt_dar_single_mod='$single_module'
7713     fi
7714     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7715       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7716     else
7717       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7718     fi
7719     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7720       _lt_dsymutil='~$DSYMUTIL $lib || :'
7721     else
7722       _lt_dsymutil=
7723     fi
7724     ;;
7725   esac
7726
7727 ac_ext=c
7728 ac_cpp='$CPP $CPPFLAGS'
7729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7733 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7734 # On Suns, sometimes $CPP names a directory.
7735 if test -n "$CPP" && test -d "$CPP"; then
7736   CPP=
7737 fi
7738 if test -z "$CPP"; then
7739   if ${ac_cv_prog_CPP+:} false; then :
7740   $as_echo_n "(cached) " >&6
7741 else
7742       # Double quotes because CPP needs to be expanded
7743     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7744     do
7745       ac_preproc_ok=false
7746 for ac_c_preproc_warn_flag in '' yes
7747 do
7748   # Use a header file that comes with gcc, so configuring glibc
7749   # with a fresh cross-compiler works.
7750   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7751   # <limits.h> exists even on freestanding compilers.
7752   # On the NeXT, cc -E runs the code through the compiler's parser,
7753   # not just through cpp. "Syntax error" is here to catch this case.
7754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755 /* end confdefs.h.  */
7756 #ifdef __STDC__
7757 # include <limits.h>
7758 #else
7759 # include <assert.h>
7760 #endif
7761                      Syntax error
7762 _ACEOF
7763 if ac_fn_c_try_cpp "$LINENO"; then :
7764
7765 else
7766   # Broken: fails on valid input.
7767 continue
7768 fi
7769 rm -f conftest.err conftest.i conftest.$ac_ext
7770
7771   # OK, works on sane cases.  Now check whether nonexistent headers
7772   # can be detected and how.
7773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7774 /* end confdefs.h.  */
7775 #include <ac_nonexistent.h>
7776 _ACEOF
7777 if ac_fn_c_try_cpp "$LINENO"; then :
7778   # Broken: success on invalid input.
7779 continue
7780 else
7781   # Passes both tests.
7782 ac_preproc_ok=:
7783 break
7784 fi
7785 rm -f conftest.err conftest.i conftest.$ac_ext
7786
7787 done
7788 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7789 rm -f conftest.i conftest.err conftest.$ac_ext
7790 if $ac_preproc_ok; then :
7791   break
7792 fi
7793
7794     done
7795     ac_cv_prog_CPP=$CPP
7796
7797 fi
7798   CPP=$ac_cv_prog_CPP
7799 else
7800   ac_cv_prog_CPP=$CPP
7801 fi
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7803 $as_echo "$CPP" >&6; }
7804 ac_preproc_ok=false
7805 for ac_c_preproc_warn_flag in '' yes
7806 do
7807   # Use a header file that comes with gcc, so configuring glibc
7808   # with a fresh cross-compiler works.
7809   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810   # <limits.h> exists even on freestanding compilers.
7811   # On the NeXT, cc -E runs the code through the compiler's parser,
7812   # not just through cpp. "Syntax error" is here to catch this case.
7813   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h.  */
7815 #ifdef __STDC__
7816 # include <limits.h>
7817 #else
7818 # include <assert.h>
7819 #endif
7820                      Syntax error
7821 _ACEOF
7822 if ac_fn_c_try_cpp "$LINENO"; then :
7823
7824 else
7825   # Broken: fails on valid input.
7826 continue
7827 fi
7828 rm -f conftest.err conftest.i conftest.$ac_ext
7829
7830   # OK, works on sane cases.  Now check whether nonexistent headers
7831   # can be detected and how.
7832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h.  */
7834 #include <ac_nonexistent.h>
7835 _ACEOF
7836 if ac_fn_c_try_cpp "$LINENO"; then :
7837   # Broken: success on invalid input.
7838 continue
7839 else
7840   # Passes both tests.
7841 ac_preproc_ok=:
7842 break
7843 fi
7844 rm -f conftest.err conftest.i conftest.$ac_ext
7845
7846 done
7847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7848 rm -f conftest.i conftest.err conftest.$ac_ext
7849 if $ac_preproc_ok; then :
7850
7851 else
7852   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7854 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7855 See \`config.log' for more details" "$LINENO" 5; }
7856 fi
7857
7858 ac_ext=c
7859 ac_cpp='$CPP $CPPFLAGS'
7860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7863
7864
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7866 $as_echo_n "checking for ANSI C header files... " >&6; }
7867 if ${ac_cv_header_stdc+:} false; then :
7868   $as_echo_n "(cached) " >&6
7869 else
7870   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7871 /* end confdefs.h.  */
7872 #include <stdlib.h>
7873 #include <stdarg.h>
7874 #include <string.h>
7875 #include <float.h>
7876
7877 int
7878 main ()
7879 {
7880
7881   ;
7882   return 0;
7883 }
7884 _ACEOF
7885 if ac_fn_c_try_compile "$LINENO"; then :
7886   ac_cv_header_stdc=yes
7887 else
7888   ac_cv_header_stdc=no
7889 fi
7890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7891
7892 if test $ac_cv_header_stdc = yes; then
7893   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7895 /* end confdefs.h.  */
7896 #include <string.h>
7897
7898 _ACEOF
7899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7900   $EGREP "memchr" >/dev/null 2>&1; then :
7901
7902 else
7903   ac_cv_header_stdc=no
7904 fi
7905 rm -f conftest*
7906
7907 fi
7908
7909 if test $ac_cv_header_stdc = yes; then
7910   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7911   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h.  */
7913 #include <stdlib.h>
7914
7915 _ACEOF
7916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7917   $EGREP "free" >/dev/null 2>&1; then :
7918
7919 else
7920   ac_cv_header_stdc=no
7921 fi
7922 rm -f conftest*
7923
7924 fi
7925
7926 if test $ac_cv_header_stdc = yes; then
7927   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7928   if test "$cross_compiling" = yes; then :
7929   :
7930 else
7931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h.  */
7933 #include <ctype.h>
7934 #include <stdlib.h>
7935 #if ((' ' & 0x0FF) == 0x020)
7936 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7937 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7938 #else
7939 # define ISLOWER(c) \
7940                    (('a' <= (c) && (c) <= 'i') \
7941                      || ('j' <= (c) && (c) <= 'r') \
7942                      || ('s' <= (c) && (c) <= 'z'))
7943 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7944 #endif
7945
7946 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7947 int
7948 main ()
7949 {
7950   int i;
7951   for (i = 0; i < 256; i++)
7952     if (XOR (islower (i), ISLOWER (i))
7953         || toupper (i) != TOUPPER (i))
7954       return 2;
7955   return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_run "$LINENO"; then :
7959
7960 else
7961   ac_cv_header_stdc=no
7962 fi
7963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7964   conftest.$ac_objext conftest.beam conftest.$ac_ext
7965 fi
7966
7967 fi
7968 fi
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7970 $as_echo "$ac_cv_header_stdc" >&6; }
7971 if test $ac_cv_header_stdc = yes; then
7972
7973 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7974
7975 fi
7976
7977 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7978 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7979                   inttypes.h stdint.h unistd.h
7980 do :
7981   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7982 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7983 "
7984 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7985   cat >>confdefs.h <<_ACEOF
7986 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7987 _ACEOF
7988
7989 fi
7990
7991 done
7992
7993
7994 for ac_header in dlfcn.h
7995 do :
7996   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7997 "
7998 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7999   cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DLFCN_H 1
8001 _ACEOF
8002
8003 fi
8004
8005 done
8006
8007
8008
8009
8010
8011 # Set options
8012
8013
8014
8015         enable_dlopen=no
8016
8017
8018   enable_win32_dll=no
8019
8020
8021             # Check whether --enable-shared was given.
8022 if test "${enable_shared+set}" = set; then :
8023   enableval=$enable_shared; p=${PACKAGE-default}
8024     case $enableval in
8025     yes) enable_shared=yes ;;
8026     no) enable_shared=no ;;
8027     *)
8028       enable_shared=no
8029       # Look at the argument we got.  We use all the common list separators.
8030       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8031       for pkg in $enableval; do
8032         IFS="$lt_save_ifs"
8033         if test "X$pkg" = "X$p"; then
8034           enable_shared=yes
8035         fi
8036       done
8037       IFS="$lt_save_ifs"
8038       ;;
8039     esac
8040 else
8041   enable_shared=yes
8042 fi
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052   # Check whether --enable-static was given.
8053 if test "${enable_static+set}" = set; then :
8054   enableval=$enable_static; p=${PACKAGE-default}
8055     case $enableval in
8056     yes) enable_static=yes ;;
8057     no) enable_static=no ;;
8058     *)
8059      enable_static=no
8060       # Look at the argument we got.  We use all the common list separators.
8061       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8062       for pkg in $enableval; do
8063         IFS="$lt_save_ifs"
8064         if test "X$pkg" = "X$p"; then
8065           enable_static=yes
8066         fi
8067       done
8068       IFS="$lt_save_ifs"
8069       ;;
8070     esac
8071 else
8072   enable_static=yes
8073 fi
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084 # Check whether --with-pic was given.
8085 if test "${with_pic+set}" = set; then :
8086   withval=$with_pic; lt_p=${PACKAGE-default}
8087     case $withval in
8088     yes|no) pic_mode=$withval ;;
8089     *)
8090       pic_mode=default
8091       # Look at the argument we got.  We use all the common list separators.
8092       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8093       for lt_pkg in $withval; do
8094         IFS="$lt_save_ifs"
8095         if test "X$lt_pkg" = "X$lt_p"; then
8096           pic_mode=yes
8097         fi
8098       done
8099       IFS="$lt_save_ifs"
8100       ;;
8101     esac
8102 else
8103   pic_mode=default
8104 fi
8105
8106
8107 test -z "$pic_mode" && pic_mode=default
8108
8109
8110
8111
8112
8113
8114
8115   # Check whether --enable-fast-install was given.
8116 if test "${enable_fast_install+set}" = set; then :
8117   enableval=$enable_fast_install; p=${PACKAGE-default}
8118     case $enableval in
8119     yes) enable_fast_install=yes ;;
8120     no) enable_fast_install=no ;;
8121     *)
8122       enable_fast_install=no
8123       # Look at the argument we got.  We use all the common list separators.
8124       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8125       for pkg in $enableval; do
8126         IFS="$lt_save_ifs"
8127         if test "X$pkg" = "X$p"; then
8128           enable_fast_install=yes
8129         fi
8130       done
8131       IFS="$lt_save_ifs"
8132       ;;
8133     esac
8134 else
8135   enable_fast_install=yes
8136 fi
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148 # This can be used to rebuild libtool when needed
8149 LIBTOOL_DEPS="$ltmain"
8150
8151 # Always use our own libtool.
8152 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183 test -z "$LN_S" && LN_S="ln -s"
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198 if test -n "${ZSH_VERSION+set}" ; then
8199    setopt NO_GLOB_SUBST
8200 fi
8201
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8203 $as_echo_n "checking for objdir... " >&6; }
8204 if ${lt_cv_objdir+:} false; then :
8205   $as_echo_n "(cached) " >&6
8206 else
8207   rm -f .libs 2>/dev/null
8208 mkdir .libs 2>/dev/null
8209 if test -d .libs; then
8210   lt_cv_objdir=.libs
8211 else
8212   # MS-DOS does not allow filenames that begin with a dot.
8213   lt_cv_objdir=_libs
8214 fi
8215 rmdir .libs 2>/dev/null
8216 fi
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8218 $as_echo "$lt_cv_objdir" >&6; }
8219 objdir=$lt_cv_objdir
8220
8221
8222
8223
8224
8225 cat >>confdefs.h <<_ACEOF
8226 #define LT_OBJDIR "$lt_cv_objdir/"
8227 _ACEOF
8228
8229
8230
8231
8232 case $host_os in
8233 aix3*)
8234   # AIX sometimes has problems with the GCC collect2 program.  For some
8235   # reason, if we set the COLLECT_NAMES environment variable, the problems
8236   # vanish in a puff of smoke.
8237   if test "X${COLLECT_NAMES+set}" != Xset; then
8238     COLLECT_NAMES=
8239     export COLLECT_NAMES
8240   fi
8241   ;;
8242 esac
8243
8244 # Global variables:
8245 ofile=libtool
8246 can_build_shared=yes
8247
8248 # All known linkers require a `.a' archive for static linking (except MSVC,
8249 # which needs '.lib').
8250 libext=a
8251
8252 with_gnu_ld="$lt_cv_prog_gnu_ld"
8253
8254 old_CC="$CC"
8255 old_CFLAGS="$CFLAGS"
8256
8257 # Set sane defaults for various variables
8258 test -z "$CC" && CC=cc
8259 test -z "$LTCC" && LTCC=$CC
8260 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8261 test -z "$LD" && LD=ld
8262 test -z "$ac_objext" && ac_objext=o
8263
8264 for cc_temp in $compiler""; do
8265   case $cc_temp in
8266     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8267     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8268     \-*) ;;
8269     *) break;;
8270   esac
8271 done
8272 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8273
8274
8275 # Only perform the check for file, if the check method requires it
8276 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8277 case $deplibs_check_method in
8278 file_magic*)
8279   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8281 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8282 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8283   $as_echo_n "(cached) " >&6
8284 else
8285   case $MAGIC_CMD in
8286 [\\/*] |  ?:[\\/]*)
8287   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8288   ;;
8289 *)
8290   lt_save_MAGIC_CMD="$MAGIC_CMD"
8291   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8292   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8293   for ac_dir in $ac_dummy; do
8294     IFS="$lt_save_ifs"
8295     test -z "$ac_dir" && ac_dir=.
8296     if test -f $ac_dir/${ac_tool_prefix}file; then
8297       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8298       if test -n "$file_magic_test_file"; then
8299         case $deplibs_check_method in
8300         "file_magic "*)
8301           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8302           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8303           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8304             $EGREP "$file_magic_regex" > /dev/null; then
8305             :
8306           else
8307             cat <<_LT_EOF 1>&2
8308
8309 *** Warning: the command libtool uses to detect shared libraries,
8310 *** $file_magic_cmd, produces output that libtool cannot recognize.
8311 *** The result is that libtool may fail to recognize shared libraries
8312 *** as such.  This will affect the creation of libtool libraries that
8313 *** depend on shared libraries, but programs linked with such libtool
8314 *** libraries will work regardless of this problem.  Nevertheless, you
8315 *** may want to report the problem to your system manager and/or to
8316 *** bug-libtool@gnu.org
8317
8318 _LT_EOF
8319           fi ;;
8320         esac
8321       fi
8322       break
8323     fi
8324   done
8325   IFS="$lt_save_ifs"
8326   MAGIC_CMD="$lt_save_MAGIC_CMD"
8327   ;;
8328 esac
8329 fi
8330
8331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8332 if test -n "$MAGIC_CMD"; then
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8334 $as_echo "$MAGIC_CMD" >&6; }
8335 else
8336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8338 fi
8339
8340
8341
8342
8343
8344 if test -z "$lt_cv_path_MAGIC_CMD"; then
8345   if test -n "$ac_tool_prefix"; then
8346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8347 $as_echo_n "checking for file... " >&6; }
8348 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8349   $as_echo_n "(cached) " >&6
8350 else
8351   case $MAGIC_CMD in
8352 [\\/*] |  ?:[\\/]*)
8353   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8354   ;;
8355 *)
8356   lt_save_MAGIC_CMD="$MAGIC_CMD"
8357   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8358   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8359   for ac_dir in $ac_dummy; do
8360     IFS="$lt_save_ifs"
8361     test -z "$ac_dir" && ac_dir=.
8362     if test -f $ac_dir/file; then
8363       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8364       if test -n "$file_magic_test_file"; then
8365         case $deplibs_check_method in
8366         "file_magic "*)
8367           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8368           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8369           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8370             $EGREP "$file_magic_regex" > /dev/null; then
8371             :
8372           else
8373             cat <<_LT_EOF 1>&2
8374
8375 *** Warning: the command libtool uses to detect shared libraries,
8376 *** $file_magic_cmd, produces output that libtool cannot recognize.
8377 *** The result is that libtool may fail to recognize shared libraries
8378 *** as such.  This will affect the creation of libtool libraries that
8379 *** depend on shared libraries, but programs linked with such libtool
8380 *** libraries will work regardless of this problem.  Nevertheless, you
8381 *** may want to report the problem to your system manager and/or to
8382 *** bug-libtool@gnu.org
8383
8384 _LT_EOF
8385           fi ;;
8386         esac
8387       fi
8388       break
8389     fi
8390   done
8391   IFS="$lt_save_ifs"
8392   MAGIC_CMD="$lt_save_MAGIC_CMD"
8393   ;;
8394 esac
8395 fi
8396
8397 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8398 if test -n "$MAGIC_CMD"; then
8399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8400 $as_echo "$MAGIC_CMD" >&6; }
8401 else
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8403 $as_echo "no" >&6; }
8404 fi
8405
8406
8407   else
8408     MAGIC_CMD=:
8409   fi
8410 fi
8411
8412   fi
8413   ;;
8414 esac
8415
8416 # Use C for the default configuration in the libtool script
8417
8418 lt_save_CC="$CC"
8419 ac_ext=c
8420 ac_cpp='$CPP $CPPFLAGS'
8421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424
8425
8426 # Source file extension for C test sources.
8427 ac_ext=c
8428
8429 # Object file extension for compiled C test sources.
8430 objext=o
8431 objext=$objext
8432
8433 # Code to be used in simple compile tests
8434 lt_simple_compile_test_code="int some_variable = 0;"
8435
8436 # Code to be used in simple link tests
8437 lt_simple_link_test_code='int main(){return(0);}'
8438
8439
8440
8441
8442
8443
8444
8445 # If no C compiler was specified, use CC.
8446 LTCC=${LTCC-"$CC"}
8447
8448 # If no C compiler flags were specified, use CFLAGS.
8449 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8450
8451 # Allow CC to be a program name with arguments.
8452 compiler=$CC
8453
8454 # Save the default compiler, since it gets overwritten when the other
8455 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8456 compiler_DEFAULT=$CC
8457
8458 # save warnings/boilerplate of simple test code
8459 ac_outfile=conftest.$ac_objext
8460 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8461 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8462 _lt_compiler_boilerplate=`cat conftest.err`
8463 $RM conftest*
8464
8465 ac_outfile=conftest.$ac_objext
8466 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8467 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8468 _lt_linker_boilerplate=`cat conftest.err`
8469 $RM -r conftest*
8470
8471
8472 ## CAVEAT EMPTOR:
8473 ## There is no encapsulation within the following macros, do not change
8474 ## the running order or otherwise move them around unless you know exactly
8475 ## what you are doing...
8476 if test -n "$compiler"; then
8477
8478 lt_prog_compiler_no_builtin_flag=
8479
8480 if test "$GCC" = yes; then
8481   case $cc_basename in
8482   nvcc*)
8483     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8484   *)
8485     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8486   esac
8487
8488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8489 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8490 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8491   $as_echo_n "(cached) " >&6
8492 else
8493   lt_cv_prog_compiler_rtti_exceptions=no
8494    ac_outfile=conftest.$ac_objext
8495    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496    lt_compiler_flag="-fno-rtti -fno-exceptions"
8497    # Insert the option either (1) after the last *FLAGS variable, or
8498    # (2) before a word containing "conftest.", or (3) at the end.
8499    # Note that $ac_compile itself does not contain backslashes and begins
8500    # with a dollar sign (not a hyphen), so the echo should work correctly.
8501    # The option is referenced via a variable to avoid confusing sed.
8502    lt_compile=`echo "$ac_compile" | $SED \
8503    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8504    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8505    -e 's:$: $lt_compiler_flag:'`
8506    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8507    (eval "$lt_compile" 2>conftest.err)
8508    ac_status=$?
8509    cat conftest.err >&5
8510    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511    if (exit $ac_status) && test -s "$ac_outfile"; then
8512      # The compiler can only warn and ignore the option if not recognized
8513      # So say no if there are warnings other than the usual output.
8514      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8515      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8517        lt_cv_prog_compiler_rtti_exceptions=yes
8518      fi
8519    fi
8520    $RM conftest*
8521
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8524 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8525
8526 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8527     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8528 else
8529     :
8530 fi
8531
8532 fi
8533
8534
8535
8536
8537
8538
8539   lt_prog_compiler_wl=
8540 lt_prog_compiler_pic=
8541 lt_prog_compiler_static=
8542
8543
8544   if test "$GCC" = yes; then
8545     lt_prog_compiler_wl='-Wl,'
8546     lt_prog_compiler_static='-static'
8547
8548     case $host_os in
8549       aix*)
8550       # All AIX code is PIC.
8551       if test "$host_cpu" = ia64; then
8552         # AIX 5 now supports IA64 processor
8553         lt_prog_compiler_static='-Bstatic'
8554       fi
8555       ;;
8556
8557     amigaos*)
8558       case $host_cpu in
8559       powerpc)
8560             # see comment about AmigaOS4 .so support
8561             lt_prog_compiler_pic='-fPIC'
8562         ;;
8563       m68k)
8564             # FIXME: we need at least 68020 code to build shared libraries, but
8565             # adding the `-m68020' flag to GCC prevents building anything better,
8566             # like `-m68040'.
8567             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8568         ;;
8569       esac
8570       ;;
8571
8572     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8573       # PIC is the default for these OSes.
8574       ;;
8575
8576     mingw* | cygwin* | pw32* | os2* | cegcc*)
8577       # This hack is so that the source file can tell whether it is being
8578       # built for inclusion in a dll (and should export symbols for example).
8579       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8580       # (--disable-auto-import) libraries
8581       lt_prog_compiler_pic='-DDLL_EXPORT'
8582       ;;
8583
8584     darwin* | rhapsody*)
8585       # PIC is the default on this platform
8586       # Common symbols not allowed in MH_DYLIB files
8587       lt_prog_compiler_pic='-fno-common'
8588       ;;
8589
8590     haiku*)
8591       # PIC is the default for Haiku.
8592       # The "-static" flag exists, but is broken.
8593       lt_prog_compiler_static=
8594       ;;
8595
8596     hpux*)
8597       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8598       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8599       # sets the default TLS model and affects inlining.
8600       case $host_cpu in
8601       hppa*64*)
8602         # +Z the default
8603         ;;
8604       *)
8605         lt_prog_compiler_pic='-fPIC'
8606         ;;
8607       esac
8608       ;;
8609
8610     interix[3-9]*)
8611       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8612       # Instead, we relocate shared libraries at runtime.
8613       ;;
8614
8615     msdosdjgpp*)
8616       # Just because we use GCC doesn't mean we suddenly get shared libraries
8617       # on systems that don't support them.
8618       lt_prog_compiler_can_build_shared=no
8619       enable_shared=no
8620       ;;
8621
8622     *nto* | *qnx*)
8623       # QNX uses GNU C++, but need to define -shared option too, otherwise
8624       # it will coredump.
8625       lt_prog_compiler_pic='-fPIC -shared'
8626       ;;
8627
8628     sysv4*MP*)
8629       if test -d /usr/nec; then
8630         lt_prog_compiler_pic=-Kconform_pic
8631       fi
8632       ;;
8633
8634     *)
8635       lt_prog_compiler_pic='-fPIC'
8636       ;;
8637     esac
8638
8639     case $cc_basename in
8640     nvcc*) # Cuda Compiler Driver 2.2
8641       lt_prog_compiler_wl='-Xlinker '
8642       if test -n "$lt_prog_compiler_pic"; then
8643         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8644       fi
8645       ;;
8646     esac
8647   else
8648     # PORTME Check for flag to pass linker flags through the system compiler.
8649     case $host_os in
8650     aix*)
8651       lt_prog_compiler_wl='-Wl,'
8652       if test "$host_cpu" = ia64; then
8653         # AIX 5 now supports IA64 processor
8654         lt_prog_compiler_static='-Bstatic'
8655       else
8656         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8657       fi
8658       ;;
8659
8660     mingw* | cygwin* | pw32* | os2* | cegcc*)
8661       # This hack is so that the source file can tell whether it is being
8662       # built for inclusion in a dll (and should export symbols for example).
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       ;;
8665
8666     hpux9* | hpux10* | hpux11*)
8667       lt_prog_compiler_wl='-Wl,'
8668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669       # not for PA HP-UX.
8670       case $host_cpu in
8671       hppa*64*|ia64*)
8672         # +Z the default
8673         ;;
8674       *)
8675         lt_prog_compiler_pic='+Z'
8676         ;;
8677       esac
8678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679       lt_prog_compiler_static='${wl}-a ${wl}archive'
8680       ;;
8681
8682     irix5* | irix6* | nonstopux*)
8683       lt_prog_compiler_wl='-Wl,'
8684       # PIC (with -KPIC) is the default.
8685       lt_prog_compiler_static='-non_shared'
8686       ;;
8687
8688     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8689       case $cc_basename in
8690       # old Intel for x86_64 which still supported -KPIC.
8691       ecc*)
8692         lt_prog_compiler_wl='-Wl,'
8693         lt_prog_compiler_pic='-KPIC'
8694         lt_prog_compiler_static='-static'
8695         ;;
8696       # icc used to be incompatible with GCC.
8697       # ICC 10 doesn't accept -KPIC any more.
8698       icc* | ifort*)
8699         lt_prog_compiler_wl='-Wl,'
8700         lt_prog_compiler_pic='-fPIC'
8701         lt_prog_compiler_static='-static'
8702         ;;
8703       # Lahey Fortran 8.1.
8704       lf95*)
8705         lt_prog_compiler_wl='-Wl,'
8706         lt_prog_compiler_pic='--shared'
8707         lt_prog_compiler_static='--static'
8708         ;;
8709       nagfor*)
8710         # NAG Fortran compiler
8711         lt_prog_compiler_wl='-Wl,-Wl,,'
8712         lt_prog_compiler_pic='-PIC'
8713         lt_prog_compiler_static='-Bstatic'
8714         ;;
8715       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8716         # Portland Group compilers (*not* the Pentium gcc compiler,
8717         # which looks to be a dead project)
8718         lt_prog_compiler_wl='-Wl,'
8719         lt_prog_compiler_pic='-fpic'
8720         lt_prog_compiler_static='-Bstatic'
8721         ;;
8722       ccc*)
8723         lt_prog_compiler_wl='-Wl,'
8724         # All Alpha code is PIC.
8725         lt_prog_compiler_static='-non_shared'
8726         ;;
8727       xl* | bgxl* | bgf* | mpixl*)
8728         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8729         lt_prog_compiler_wl='-Wl,'
8730         lt_prog_compiler_pic='-qpic'
8731         lt_prog_compiler_static='-qstaticlink'
8732         ;;
8733       *)
8734         case `$CC -V 2>&1 | sed 5q` in
8735         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8736           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8737           lt_prog_compiler_pic='-KPIC'
8738           lt_prog_compiler_static='-Bstatic'
8739           lt_prog_compiler_wl=''
8740           ;;
8741         *Sun\ F* | *Sun*Fortran*)
8742           lt_prog_compiler_pic='-KPIC'
8743           lt_prog_compiler_static='-Bstatic'
8744           lt_prog_compiler_wl='-Qoption ld '
8745           ;;
8746         *Sun\ C*)
8747           # Sun C 5.9
8748           lt_prog_compiler_pic='-KPIC'
8749           lt_prog_compiler_static='-Bstatic'
8750           lt_prog_compiler_wl='-Wl,'
8751           ;;
8752         *Intel*\ [CF]*Compiler*)
8753           lt_prog_compiler_wl='-Wl,'
8754           lt_prog_compiler_pic='-fPIC'
8755           lt_prog_compiler_static='-static'
8756           ;;
8757         *Portland\ Group*)
8758           lt_prog_compiler_wl='-Wl,'
8759           lt_prog_compiler_pic='-fpic'
8760           lt_prog_compiler_static='-Bstatic'
8761           ;;
8762         esac
8763         ;;
8764       esac
8765       ;;
8766
8767     newsos6)
8768       lt_prog_compiler_pic='-KPIC'
8769       lt_prog_compiler_static='-Bstatic'
8770       ;;
8771
8772     *nto* | *qnx*)
8773       # QNX uses GNU C++, but need to define -shared option too, otherwise
8774       # it will coredump.
8775       lt_prog_compiler_pic='-fPIC -shared'
8776       ;;
8777
8778     osf3* | osf4* | osf5*)
8779       lt_prog_compiler_wl='-Wl,'
8780       # All OSF/1 code is PIC.
8781       lt_prog_compiler_static='-non_shared'
8782       ;;
8783
8784     rdos*)
8785       lt_prog_compiler_static='-non_shared'
8786       ;;
8787
8788     solaris*)
8789       lt_prog_compiler_pic='-KPIC'
8790       lt_prog_compiler_static='-Bstatic'
8791       case $cc_basename in
8792       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8793         lt_prog_compiler_wl='-Qoption ld ';;
8794       *)
8795         lt_prog_compiler_wl='-Wl,';;
8796       esac
8797       ;;
8798
8799     sunos4*)
8800       lt_prog_compiler_wl='-Qoption ld '
8801       lt_prog_compiler_pic='-PIC'
8802       lt_prog_compiler_static='-Bstatic'
8803       ;;
8804
8805     sysv4 | sysv4.2uw2* | sysv4.3*)
8806       lt_prog_compiler_wl='-Wl,'
8807       lt_prog_compiler_pic='-KPIC'
8808       lt_prog_compiler_static='-Bstatic'
8809       ;;
8810
8811     sysv4*MP*)
8812       if test -d /usr/nec ;then
8813         lt_prog_compiler_pic='-Kconform_pic'
8814         lt_prog_compiler_static='-Bstatic'
8815       fi
8816       ;;
8817
8818     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8819       lt_prog_compiler_wl='-Wl,'
8820       lt_prog_compiler_pic='-KPIC'
8821       lt_prog_compiler_static='-Bstatic'
8822       ;;
8823
8824     unicos*)
8825       lt_prog_compiler_wl='-Wl,'
8826       lt_prog_compiler_can_build_shared=no
8827       ;;
8828
8829     uts4*)
8830       lt_prog_compiler_pic='-pic'
8831       lt_prog_compiler_static='-Bstatic'
8832       ;;
8833
8834     *)
8835       lt_prog_compiler_can_build_shared=no
8836       ;;
8837     esac
8838   fi
8839
8840 case $host_os in
8841   # For platforms which do not support PIC, -DPIC is meaningless:
8842   *djgpp*)
8843     lt_prog_compiler_pic=
8844     ;;
8845   *)
8846     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8847     ;;
8848 esac
8849
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8851 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8852 if ${lt_cv_prog_compiler_pic+:} false; then :
8853   $as_echo_n "(cached) " >&6
8854 else
8855   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8856 fi
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8858 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8859 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8860
8861 #
8862 # Check to make sure the PIC flag actually works.
8863 #
8864 if test -n "$lt_prog_compiler_pic"; then
8865   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8866 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8867 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8868   $as_echo_n "(cached) " >&6
8869 else
8870   lt_cv_prog_compiler_pic_works=no
8871    ac_outfile=conftest.$ac_objext
8872    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8874    # Insert the option either (1) after the last *FLAGS variable, or
8875    # (2) before a word containing "conftest.", or (3) at the end.
8876    # Note that $ac_compile itself does not contain backslashes and begins
8877    # with a dollar sign (not a hyphen), so the echo should work correctly.
8878    # The option is referenced via a variable to avoid confusing sed.
8879    lt_compile=`echo "$ac_compile" | $SED \
8880    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8881    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8882    -e 's:$: $lt_compiler_flag:'`
8883    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8884    (eval "$lt_compile" 2>conftest.err)
8885    ac_status=$?
8886    cat conftest.err >&5
8887    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888    if (exit $ac_status) && test -s "$ac_outfile"; then
8889      # The compiler can only warn and ignore the option if not recognized
8890      # So say no if there are warnings other than the usual output.
8891      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8892      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8893      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8894        lt_cv_prog_compiler_pic_works=yes
8895      fi
8896    fi
8897    $RM conftest*
8898
8899 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8901 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8902
8903 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8904     case $lt_prog_compiler_pic in
8905      "" | " "*) ;;
8906      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8907      esac
8908 else
8909     lt_prog_compiler_pic=
8910      lt_prog_compiler_can_build_shared=no
8911 fi
8912
8913 fi
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925 #
8926 # Check to make sure the static flag actually works.
8927 #
8928 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8930 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8931 if ${lt_cv_prog_compiler_static_works+:} false; then :
8932   $as_echo_n "(cached) " >&6
8933 else
8934   lt_cv_prog_compiler_static_works=no
8935    save_LDFLAGS="$LDFLAGS"
8936    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8937    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8938    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8939      # The linker can only warn and ignore the option if not recognized
8940      # So say no if there are warnings
8941      if test -s conftest.err; then
8942        # Append any errors to the config.log.
8943        cat conftest.err 1>&5
8944        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8945        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8946        if diff conftest.exp conftest.er2 >/dev/null; then
8947          lt_cv_prog_compiler_static_works=yes
8948        fi
8949      else
8950        lt_cv_prog_compiler_static_works=yes
8951      fi
8952    fi
8953    $RM -r conftest*
8954    LDFLAGS="$save_LDFLAGS"
8955
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8958 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8959
8960 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8961     :
8962 else
8963     lt_prog_compiler_static=
8964 fi
8965
8966
8967
8968
8969
8970
8971
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8973 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8974 if ${lt_cv_prog_compiler_c_o+:} false; then :
8975   $as_echo_n "(cached) " >&6
8976 else
8977   lt_cv_prog_compiler_c_o=no
8978    $RM -r conftest 2>/dev/null
8979    mkdir conftest
8980    cd conftest
8981    mkdir out
8982    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8983
8984    lt_compiler_flag="-o out/conftest2.$ac_objext"
8985    # Insert the option either (1) after the last *FLAGS variable, or
8986    # (2) before a word containing "conftest.", or (3) at the end.
8987    # Note that $ac_compile itself does not contain backslashes and begins
8988    # with a dollar sign (not a hyphen), so the echo should work correctly.
8989    lt_compile=`echo "$ac_compile" | $SED \
8990    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8991    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8992    -e 's:$: $lt_compiler_flag:'`
8993    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8994    (eval "$lt_compile" 2>out/conftest.err)
8995    ac_status=$?
8996    cat out/conftest.err >&5
8997    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8999    then
9000      # The compiler can only warn and ignore the option if not recognized
9001      # So say no if there are warnings
9002      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9003      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9004      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9005        lt_cv_prog_compiler_c_o=yes
9006      fi
9007    fi
9008    chmod u+w . 2>&5
9009    $RM conftest*
9010    # SGI C++ compiler will create directory out/ii_files/ for
9011    # template instantiation
9012    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9013    $RM out/* && rmdir out
9014    cd ..
9015    $RM -r conftest
9016    $RM conftest*
9017
9018 fi
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9020 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9021
9022
9023
9024
9025
9026
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9029 if ${lt_cv_prog_compiler_c_o+:} false; then :
9030   $as_echo_n "(cached) " >&6
9031 else
9032   lt_cv_prog_compiler_c_o=no
9033    $RM -r conftest 2>/dev/null
9034    mkdir conftest
9035    cd conftest
9036    mkdir out
9037    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9038
9039    lt_compiler_flag="-o out/conftest2.$ac_objext"
9040    # Insert the option either (1) after the last *FLAGS variable, or
9041    # (2) before a word containing "conftest.", or (3) at the end.
9042    # Note that $ac_compile itself does not contain backslashes and begins
9043    # with a dollar sign (not a hyphen), so the echo should work correctly.
9044    lt_compile=`echo "$ac_compile" | $SED \
9045    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9046    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9047    -e 's:$: $lt_compiler_flag:'`
9048    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9049    (eval "$lt_compile" 2>out/conftest.err)
9050    ac_status=$?
9051    cat out/conftest.err >&5
9052    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9054    then
9055      # The compiler can only warn and ignore the option if not recognized
9056      # So say no if there are warnings
9057      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9058      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9059      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9060        lt_cv_prog_compiler_c_o=yes
9061      fi
9062    fi
9063    chmod u+w . 2>&5
9064    $RM conftest*
9065    # SGI C++ compiler will create directory out/ii_files/ for
9066    # template instantiation
9067    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9068    $RM out/* && rmdir out
9069    cd ..
9070    $RM -r conftest
9071    $RM conftest*
9072
9073 fi
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9075 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9076
9077
9078
9079
9080 hard_links="nottested"
9081 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9082   # do not overwrite the value of need_locks provided by the user
9083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9084 $as_echo_n "checking if we can lock with hard links... " >&6; }
9085   hard_links=yes
9086   $RM conftest*
9087   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9088   touch conftest.a
9089   ln conftest.a conftest.b 2>&5 || hard_links=no
9090   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9092 $as_echo "$hard_links" >&6; }
9093   if test "$hard_links" = no; then
9094     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9095 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9096     need_locks=warn
9097   fi
9098 else
9099   need_locks=no
9100 fi
9101
9102
9103
9104
9105
9106
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9108 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9109
9110   runpath_var=
9111   allow_undefined_flag=
9112   always_export_symbols=no
9113   archive_cmds=
9114   archive_expsym_cmds=
9115   compiler_needs_object=no
9116   enable_shared_with_static_runtimes=no
9117   export_dynamic_flag_spec=
9118   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9119   hardcode_automatic=no
9120   hardcode_direct=no
9121   hardcode_direct_absolute=no
9122   hardcode_libdir_flag_spec=
9123   hardcode_libdir_separator=
9124   hardcode_minus_L=no
9125   hardcode_shlibpath_var=unsupported
9126   inherit_rpath=no
9127   link_all_deplibs=unknown
9128   module_cmds=
9129   module_expsym_cmds=
9130   old_archive_from_new_cmds=
9131   old_archive_from_expsyms_cmds=
9132   thread_safe_flag_spec=
9133   whole_archive_flag_spec=
9134   # include_expsyms should be a list of space-separated symbols to be *always*
9135   # included in the symbol list
9136   include_expsyms=
9137   # exclude_expsyms can be an extended regexp of symbols to exclude
9138   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9139   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9140   # as well as any symbol that contains `d'.
9141   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9142   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9143   # platforms (ab)use it in PIC code, but their linkers get confused if
9144   # the symbol is explicitly referenced.  Since portable code cannot
9145   # rely on this symbol name, it's probably fine to never include it in
9146   # preloaded symbol tables.
9147   # Exclude shared library initialization/finalization symbols.
9148   extract_expsyms_cmds=
9149
9150   case $host_os in
9151   cygwin* | mingw* | pw32* | cegcc*)
9152     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9153     # When not using gcc, we currently assume that we are using
9154     # Microsoft Visual C++.
9155     if test "$GCC" != yes; then
9156       with_gnu_ld=no
9157     fi
9158     ;;
9159   interix*)
9160     # we just hope/assume this is gcc and not c89 (= MSVC++)
9161     with_gnu_ld=yes
9162     ;;
9163   openbsd*)
9164     with_gnu_ld=no
9165     ;;
9166   esac
9167
9168   ld_shlibs=yes
9169
9170   # On some targets, GNU ld is compatible enough with the native linker
9171   # that we're better off using the native interface for both.
9172   lt_use_gnu_ld_interface=no
9173   if test "$with_gnu_ld" = yes; then
9174     case $host_os in
9175       aix*)
9176         # The AIX port of GNU ld has always aspired to compatibility
9177         # with the native linker.  However, as the warning in the GNU ld
9178         # block says, versions before 2.19.5* couldn't really create working
9179         # shared libraries, regardless of the interface used.
9180         case `$LD -v 2>&1` in
9181           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9182           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9183           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9184           *)
9185             lt_use_gnu_ld_interface=yes
9186             ;;
9187         esac
9188         ;;
9189       *)
9190         lt_use_gnu_ld_interface=yes
9191         ;;
9192     esac
9193   fi
9194
9195   if test "$lt_use_gnu_ld_interface" = yes; then
9196     # If archive_cmds runs LD, not CC, wlarc should be empty
9197     wlarc='${wl}'
9198
9199     # Set some defaults for GNU ld with shared library support. These
9200     # are reset later if shared libraries are not supported. Putting them
9201     # here allows them to be overridden if necessary.
9202     runpath_var=LD_RUN_PATH
9203     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9204     export_dynamic_flag_spec='${wl}--export-dynamic'
9205     # ancient GNU ld didn't support --whole-archive et. al.
9206     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9207       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9208     else
9209       whole_archive_flag_spec=
9210     fi
9211     supports_anon_versioning=no
9212     case `$LD -v 2>&1` in
9213       *GNU\ gold*) supports_anon_versioning=yes ;;
9214       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9215       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9216       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9217       *\ 2.11.*) ;; # other 2.11 versions
9218       *) supports_anon_versioning=yes ;;
9219     esac
9220
9221     # See if GNU ld supports shared libraries.
9222     case $host_os in
9223     aix[3-9]*)
9224       # On AIX/PPC, the GNU linker is very broken
9225       if test "$host_cpu" != ia64; then
9226         ld_shlibs=no
9227         cat <<_LT_EOF 1>&2
9228
9229 *** Warning: the GNU linker, at least up to release 2.19, is reported
9230 *** to be unable to reliably create shared libraries on AIX.
9231 *** Therefore, libtool is disabling shared libraries support.  If you
9232 *** really care for shared libraries, you may want to install binutils
9233 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9234 *** You will then need to restart the configuration process.
9235
9236 _LT_EOF
9237       fi
9238       ;;
9239
9240     amigaos*)
9241       case $host_cpu in
9242       powerpc)
9243             # see comment about AmigaOS4 .so support
9244             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9245             archive_expsym_cmds=''
9246         ;;
9247       m68k)
9248             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)'
9249             hardcode_libdir_flag_spec='-L$libdir'
9250             hardcode_minus_L=yes
9251         ;;
9252       esac
9253       ;;
9254
9255     beos*)
9256       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9257         allow_undefined_flag=unsupported
9258         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9259         # support --undefined.  This deserves some investigation.  FIXME
9260         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261       else
9262         ld_shlibs=no
9263       fi
9264       ;;
9265
9266     cygwin* | mingw* | pw32* | cegcc*)
9267       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9268       # as there is no search path for DLLs.
9269       hardcode_libdir_flag_spec='-L$libdir'
9270       export_dynamic_flag_spec='${wl}--export-all-symbols'
9271       allow_undefined_flag=unsupported
9272       always_export_symbols=no
9273       enable_shared_with_static_runtimes=yes
9274       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'
9275       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9276
9277       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9278         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9279         # If the export-symbols file already is a .def file (1st line
9280         # is EXPORTS), use it as is; otherwise, prepend...
9281         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9282           cp $export_symbols $output_objdir/$soname.def;
9283         else
9284           echo EXPORTS > $output_objdir/$soname.def;
9285           cat $export_symbols >> $output_objdir/$soname.def;
9286         fi~
9287         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9288       else
9289         ld_shlibs=no
9290       fi
9291       ;;
9292
9293     haiku*)
9294       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9295       link_all_deplibs=yes
9296       ;;
9297
9298     interix[3-9]*)
9299       hardcode_direct=no
9300       hardcode_shlibpath_var=no
9301       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9302       export_dynamic_flag_spec='${wl}-E'
9303       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9304       # Instead, shared libraries are loaded at an image base (0x10000000 by
9305       # default) and relocated if they conflict, which is a slow very memory
9306       # consuming and fragmenting process.  To avoid this, we pick a random,
9307       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9308       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9309       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9310       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'
9311       ;;
9312
9313     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9314       tmp_diet=no
9315       if test "$host_os" = linux-dietlibc; then
9316         case $cc_basename in
9317           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9318         esac
9319       fi
9320       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9321          && test "$tmp_diet" = no
9322       then
9323         tmp_addflag=' $pic_flag'
9324         tmp_sharedflag='-shared'
9325         case $cc_basename,$host_cpu in
9326         pgcc*)                          # Portland Group C compiler
9327           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'
9328           tmp_addflag=' $pic_flag'
9329           ;;
9330         pgf77* | pgf90* | pgf95* | pgfortran*)
9331                                         # Portland Group f77 and f90 compilers
9332           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'
9333           tmp_addflag=' $pic_flag -Mnomain' ;;
9334         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9335           tmp_addflag=' -i_dynamic' ;;
9336         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9337           tmp_addflag=' -i_dynamic -nofor_main' ;;
9338         ifc* | ifort*)                  # Intel Fortran compiler
9339           tmp_addflag=' -nofor_main' ;;
9340         lf95*)                          # Lahey Fortran 8.1
9341           whole_archive_flag_spec=
9342           tmp_sharedflag='--shared' ;;
9343         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9344           tmp_sharedflag='-qmkshrobj'
9345           tmp_addflag= ;;
9346         nvcc*)  # Cuda Compiler Driver 2.2
9347           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'
9348           compiler_needs_object=yes
9349           ;;
9350         esac
9351         case `$CC -V 2>&1 | sed 5q` in
9352         *Sun\ C*)                       # Sun C 5.9
9353           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'
9354           compiler_needs_object=yes
9355           tmp_sharedflag='-G' ;;
9356         *Sun\ F*)                       # Sun Fortran 8.3
9357           tmp_sharedflag='-G' ;;
9358         esac
9359         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9360
9361         if test "x$supports_anon_versioning" = xyes; then
9362           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9363             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9364             echo "local: *; };" >> $output_objdir/$libname.ver~
9365             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9366         fi
9367
9368         case $cc_basename in
9369         xlf* | bgf* | bgxlf* | mpixlf*)
9370           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9371           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9372           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9373           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9374           if test "x$supports_anon_versioning" = xyes; then
9375             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9376               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9377               echo "local: *; };" >> $output_objdir/$libname.ver~
9378               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9379           fi
9380           ;;
9381         esac
9382       else
9383         ld_shlibs=no
9384       fi
9385       ;;
9386
9387     netbsd*)
9388       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9389         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9390         wlarc=
9391       else
9392         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9393         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9394       fi
9395       ;;
9396
9397     solaris*)
9398       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9399         ld_shlibs=no
9400         cat <<_LT_EOF 1>&2
9401
9402 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9403 *** create shared libraries on Solaris systems.  Therefore, libtool
9404 *** is disabling shared libraries support.  We urge you to upgrade GNU
9405 *** binutils to release 2.9.1 or newer.  Another option is to modify
9406 *** your PATH or compiler configuration so that the native linker is
9407 *** used, and then restart.
9408
9409 _LT_EOF
9410       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9411         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9412         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9413       else
9414         ld_shlibs=no
9415       fi
9416       ;;
9417
9418     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9419       case `$LD -v 2>&1` in
9420         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9421         ld_shlibs=no
9422         cat <<_LT_EOF 1>&2
9423
9424 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9425 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9426 *** is disabling shared libraries support.  We urge you to upgrade GNU
9427 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9428 *** your PATH or compiler configuration so that the native linker is
9429 *** used, and then restart.
9430
9431 _LT_EOF
9432         ;;
9433         *)
9434           # For security reasons, it is highly recommended that you always
9435           # use absolute paths for naming shared libraries, and exclude the
9436           # DT_RUNPATH tag from executables and libraries.  But doing so
9437           # requires that you compile everything twice, which is a pain.
9438           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9439             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9440             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9441             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9442           else
9443             ld_shlibs=no
9444           fi
9445         ;;
9446       esac
9447       ;;
9448
9449     sunos4*)
9450       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9451       wlarc=
9452       hardcode_direct=yes
9453       hardcode_shlibpath_var=no
9454       ;;
9455
9456     *)
9457       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9458         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9459         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9460       else
9461         ld_shlibs=no
9462       fi
9463       ;;
9464     esac
9465
9466     if test "$ld_shlibs" = no; then
9467       runpath_var=
9468       hardcode_libdir_flag_spec=
9469       export_dynamic_flag_spec=
9470       whole_archive_flag_spec=
9471     fi
9472   else
9473     # PORTME fill in a description of your system's linker (not GNU ld)
9474     case $host_os in
9475     aix3*)
9476       allow_undefined_flag=unsupported
9477       always_export_symbols=yes
9478       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'
9479       # Note: this linker hardcodes the directories in LIBPATH if there
9480       # are no directories specified by -L.
9481       hardcode_minus_L=yes
9482       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9483         # Neither direct hardcoding nor static linking is supported with a
9484         # broken collect2.
9485         hardcode_direct=unsupported
9486       fi
9487       ;;
9488
9489     aix[4-9]*)
9490       if test "$host_cpu" = ia64; then
9491         # On IA64, the linker does run time linking by default, so we don't
9492         # have to do anything special.
9493         aix_use_runtimelinking=no
9494         exp_sym_flag='-Bexport'
9495         no_entry_flag=""
9496       else
9497         # If we're using GNU nm, then we don't want the "-C" option.
9498         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9499         # Also, AIX nm treats weak defined symbols like other global
9500         # defined symbols, whereas GNU nm marks them as "W".
9501         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9502           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'
9503         else
9504           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'
9505         fi
9506         aix_use_runtimelinking=no
9507
9508         # Test if we are trying to use run time linking or normal
9509         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9510         # need to do runtime linking.
9511         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9512           for ld_flag in $LDFLAGS; do
9513           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9514             aix_use_runtimelinking=yes
9515             break
9516           fi
9517           done
9518           ;;
9519         esac
9520
9521         exp_sym_flag='-bexport'
9522         no_entry_flag='-bnoentry'
9523       fi
9524
9525       # When large executables or shared objects are built, AIX ld can
9526       # have problems creating the table of contents.  If linking a library
9527       # or program results in "error TOC overflow" add -mminimal-toc to
9528       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9529       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9530
9531       archive_cmds=''
9532       hardcode_direct=yes
9533       hardcode_direct_absolute=yes
9534       hardcode_libdir_separator=':'
9535       link_all_deplibs=yes
9536       file_list_spec='${wl}-f,'
9537
9538       if test "$GCC" = yes; then
9539         case $host_os in aix4.[012]|aix4.[012].*)
9540         # We only want to do this on AIX 4.2 and lower, the check
9541         # below for broken collect2 doesn't work under 4.3+
9542           collect2name=`${CC} -print-prog-name=collect2`
9543           if test -f "$collect2name" &&
9544            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9545           then
9546           # We have reworked collect2
9547           :
9548           else
9549           # We have old collect2
9550           hardcode_direct=unsupported
9551           # It fails to find uninstalled libraries when the uninstalled
9552           # path is not listed in the libpath.  Setting hardcode_minus_L
9553           # to unsupported forces relinking
9554           hardcode_minus_L=yes
9555           hardcode_libdir_flag_spec='-L$libdir'
9556           hardcode_libdir_separator=
9557           fi
9558           ;;
9559         esac
9560         shared_flag='-shared'
9561         if test "$aix_use_runtimelinking" = yes; then
9562           shared_flag="$shared_flag "'${wl}-G'
9563         fi
9564       else
9565         # not using gcc
9566         if test "$host_cpu" = ia64; then
9567         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9568         # chokes on -Wl,-G. The following line is correct:
9569           shared_flag='-G'
9570         else
9571           if test "$aix_use_runtimelinking" = yes; then
9572             shared_flag='${wl}-G'
9573           else
9574             shared_flag='${wl}-bM:SRE'
9575           fi
9576         fi
9577       fi
9578
9579       export_dynamic_flag_spec='${wl}-bexpall'
9580       # It seems that -bexpall does not export symbols beginning with
9581       # underscore (_), so it is better to generate a list of symbols to export.
9582       always_export_symbols=yes
9583       if test "$aix_use_runtimelinking" = yes; then
9584         # Warning - without using the other runtime loading flags (-brtl),
9585         # -berok will link without error, but may produce a broken library.
9586         allow_undefined_flag='-berok'
9587         # Determine the default libpath from the value encoded in an
9588         # empty executable.
9589         if test "${lt_cv_aix_libpath+set}" = set; then
9590   aix_libpath=$lt_cv_aix_libpath
9591 else
9592   if ${lt_cv_aix_libpath_+:} false; then :
9593   $as_echo_n "(cached) " >&6
9594 else
9595   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h.  */
9597
9598 int
9599 main ()
9600 {
9601
9602   ;
9603   return 0;
9604 }
9605 _ACEOF
9606 if ac_fn_c_try_link "$LINENO"; then :
9607
9608   lt_aix_libpath_sed='
9609       /Import File Strings/,/^$/ {
9610           /^0/ {
9611               s/^0  *\([^ ]*\) *$/\1/
9612               p
9613           }
9614       }'
9615   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616   # Check for a 64-bit object if we didn't find anything.
9617   if test -z "$lt_cv_aix_libpath_"; then
9618     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9619   fi
9620 fi
9621 rm -f core conftest.err conftest.$ac_objext \
9622     conftest$ac_exeext conftest.$ac_ext
9623   if test -z "$lt_cv_aix_libpath_"; then
9624     lt_cv_aix_libpath_="/usr/lib:/lib"
9625   fi
9626
9627 fi
9628
9629   aix_libpath=$lt_cv_aix_libpath_
9630 fi
9631
9632         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9633         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"
9634       else
9635         if test "$host_cpu" = ia64; then
9636           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9637           allow_undefined_flag="-z nodefs"
9638           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"
9639         else
9640          # Determine the default libpath from the value encoded in an
9641          # empty executable.
9642          if test "${lt_cv_aix_libpath+set}" = set; then
9643   aix_libpath=$lt_cv_aix_libpath
9644 else
9645   if ${lt_cv_aix_libpath_+:} false; then :
9646   $as_echo_n "(cached) " >&6
9647 else
9648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9649 /* end confdefs.h.  */
9650
9651 int
9652 main ()
9653 {
9654
9655   ;
9656   return 0;
9657 }
9658 _ACEOF
9659 if ac_fn_c_try_link "$LINENO"; then :
9660
9661   lt_aix_libpath_sed='
9662       /Import File Strings/,/^$/ {
9663           /^0/ {
9664               s/^0  *\([^ ]*\) *$/\1/
9665               p
9666           }
9667       }'
9668   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9669   # Check for a 64-bit object if we didn't find anything.
9670   if test -z "$lt_cv_aix_libpath_"; then
9671     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9672   fi
9673 fi
9674 rm -f core conftest.err conftest.$ac_objext \
9675     conftest$ac_exeext conftest.$ac_ext
9676   if test -z "$lt_cv_aix_libpath_"; then
9677     lt_cv_aix_libpath_="/usr/lib:/lib"
9678   fi
9679
9680 fi
9681
9682   aix_libpath=$lt_cv_aix_libpath_
9683 fi
9684
9685          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9686           # Warning - without using the other run time loading flags,
9687           # -berok will link without error, but may produce a broken library.
9688           no_undefined_flag=' ${wl}-bernotok'
9689           allow_undefined_flag=' ${wl}-berok'
9690           if test "$with_gnu_ld" = yes; then
9691             # We only use this code for GNU lds that support --whole-archive.
9692             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9693           else
9694             # Exported symbols can be pulled into shared objects from archives
9695             whole_archive_flag_spec='$convenience'
9696           fi
9697           archive_cmds_need_lc=yes
9698           # This is similar to how AIX traditionally builds its shared libraries.
9699           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'
9700         fi
9701       fi
9702       ;;
9703
9704     amigaos*)
9705       case $host_cpu in
9706       powerpc)
9707             # see comment about AmigaOS4 .so support
9708             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9709             archive_expsym_cmds=''
9710         ;;
9711       m68k)
9712             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)'
9713             hardcode_libdir_flag_spec='-L$libdir'
9714             hardcode_minus_L=yes
9715         ;;
9716       esac
9717       ;;
9718
9719     bsdi[45]*)
9720       export_dynamic_flag_spec=-rdynamic
9721       ;;
9722
9723     cygwin* | mingw* | pw32* | cegcc*)
9724       # When not using gcc, we currently assume that we are using
9725       # Microsoft Visual C++.
9726       # hardcode_libdir_flag_spec is actually meaningless, as there is
9727       # no search path for DLLs.
9728       case $cc_basename in
9729       cl*)
9730         # Native MSVC
9731         hardcode_libdir_flag_spec=' '
9732         allow_undefined_flag=unsupported
9733         always_export_symbols=yes
9734         file_list_spec='@'
9735         # Tell ltmain to make .lib files, not .a files.
9736         libext=lib
9737         # Tell ltmain to make .dll files, not .so files.
9738         shrext_cmds=".dll"
9739         # FIXME: Setting linknames here is a bad hack.
9740         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9741         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9742             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9743           else
9744             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9745           fi~
9746           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9747           linknames='
9748         # The linker will not automatically build a static lib if we build a DLL.
9749         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9750         enable_shared_with_static_runtimes=yes
9751         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9752         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9753         # Don't use ranlib
9754         old_postinstall_cmds='chmod 644 $oldlib'
9755         postlink_cmds='lt_outputfile="@OUTPUT@"~
9756           lt_tool_outputfile="@TOOL_OUTPUT@"~
9757           case $lt_outputfile in
9758             *.exe|*.EXE) ;;
9759             *)
9760               lt_outputfile="$lt_outputfile.exe"
9761               lt_tool_outputfile="$lt_tool_outputfile.exe"
9762               ;;
9763           esac~
9764           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9765             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9766             $RM "$lt_outputfile.manifest";
9767           fi'
9768         ;;
9769       *)
9770         # Assume MSVC wrapper
9771         hardcode_libdir_flag_spec=' '
9772         allow_undefined_flag=unsupported
9773         # Tell ltmain to make .lib files, not .a files.
9774         libext=lib
9775         # Tell ltmain to make .dll files, not .so files.
9776         shrext_cmds=".dll"
9777         # FIXME: Setting linknames here is a bad hack.
9778         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9779         # The linker will automatically build a .lib file if we build a DLL.
9780         old_archive_from_new_cmds='true'
9781         # FIXME: Should let the user specify the lib program.
9782         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9783         enable_shared_with_static_runtimes=yes
9784         ;;
9785       esac
9786       ;;
9787
9788     darwin* | rhapsody*)
9789
9790
9791   archive_cmds_need_lc=no
9792   hardcode_direct=no
9793   hardcode_automatic=yes
9794   hardcode_shlibpath_var=unsupported
9795   if test "$lt_cv_ld_force_load" = "yes"; then
9796     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\"`'
9797
9798   else
9799     whole_archive_flag_spec=''
9800   fi
9801   link_all_deplibs=yes
9802   allow_undefined_flag="$_lt_dar_allow_undefined"
9803   case $cc_basename in
9804      ifort*) _lt_dar_can_shared=yes ;;
9805      *) _lt_dar_can_shared=$GCC ;;
9806   esac
9807   if test "$_lt_dar_can_shared" = "yes"; then
9808     output_verbose_link_cmd=func_echo_all
9809     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9810     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9811     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}"
9812     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}"
9813
9814   else
9815   ld_shlibs=no
9816   fi
9817
9818       ;;
9819
9820     dgux*)
9821       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9822       hardcode_libdir_flag_spec='-L$libdir'
9823       hardcode_shlibpath_var=no
9824       ;;
9825
9826     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9827     # support.  Future versions do this automatically, but an explicit c++rt0.o
9828     # does not break anything, and helps significantly (at the cost of a little
9829     # extra space).
9830     freebsd2.2*)
9831       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9832       hardcode_libdir_flag_spec='-R$libdir'
9833       hardcode_direct=yes
9834       hardcode_shlibpath_var=no
9835       ;;
9836
9837     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9838     freebsd2.*)
9839       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9840       hardcode_direct=yes
9841       hardcode_minus_L=yes
9842       hardcode_shlibpath_var=no
9843       ;;
9844
9845     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9846     freebsd* | dragonfly*)
9847       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9848       hardcode_libdir_flag_spec='-R$libdir'
9849       hardcode_direct=yes
9850       hardcode_shlibpath_var=no
9851       ;;
9852
9853     hpux9*)
9854       if test "$GCC" = yes; then
9855         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'
9856       else
9857         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'
9858       fi
9859       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9860       hardcode_libdir_separator=:
9861       hardcode_direct=yes
9862
9863       # hardcode_minus_L: Not really in the search PATH,
9864       # but as the default location of the library.
9865       hardcode_minus_L=yes
9866       export_dynamic_flag_spec='${wl}-E'
9867       ;;
9868
9869     hpux10*)
9870       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9871         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9872       else
9873         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9874       fi
9875       if test "$with_gnu_ld" = no; then
9876         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9877         hardcode_libdir_separator=:
9878         hardcode_direct=yes
9879         hardcode_direct_absolute=yes
9880         export_dynamic_flag_spec='${wl}-E'
9881         # hardcode_minus_L: Not really in the search PATH,
9882         # but as the default location of the library.
9883         hardcode_minus_L=yes
9884       fi
9885       ;;
9886
9887     hpux11*)
9888       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9889         case $host_cpu in
9890         hppa*64*)
9891           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9892           ;;
9893         ia64*)
9894           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9895           ;;
9896         *)
9897           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9898           ;;
9899         esac
9900       else
9901         case $host_cpu in
9902         hppa*64*)
9903           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9904           ;;
9905         ia64*)
9906           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9907           ;;
9908         *)
9909
9910           # Older versions of the 11.00 compiler do not understand -b yet
9911           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9912           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9913 $as_echo_n "checking if $CC understands -b... " >&6; }
9914 if ${lt_cv_prog_compiler__b+:} false; then :
9915   $as_echo_n "(cached) " >&6
9916 else
9917   lt_cv_prog_compiler__b=no
9918    save_LDFLAGS="$LDFLAGS"
9919    LDFLAGS="$LDFLAGS -b"
9920    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9921    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9922      # The linker can only warn and ignore the option if not recognized
9923      # So say no if there are warnings
9924      if test -s conftest.err; then
9925        # Append any errors to the config.log.
9926        cat conftest.err 1>&5
9927        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9928        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9929        if diff conftest.exp conftest.er2 >/dev/null; then
9930          lt_cv_prog_compiler__b=yes
9931        fi
9932      else
9933        lt_cv_prog_compiler__b=yes
9934      fi
9935    fi
9936    $RM -r conftest*
9937    LDFLAGS="$save_LDFLAGS"
9938
9939 fi
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9941 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9942
9943 if test x"$lt_cv_prog_compiler__b" = xyes; then
9944     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9945 else
9946     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9947 fi
9948
9949           ;;
9950         esac
9951       fi
9952       if test "$with_gnu_ld" = no; then
9953         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9954         hardcode_libdir_separator=:
9955
9956         case $host_cpu in
9957         hppa*64*|ia64*)
9958           hardcode_direct=no
9959           hardcode_shlibpath_var=no
9960           ;;
9961         *)
9962           hardcode_direct=yes
9963           hardcode_direct_absolute=yes
9964           export_dynamic_flag_spec='${wl}-E'
9965
9966           # hardcode_minus_L: Not really in the search PATH,
9967           # but as the default location of the library.
9968           hardcode_minus_L=yes
9969           ;;
9970         esac
9971       fi
9972       ;;
9973
9974     irix5* | irix6* | nonstopux*)
9975       if test "$GCC" = yes; then
9976         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'
9977         # Try to use the -exported_symbol ld option, if it does not
9978         # work, assume that -exports_file does not work either and
9979         # implicitly export all symbols.
9980         # This should be the same for all languages, so no per-tag cache variable.
9981         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9982 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9983 if ${lt_cv_irix_exported_symbol+:} false; then :
9984   $as_echo_n "(cached) " >&6
9985 else
9986   save_LDFLAGS="$LDFLAGS"
9987            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9988            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h.  */
9990 int foo (void) { return 0; }
9991 _ACEOF
9992 if ac_fn_c_try_link "$LINENO"; then :
9993   lt_cv_irix_exported_symbol=yes
9994 else
9995   lt_cv_irix_exported_symbol=no
9996 fi
9997 rm -f core conftest.err conftest.$ac_objext \
9998     conftest$ac_exeext conftest.$ac_ext
9999            LDFLAGS="$save_LDFLAGS"
10000 fi
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10002 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10003         if test "$lt_cv_irix_exported_symbol" = yes; then
10004           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'
10005         fi
10006       else
10007         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'
10008         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'
10009       fi
10010       archive_cmds_need_lc='no'
10011       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10012       hardcode_libdir_separator=:
10013       inherit_rpath=yes
10014       link_all_deplibs=yes
10015       ;;
10016
10017     netbsd*)
10018       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10019         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10020       else
10021         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10022       fi
10023       hardcode_libdir_flag_spec='-R$libdir'
10024       hardcode_direct=yes
10025       hardcode_shlibpath_var=no
10026       ;;
10027
10028     newsos6)
10029       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10030       hardcode_direct=yes
10031       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10032       hardcode_libdir_separator=:
10033       hardcode_shlibpath_var=no
10034       ;;
10035
10036     *nto* | *qnx*)
10037       ;;
10038
10039     openbsd*)
10040       if test -f /usr/libexec/ld.so; then
10041         hardcode_direct=yes
10042         hardcode_shlibpath_var=no
10043         hardcode_direct_absolute=yes
10044         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10045           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10046           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10047           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10048           export_dynamic_flag_spec='${wl}-E'
10049         else
10050           case $host_os in
10051            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10052              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10053              hardcode_libdir_flag_spec='-R$libdir'
10054              ;;
10055            *)
10056              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10057              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10058              ;;
10059           esac
10060         fi
10061       else
10062         ld_shlibs=no
10063       fi
10064       ;;
10065
10066     os2*)
10067       hardcode_libdir_flag_spec='-L$libdir'
10068       hardcode_minus_L=yes
10069       allow_undefined_flag=unsupported
10070       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'
10071       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10072       ;;
10073
10074     osf3*)
10075       if test "$GCC" = yes; then
10076         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10077         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'
10078       else
10079         allow_undefined_flag=' -expect_unresolved \*'
10080         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'
10081       fi
10082       archive_cmds_need_lc='no'
10083       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10084       hardcode_libdir_separator=:
10085       ;;
10086
10087     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10088       if test "$GCC" = yes; then
10089         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10090         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'
10091         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10092       else
10093         allow_undefined_flag=' -expect_unresolved \*'
10094         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'
10095         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~
10096         $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'
10097
10098         # Both c and cxx compiler support -rpath directly
10099         hardcode_libdir_flag_spec='-rpath $libdir'
10100       fi
10101       archive_cmds_need_lc='no'
10102       hardcode_libdir_separator=:
10103       ;;
10104
10105     solaris*)
10106       no_undefined_flag=' -z defs'
10107       if test "$GCC" = yes; then
10108         wlarc='${wl}'
10109         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10110         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10111           $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'
10112       else
10113         case `$CC -V 2>&1` in
10114         *"Compilers 5.0"*)
10115           wlarc=''
10116           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10118           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10119           ;;
10120         *)
10121           wlarc='${wl}'
10122           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10123           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10124           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10125           ;;
10126         esac
10127       fi
10128       hardcode_libdir_flag_spec='-R$libdir'
10129       hardcode_shlibpath_var=no
10130       case $host_os in
10131       solaris2.[0-5] | solaris2.[0-5].*) ;;
10132       *)
10133         # The compiler driver will combine and reorder linker options,
10134         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10135         # but is careful enough not to reorder.
10136         # Supported since Solaris 2.6 (maybe 2.5.1?)
10137         if test "$GCC" = yes; then
10138           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10139         else
10140           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10141         fi
10142         ;;
10143       esac
10144       link_all_deplibs=yes
10145       ;;
10146
10147     sunos4*)
10148       if test "x$host_vendor" = xsequent; then
10149         # Use $CC to link under sequent, because it throws in some extra .o
10150         # files that make .init and .fini sections work.
10151         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10152       else
10153         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10154       fi
10155       hardcode_libdir_flag_spec='-L$libdir'
10156       hardcode_direct=yes
10157       hardcode_minus_L=yes
10158       hardcode_shlibpath_var=no
10159       ;;
10160
10161     sysv4)
10162       case $host_vendor in
10163         sni)
10164           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10165           hardcode_direct=yes # is this really true???
10166         ;;
10167         siemens)
10168           ## LD is ld it makes a PLAMLIB
10169           ## CC just makes a GrossModule.
10170           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10171           reload_cmds='$CC -r -o $output$reload_objs'
10172           hardcode_direct=no
10173         ;;
10174         motorola)
10175           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10176           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10177         ;;
10178       esac
10179       runpath_var='LD_RUN_PATH'
10180       hardcode_shlibpath_var=no
10181       ;;
10182
10183     sysv4.3*)
10184       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10185       hardcode_shlibpath_var=no
10186       export_dynamic_flag_spec='-Bexport'
10187       ;;
10188
10189     sysv4*MP*)
10190       if test -d /usr/nec; then
10191         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10192         hardcode_shlibpath_var=no
10193         runpath_var=LD_RUN_PATH
10194         hardcode_runpath_var=yes
10195         ld_shlibs=yes
10196       fi
10197       ;;
10198
10199     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10200       no_undefined_flag='${wl}-z,text'
10201       archive_cmds_need_lc=no
10202       hardcode_shlibpath_var=no
10203       runpath_var='LD_RUN_PATH'
10204
10205       if test "$GCC" = yes; then
10206         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10207         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10208       else
10209         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10210         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10211       fi
10212       ;;
10213
10214     sysv5* | sco3.2v5* | sco5v6*)
10215       # Note: We can NOT use -z defs as we might desire, because we do not
10216       # link with -lc, and that would cause any symbols used from libc to
10217       # always be unresolved, which means just about no library would
10218       # ever link correctly.  If we're not using GNU ld we use -z text
10219       # though, which does catch some bad symbols but isn't as heavy-handed
10220       # as -z defs.
10221       no_undefined_flag='${wl}-z,text'
10222       allow_undefined_flag='${wl}-z,nodefs'
10223       archive_cmds_need_lc=no
10224       hardcode_shlibpath_var=no
10225       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10226       hardcode_libdir_separator=':'
10227       link_all_deplibs=yes
10228       export_dynamic_flag_spec='${wl}-Bexport'
10229       runpath_var='LD_RUN_PATH'
10230
10231       if test "$GCC" = yes; then
10232         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10233         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10234       else
10235         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10236         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10237       fi
10238       ;;
10239
10240     uts4*)
10241       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10242       hardcode_libdir_flag_spec='-L$libdir'
10243       hardcode_shlibpath_var=no
10244       ;;
10245
10246     *)
10247       ld_shlibs=no
10248       ;;
10249     esac
10250
10251     if test x$host_vendor = xsni; then
10252       case $host in
10253       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10254         export_dynamic_flag_spec='${wl}-Blargedynsym'
10255         ;;
10256       esac
10257     fi
10258   fi
10259
10260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10261 $as_echo "$ld_shlibs" >&6; }
10262 test "$ld_shlibs" = no && can_build_shared=no
10263
10264 with_gnu_ld=$with_gnu_ld
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280 #
10281 # Do we need to explicitly link libc?
10282 #
10283 case "x$archive_cmds_need_lc" in
10284 x|xyes)
10285   # Assume -lc should be added
10286   archive_cmds_need_lc=yes
10287
10288   if test "$enable_shared" = yes && test "$GCC" = yes; then
10289     case $archive_cmds in
10290     *'~'*)
10291       # FIXME: we may have to deal with multi-command sequences.
10292       ;;
10293     '$CC '*)
10294       # Test whether the compiler implicitly links with -lc since on some
10295       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10296       # to ld, don't add -lc before -lgcc.
10297       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10298 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10299 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10300   $as_echo_n "(cached) " >&6
10301 else
10302   $RM conftest*
10303         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10304
10305         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10306   (eval $ac_compile) 2>&5
10307   ac_status=$?
10308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10309   test $ac_status = 0; } 2>conftest.err; then
10310           soname=conftest
10311           lib=conftest
10312           libobjs=conftest.$ac_objext
10313           deplibs=
10314           wl=$lt_prog_compiler_wl
10315           pic_flag=$lt_prog_compiler_pic
10316           compiler_flags=-v
10317           linker_flags=-v
10318           verstring=
10319           output_objdir=.
10320           libname=conftest
10321           lt_save_allow_undefined_flag=$allow_undefined_flag
10322           allow_undefined_flag=
10323           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10324   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10325   ac_status=$?
10326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10327   test $ac_status = 0; }
10328           then
10329             lt_cv_archive_cmds_need_lc=no
10330           else
10331             lt_cv_archive_cmds_need_lc=yes
10332           fi
10333           allow_undefined_flag=$lt_save_allow_undefined_flag
10334         else
10335           cat conftest.err 1>&5
10336         fi
10337         $RM conftest*
10338
10339 fi
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10341 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10342       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10343       ;;
10344     esac
10345   fi
10346   ;;
10347 esac
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10501 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10502
10503 if test "$GCC" = yes; then
10504   case $host_os in
10505     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10506     *) lt_awk_arg="/^libraries:/" ;;
10507   esac
10508   case $host_os in
10509     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10510     *) lt_sed_strip_eq="s,=/,/,g" ;;
10511   esac
10512   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10513   case $lt_search_path_spec in
10514   *\;*)
10515     # if the path contains ";" then we assume it to be the separator
10516     # otherwise default to the standard path separator (i.e. ":") - it is
10517     # assumed that no part of a normal pathname contains ";" but that should
10518     # okay in the real world where ";" in dirpaths is itself problematic.
10519     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10520     ;;
10521   *)
10522     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10523     ;;
10524   esac
10525   # Ok, now we have the path, separated by spaces, we can step through it
10526   # and add multilib dir if necessary.
10527   lt_tmp_lt_search_path_spec=
10528   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10529   for lt_sys_path in $lt_search_path_spec; do
10530     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10531       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10532     else
10533       test -d "$lt_sys_path" && \
10534         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10535     fi
10536   done
10537   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10538 BEGIN {RS=" "; FS="/|\n";} {
10539   lt_foo="";
10540   lt_count=0;
10541   for (lt_i = NF; lt_i > 0; lt_i--) {
10542     if ($lt_i != "" && $lt_i != ".") {
10543       if ($lt_i == "..") {
10544         lt_count++;
10545       } else {
10546         if (lt_count == 0) {
10547           lt_foo="/" $lt_i lt_foo;
10548         } else {
10549           lt_count--;
10550         }
10551       }
10552     }
10553   }
10554   if (lt_foo != "") { lt_freq[lt_foo]++; }
10555   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10556 }'`
10557   # AWK program above erroneously prepends '/' to C:/dos/paths
10558   # for these hosts.
10559   case $host_os in
10560     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10561       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10562   esac
10563   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10564 else
10565   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10566 fi
10567 library_names_spec=
10568 libname_spec='lib$name'
10569 soname_spec=
10570 shrext_cmds=".so"
10571 postinstall_cmds=
10572 postuninstall_cmds=
10573 finish_cmds=
10574 finish_eval=
10575 shlibpath_var=
10576 shlibpath_overrides_runpath=unknown
10577 version_type=none
10578 dynamic_linker="$host_os ld.so"
10579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10580 need_lib_prefix=unknown
10581 hardcode_into_libs=no
10582
10583 # when you set need_version to no, make sure it does not cause -set_version
10584 # flags to be left without arguments
10585 need_version=unknown
10586
10587 case $host_os in
10588 aix3*)
10589   version_type=linux # correct to gnu/linux during the next big refactor
10590   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10591   shlibpath_var=LIBPATH
10592
10593   # AIX 3 has no versioning support, so we append a major version to the name.
10594   soname_spec='${libname}${release}${shared_ext}$major'
10595   ;;
10596
10597 aix[4-9]*)
10598   version_type=linux # correct to gnu/linux during the next big refactor
10599   need_lib_prefix=no
10600   need_version=no
10601   hardcode_into_libs=yes
10602   if test "$host_cpu" = ia64; then
10603     # AIX 5 supports IA64
10604     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10605     shlibpath_var=LD_LIBRARY_PATH
10606   else
10607     # With GCC up to 2.95.x, collect2 would create an import file
10608     # for dependence libraries.  The import file would start with
10609     # the line `#! .'.  This would cause the generated library to
10610     # depend on `.', always an invalid library.  This was fixed in
10611     # development snapshots of GCC prior to 3.0.
10612     case $host_os in
10613       aix4 | aix4.[01] | aix4.[01].*)
10614       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10615            echo ' yes '
10616            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10617         :
10618       else
10619         can_build_shared=no
10620       fi
10621       ;;
10622     esac
10623     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10624     # soname into executable. Probably we can add versioning support to
10625     # collect2, so additional links can be useful in future.
10626     if test "$aix_use_runtimelinking" = yes; then
10627       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10628       # instead of lib<name>.a to let people know that these are not
10629       # typical AIX shared libraries.
10630       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631     else
10632       # We preserve .a as extension for shared libraries through AIX4.2
10633       # and later when we are not doing run time linking.
10634       library_names_spec='${libname}${release}.a $libname.a'
10635       soname_spec='${libname}${release}${shared_ext}$major'
10636     fi
10637     shlibpath_var=LIBPATH
10638   fi
10639   ;;
10640
10641 amigaos*)
10642   case $host_cpu in
10643   powerpc)
10644     # Since July 2007 AmigaOS4 officially supports .so libraries.
10645     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10647     ;;
10648   m68k)
10649     library_names_spec='$libname.ixlibrary $libname.a'
10650     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10651     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'
10652     ;;
10653   esac
10654   ;;
10655
10656 beos*)
10657   library_names_spec='${libname}${shared_ext}'
10658   dynamic_linker="$host_os ld.so"
10659   shlibpath_var=LIBRARY_PATH
10660   ;;
10661
10662 bsdi[45]*)
10663   version_type=linux # correct to gnu/linux during the next big refactor
10664   need_version=no
10665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666   soname_spec='${libname}${release}${shared_ext}$major'
10667   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10668   shlibpath_var=LD_LIBRARY_PATH
10669   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10670   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10671   # the default ld.so.conf also contains /usr/contrib/lib and
10672   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10673   # libtool to hard-code these into programs
10674   ;;
10675
10676 cygwin* | mingw* | pw32* | cegcc*)
10677   version_type=windows
10678   shrext_cmds=".dll"
10679   need_version=no
10680   need_lib_prefix=no
10681
10682   case $GCC,$cc_basename in
10683   yes,*)
10684     # gcc
10685     library_names_spec='$libname.dll.a'
10686     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10687     postinstall_cmds='base_file=`basename \${file}`~
10688       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10689       dldir=$destdir/`dirname \$dlpath`~
10690       test -d \$dldir || mkdir -p \$dldir~
10691       $install_prog $dir/$dlname \$dldir/$dlname~
10692       chmod a+x \$dldir/$dlname~
10693       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10694         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10695       fi'
10696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10697       dlpath=$dir/\$dldll~
10698        $RM \$dlpath'
10699     shlibpath_overrides_runpath=yes
10700
10701     case $host_os in
10702     cygwin*)
10703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10705
10706       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10707       ;;
10708     mingw* | cegcc*)
10709       # MinGW DLLs use traditional 'lib' prefix
10710       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711       ;;
10712     pw32*)
10713       # pw32 DLLs use 'pw' prefix rather than 'lib'
10714       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10715       ;;
10716     esac
10717     dynamic_linker='Win32 ld.exe'
10718     ;;
10719
10720   *,cl*)
10721     # Native MSVC
10722     libname_spec='$name'
10723     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10724     library_names_spec='${libname}.dll.lib'
10725
10726     case $build_os in
10727     mingw*)
10728       sys_lib_search_path_spec=
10729       lt_save_ifs=$IFS
10730       IFS=';'
10731       for lt_path in $LIB
10732       do
10733         IFS=$lt_save_ifs
10734         # Let DOS variable expansion print the short 8.3 style file name.
10735         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10736         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10737       done
10738       IFS=$lt_save_ifs
10739       # Convert to MSYS style.
10740       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10741       ;;
10742     cygwin*)
10743       # Convert to unix form, then to dos form, then back to unix form
10744       # but this time dos style (no spaces!) so that the unix form looks
10745       # like /cygdrive/c/PROGRA~1:/cygdr...
10746       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10747       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10748       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10749       ;;
10750     *)
10751       sys_lib_search_path_spec="$LIB"
10752       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10753         # It is most probably a Windows format PATH.
10754         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10755       else
10756         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10757       fi
10758       # FIXME: find the short name or the path components, as spaces are
10759       # common. (e.g. "Program Files" -> "PROGRA~1")
10760       ;;
10761     esac
10762
10763     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10764     postinstall_cmds='base_file=`basename \${file}`~
10765       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10766       dldir=$destdir/`dirname \$dlpath`~
10767       test -d \$dldir || mkdir -p \$dldir~
10768       $install_prog $dir/$dlname \$dldir/$dlname'
10769     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10770       dlpath=$dir/\$dldll~
10771        $RM \$dlpath'
10772     shlibpath_overrides_runpath=yes
10773     dynamic_linker='Win32 link.exe'
10774     ;;
10775
10776   *)
10777     # Assume MSVC wrapper
10778     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10779     dynamic_linker='Win32 ld.exe'
10780     ;;
10781   esac
10782   # FIXME: first we should search . and the directory the executable is in
10783   shlibpath_var=PATH
10784   ;;
10785
10786 darwin* | rhapsody*)
10787   dynamic_linker="$host_os dyld"
10788   version_type=darwin
10789   need_lib_prefix=no
10790   need_version=no
10791   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10792   soname_spec='${libname}${release}${major}$shared_ext'
10793   shlibpath_overrides_runpath=yes
10794   shlibpath_var=DYLD_LIBRARY_PATH
10795   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10796
10797   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10798   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10799   ;;
10800
10801 dgux*)
10802   version_type=linux # correct to gnu/linux during the next big refactor
10803   need_lib_prefix=no
10804   need_version=no
10805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10806   soname_spec='${libname}${release}${shared_ext}$major'
10807   shlibpath_var=LD_LIBRARY_PATH
10808   ;;
10809
10810 freebsd* | dragonfly*)
10811   # DragonFly does not have aout.  When/if they implement a new
10812   # versioning mechanism, adjust this.
10813   if test -x /usr/bin/objformat; then
10814     objformat=`/usr/bin/objformat`
10815   else
10816     case $host_os in
10817     freebsd[23].*) objformat=aout ;;
10818     *) objformat=elf ;;
10819     esac
10820   fi
10821   version_type=freebsd-$objformat
10822   case $version_type in
10823     freebsd-elf*)
10824       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10825       need_version=no
10826       need_lib_prefix=no
10827       ;;
10828     freebsd-*)
10829       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10830       need_version=yes
10831       ;;
10832   esac
10833   shlibpath_var=LD_LIBRARY_PATH
10834   case $host_os in
10835   freebsd2.*)
10836     shlibpath_overrides_runpath=yes
10837     ;;
10838   freebsd3.[01]* | freebsdelf3.[01]*)
10839     shlibpath_overrides_runpath=yes
10840     hardcode_into_libs=yes
10841     ;;
10842   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10843   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10844     shlibpath_overrides_runpath=no
10845     hardcode_into_libs=yes
10846     ;;
10847   *) # from 4.6 on, and DragonFly
10848     shlibpath_overrides_runpath=yes
10849     hardcode_into_libs=yes
10850     ;;
10851   esac
10852   ;;
10853
10854 gnu*)
10855   version_type=linux # correct to gnu/linux during the next big refactor
10856   need_lib_prefix=no
10857   need_version=no
10858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10859   soname_spec='${libname}${release}${shared_ext}$major'
10860   shlibpath_var=LD_LIBRARY_PATH
10861   shlibpath_overrides_runpath=no
10862   hardcode_into_libs=yes
10863   ;;
10864
10865 haiku*)
10866   version_type=linux # correct to gnu/linux during the next big refactor
10867   need_lib_prefix=no
10868   need_version=no
10869   dynamic_linker="$host_os runtime_loader"
10870   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10871   soname_spec='${libname}${release}${shared_ext}$major'
10872   shlibpath_var=LIBRARY_PATH
10873   shlibpath_overrides_runpath=yes
10874   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10875   hardcode_into_libs=yes
10876   ;;
10877
10878 hpux9* | hpux10* | hpux11*)
10879   # Give a soname corresponding to the major version so that dld.sl refuses to
10880   # link against other versions.
10881   version_type=sunos
10882   need_lib_prefix=no
10883   need_version=no
10884   case $host_cpu in
10885   ia64*)
10886     shrext_cmds='.so'
10887     hardcode_into_libs=yes
10888     dynamic_linker="$host_os dld.so"
10889     shlibpath_var=LD_LIBRARY_PATH
10890     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10891     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10892     soname_spec='${libname}${release}${shared_ext}$major'
10893     if test "X$HPUX_IA64_MODE" = X32; then
10894       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10895     else
10896       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10897     fi
10898     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10899     ;;
10900   hppa*64*)
10901     shrext_cmds='.sl'
10902     hardcode_into_libs=yes
10903     dynamic_linker="$host_os dld.sl"
10904     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10905     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10906     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907     soname_spec='${libname}${release}${shared_ext}$major'
10908     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10910     ;;
10911   *)
10912     shrext_cmds='.sl'
10913     dynamic_linker="$host_os dld.sl"
10914     shlibpath_var=SHLIB_PATH
10915     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10916     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917     soname_spec='${libname}${release}${shared_ext}$major'
10918     ;;
10919   esac
10920   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10921   postinstall_cmds='chmod 555 $lib'
10922   # or fails outright, so override atomically:
10923   install_override_mode=555
10924   ;;
10925
10926 interix[3-9]*)
10927   version_type=linux # correct to gnu/linux during the next big refactor
10928   need_lib_prefix=no
10929   need_version=no
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10931   soname_spec='${libname}${release}${shared_ext}$major'
10932   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10933   shlibpath_var=LD_LIBRARY_PATH
10934   shlibpath_overrides_runpath=no
10935   hardcode_into_libs=yes
10936   ;;
10937
10938 irix5* | irix6* | nonstopux*)
10939   case $host_os in
10940     nonstopux*) version_type=nonstopux ;;
10941     *)
10942         if test "$lt_cv_prog_gnu_ld" = yes; then
10943                 version_type=linux # correct to gnu/linux during the next big refactor
10944         else
10945                 version_type=irix
10946         fi ;;
10947   esac
10948   need_lib_prefix=no
10949   need_version=no
10950   soname_spec='${libname}${release}${shared_ext}$major'
10951   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10952   case $host_os in
10953   irix5* | nonstopux*)
10954     libsuff= shlibsuff=
10955     ;;
10956   *)
10957     case $LD in # libtool.m4 will add one of these switches to LD
10958     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10959       libsuff= shlibsuff= libmagic=32-bit;;
10960     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10961       libsuff=32 shlibsuff=N32 libmagic=N32;;
10962     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10963       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10964     *) libsuff= shlibsuff= libmagic=never-match;;
10965     esac
10966     ;;
10967   esac
10968   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10969   shlibpath_overrides_runpath=no
10970   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10971   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10972   hardcode_into_libs=yes
10973   ;;
10974
10975 # No shared lib support for Linux oldld, aout, or coff.
10976 linux*oldld* | linux*aout* | linux*coff*)
10977   dynamic_linker=no
10978   ;;
10979
10980 # This must be glibc/ELF.
10981 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10982   version_type=linux # correct to gnu/linux during the next big refactor
10983   need_lib_prefix=no
10984   need_version=no
10985   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10986   soname_spec='${libname}${release}${shared_ext}$major'
10987   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10988   shlibpath_var=LD_LIBRARY_PATH
10989   shlibpath_overrides_runpath=no
10990
10991   # Some binutils ld are patched to set DT_RUNPATH
10992   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10993   $as_echo_n "(cached) " >&6
10994 else
10995   lt_cv_shlibpath_overrides_runpath=no
10996     save_LDFLAGS=$LDFLAGS
10997     save_libdir=$libdir
10998     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10999          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11001 /* end confdefs.h.  */
11002
11003 int
11004 main ()
11005 {
11006
11007   ;
11008   return 0;
11009 }
11010 _ACEOF
11011 if ac_fn_c_try_link "$LINENO"; then :
11012   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11013   lt_cv_shlibpath_overrides_runpath=yes
11014 fi
11015 fi
11016 rm -f core conftest.err conftest.$ac_objext \
11017     conftest$ac_exeext conftest.$ac_ext
11018     LDFLAGS=$save_LDFLAGS
11019     libdir=$save_libdir
11020
11021 fi
11022
11023   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11024
11025   # This implies no fast_install, which is unacceptable.
11026   # Some rework will be needed to allow for fast_install
11027   # before this can be enabled.
11028   hardcode_into_libs=yes
11029
11030   # Add ABI-specific directories to the system library path.
11031   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11032
11033   # Append ld.so.conf contents to the search path
11034   if test -f /etc/ld.so.conf; then
11035     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' ' '`
11036     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11037
11038   fi
11039
11040   # We used to test for /lib/ld.so.1 and disable shared libraries on
11041   # powerpc, because MkLinux only supported shared libraries with the
11042   # GNU dynamic linker.  Since this was broken with cross compilers,
11043   # most powerpc-linux boxes support dynamic linking these days and
11044   # people can always --disable-shared, the test was removed, and we
11045   # assume the GNU/Linux dynamic linker is in use.
11046   dynamic_linker='GNU/Linux ld.so'
11047   ;;
11048
11049 netbsd*)
11050   version_type=sunos
11051   need_lib_prefix=no
11052   need_version=no
11053   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11055     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11056     dynamic_linker='NetBSD (a.out) ld.so'
11057   else
11058     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11059     soname_spec='${libname}${release}${shared_ext}$major'
11060     dynamic_linker='NetBSD ld.elf_so'
11061   fi
11062   shlibpath_var=LD_LIBRARY_PATH
11063   shlibpath_overrides_runpath=yes
11064   hardcode_into_libs=yes
11065   ;;
11066
11067 newsos6)
11068   version_type=linux # correct to gnu/linux during the next big refactor
11069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070   shlibpath_var=LD_LIBRARY_PATH
11071   shlibpath_overrides_runpath=yes
11072   ;;
11073
11074 *nto* | *qnx*)
11075   version_type=qnx
11076   need_lib_prefix=no
11077   need_version=no
11078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079   soname_spec='${libname}${release}${shared_ext}$major'
11080   shlibpath_var=LD_LIBRARY_PATH
11081   shlibpath_overrides_runpath=no
11082   hardcode_into_libs=yes
11083   dynamic_linker='ldqnx.so'
11084   ;;
11085
11086 openbsd*)
11087   version_type=sunos
11088   sys_lib_dlsearch_path_spec="/usr/lib"
11089   need_lib_prefix=no
11090   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11091   case $host_os in
11092     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11093     *)                          need_version=no  ;;
11094   esac
11095   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11096   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11097   shlibpath_var=LD_LIBRARY_PATH
11098   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11099     case $host_os in
11100       openbsd2.[89] | openbsd2.[89].*)
11101         shlibpath_overrides_runpath=no
11102         ;;
11103       *)
11104         shlibpath_overrides_runpath=yes
11105         ;;
11106       esac
11107   else
11108     shlibpath_overrides_runpath=yes
11109   fi
11110   ;;
11111
11112 os2*)
11113   libname_spec='$name'
11114   shrext_cmds=".dll"
11115   need_lib_prefix=no
11116   library_names_spec='$libname${shared_ext} $libname.a'
11117   dynamic_linker='OS/2 ld.exe'
11118   shlibpath_var=LIBPATH
11119   ;;
11120
11121 osf3* | osf4* | osf5*)
11122   version_type=osf
11123   need_lib_prefix=no
11124   need_version=no
11125   soname_spec='${libname}${release}${shared_ext}$major'
11126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11127   shlibpath_var=LD_LIBRARY_PATH
11128   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11129   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11130   ;;
11131
11132 rdos*)
11133   dynamic_linker=no
11134   ;;
11135
11136 solaris*)
11137   version_type=linux # correct to gnu/linux during the next big refactor
11138   need_lib_prefix=no
11139   need_version=no
11140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11141   soname_spec='${libname}${release}${shared_ext}$major'
11142   shlibpath_var=LD_LIBRARY_PATH
11143   shlibpath_overrides_runpath=yes
11144   hardcode_into_libs=yes
11145   # ldd complains unless libraries are executable
11146   postinstall_cmds='chmod +x $lib'
11147   ;;
11148
11149 sunos4*)
11150   version_type=sunos
11151   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11152   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11153   shlibpath_var=LD_LIBRARY_PATH
11154   shlibpath_overrides_runpath=yes
11155   if test "$with_gnu_ld" = yes; then
11156     need_lib_prefix=no
11157   fi
11158   need_version=yes
11159   ;;
11160
11161 sysv4 | sysv4.3*)
11162   version_type=linux # correct to gnu/linux during the next big refactor
11163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11164   soname_spec='${libname}${release}${shared_ext}$major'
11165   shlibpath_var=LD_LIBRARY_PATH
11166   case $host_vendor in
11167     sni)
11168       shlibpath_overrides_runpath=no
11169       need_lib_prefix=no
11170       runpath_var=LD_RUN_PATH
11171       ;;
11172     siemens)
11173       need_lib_prefix=no
11174       ;;
11175     motorola)
11176       need_lib_prefix=no
11177       need_version=no
11178       shlibpath_overrides_runpath=no
11179       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11180       ;;
11181   esac
11182   ;;
11183
11184 sysv4*MP*)
11185   if test -d /usr/nec ;then
11186     version_type=linux # correct to gnu/linux during the next big refactor
11187     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11188     soname_spec='$libname${shared_ext}.$major'
11189     shlibpath_var=LD_LIBRARY_PATH
11190   fi
11191   ;;
11192
11193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11194   version_type=freebsd-elf
11195   need_lib_prefix=no
11196   need_version=no
11197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11198   soname_spec='${libname}${release}${shared_ext}$major'
11199   shlibpath_var=LD_LIBRARY_PATH
11200   shlibpath_overrides_runpath=yes
11201   hardcode_into_libs=yes
11202   if test "$with_gnu_ld" = yes; then
11203     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11204   else
11205     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11206     case $host_os in
11207       sco3.2v5*)
11208         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11209         ;;
11210     esac
11211   fi
11212   sys_lib_dlsearch_path_spec='/usr/lib'
11213   ;;
11214
11215 tpf*)
11216   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11217   version_type=linux # correct to gnu/linux during the next big refactor
11218   need_lib_prefix=no
11219   need_version=no
11220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11221   shlibpath_var=LD_LIBRARY_PATH
11222   shlibpath_overrides_runpath=no
11223   hardcode_into_libs=yes
11224   ;;
11225
11226 uts4*)
11227   version_type=linux # correct to gnu/linux during the next big refactor
11228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11229   soname_spec='${libname}${release}${shared_ext}$major'
11230   shlibpath_var=LD_LIBRARY_PATH
11231   ;;
11232
11233 *)
11234   dynamic_linker=no
11235   ;;
11236 esac
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11238 $as_echo "$dynamic_linker" >&6; }
11239 test "$dynamic_linker" = no && can_build_shared=no
11240
11241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11242 if test "$GCC" = yes; then
11243   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11244 fi
11245
11246 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11247   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11248 fi
11249 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11250   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11251 fi
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11345 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11346 hardcode_action=
11347 if test -n "$hardcode_libdir_flag_spec" ||
11348    test -n "$runpath_var" ||
11349    test "X$hardcode_automatic" = "Xyes" ; then
11350
11351   # We can hardcode non-existent directories.
11352   if test "$hardcode_direct" != no &&
11353      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11354      # have to relink, otherwise we might link with an installed library
11355      # when we should be linking with a yet-to-be-installed one
11356      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11357      test "$hardcode_minus_L" != no; then
11358     # Linking always hardcodes the temporary library directory.
11359     hardcode_action=relink
11360   else
11361     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11362     hardcode_action=immediate
11363   fi
11364 else
11365   # We cannot hardcode anything, or else we can only hardcode existing
11366   # directories.
11367   hardcode_action=unsupported
11368 fi
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11370 $as_echo "$hardcode_action" >&6; }
11371
11372 if test "$hardcode_action" = relink ||
11373    test "$inherit_rpath" = yes; then
11374   # Fast installation is not supported
11375   enable_fast_install=no
11376 elif test "$shlibpath_overrides_runpath" = yes ||
11377      test "$enable_shared" = no; then
11378   # Fast installation is not necessary
11379   enable_fast_install=needless
11380 fi
11381
11382
11383
11384
11385
11386
11387   if test "x$enable_dlopen" != xyes; then
11388   enable_dlopen=unknown
11389   enable_dlopen_self=unknown
11390   enable_dlopen_self_static=unknown
11391 else
11392   lt_cv_dlopen=no
11393   lt_cv_dlopen_libs=
11394
11395   case $host_os in
11396   beos*)
11397     lt_cv_dlopen="load_add_on"
11398     lt_cv_dlopen_libs=
11399     lt_cv_dlopen_self=yes
11400     ;;
11401
11402   mingw* | pw32* | cegcc*)
11403     lt_cv_dlopen="LoadLibrary"
11404     lt_cv_dlopen_libs=
11405     ;;
11406
11407   cygwin*)
11408     lt_cv_dlopen="dlopen"
11409     lt_cv_dlopen_libs=
11410     ;;
11411
11412   darwin*)
11413   # if libdl is installed we need to link against it
11414     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11415 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11416 if ${ac_cv_lib_dl_dlopen+:} false; then :
11417   $as_echo_n "(cached) " >&6
11418 else
11419   ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-ldl  $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h.  */
11423
11424 /* Override any GCC internal prototype to avoid an error.
11425    Use char because int might match the return type of a GCC
11426    builtin and then its argument prototype would still apply.  */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char dlopen ();
11431 int
11432 main ()
11433 {
11434 return dlopen ();
11435   ;
11436   return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440   ac_cv_lib_dl_dlopen=yes
11441 else
11442   ac_cv_lib_dl_dlopen=no
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext \
11445     conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11449 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11450 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11451   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11452 else
11453
11454     lt_cv_dlopen="dyld"
11455     lt_cv_dlopen_libs=
11456     lt_cv_dlopen_self=yes
11457
11458 fi
11459
11460     ;;
11461
11462   *)
11463     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11464 if test "x$ac_cv_func_shl_load" = xyes; then :
11465   lt_cv_dlopen="shl_load"
11466 else
11467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11468 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11469 if ${ac_cv_lib_dld_shl_load+:} false; then :
11470   $as_echo_n "(cached) " >&6
11471 else
11472   ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-ldld  $LIBS"
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h.  */
11476
11477 /* Override any GCC internal prototype to avoid an error.
11478    Use char because int might match the return type of a GCC
11479    builtin and then its argument prototype would still apply.  */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 char shl_load ();
11484 int
11485 main ()
11486 {
11487 return shl_load ();
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 if ac_fn_c_try_link "$LINENO"; then :
11493   ac_cv_lib_dld_shl_load=yes
11494 else
11495   ac_cv_lib_dld_shl_load=no
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext \
11498     conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_lib_save_LIBS
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11502 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11503 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11504   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11505 else
11506   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11507 if test "x$ac_cv_func_dlopen" = xyes; then :
11508   lt_cv_dlopen="dlopen"
11509 else
11510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11511 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11512 if ${ac_cv_lib_dl_dlopen+:} false; then :
11513   $as_echo_n "(cached) " >&6
11514 else
11515   ac_check_lib_save_LIBS=$LIBS
11516 LIBS="-ldl  $LIBS"
11517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h.  */
11519
11520 /* Override any GCC internal prototype to avoid an error.
11521    Use char because int might match the return type of a GCC
11522    builtin and then its argument prototype would still apply.  */
11523 #ifdef __cplusplus
11524 extern "C"
11525 #endif
11526 char dlopen ();
11527 int
11528 main ()
11529 {
11530 return dlopen ();
11531   ;
11532   return 0;
11533 }
11534 _ACEOF
11535 if ac_fn_c_try_link "$LINENO"; then :
11536   ac_cv_lib_dl_dlopen=yes
11537 else
11538   ac_cv_lib_dl_dlopen=no
11539 fi
11540 rm -f core conftest.err conftest.$ac_objext \
11541     conftest$ac_exeext conftest.$ac_ext
11542 LIBS=$ac_check_lib_save_LIBS
11543 fi
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11545 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11546 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11547   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11548 else
11549   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11550 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11551 if ${ac_cv_lib_svld_dlopen+:} false; then :
11552   $as_echo_n "(cached) " >&6
11553 else
11554   ac_check_lib_save_LIBS=$LIBS
11555 LIBS="-lsvld  $LIBS"
11556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11557 /* end confdefs.h.  */
11558
11559 /* Override any GCC internal prototype to avoid an error.
11560    Use char because int might match the return type of a GCC
11561    builtin and then its argument prototype would still apply.  */
11562 #ifdef __cplusplus
11563 extern "C"
11564 #endif
11565 char dlopen ();
11566 int
11567 main ()
11568 {
11569 return dlopen ();
11570   ;
11571   return 0;
11572 }
11573 _ACEOF
11574 if ac_fn_c_try_link "$LINENO"; then :
11575   ac_cv_lib_svld_dlopen=yes
11576 else
11577   ac_cv_lib_svld_dlopen=no
11578 fi
11579 rm -f core conftest.err conftest.$ac_objext \
11580     conftest$ac_exeext conftest.$ac_ext
11581 LIBS=$ac_check_lib_save_LIBS
11582 fi
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11584 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11585 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11586   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11587 else
11588   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11589 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11590 if ${ac_cv_lib_dld_dld_link+:} false; then :
11591   $as_echo_n "(cached) " >&6
11592 else
11593   ac_check_lib_save_LIBS=$LIBS
11594 LIBS="-ldld  $LIBS"
11595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11596 /* end confdefs.h.  */
11597
11598 /* Override any GCC internal prototype to avoid an error.
11599    Use char because int might match the return type of a GCC
11600    builtin and then its argument prototype would still apply.  */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char dld_link ();
11605 int
11606 main ()
11607 {
11608 return dld_link ();
11609   ;
11610   return 0;
11611 }
11612 _ACEOF
11613 if ac_fn_c_try_link "$LINENO"; then :
11614   ac_cv_lib_dld_dld_link=yes
11615 else
11616   ac_cv_lib_dld_dld_link=no
11617 fi
11618 rm -f core conftest.err conftest.$ac_objext \
11619     conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11621 fi
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11623 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11624 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11625   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11626 fi
11627
11628
11629 fi
11630
11631
11632 fi
11633
11634
11635 fi
11636
11637
11638 fi
11639
11640
11641 fi
11642
11643     ;;
11644   esac
11645
11646   if test "x$lt_cv_dlopen" != xno; then
11647     enable_dlopen=yes
11648   else
11649     enable_dlopen=no
11650   fi
11651
11652   case $lt_cv_dlopen in
11653   dlopen)
11654     save_CPPFLAGS="$CPPFLAGS"
11655     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11656
11657     save_LDFLAGS="$LDFLAGS"
11658     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11659
11660     save_LIBS="$LIBS"
11661     LIBS="$lt_cv_dlopen_libs $LIBS"
11662
11663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11664 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11665 if ${lt_cv_dlopen_self+:} false; then :
11666   $as_echo_n "(cached) " >&6
11667 else
11668           if test "$cross_compiling" = yes; then :
11669   lt_cv_dlopen_self=cross
11670 else
11671   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11672   lt_status=$lt_dlunknown
11673   cat > conftest.$ac_ext <<_LT_EOF
11674 #line $LINENO "configure"
11675 #include "confdefs.h"
11676
11677 #if HAVE_DLFCN_H
11678 #include <dlfcn.h>
11679 #endif
11680
11681 #include <stdio.h>
11682
11683 #ifdef RTLD_GLOBAL
11684 #  define LT_DLGLOBAL           RTLD_GLOBAL
11685 #else
11686 #  ifdef DL_GLOBAL
11687 #    define LT_DLGLOBAL         DL_GLOBAL
11688 #  else
11689 #    define LT_DLGLOBAL         0
11690 #  endif
11691 #endif
11692
11693 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11694    find out it does not work in some platform. */
11695 #ifndef LT_DLLAZY_OR_NOW
11696 #  ifdef RTLD_LAZY
11697 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11698 #  else
11699 #    ifdef DL_LAZY
11700 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11701 #    else
11702 #      ifdef RTLD_NOW
11703 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11704 #      else
11705 #        ifdef DL_NOW
11706 #          define LT_DLLAZY_OR_NOW      DL_NOW
11707 #        else
11708 #          define LT_DLLAZY_OR_NOW      0
11709 #        endif
11710 #      endif
11711 #    endif
11712 #  endif
11713 #endif
11714
11715 /* When -fvisbility=hidden is used, assume the code has been annotated
11716    correspondingly for the symbols needed.  */
11717 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11718 int fnord () __attribute__((visibility("default")));
11719 #endif
11720
11721 int fnord () { return 42; }
11722 int main ()
11723 {
11724   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11725   int status = $lt_dlunknown;
11726
11727   if (self)
11728     {
11729       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11730       else
11731         {
11732           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11733           else puts (dlerror ());
11734         }
11735       /* dlclose (self); */
11736     }
11737   else
11738     puts (dlerror ());
11739
11740   return status;
11741 }
11742 _LT_EOF
11743   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11744   (eval $ac_link) 2>&5
11745   ac_status=$?
11746   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11747   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11748     (./conftest; exit; ) >&5 2>/dev/null
11749     lt_status=$?
11750     case x$lt_status in
11751       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11752       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11753       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11754     esac
11755   else :
11756     # compilation failed
11757     lt_cv_dlopen_self=no
11758   fi
11759 fi
11760 rm -fr conftest*
11761
11762
11763 fi
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11765 $as_echo "$lt_cv_dlopen_self" >&6; }
11766
11767     if test "x$lt_cv_dlopen_self" = xyes; then
11768       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11769       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11770 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11771 if ${lt_cv_dlopen_self_static+:} false; then :
11772   $as_echo_n "(cached) " >&6
11773 else
11774           if test "$cross_compiling" = yes; then :
11775   lt_cv_dlopen_self_static=cross
11776 else
11777   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11778   lt_status=$lt_dlunknown
11779   cat > conftest.$ac_ext <<_LT_EOF
11780 #line $LINENO "configure"
11781 #include "confdefs.h"
11782
11783 #if HAVE_DLFCN_H
11784 #include <dlfcn.h>
11785 #endif
11786
11787 #include <stdio.h>
11788
11789 #ifdef RTLD_GLOBAL
11790 #  define LT_DLGLOBAL           RTLD_GLOBAL
11791 #else
11792 #  ifdef DL_GLOBAL
11793 #    define LT_DLGLOBAL         DL_GLOBAL
11794 #  else
11795 #    define LT_DLGLOBAL         0
11796 #  endif
11797 #endif
11798
11799 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11800    find out it does not work in some platform. */
11801 #ifndef LT_DLLAZY_OR_NOW
11802 #  ifdef RTLD_LAZY
11803 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11804 #  else
11805 #    ifdef DL_LAZY
11806 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11807 #    else
11808 #      ifdef RTLD_NOW
11809 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11810 #      else
11811 #        ifdef DL_NOW
11812 #          define LT_DLLAZY_OR_NOW      DL_NOW
11813 #        else
11814 #          define LT_DLLAZY_OR_NOW      0
11815 #        endif
11816 #      endif
11817 #    endif
11818 #  endif
11819 #endif
11820
11821 /* When -fvisbility=hidden is used, assume the code has been annotated
11822    correspondingly for the symbols needed.  */
11823 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11824 int fnord () __attribute__((visibility("default")));
11825 #endif
11826
11827 int fnord () { return 42; }
11828 int main ()
11829 {
11830   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11831   int status = $lt_dlunknown;
11832
11833   if (self)
11834     {
11835       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11836       else
11837         {
11838           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11839           else puts (dlerror ());
11840         }
11841       /* dlclose (self); */
11842     }
11843   else
11844     puts (dlerror ());
11845
11846   return status;
11847 }
11848 _LT_EOF
11849   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11850   (eval $ac_link) 2>&5
11851   ac_status=$?
11852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11853   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11854     (./conftest; exit; ) >&5 2>/dev/null
11855     lt_status=$?
11856     case x$lt_status in
11857       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11858       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11859       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11860     esac
11861   else :
11862     # compilation failed
11863     lt_cv_dlopen_self_static=no
11864   fi
11865 fi
11866 rm -fr conftest*
11867
11868
11869 fi
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11871 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11872     fi
11873
11874     CPPFLAGS="$save_CPPFLAGS"
11875     LDFLAGS="$save_LDFLAGS"
11876     LIBS="$save_LIBS"
11877     ;;
11878   esac
11879
11880   case $lt_cv_dlopen_self in
11881   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11882   *) enable_dlopen_self=unknown ;;
11883   esac
11884
11885   case $lt_cv_dlopen_self_static in
11886   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11887   *) enable_dlopen_self_static=unknown ;;
11888   esac
11889 fi
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900
11901
11902
11903
11904
11905
11906
11907 striplib=
11908 old_striplib=
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11910 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11911 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11912   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11913   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11915 $as_echo "yes" >&6; }
11916 else
11917 # FIXME - insert some real tests, host_os isn't really good enough
11918   case $host_os in
11919   darwin*)
11920     if test -n "$STRIP" ; then
11921       striplib="$STRIP -x"
11922       old_striplib="$STRIP -S"
11923       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11924 $as_echo "yes" >&6; }
11925     else
11926       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11927 $as_echo "no" >&6; }
11928     fi
11929     ;;
11930   *)
11931     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11932 $as_echo "no" >&6; }
11933     ;;
11934   esac
11935 fi
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948   # Report which library types will actually be built
11949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11950 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11952 $as_echo "$can_build_shared" >&6; }
11953
11954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11955 $as_echo_n "checking whether to build shared libraries... " >&6; }
11956   test "$can_build_shared" = "no" && enable_shared=no
11957
11958   # On AIX, shared libraries and static libraries use the same namespace, and
11959   # are all built from PIC.
11960   case $host_os in
11961   aix3*)
11962     test "$enable_shared" = yes && enable_static=no
11963     if test -n "$RANLIB"; then
11964       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11965       postinstall_cmds='$RANLIB $lib'
11966     fi
11967     ;;
11968
11969   aix[4-9]*)
11970     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11971       test "$enable_shared" = yes && enable_static=no
11972     fi
11973     ;;
11974   esac
11975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11976 $as_echo "$enable_shared" >&6; }
11977
11978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11979 $as_echo_n "checking whether to build static libraries... " >&6; }
11980   # Make sure either enable_shared or enable_static is yes.
11981   test "$enable_shared" = yes || enable_static=yes
11982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11983 $as_echo "$enable_static" >&6; }
11984
11985
11986
11987
11988 fi
11989 ac_ext=c
11990 ac_cpp='$CPP $CPPFLAGS'
11991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11994
11995 CC="$lt_save_CC"
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011         ac_config_commands="$ac_config_commands libtool"
12012
12013
12014
12015
12016 # Only expand once:
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12028         if test -n "$ac_tool_prefix"; then
12029   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12030 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12032 $as_echo_n "checking for $ac_word... " >&6; }
12033 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12034   $as_echo_n "(cached) " >&6
12035 else
12036   case $PKG_CONFIG in
12037   [\\/]* | ?:[\\/]*)
12038   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12039   ;;
12040   *)
12041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12042 for as_dir in $PATH
12043 do
12044   IFS=$as_save_IFS
12045   test -z "$as_dir" && as_dir=.
12046     for ac_exec_ext in '' $ac_executable_extensions; do
12047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12048     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12050     break 2
12051   fi
12052 done
12053   done
12054 IFS=$as_save_IFS
12055
12056   ;;
12057 esac
12058 fi
12059 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12060 if test -n "$PKG_CONFIG"; then
12061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12062 $as_echo "$PKG_CONFIG" >&6; }
12063 else
12064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12066 fi
12067
12068
12069 fi
12070 if test -z "$ac_cv_path_PKG_CONFIG"; then
12071   ac_pt_PKG_CONFIG=$PKG_CONFIG
12072   # Extract the first word of "pkg-config", so it can be a program name with args.
12073 set dummy pkg-config; ac_word=$2
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12075 $as_echo_n "checking for $ac_word... " >&6; }
12076 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12077   $as_echo_n "(cached) " >&6
12078 else
12079   case $ac_pt_PKG_CONFIG in
12080   [\\/]* | ?:[\\/]*)
12081   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12082   ;;
12083   *)
12084   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12085 for as_dir in $PATH
12086 do
12087   IFS=$as_save_IFS
12088   test -z "$as_dir" && as_dir=.
12089     for ac_exec_ext in '' $ac_executable_extensions; do
12090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12091     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12093     break 2
12094   fi
12095 done
12096   done
12097 IFS=$as_save_IFS
12098
12099   ;;
12100 esac
12101 fi
12102 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12103 if test -n "$ac_pt_PKG_CONFIG"; then
12104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12105 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12106 else
12107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12108 $as_echo "no" >&6; }
12109 fi
12110
12111   if test "x$ac_pt_PKG_CONFIG" = x; then
12112     PKG_CONFIG=""
12113   else
12114     case $cross_compiling:$ac_tool_warned in
12115 yes:)
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12118 ac_tool_warned=yes ;;
12119 esac
12120     PKG_CONFIG=$ac_pt_PKG_CONFIG
12121   fi
12122 else
12123   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12124 fi
12125
12126 fi
12127 if test -n "$PKG_CONFIG"; then
12128         _pkg_min_version=0.9.0
12129         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12130 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12131         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12132                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12133 $as_echo "yes" >&6; }
12134         else
12135                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137                 PKG_CONFIG=""
12138         fi
12139 fi
12140
12141 for ac_prog in flex lex
12142 do
12143   # Extract the first word of "$ac_prog", so it can be a program name with args.
12144 set dummy $ac_prog; ac_word=$2
12145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12146 $as_echo_n "checking for $ac_word... " >&6; }
12147 if ${ac_cv_prog_LEX+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   if test -n "$LEX"; then
12151   ac_cv_prog_LEX="$LEX" # Let the user override the test.
12152 else
12153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154 for as_dir in $PATH
12155 do
12156   IFS=$as_save_IFS
12157   test -z "$as_dir" && as_dir=.
12158     for ac_exec_ext in '' $ac_executable_extensions; do
12159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12160     ac_cv_prog_LEX="$ac_prog"
12161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12162     break 2
12163   fi
12164 done
12165   done
12166 IFS=$as_save_IFS
12167
12168 fi
12169 fi
12170 LEX=$ac_cv_prog_LEX
12171 if test -n "$LEX"; then
12172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12173 $as_echo "$LEX" >&6; }
12174 else
12175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12176 $as_echo "no" >&6; }
12177 fi
12178
12179
12180   test -n "$LEX" && break
12181 done
12182 test -n "$LEX" || LEX=":"
12183
12184 if test "x$LEX" != "x:"; then
12185   cat >conftest.l <<_ACEOF
12186 %%
12187 a { ECHO; }
12188 b { REJECT; }
12189 c { yymore (); }
12190 d { yyless (1); }
12191 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12192     yyless ((input () != 0)); }
12193 f { unput (yytext[0]); }
12194 . { BEGIN INITIAL; }
12195 %%
12196 #ifdef YYTEXT_POINTER
12197 extern char *yytext;
12198 #endif
12199 int
12200 main (void)
12201 {
12202   return ! yylex () + ! yywrap ();
12203 }
12204 _ACEOF
12205 { { ac_try="$LEX conftest.l"
12206 case "(($ac_try" in
12207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208   *) ac_try_echo=$ac_try;;
12209 esac
12210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12211 $as_echo "$ac_try_echo"; } >&5
12212   (eval "$LEX conftest.l") 2>&5
12213   ac_status=$?
12214   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12215   test $ac_status = 0; }
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12217 $as_echo_n "checking lex output file root... " >&6; }
12218 if ${ac_cv_prog_lex_root+:} false; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221
12222 if test -f lex.yy.c; then
12223   ac_cv_prog_lex_root=lex.yy
12224 elif test -f lexyy.c; then
12225   ac_cv_prog_lex_root=lexyy
12226 else
12227   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12228 fi
12229 fi
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12231 $as_echo "$ac_cv_prog_lex_root" >&6; }
12232 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12233
12234 if test -z "${LEXLIB+set}"; then
12235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12236 $as_echo_n "checking lex library... " >&6; }
12237 if ${ac_cv_lib_lex+:} false; then :
12238   $as_echo_n "(cached) " >&6
12239 else
12240
12241     ac_save_LIBS=$LIBS
12242     ac_cv_lib_lex='none needed'
12243     for ac_lib in '' -lfl -ll; do
12244       LIBS="$ac_lib $ac_save_LIBS"
12245       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h.  */
12247 `cat $LEX_OUTPUT_ROOT.c`
12248 _ACEOF
12249 if ac_fn_c_try_link "$LINENO"; then :
12250   ac_cv_lib_lex=$ac_lib
12251 fi
12252 rm -f core conftest.err conftest.$ac_objext \
12253     conftest$ac_exeext conftest.$ac_ext
12254       test "$ac_cv_lib_lex" != 'none needed' && break
12255     done
12256     LIBS=$ac_save_LIBS
12257
12258 fi
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12260 $as_echo "$ac_cv_lib_lex" >&6; }
12261   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12262 fi
12263
12264
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12266 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12267 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12268   $as_echo_n "(cached) " >&6
12269 else
12270   # POSIX says lex can declare yytext either as a pointer or an array; the
12271 # default is implementation-dependent.  Figure out which it is, since
12272 # not all implementations provide the %pointer and %array declarations.
12273 ac_cv_prog_lex_yytext_pointer=no
12274 ac_save_LIBS=$LIBS
12275 LIBS="$LEXLIB $ac_save_LIBS"
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h.  */
12278
12279   #define YYTEXT_POINTER 1
12280 `cat $LEX_OUTPUT_ROOT.c`
12281 _ACEOF
12282 if ac_fn_c_try_link "$LINENO"; then :
12283   ac_cv_prog_lex_yytext_pointer=yes
12284 fi
12285 rm -f core conftest.err conftest.$ac_objext \
12286     conftest$ac_exeext conftest.$ac_ext
12287 LIBS=$ac_save_LIBS
12288
12289 fi
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12291 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12292 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12293
12294 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12295
12296 fi
12297 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12298
12299 fi
12300 if test "$LEX" = :; then
12301         as_fn_error $? "flex not found but required" "$LINENO" 5
12302 fi
12303
12304 for ac_prog in 'bison -y'
12305 do
12306   # Extract the first word of "$ac_prog", so it can be a program name with args.
12307 set dummy $ac_prog; ac_word=$2
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12309 $as_echo_n "checking for $ac_word... " >&6; }
12310 if ${ac_cv_prog_YACC+:} false; then :
12311   $as_echo_n "(cached) " >&6
12312 else
12313   if test -n "$YACC"; then
12314   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12315 else
12316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12317 for as_dir in $PATH
12318 do
12319   IFS=$as_save_IFS
12320   test -z "$as_dir" && as_dir=.
12321     for ac_exec_ext in '' $ac_executable_extensions; do
12322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12323     ac_cv_prog_YACC="$ac_prog"
12324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12325     break 2
12326   fi
12327 done
12328   done
12329 IFS=$as_save_IFS
12330
12331 fi
12332 fi
12333 YACC=$ac_cv_prog_YACC
12334 if test -n "$YACC"; then
12335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12336 $as_echo "$YACC" >&6; }
12337 else
12338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12340 fi
12341
12342
12343   test -n "$YACC" && break
12344 done
12345 test -n "$YACC" || YACC=":"
12346
12347 if test "$YACC" = :; then
12348         as_fn_error $? "bison not found but required" "$LINENO" 5
12349 fi
12350
12351
12352 ensureflag() {
12353   flag="$1"; shift
12354   result="$@"
12355
12356   case " ${result} " in
12357   *[\ \ ]${flag}[\ \    ]*) ;;
12358   *) result="${flag} ${result}" ;;
12359   esac
12360
12361   echo ${result}
12362 }
12363
12364 if test "$GCC" = "yes"; then
12365     for flag in -Wall -Wchar-subscripts -Wmissing-declarations \
12366         -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
12367         -Wsign-compare -fno-strict-aliasing;
12368     do
12369         CFLAGS="$(ensureflag $flag $CFLAGS)"
12370     done
12371 fi
12372
12373 # Checks for libraries.
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12376 if ${ac_cv_lib_dl_dlopen+:} false; then :
12377   $as_echo_n "(cached) " >&6
12378 else
12379   ac_check_lib_save_LIBS=$LIBS
12380 LIBS="-ldl  $LIBS"
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h.  */
12383
12384 /* Override any GCC internal prototype to avoid an error.
12385    Use char because int might match the return type of a GCC
12386    builtin and then its argument prototype would still apply.  */
12387 #ifdef __cplusplus
12388 extern "C"
12389 #endif
12390 char dlopen ();
12391 int
12392 main ()
12393 {
12394 return dlopen ();
12395   ;
12396   return 0;
12397 }
12398 _ACEOF
12399 if ac_fn_c_try_link "$LINENO"; then :
12400   ac_cv_lib_dl_dlopen=yes
12401 else
12402   ac_cv_lib_dl_dlopen=no
12403 fi
12404 rm -f core conftest.err conftest.$ac_objext \
12405     conftest$ac_exeext conftest.$ac_ext
12406 LIBS=$ac_check_lib_save_LIBS
12407 fi
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12410 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12411   cat >>confdefs.h <<_ACEOF
12412 #define HAVE_LIBDL 1
12413 _ACEOF
12414
12415   LIBS="-ldl $LIBS"
12416
12417 fi
12418
12419
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of shared libraries" >&5
12421 $as_echo_n "checking for the suffix of shared libraries... " >&6; }
12422 # libtool variables are immediately available since 2.0, prior to that we need
12423 # to call libtool --config explicitly
12424 if test "x$shrext_cmds" = x; then
12425     shrext_cmds=`SED=$SED ./libtool --config | grep '^shrext_cmds='`
12426     eval $shrext_cmds
12427 fi
12428 eval std_shrext=$shrext_cmds
12429 # chop the initial dot
12430 SHLIB_SUFFIX=${std_shrext#.}
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$SHLIB_SUFFIX" >&5
12432 $as_echo ".$SHLIB_SUFFIX" >&6; }
12433 # any reason it may fail?
12434 if test "x$SHLIB_SUFFIX" = x; then
12435         as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
12436 fi
12437
12438 cat >>confdefs.h <<_ACEOF
12439 #define SHLIB_SUFFIX "$SHLIB_SUFFIX"
12440 _ACEOF
12441
12442
12443 # Copied from dbus configure.in
12444 #### find the actual value for $prefix that we'll end up with
12445 ##   (I know this is broken and should be done in the Makefile, but
12446 ##    that's a major pain and almost nobody actually seems to care)
12447
12448   EXP_VAR=EXPANDED_LOCALSTATEDIR
12449   FROM_VAR="$localstatedir"
12450
12451     prefix_save=$prefix
12452   exec_prefix_save=$exec_prefix
12453
12454     if test "x$prefix" = "xNONE"; then
12455     prefix="$ac_default_prefix"
12456   fi
12457     if test "x$exec_prefix" = "xNONE"; then
12458     exec_prefix=$prefix
12459   fi
12460
12461   full_var="$FROM_VAR"
12462     while true; do
12463     new_full_var="`eval echo $full_var`"
12464     if test "x$new_full_var" = "x$full_var"; then break; fi
12465     full_var=$new_full_var
12466   done
12467
12468     full_var=$new_full_var
12469   EXPANDED_LOCALSTATEDIR="$full_var"
12470
12471
12472     prefix=$prefix_save
12473   exec_prefix=$exec_prefix_save
12474
12475
12476   EXP_VAR=EXPANDED_SYSCONFDIR
12477   FROM_VAR="$sysconfdir"
12478
12479     prefix_save=$prefix
12480   exec_prefix_save=$exec_prefix
12481
12482     if test "x$prefix" = "xNONE"; then
12483     prefix="$ac_default_prefix"
12484   fi
12485     if test "x$exec_prefix" = "xNONE"; then
12486     exec_prefix=$prefix
12487   fi
12488
12489   full_var="$FROM_VAR"
12490     while true; do
12491     new_full_var="`eval echo $full_var`"
12492     if test "x$new_full_var" = "x$full_var"; then break; fi
12493     full_var=$new_full_var
12494   done
12495
12496     full_var=$new_full_var
12497   EXPANDED_SYSCONFDIR="$full_var"
12498
12499
12500     prefix=$prefix_save
12501   exec_prefix=$exec_prefix_save
12502
12503
12504   EXP_VAR=EXPANDED_BINDIR
12505   FROM_VAR="$bindir"
12506
12507     prefix_save=$prefix
12508   exec_prefix_save=$exec_prefix
12509
12510     if test "x$prefix" = "xNONE"; then
12511     prefix="$ac_default_prefix"
12512   fi
12513     if test "x$exec_prefix" = "xNONE"; then
12514     exec_prefix=$prefix
12515   fi
12516
12517   full_var="$FROM_VAR"
12518     while true; do
12519     new_full_var="`eval echo $full_var`"
12520     if test "x$new_full_var" = "x$full_var"; then break; fi
12521     full_var=$new_full_var
12522   done
12523
12524     full_var=$new_full_var
12525   EXPANDED_BINDIR="$full_var"
12526
12527
12528     prefix=$prefix_save
12529   exec_prefix=$exec_prefix_save
12530
12531
12532   EXP_VAR=EXPANDED_LIBDIR
12533   FROM_VAR="$libdir"
12534
12535     prefix_save=$prefix
12536   exec_prefix_save=$exec_prefix
12537
12538     if test "x$prefix" = "xNONE"; then
12539     prefix="$ac_default_prefix"
12540   fi
12541     if test "x$exec_prefix" = "xNONE"; then
12542     exec_prefix=$prefix
12543   fi
12544
12545   full_var="$FROM_VAR"
12546     while true; do
12547     new_full_var="`eval echo $full_var`"
12548     if test "x$new_full_var" = "x$full_var"; then break; fi
12549     full_var=$new_full_var
12550   done
12551
12552     full_var=$new_full_var
12553   EXPANDED_LIBDIR="$full_var"
12554
12555
12556     prefix=$prefix_save
12557   exec_prefix=$exec_prefix_save
12558
12559
12560   EXP_VAR=EXPANDED_LIBEXECDIR
12561   FROM_VAR="$libexecdir"
12562
12563     prefix_save=$prefix
12564   exec_prefix_save=$exec_prefix
12565
12566     if test "x$prefix" = "xNONE"; then
12567     prefix="$ac_default_prefix"
12568   fi
12569     if test "x$exec_prefix" = "xNONE"; then
12570     exec_prefix=$prefix
12571   fi
12572
12573   full_var="$FROM_VAR"
12574     while true; do
12575     new_full_var="`eval echo $full_var`"
12576     if test "x$new_full_var" = "x$full_var"; then break; fi
12577     full_var=$new_full_var
12578   done
12579
12580     full_var=$new_full_var
12581   EXPANDED_LIBEXECDIR="$full_var"
12582
12583
12584     prefix=$prefix_save
12585   exec_prefix=$exec_prefix_save
12586
12587
12588   EXP_VAR=EXPANDED_DATADIR
12589   FROM_VAR="$datadir"
12590
12591     prefix_save=$prefix
12592   exec_prefix_save=$exec_prefix
12593
12594     if test "x$prefix" = "xNONE"; then
12595     prefix="$ac_default_prefix"
12596   fi
12597     if test "x$exec_prefix" = "xNONE"; then
12598     exec_prefix=$prefix
12599   fi
12600
12601   full_var="$FROM_VAR"
12602     while true; do
12603     new_full_var="`eval echo $full_var`"
12604     if test "x$new_full_var" = "x$full_var"; then break; fi
12605     full_var=$new_full_var
12606   done
12607
12608     full_var=$new_full_var
12609   EXPANDED_DATADIR="$full_var"
12610
12611
12612     prefix=$prefix_save
12613   exec_prefix=$exec_prefix_save
12614
12615
12616 #### Directory to install the libexec binaries
12617 GOBJECT_INTROSPECTION_LIBDIR="$EXPANDED_LIBDIR"
12618
12619
12620 cat >>confdefs.h <<_ACEOF
12621 #define GOBJECT_INTROSPECTION_LIBDIR "$GOBJECT_INTROSPECTION_LIBDIR"
12622 _ACEOF
12623
12624
12625 #### Directory to install the gir files
12626 GIR_SUFFIX="gir-1.0"
12627
12628
12629 cat >>confdefs.h <<_ACEOF
12630 #define GIR_SUFFIX "$GIR_SUFFIX"
12631 _ACEOF
12632
12633
12634 GIR_DIR="$EXPANDED_DATADIR/$GIR_SUFFIX"
12635
12636
12637 cat >>confdefs.h <<_ACEOF
12638 #define GIR_DIR "$GIR_DIR"
12639 _ACEOF
12640
12641
12642
12643 pkg_failed=no
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12645 $as_echo_n "checking for GLIB... " >&6; }
12646
12647 if test -n "$GLIB_CFLAGS"; then
12648     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12649  elif test -n "$PKG_CONFIG"; then
12650     if test -n "$PKG_CONFIG" && \
12651     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36.0\""; } >&5
12652   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36.0") 2>&5
12653   ac_status=$?
12654   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12655   test $ac_status = 0; }; then
12656   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.36.0" 2>/dev/null`
12657                       test "x$?" != "x0" && pkg_failed=yes
12658 else
12659   pkg_failed=yes
12660 fi
12661  else
12662     pkg_failed=untried
12663 fi
12664 if test -n "$GLIB_LIBS"; then
12665     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12666  elif test -n "$PKG_CONFIG"; then
12667     if test -n "$PKG_CONFIG" && \
12668     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.36.0\""; } >&5
12669   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.36.0") 2>&5
12670   ac_status=$?
12671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672   test $ac_status = 0; }; then
12673   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.36.0" 2>/dev/null`
12674                       test "x$?" != "x0" && pkg_failed=yes
12675 else
12676   pkg_failed=yes
12677 fi
12678  else
12679     pkg_failed=untried
12680 fi
12681
12682
12683
12684 if test $pkg_failed = yes; then
12685         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12686 $as_echo "no" >&6; }
12687
12688 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12689         _pkg_short_errors_supported=yes
12690 else
12691         _pkg_short_errors_supported=no
12692 fi
12693         if test $_pkg_short_errors_supported = yes; then
12694                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.36.0" 2>&1`
12695         else
12696                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.36.0" 2>&1`
12697         fi
12698         # Put the nasty error message in config.log where it belongs
12699         echo "$GLIB_PKG_ERRORS" >&5
12700
12701         as_fn_error $? "Package requirements (glib-2.0 >= 2.36.0) were not met:
12702
12703 $GLIB_PKG_ERRORS
12704
12705 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12706 installed software in a non-standard prefix.
12707
12708 Alternatively, you may set the environment variables GLIB_CFLAGS
12709 and GLIB_LIBS to avoid the need to call pkg-config.
12710 See the pkg-config man page for more details." "$LINENO" 5
12711 elif test $pkg_failed = untried; then
12712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12713 $as_echo "no" >&6; }
12714         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12716 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12717 is in your PATH or set the PKG_CONFIG environment variable to the full
12718 path to pkg-config.
12719
12720 Alternatively, you may set the environment variables GLIB_CFLAGS
12721 and GLIB_LIBS to avoid the need to call pkg-config.
12722 See the pkg-config man page for more details.
12723
12724 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12725 See \`config.log' for more details" "$LINENO" 5; }
12726 else
12727         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12728         GLIB_LIBS=$pkg_cv_GLIB_LIBS
12729         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12730 $as_echo "yes" >&6; }
12731
12732 fi
12733
12734 pkg_failed=no
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
12736 $as_echo_n "checking for GOBJECT... " >&6; }
12737
12738 if test -n "$GOBJECT_CFLAGS"; then
12739     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
12740  elif test -n "$PKG_CONFIG"; then
12741     if test -n "$PKG_CONFIG" && \
12742     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12743   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12744   ac_status=$?
12745   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12746   test $ac_status = 0; }; then
12747   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
12748                       test "x$?" != "x0" && pkg_failed=yes
12749 else
12750   pkg_failed=yes
12751 fi
12752  else
12753     pkg_failed=untried
12754 fi
12755 if test -n "$GOBJECT_LIBS"; then
12756     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
12757  elif test -n "$PKG_CONFIG"; then
12758     if test -n "$PKG_CONFIG" && \
12759     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
12760   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
12761   ac_status=$?
12762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763   test $ac_status = 0; }; then
12764   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
12765                       test "x$?" != "x0" && pkg_failed=yes
12766 else
12767   pkg_failed=yes
12768 fi
12769  else
12770     pkg_failed=untried
12771 fi
12772
12773
12774
12775 if test $pkg_failed = yes; then
12776         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12778
12779 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12780         _pkg_short_errors_supported=yes
12781 else
12782         _pkg_short_errors_supported=no
12783 fi
12784         if test $_pkg_short_errors_supported = yes; then
12785                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
12786         else
12787                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
12788         fi
12789         # Put the nasty error message in config.log where it belongs
12790         echo "$GOBJECT_PKG_ERRORS" >&5
12791
12792         as_fn_error $? "Package requirements (gobject-2.0) were not met:
12793
12794 $GOBJECT_PKG_ERRORS
12795
12796 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12797 installed software in a non-standard prefix.
12798
12799 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12800 and GOBJECT_LIBS to avoid the need to call pkg-config.
12801 See the pkg-config man page for more details." "$LINENO" 5
12802 elif test $pkg_failed = untried; then
12803         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804 $as_echo "no" >&6; }
12805         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12807 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12808 is in your PATH or set the PKG_CONFIG environment variable to the full
12809 path to pkg-config.
12810
12811 Alternatively, you may set the environment variables GOBJECT_CFLAGS
12812 and GOBJECT_LIBS to avoid the need to call pkg-config.
12813 See the pkg-config man page for more details.
12814
12815 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12816 See \`config.log' for more details" "$LINENO" 5; }
12817 else
12818         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
12819         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
12820         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 $as_echo "yes" >&6; }
12822
12823 fi
12824
12825 pkg_failed=no
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
12827 $as_echo_n "checking for GMODULE... " >&6; }
12828
12829 if test -n "$GMODULE_CFLAGS"; then
12830     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
12831  elif test -n "$PKG_CONFIG"; then
12832     if test -n "$PKG_CONFIG" && \
12833     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12834   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12835   ac_status=$?
12836   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12837   test $ac_status = 0; }; then
12838   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
12839                       test "x$?" != "x0" && pkg_failed=yes
12840 else
12841   pkg_failed=yes
12842 fi
12843  else
12844     pkg_failed=untried
12845 fi
12846 if test -n "$GMODULE_LIBS"; then
12847     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
12848  elif test -n "$PKG_CONFIG"; then
12849     if test -n "$PKG_CONFIG" && \
12850     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
12851   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
12852   ac_status=$?
12853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12854   test $ac_status = 0; }; then
12855   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
12856                       test "x$?" != "x0" && pkg_failed=yes
12857 else
12858   pkg_failed=yes
12859 fi
12860  else
12861     pkg_failed=untried
12862 fi
12863
12864
12865
12866 if test $pkg_failed = yes; then
12867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12868 $as_echo "no" >&6; }
12869
12870 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12871         _pkg_short_errors_supported=yes
12872 else
12873         _pkg_short_errors_supported=no
12874 fi
12875         if test $_pkg_short_errors_supported = yes; then
12876                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12877         else
12878                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
12879         fi
12880         # Put the nasty error message in config.log where it belongs
12881         echo "$GMODULE_PKG_ERRORS" >&5
12882
12883         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
12884
12885 $GMODULE_PKG_ERRORS
12886
12887 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12888 installed software in a non-standard prefix.
12889
12890 Alternatively, you may set the environment variables GMODULE_CFLAGS
12891 and GMODULE_LIBS to avoid the need to call pkg-config.
12892 See the pkg-config man page for more details." "$LINENO" 5
12893 elif test $pkg_failed = untried; then
12894         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895 $as_echo "no" >&6; }
12896         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12898 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12899 is in your PATH or set the PKG_CONFIG environment variable to the full
12900 path to pkg-config.
12901
12902 Alternatively, you may set the environment variables GMODULE_CFLAGS
12903 and GMODULE_LIBS to avoid the need to call pkg-config.
12904 See the pkg-config man page for more details.
12905
12906 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12907 See \`config.log' for more details" "$LINENO" 5; }
12908 else
12909         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
12910         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
12911         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12912 $as_echo "yes" >&6; }
12913
12914 fi
12915
12916 pkg_failed=no
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
12918 $as_echo_n "checking for GIO... " >&6; }
12919
12920 if test -n "$GIO_CFLAGS"; then
12921     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
12922  elif test -n "$PKG_CONFIG"; then
12923     if test -n "$PKG_CONFIG" && \
12924     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12925   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12926   ac_status=$?
12927   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12928   test $ac_status = 0; }; then
12929   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
12930                       test "x$?" != "x0" && pkg_failed=yes
12931 else
12932   pkg_failed=yes
12933 fi
12934  else
12935     pkg_failed=untried
12936 fi
12937 if test -n "$GIO_LIBS"; then
12938     pkg_cv_GIO_LIBS="$GIO_LIBS"
12939  elif test -n "$PKG_CONFIG"; then
12940     if test -n "$PKG_CONFIG" && \
12941     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
12942   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
12943   ac_status=$?
12944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945   test $ac_status = 0; }; then
12946   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
12947                       test "x$?" != "x0" && pkg_failed=yes
12948 else
12949   pkg_failed=yes
12950 fi
12951  else
12952     pkg_failed=untried
12953 fi
12954
12955
12956
12957 if test $pkg_failed = yes; then
12958         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12959 $as_echo "no" >&6; }
12960
12961 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12962         _pkg_short_errors_supported=yes
12963 else
12964         _pkg_short_errors_supported=no
12965 fi
12966         if test $_pkg_short_errors_supported = yes; then
12967                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
12968         else
12969                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
12970         fi
12971         # Put the nasty error message in config.log where it belongs
12972         echo "$GIO_PKG_ERRORS" >&5
12973
12974         as_fn_error $? "Package requirements (gio-2.0) were not met:
12975
12976 $GIO_PKG_ERRORS
12977
12978 Consider adjusting the PKG_CONFIG_PATH environment variable if you
12979 installed software in a non-standard prefix.
12980
12981 Alternatively, you may set the environment variables GIO_CFLAGS
12982 and GIO_LIBS to avoid the need to call pkg-config.
12983 See the pkg-config man page for more details." "$LINENO" 5
12984 elif test $pkg_failed = untried; then
12985         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12986 $as_echo "no" >&6; }
12987         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12989 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
12990 is in your PATH or set the PKG_CONFIG environment variable to the full
12991 path to pkg-config.
12992
12993 Alternatively, you may set the environment variables GIO_CFLAGS
12994 and GIO_LIBS to avoid the need to call pkg-config.
12995 See the pkg-config man page for more details.
12996
12997 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12998 See \`config.log' for more details" "$LINENO" 5; }
12999 else
13000         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13001         GIO_LIBS=$pkg_cv_GIO_LIBS
13002         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13003 $as_echo "yes" >&6; }
13004
13005 fi
13006
13007 pkg_failed=no
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX" >&5
13009 $as_echo_n "checking for GIO_UNIX... " >&6; }
13010
13011 if test -n "$GIO_UNIX_CFLAGS"; then
13012     pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
13013  elif test -n "$PKG_CONFIG"; then
13014     if test -n "$PKG_CONFIG" && \
13015     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13016   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13017   ac_status=$?
13018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13019   test $ac_status = 0; }; then
13020   pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0" 2>/dev/null`
13021                       test "x$?" != "x0" && pkg_failed=yes
13022 else
13023   pkg_failed=yes
13024 fi
13025  else
13026     pkg_failed=untried
13027 fi
13028 if test -n "$GIO_UNIX_LIBS"; then
13029     pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
13030  elif test -n "$PKG_CONFIG"; then
13031     if test -n "$PKG_CONFIG" && \
13032     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13033   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13034   ac_status=$?
13035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036   test $ac_status = 0; }; then
13037   pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0" 2>/dev/null`
13038                       test "x$?" != "x0" && pkg_failed=yes
13039 else
13040   pkg_failed=yes
13041 fi
13042  else
13043     pkg_failed=untried
13044 fi
13045
13046
13047
13048 if test $pkg_failed = yes; then
13049         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13050 $as_echo "no" >&6; }
13051
13052 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13053         _pkg_short_errors_supported=yes
13054 else
13055         _pkg_short_errors_supported=no
13056 fi
13057         if test $_pkg_short_errors_supported = yes; then
13058                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13059         else
13060                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13061         fi
13062         # Put the nasty error message in config.log where it belongs
13063         echo "$GIO_UNIX_PKG_ERRORS" >&5
13064
13065         have_gio_unix=false
13066 elif test $pkg_failed = untried; then
13067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13068 $as_echo "no" >&6; }
13069         have_gio_unix=false
13070 else
13071         GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
13072         GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
13073         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13074 $as_echo "yes" >&6; }
13075         have_gio_unix=true
13076 fi
13077  if test x$have_gio_unix = xtrue; then
13078   HAVE_GIO_UNIX_TRUE=
13079   HAVE_GIO_UNIX_FALSE='#'
13080 else
13081   HAVE_GIO_UNIX_TRUE='#'
13082   HAVE_GIO_UNIX_FALSE=
13083 fi
13084
13085
13086 # Prefer cairo-gobject if we have it
13087
13088 # Check whether --with-cairo was given.
13089 if test "${with_cairo+set}" = set; then :
13090   withval=$with_cairo;
13091 else
13092   with_cairo=maybe
13093 fi
13094
13095
13096 if test x${with_cairo} != xno; then :
13097
13098
13099 pkg_failed=no
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13101 $as_echo_n "checking for CAIRO... " >&6; }
13102
13103 if test -n "$CAIRO_CFLAGS"; then
13104     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13105  elif test -n "$PKG_CONFIG"; then
13106     if test -n "$PKG_CONFIG" && \
13107     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13108   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13109   ac_status=$?
13110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13111   test $ac_status = 0; }; then
13112   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13113                       test "x$?" != "x0" && pkg_failed=yes
13114 else
13115   pkg_failed=yes
13116 fi
13117  else
13118     pkg_failed=untried
13119 fi
13120 if test -n "$CAIRO_LIBS"; then
13121     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13122  elif test -n "$PKG_CONFIG"; then
13123     if test -n "$PKG_CONFIG" && \
13124     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13125   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13126   ac_status=$?
13127   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13128   test $ac_status = 0; }; then
13129   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13130                       test "x$?" != "x0" && pkg_failed=yes
13131 else
13132   pkg_failed=yes
13133 fi
13134  else
13135     pkg_failed=untried
13136 fi
13137
13138
13139
13140 if test $pkg_failed = yes; then
13141         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13142 $as_echo "no" >&6; }
13143
13144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13145         _pkg_short_errors_supported=yes
13146 else
13147         _pkg_short_errors_supported=no
13148 fi
13149         if test $_pkg_short_errors_supported = yes; then
13150                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13151         else
13152                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13153         fi
13154         # Put the nasty error message in config.log where it belongs
13155         echo "$CAIRO_PKG_ERRORS" >&5
13156
13157         have_cairo=no
13158 elif test $pkg_failed = untried; then
13159         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13161         have_cairo=no
13162 else
13163         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13164         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13165         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13166 $as_echo "yes" >&6; }
13167         have_cairo=yes
13168 fi
13169   if  test x$have_cairo = xno && test x$with_cairo = xyes ; then :
13170
13171     as_fn_error $? "cairo enabled but not found" "$LINENO" 5
13172
13173 fi
13174
13175 fi
13176  if test x$have_cairo = xyes; then
13177   HAVE_CAIRO_TRUE=
13178   HAVE_CAIRO_FALSE='#'
13179 else
13180   HAVE_CAIRO_TRUE='#'
13181   HAVE_CAIRO_FALSE=
13182 fi
13183
13184
13185 case "$host" in
13186   *-*-darwin*)
13187     CAIRO_SHARED_LIBRARY="libcairo-gobject.2.dylib"
13188     ;;
13189   *-*-mingw*)
13190     CAIRO_SHARED_LIBRARY="libcairo-gobject-2.dll"
13191     ;;
13192   *-*-openbsd*)
13193     CAIRO_SHARED_LIBRARY="libcairo-gobject.so"
13194     ;;
13195   *)
13196     CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
13197     ;;
13198 esac
13199 CAIRO_GIR_PACKAGE="cairo-gobject"
13200
13201
13202
13203
13204
13205
13206 pkg_failed=no
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCANNER" >&5
13208 $as_echo_n "checking for SCANNER... " >&6; }
13209
13210 if test -n "$SCANNER_CFLAGS"; then
13211     pkg_cv_SCANNER_CFLAGS="$SCANNER_CFLAGS"
13212  elif test -n "$PKG_CONFIG"; then
13213     if test -n "$PKG_CONFIG" && \
13214     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13215   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13216   ac_status=$?
13217   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218   test $ac_status = 0; }; then
13219   pkg_cv_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gio-2.0" 2>/dev/null`
13220                       test "x$?" != "x0" && pkg_failed=yes
13221 else
13222   pkg_failed=yes
13223 fi
13224  else
13225     pkg_failed=untried
13226 fi
13227 if test -n "$SCANNER_LIBS"; then
13228     pkg_cv_SCANNER_LIBS="$SCANNER_LIBS"
13229  elif test -n "$PKG_CONFIG"; then
13230     if test -n "$PKG_CONFIG" && \
13231     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13232   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13233   ac_status=$?
13234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13235   test $ac_status = 0; }; then
13236   pkg_cv_SCANNER_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gio-2.0" 2>/dev/null`
13237                       test "x$?" != "x0" && pkg_failed=yes
13238 else
13239   pkg_failed=yes
13240 fi
13241  else
13242     pkg_failed=untried
13243 fi
13244
13245
13246
13247 if test $pkg_failed = yes; then
13248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13250
13251 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13252         _pkg_short_errors_supported=yes
13253 else
13254         _pkg_short_errors_supported=no
13255 fi
13256         if test $_pkg_short_errors_supported = yes; then
13257                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13258         else
13259                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13260         fi
13261         # Put the nasty error message in config.log where it belongs
13262         echo "$SCANNER_PKG_ERRORS" >&5
13263
13264         as_fn_error $? "Package requirements (gobject-2.0 gio-2.0) were not met:
13265
13266 $SCANNER_PKG_ERRORS
13267
13268 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13269 installed software in a non-standard prefix.
13270
13271 Alternatively, you may set the environment variables SCANNER_CFLAGS
13272 and SCANNER_LIBS to avoid the need to call pkg-config.
13273 See the pkg-config man page for more details." "$LINENO" 5
13274 elif test $pkg_failed = untried; then
13275         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276 $as_echo "no" >&6; }
13277         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13279 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13280 is in your PATH or set the PKG_CONFIG environment variable to the full
13281 path to pkg-config.
13282
13283 Alternatively, you may set the environment variables SCANNER_CFLAGS
13284 and SCANNER_LIBS to avoid the need to call pkg-config.
13285 See the pkg-config man page for more details.
13286
13287 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13288 See \`config.log' for more details" "$LINENO" 5; }
13289 else
13290         SCANNER_CFLAGS=$pkg_cv_SCANNER_CFLAGS
13291         SCANNER_LIBS=$pkg_cv_SCANNER_LIBS
13292         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13293 $as_echo "yes" >&6; }
13294
13295 fi
13296
13297
13298 pkg_failed=no
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13300 $as_echo_n "checking for FFI... " >&6; }
13301
13302 if test -n "$FFI_CFLAGS"; then
13303     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13304  elif test -n "$PKG_CONFIG"; then
13305     if test -n "$PKG_CONFIG" && \
13306     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
13307   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
13308   ac_status=$?
13309   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13310   test $ac_status = 0; }; then
13311   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
13312                       test "x$?" != "x0" && pkg_failed=yes
13313 else
13314   pkg_failed=yes
13315 fi
13316  else
13317     pkg_failed=untried
13318 fi
13319 if test -n "$FFI_LIBS"; then
13320     pkg_cv_FFI_LIBS="$FFI_LIBS"
13321  elif test -n "$PKG_CONFIG"; then
13322     if test -n "$PKG_CONFIG" && \
13323     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
13324   ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
13325   ac_status=$?
13326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327   test $ac_status = 0; }; then
13328   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
13329                       test "x$?" != "x0" && pkg_failed=yes
13330 else
13331   pkg_failed=yes
13332 fi
13333  else
13334     pkg_failed=untried
13335 fi
13336
13337
13338
13339 if test $pkg_failed = yes; then
13340         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13341 $as_echo "no" >&6; }
13342
13343 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13344         _pkg_short_errors_supported=yes
13345 else
13346         _pkg_short_errors_supported=no
13347 fi
13348         if test $_pkg_short_errors_supported = yes; then
13349                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
13350         else
13351                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
13352         fi
13353         # Put the nasty error message in config.log where it belongs
13354         echo "$FFI_PKG_ERRORS" >&5
13355
13356         have_ffi_pkgconfig=no
13357 elif test $pkg_failed = untried; then
13358         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13359 $as_echo "no" >&6; }
13360         have_ffi_pkgconfig=no
13361 else
13362         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13363         FFI_LIBS=$pkg_cv_FFI_LIBS
13364         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13366         have_ffi_pkgconfig=yes
13367 fi
13368 FFI_PC_CFLAGS=""
13369 FFI_PC_LIBS=""
13370 FFI_PC_PACKAGES=""
13371 if test x"$have_ffi_pkgconfig" = xyes ; then
13372     FFI_PC_PACKAGES="libffi"
13373 else
13374   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi.h" >&5
13375 $as_echo_n "checking for ffi.h... " >&6; }
13376
13377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13378 /* end confdefs.h.  */
13379 #include <ffi.h>
13380 _ACEOF
13381 if ac_fn_c_try_cpp "$LINENO"; then :
13382   have_ffi_h=yes
13383 else
13384   have_ffi_h=no
13385 fi
13386 rm -f conftest.err conftest.i conftest.$ac_ext
13387   if test x"$have_ffi_h" = x"yes"; then
13388
13389     save_LIBS=$LIBS
13390     if test x"$with_ffi" = x"yes" || test x"$with_ffi" = x"auto"; then
13391       other_LIBS=
13392     else
13393       other_LIBS=$with_ffi
13394     fi
13395
13396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
13397 $as_echo_n "checking for library containing ffi_call... " >&6; }
13398 if ${ac_cv_search_ffi_call+:} false; then :
13399   $as_echo_n "(cached) " >&6
13400 else
13401   ac_func_search_save_LIBS=$LIBS
13402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13403 /* end confdefs.h.  */
13404
13405 /* Override any GCC internal prototype to avoid an error.
13406    Use char because int might match the return type of a GCC
13407    builtin and then its argument prototype would still apply.  */
13408 #ifdef __cplusplus
13409 extern "C"
13410 #endif
13411 char ffi_call ();
13412 int
13413 main ()
13414 {
13415 return ffi_call ();
13416   ;
13417   return 0;
13418 }
13419 _ACEOF
13420 for ac_lib in '' ffi; do
13421   if test -z "$ac_lib"; then
13422     ac_res="none required"
13423   else
13424     ac_res=-l$ac_lib
13425     LIBS="-l$ac_lib $other_LIBS $ac_func_search_save_LIBS"
13426   fi
13427   if ac_fn_c_try_link "$LINENO"; then :
13428   ac_cv_search_ffi_call=$ac_res
13429 fi
13430 rm -f core conftest.err conftest.$ac_objext \
13431     conftest$ac_exeext
13432   if ${ac_cv_search_ffi_call+:} false; then :
13433   break
13434 fi
13435 done
13436 if ${ac_cv_search_ffi_call+:} false; then :
13437
13438 else
13439   ac_cv_search_ffi_call=no
13440 fi
13441 rm conftest.$ac_ext
13442 LIBS=$ac_func_search_save_LIBS
13443 fi
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
13445 $as_echo "$ac_cv_search_ffi_call" >&6; }
13446 ac_res=$ac_cv_search_ffi_call
13447 if test "$ac_res" != no; then :
13448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13449
13450 else
13451   as_fn_error $? "libffi not found" "$LINENO" 5
13452 fi
13453
13454     if test x"$ac_cv_search_ffi_call" = x"none required" ; then
13455       FFI_LIBS=$other_LIBS
13456     else
13457       FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
13458     fi
13459
13460     LIBS=$save_LIBS
13461   fi
13462   if test x"$have_ffi_h" != x"yes" ; then
13463     as_fn_error $? "ffi.h not found" "$LINENO" 5
13464   fi
13465
13466   FFI_PC_LIBS=$FFI_LIBS
13467   FFI_PC_CFLAGS=$FFI_CFLAGS
13468   FFI_CFLAGS=
13469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffi_h" >&5
13470 $as_echo "$have_ffi_h" >&6; }
13471
13472
13473 fi
13474
13475
13476
13477
13478 # The cast to long int works around a bug in the HP C Compiler
13479 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13480 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13481 # This bug is HP SR number 8606223364.
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13483 $as_echo_n "checking size of char... " >&6; }
13484 if ${ac_cv_sizeof_char+:} false; then :
13485   $as_echo_n "(cached) " >&6
13486 else
13487   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13488
13489 else
13490   if test "$ac_cv_type_char" = yes; then
13491      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13493 as_fn_error 77 "cannot compute sizeof (char)
13494 See \`config.log' for more details" "$LINENO" 5; }
13495    else
13496      ac_cv_sizeof_char=0
13497    fi
13498 fi
13499
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13502 $as_echo "$ac_cv_sizeof_char" >&6; }
13503
13504
13505
13506 cat >>confdefs.h <<_ACEOF
13507 #define SIZEOF_CHAR $ac_cv_sizeof_char
13508 _ACEOF
13509
13510
13511 # The cast to long int works around a bug in the HP C Compiler
13512 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13513 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13514 # This bug is HP SR number 8606223364.
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13516 $as_echo_n "checking size of short... " >&6; }
13517 if ${ac_cv_sizeof_short+:} false; then :
13518   $as_echo_n "(cached) " >&6
13519 else
13520   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
13521
13522 else
13523   if test "$ac_cv_type_short" = yes; then
13524      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13526 as_fn_error 77 "cannot compute sizeof (short)
13527 See \`config.log' for more details" "$LINENO" 5; }
13528    else
13529      ac_cv_sizeof_short=0
13530    fi
13531 fi
13532
13533 fi
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13535 $as_echo "$ac_cv_sizeof_short" >&6; }
13536
13537
13538
13539 cat >>confdefs.h <<_ACEOF
13540 #define SIZEOF_SHORT $ac_cv_sizeof_short
13541 _ACEOF
13542
13543
13544 # The cast to long int works around a bug in the HP C Compiler
13545 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13546 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13547 # This bug is HP SR number 8606223364.
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13549 $as_echo_n "checking size of int... " >&6; }
13550 if ${ac_cv_sizeof_int+:} false; then :
13551   $as_echo_n "(cached) " >&6
13552 else
13553   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
13554
13555 else
13556   if test "$ac_cv_type_int" = yes; then
13557      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13559 as_fn_error 77 "cannot compute sizeof (int)
13560 See \`config.log' for more details" "$LINENO" 5; }
13561    else
13562      ac_cv_sizeof_int=0
13563    fi
13564 fi
13565
13566 fi
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13568 $as_echo "$ac_cv_sizeof_int" >&6; }
13569
13570
13571
13572 cat >>confdefs.h <<_ACEOF
13573 #define SIZEOF_INT $ac_cv_sizeof_int
13574 _ACEOF
13575
13576
13577 # The cast to long int works around a bug in the HP C Compiler
13578 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13579 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13580 # This bug is HP SR number 8606223364.
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13582 $as_echo_n "checking size of long... " >&6; }
13583 if ${ac_cv_sizeof_long+:} false; then :
13584   $as_echo_n "(cached) " >&6
13585 else
13586   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
13587
13588 else
13589   if test "$ac_cv_type_long" = yes; then
13590      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13592 as_fn_error 77 "cannot compute sizeof (long)
13593 See \`config.log' for more details" "$LINENO" 5; }
13594    else
13595      ac_cv_sizeof_long=0
13596    fi
13597 fi
13598
13599 fi
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13601 $as_echo "$ac_cv_sizeof_long" >&6; }
13602
13603
13604
13605 cat >>confdefs.h <<_ACEOF
13606 #define SIZEOF_LONG $ac_cv_sizeof_long
13607 _ACEOF
13608
13609
13610
13611
13612 pkg_failed=no
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIREPO" >&5
13614 $as_echo_n "checking for GIREPO... " >&6; }
13615
13616 if test -n "$GIREPO_CFLAGS"; then
13617     pkg_cv_GIREPO_CFLAGS="$GIREPO_CFLAGS"
13618  elif test -n "$PKG_CONFIG"; then
13619     if test -n "$PKG_CONFIG" && \
13620     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0\""; } >&5
13621   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13622   ac_status=$?
13623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624   test $ac_status = 0; }; then
13625   pkg_cv_GIREPO_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>/dev/null`
13626                       test "x$?" != "x0" && pkg_failed=yes
13627 else
13628   pkg_failed=yes
13629 fi
13630  else
13631     pkg_failed=untried
13632 fi
13633 if test -n "$GIREPO_LIBS"; then
13634     pkg_cv_GIREPO_LIBS="$GIREPO_LIBS"
13635  elif test -n "$PKG_CONFIG"; then
13636     if test -n "$PKG_CONFIG" && \
13637     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0\""; } >&5
13638   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
13639   ac_status=$?
13640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13641   test $ac_status = 0; }; then
13642   pkg_cv_GIREPO_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>/dev/null`
13643                       test "x$?" != "x0" && pkg_failed=yes
13644 else
13645   pkg_failed=yes
13646 fi
13647  else
13648     pkg_failed=untried
13649 fi
13650
13651
13652
13653 if test $pkg_failed = yes; then
13654         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13655 $as_echo "no" >&6; }
13656
13657 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13658         _pkg_short_errors_supported=yes
13659 else
13660         _pkg_short_errors_supported=no
13661 fi
13662         if test $_pkg_short_errors_supported = yes; then
13663                 GIREPO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
13664         else
13665                 GIREPO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0" 2>&1`
13666         fi
13667         # Put the nasty error message in config.log where it belongs
13668         echo "$GIREPO_PKG_ERRORS" >&5
13669
13670         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0) were not met:
13671
13672 $GIREPO_PKG_ERRORS
13673
13674 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13675 installed software in a non-standard prefix.
13676
13677 Alternatively, you may set the environment variables GIREPO_CFLAGS
13678 and GIREPO_LIBS to avoid the need to call pkg-config.
13679 See the pkg-config man page for more details." "$LINENO" 5
13680 elif test $pkg_failed = untried; then
13681         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682 $as_echo "no" >&6; }
13683         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13685 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13686 is in your PATH or set the PKG_CONFIG environment variable to the full
13687 path to pkg-config.
13688
13689 Alternatively, you may set the environment variables GIREPO_CFLAGS
13690 and GIREPO_LIBS to avoid the need to call pkg-config.
13691 See the pkg-config man page for more details.
13692
13693 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13694 See \`config.log' for more details" "$LINENO" 5; }
13695 else
13696         GIREPO_CFLAGS=$pkg_cv_GIREPO_CFLAGS
13697         GIREPO_LIBS=$pkg_cv_GIREPO_LIBS
13698         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13699 $as_echo "yes" >&6; }
13700
13701 fi
13702
13703 # if we ever remove manual check for ffi and require .pc file, then
13704 # just put libffi in the PKG_CHECK_MODULES(GIREPO) deps
13705 GIREPO_LIBS="$GIREPO_LIBS $GCOV_LIBS $FFI_LIBS"
13706 GIREPO_CFLAGS="$GIREPO_CFLAGS $FFI_CFLAGS"
13707
13708 GIREPO_CFLAGS="$GIREPO_CFLAGS $GCOV_CFLAGS"
13709
13710 # gtk-doc
13711 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
13712 # it on it's own line.
13713
13714
13715
13716
13717     # Extract the first word of "gtkdoc-check", so it can be a program name with args.
13718 set dummy gtkdoc-check; ac_word=$2
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13720 $as_echo_n "checking for $ac_word... " >&6; }
13721 if ${ac_cv_path_GTKDOC_CHECK+:} false; then :
13722   $as_echo_n "(cached) " >&6
13723 else
13724   case $GTKDOC_CHECK in
13725   [\\/]* | ?:[\\/]*)
13726   ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
13727   ;;
13728   *)
13729   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13730 for as_dir in $PATH
13731 do
13732   IFS=$as_save_IFS
13733   test -z "$as_dir" && as_dir=.
13734     for ac_exec_ext in '' $ac_executable_extensions; do
13735   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13736     ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
13737     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13738     break 2
13739   fi
13740 done
13741   done
13742 IFS=$as_save_IFS
13743
13744   ;;
13745 esac
13746 fi
13747 GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
13748 if test -n "$GTKDOC_CHECK"; then
13749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
13750 $as_echo "$GTKDOC_CHECK" >&6; }
13751 else
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13754 fi
13755
13756
13757   for ac_prog in gtkdoc-rebase
13758 do
13759   # Extract the first word of "$ac_prog", so it can be a program name with args.
13760 set dummy $ac_prog; ac_word=$2
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13762 $as_echo_n "checking for $ac_word... " >&6; }
13763 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
13764   $as_echo_n "(cached) " >&6
13765 else
13766   case $GTKDOC_REBASE in
13767   [\\/]* | ?:[\\/]*)
13768   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
13769   ;;
13770   *)
13771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13772 for as_dir in $PATH
13773 do
13774   IFS=$as_save_IFS
13775   test -z "$as_dir" && as_dir=.
13776     for ac_exec_ext in '' $ac_executable_extensions; do
13777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13778     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
13779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13780     break 2
13781   fi
13782 done
13783   done
13784 IFS=$as_save_IFS
13785
13786   ;;
13787 esac
13788 fi
13789 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
13790 if test -n "$GTKDOC_REBASE"; then
13791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
13792 $as_echo "$GTKDOC_REBASE" >&6; }
13793 else
13794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13795 $as_echo "no" >&6; }
13796 fi
13797
13798
13799   test -n "$GTKDOC_REBASE" && break
13800 done
13801 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
13802
13803   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
13804 set dummy gtkdoc-mkpdf; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
13808   $as_echo_n "(cached) " >&6
13809 else
13810   case $GTKDOC_MKPDF in
13811   [\\/]* | ?:[\\/]*)
13812   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
13813   ;;
13814   *)
13815   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $PATH
13817 do
13818   IFS=$as_save_IFS
13819   test -z "$as_dir" && as_dir=.
13820     for ac_exec_ext in '' $ac_executable_extensions; do
13821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
13823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13824     break 2
13825   fi
13826 done
13827   done
13828 IFS=$as_save_IFS
13829
13830   ;;
13831 esac
13832 fi
13833 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
13834 if test -n "$GTKDOC_MKPDF"; then
13835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
13836 $as_echo "$GTKDOC_MKPDF" >&6; }
13837 else
13838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13840 fi
13841
13842
13843
13844
13845 # Check whether --with-html-dir was given.
13846 if test "${with_html_dir+set}" = set; then :
13847   withval=$with_html_dir;
13848 else
13849   with_html_dir='${datadir}/gtk-doc/html'
13850 fi
13851
13852   HTML_DIR="$with_html_dir"
13853
13854
13855     # Check whether --enable-gtk-doc was given.
13856 if test "${enable_gtk_doc+set}" = set; then :
13857   enableval=$enable_gtk_doc;
13858 else
13859   enable_gtk_doc=no
13860 fi
13861
13862
13863   if test x$enable_gtk_doc = xyes; then
13864     if test -n "$PKG_CONFIG" && \
13865     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.15\""; } >&5
13866   ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.15") 2>&5
13867   ac_status=$?
13868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13869   test $ac_status = 0; }; then
13870   :
13871 else
13872   as_fn_error $? "You need to have gtk-doc >= 1.15 installed to build $PACKAGE_NAME" "$LINENO" 5
13873 fi
13874         if test "x$PACKAGE_NAME" != "xglib"; then
13875
13876 pkg_failed=no
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
13878 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
13879
13880 if test -n "$GTKDOC_DEPS_CFLAGS"; then
13881     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
13882  elif test -n "$PKG_CONFIG"; then
13883     if test -n "$PKG_CONFIG" && \
13884     { { $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
13885   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13886   ac_status=$?
13887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13888   test $ac_status = 0; }; then
13889   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13890                       test "x$?" != "x0" && pkg_failed=yes
13891 else
13892   pkg_failed=yes
13893 fi
13894  else
13895     pkg_failed=untried
13896 fi
13897 if test -n "$GTKDOC_DEPS_LIBS"; then
13898     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
13899  elif test -n "$PKG_CONFIG"; then
13900     if test -n "$PKG_CONFIG" && \
13901     { { $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
13902   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
13903   ac_status=$?
13904   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13905   test $ac_status = 0; }; then
13906   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
13907                       test "x$?" != "x0" && pkg_failed=yes
13908 else
13909   pkg_failed=yes
13910 fi
13911  else
13912     pkg_failed=untried
13913 fi
13914
13915
13916
13917 if test $pkg_failed = yes; then
13918         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13919 $as_echo "no" >&6; }
13920
13921 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13922         _pkg_short_errors_supported=yes
13923 else
13924         _pkg_short_errors_supported=no
13925 fi
13926         if test $_pkg_short_errors_supported = yes; then
13927                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13928         else
13929                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
13930         fi
13931         # Put the nasty error message in config.log where it belongs
13932         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
13933
13934         :
13935 elif test $pkg_failed = untried; then
13936         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13937 $as_echo "no" >&6; }
13938         :
13939 else
13940         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
13941         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
13942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943 $as_echo "yes" >&6; }
13944
13945 fi
13946     fi
13947   fi
13948
13949   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
13950 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
13951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
13952 $as_echo "$enable_gtk_doc" >&6; }
13953
13954     # Check whether --enable-gtk-doc-html was given.
13955 if test "${enable_gtk_doc_html+set}" = set; then :
13956   enableval=$enable_gtk_doc_html;
13957 else
13958   enable_gtk_doc_html=yes
13959 fi
13960
13961     # Check whether --enable-gtk-doc-pdf was given.
13962 if test "${enable_gtk_doc_pdf+set}" = set; then :
13963   enableval=$enable_gtk_doc_pdf;
13964 else
13965   enable_gtk_doc_pdf=no
13966 fi
13967
13968
13969   if test -z "$GTKDOC_MKPDF"; then
13970     enable_gtk_doc_pdf=no
13971   fi
13972
13973   if test -z "$AM_DEFAULT_VERBOSITY"; then
13974     AM_DEFAULT_VERBOSITY=1
13975   fi
13976
13977
13978    if test x$enable_gtk_doc = xyes; then
13979   ENABLE_GTK_DOC_TRUE=
13980   ENABLE_GTK_DOC_FALSE='#'
13981 else
13982   ENABLE_GTK_DOC_TRUE='#'
13983   ENABLE_GTK_DOC_FALSE=
13984 fi
13985
13986    if test x$enable_gtk_doc_html = xyes; then
13987   GTK_DOC_BUILD_HTML_TRUE=
13988   GTK_DOC_BUILD_HTML_FALSE='#'
13989 else
13990   GTK_DOC_BUILD_HTML_TRUE='#'
13991   GTK_DOC_BUILD_HTML_FALSE=
13992 fi
13993
13994    if test x$enable_gtk_doc_pdf = xyes; then
13995   GTK_DOC_BUILD_PDF_TRUE=
13996   GTK_DOC_BUILD_PDF_FALSE='#'
13997 else
13998   GTK_DOC_BUILD_PDF_TRUE='#'
13999   GTK_DOC_BUILD_PDF_FALSE=
14000 fi
14001
14002    if test -n "$LIBTOOL"; then
14003   GTK_DOC_USE_LIBTOOL_TRUE=
14004   GTK_DOC_USE_LIBTOOL_FALSE='#'
14005 else
14006   GTK_DOC_USE_LIBTOOL_TRUE='#'
14007   GTK_DOC_USE_LIBTOOL_FALSE=
14008 fi
14009
14010    if test -n "$GTKDOC_REBASE"; then
14011   GTK_DOC_USE_REBASE_TRUE=
14012   GTK_DOC_USE_REBASE_FALSE='#'
14013 else
14014   GTK_DOC_USE_REBASE_TRUE='#'
14015   GTK_DOC_USE_REBASE_FALSE=
14016 fi
14017
14018
14019
14020
14021 # Checks for header files.
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14023 $as_echo_n "checking for ANSI C header files... " >&6; }
14024 if ${ac_cv_header_stdc+:} false; then :
14025   $as_echo_n "(cached) " >&6
14026 else
14027   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14028 /* end confdefs.h.  */
14029 #include <stdlib.h>
14030 #include <stdarg.h>
14031 #include <string.h>
14032 #include <float.h>
14033
14034 int
14035 main ()
14036 {
14037
14038   ;
14039   return 0;
14040 }
14041 _ACEOF
14042 if ac_fn_c_try_compile "$LINENO"; then :
14043   ac_cv_header_stdc=yes
14044 else
14045   ac_cv_header_stdc=no
14046 fi
14047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14048
14049 if test $ac_cv_header_stdc = yes; then
14050   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h.  */
14053 #include <string.h>
14054
14055 _ACEOF
14056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14057   $EGREP "memchr" >/dev/null 2>&1; then :
14058
14059 else
14060   ac_cv_header_stdc=no
14061 fi
14062 rm -f conftest*
14063
14064 fi
14065
14066 if test $ac_cv_header_stdc = yes; then
14067   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h.  */
14070 #include <stdlib.h>
14071
14072 _ACEOF
14073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14074   $EGREP "free" >/dev/null 2>&1; then :
14075
14076 else
14077   ac_cv_header_stdc=no
14078 fi
14079 rm -f conftest*
14080
14081 fi
14082
14083 if test $ac_cv_header_stdc = yes; then
14084   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14085   if test "$cross_compiling" = yes; then :
14086   :
14087 else
14088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h.  */
14090 #include <ctype.h>
14091 #include <stdlib.h>
14092 #if ((' ' & 0x0FF) == 0x020)
14093 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14094 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14095 #else
14096 # define ISLOWER(c) \
14097                    (('a' <= (c) && (c) <= 'i') \
14098                      || ('j' <= (c) && (c) <= 'r') \
14099                      || ('s' <= (c) && (c) <= 'z'))
14100 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14101 #endif
14102
14103 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14104 int
14105 main ()
14106 {
14107   int i;
14108   for (i = 0; i < 256; i++)
14109     if (XOR (islower (i), ISLOWER (i))
14110         || toupper (i) != TOUPPER (i))
14111       return 2;
14112   return 0;
14113 }
14114 _ACEOF
14115 if ac_fn_c_try_run "$LINENO"; then :
14116
14117 else
14118   ac_cv_header_stdc=no
14119 fi
14120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14121   conftest.$ac_objext conftest.beam conftest.$ac_ext
14122 fi
14123
14124 fi
14125 fi
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14127 $as_echo "$ac_cv_header_stdc" >&6; }
14128 if test $ac_cv_header_stdc = yes; then
14129
14130 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14131
14132 fi
14133
14134 for ac_header in fcntl.h stdlib.h string.h
14135 do :
14136   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14137 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14139   cat >>confdefs.h <<_ACEOF
14140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14141 _ACEOF
14142
14143 fi
14144
14145 done
14146
14147
14148 # Checks for typedefs, structures, and compiler characteristics.
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14150 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14151 if ${ac_cv_c_const+:} false; then :
14152   $as_echo_n "(cached) " >&6
14153 else
14154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h.  */
14156
14157 int
14158 main ()
14159 {
14160
14161 #ifndef __cplusplus
14162   /* Ultrix mips cc rejects this sort of thing.  */
14163   typedef int charset[2];
14164   const charset cs = { 0, 0 };
14165   /* SunOS 4.1.1 cc rejects this.  */
14166   char const *const *pcpcc;
14167   char **ppc;
14168   /* NEC SVR4.0.2 mips cc rejects this.  */
14169   struct point {int x, y;};
14170   static struct point const zero = {0,0};
14171   /* AIX XL C 1.02.0.0 rejects this.
14172      It does not let you subtract one const X* pointer from another in
14173      an arm of an if-expression whose if-part is not a constant
14174      expression */
14175   const char *g = "string";
14176   pcpcc = &g + (g ? g-g : 0);
14177   /* HPUX 7.0 cc rejects these. */
14178   ++pcpcc;
14179   ppc = (char**) pcpcc;
14180   pcpcc = (char const *const *) ppc;
14181   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14182     char tx;
14183     char *t = &tx;
14184     char const *s = 0 ? (char *) 0 : (char const *) 0;
14185
14186     *t++ = 0;
14187     if (s) return 0;
14188   }
14189   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14190     int x[] = {25, 17};
14191     const int *foo = &x[0];
14192     ++foo;
14193   }
14194   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14195     typedef const int *iptr;
14196     iptr p = 0;
14197     ++p;
14198   }
14199   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14200        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14201     struct s { int j; const int *ap[3]; } bx;
14202     struct s *b = &bx; b->j = 5;
14203   }
14204   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14205     const int foo = 10;
14206     if (!foo) return 0;
14207   }
14208   return !cs[0] && !zero.x;
14209 #endif
14210
14211   ;
14212   return 0;
14213 }
14214 _ACEOF
14215 if ac_fn_c_try_compile "$LINENO"; then :
14216   ac_cv_c_const=yes
14217 else
14218   ac_cv_c_const=no
14219 fi
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 fi
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14223 $as_echo "$ac_cv_c_const" >&6; }
14224 if test $ac_cv_c_const = no; then
14225
14226 $as_echo "#define const /**/" >>confdefs.h
14227
14228 fi
14229
14230
14231 # Checks for library functions.
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14233 $as_echo_n "checking for working strtod... " >&6; }
14234 if ${ac_cv_func_strtod+:} false; then :
14235   $as_echo_n "(cached) " >&6
14236 else
14237   if test "$cross_compiling" = yes; then :
14238   ac_cv_func_strtod=no
14239 else
14240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 /* end confdefs.h.  */
14242
14243 $ac_includes_default
14244 #ifndef strtod
14245 double strtod ();
14246 #endif
14247 int
14248 main()
14249 {
14250   {
14251     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14252     char *string = " +69";
14253     char *term;
14254     double value;
14255     value = strtod (string, &term);
14256     if (value != 69 || term != (string + 4))
14257       return 1;
14258   }
14259
14260   {
14261     /* Under Solaris 2.4, strtod returns the wrong value for the
14262        terminating character under some conditions.  */
14263     char *string = "NaN";
14264     char *term;
14265     strtod (string, &term);
14266     if (term != string && *(term - 1) == 0)
14267       return 1;
14268   }
14269   return 0;
14270 }
14271
14272 _ACEOF
14273 if ac_fn_c_try_run "$LINENO"; then :
14274   ac_cv_func_strtod=yes
14275 else
14276   ac_cv_func_strtod=no
14277 fi
14278 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14279   conftest.$ac_objext conftest.beam conftest.$ac_ext
14280 fi
14281
14282 fi
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14284 $as_echo "$ac_cv_func_strtod" >&6; }
14285 if test $ac_cv_func_strtod = no; then
14286   case " $LIBOBJS " in
14287   *" strtod.$ac_objext "* ) ;;
14288   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14289  ;;
14290 esac
14291
14292 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14293 if test "x$ac_cv_func_pow" = xyes; then :
14294
14295 fi
14296
14297 if test $ac_cv_func_pow = no; then
14298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14299 $as_echo_n "checking for pow in -lm... " >&6; }
14300 if ${ac_cv_lib_m_pow+:} false; then :
14301   $as_echo_n "(cached) " >&6
14302 else
14303   ac_check_lib_save_LIBS=$LIBS
14304 LIBS="-lm  $LIBS"
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306 /* end confdefs.h.  */
14307
14308 /* Override any GCC internal prototype to avoid an error.
14309    Use char because int might match the return type of a GCC
14310    builtin and then its argument prototype would still apply.  */
14311 #ifdef __cplusplus
14312 extern "C"
14313 #endif
14314 char pow ();
14315 int
14316 main ()
14317 {
14318 return pow ();
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_link "$LINENO"; then :
14324   ac_cv_lib_m_pow=yes
14325 else
14326   ac_cv_lib_m_pow=no
14327 fi
14328 rm -f core conftest.err conftest.$ac_objext \
14329     conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14331 fi
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14333 $as_echo "$ac_cv_lib_m_pow" >&6; }
14334 if test "x$ac_cv_lib_m_pow" = xyes; then :
14335   POW_LIB=-lm
14336 else
14337   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14338 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14339 fi
14340
14341 fi
14342
14343 fi
14344
14345 for ac_func in memchr strchr strspn strstr strtol strtoull
14346 do :
14347   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14350   cat >>confdefs.h <<_ACEOF
14351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14352 _ACEOF
14353
14354 fi
14355 done
14356
14357 for ac_func in backtrace backtrace_symbols
14358 do :
14359   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14360 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14361 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14362   cat >>confdefs.h <<_ACEOF
14363 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14364 _ACEOF
14365
14366 fi
14367 done
14368
14369
14370 # Python
14371
14372
14373
14374
14375
14376
14377         if test -n "$PYTHON"; then
14378       # If the user set $PYTHON, use it and don't search something else.
14379       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.6" >&5
14380 $as_echo_n "checking whether $PYTHON version is >= 2.6... " >&6; }
14381       prog="import sys
14382 # split strings by '.' and convert to numeric.  Append some zeros
14383 # because we need at least 4 digits for the hex conversion.
14384 # map returns an iterator in Python 3.0 and a list in 2.x
14385 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14386 minverhex = 0
14387 # xrange is not present in Python 3.0 and range returns an iterator
14388 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14389 sys.exit(sys.hexversion < minverhex)"
14390   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14391    ($PYTHON -c "$prog") >&5 2>&5
14392    ac_status=$?
14393    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394    (exit $ac_status); }; then :
14395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 $as_echo "yes" >&6; }
14397 else
14398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14399 $as_echo "no" >&6; }
14400                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14401 fi
14402       am_display_PYTHON=$PYTHON
14403     else
14404       # Otherwise, try each interpreter until we find one that satisfies
14405       # VERSION.
14406       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.6" >&5
14407 $as_echo_n "checking for a Python interpreter with version >= 2.6... " >&6; }
14408 if ${am_cv_pathless_PYTHON+:} false; then :
14409   $as_echo_n "(cached) " >&6
14410 else
14411
14412         for am_cv_pathless_PYTHON in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7  python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
14413           test "$am_cv_pathless_PYTHON" = none && break
14414           prog="import sys
14415 # split strings by '.' and convert to numeric.  Append some zeros
14416 # because we need at least 4 digits for the hex conversion.
14417 # map returns an iterator in Python 3.0 and a list in 2.x
14418 minver = list(map(int, '2.6'.split('.'))) + [0, 0, 0]
14419 minverhex = 0
14420 # xrange is not present in Python 3.0 and range returns an iterator
14421 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14422 sys.exit(sys.hexversion < minverhex)"
14423   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14424    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14425    ac_status=$?
14426    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427    (exit $ac_status); }; then :
14428   break
14429 fi
14430         done
14431 fi
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14433 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14434       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14435       if test "$am_cv_pathless_PYTHON" = none; then
14436         PYTHON=:
14437       else
14438         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14439 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14441 $as_echo_n "checking for $ac_word... " >&6; }
14442 if ${ac_cv_path_PYTHON+:} false; then :
14443   $as_echo_n "(cached) " >&6
14444 else
14445   case $PYTHON in
14446   [\\/]* | ?:[\\/]*)
14447   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14448   ;;
14449   *)
14450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14452 do
14453   IFS=$as_save_IFS
14454   test -z "$as_dir" && as_dir=.
14455     for ac_exec_ext in '' $ac_executable_extensions; do
14456   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14459     break 2
14460   fi
14461 done
14462   done
14463 IFS=$as_save_IFS
14464
14465   ;;
14466 esac
14467 fi
14468 PYTHON=$ac_cv_path_PYTHON
14469 if test -n "$PYTHON"; then
14470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
14471 $as_echo "$PYTHON" >&6; }
14472 else
14473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14474 $as_echo "no" >&6; }
14475 fi
14476
14477
14478       fi
14479       am_display_PYTHON=$am_cv_pathless_PYTHON
14480     fi
14481
14482
14483   if test "$PYTHON" = :; then
14484       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
14485   else
14486
14487
14488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
14489 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
14490 if ${am_cv_python_version+:} false; then :
14491   $as_echo_n "(cached) " >&6
14492 else
14493   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
14494 fi
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
14496 $as_echo "$am_cv_python_version" >&6; }
14497   PYTHON_VERSION=$am_cv_python_version
14498
14499
14500
14501   PYTHON_PREFIX='${prefix}'
14502
14503   PYTHON_EXEC_PREFIX='${exec_prefix}'
14504
14505
14506
14507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
14508 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
14509 if ${am_cv_python_platform+:} false; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
14513 fi
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
14515 $as_echo "$am_cv_python_platform" >&6; }
14516   PYTHON_PLATFORM=$am_cv_python_platform
14517
14518
14519   # Just factor out some code duplication.
14520   am_python_setup_sysconfig="\
14521 import sys
14522 # Prefer sysconfig over distutils.sysconfig, for better compatibility
14523 # with python 3.x.  See automake bug#10227.
14524 try:
14525     import sysconfig
14526 except ImportError:
14527     can_use_sysconfig = 0
14528 else:
14529     can_use_sysconfig = 1
14530 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
14531 # <https://github.com/pypa/virtualenv/issues/118>
14532 try:
14533     from platform import python_implementation
14534     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
14535         can_use_sysconfig = 0
14536 except ImportError:
14537     pass"
14538
14539
14540             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
14541 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
14542 if ${am_cv_python_pythondir+:} false; then :
14543   $as_echo_n "(cached) " >&6
14544 else
14545   if test "x$prefix" = xNONE
14546      then
14547        am_py_prefix=$ac_default_prefix
14548      else
14549        am_py_prefix=$prefix
14550      fi
14551      am_cv_python_pythondir=`$PYTHON -c "
14552 $am_python_setup_sysconfig
14553 if can_use_sysconfig:
14554     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
14555 else:
14556     from distutils import sysconfig
14557     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
14558 sys.stdout.write(sitedir)"`
14559      case $am_cv_python_pythondir in
14560      $am_py_prefix*)
14561        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
14562        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
14563        ;;
14564      *)
14565        case $am_py_prefix in
14566          /usr|/System*) ;;
14567          *)
14568           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
14569           ;;
14570        esac
14571        ;;
14572      esac
14573
14574 fi
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
14576 $as_echo "$am_cv_python_pythondir" >&6; }
14577   pythondir=$am_cv_python_pythondir
14578
14579
14580
14581   pkgpythondir=\${pythondir}/$PACKAGE
14582
14583
14584         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
14585 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
14586 if ${am_cv_python_pyexecdir+:} false; then :
14587   $as_echo_n "(cached) " >&6
14588 else
14589   if test "x$exec_prefix" = xNONE
14590      then
14591        am_py_exec_prefix=$am_py_prefix
14592      else
14593        am_py_exec_prefix=$exec_prefix
14594      fi
14595      am_cv_python_pyexecdir=`$PYTHON -c "
14596 $am_python_setup_sysconfig
14597 if can_use_sysconfig:
14598     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
14599 else:
14600     from distutils import sysconfig
14601     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
14602 sys.stdout.write(sitedir)"`
14603      case $am_cv_python_pyexecdir in
14604      $am_py_exec_prefix*)
14605        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
14606        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
14607        ;;
14608      *)
14609        case $am_py_exec_prefix in
14610          /usr|/System*) ;;
14611          *)
14612            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
14613            ;;
14614        esac
14615        ;;
14616      esac
14617
14618 fi
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
14620 $as_echo "$am_cv_python_pyexecdir" >&6; }
14621   pyexecdir=$am_cv_python_pyexecdir
14622
14623
14624
14625   pkgpyexecdir=\${pyexecdir}/$PACKAGE
14626
14627
14628
14629   fi
14630
14631
14632 case "$host" in
14633 *-*-mingw*)
14634         # Change backslashes to forward slashes in pyexecdir to avoid
14635         # quoting issues
14636         pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
14637         ;;
14638 esac
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
14641 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
14642 PYTHON_INCLUDES=`$PYTHON-config --includes`
14643
14644 save_CPPFLAGS="$CPPFLAGS"
14645 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h.  */
14648 #include <Python.h>
14649 _ACEOF
14650 if ac_fn_c_try_cpp "$LINENO"; then :
14651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14652 $as_echo "found" >&6; }
14653
14654 else
14655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14656 $as_echo "not found" >&6; }
14657 as_fn_error $? "Python headers not found" "$LINENO" 5
14658 fi
14659 rm -f conftest.err conftest.i conftest.$ac_ext
14660 CPPFLAGS="$save_CPPFLAGS"
14661
14662 if test "x$os_win32" = "xyes"; then
14663
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link against libpython" >&5
14665 $as_echo_n "checking for libraries required to link against libpython... " >&6; }
14666 if test "x$PYTHON_LIBS" = x; then
14667         PYTHON_LIBS=`$PYTHON-config --ldflags --libs`
14668 fi
14669
14670 save_LIBS="$LIBS"
14671 LIBS="$LIBS $PYTHON_LIBS"
14672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14673 /* end confdefs.h.  */
14674
14675 /* Override any GCC internal prototype to avoid an error.
14676    Use char because int might match the return type of a GCC
14677    builtin and then its argument prototype would still apply.  */
14678 #ifdef __cplusplus
14679 extern "C"
14680 #endif
14681 char Py_Initialize ();
14682 int
14683 main ()
14684 {
14685 return Py_Initialize ();
14686   ;
14687   return 0;
14688 }
14689 _ACEOF
14690 if ac_fn_c_try_link "$LINENO"; then :
14691            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14692 $as_echo "found" >&6; };
14693 else
14694            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14695 $as_echo "not found" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
14696 fi
14697 rm -f core conftest.err conftest.$ac_objext \
14698     conftest$ac_exeext conftest.$ac_ext
14699
14700
14701 fi
14702
14703 # Check whether --enable-doctool was given.
14704 if test "${enable_doctool+set}" = set; then :
14705   enableval=$enable_doctool;
14706 else
14707   enable_doctool=auto
14708 fi
14709
14710 if  test x$enable_doctool != xno; then :
14711
14712
14713 py_mod_var=`echo mako'_' | sed 'y%./+-%__p_%'`
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module mako" >&5
14715 $as_echo_n "checking for python module mako... " >&6; }
14716 if eval \${py_cv_mod_$py_mod_var+:} false; then :
14717   $as_echo_n "(cached) " >&6
14718 else
14719
14720 prog="
14721 import sys
14722 try:
14723         import mako
14724 except ImportError:
14725         sys.exit(1)
14726 except:
14727         sys.exit(0)
14728 sys.exit(0)"
14729 if $PYTHON -c "$prog" 1>&5 2>&5
14730   then
14731     eval "py_cv_mod_$py_mod_var=yes"
14732   else
14733     eval "py_cv_mod_$py_mod_var=no"
14734   fi
14735
14736 fi
14737
14738 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
14739 if test "x$py_val" != xno; then
14740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14741 $as_echo "yes" >&6; }
14742   have_python_mako=yes
14743 else
14744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14745 $as_echo "no" >&6; }
14746   have_python_mako=no
14747 fi
14748
14749
14750 fi
14751 if  test x$enable_doctool = xauto && test x$have_python_mako = xyes ; then :
14752    enable_doctool=yes
14753 elif  test x$enable_doctool = xauto && test x$have_python_mako = xno ; then :
14754    enable_doctool=no
14755 elif  test x$enable_doctool = xyes && test x$have_python_mako = xno ; then :
14756    as_fn_error $? "Python mako module not found" "$LINENO" 5
14757 fi
14758  if test x$enable_doctool != xno; then
14759   BUILD_DOCTOOL_TRUE=
14760   BUILD_DOCTOOL_FALSE='#'
14761 else
14762   BUILD_DOCTOOL_TRUE='#'
14763   BUILD_DOCTOOL_FALSE=
14764 fi
14765
14766
14767 # Glib documentation
14768
14769 GLIBSRC=
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib source directory to use for documentation" >&5
14771 $as_echo_n "checking for glib source directory to use for documentation... " >&6; }
14772
14773
14774 # Check whether --with-glib-src was given.
14775 if test "${with_glib_src+set}" = set; then :
14776   withval=$with_glib_src; GLIBSRC=$withval
14777
14778 fi
14779
14780  if test x"$GLIBSRC" != x; then
14781   WITH_GLIBSRC_TRUE=
14782   WITH_GLIBSRC_FALSE='#'
14783 else
14784   WITH_GLIBSRC_TRUE='#'
14785   WITH_GLIBSRC_FALSE=
14786 fi
14787
14788
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBSRC" >&5
14790 $as_echo "$GLIBSRC" >&6; }
14791
14792 # Check whether --enable-Bsymbolic was given.
14793 if test "${enable_Bsymbolic+set}" = set; then :
14794   enableval=$enable_Bsymbolic;
14795 else
14796   SAVED_LDFLAGS="${LDFLAGS}"
14797                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
14798 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
14799                LDFLAGS=-Wl,-Bsymbolic-functions
14800                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14801 /* end confdefs.h.  */
14802
14803 int
14804 main ()
14805 {
14806 int main (void) { return 0; }
14807   ;
14808   return 0;
14809 }
14810 _ACEOF
14811 if ac_fn_c_try_link "$LINENO"; then :
14812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14813 $as_echo "yes" >&6; }
14814                            enable_Bsymbolic=yes
14815 else
14816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14817 $as_echo "no" >&6; }
14818                            enable_Bsymbolic=no
14819 fi
14820 rm -f core conftest.err conftest.$ac_objext \
14821     conftest$ac_exeext conftest.$ac_ext
14822                LDFLAGS="${SAVED_LDFLAGS}"
14823 fi
14824
14825
14826 if test "x${enable_Bsymbolic}" = "xyes"; then
14827   EXTRA_LINK_FLAGS=-Wl,-Bsymbolic-functions
14828 fi
14829
14830
14831
14832 ac_config_files="$ac_config_files Makefile m4/Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/repository/Makefile tests/warn/Makefile docs/Makefile docs/reference/Makefile gobject-introspection-1.0.pc gobject-introspection-no-export-1.0.pc config.h.win32 build/Makefile build/win32/Makefile build/win32/vs9/Makefile build/win32/vs10/Makefile"
14833
14834 cat >confcache <<\_ACEOF
14835 # This file is a shell script that caches the results of configure
14836 # tests run on this system so they can be shared between configure
14837 # scripts and configure runs, see configure's option --config-cache.
14838 # It is not useful on other systems.  If it contains results you don't
14839 # want to keep, you may remove or edit it.
14840 #
14841 # config.status only pays attention to the cache file if you give it
14842 # the --recheck option to rerun configure.
14843 #
14844 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14845 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14846 # following values.
14847
14848 _ACEOF
14849
14850 # The following way of writing the cache mishandles newlines in values,
14851 # but we know of no workaround that is simple, portable, and efficient.
14852 # So, we kill variables containing newlines.
14853 # Ultrix sh set writes to stderr and can't be redirected directly,
14854 # and sets the high bit in the cache file unless we assign to the vars.
14855 (
14856   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14857     eval ac_val=\$$ac_var
14858     case $ac_val in #(
14859     *${as_nl}*)
14860       case $ac_var in #(
14861       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14862 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14863       esac
14864       case $ac_var in #(
14865       _ | IFS | as_nl) ;; #(
14866       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14867       *) { eval $ac_var=; unset $ac_var;} ;;
14868       esac ;;
14869     esac
14870   done
14871
14872   (set) 2>&1 |
14873     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14874     *${as_nl}ac_space=\ *)
14875       # `set' does not quote correctly, so add quotes: double-quote
14876       # substitution turns \\\\ into \\, and sed turns \\ into \.
14877       sed -n \
14878         "s/'/'\\\\''/g;
14879           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14880       ;; #(
14881     *)
14882       # `set' quotes correctly as required by POSIX, so do not add quotes.
14883       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14884       ;;
14885     esac |
14886     sort
14887 ) |
14888   sed '
14889      /^ac_cv_env_/b end
14890      t clear
14891      :clear
14892      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14893      t end
14894      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14895      :end' >>confcache
14896 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14897   if test -w "$cache_file"; then
14898     if test "x$cache_file" != "x/dev/null"; then
14899       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14900 $as_echo "$as_me: updating cache $cache_file" >&6;}
14901       if test ! -f "$cache_file" || test -h "$cache_file"; then
14902         cat confcache >"$cache_file"
14903       else
14904         case $cache_file in #(
14905         */* | ?:*)
14906           mv -f confcache "$cache_file"$$ &&
14907           mv -f "$cache_file"$$ "$cache_file" ;; #(
14908         *)
14909           mv -f confcache "$cache_file" ;;
14910         esac
14911       fi
14912     fi
14913   else
14914     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14915 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14916   fi
14917 fi
14918 rm -f confcache
14919
14920 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14921 # Let make expand exec_prefix.
14922 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14923
14924 DEFS=-DHAVE_CONFIG_H
14925
14926 ac_libobjs=
14927 ac_ltlibobjs=
14928 U=
14929 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14930   # 1. Remove the extension, and $U if already installed.
14931   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14932   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14933   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14934   #    will be set to the directory where LIBOBJS objects are built.
14935   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14936   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14937 done
14938 LIBOBJS=$ac_libobjs
14939
14940 LTLIBOBJS=$ac_ltlibobjs
14941
14942
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14944 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14945    if test -n "$am_sleep_pid"; then
14946      # Hide warnings about reused PIDs.
14947      wait $am_sleep_pid 2>/dev/null
14948    fi
14949    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14950 $as_echo "done" >&6; }
14951  if test -n "$EXEEXT"; then
14952   am__EXEEXT_TRUE=
14953   am__EXEEXT_FALSE='#'
14954 else
14955   am__EXEEXT_TRUE='#'
14956   am__EXEEXT_FALSE=
14957 fi
14958
14959 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14960   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14962 fi
14963 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14964   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14966 fi
14967 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14968   as_fn_error $? "conditional \"AMDEP\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14970 fi
14971 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14972   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14974 fi
14975 if test -z "${HAVE_GIO_UNIX_TRUE}" && test -z "${HAVE_GIO_UNIX_FALSE}"; then
14976   as_fn_error $? "conditional \"HAVE_GIO_UNIX\" was never defined.
14977 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14978 fi
14979 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
14980   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
14981 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14982 fi
14983 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14984   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
14985 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14986 fi
14987 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
14988   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
14989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14990 fi
14991 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
14992   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
14993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14994 fi
14995 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14996   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14998 fi
14999 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
15000   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
15001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15002 fi
15003 if test -z "${BUILD_DOCTOOL_TRUE}" && test -z "${BUILD_DOCTOOL_FALSE}"; then
15004   as_fn_error $? "conditional \"BUILD_DOCTOOL\" was never defined.
15005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15006 fi
15007 if test -z "${WITH_GLIBSRC_TRUE}" && test -z "${WITH_GLIBSRC_FALSE}"; then
15008   as_fn_error $? "conditional \"WITH_GLIBSRC\" was never defined.
15009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15010 fi
15011
15012 : "${CONFIG_STATUS=./config.status}"
15013 ac_write_fail=0
15014 ac_clean_files_save=$ac_clean_files
15015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15017 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15018 as_write_fail=0
15019 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15020 #! $SHELL
15021 # Generated by $as_me.
15022 # Run this file to recreate the current configuration.
15023 # Compiler output produced by configure, useful for debugging
15024 # configure, is in config.log if it exists.
15025
15026 debug=false
15027 ac_cs_recheck=false
15028 ac_cs_silent=false
15029
15030 SHELL=\${CONFIG_SHELL-$SHELL}
15031 export SHELL
15032 _ASEOF
15033 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15034 ## -------------------- ##
15035 ## M4sh Initialization. ##
15036 ## -------------------- ##
15037
15038 # Be more Bourne compatible
15039 DUALCASE=1; export DUALCASE # for MKS sh
15040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15041   emulate sh
15042   NULLCMD=:
15043   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15044   # is contrary to our usage.  Disable this feature.
15045   alias -g '${1+"$@"}'='"$@"'
15046   setopt NO_GLOB_SUBST
15047 else
15048   case `(set -o) 2>/dev/null` in #(
15049   *posix*) :
15050     set -o posix ;; #(
15051   *) :
15052      ;;
15053 esac
15054 fi
15055
15056
15057 as_nl='
15058 '
15059 export as_nl
15060 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15061 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15064 # Prefer a ksh shell builtin over an external printf program on Solaris,
15065 # but without wasting forks for bash or zsh.
15066 if test -z "$BASH_VERSION$ZSH_VERSION" \
15067     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15068   as_echo='print -r --'
15069   as_echo_n='print -rn --'
15070 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15071   as_echo='printf %s\n'
15072   as_echo_n='printf %s'
15073 else
15074   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15075     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15076     as_echo_n='/usr/ucb/echo -n'
15077   else
15078     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15079     as_echo_n_body='eval
15080       arg=$1;
15081       case $arg in #(
15082       *"$as_nl"*)
15083         expr "X$arg" : "X\\(.*\\)$as_nl";
15084         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15085       esac;
15086       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15087     '
15088     export as_echo_n_body
15089     as_echo_n='sh -c $as_echo_n_body as_echo'
15090   fi
15091   export as_echo_body
15092   as_echo='sh -c $as_echo_body as_echo'
15093 fi
15094
15095 # The user is always right.
15096 if test "${PATH_SEPARATOR+set}" != set; then
15097   PATH_SEPARATOR=:
15098   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15099     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15100       PATH_SEPARATOR=';'
15101   }
15102 fi
15103
15104
15105 # IFS
15106 # We need space, tab and new line, in precisely that order.  Quoting is
15107 # there to prevent editors from complaining about space-tab.
15108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15109 # splitting by setting IFS to empty value.)
15110 IFS=" ""        $as_nl"
15111
15112 # Find who we are.  Look in the path if we contain no directory separator.
15113 as_myself=
15114 case $0 in #((
15115   *[\\/]* ) as_myself=$0 ;;
15116   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15118 do
15119   IFS=$as_save_IFS
15120   test -z "$as_dir" && as_dir=.
15121     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15122   done
15123 IFS=$as_save_IFS
15124
15125      ;;
15126 esac
15127 # We did not find ourselves, most probably we were run as `sh COMMAND'
15128 # in which case we are not to be found in the path.
15129 if test "x$as_myself" = x; then
15130   as_myself=$0
15131 fi
15132 if test ! -f "$as_myself"; then
15133   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15134   exit 1
15135 fi
15136
15137 # Unset variables that we do not need and which cause bugs (e.g. in
15138 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15139 # suppresses any "Segmentation fault" message there.  '((' could
15140 # trigger a bug in pdksh 5.2.14.
15141 for as_var in BASH_ENV ENV MAIL MAILPATH
15142 do eval test x\${$as_var+set} = xset \
15143   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15144 done
15145 PS1='$ '
15146 PS2='> '
15147 PS4='+ '
15148
15149 # NLS nuisances.
15150 LC_ALL=C
15151 export LC_ALL
15152 LANGUAGE=C
15153 export LANGUAGE
15154
15155 # CDPATH.
15156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15157
15158
15159 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15160 # ----------------------------------------
15161 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15162 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15163 # script with STATUS, using 1 if that was 0.
15164 as_fn_error ()
15165 {
15166   as_status=$1; test $as_status -eq 0 && as_status=1
15167   if test "$4"; then
15168     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15169     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15170   fi
15171   $as_echo "$as_me: error: $2" >&2
15172   as_fn_exit $as_status
15173 } # as_fn_error
15174
15175
15176 # as_fn_set_status STATUS
15177 # -----------------------
15178 # Set $? to STATUS, without forking.
15179 as_fn_set_status ()
15180 {
15181   return $1
15182 } # as_fn_set_status
15183
15184 # as_fn_exit STATUS
15185 # -----------------
15186 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15187 as_fn_exit ()
15188 {
15189   set +e
15190   as_fn_set_status $1
15191   exit $1
15192 } # as_fn_exit
15193
15194 # as_fn_unset VAR
15195 # ---------------
15196 # Portably unset VAR.
15197 as_fn_unset ()
15198 {
15199   { eval $1=; unset $1;}
15200 }
15201 as_unset=as_fn_unset
15202 # as_fn_append VAR VALUE
15203 # ----------------------
15204 # Append the text in VALUE to the end of the definition contained in VAR. Take
15205 # advantage of any shell optimizations that allow amortized linear growth over
15206 # repeated appends, instead of the typical quadratic growth present in naive
15207 # implementations.
15208 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15209   eval 'as_fn_append ()
15210   {
15211     eval $1+=\$2
15212   }'
15213 else
15214   as_fn_append ()
15215   {
15216     eval $1=\$$1\$2
15217   }
15218 fi # as_fn_append
15219
15220 # as_fn_arith ARG...
15221 # ------------------
15222 # Perform arithmetic evaluation on the ARGs, and store the result in the
15223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15224 # must be portable across $(()) and expr.
15225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15226   eval 'as_fn_arith ()
15227   {
15228     as_val=$(( $* ))
15229   }'
15230 else
15231   as_fn_arith ()
15232   {
15233     as_val=`expr "$@" || test $? -eq 1`
15234   }
15235 fi # as_fn_arith
15236
15237
15238 if expr a : '\(a\)' >/dev/null 2>&1 &&
15239    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15240   as_expr=expr
15241 else
15242   as_expr=false
15243 fi
15244
15245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15246   as_basename=basename
15247 else
15248   as_basename=false
15249 fi
15250
15251 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15252   as_dirname=dirname
15253 else
15254   as_dirname=false
15255 fi
15256
15257 as_me=`$as_basename -- "$0" ||
15258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15259          X"$0" : 'X\(//\)$' \| \
15260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15261 $as_echo X/"$0" |
15262     sed '/^.*\/\([^/][^/]*\)\/*$/{
15263             s//\1/
15264             q
15265           }
15266           /^X\/\(\/\/\)$/{
15267             s//\1/
15268             q
15269           }
15270           /^X\/\(\/\).*/{
15271             s//\1/
15272             q
15273           }
15274           s/.*/./; q'`
15275
15276 # Avoid depending upon Character Ranges.
15277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15280 as_cr_digits='0123456789'
15281 as_cr_alnum=$as_cr_Letters$as_cr_digits
15282
15283 ECHO_C= ECHO_N= ECHO_T=
15284 case `echo -n x` in #(((((
15285 -n*)
15286   case `echo 'xy\c'` in
15287   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15288   xy)  ECHO_C='\c';;
15289   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15290        ECHO_T=' ';;
15291   esac;;
15292 *)
15293   ECHO_N='-n';;
15294 esac
15295
15296 rm -f conf$$ conf$$.exe conf$$.file
15297 if test -d conf$$.dir; then
15298   rm -f conf$$.dir/conf$$.file
15299 else
15300   rm -f conf$$.dir
15301   mkdir conf$$.dir 2>/dev/null
15302 fi
15303 if (echo >conf$$.file) 2>/dev/null; then
15304   if ln -s conf$$.file conf$$ 2>/dev/null; then
15305     as_ln_s='ln -s'
15306     # ... but there are two gotchas:
15307     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15308     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15309     # In both cases, we have to default to `cp -pR'.
15310     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15311       as_ln_s='cp -pR'
15312   elif ln conf$$.file conf$$ 2>/dev/null; then
15313     as_ln_s=ln
15314   else
15315     as_ln_s='cp -pR'
15316   fi
15317 else
15318   as_ln_s='cp -pR'
15319 fi
15320 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15321 rmdir conf$$.dir 2>/dev/null
15322
15323
15324 # as_fn_mkdir_p
15325 # -------------
15326 # Create "$as_dir" as a directory, including parents if necessary.
15327 as_fn_mkdir_p ()
15328 {
15329
15330   case $as_dir in #(
15331   -*) as_dir=./$as_dir;;
15332   esac
15333   test -d "$as_dir" || eval $as_mkdir_p || {
15334     as_dirs=
15335     while :; do
15336       case $as_dir in #(
15337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15338       *) as_qdir=$as_dir;;
15339       esac
15340       as_dirs="'$as_qdir' $as_dirs"
15341       as_dir=`$as_dirname -- "$as_dir" ||
15342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15343          X"$as_dir" : 'X\(//\)[^/]' \| \
15344          X"$as_dir" : 'X\(//\)$' \| \
15345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15346 $as_echo X"$as_dir" |
15347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15348             s//\1/
15349             q
15350           }
15351           /^X\(\/\/\)[^/].*/{
15352             s//\1/
15353             q
15354           }
15355           /^X\(\/\/\)$/{
15356             s//\1/
15357             q
15358           }
15359           /^X\(\/\).*/{
15360             s//\1/
15361             q
15362           }
15363           s/.*/./; q'`
15364       test -d "$as_dir" && break
15365     done
15366     test -z "$as_dirs" || eval "mkdir $as_dirs"
15367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15368
15369
15370 } # as_fn_mkdir_p
15371 if mkdir -p . 2>/dev/null; then
15372   as_mkdir_p='mkdir -p "$as_dir"'
15373 else
15374   test -d ./-p && rmdir ./-p
15375   as_mkdir_p=false
15376 fi
15377
15378
15379 # as_fn_executable_p FILE
15380 # -----------------------
15381 # Test if FILE is an executable regular file.
15382 as_fn_executable_p ()
15383 {
15384   test -f "$1" && test -x "$1"
15385 } # as_fn_executable_p
15386 as_test_x='test -x'
15387 as_executable_p=as_fn_executable_p
15388
15389 # Sed expression to map a string onto a valid CPP name.
15390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15391
15392 # Sed expression to map a string onto a valid variable name.
15393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15394
15395
15396 exec 6>&1
15397 ## ----------------------------------- ##
15398 ## Main body of $CONFIG_STATUS script. ##
15399 ## ----------------------------------- ##
15400 _ASEOF
15401 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15402
15403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15404 # Save the log message, to keep $0 and so on meaningful, and to
15405 # report actual input values of CONFIG_FILES etc. instead of their
15406 # values after options handling.
15407 ac_log="
15408 This file was extended by gobject-introspection $as_me 1.37.4, which was
15409 generated by GNU Autoconf 2.69.  Invocation command line was
15410
15411   CONFIG_FILES    = $CONFIG_FILES
15412   CONFIG_HEADERS  = $CONFIG_HEADERS
15413   CONFIG_LINKS    = $CONFIG_LINKS
15414   CONFIG_COMMANDS = $CONFIG_COMMANDS
15415   $ $0 $@
15416
15417 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15418 "
15419
15420 _ACEOF
15421
15422 case $ac_config_files in *"
15423 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15424 esac
15425
15426 case $ac_config_headers in *"
15427 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15428 esac
15429
15430
15431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15432 # Files that config.status was made for.
15433 config_files="$ac_config_files"
15434 config_headers="$ac_config_headers"
15435 config_commands="$ac_config_commands"
15436
15437 _ACEOF
15438
15439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15440 ac_cs_usage="\
15441 \`$as_me' instantiates files and other configuration actions
15442 from templates according to the current configuration.  Unless the files
15443 and actions are specified as TAGs, all are instantiated by default.
15444
15445 Usage: $0 [OPTION]... [TAG]...
15446
15447   -h, --help       print this help, then exit
15448   -V, --version    print version number and configuration settings, then exit
15449       --config     print configuration, then exit
15450   -q, --quiet, --silent
15451                    do not print progress messages
15452   -d, --debug      don't remove temporary files
15453       --recheck    update $as_me by reconfiguring in the same conditions
15454       --file=FILE[:TEMPLATE]
15455                    instantiate the configuration file FILE
15456       --header=FILE[:TEMPLATE]
15457                    instantiate the configuration header FILE
15458
15459 Configuration files:
15460 $config_files
15461
15462 Configuration headers:
15463 $config_headers
15464
15465 Configuration commands:
15466 $config_commands
15467
15468 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=glib&component=introspection>."
15469
15470 _ACEOF
15471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15472 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15473 ac_cs_version="\\
15474 gobject-introspection config.status 1.37.4
15475 configured by $0, generated by GNU Autoconf 2.69,
15476   with options \\"\$ac_cs_config\\"
15477
15478 Copyright (C) 2012 Free Software Foundation, Inc.
15479 This config.status script is free software; the Free Software Foundation
15480 gives unlimited permission to copy, distribute and modify it."
15481
15482 ac_pwd='$ac_pwd'
15483 srcdir='$srcdir'
15484 INSTALL='$INSTALL'
15485 MKDIR_P='$MKDIR_P'
15486 AWK='$AWK'
15487 test -n "\$AWK" || AWK=awk
15488 _ACEOF
15489
15490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15491 # The default lists apply if the user does not specify any file.
15492 ac_need_defaults=:
15493 while test $# != 0
15494 do
15495   case $1 in
15496   --*=?*)
15497     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15498     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15499     ac_shift=:
15500     ;;
15501   --*=)
15502     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15503     ac_optarg=
15504     ac_shift=:
15505     ;;
15506   *)
15507     ac_option=$1
15508     ac_optarg=$2
15509     ac_shift=shift
15510     ;;
15511   esac
15512
15513   case $ac_option in
15514   # Handling of the options.
15515   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15516     ac_cs_recheck=: ;;
15517   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15518     $as_echo "$ac_cs_version"; exit ;;
15519   --config | --confi | --conf | --con | --co | --c )
15520     $as_echo "$ac_cs_config"; exit ;;
15521   --debug | --debu | --deb | --de | --d | -d )
15522     debug=: ;;
15523   --file | --fil | --fi | --f )
15524     $ac_shift
15525     case $ac_optarg in
15526     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15527     '') as_fn_error $? "missing file argument" ;;
15528     esac
15529     as_fn_append CONFIG_FILES " '$ac_optarg'"
15530     ac_need_defaults=false;;
15531   --header | --heade | --head | --hea )
15532     $ac_shift
15533     case $ac_optarg in
15534     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15535     esac
15536     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15537     ac_need_defaults=false;;
15538   --he | --h)
15539     # Conflict between --help and --header
15540     as_fn_error $? "ambiguous option: \`$1'
15541 Try \`$0 --help' for more information.";;
15542   --help | --hel | -h )
15543     $as_echo "$ac_cs_usage"; exit ;;
15544   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15545   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15546     ac_cs_silent=: ;;
15547
15548   # This is an error.
15549   -*) as_fn_error $? "unrecognized option: \`$1'
15550 Try \`$0 --help' for more information." ;;
15551
15552   *) as_fn_append ac_config_targets " $1"
15553      ac_need_defaults=false ;;
15554
15555   esac
15556   shift
15557 done
15558
15559 ac_configure_extra_args=
15560
15561 if $ac_cs_silent; then
15562   exec 6>/dev/null
15563   ac_configure_extra_args="$ac_configure_extra_args --silent"
15564 fi
15565
15566 _ACEOF
15567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15568 if \$ac_cs_recheck; then
15569   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15570   shift
15571   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15572   CONFIG_SHELL='$SHELL'
15573   export CONFIG_SHELL
15574   exec "\$@"
15575 fi
15576
15577 _ACEOF
15578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15579 exec 5>>config.log
15580 {
15581   echo
15582   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15583 ## Running $as_me. ##
15584 _ASBOX
15585   $as_echo "$ac_log"
15586 } >&5
15587
15588 _ACEOF
15589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15590 #
15591 # INIT-COMMANDS
15592 #
15593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15594
15595
15596 # The HP-UX ksh and POSIX shell print the target directory to stdout
15597 # if CDPATH is set.
15598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15599
15600 sed_quote_subst='$sed_quote_subst'
15601 double_quote_subst='$double_quote_subst'
15602 delay_variable_subst='$delay_variable_subst'
15603 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15604 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15605 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15606 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15607 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15608 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15609 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15610 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15611 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15612 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15613 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15614 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15615 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15616 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15617 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15618 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15619 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15620 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15621 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15622 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15623 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15624 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15625 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15626 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15627 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15628 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15629 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15630 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15631 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15632 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15633 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15634 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15635 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15636 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15637 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15638 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15639 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15640 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15641 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15642 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15643 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15644 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15645 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15646 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15647 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15648 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15649 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15650 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15651 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15652 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15653 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15654 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15655 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15656 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15657 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15658 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15659 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"`'
15660 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15661 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15662 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15663 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15664 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15665 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15666 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15667 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15668 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15669 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15670 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15671 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15672 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15673 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15674 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15675 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15676 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15677 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15678 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15679 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15680 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15681 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15682 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15683 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15684 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15685 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15686 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15687 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15688 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15689 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15690 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15691 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15692 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15693 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15694 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15695 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15696 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15697 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15698 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15699 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15700 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15701 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15702 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15703 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15704 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15705 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15706 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15707 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15708 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15709 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15710 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15711 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15712 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15713 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15714 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15715 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15716 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15717 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15718 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15719 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15720 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15721 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15722 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15723 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15724 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15725 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15726 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15727 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15728 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15729 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15730 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15731 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15732 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15733
15734 LTCC='$LTCC'
15735 LTCFLAGS='$LTCFLAGS'
15736 compiler='$compiler_DEFAULT'
15737
15738 # A function that is used when there is no print builtin or printf.
15739 func_fallback_echo ()
15740 {
15741   eval 'cat <<_LTECHO_EOF
15742 \$1
15743 _LTECHO_EOF'
15744 }
15745
15746 # Quote evaled strings.
15747 for var in SHELL \
15748 ECHO \
15749 PATH_SEPARATOR \
15750 SED \
15751 GREP \
15752 EGREP \
15753 FGREP \
15754 LD \
15755 NM \
15756 LN_S \
15757 lt_SP2NL \
15758 lt_NL2SP \
15759 reload_flag \
15760 OBJDUMP \
15761 deplibs_check_method \
15762 file_magic_cmd \
15763 file_magic_glob \
15764 want_nocaseglob \
15765 DLLTOOL \
15766 sharedlib_from_linklib_cmd \
15767 AR \
15768 AR_FLAGS \
15769 archiver_list_spec \
15770 STRIP \
15771 RANLIB \
15772 CC \
15773 CFLAGS \
15774 compiler \
15775 lt_cv_sys_global_symbol_pipe \
15776 lt_cv_sys_global_symbol_to_cdecl \
15777 lt_cv_sys_global_symbol_to_c_name_address \
15778 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15779 nm_file_list_spec \
15780 lt_prog_compiler_no_builtin_flag \
15781 lt_prog_compiler_pic \
15782 lt_prog_compiler_wl \
15783 lt_prog_compiler_static \
15784 lt_cv_prog_compiler_c_o \
15785 need_locks \
15786 MANIFEST_TOOL \
15787 DSYMUTIL \
15788 NMEDIT \
15789 LIPO \
15790 OTOOL \
15791 OTOOL64 \
15792 shrext_cmds \
15793 export_dynamic_flag_spec \
15794 whole_archive_flag_spec \
15795 compiler_needs_object \
15796 with_gnu_ld \
15797 allow_undefined_flag \
15798 no_undefined_flag \
15799 hardcode_libdir_flag_spec \
15800 hardcode_libdir_separator \
15801 exclude_expsyms \
15802 include_expsyms \
15803 file_list_spec \
15804 variables_saved_for_relink \
15805 libname_spec \
15806 library_names_spec \
15807 soname_spec \
15808 install_override_mode \
15809 finish_eval \
15810 old_striplib \
15811 striplib; do
15812     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15813     *[\\\\\\\`\\"\\\$]*)
15814       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15815       ;;
15816     *)
15817       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15818       ;;
15819     esac
15820 done
15821
15822 # Double-quote double-evaled strings.
15823 for var in reload_cmds \
15824 old_postinstall_cmds \
15825 old_postuninstall_cmds \
15826 old_archive_cmds \
15827 extract_expsyms_cmds \
15828 old_archive_from_new_cmds \
15829 old_archive_from_expsyms_cmds \
15830 archive_cmds \
15831 archive_expsym_cmds \
15832 module_cmds \
15833 module_expsym_cmds \
15834 export_symbols_cmds \
15835 prelink_cmds \
15836 postlink_cmds \
15837 postinstall_cmds \
15838 postuninstall_cmds \
15839 finish_cmds \
15840 sys_lib_search_path_spec \
15841 sys_lib_dlsearch_path_spec; do
15842     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15843     *[\\\\\\\`\\"\\\$]*)
15844       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15845       ;;
15846     *)
15847       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15848       ;;
15849     esac
15850 done
15851
15852 ac_aux_dir='$ac_aux_dir'
15853 xsi_shell='$xsi_shell'
15854 lt_shell_append='$lt_shell_append'
15855
15856 # See if we are running on zsh, and set the options which allow our
15857 # commands through without removal of \ escapes INIT.
15858 if test -n "\${ZSH_VERSION+set}" ; then
15859    setopt NO_GLOB_SUBST
15860 fi
15861
15862
15863     PACKAGE='$PACKAGE'
15864     VERSION='$VERSION'
15865     TIMESTAMP='$TIMESTAMP'
15866     RM='$RM'
15867     ofile='$ofile'
15868
15869
15870
15871
15872 _ACEOF
15873
15874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15875
15876 # Handling of arguments.
15877 for ac_config_target in $ac_config_targets
15878 do
15879   case $ac_config_target in
15880     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15881     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15882     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15883     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15884     "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
15885     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15886     "tests/offsets/Makefile") CONFIG_FILES="$CONFIG_FILES tests/offsets/Makefile" ;;
15887     "tests/scanner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/Makefile" ;;
15888     "tests/repository/Makefile") CONFIG_FILES="$CONFIG_FILES tests/repository/Makefile" ;;
15889     "tests/warn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/warn/Makefile" ;;
15890     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
15891     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
15892     "gobject-introspection-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-1.0.pc" ;;
15893     "gobject-introspection-no-export-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-no-export-1.0.pc" ;;
15894     "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
15895     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
15896     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
15897     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
15898     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
15899
15900   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15901   esac
15902 done
15903
15904
15905 # If the user did not use the arguments to specify the items to instantiate,
15906 # then the envvar interface is used.  Set only those that are not.
15907 # We use the long form for the default assignment because of an extremely
15908 # bizarre bug on SunOS 4.1.3.
15909 if $ac_need_defaults; then
15910   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15911   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15912   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15913 fi
15914
15915 # Have a temporary directory for convenience.  Make it in the build tree
15916 # simply because there is no reason against having it here, and in addition,
15917 # creating and moving files from /tmp can sometimes cause problems.
15918 # Hook for its removal unless debugging.
15919 # Note that there is a small window in which the directory will not be cleaned:
15920 # after its creation but before its name has been assigned to `$tmp'.
15921 $debug ||
15922 {
15923   tmp= ac_tmp=
15924   trap 'exit_status=$?
15925   : "${ac_tmp:=$tmp}"
15926   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15927 ' 0
15928   trap 'as_fn_exit 1' 1 2 13 15
15929 }
15930 # Create a (secure) tmp directory for tmp files.
15931
15932 {
15933   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15934   test -d "$tmp"
15935 }  ||
15936 {
15937   tmp=./conf$$-$RANDOM
15938   (umask 077 && mkdir "$tmp")
15939 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15940 ac_tmp=$tmp
15941
15942 # Set up the scripts for CONFIG_FILES section.
15943 # No need to generate them if there are no CONFIG_FILES.
15944 # This happens for instance with `./config.status config.h'.
15945 if test -n "$CONFIG_FILES"; then
15946
15947
15948 ac_cr=`echo X | tr X '\015'`
15949 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15950 # But we know of no other shell where ac_cr would be empty at this
15951 # point, so we can use a bashism as a fallback.
15952 if test "x$ac_cr" = x; then
15953   eval ac_cr=\$\'\\r\'
15954 fi
15955 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15956 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15957   ac_cs_awk_cr='\\r'
15958 else
15959   ac_cs_awk_cr=$ac_cr
15960 fi
15961
15962 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15963 _ACEOF
15964
15965
15966 {
15967   echo "cat >conf$$subs.awk <<_ACEOF" &&
15968   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15969   echo "_ACEOF"
15970 } >conf$$subs.sh ||
15971   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15972 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15973 ac_delim='%!_!# '
15974 for ac_last_try in false false false false false :; do
15975   . ./conf$$subs.sh ||
15976     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15977
15978   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15979   if test $ac_delim_n = $ac_delim_num; then
15980     break
15981   elif $ac_last_try; then
15982     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15983   else
15984     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15985   fi
15986 done
15987 rm -f conf$$subs.sh
15988
15989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15990 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15991 _ACEOF
15992 sed -n '
15993 h
15994 s/^/S["/; s/!.*/"]=/
15995 p
15996 g
15997 s/^[^!]*!//
15998 :repl
15999 t repl
16000 s/'"$ac_delim"'$//
16001 t delim
16002 :nl
16003 h
16004 s/\(.\{148\}\)..*/\1/
16005 t more1
16006 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16007 p
16008 n
16009 b repl
16010 :more1
16011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16012 p
16013 g
16014 s/.\{148\}//
16015 t nl
16016 :delim
16017 h
16018 s/\(.\{148\}\)..*/\1/
16019 t more2
16020 s/["\\]/\\&/g; s/^/"/; s/$/"/
16021 p
16022 b
16023 :more2
16024 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16025 p
16026 g
16027 s/.\{148\}//
16028 t delim
16029 ' <conf$$subs.awk | sed '
16030 /^[^""]/{
16031   N
16032   s/\n//
16033 }
16034 ' >>$CONFIG_STATUS || ac_write_fail=1
16035 rm -f conf$$subs.awk
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16037 _ACAWK
16038 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16039   for (key in S) S_is_set[key] = 1
16040   FS = "\a"
16041
16042 }
16043 {
16044   line = $ 0
16045   nfields = split(line, field, "@")
16046   substed = 0
16047   len = length(field[1])
16048   for (i = 2; i < nfields; i++) {
16049     key = field[i]
16050     keylen = length(key)
16051     if (S_is_set[key]) {
16052       value = S[key]
16053       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16054       len += length(value) + length(field[++i])
16055       substed = 1
16056     } else
16057       len += 1 + keylen
16058   }
16059
16060   print line
16061 }
16062
16063 _ACAWK
16064 _ACEOF
16065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16067   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16068 else
16069   cat
16070 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16071   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16072 _ACEOF
16073
16074 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16075 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16076 # trailing colons and then remove the whole line if VPATH becomes empty
16077 # (actually we leave an empty line to preserve line numbers).
16078 if test "x$srcdir" = x.; then
16079   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16080 h
16081 s///
16082 s/^/:/
16083 s/[      ]*$/:/
16084 s/:\$(srcdir):/:/g
16085 s/:\${srcdir}:/:/g
16086 s/:@srcdir@:/:/g
16087 s/^:*//
16088 s/:*$//
16089 x
16090 s/\(=[   ]*\).*/\1/
16091 G
16092 s/\n//
16093 s/^[^=]*=[       ]*$//
16094 }'
16095 fi
16096
16097 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16098 fi # test -n "$CONFIG_FILES"
16099
16100 # Set up the scripts for CONFIG_HEADERS section.
16101 # No need to generate them if there are no CONFIG_HEADERS.
16102 # This happens for instance with `./config.status Makefile'.
16103 if test -n "$CONFIG_HEADERS"; then
16104 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16105 BEGIN {
16106 _ACEOF
16107
16108 # Transform confdefs.h into an awk script `defines.awk', embedded as
16109 # here-document in config.status, that substitutes the proper values into
16110 # config.h.in to produce config.h.
16111
16112 # Create a delimiter string that does not exist in confdefs.h, to ease
16113 # handling of long lines.
16114 ac_delim='%!_!# '
16115 for ac_last_try in false false :; do
16116   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16117   if test -z "$ac_tt"; then
16118     break
16119   elif $ac_last_try; then
16120     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16121   else
16122     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16123   fi
16124 done
16125
16126 # For the awk script, D is an array of macro values keyed by name,
16127 # likewise P contains macro parameters if any.  Preserve backslash
16128 # newline sequences.
16129
16130 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16131 sed -n '
16132 s/.\{148\}/&'"$ac_delim"'/g
16133 t rset
16134 :rset
16135 s/^[     ]*#[    ]*define[       ][      ]*/ /
16136 t def
16137 d
16138 :def
16139 s/\\$//
16140 t bsnl
16141 s/["\\]/\\&/g
16142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16143 D["\1"]=" \3"/p
16144 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16145 d
16146 :bsnl
16147 s/["\\]/\\&/g
16148 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16149 D["\1"]=" \3\\\\\\n"\\/p
16150 t cont
16151 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16152 t cont
16153 d
16154 :cont
16155 n
16156 s/.\{148\}/&'"$ac_delim"'/g
16157 t clear
16158 :clear
16159 s/\\$//
16160 t bsnlc
16161 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16162 d
16163 :bsnlc
16164 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16165 b cont
16166 ' <confdefs.h | sed '
16167 s/'"$ac_delim"'/"\\\
16168 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16169
16170 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16171   for (key in D) D_is_set[key] = 1
16172   FS = "\a"
16173 }
16174 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16175   line = \$ 0
16176   split(line, arg, " ")
16177   if (arg[1] == "#") {
16178     defundef = arg[2]
16179     mac1 = arg[3]
16180   } else {
16181     defundef = substr(arg[1], 2)
16182     mac1 = arg[2]
16183   }
16184   split(mac1, mac2, "(") #)
16185   macro = mac2[1]
16186   prefix = substr(line, 1, index(line, defundef) - 1)
16187   if (D_is_set[macro]) {
16188     # Preserve the white space surrounding the "#".
16189     print prefix "define", macro P[macro] D[macro]
16190     next
16191   } else {
16192     # Replace #undef with comments.  This is necessary, for example,
16193     # in the case of _POSIX_SOURCE, which is predefined and required
16194     # on some systems where configure will not decide to define it.
16195     if (defundef == "undef") {
16196       print "/*", prefix defundef, macro, "*/"
16197       next
16198     }
16199   }
16200 }
16201 { print }
16202 _ACAWK
16203 _ACEOF
16204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16205   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16206 fi # test -n "$CONFIG_HEADERS"
16207
16208
16209 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16210 shift
16211 for ac_tag
16212 do
16213   case $ac_tag in
16214   :[FHLC]) ac_mode=$ac_tag; continue;;
16215   esac
16216   case $ac_mode$ac_tag in
16217   :[FHL]*:*);;
16218   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16219   :[FH]-) ac_tag=-:-;;
16220   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16221   esac
16222   ac_save_IFS=$IFS
16223   IFS=:
16224   set x $ac_tag
16225   IFS=$ac_save_IFS
16226   shift
16227   ac_file=$1
16228   shift
16229
16230   case $ac_mode in
16231   :L) ac_source=$1;;
16232   :[FH])
16233     ac_file_inputs=
16234     for ac_f
16235     do
16236       case $ac_f in
16237       -) ac_f="$ac_tmp/stdin";;
16238       *) # Look for the file first in the build tree, then in the source tree
16239          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16240          # because $ac_f cannot contain `:'.
16241          test -f "$ac_f" ||
16242            case $ac_f in
16243            [\\/$]*) false;;
16244            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16245            esac ||
16246            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16247       esac
16248       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16249       as_fn_append ac_file_inputs " '$ac_f'"
16250     done
16251
16252     # Let's still pretend it is `configure' which instantiates (i.e., don't
16253     # use $as_me), people would be surprised to read:
16254     #    /* config.h.  Generated by config.status.  */
16255     configure_input='Generated from '`
16256           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16257         `' by configure.'
16258     if test x"$ac_file" != x-; then
16259       configure_input="$ac_file.  $configure_input"
16260       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16261 $as_echo "$as_me: creating $ac_file" >&6;}
16262     fi
16263     # Neutralize special characters interpreted by sed in replacement strings.
16264     case $configure_input in #(
16265     *\&* | *\|* | *\\* )
16266        ac_sed_conf_input=`$as_echo "$configure_input" |
16267        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16268     *) ac_sed_conf_input=$configure_input;;
16269     esac
16270
16271     case $ac_tag in
16272     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16273       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16274     esac
16275     ;;
16276   esac
16277
16278   ac_dir=`$as_dirname -- "$ac_file" ||
16279 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16280          X"$ac_file" : 'X\(//\)[^/]' \| \
16281          X"$ac_file" : 'X\(//\)$' \| \
16282          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16283 $as_echo X"$ac_file" |
16284     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16285             s//\1/
16286             q
16287           }
16288           /^X\(\/\/\)[^/].*/{
16289             s//\1/
16290             q
16291           }
16292           /^X\(\/\/\)$/{
16293             s//\1/
16294             q
16295           }
16296           /^X\(\/\).*/{
16297             s//\1/
16298             q
16299           }
16300           s/.*/./; q'`
16301   as_dir="$ac_dir"; as_fn_mkdir_p
16302   ac_builddir=.
16303
16304 case "$ac_dir" in
16305 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16306 *)
16307   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16308   # A ".." for each directory in $ac_dir_suffix.
16309   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16310   case $ac_top_builddir_sub in
16311   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16312   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16313   esac ;;
16314 esac
16315 ac_abs_top_builddir=$ac_pwd
16316 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16317 # for backward compatibility:
16318 ac_top_builddir=$ac_top_build_prefix
16319
16320 case $srcdir in
16321   .)  # We are building in place.
16322     ac_srcdir=.
16323     ac_top_srcdir=$ac_top_builddir_sub
16324     ac_abs_top_srcdir=$ac_pwd ;;
16325   [\\/]* | ?:[\\/]* )  # Absolute name.
16326     ac_srcdir=$srcdir$ac_dir_suffix;
16327     ac_top_srcdir=$srcdir
16328     ac_abs_top_srcdir=$srcdir ;;
16329   *) # Relative name.
16330     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16331     ac_top_srcdir=$ac_top_build_prefix$srcdir
16332     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16333 esac
16334 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16335
16336
16337   case $ac_mode in
16338   :F)
16339   #
16340   # CONFIG_FILE
16341   #
16342
16343   case $INSTALL in
16344   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16345   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16346   esac
16347   ac_MKDIR_P=$MKDIR_P
16348   case $MKDIR_P in
16349   [\\/$]* | ?:[\\/]* ) ;;
16350   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16351   esac
16352 _ACEOF
16353
16354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16355 # If the template does not know about datarootdir, expand it.
16356 # FIXME: This hack should be removed a few years after 2.60.
16357 ac_datarootdir_hack=; ac_datarootdir_seen=
16358 ac_sed_dataroot='
16359 /datarootdir/ {
16360   p
16361   q
16362 }
16363 /@datadir@/p
16364 /@docdir@/p
16365 /@infodir@/p
16366 /@localedir@/p
16367 /@mandir@/p'
16368 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16369 *datarootdir*) ac_datarootdir_seen=yes;;
16370 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16371   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16372 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16373 _ACEOF
16374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16375   ac_datarootdir_hack='
16376   s&@datadir@&$datadir&g
16377   s&@docdir@&$docdir&g
16378   s&@infodir@&$infodir&g
16379   s&@localedir@&$localedir&g
16380   s&@mandir@&$mandir&g
16381   s&\\\${datarootdir}&$datarootdir&g' ;;
16382 esac
16383 _ACEOF
16384
16385 # Neutralize VPATH when `$srcdir' = `.'.
16386 # Shell code in configure.ac might set extrasub.
16387 # FIXME: do we really want to maintain this feature?
16388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16389 ac_sed_extra="$ac_vpsub
16390 $extrasub
16391 _ACEOF
16392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16393 :t
16394 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16395 s|@configure_input@|$ac_sed_conf_input|;t t
16396 s&@top_builddir@&$ac_top_builddir_sub&;t t
16397 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16398 s&@srcdir@&$ac_srcdir&;t t
16399 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16400 s&@top_srcdir@&$ac_top_srcdir&;t t
16401 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16402 s&@builddir@&$ac_builddir&;t t
16403 s&@abs_builddir@&$ac_abs_builddir&;t t
16404 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16405 s&@INSTALL@&$ac_INSTALL&;t t
16406 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16407 $ac_datarootdir_hack
16408 "
16409 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16410   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16411
16412 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16413   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16414   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16415       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16416   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16417 which seems to be undefined.  Please make sure it is defined" >&5
16418 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16419 which seems to be undefined.  Please make sure it is defined" >&2;}
16420
16421   rm -f "$ac_tmp/stdin"
16422   case $ac_file in
16423   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16424   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16425   esac \
16426   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16427  ;;
16428   :H)
16429   #
16430   # CONFIG_HEADER
16431   #
16432   if test x"$ac_file" != x-; then
16433     {
16434       $as_echo "/* $configure_input  */" \
16435       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16436     } >"$ac_tmp/config.h" \
16437       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16438     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16439       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16440 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16441     else
16442       rm -f "$ac_file"
16443       mv "$ac_tmp/config.h" "$ac_file" \
16444         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16445     fi
16446   else
16447     $as_echo "/* $configure_input  */" \
16448       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16449       || as_fn_error $? "could not create -" "$LINENO" 5
16450   fi
16451 # Compute "$ac_file"'s index in $config_headers.
16452 _am_arg="$ac_file"
16453 _am_stamp_count=1
16454 for _am_header in $config_headers :; do
16455   case $_am_header in
16456     $_am_arg | $_am_arg:* )
16457       break ;;
16458     * )
16459       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16460   esac
16461 done
16462 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16463 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16464          X"$_am_arg" : 'X\(//\)[^/]' \| \
16465          X"$_am_arg" : 'X\(//\)$' \| \
16466          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16467 $as_echo X"$_am_arg" |
16468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16469             s//\1/
16470             q
16471           }
16472           /^X\(\/\/\)[^/].*/{
16473             s//\1/
16474             q
16475           }
16476           /^X\(\/\/\)$/{
16477             s//\1/
16478             q
16479           }
16480           /^X\(\/\).*/{
16481             s//\1/
16482             q
16483           }
16484           s/.*/./; q'`/stamp-h$_am_stamp_count
16485  ;;
16486
16487   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16488 $as_echo "$as_me: executing $ac_file commands" >&6;}
16489  ;;
16490   esac
16491
16492
16493   case $ac_file$ac_mode in
16494     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16495   # Older Autoconf quotes --file arguments for eval, but not when files
16496   # are listed without --file.  Let's play safe and only enable the eval
16497   # if we detect the quoting.
16498   case $CONFIG_FILES in
16499   *\'*) eval set x "$CONFIG_FILES" ;;
16500   *)   set x $CONFIG_FILES ;;
16501   esac
16502   shift
16503   for mf
16504   do
16505     # Strip MF so we end up with the name of the file.
16506     mf=`echo "$mf" | sed -e 's/:.*$//'`
16507     # Check whether this is an Automake generated Makefile or not.
16508     # We used to match only the files named 'Makefile.in', but
16509     # some people rename them; so instead we look at the file content.
16510     # Grep'ing the first line is not enough: some people post-process
16511     # each Makefile.in and add a new line on top of each file to say so.
16512     # Grep'ing the whole file is not good either: AIX grep has a line
16513     # limit of 2048, but all sed's we know have understand at least 4000.
16514     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16515       dirpart=`$as_dirname -- "$mf" ||
16516 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16517          X"$mf" : 'X\(//\)[^/]' \| \
16518          X"$mf" : 'X\(//\)$' \| \
16519          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16520 $as_echo X"$mf" |
16521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16522             s//\1/
16523             q
16524           }
16525           /^X\(\/\/\)[^/].*/{
16526             s//\1/
16527             q
16528           }
16529           /^X\(\/\/\)$/{
16530             s//\1/
16531             q
16532           }
16533           /^X\(\/\).*/{
16534             s//\1/
16535             q
16536           }
16537           s/.*/./; q'`
16538     else
16539       continue
16540     fi
16541     # Extract the definition of DEPDIR, am__include, and am__quote
16542     # from the Makefile without running 'make'.
16543     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16544     test -z "$DEPDIR" && continue
16545     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16546     test -z "$am__include" && continue
16547     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16548     # Find all dependency output files, they are included files with
16549     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16550     # simplest approach to changing $(DEPDIR) to its actual value in the
16551     # expansion.
16552     for file in `sed -n "
16553       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16554          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16555       # Make sure the directory exists.
16556       test -f "$dirpart/$file" && continue
16557       fdir=`$as_dirname -- "$file" ||
16558 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16559          X"$file" : 'X\(//\)[^/]' \| \
16560          X"$file" : 'X\(//\)$' \| \
16561          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16562 $as_echo X"$file" |
16563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16564             s//\1/
16565             q
16566           }
16567           /^X\(\/\/\)[^/].*/{
16568             s//\1/
16569             q
16570           }
16571           /^X\(\/\/\)$/{
16572             s//\1/
16573             q
16574           }
16575           /^X\(\/\).*/{
16576             s//\1/
16577             q
16578           }
16579           s/.*/./; q'`
16580       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16581       # echo "creating $dirpart/$file"
16582       echo '# dummy' > "$dirpart/$file"
16583     done
16584   done
16585 }
16586  ;;
16587     "libtool":C)
16588
16589     # See if we are running on zsh, and set the options which allow our
16590     # commands through without removal of \ escapes.
16591     if test -n "${ZSH_VERSION+set}" ; then
16592       setopt NO_GLOB_SUBST
16593     fi
16594
16595     cfgfile="${ofile}T"
16596     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16597     $RM "$cfgfile"
16598
16599     cat <<_LT_EOF >> "$cfgfile"
16600 #! $SHELL
16601
16602 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16603 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16604 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16605 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16606 #
16607 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16608 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16609 #                 Foundation, Inc.
16610 #   Written by Gordon Matzigkeit, 1996
16611 #
16612 #   This file is part of GNU Libtool.
16613 #
16614 # GNU Libtool is free software; you can redistribute it and/or
16615 # modify it under the terms of the GNU General Public License as
16616 # published by the Free Software Foundation; either version 2 of
16617 # the License, or (at your option) any later version.
16618 #
16619 # As a special exception to the GNU General Public License,
16620 # if you distribute this file as part of a program or library that
16621 # is built using GNU Libtool, you may include this file under the
16622 # same distribution terms that you use for the rest of that program.
16623 #
16624 # GNU Libtool is distributed in the hope that it will be useful,
16625 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16626 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16627 # GNU General Public License for more details.
16628 #
16629 # You should have received a copy of the GNU General Public License
16630 # along with GNU Libtool; see the file COPYING.  If not, a copy
16631 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16632 # obtained by writing to the Free Software Foundation, Inc.,
16633 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16634
16635
16636 # The names of the tagged configurations supported by this script.
16637 available_tags=""
16638
16639 # ### BEGIN LIBTOOL CONFIG
16640
16641 # Which release of libtool.m4 was used?
16642 macro_version=$macro_version
16643 macro_revision=$macro_revision
16644
16645 # Whether or not to build shared libraries.
16646 build_libtool_libs=$enable_shared
16647
16648 # Whether or not to build static libraries.
16649 build_old_libs=$enable_static
16650
16651 # What type of objects to build.
16652 pic_mode=$pic_mode
16653
16654 # Whether or not to optimize for fast installation.
16655 fast_install=$enable_fast_install
16656
16657 # Shell to use when invoking shell scripts.
16658 SHELL=$lt_SHELL
16659
16660 # An echo program that protects backslashes.
16661 ECHO=$lt_ECHO
16662
16663 # The PATH separator for the build system.
16664 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16665
16666 # The host system.
16667 host_alias=$host_alias
16668 host=$host
16669 host_os=$host_os
16670
16671 # The build system.
16672 build_alias=$build_alias
16673 build=$build
16674 build_os=$build_os
16675
16676 # A sed program that does not truncate output.
16677 SED=$lt_SED
16678
16679 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16680 Xsed="\$SED -e 1s/^X//"
16681
16682 # A grep program that handles long lines.
16683 GREP=$lt_GREP
16684
16685 # An ERE matcher.
16686 EGREP=$lt_EGREP
16687
16688 # A literal string matcher.
16689 FGREP=$lt_FGREP
16690
16691 # A BSD- or MS-compatible name lister.
16692 NM=$lt_NM
16693
16694 # Whether we need soft or hard links.
16695 LN_S=$lt_LN_S
16696
16697 # What is the maximum length of a command?
16698 max_cmd_len=$max_cmd_len
16699
16700 # Object file suffix (normally "o").
16701 objext=$ac_objext
16702
16703 # Executable file suffix (normally "").
16704 exeext=$exeext
16705
16706 # whether the shell understands "unset".
16707 lt_unset=$lt_unset
16708
16709 # turn spaces into newlines.
16710 SP2NL=$lt_lt_SP2NL
16711
16712 # turn newlines into spaces.
16713 NL2SP=$lt_lt_NL2SP
16714
16715 # convert \$build file names to \$host format.
16716 to_host_file_cmd=$lt_cv_to_host_file_cmd
16717
16718 # convert \$build files to toolchain format.
16719 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16720
16721 # An object symbol dumper.
16722 OBJDUMP=$lt_OBJDUMP
16723
16724 # Method to check whether dependent libraries are shared objects.
16725 deplibs_check_method=$lt_deplibs_check_method
16726
16727 # Command to use when deplibs_check_method = "file_magic".
16728 file_magic_cmd=$lt_file_magic_cmd
16729
16730 # How to find potential files when deplibs_check_method = "file_magic".
16731 file_magic_glob=$lt_file_magic_glob
16732
16733 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16734 want_nocaseglob=$lt_want_nocaseglob
16735
16736 # DLL creation program.
16737 DLLTOOL=$lt_DLLTOOL
16738
16739 # Command to associate shared and link libraries.
16740 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16741
16742 # The archiver.
16743 AR=$lt_AR
16744
16745 # Flags to create an archive.
16746 AR_FLAGS=$lt_AR_FLAGS
16747
16748 # How to feed a file listing to the archiver.
16749 archiver_list_spec=$lt_archiver_list_spec
16750
16751 # A symbol stripping program.
16752 STRIP=$lt_STRIP
16753
16754 # Commands used to install an old-style archive.
16755 RANLIB=$lt_RANLIB
16756 old_postinstall_cmds=$lt_old_postinstall_cmds
16757 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16758
16759 # Whether to use a lock for old archive extraction.
16760 lock_old_archive_extraction=$lock_old_archive_extraction
16761
16762 # A C compiler.
16763 LTCC=$lt_CC
16764
16765 # LTCC compiler flags.
16766 LTCFLAGS=$lt_CFLAGS
16767
16768 # Take the output of nm and produce a listing of raw symbols and C names.
16769 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16770
16771 # Transform the output of nm in a proper C declaration.
16772 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16773
16774 # Transform the output of nm in a C name address pair.
16775 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16776
16777 # Transform the output of nm in a C name address pair when lib prefix is needed.
16778 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16779
16780 # Specify filename containing input files for \$NM.
16781 nm_file_list_spec=$lt_nm_file_list_spec
16782
16783 # The root where to search for dependent libraries,and in which our libraries should be installed.
16784 lt_sysroot=$lt_sysroot
16785
16786 # The name of the directory that contains temporary libtool files.
16787 objdir=$objdir
16788
16789 # Used to examine libraries when file_magic_cmd begins with "file".
16790 MAGIC_CMD=$MAGIC_CMD
16791
16792 # Must we lock files when doing compilation?
16793 need_locks=$lt_need_locks
16794
16795 # Manifest tool.
16796 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16797
16798 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16799 DSYMUTIL=$lt_DSYMUTIL
16800
16801 # Tool to change global to local symbols on Mac OS X.
16802 NMEDIT=$lt_NMEDIT
16803
16804 # Tool to manipulate fat objects and archives on Mac OS X.
16805 LIPO=$lt_LIPO
16806
16807 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16808 OTOOL=$lt_OTOOL
16809
16810 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16811 OTOOL64=$lt_OTOOL64
16812
16813 # Old archive suffix (normally "a").
16814 libext=$libext
16815
16816 # Shared library suffix (normally ".so").
16817 shrext_cmds=$lt_shrext_cmds
16818
16819 # The commands to extract the exported symbol list from a shared archive.
16820 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16821
16822 # Variables whose values should be saved in libtool wrapper scripts and
16823 # restored at link time.
16824 variables_saved_for_relink=$lt_variables_saved_for_relink
16825
16826 # Do we need the "lib" prefix for modules?
16827 need_lib_prefix=$need_lib_prefix
16828
16829 # Do we need a version for libraries?
16830 need_version=$need_version
16831
16832 # Library versioning type.
16833 version_type=$version_type
16834
16835 # Shared library runtime path variable.
16836 runpath_var=$runpath_var
16837
16838 # Shared library path variable.
16839 shlibpath_var=$shlibpath_var
16840
16841 # Is shlibpath searched before the hard-coded library search path?
16842 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16843
16844 # Format of library name prefix.
16845 libname_spec=$lt_libname_spec
16846
16847 # List of archive names.  First name is the real one, the rest are links.
16848 # The last name is the one that the linker finds with -lNAME
16849 library_names_spec=$lt_library_names_spec
16850
16851 # The coded name of the library, if different from the real name.
16852 soname_spec=$lt_soname_spec
16853
16854 # Permission mode override for installation of shared libraries.
16855 install_override_mode=$lt_install_override_mode
16856
16857 # Command to use after installation of a shared archive.
16858 postinstall_cmds=$lt_postinstall_cmds
16859
16860 # Command to use after uninstallation of a shared archive.
16861 postuninstall_cmds=$lt_postuninstall_cmds
16862
16863 # Commands used to finish a libtool library installation in a directory.
16864 finish_cmds=$lt_finish_cmds
16865
16866 # As "finish_cmds", except a single script fragment to be evaled but
16867 # not shown.
16868 finish_eval=$lt_finish_eval
16869
16870 # Whether we should hardcode library paths into libraries.
16871 hardcode_into_libs=$hardcode_into_libs
16872
16873 # Compile-time system search path for libraries.
16874 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16875
16876 # Run-time system search path for libraries.
16877 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16878
16879 # Whether dlopen is supported.
16880 dlopen_support=$enable_dlopen
16881
16882 # Whether dlopen of programs is supported.
16883 dlopen_self=$enable_dlopen_self
16884
16885 # Whether dlopen of statically linked programs is supported.
16886 dlopen_self_static=$enable_dlopen_self_static
16887
16888 # Commands to strip libraries.
16889 old_striplib=$lt_old_striplib
16890 striplib=$lt_striplib
16891
16892
16893 # The linker used to build libraries.
16894 LD=$lt_LD
16895
16896 # How to create reloadable object files.
16897 reload_flag=$lt_reload_flag
16898 reload_cmds=$lt_reload_cmds
16899
16900 # Commands used to build an old-style archive.
16901 old_archive_cmds=$lt_old_archive_cmds
16902
16903 # A language specific compiler.
16904 CC=$lt_compiler
16905
16906 # Is the compiler the GNU compiler?
16907 with_gcc=$GCC
16908
16909 # Compiler flag to turn off builtin functions.
16910 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16911
16912 # Additional compiler flags for building library objects.
16913 pic_flag=$lt_lt_prog_compiler_pic
16914
16915 # How to pass a linker flag through the compiler.
16916 wl=$lt_lt_prog_compiler_wl
16917
16918 # Compiler flag to prevent dynamic linking.
16919 link_static_flag=$lt_lt_prog_compiler_static
16920
16921 # Does compiler simultaneously support -c and -o options?
16922 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16923
16924 # Whether or not to add -lc for building shared libraries.
16925 build_libtool_need_lc=$archive_cmds_need_lc
16926
16927 # Whether or not to disallow shared libs when runtime libs are static.
16928 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16929
16930 # Compiler flag to allow reflexive dlopens.
16931 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16932
16933 # Compiler flag to generate shared objects directly from archives.
16934 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16935
16936 # Whether the compiler copes with passing no objects directly.
16937 compiler_needs_object=$lt_compiler_needs_object
16938
16939 # Create an old-style archive from a shared archive.
16940 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16941
16942 # Create a temporary old-style archive to link instead of a shared archive.
16943 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16944
16945 # Commands used to build a shared archive.
16946 archive_cmds=$lt_archive_cmds
16947 archive_expsym_cmds=$lt_archive_expsym_cmds
16948
16949 # Commands used to build a loadable module if different from building
16950 # a shared archive.
16951 module_cmds=$lt_module_cmds
16952 module_expsym_cmds=$lt_module_expsym_cmds
16953
16954 # Whether we are building with GNU ld or not.
16955 with_gnu_ld=$lt_with_gnu_ld
16956
16957 # Flag that allows shared libraries with undefined symbols to be built.
16958 allow_undefined_flag=$lt_allow_undefined_flag
16959
16960 # Flag that enforces no undefined symbols.
16961 no_undefined_flag=$lt_no_undefined_flag
16962
16963 # Flag to hardcode \$libdir into a binary during linking.
16964 # This must work even if \$libdir does not exist
16965 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16966
16967 # Whether we need a single "-rpath" flag with a separated argument.
16968 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16969
16970 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16971 # DIR into the resulting binary.
16972 hardcode_direct=$hardcode_direct
16973
16974 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16975 # DIR into the resulting binary and the resulting library dependency is
16976 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16977 # library is relocated.
16978 hardcode_direct_absolute=$hardcode_direct_absolute
16979
16980 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16981 # into the resulting binary.
16982 hardcode_minus_L=$hardcode_minus_L
16983
16984 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16985 # into the resulting binary.
16986 hardcode_shlibpath_var=$hardcode_shlibpath_var
16987
16988 # Set to "yes" if building a shared library automatically hardcodes DIR
16989 # into the library and all subsequent libraries and executables linked
16990 # against it.
16991 hardcode_automatic=$hardcode_automatic
16992
16993 # Set to yes if linker adds runtime paths of dependent libraries
16994 # to runtime path list.
16995 inherit_rpath=$inherit_rpath
16996
16997 # Whether libtool must link a program against all its dependency libraries.
16998 link_all_deplibs=$link_all_deplibs
16999
17000 # Set to "yes" if exported symbols are required.
17001 always_export_symbols=$always_export_symbols
17002
17003 # The commands to list exported symbols.
17004 export_symbols_cmds=$lt_export_symbols_cmds
17005
17006 # Symbols that should not be listed in the preloaded symbols.
17007 exclude_expsyms=$lt_exclude_expsyms
17008
17009 # Symbols that must always be exported.
17010 include_expsyms=$lt_include_expsyms
17011
17012 # Commands necessary for linking programs (against libraries) with templates.
17013 prelink_cmds=$lt_prelink_cmds
17014
17015 # Commands necessary for finishing linking programs.
17016 postlink_cmds=$lt_postlink_cmds
17017
17018 # Specify filename containing input files.
17019 file_list_spec=$lt_file_list_spec
17020
17021 # How to hardcode a shared library path into an executable.
17022 hardcode_action=$hardcode_action
17023
17024 # ### END LIBTOOL CONFIG
17025
17026 _LT_EOF
17027
17028   case $host_os in
17029   aix3*)
17030     cat <<\_LT_EOF >> "$cfgfile"
17031 # AIX sometimes has problems with the GCC collect2 program.  For some
17032 # reason, if we set the COLLECT_NAMES environment variable, the problems
17033 # vanish in a puff of smoke.
17034 if test "X${COLLECT_NAMES+set}" != Xset; then
17035   COLLECT_NAMES=
17036   export COLLECT_NAMES
17037 fi
17038 _LT_EOF
17039     ;;
17040   esac
17041
17042
17043 ltmain="$ac_aux_dir/ltmain.sh"
17044
17045
17046   # We use sed instead of cat because bash on DJGPP gets confused if
17047   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17048   # text mode, it properly converts lines to CR/LF.  This bash problem
17049   # is reportedly fixed, but why not run on old versions too?
17050   sed '$q' "$ltmain" >> "$cfgfile" \
17051      || (rm -f "$cfgfile"; exit 1)
17052
17053   if test x"$xsi_shell" = xyes; then
17054   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17055 func_dirname ()\
17056 {\
17057 \    case ${1} in\
17058 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17059 \      *  ) func_dirname_result="${3}" ;;\
17060 \    esac\
17061 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17062   && mv -f "$cfgfile.tmp" "$cfgfile" \
17063     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17064 test 0 -eq $? || _lt_function_replace_fail=:
17065
17066
17067   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17068 func_basename ()\
17069 {\
17070 \    func_basename_result="${1##*/}"\
17071 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17072   && mv -f "$cfgfile.tmp" "$cfgfile" \
17073     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17074 test 0 -eq $? || _lt_function_replace_fail=:
17075
17076
17077   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17078 func_dirname_and_basename ()\
17079 {\
17080 \    case ${1} in\
17081 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17082 \      *  ) func_dirname_result="${3}" ;;\
17083 \    esac\
17084 \    func_basename_result="${1##*/}"\
17085 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17086   && mv -f "$cfgfile.tmp" "$cfgfile" \
17087     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17088 test 0 -eq $? || _lt_function_replace_fail=:
17089
17090
17091   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17092 func_stripname ()\
17093 {\
17094 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17095 \    # positional parameters, so assign one to ordinary parameter first.\
17096 \    func_stripname_result=${3}\
17097 \    func_stripname_result=${func_stripname_result#"${1}"}\
17098 \    func_stripname_result=${func_stripname_result%"${2}"}\
17099 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17100   && mv -f "$cfgfile.tmp" "$cfgfile" \
17101     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17102 test 0 -eq $? || _lt_function_replace_fail=:
17103
17104
17105   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17106 func_split_long_opt ()\
17107 {\
17108 \    func_split_long_opt_name=${1%%=*}\
17109 \    func_split_long_opt_arg=${1#*=}\
17110 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17111   && mv -f "$cfgfile.tmp" "$cfgfile" \
17112     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17113 test 0 -eq $? || _lt_function_replace_fail=:
17114
17115
17116   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17117 func_split_short_opt ()\
17118 {\
17119 \    func_split_short_opt_arg=${1#??}\
17120 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17121 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17122   && mv -f "$cfgfile.tmp" "$cfgfile" \
17123     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17124 test 0 -eq $? || _lt_function_replace_fail=:
17125
17126
17127   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17128 func_lo2o ()\
17129 {\
17130 \    case ${1} in\
17131 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17132 \      *)    func_lo2o_result=${1} ;;\
17133 \    esac\
17134 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17135   && mv -f "$cfgfile.tmp" "$cfgfile" \
17136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17137 test 0 -eq $? || _lt_function_replace_fail=:
17138
17139
17140   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17141 func_xform ()\
17142 {\
17143     func_xform_result=${1%.*}.lo\
17144 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17145   && mv -f "$cfgfile.tmp" "$cfgfile" \
17146     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17147 test 0 -eq $? || _lt_function_replace_fail=:
17148
17149
17150   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17151 func_arith ()\
17152 {\
17153     func_arith_result=$(( $* ))\
17154 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17155   && mv -f "$cfgfile.tmp" "$cfgfile" \
17156     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17157 test 0 -eq $? || _lt_function_replace_fail=:
17158
17159
17160   sed -e '/^func_len ()$/,/^} # func_len /c\
17161 func_len ()\
17162 {\
17163     func_len_result=${#1}\
17164 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17165   && mv -f "$cfgfile.tmp" "$cfgfile" \
17166     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17167 test 0 -eq $? || _lt_function_replace_fail=:
17168
17169 fi
17170
17171 if test x"$lt_shell_append" = xyes; then
17172   sed -e '/^func_append ()$/,/^} # func_append /c\
17173 func_append ()\
17174 {\
17175     eval "${1}+=\\${2}"\
17176 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17177   && mv -f "$cfgfile.tmp" "$cfgfile" \
17178     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17179 test 0 -eq $? || _lt_function_replace_fail=:
17180
17181
17182   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17183 func_append_quoted ()\
17184 {\
17185 \    func_quote_for_eval "${2}"\
17186 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17187 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17188   && mv -f "$cfgfile.tmp" "$cfgfile" \
17189     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17190 test 0 -eq $? || _lt_function_replace_fail=:
17191
17192
17193   # Save a `func_append' function call where possible by direct use of '+='
17194   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17195     && mv -f "$cfgfile.tmp" "$cfgfile" \
17196       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17197   test 0 -eq $? || _lt_function_replace_fail=:
17198 else
17199   # Save a `func_append' function call even when '+=' is not available
17200   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17201     && mv -f "$cfgfile.tmp" "$cfgfile" \
17202       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17203   test 0 -eq $? || _lt_function_replace_fail=:
17204 fi
17205
17206 if test x"$_lt_function_replace_fail" = x":"; then
17207   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17208 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17209 fi
17210
17211
17212    mv -f "$cfgfile" "$ofile" ||
17213     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17214   chmod +x "$ofile"
17215
17216  ;;
17217
17218   esac
17219 done # for ac_tag
17220
17221
17222 as_fn_exit 0
17223 _ACEOF
17224 ac_clean_files=$ac_clean_files_save
17225
17226 test $ac_write_fail = 0 ||
17227   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17228
17229
17230 # configure is writing to config.log, and then calls config.status.
17231 # config.status does its own redirection, appending to config.log.
17232 # Unfortunately, on DOS this fails, as config.log is still kept open
17233 # by configure, so config.status won't be able to write to it; its
17234 # output is simply discarded.  So we exec the FD to /dev/null,
17235 # effectively closing config.log, so it can be properly (re)opened and
17236 # appended to by config.status.  When coming back to configure, we
17237 # need to make the FD available again.
17238 if test "$no_create" != yes; then
17239   ac_cs_success=:
17240   ac_config_status_args=
17241   test "$silent" = yes &&
17242     ac_config_status_args="$ac_config_status_args --quiet"
17243   exec 5>/dev/null
17244   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17245   exec 5>>config.log
17246   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17247   # would make configure fail if this is the last instruction.
17248   $ac_cs_success || as_fn_exit 1
17249 fi
17250 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17251   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17252 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17253 fi
17254