Imported Upstream version 1.49.1
[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.49.1.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-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=gobject-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.49.1'
595 PACKAGE_STRING='gobject-introspection 1.49.1'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-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 GI_HIDDEN_VISIBILITY_CFLAGS
640 GLIBSRC
641 WITH_GLIBSRC_FALSE
642 WITH_GLIBSRC_TRUE
643 BUILD_DOCTOOL_FALSE
644 BUILD_DOCTOOL_TRUE
645 PYTHON_LIBS
646 PYTHON_INCLUDES
647 pkgpyexecdir
648 pyexecdir
649 pkgpythondir
650 pythondir
651 PYTHON_PLATFORM
652 PYTHON_EXEC_PREFIX
653 PYTHON_PREFIX
654 PYTHON_VERSION
655 PYTHON
656 LIBOBJS
657 POW_LIB
658 GTK_DOC_USE_REBASE_FALSE
659 GTK_DOC_USE_REBASE_TRUE
660 GTK_DOC_USE_LIBTOOL_FALSE
661 GTK_DOC_USE_LIBTOOL_TRUE
662 GTK_DOC_BUILD_PDF_FALSE
663 GTK_DOC_BUILD_PDF_TRUE
664 GTK_DOC_BUILD_HTML_FALSE
665 GTK_DOC_BUILD_HTML_TRUE
666 ENABLE_GTK_DOC_FALSE
667 ENABLE_GTK_DOC_TRUE
668 HAVE_GTK_DOC_FALSE
669 HAVE_GTK_DOC_TRUE
670 GTKDOC_DEPS_LIBS
671 GTKDOC_DEPS_CFLAGS
672 HTML_DIR
673 GTKDOC_MKPDF
674 GTKDOC_REBASE
675 GTKDOC_CHECK_PATH
676 GTKDOC_CHECK
677 GIREPO_LIBS
678 GIREPO_CFLAGS
679 FFI_PC_PACKAGES
680 FFI_PC_LIBS
681 FFI_PC_CFLAGS
682 FFI_LIBS
683 FFI_CFLAGS
684 SCANNER_LIBS
685 SCANNER_CFLAGS
686 CAIRO_GIR_PACKAGE
687 CAIRO_SHARED_LIBRARY
688 HAVE_CAIRO_FALSE
689 HAVE_CAIRO_TRUE
690 CAIRO_LIBS
691 CAIRO_CFLAGS
692 HAVE_GIO_UNIX_FALSE
693 HAVE_GIO_UNIX_TRUE
694 GIO_UNIX_LIBS
695 GIO_UNIX_CFLAGS
696 GIO_LIBS
697 GIO_CFLAGS
698 GMODULE_LIBS
699 GMODULE_CFLAGS
700 GOBJECT_LIBS
701 GOBJECT_CFLAGS
702 GLIB_LIBS
703 GLIB_CFLAGS
704 GIR_DIR
705 GIR_SUFFIX
706 GOBJECT_INTROSPECTION_LIBDIR
707 EXPANDED_DATADIR
708 EXPANDED_LIBEXECDIR
709 EXPANDED_LIBDIR
710 EXPANDED_BINDIR
711 EXPANDED_SYSCONFDIR
712 EXPANDED_LOCALSTATEDIR
713 YACC
714 LEXLIB
715 LEX_OUTPUT_ROOT
716 LEX
717 PKG_CONFIG_LIBDIR
718 PKG_CONFIG_PATH
719 PKG_CONFIG
720 CPP
721 LT_SYS_LIBRARY_PATH
722 OTOOL64
723 OTOOL
724 LIPO
725 NMEDIT
726 DSYMUTIL
727 MANIFEST_TOOL
728 RANLIB
729 ac_ct_AR
730 AR
731 DLLTOOL
732 OBJDUMP
733 LN_S
734 NM
735 ac_ct_DUMPBIN
736 DUMPBIN
737 LD
738 FGREP
739 EGREP
740 GREP
741 SED
742 LIBTOOL
743 am__fastdepCC_FALSE
744 am__fastdepCC_TRUE
745 CCDEPMODE
746 am__nodep
747 AMDEPBACKSLASH
748 AMDEP_FALSE
749 AMDEP_TRUE
750 am__quote
751 am__include
752 DEPDIR
753 OBJEXT
754 EXEEXT
755 ac_ct_CC
756 CPPFLAGS
757 LDFLAGS
758 CFLAGS
759 CC
760 OS_WIN32_FALSE
761 OS_WIN32_TRUE
762 host_os
763 host_vendor
764 host_cpu
765 host
766 build_os
767 build_vendor
768 build_cpu
769 build
770 GI_VERSION
771 MAINT
772 MAINTAINER_MODE_FALSE
773 MAINTAINER_MODE_TRUE
774 AM_BACKSLASH
775 AM_DEFAULT_VERBOSITY
776 AM_DEFAULT_V
777 AM_V
778 am__untar
779 am__tar
780 AMTAR
781 am__leading_dot
782 SET_MAKE
783 AWK
784 mkdir_p
785 MKDIR_P
786 INSTALL_STRIP_PROGRAM
787 STRIP
788 install_sh
789 MAKEINFO
790 AUTOHEADER
791 AUTOMAKE
792 AUTOCONF
793 ACLOCAL
794 VERSION
795 PACKAGE
796 CYGPATH_W
797 am__isrc
798 INSTALL_DATA
799 INSTALL_SCRIPT
800 INSTALL_PROGRAM
801 target_alias
802 host_alias
803 build_alias
804 LIBS
805 ECHO_T
806 ECHO_N
807 ECHO_C
808 DEFS
809 mandir
810 localedir
811 libdir
812 psdir
813 pdfdir
814 dvidir
815 htmldir
816 infodir
817 docdir
818 oldincludedir
819 includedir
820 localstatedir
821 sharedstatedir
822 sysconfdir
823 datadir
824 datarootdir
825 libexecdir
826 sbindir
827 bindir
828 program_transform_name
829 prefix
830 exec_prefix
831 PACKAGE_URL
832 PACKAGE_BUGREPORT
833 PACKAGE_STRING
834 PACKAGE_VERSION
835 PACKAGE_TARNAME
836 PACKAGE_NAME
837 PATH_SEPARATOR
838 SHELL'
839 ac_subst_files=''
840 ac_user_opts='
841 enable_option_checking
842 enable_silent_rules
843 enable_maintainer_mode
844 enable_dependency_tracking
845 enable_shared
846 enable_static
847 with_pic
848 enable_fast_install
849 with_aix_soname
850 with_gnu_ld
851 with_sysroot
852 enable_libtool_lock
853 with_cairo
854 with_html_dir
855 enable_gtk_doc
856 enable_gtk_doc_html
857 enable_gtk_doc_pdf
858 with_python
859 enable_doctool
860 with_glib_src
861 enable_Bsymbolic
862 '
863       ac_precious_vars='build_alias
864 host_alias
865 target_alias
866 CC
867 CFLAGS
868 LDFLAGS
869 LIBS
870 CPPFLAGS
871 LT_SYS_LIBRARY_PATH
872 CPP
873 PKG_CONFIG
874 PKG_CONFIG_PATH
875 PKG_CONFIG_LIBDIR
876 GLIB_CFLAGS
877 GLIB_LIBS
878 GOBJECT_CFLAGS
879 GOBJECT_LIBS
880 GMODULE_CFLAGS
881 GMODULE_LIBS
882 GIO_CFLAGS
883 GIO_LIBS
884 GIO_UNIX_CFLAGS
885 GIO_UNIX_LIBS
886 CAIRO_CFLAGS
887 CAIRO_LIBS
888 SCANNER_CFLAGS
889 SCANNER_LIBS
890 FFI_CFLAGS
891 FFI_LIBS
892 GIREPO_CFLAGS
893 GIREPO_LIBS
894 GTKDOC_DEPS_CFLAGS
895 GTKDOC_DEPS_LIBS
896 PYTHON'
897
898
899 # Initialize some variables set by options.
900 ac_init_help=
901 ac_init_version=false
902 ac_unrecognized_opts=
903 ac_unrecognized_sep=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
906 cache_file=/dev/null
907 exec_prefix=NONE
908 no_create=
909 no_recursion=
910 prefix=NONE
911 program_prefix=NONE
912 program_suffix=NONE
913 program_transform_name=s,x,x,
914 silent=
915 site=
916 srcdir=
917 verbose=
918 x_includes=NONE
919 x_libraries=NONE
920
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir='${exec_prefix}/bin'
928 sbindir='${exec_prefix}/sbin'
929 libexecdir='${exec_prefix}/libexec'
930 datarootdir='${prefix}/share'
931 datadir='${datarootdir}'
932 sysconfdir='${prefix}/etc'
933 sharedstatedir='${prefix}/com'
934 localstatedir='${prefix}/var'
935 includedir='${prefix}/include'
936 oldincludedir='/usr/include'
937 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
938 infodir='${datarootdir}/info'
939 htmldir='${docdir}'
940 dvidir='${docdir}'
941 pdfdir='${docdir}'
942 psdir='${docdir}'
943 libdir='${exec_prefix}/lib'
944 localedir='${datarootdir}/locale'
945 mandir='${datarootdir}/man'
946
947 ac_prev=
948 ac_dashdash=
949 for ac_option
950 do
951   # If the previous option needs an argument, assign it.
952   if test -n "$ac_prev"; then
953     eval $ac_prev=\$ac_option
954     ac_prev=
955     continue
956   fi
957
958   case $ac_option in
959   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960   *=)   ac_optarg= ;;
961   *)    ac_optarg=yes ;;
962   esac
963
964   # Accept the important Cygnus configure options, so we can diagnose typos.
965
966   case $ac_dashdash$ac_option in
967   --)
968     ac_dashdash=yes ;;
969
970   -bindir | --bindir | --bindi | --bind | --bin | --bi)
971     ac_prev=bindir ;;
972   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
973     bindir=$ac_optarg ;;
974
975   -build | --build | --buil | --bui | --bu)
976     ac_prev=build_alias ;;
977   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
978     build_alias=$ac_optarg ;;
979
980   -cache-file | --cache-file | --cache-fil | --cache-fi \
981   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
982     ac_prev=cache_file ;;
983   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
984   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
985     cache_file=$ac_optarg ;;
986
987   --config-cache | -C)
988     cache_file=config.cache ;;
989
990   -datadir | --datadir | --datadi | --datad)
991     ac_prev=datadir ;;
992   -datadir=* | --datadir=* | --datadi=* | --datad=*)
993     datadir=$ac_optarg ;;
994
995   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
996   | --dataroo | --dataro | --datar)
997     ac_prev=datarootdir ;;
998   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
999   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1000     datarootdir=$ac_optarg ;;
1001
1002   -disable-* | --disable-*)
1003     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1004     # Reject names that are not valid shell variable names.
1005     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006       as_fn_error $? "invalid feature name: $ac_useropt"
1007     ac_useropt_orig=$ac_useropt
1008     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009     case $ac_user_opts in
1010       *"
1011 "enable_$ac_useropt"
1012 "*) ;;
1013       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1014          ac_unrecognized_sep=', ';;
1015     esac
1016     eval enable_$ac_useropt=no ;;
1017
1018   -docdir | --docdir | --docdi | --doc | --do)
1019     ac_prev=docdir ;;
1020   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1021     docdir=$ac_optarg ;;
1022
1023   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024     ac_prev=dvidir ;;
1025   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1026     dvidir=$ac_optarg ;;
1027
1028   -enable-* | --enable-*)
1029     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1030     # Reject names that are not valid shell variable names.
1031     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032       as_fn_error $? "invalid feature name: $ac_useropt"
1033     ac_useropt_orig=$ac_useropt
1034     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035     case $ac_user_opts in
1036       *"
1037 "enable_$ac_useropt"
1038 "*) ;;
1039       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1040          ac_unrecognized_sep=', ';;
1041     esac
1042     eval enable_$ac_useropt=\$ac_optarg ;;
1043
1044   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1045   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1046   | --exec | --exe | --ex)
1047     ac_prev=exec_prefix ;;
1048   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1049   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1050   | --exec=* | --exe=* | --ex=*)
1051     exec_prefix=$ac_optarg ;;
1052
1053   -gas | --gas | --ga | --g)
1054     # Obsolete; use --with-gas.
1055     with_gas=yes ;;
1056
1057   -help | --help | --hel | --he | -h)
1058     ac_init_help=long ;;
1059   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1060     ac_init_help=recursive ;;
1061   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1062     ac_init_help=short ;;
1063
1064   -host | --host | --hos | --ho)
1065     ac_prev=host_alias ;;
1066   -host=* | --host=* | --hos=* | --ho=*)
1067     host_alias=$ac_optarg ;;
1068
1069   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1070     ac_prev=htmldir ;;
1071   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1072   | --ht=*)
1073     htmldir=$ac_optarg ;;
1074
1075   -includedir | --includedir | --includedi | --included | --include \
1076   | --includ | --inclu | --incl | --inc)
1077     ac_prev=includedir ;;
1078   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1079   | --includ=* | --inclu=* | --incl=* | --inc=*)
1080     includedir=$ac_optarg ;;
1081
1082   -infodir | --infodir | --infodi | --infod | --info | --inf)
1083     ac_prev=infodir ;;
1084   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1085     infodir=$ac_optarg ;;
1086
1087   -libdir | --libdir | --libdi | --libd)
1088     ac_prev=libdir ;;
1089   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1090     libdir=$ac_optarg ;;
1091
1092   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1093   | --libexe | --libex | --libe)
1094     ac_prev=libexecdir ;;
1095   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1096   | --libexe=* | --libex=* | --libe=*)
1097     libexecdir=$ac_optarg ;;
1098
1099   -localedir | --localedir | --localedi | --localed | --locale)
1100     ac_prev=localedir ;;
1101   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1102     localedir=$ac_optarg ;;
1103
1104   -localstatedir | --localstatedir | --localstatedi | --localstated \
1105   | --localstate | --localstat | --localsta | --localst | --locals)
1106     ac_prev=localstatedir ;;
1107   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1108   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1109     localstatedir=$ac_optarg ;;
1110
1111   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1112     ac_prev=mandir ;;
1113   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1114     mandir=$ac_optarg ;;
1115
1116   -nfp | --nfp | --nf)
1117     # Obsolete; use --without-fp.
1118     with_fp=no ;;
1119
1120   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1121   | --no-cr | --no-c | -n)
1122     no_create=yes ;;
1123
1124   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1125   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1126     no_recursion=yes ;;
1127
1128   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1129   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1130   | --oldin | --oldi | --old | --ol | --o)
1131     ac_prev=oldincludedir ;;
1132   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1133   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1134   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1135     oldincludedir=$ac_optarg ;;
1136
1137   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1138     ac_prev=prefix ;;
1139   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1140     prefix=$ac_optarg ;;
1141
1142   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1143   | --program-pre | --program-pr | --program-p)
1144     ac_prev=program_prefix ;;
1145   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1146   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1147     program_prefix=$ac_optarg ;;
1148
1149   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1150   | --program-suf | --program-su | --program-s)
1151     ac_prev=program_suffix ;;
1152   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1153   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1154     program_suffix=$ac_optarg ;;
1155
1156   -program-transform-name | --program-transform-name \
1157   | --program-transform-nam | --program-transform-na \
1158   | --program-transform-n | --program-transform- \
1159   | --program-transform | --program-transfor \
1160   | --program-transfo | --program-transf \
1161   | --program-trans | --program-tran \
1162   | --progr-tra | --program-tr | --program-t)
1163     ac_prev=program_transform_name ;;
1164   -program-transform-name=* | --program-transform-name=* \
1165   | --program-transform-nam=* | --program-transform-na=* \
1166   | --program-transform-n=* | --program-transform-=* \
1167   | --program-transform=* | --program-transfor=* \
1168   | --program-transfo=* | --program-transf=* \
1169   | --program-trans=* | --program-tran=* \
1170   | --progr-tra=* | --program-tr=* | --program-t=*)
1171     program_transform_name=$ac_optarg ;;
1172
1173   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1174     ac_prev=pdfdir ;;
1175   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1176     pdfdir=$ac_optarg ;;
1177
1178   -psdir | --psdir | --psdi | --psd | --ps)
1179     ac_prev=psdir ;;
1180   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1181     psdir=$ac_optarg ;;
1182
1183   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1184   | -silent | --silent | --silen | --sile | --sil)
1185     silent=yes ;;
1186
1187   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1188     ac_prev=sbindir ;;
1189   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1190   | --sbi=* | --sb=*)
1191     sbindir=$ac_optarg ;;
1192
1193   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1194   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1195   | --sharedst | --shareds | --shared | --share | --shar \
1196   | --sha | --sh)
1197     ac_prev=sharedstatedir ;;
1198   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1199   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1200   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1201   | --sha=* | --sh=*)
1202     sharedstatedir=$ac_optarg ;;
1203
1204   -site | --site | --sit)
1205     ac_prev=site ;;
1206   -site=* | --site=* | --sit=*)
1207     site=$ac_optarg ;;
1208
1209   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1210     ac_prev=srcdir ;;
1211   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1212     srcdir=$ac_optarg ;;
1213
1214   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1215   | --syscon | --sysco | --sysc | --sys | --sy)
1216     ac_prev=sysconfdir ;;
1217   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1218   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1219     sysconfdir=$ac_optarg ;;
1220
1221   -target | --target | --targe | --targ | --tar | --ta | --t)
1222     ac_prev=target_alias ;;
1223   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1224     target_alias=$ac_optarg ;;
1225
1226   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1227     verbose=yes ;;
1228
1229   -version | --version | --versio | --versi | --vers | -V)
1230     ac_init_version=: ;;
1231
1232   -with-* | --with-*)
1233     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236       as_fn_error $? "invalid package name: $ac_useropt"
1237     ac_useropt_orig=$ac_useropt
1238     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239     case $ac_user_opts in
1240       *"
1241 "with_$ac_useropt"
1242 "*) ;;
1243       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1244          ac_unrecognized_sep=', ';;
1245     esac
1246     eval with_$ac_useropt=\$ac_optarg ;;
1247
1248   -without-* | --without-*)
1249     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1250     # Reject names that are not valid shell variable names.
1251     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1252       as_fn_error $? "invalid package name: $ac_useropt"
1253     ac_useropt_orig=$ac_useropt
1254     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1255     case $ac_user_opts in
1256       *"
1257 "with_$ac_useropt"
1258 "*) ;;
1259       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1260          ac_unrecognized_sep=', ';;
1261     esac
1262     eval with_$ac_useropt=no ;;
1263
1264   --x)
1265     # Obsolete; use --with-x.
1266     with_x=yes ;;
1267
1268   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1269   | --x-incl | --x-inc | --x-in | --x-i)
1270     ac_prev=x_includes ;;
1271   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1272   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1273     x_includes=$ac_optarg ;;
1274
1275   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1276   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1277     ac_prev=x_libraries ;;
1278   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1279   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1280     x_libraries=$ac_optarg ;;
1281
1282   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1283 Try \`$0 --help' for more information"
1284     ;;
1285
1286   *=*)
1287     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1288     # Reject names that are not valid shell variable names.
1289     case $ac_envvar in #(
1290       '' | [0-9]* | *[!_$as_cr_alnum]* )
1291       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1292     esac
1293     eval $ac_envvar=\$ac_optarg
1294     export $ac_envvar ;;
1295
1296   *)
1297     # FIXME: should be removed in autoconf 3.0.
1298     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1299     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1300       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1301     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1302     ;;
1303
1304   esac
1305 done
1306
1307 if test -n "$ac_prev"; then
1308   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1309   as_fn_error $? "missing argument to $ac_option"
1310 fi
1311
1312 if test -n "$ac_unrecognized_opts"; then
1313   case $enable_option_checking in
1314     no) ;;
1315     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1316     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1317   esac
1318 fi
1319
1320 # Check all directory arguments for consistency.
1321 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1322                 datadir sysconfdir sharedstatedir localstatedir includedir \
1323                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1324                 libdir localedir mandir
1325 do
1326   eval ac_val=\$$ac_var
1327   # Remove trailing slashes.
1328   case $ac_val in
1329     */ )
1330       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1331       eval $ac_var=\$ac_val;;
1332   esac
1333   # Be sure to have absolute directory names.
1334   case $ac_val in
1335     [\\/$]* | ?:[\\/]* )  continue;;
1336     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1337   esac
1338   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1339 done
1340
1341 # There might be people who depend on the old broken behavior: `$host'
1342 # used to hold the argument of --host etc.
1343 # FIXME: To remove some day.
1344 build=$build_alias
1345 host=$host_alias
1346 target=$target_alias
1347
1348 # FIXME: To remove some day.
1349 if test "x$host_alias" != x; then
1350   if test "x$build_alias" = x; then
1351     cross_compiling=maybe
1352   elif test "x$build_alias" != "x$host_alias"; then
1353     cross_compiling=yes
1354   fi
1355 fi
1356
1357 ac_tool_prefix=
1358 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1359
1360 test "$silent" = yes && exec 6>/dev/null
1361
1362
1363 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1364 ac_ls_di=`ls -di .` &&
1365 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1366   as_fn_error $? "working directory cannot be determined"
1367 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1368   as_fn_error $? "pwd does not report name of working directory"
1369
1370
1371 # Find the source files, if location was not specified.
1372 if test -z "$srcdir"; then
1373   ac_srcdir_defaulted=yes
1374   # Try the directory containing this script, then the parent directory.
1375   ac_confdir=`$as_dirname -- "$as_myself" ||
1376 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1377          X"$as_myself" : 'X\(//\)[^/]' \| \
1378          X"$as_myself" : 'X\(//\)$' \| \
1379          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1380 $as_echo X"$as_myself" |
1381     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1382             s//\1/
1383             q
1384           }
1385           /^X\(\/\/\)[^/].*/{
1386             s//\1/
1387             q
1388           }
1389           /^X\(\/\/\)$/{
1390             s//\1/
1391             q
1392           }
1393           /^X\(\/\).*/{
1394             s//\1/
1395             q
1396           }
1397           s/.*/./; q'`
1398   srcdir=$ac_confdir
1399   if test ! -r "$srcdir/$ac_unique_file"; then
1400     srcdir=..
1401   fi
1402 else
1403   ac_srcdir_defaulted=no
1404 fi
1405 if test ! -r "$srcdir/$ac_unique_file"; then
1406   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1407   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1408 fi
1409 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1410 ac_abs_confdir=`(
1411         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1412         pwd)`
1413 # When building in place, set srcdir=.
1414 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415   srcdir=.
1416 fi
1417 # Remove unnecessary trailing slashes from srcdir.
1418 # Double slashes in file names in object file debugging info
1419 # mess up M-x gdb in Emacs.
1420 case $srcdir in
1421 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1422 esac
1423 for ac_var in $ac_precious_vars; do
1424   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1425   eval ac_env_${ac_var}_value=\$${ac_var}
1426   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1427   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1428 done
1429
1430 #
1431 # Report the --help message.
1432 #
1433 if test "$ac_init_help" = "long"; then
1434   # Omit some internal or obsolete options to make the list less imposing.
1435   # This message is too long to be a string in the A/UX 3.1 sh.
1436   cat <<_ACEOF
1437 \`configure' configures gobject-introspection 1.49.1 to adapt to many kinds of systems.
1438
1439 Usage: $0 [OPTION]... [VAR=VALUE]...
1440
1441 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1442 VAR=VALUE.  See below for descriptions of some of the useful variables.
1443
1444 Defaults for the options are specified in brackets.
1445
1446 Configuration:
1447   -h, --help              display this help and exit
1448       --help=short        display options specific to this package
1449       --help=recursive    display the short help of all the included packages
1450   -V, --version           display version information and exit
1451   -q, --quiet, --silent   do not print \`checking ...' messages
1452       --cache-file=FILE   cache test results in FILE [disabled]
1453   -C, --config-cache      alias for \`--cache-file=config.cache'
1454   -n, --no-create         do not create output files
1455       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1456
1457 Installation directories:
1458   --prefix=PREFIX         install architecture-independent files in PREFIX
1459                           [$ac_default_prefix]
1460   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1461                           [PREFIX]
1462
1463 By default, \`make install' will install all the files in
1464 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1465 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1466 for instance \`--prefix=\$HOME'.
1467
1468 For better control, use the options below.
1469
1470 Fine tuning of the installation directories:
1471   --bindir=DIR            user executables [EPREFIX/bin]
1472   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1473   --libexecdir=DIR        program executables [EPREFIX/libexec]
1474   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1475   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1476   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1477   --libdir=DIR            object code libraries [EPREFIX/lib]
1478   --includedir=DIR        C header files [PREFIX/include]
1479   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1480   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1481   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1482   --infodir=DIR           info documentation [DATAROOTDIR/info]
1483   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1484   --mandir=DIR            man documentation [DATAROOTDIR/man]
1485   --docdir=DIR            documentation root
1486                           [DATAROOTDIR/doc/gobject-introspection]
1487   --htmldir=DIR           html documentation [DOCDIR]
1488   --dvidir=DIR            dvi documentation [DOCDIR]
1489   --pdfdir=DIR            pdf documentation [DOCDIR]
1490   --psdir=DIR             ps documentation [DOCDIR]
1491 _ACEOF
1492
1493   cat <<\_ACEOF
1494
1495 Program names:
1496   --program-prefix=PREFIX            prepend PREFIX to installed program names
1497   --program-suffix=SUFFIX            append SUFFIX to installed program names
1498   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1499
1500 System types:
1501   --build=BUILD     configure for building on BUILD [guessed]
1502   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1503 _ACEOF
1504 fi
1505
1506 if test -n "$ac_init_help"; then
1507   case $ac_init_help in
1508      short | recursive ) echo "Configuration of gobject-introspection 1.49.1:";;
1509    esac
1510   cat <<\_ACEOF
1511
1512 Optional Features:
1513   --disable-option-checking  ignore unrecognized --enable/--with options
1514   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1515   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1516   --enable-silent-rules   less verbose build output (undo: "make V=1")
1517   --disable-silent-rules  verbose build output (undo: "make V=0")
1518   --disable-maintainer-mode
1519                           disable make rules and dependencies not useful (and
1520                           sometimes confusing) to the casual installer
1521   --enable-dependency-tracking
1522                           do not reject slow dependency extractors
1523   --disable-dependency-tracking
1524                           speeds up one-time build
1525   --enable-shared[=PKGS]  build shared libraries [default=yes]
1526   --enable-static[=PKGS]  build static libraries [default=yes]
1527   --enable-fast-install[=PKGS]
1528                           optimize for fast installation [default=yes]
1529   --disable-libtool-lock  avoid locking (might break parallel builds)
1530   --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1531   --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1532   --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1533   --disable-doctool           disable g-ir-doc-tool
1534   --disable-Bsymbolic     avoid linking with -Bsymbolic
1535
1536 Optional Packages:
1537   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1538   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1539   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1540                           both]
1541   --with-aix-soname=aix|svr4|both
1542                           shared library versioning (aka "SONAME") variant to
1543                           provide on AIX, [default=aix].
1544   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1545   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1546                           compiler's sysroot if not specified).
1547   --with-cairo            Use cairo [default=maybe]
1548   --with-html-dir=PATH    path to installed docs
1549   --with-python=PATH      Path to Python interpreter; searches $PATH if only a
1550                           program name is given; if not given, searches for a
1551                           few standard names such as "python3" or "python2"
1552   --with-glib-src=PATH    Source directory for glib - needed to add docs to gir
1553
1554 Some influential environment variables:
1555   CC          C compiler command
1556   CFLAGS      C compiler flags
1557   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1558               nonstandard directory <lib dir>
1559   LIBS        libraries to pass to the linker, e.g. -l<library>
1560   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561               you have headers in a nonstandard directory <include dir>
1562   LT_SYS_LIBRARY_PATH
1563               User-defined run-time library search path.
1564   CPP         C preprocessor
1565   PKG_CONFIG  path to pkg-config utility
1566   PKG_CONFIG_PATH
1567               directories to add to pkg-config's search path
1568   PKG_CONFIG_LIBDIR
1569               path overriding pkg-config's built-in search path
1570   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1571   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1572   GOBJECT_CFLAGS
1573               C compiler flags for GOBJECT, overriding pkg-config
1574   GOBJECT_LIBS
1575               linker flags for GOBJECT, overriding pkg-config
1576   GMODULE_CFLAGS
1577               C compiler flags for GMODULE, overriding pkg-config
1578   GMODULE_LIBS
1579               linker flags for GMODULE, overriding pkg-config
1580   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1581   GIO_LIBS    linker flags for GIO, overriding pkg-config
1582   GIO_UNIX_CFLAGS
1583               C compiler flags for GIO_UNIX, overriding pkg-config
1584   GIO_UNIX_LIBS
1585               linker flags for GIO_UNIX, overriding pkg-config
1586   CAIRO_CFLAGS
1587               C compiler flags for CAIRO, overriding pkg-config
1588   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1589   SCANNER_CFLAGS
1590               C compiler flags for SCANNER, overriding pkg-config
1591   SCANNER_LIBS
1592               linker flags for SCANNER, overriding pkg-config
1593   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1594   FFI_LIBS    linker flags for FFI, overriding pkg-config
1595   GIREPO_CFLAGS
1596               C compiler flags for GIREPO, overriding pkg-config
1597   GIREPO_LIBS linker flags for GIREPO, overriding pkg-config
1598   GTKDOC_DEPS_CFLAGS
1599               C compiler flags for GTKDOC_DEPS, overriding pkg-config
1600   GTKDOC_DEPS_LIBS
1601               linker flags for GTKDOC_DEPS, overriding pkg-config
1602   PYTHON      the Python interpreter
1603
1604 Use these variables to override the choices made by `configure' or to help
1605 it to find libraries and programs with nonstandard names/locations.
1606
1607 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection>.
1608 _ACEOF
1609 ac_status=$?
1610 fi
1611
1612 if test "$ac_init_help" = "recursive"; then
1613   # If there are subdirs, report their specific --help.
1614   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1615     test -d "$ac_dir" ||
1616       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1617       continue
1618     ac_builddir=.
1619
1620 case "$ac_dir" in
1621 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *)
1623   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1624   # A ".." for each directory in $ac_dir_suffix.
1625   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1626   case $ac_top_builddir_sub in
1627   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1628   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1629   esac ;;
1630 esac
1631 ac_abs_top_builddir=$ac_pwd
1632 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1633 # for backward compatibility:
1634 ac_top_builddir=$ac_top_build_prefix
1635
1636 case $srcdir in
1637   .)  # We are building in place.
1638     ac_srcdir=.
1639     ac_top_srcdir=$ac_top_builddir_sub
1640     ac_abs_top_srcdir=$ac_pwd ;;
1641   [\\/]* | ?:[\\/]* )  # Absolute name.
1642     ac_srcdir=$srcdir$ac_dir_suffix;
1643     ac_top_srcdir=$srcdir
1644     ac_abs_top_srcdir=$srcdir ;;
1645   *) # Relative name.
1646     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1647     ac_top_srcdir=$ac_top_build_prefix$srcdir
1648     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1649 esac
1650 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1651
1652     cd "$ac_dir" || { ac_status=$?; continue; }
1653     # Check for guested configure.
1654     if test -f "$ac_srcdir/configure.gnu"; then
1655       echo &&
1656       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1657     elif test -f "$ac_srcdir/configure"; then
1658       echo &&
1659       $SHELL "$ac_srcdir/configure" --help=recursive
1660     else
1661       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1662     fi || ac_status=$?
1663     cd "$ac_pwd" || { ac_status=$?; break; }
1664   done
1665 fi
1666
1667 test -n "$ac_init_help" && exit $ac_status
1668 if $ac_init_version; then
1669   cat <<\_ACEOF
1670 gobject-introspection configure 1.49.1
1671 generated by GNU Autoconf 2.69
1672
1673 Copyright (C) 2012 Free Software Foundation, Inc.
1674 This configure script is free software; the Free Software Foundation
1675 gives unlimited permission to copy, distribute and modify it.
1676 _ACEOF
1677   exit
1678 fi
1679
1680 ## ------------------------ ##
1681 ## Autoconf initialization. ##
1682 ## ------------------------ ##
1683
1684 # ac_fn_c_try_compile LINENO
1685 # --------------------------
1686 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1687 ac_fn_c_try_compile ()
1688 {
1689   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1690   rm -f conftest.$ac_objext
1691   if { { ac_try="$ac_compile"
1692 case "(($ac_try" in
1693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694   *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698   (eval "$ac_compile") 2>conftest.err
1699   ac_status=$?
1700   if test -s conftest.err; then
1701     grep -v '^ *+' conftest.err >conftest.er1
1702     cat conftest.er1 >&5
1703     mv -f conftest.er1 conftest.err
1704   fi
1705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706   test $ac_status = 0; } && {
1707          test -z "$ac_c_werror_flag" ||
1708          test ! -s conftest.err
1709        } && test -s conftest.$ac_objext; then :
1710   ac_retval=0
1711 else
1712   $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1714
1715         ac_retval=1
1716 fi
1717   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1718   as_fn_set_status $ac_retval
1719
1720 } # ac_fn_c_try_compile
1721
1722 # ac_fn_c_try_link LINENO
1723 # -----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_link ()
1726 {
1727   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728   rm -f conftest.$ac_objext conftest$ac_exeext
1729   if { { ac_try="$ac_link"
1730 case "(($ac_try" in
1731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732   *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736   (eval "$ac_link") 2>conftest.err
1737   ac_status=$?
1738   if test -s conftest.err; then
1739     grep -v '^ *+' conftest.err >conftest.er1
1740     cat conftest.er1 >&5
1741     mv -f conftest.er1 conftest.err
1742   fi
1743   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744   test $ac_status = 0; } && {
1745          test -z "$ac_c_werror_flag" ||
1746          test ! -s conftest.err
1747        } && test -s conftest$ac_exeext && {
1748          test "$cross_compiling" = yes ||
1749          test -x conftest$ac_exeext
1750        }; then :
1751   ac_retval=0
1752 else
1753   $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.$ac_ext >&5
1755
1756         ac_retval=1
1757 fi
1758   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1759   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1760   # interfere with the next link command; also delete a directory that is
1761   # left behind by Apple's compiler.  We do this before executing the actions.
1762   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1763   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1764   as_fn_set_status $ac_retval
1765
1766 } # ac_fn_c_try_link
1767
1768 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists and can be compiled using the include files in
1771 # INCLUDES, setting the cache variable VAR accordingly.
1772 ac_fn_c_check_header_compile ()
1773 {
1774   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1776 $as_echo_n "checking for $2... " >&6; }
1777 if eval \${$3+:} false; then :
1778   $as_echo_n "(cached) " >&6
1779 else
1780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1781 /* end confdefs.h.  */
1782 $4
1783 #include <$2>
1784 _ACEOF
1785 if ac_fn_c_try_compile "$LINENO"; then :
1786   eval "$3=yes"
1787 else
1788   eval "$3=no"
1789 fi
1790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1791 fi
1792 eval ac_res=\$$3
1793                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794 $as_echo "$ac_res" >&6; }
1795   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796
1797 } # ac_fn_c_check_header_compile
1798
1799 # ac_fn_c_try_cpp LINENO
1800 # ----------------------
1801 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_cpp ()
1803 {
1804   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805   if { { ac_try="$ac_cpp conftest.$ac_ext"
1806 case "(($ac_try" in
1807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808   *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1813   ac_status=$?
1814   if test -s conftest.err; then
1815     grep -v '^ *+' conftest.err >conftest.er1
1816     cat conftest.er1 >&5
1817     mv -f conftest.er1 conftest.err
1818   fi
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } > conftest.i && {
1821          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1822          test ! -s conftest.err
1823        }; then :
1824   ac_retval=0
1825 else
1826   $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829     ac_retval=1
1830 fi
1831   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832   as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_cpp
1835
1836 # ac_fn_c_try_run LINENO
1837 # ----------------------
1838 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1839 # that executables *can* be run.
1840 ac_fn_c_try_run ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   if { { ac_try="$ac_link"
1844 case "(($ac_try" in
1845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846   *) ac_try_echo=$ac_try;;
1847 esac
1848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849 $as_echo "$ac_try_echo"; } >&5
1850   (eval "$ac_link") 2>&5
1851   ac_status=$?
1852   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1854   { { case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_try") 2>&5
1861   ac_status=$?
1862   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863   test $ac_status = 0; }; }; then :
1864   ac_retval=0
1865 else
1866   $as_echo "$as_me: program exited with status $ac_status" >&5
1867        $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.$ac_ext >&5
1869
1870        ac_retval=$ac_status
1871 fi
1872   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1873   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874   as_fn_set_status $ac_retval
1875
1876 } # ac_fn_c_try_run
1877
1878 # ac_fn_c_check_func LINENO FUNC VAR
1879 # ----------------------------------
1880 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1881 ac_fn_c_check_func ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1885 $as_echo_n "checking for $2... " >&6; }
1886 if eval \${$3+:} false; then :
1887   $as_echo_n "(cached) " >&6
1888 else
1889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1890 /* end confdefs.h.  */
1891 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1892    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1893 #define $2 innocuous_$2
1894
1895 /* System header to define __stub macros and hopefully few prototypes,
1896     which can conflict with char $2 (); below.
1897     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1898     <limits.h> exists even on freestanding compilers.  */
1899
1900 #ifdef __STDC__
1901 # include <limits.h>
1902 #else
1903 # include <assert.h>
1904 #endif
1905
1906 #undef $2
1907
1908 /* Override any GCC internal prototype to avoid an error.
1909    Use char because int might match the return type of a GCC
1910    builtin and then its argument prototype would still apply.  */
1911 #ifdef __cplusplus
1912 extern "C"
1913 #endif
1914 char $2 ();
1915 /* The GNU C library defines this for functions which it implements
1916     to always fail with ENOSYS.  Some functions are actually named
1917     something starting with __ and the normal name is an alias.  */
1918 #if defined __stub_$2 || defined __stub___$2
1919 choke me
1920 #endif
1921
1922 int
1923 main ()
1924 {
1925 return $2 ();
1926   ;
1927   return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_link "$LINENO"; then :
1931   eval "$3=yes"
1932 else
1933   eval "$3=no"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext \
1936     conftest$ac_exeext conftest.$ac_ext
1937 fi
1938 eval ac_res=\$$3
1939                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940 $as_echo "$ac_res" >&6; }
1941   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942
1943 } # ac_fn_c_check_func
1944
1945 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1946 # --------------------------------------------
1947 # Tries to find the compile-time value of EXPR in a program that includes
1948 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1949 # computed
1950 ac_fn_c_compute_int ()
1951 {
1952   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953   if test "$cross_compiling" = yes; then
1954     # Depending upon the size, compute the lo and hi bounds.
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) >= 0)];
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_lo=0 ac_mid=0
1971   while :; do
1972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h.  */
1974 $4
1975 int
1976 main ()
1977 {
1978 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1979 test_array [0] = 0;
1980 return test_array [0];
1981
1982   ;
1983   return 0;
1984 }
1985 _ACEOF
1986 if ac_fn_c_try_compile "$LINENO"; then :
1987   ac_hi=$ac_mid; break
1988 else
1989   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1990                         if test $ac_lo -le $ac_mid; then
1991                           ac_lo= ac_hi=
1992                           break
1993                         fi
1994                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997   done
1998 else
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) < 0)];
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_hi=-1 ac_mid=-1
2015   while :; do
2016     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h.  */
2018 $4
2019 int
2020 main ()
2021 {
2022 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2023 test_array [0] = 0;
2024 return test_array [0];
2025
2026   ;
2027   return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_compile "$LINENO"; then :
2031   ac_lo=$ac_mid; break
2032 else
2033   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2034                         if test $ac_mid -le $ac_hi; then
2035                           ac_lo= ac_hi=
2036                           break
2037                         fi
2038                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041   done
2042 else
2043   ac_lo= ac_hi=
2044 fi
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046 fi
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2048 # Binary search between lo and hi bounds.
2049 while test "x$ac_lo" != "x$ac_hi"; do
2050   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2051   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h.  */
2053 $4
2054 int
2055 main ()
2056 {
2057 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2058 test_array [0] = 0;
2059 return test_array [0];
2060
2061   ;
2062   return 0;
2063 }
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2066   ac_hi=$ac_mid
2067 else
2068   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2069 fi
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072 case $ac_lo in #((
2073 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2074 '') ac_retval=1 ;;
2075 esac
2076   else
2077     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h.  */
2079 $4
2080 static long int longval () { return $2; }
2081 static unsigned long int ulongval () { return $2; }
2082 #include <stdio.h>
2083 #include <stdlib.h>
2084 int
2085 main ()
2086 {
2087
2088   FILE *f = fopen ("conftest.val", "w");
2089   if (! f)
2090     return 1;
2091   if (($2) < 0)
2092     {
2093       long int i = longval ();
2094       if (i != ($2))
2095         return 1;
2096       fprintf (f, "%ld", i);
2097     }
2098   else
2099     {
2100       unsigned long int i = ulongval ();
2101       if (i != ($2))
2102         return 1;
2103       fprintf (f, "%lu", i);
2104     }
2105   /* Do not output a trailing newline, as this causes \r\n confusion
2106      on some platforms.  */
2107   return ferror (f) || fclose (f) != 0;
2108
2109   ;
2110   return 0;
2111 }
2112 _ACEOF
2113 if ac_fn_c_try_run "$LINENO"; then :
2114   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2115 else
2116   ac_retval=1
2117 fi
2118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2119   conftest.$ac_objext conftest.beam conftest.$ac_ext
2120 rm -f conftest.val
2121
2122   fi
2123   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124   as_fn_set_status $ac_retval
2125
2126 } # ac_fn_c_compute_int
2127
2128 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2129 # -------------------------------------------------------
2130 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2131 # the include files in INCLUDES and setting the cache variable VAR
2132 # accordingly.
2133 ac_fn_c_check_header_mongrel ()
2134 {
2135   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136   if eval \${$3+:} false; then :
2137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2138 $as_echo_n "checking for $2... " >&6; }
2139 if eval \${$3+:} false; then :
2140   $as_echo_n "(cached) " >&6
2141 fi
2142 eval ac_res=\$$3
2143                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145 else
2146   # Is the header compilable?
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2148 $as_echo_n "checking $2 usability... " >&6; }
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h.  */
2151 $4
2152 #include <$2>
2153 _ACEOF
2154 if ac_fn_c_try_compile "$LINENO"; then :
2155   ac_header_compiler=yes
2156 else
2157   ac_header_compiler=no
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2161 $as_echo "$ac_header_compiler" >&6; }
2162
2163 # Is the header present?
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2165 $as_echo_n "checking $2 presence... " >&6; }
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h.  */
2168 #include <$2>
2169 _ACEOF
2170 if ac_fn_c_try_cpp "$LINENO"; then :
2171   ac_header_preproc=yes
2172 else
2173   ac_header_preproc=no
2174 fi
2175 rm -f conftest.err conftest.i conftest.$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2177 $as_echo "$ac_header_preproc" >&6; }
2178
2179 # So?  What about this header?
2180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2181   yes:no: )
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2183 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2184     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2185 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2186     ;;
2187   no:yes:* )
2188     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2189 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2190     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2191 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2192     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2193 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2194     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2195 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2196     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2197 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198 ( $as_echo "## ------------------------------------------------------------------------------------ ##
2199 ## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection ##
2200 ## ------------------------------------------------------------------------------------ ##"
2201      ) | sed "s/^/$as_me: WARNING:     /" >&2
2202     ;;
2203 esac
2204   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2205 $as_echo_n "checking for $2... " >&6; }
2206 if eval \${$3+:} false; then :
2207   $as_echo_n "(cached) " >&6
2208 else
2209   eval "$3=\$ac_header_compiler"
2210 fi
2211 eval ac_res=\$$3
2212                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2214 fi
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217 } # ac_fn_c_check_header_mongrel
2218 cat >config.log <<_ACEOF
2219 This file contains any messages produced by compilers while
2220 running configure, to aid debugging if configure makes a mistake.
2221
2222 It was created by gobject-introspection $as_me 1.49.1, which was
2223 generated by GNU Autoconf 2.69.  Invocation command line was
2224
2225   $ $0 $@
2226
2227 _ACEOF
2228 exec 5>>config.log
2229 {
2230 cat <<_ASUNAME
2231 ## --------- ##
2232 ## Platform. ##
2233 ## --------- ##
2234
2235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2240
2241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2242 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2243
2244 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2245 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2247 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2248 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2249 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2250 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2251
2252 _ASUNAME
2253
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257   IFS=$as_save_IFS
2258   test -z "$as_dir" && as_dir=.
2259     $as_echo "PATH: $as_dir"
2260   done
2261 IFS=$as_save_IFS
2262
2263 } >&5
2264
2265 cat >&5 <<_ACEOF
2266
2267
2268 ## ----------- ##
2269 ## Core tests. ##
2270 ## ----------- ##
2271
2272 _ACEOF
2273
2274
2275 # Keep a trace of the command line.
2276 # Strip out --no-create and --no-recursion so they do not pile up.
2277 # Strip out --silent because we don't want to record it for future runs.
2278 # Also quote any args containing shell meta-characters.
2279 # Make two passes to allow for proper duplicate-argument suppression.
2280 ac_configure_args=
2281 ac_configure_args0=
2282 ac_configure_args1=
2283 ac_must_keep_next=false
2284 for ac_pass in 1 2
2285 do
2286   for ac_arg
2287   do
2288     case $ac_arg in
2289     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291     | -silent | --silent | --silen | --sile | --sil)
2292       continue ;;
2293     *\'*)
2294       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295     esac
2296     case $ac_pass in
2297     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2298     2)
2299       as_fn_append ac_configure_args1 " '$ac_arg'"
2300       if test $ac_must_keep_next = true; then
2301         ac_must_keep_next=false # Got value, back to normal.
2302       else
2303         case $ac_arg in
2304           *=* | --config-cache | -C | -disable-* | --disable-* \
2305           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307           | -with-* | --with-* | -without-* | --without-* | --x)
2308             case "$ac_configure_args0 " in
2309               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310             esac
2311             ;;
2312           -* ) ac_must_keep_next=true ;;
2313         esac
2314       fi
2315       as_fn_append ac_configure_args " '$ac_arg'"
2316       ;;
2317     esac
2318   done
2319 done
2320 { ac_configure_args0=; unset ac_configure_args0;}
2321 { ac_configure_args1=; unset ac_configure_args1;}
2322
2323 # When interrupted or exit'd, cleanup temporary files, and complete
2324 # config.log.  We remove comments because anyway the quotes in there
2325 # would cause problems or look ugly.
2326 # WARNING: Use '\'' to represent an apostrophe within the trap.
2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328 trap 'exit_status=$?
2329   # Save into config.log some information that might help in debugging.
2330   {
2331     echo
2332
2333     $as_echo "## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##"
2336     echo
2337     # The following way of writing the cache mishandles newlines in values,
2338 (
2339   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340     eval ac_val=\$$ac_var
2341     case $ac_val in #(
2342     *${as_nl}*)
2343       case $ac_var in #(
2344       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346       esac
2347       case $ac_var in #(
2348       _ | IFS | as_nl) ;; #(
2349       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350       *) { eval $ac_var=; unset $ac_var;} ;;
2351       esac ;;
2352     esac
2353   done
2354   (set) 2>&1 |
2355     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356     *${as_nl}ac_space=\ *)
2357       sed -n \
2358         "s/'\''/'\''\\\\'\'''\''/g;
2359           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360       ;; #(
2361     *)
2362       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2363       ;;
2364     esac |
2365     sort
2366 )
2367     echo
2368
2369     $as_echo "## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##"
2372     echo
2373     for ac_var in $ac_subst_vars
2374     do
2375       eval ac_val=\$$ac_var
2376       case $ac_val in
2377       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378       esac
2379       $as_echo "$ac_var='\''$ac_val'\''"
2380     done | sort
2381     echo
2382
2383     if test -n "$ac_subst_files"; then
2384       $as_echo "## ------------------- ##
2385 ## File substitutions. ##
2386 ## ------------------- ##"
2387       echo
2388       for ac_var in $ac_subst_files
2389       do
2390         eval ac_val=\$$ac_var
2391         case $ac_val in
2392         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393         esac
2394         $as_echo "$ac_var='\''$ac_val'\''"
2395       done | sort
2396       echo
2397     fi
2398
2399     if test -s confdefs.h; then
2400       $as_echo "## ----------- ##
2401 ## confdefs.h. ##
2402 ## ----------- ##"
2403       echo
2404       cat confdefs.h
2405       echo
2406     fi
2407     test "$ac_signal" != 0 &&
2408       $as_echo "$as_me: caught signal $ac_signal"
2409     $as_echo "$as_me: exit $exit_status"
2410   } >&5
2411   rm -f core *.core core.conftest.* &&
2412     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413     exit $exit_status
2414 ' 0
2415 for ac_signal in 1 2 13 15; do
2416   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2417 done
2418 ac_signal=0
2419
2420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2421 rm -f -r conftest* confdefs.h
2422
2423 $as_echo "/* confdefs.h */" > confdefs.h
2424
2425 # Predefined preprocessor variables.
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_NAME "$PACKAGE_NAME"
2429 _ACEOF
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2437 _ACEOF
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_STRING "$PACKAGE_STRING"
2441 _ACEOF
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_URL "$PACKAGE_URL"
2449 _ACEOF
2450
2451
2452 # Let the site file select an alternate cache file if it wants to.
2453 # Prefer an explicitly selected file to automatically selected ones.
2454 ac_site_file1=NONE
2455 ac_site_file2=NONE
2456 if test -n "$CONFIG_SITE"; then
2457   # We do not want a PATH search for config.site.
2458   case $CONFIG_SITE in #((
2459     -*)  ac_site_file1=./$CONFIG_SITE;;
2460     */*) ac_site_file1=$CONFIG_SITE;;
2461     *)   ac_site_file1=./$CONFIG_SITE;;
2462   esac
2463 elif test "x$prefix" != xNONE; then
2464   ac_site_file1=$prefix/share/config.site
2465   ac_site_file2=$prefix/etc/config.site
2466 else
2467   ac_site_file1=$ac_default_prefix/share/config.site
2468   ac_site_file2=$ac_default_prefix/etc/config.site
2469 fi
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471 do
2472   test "x$ac_site_file" = xNONE && continue
2473   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476     sed 's/^/| /' "$ac_site_file" >&5
2477     . "$ac_site_file" \
2478       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 as_fn_error $? "failed to load site script $ac_site_file
2481 See \`config.log' for more details" "$LINENO" 5; }
2482   fi
2483 done
2484
2485 if test -r "$cache_file"; then
2486   # Some versions of bash will fail to source /dev/null (special files
2487   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2488   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2491     case $cache_file in
2492       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493       *)                      . "./$cache_file";;
2494     esac
2495   fi
2496 else
2497   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2499   >$cache_file
2500 fi
2501
2502 # Check that the precious variables saved in the cache have kept the same
2503 # value.
2504 ac_cache_corrupted=false
2505 for ac_var in $ac_precious_vars; do
2506   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507   eval ac_new_set=\$ac_env_${ac_var}_set
2508   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509   eval ac_new_val=\$ac_env_${ac_var}_value
2510   case $ac_old_set,$ac_new_set in
2511     set,)
2512       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514       ac_cache_corrupted=: ;;
2515     ,set)
2516       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518       ac_cache_corrupted=: ;;
2519     ,);;
2520     *)
2521       if test "x$ac_old_val" != "x$ac_new_val"; then
2522         # differences in whitespace do not lead to failure.
2523         ac_old_val_w=`echo x $ac_old_val`
2524         ac_new_val_w=`echo x $ac_new_val`
2525         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528           ac_cache_corrupted=:
2529         else
2530           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532           eval $ac_var=\$ac_old_val
2533         fi
2534         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2535 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2536         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2537 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2538       fi;;
2539   esac
2540   # Pass precious variables to config.status.
2541   if test "$ac_new_set" = set; then
2542     case $ac_new_val in
2543     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544     *) ac_arg=$ac_var=$ac_new_val ;;
2545     esac
2546     case " $ac_configure_args " in
2547       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2548       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2549     esac
2550   fi
2551 done
2552 if $ac_cache_corrupted; then
2553   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2557   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2558 fi
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570
2571 ac_config_headers="$ac_config_headers config.h"
2572
2573
2574 ac_aux_dir=
2575 for ac_dir in build-aux "$srcdir"/build-aux; do
2576   if test -f "$ac_dir/install-sh"; then
2577     ac_aux_dir=$ac_dir
2578     ac_install_sh="$ac_aux_dir/install-sh -c"
2579     break
2580   elif test -f "$ac_dir/install.sh"; then
2581     ac_aux_dir=$ac_dir
2582     ac_install_sh="$ac_aux_dir/install.sh -c"
2583     break
2584   elif test -f "$ac_dir/shtool"; then
2585     ac_aux_dir=$ac_dir
2586     ac_install_sh="$ac_aux_dir/shtool install -c"
2587     break
2588   fi
2589 done
2590 if test -z "$ac_aux_dir"; then
2591   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2592 fi
2593
2594 # These three variables are undocumented and unsupported,
2595 # and are intended to be withdrawn in a future Autoconf release.
2596 # They can cause serious problems if a builder's source tree is in a directory
2597 # whose full name contains unusual characters.
2598 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2599 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2600 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2601
2602
2603
2604 am__api_version='1.15'
2605
2606 # Find a good install program.  We prefer a C program (faster),
2607 # so one script is as good as another.  But avoid the broken or
2608 # incompatible versions:
2609 # SysV /etc/install, /usr/sbin/install
2610 # SunOS /usr/etc/install
2611 # IRIX /sbin/install
2612 # AIX /bin/install
2613 # AmigaOS /C/install, which installs bootblocks on floppy discs
2614 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2615 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2616 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2617 # OS/2's system install, which has a completely different semantic
2618 # ./install, which can be erroneously created by make from ./install.sh.
2619 # Reject install programs that cannot install multiple files.
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2621 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2622 if test -z "$INSTALL"; then
2623 if ${ac_cv_path_install+:} false; then :
2624   $as_echo_n "(cached) " >&6
2625 else
2626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 for as_dir in $PATH
2628 do
2629   IFS=$as_save_IFS
2630   test -z "$as_dir" && as_dir=.
2631     # Account for people who put trailing slashes in PATH elements.
2632 case $as_dir/ in #((
2633   ./ | .// | /[cC]/* | \
2634   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2635   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2636   /usr/ucb/* ) ;;
2637   *)
2638     # OSF1 and SCO ODT 3.0 have their own names for install.
2639     # Don't use installbsd from OSF since it installs stuff as root
2640     # by default.
2641     for ac_prog in ginstall scoinst install; do
2642       for ac_exec_ext in '' $ac_executable_extensions; do
2643         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2644           if test $ac_prog = install &&
2645             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2646             # AIX install.  It has an incompatible calling convention.
2647             :
2648           elif test $ac_prog = install &&
2649             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2650             # program-specific install script used by HP pwplus--don't use.
2651             :
2652           else
2653             rm -rf conftest.one conftest.two conftest.dir
2654             echo one > conftest.one
2655             echo two > conftest.two
2656             mkdir conftest.dir
2657             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2658               test -s conftest.one && test -s conftest.two &&
2659               test -s conftest.dir/conftest.one &&
2660               test -s conftest.dir/conftest.two
2661             then
2662               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2663               break 3
2664             fi
2665           fi
2666         fi
2667       done
2668     done
2669     ;;
2670 esac
2671
2672   done
2673 IFS=$as_save_IFS
2674
2675 rm -rf conftest.one conftest.two conftest.dir
2676
2677 fi
2678   if test "${ac_cv_path_install+set}" = set; then
2679     INSTALL=$ac_cv_path_install
2680   else
2681     # As a last resort, use the slow shell script.  Don't cache a
2682     # value for INSTALL within a source directory, because that will
2683     # break other packages using the cache if that directory is
2684     # removed, or if the value is a relative name.
2685     INSTALL=$ac_install_sh
2686   fi
2687 fi
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2689 $as_echo "$INSTALL" >&6; }
2690
2691 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2692 # It thinks the first close brace ends the variable substitution.
2693 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2694
2695 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2696
2697 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2698
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2700 $as_echo_n "checking whether build environment is sane... " >&6; }
2701 # Reject unsafe characters in $srcdir or the absolute working directory
2702 # name.  Accept space and tab only in the latter.
2703 am_lf='
2704 '
2705 case `pwd` in
2706   *[\\\"\#\$\&\'\`$am_lf]*)
2707     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2708 esac
2709 case $srcdir in
2710   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2711     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2712 esac
2713
2714 # Do 'set' in a subshell so we don't clobber the current shell's
2715 # arguments.  Must try -L first in case configure is actually a
2716 # symlink; some systems play weird games with the mod time of symlinks
2717 # (eg FreeBSD returns the mod time of the symlink's containing
2718 # directory).
2719 if (
2720    am_has_slept=no
2721    for am_try in 1 2; do
2722      echo "timestamp, slept: $am_has_slept" > conftest.file
2723      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2724      if test "$*" = "X"; then
2725         # -L didn't work.
2726         set X `ls -t "$srcdir/configure" conftest.file`
2727      fi
2728      if test "$*" != "X $srcdir/configure conftest.file" \
2729         && test "$*" != "X conftest.file $srcdir/configure"; then
2730
2731         # If neither matched, then we have a broken ls.  This can happen
2732         # if, for instance, CONFIG_SHELL is bash and it inherits a
2733         # broken ls alias from the environment.  This has actually
2734         # happened.  Such a system could not be considered "sane".
2735         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2736   alias in your environment" "$LINENO" 5
2737      fi
2738      if test "$2" = conftest.file || test $am_try -eq 2; then
2739        break
2740      fi
2741      # Just in case.
2742      sleep 1
2743      am_has_slept=yes
2744    done
2745    test "$2" = conftest.file
2746    )
2747 then
2748    # Ok.
2749    :
2750 else
2751    as_fn_error $? "newly created file is older than distributed files!
2752 Check your system clock" "$LINENO" 5
2753 fi
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2755 $as_echo "yes" >&6; }
2756 # If we didn't sleep, we still need to ensure time stamps of config.status and
2757 # generated files are strictly newer.
2758 am_sleep_pid=
2759 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2760   ( sleep 1 ) &
2761   am_sleep_pid=$!
2762 fi
2763
2764 rm -f conftest.file
2765
2766 test "$program_prefix" != NONE &&
2767   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2768 # Use a double $ so make ignores it.
2769 test "$program_suffix" != NONE &&
2770   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2771 # Double any \ or $.
2772 # By default was `s,x,x', remove it if useless.
2773 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2774 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2775
2776 # Expand $ac_aux_dir to an absolute path.
2777 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2778
2779 if test x"${MISSING+set}" != xset; then
2780   case $am_aux_dir in
2781   *\ * | *\     *)
2782     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2783   *)
2784     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2785   esac
2786 fi
2787 # Use eval to expand $SHELL
2788 if eval "$MISSING --is-lightweight"; then
2789   am_missing_run="$MISSING "
2790 else
2791   am_missing_run=
2792   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2793 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2794 fi
2795
2796 if test x"${install_sh+set}" != xset; then
2797   case $am_aux_dir in
2798   *\ * | *\     *)
2799     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2800   *)
2801     install_sh="\${SHELL} $am_aux_dir/install-sh"
2802   esac
2803 fi
2804
2805 # Installed binaries are usually stripped using 'strip' when the user
2806 # run "make install-strip".  However 'strip' might not be the right
2807 # tool to use in cross-compilation environments, therefore Automake
2808 # will honor the 'STRIP' environment variable to overrule this program.
2809 if test "$cross_compiling" != no; then
2810   if test -n "$ac_tool_prefix"; then
2811   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2812 set dummy ${ac_tool_prefix}strip; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_STRIP+:} false; then :
2816   $as_echo_n "(cached) " >&6
2817 else
2818   if test -n "$STRIP"; then
2819   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824   IFS=$as_save_IFS
2825   test -z "$as_dir" && as_dir=.
2826     for ac_exec_ext in '' $ac_executable_extensions; do
2827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2828     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830     break 2
2831   fi
2832 done
2833   done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 STRIP=$ac_cv_prog_STRIP
2839 if test -n "$STRIP"; then
2840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2841 $as_echo "$STRIP" >&6; }
2842 else
2843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848 fi
2849 if test -z "$ac_cv_prog_STRIP"; then
2850   ac_ct_STRIP=$STRIP
2851   # Extract the first word of "strip", so it can be a program name with args.
2852 set dummy strip; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2856   $as_echo_n "(cached) " >&6
2857 else
2858   if test -n "$ac_ct_STRIP"; then
2859   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2863 do
2864   IFS=$as_save_IFS
2865   test -z "$as_dir" && as_dir=.
2866     for ac_exec_ext in '' $ac_executable_extensions; do
2867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2868     ac_cv_prog_ac_ct_STRIP="strip"
2869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870     break 2
2871   fi
2872 done
2873   done
2874 IFS=$as_save_IFS
2875
2876 fi
2877 fi
2878 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2879 if test -n "$ac_ct_STRIP"; then
2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2881 $as_echo "$ac_ct_STRIP" >&6; }
2882 else
2883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2885 fi
2886
2887   if test "x$ac_ct_STRIP" = x; then
2888     STRIP=":"
2889   else
2890     case $cross_compiling:$ac_tool_warned in
2891 yes:)
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2894 ac_tool_warned=yes ;;
2895 esac
2896     STRIP=$ac_ct_STRIP
2897   fi
2898 else
2899   STRIP="$ac_cv_prog_STRIP"
2900 fi
2901
2902 fi
2903 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2904
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2906 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2907 if test -z "$MKDIR_P"; then
2908   if ${ac_cv_path_mkdir+:} false; then :
2909   $as_echo_n "(cached) " >&6
2910 else
2911   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2912 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2913 do
2914   IFS=$as_save_IFS
2915   test -z "$as_dir" && as_dir=.
2916     for ac_prog in mkdir gmkdir; do
2917          for ac_exec_ext in '' $ac_executable_extensions; do
2918            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2919            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2920              'mkdir (GNU coreutils) '* | \
2921              'mkdir (coreutils) '* | \
2922              'mkdir (fileutils) '4.1*)
2923                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2924                break 3;;
2925            esac
2926          done
2927        done
2928   done
2929 IFS=$as_save_IFS
2930
2931 fi
2932
2933   test -d ./--version && rmdir ./--version
2934   if test "${ac_cv_path_mkdir+set}" = set; then
2935     MKDIR_P="$ac_cv_path_mkdir -p"
2936   else
2937     # As a last resort, use the slow shell script.  Don't cache a
2938     # value for MKDIR_P within a source directory, because that will
2939     # break other packages using the cache if that directory is
2940     # removed, or if the value is a relative name.
2941     MKDIR_P="$ac_install_sh -d"
2942   fi
2943 fi
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2945 $as_echo "$MKDIR_P" >&6; }
2946
2947 for ac_prog in gawk mawk nawk awk
2948 do
2949   # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_AWK+:} false; then :
2954   $as_echo_n "(cached) " >&6
2955 else
2956   if test -n "$AWK"; then
2957   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962   IFS=$as_save_IFS
2963   test -z "$as_dir" && as_dir=.
2964     for ac_exec_ext in '' $ac_executable_extensions; do
2965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966     ac_cv_prog_AWK="$ac_prog"
2967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968     break 2
2969   fi
2970 done
2971   done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 AWK=$ac_cv_prog_AWK
2977 if test -n "$AWK"; then
2978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2979 $as_echo "$AWK" >&6; }
2980 else
2981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2983 fi
2984
2985
2986   test -n "$AWK" && break
2987 done
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2990 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2991 set x ${MAKE-make}
2992 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2993 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2994   $as_echo_n "(cached) " >&6
2995 else
2996   cat >conftest.make <<\_ACEOF
2997 SHELL = /bin/sh
2998 all:
2999         @echo '@@@%%%=$(MAKE)=@@@%%%'
3000 _ACEOF
3001 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3002 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3003   *@@@%%%=?*=@@@%%%*)
3004     eval ac_cv_prog_make_${ac_make}_set=yes;;
3005   *)
3006     eval ac_cv_prog_make_${ac_make}_set=no;;
3007 esac
3008 rm -f conftest.make
3009 fi
3010 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3012 $as_echo "yes" >&6; }
3013   SET_MAKE=
3014 else
3015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016 $as_echo "no" >&6; }
3017   SET_MAKE="MAKE=${MAKE-make}"
3018 fi
3019
3020 rm -rf .tst 2>/dev/null
3021 mkdir .tst 2>/dev/null
3022 if test -d .tst; then
3023   am__leading_dot=.
3024 else
3025   am__leading_dot=_
3026 fi
3027 rmdir .tst 2>/dev/null
3028
3029 # Check whether --enable-silent-rules was given.
3030 if test "${enable_silent_rules+set}" = set; then :
3031   enableval=$enable_silent_rules;
3032 fi
3033
3034 case $enable_silent_rules in # (((
3035   yes) AM_DEFAULT_VERBOSITY=0;;
3036    no) AM_DEFAULT_VERBOSITY=1;;
3037     *) AM_DEFAULT_VERBOSITY=1;;
3038 esac
3039 am_make=${MAKE-make}
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3041 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3042 if ${am_cv_make_support_nested_variables+:} false; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   if $as_echo 'TRUE=$(BAR$(V))
3046 BAR0=false
3047 BAR1=true
3048 V=1
3049 am__doit:
3050         @$(TRUE)
3051 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3052   am_cv_make_support_nested_variables=yes
3053 else
3054   am_cv_make_support_nested_variables=no
3055 fi
3056 fi
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3058 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3059 if test $am_cv_make_support_nested_variables = yes; then
3060     AM_V='$(V)'
3061   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3062 else
3063   AM_V=$AM_DEFAULT_VERBOSITY
3064   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3065 fi
3066 AM_BACKSLASH='\'
3067
3068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3069   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3070   # is not polluted with repeated "-I."
3071   am__isrc=' -I$(srcdir)'
3072   # test to see if srcdir already configured
3073   if test -f $srcdir/config.status; then
3074     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3075   fi
3076 fi
3077
3078 # test whether we have cygpath
3079 if test -z "$CYGPATH_W"; then
3080   if (cygpath --version) >/dev/null 2>/dev/null; then
3081     CYGPATH_W='cygpath -w'
3082   else
3083     CYGPATH_W=echo
3084   fi
3085 fi
3086
3087
3088 # Define the identity of the package.
3089  PACKAGE='gobject-introspection'
3090  VERSION='1.49.1'
3091
3092
3093 cat >>confdefs.h <<_ACEOF
3094 #define PACKAGE "$PACKAGE"
3095 _ACEOF
3096
3097
3098 cat >>confdefs.h <<_ACEOF
3099 #define VERSION "$VERSION"
3100 _ACEOF
3101
3102 # Some tools Automake needs.
3103
3104 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3105
3106
3107 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3108
3109
3110 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3111
3112
3113 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3114
3115
3116 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3117
3118 # For better backward compatibility.  To be removed once Automake 1.9.x
3119 # dies out for good.  For more background, see:
3120 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3121 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3122 mkdir_p='$(MKDIR_P)'
3123
3124 # We need awk for the "check" target (and possibly the TAP driver).  The
3125 # system "awk" is bad on some platforms.
3126 # Always define AMTAR for backward compatibility.  Yes, it's still used
3127 # in the wild :-(  We should find a proper way to deprecate it ...
3128 AMTAR='$${TAR-tar}'
3129
3130
3131 # We'll loop over all known methods to create a tar archive until one works.
3132 _am_tools='gnutar plaintar pax cpio none'
3133
3134 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
3135       # There is notably a 21 bits limit for the UID and the GID.  In fact,
3136       # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3137       # and bug#13588).
3138       am_max_uid=2097151 # 2^21 - 1
3139       am_max_gid=$am_max_uid
3140       # The $UID and $GID variables are not portable, so we need to resort
3141       # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3142       # below are definitely unexpected, so allow the users to see them
3143       # (that is, avoid stderr redirection).
3144       am_uid=`id -u || echo unknown`
3145       am_gid=`id -g || echo unknown`
3146       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3147 $as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3148       if test $am_uid -le $am_max_uid; then
3149          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3150 $as_echo "yes" >&6; }
3151       else
3152          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154          _am_tools=none
3155       fi
3156       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3157 $as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3158       if test $am_gid -le $am_max_gid; then
3159          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3160 $as_echo "yes" >&6; }
3161       else
3162         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3164         _am_tools=none
3165       fi
3166
3167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3168 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3169
3170   # Go ahead even if we have the value already cached.  We do so because we
3171   # need to set the values for the 'am__tar' and 'am__untar' variables.
3172   _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3173
3174   for _am_tool in $_am_tools; do
3175     case $_am_tool in
3176     gnutar)
3177       for _am_tar in tar gnutar gtar; do
3178         { echo "$as_me:$LINENO: $_am_tar --version" >&5
3179    ($_am_tar --version) >&5 2>&5
3180    ac_status=$?
3181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182    (exit $ac_status); } && break
3183       done
3184       am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3185       am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3186       am__untar="$_am_tar -xf -"
3187       ;;
3188     plaintar)
3189       # Must skip GNU tar: if it does not support --format= it doesn't create
3190       # ustar tarball either.
3191       (tar --version) >/dev/null 2>&1 && continue
3192       am__tar='tar chf - "$$tardir"'
3193       am__tar_='tar chf - "$tardir"'
3194       am__untar='tar xf -'
3195       ;;
3196     pax)
3197       am__tar='pax -L -x ustar -w "$$tardir"'
3198       am__tar_='pax -L -x ustar -w "$tardir"'
3199       am__untar='pax -r'
3200       ;;
3201     cpio)
3202       am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3203       am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3204       am__untar='cpio -i -H ustar -d'
3205       ;;
3206     none)
3207       am__tar=false
3208       am__tar_=false
3209       am__untar=false
3210       ;;
3211     esac
3212
3213     # If the value was cached, stop now.  We just wanted to have am__tar
3214     # and am__untar set.
3215     test -n "${am_cv_prog_tar_ustar}" && break
3216
3217     # tar/untar a dummy directory, and stop if the command works.
3218     rm -rf conftest.dir
3219     mkdir conftest.dir
3220     echo GrepMe > conftest.dir/file
3221     { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3222    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3223    ac_status=$?
3224    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3225    (exit $ac_status); }
3226     rm -rf conftest.dir
3227     if test -s conftest.tar; then
3228       { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3229    ($am__untar <conftest.tar) >&5 2>&5
3230    ac_status=$?
3231    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232    (exit $ac_status); }
3233       { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3234    (cat conftest.dir/file) >&5 2>&5
3235    ac_status=$?
3236    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237    (exit $ac_status); }
3238       grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3239     fi
3240   done
3241   rm -rf conftest.dir
3242
3243   if ${am_cv_prog_tar_ustar+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   am_cv_prog_tar_ustar=$_am_tool
3247 fi
3248
3249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3250 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3251
3252
3253
3254
3255
3256
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes.  So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK; else
3266   cat >&2 <<'END'
3267 Oops!
3268
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present.  This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3273
3274 Please tell bug-automake@gnu.org about your system, including the value
3275 of your $PATH and any error possibly output before this message.  This
3276 can help us improve future automake versions.
3277
3278 END
3279   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3280     echo 'Configuration will proceed anyway, since you have set the' >&2
3281     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282     echo >&2
3283   else
3284     cat >&2 <<'END'
3285 Aborting the configuration process, to ensure you take notice of the issue.
3286
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3289
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3293
3294 END
3295     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3296   fi
3297 fi
3298
3299
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3301 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3302     # Check whether --enable-maintainer-mode was given.
3303 if test "${enable_maintainer_mode+set}" = set; then :
3304   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3305 else
3306   USE_MAINTAINER_MODE=yes
3307 fi
3308
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3310 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3311    if test $USE_MAINTAINER_MODE = yes; then
3312   MAINTAINER_MODE_TRUE=
3313   MAINTAINER_MODE_FALSE='#'
3314 else
3315   MAINTAINER_MODE_TRUE='#'
3316   MAINTAINER_MODE_FALSE=
3317 fi
3318
3319   MAINT=$MAINTAINER_MODE_TRUE
3320
3321
3322
3323 # Check whether --enable-silent-rules was given.
3324 if test "${enable_silent_rules+set}" = set; then :
3325   enableval=$enable_silent_rules;
3326 fi
3327
3328 case $enable_silent_rules in # (((
3329   yes) AM_DEFAULT_VERBOSITY=0;;
3330    no) AM_DEFAULT_VERBOSITY=1;;
3331     *) AM_DEFAULT_VERBOSITY=0;;
3332 esac
3333 am_make=${MAKE-make}
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3335 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3336 if ${am_cv_make_support_nested_variables+:} false; then :
3337   $as_echo_n "(cached) " >&6
3338 else
3339   if $as_echo 'TRUE=$(BAR$(V))
3340 BAR0=false
3341 BAR1=true
3342 V=1
3343 am__doit:
3344         @$(TRUE)
3345 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3346   am_cv_make_support_nested_variables=yes
3347 else
3348   am_cv_make_support_nested_variables=no
3349 fi
3350 fi
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3352 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3353 if test $am_cv_make_support_nested_variables = yes; then
3354     AM_V='$(V)'
3355   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3356 else
3357   AM_V=$AM_DEFAULT_VERBOSITY
3358   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3359 fi
3360 AM_BACKSLASH='\'
3361
3362
3363 # Used in docs/reference/version.xml
3364 GI_VERSION=1.49.1
3365
3366
3367 # Check for Win32
3368 # Make sure we can run config.sub.
3369 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3370   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3371
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3373 $as_echo_n "checking build system type... " >&6; }
3374 if ${ac_cv_build+:} false; then :
3375   $as_echo_n "(cached) " >&6
3376 else
3377   ac_build_alias=$build_alias
3378 test "x$ac_build_alias" = x &&
3379   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3380 test "x$ac_build_alias" = x &&
3381   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3382 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3383   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3384
3385 fi
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3387 $as_echo "$ac_cv_build" >&6; }
3388 case $ac_cv_build in
3389 *-*-*) ;;
3390 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3391 esac
3392 build=$ac_cv_build
3393 ac_save_IFS=$IFS; IFS='-'
3394 set x $ac_cv_build
3395 shift
3396 build_cpu=$1
3397 build_vendor=$2
3398 shift; shift
3399 # Remember, the first character of IFS is used to create $*,
3400 # except with old shells:
3401 build_os=$*
3402 IFS=$ac_save_IFS
3403 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3404
3405
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3407 $as_echo_n "checking host system type... " >&6; }
3408 if ${ac_cv_host+:} false; then :
3409   $as_echo_n "(cached) " >&6
3410 else
3411   if test "x$host_alias" = x; then
3412   ac_cv_host=$ac_cv_build
3413 else
3414   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3415     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3416 fi
3417
3418 fi
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3420 $as_echo "$ac_cv_host" >&6; }
3421 case $ac_cv_host in
3422 *-*-*) ;;
3423 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3424 esac
3425 host=$ac_cv_host
3426 ac_save_IFS=$IFS; IFS='-'
3427 set x $ac_cv_host
3428 shift
3429 host_cpu=$1
3430 host_vendor=$2
3431 shift; shift
3432 # Remember, the first character of IFS is used to create $*,
3433 # except with old shells:
3434 host_os=$*
3435 IFS=$ac_save_IFS
3436 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3437
3438
3439 case "$host" in
3440 *-*-mingw*)
3441         os_win32=yes
3442         ;;
3443 *)
3444         os_win32=no
3445         ;;
3446 esac
3447  if test "x$os_win32" = "xyes"; then
3448   OS_WIN32_TRUE=
3449   OS_WIN32_FALSE='#'
3450 else
3451   OS_WIN32_TRUE='#'
3452   OS_WIN32_FALSE=
3453 fi
3454
3455
3456 # Checks for programs.
3457 ac_ext=c
3458 ac_cpp='$CPP $CPPFLAGS'
3459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 if test -n "$ac_tool_prefix"; then
3463   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_CC+:} false; then :
3468   $as_echo_n "(cached) " >&6
3469 else
3470   if test -n "$CC"; then
3471   ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476   IFS=$as_save_IFS
3477   test -z "$as_dir" && as_dir=.
3478     for ac_exec_ext in '' $ac_executable_extensions; do
3479   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3481     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482     break 2
3483   fi
3484 done
3485   done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500 fi
3501 if test -z "$ac_cv_prog_CC"; then
3502   ac_ct_CC=$CC
3503   # Extract the first word of "gcc", so it can be a program name with args.
3504 set dummy gcc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3508   $as_echo_n "(cached) " >&6
3509 else
3510   if test -n "$ac_ct_CC"; then
3511   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3515 do
3516   IFS=$as_save_IFS
3517   test -z "$as_dir" && as_dir=.
3518     for ac_exec_ext in '' $ac_executable_extensions; do
3519   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3520     ac_cv_prog_ac_ct_CC="gcc"
3521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522     break 2
3523   fi
3524 done
3525   done
3526 IFS=$as_save_IFS
3527
3528 fi
3529 fi
3530 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3531 if test -n "$ac_ct_CC"; then
3532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3533 $as_echo "$ac_ct_CC" >&6; }
3534 else
3535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3537 fi
3538
3539   if test "x$ac_ct_CC" = x; then
3540     CC=""
3541   else
3542     case $cross_compiling:$ac_tool_warned in
3543 yes:)
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3547 esac
3548     CC=$ac_ct_CC
3549   fi
3550 else
3551   CC="$ac_cv_prog_CC"
3552 fi
3553
3554 if test -z "$CC"; then
3555           if test -n "$ac_tool_prefix"; then
3556     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}cc; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_CC+:} false; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   if test -n "$CC"; then
3564   ac_cv_prog_CC="$CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571     for ac_exec_ext in '' $ac_executable_extensions; do
3572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573     ac_cv_prog_CC="${ac_tool_prefix}cc"
3574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578   done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 CC=$ac_cv_prog_CC
3584 if test -n "$CC"; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586 $as_echo "$CC" >&6; }
3587 else
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592
3593   fi
3594 fi
3595 if test -z "$CC"; then
3596   # Extract the first word of "cc", so it can be a program name with args.
3597 set dummy cc; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_CC+:} false; then :
3601   $as_echo_n "(cached) " >&6
3602 else
3603   if test -n "$CC"; then
3604   ac_cv_prog_CC="$CC" # Let the user override the test.
3605 else
3606   ac_prog_rejected=no
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3609 do
3610   IFS=$as_save_IFS
3611   test -z "$as_dir" && as_dir=.
3612     for ac_exec_ext in '' $ac_executable_extensions; do
3613   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3614     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3615        ac_prog_rejected=yes
3616        continue
3617      fi
3618     ac_cv_prog_CC="cc"
3619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620     break 2
3621   fi
3622 done
3623   done
3624 IFS=$as_save_IFS
3625
3626 if test $ac_prog_rejected = yes; then
3627   # We found a bogon in the path, so make sure we never use it.
3628   set dummy $ac_cv_prog_CC
3629   shift
3630   if test $# != 0; then
3631     # We chose a different compiler from the bogus one.
3632     # However, it has the same basename, so the bogon will be chosen
3633     # first if we set CC to just the basename; use the full file name.
3634     shift
3635     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3636   fi
3637 fi
3638 fi
3639 fi
3640 CC=$ac_cv_prog_CC
3641 if test -n "$CC"; then
3642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3643 $as_echo "$CC" >&6; }
3644 else
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 fi
3648
3649
3650 fi
3651 if test -z "$CC"; then
3652   if test -n "$ac_tool_prefix"; then
3653   for ac_prog in cl.exe
3654   do
3655     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3658 $as_echo_n "checking for $ac_word... " >&6; }
3659 if ${ac_cv_prog_CC+:} false; then :
3660   $as_echo_n "(cached) " >&6
3661 else
3662   if test -n "$CC"; then
3663   ac_cv_prog_CC="$CC" # Let the user override the test.
3664 else
3665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666 for as_dir in $PATH
3667 do
3668   IFS=$as_save_IFS
3669   test -z "$as_dir" && as_dir=.
3670     for ac_exec_ext in '' $ac_executable_extensions; do
3671   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3672     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3673     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674     break 2
3675   fi
3676 done
3677   done
3678 IFS=$as_save_IFS
3679
3680 fi
3681 fi
3682 CC=$ac_cv_prog_CC
3683 if test -n "$CC"; then
3684   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 $as_echo "$CC" >&6; }
3686 else
3687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 fi
3690
3691
3692     test -n "$CC" && break
3693   done
3694 fi
3695 if test -z "$CC"; then
3696   ac_ct_CC=$CC
3697   for ac_prog in cl.exe
3698 do
3699   # Extract the first word of "$ac_prog", so it can be a program name with args.
3700 set dummy $ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3704   $as_echo_n "(cached) " >&6
3705 else
3706   if test -n "$ac_ct_CC"; then
3707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712   IFS=$as_save_IFS
3713   test -z "$as_dir" && as_dir=.
3714     for ac_exec_ext in '' $ac_executable_extensions; do
3715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716     ac_cv_prog_ac_ct_CC="$ac_prog"
3717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3718     break 2
3719   fi
3720 done
3721   done
3722 IFS=$as_save_IFS
3723
3724 fi
3725 fi
3726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3727 if test -n "$ac_ct_CC"; then
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3729 $as_echo "$ac_ct_CC" >&6; }
3730 else
3731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3733 fi
3734
3735
3736   test -n "$ac_ct_CC" && break
3737 done
3738
3739   if test "x$ac_ct_CC" = x; then
3740     CC=""
3741   else
3742     case $cross_compiling:$ac_tool_warned in
3743 yes:)
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3746 ac_tool_warned=yes ;;
3747 esac
3748     CC=$ac_ct_CC
3749   fi
3750 fi
3751
3752 fi
3753
3754
3755 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757 as_fn_error $? "no acceptable C compiler found in \$PATH
3758 See \`config.log' for more details" "$LINENO" 5; }
3759
3760 # Provide some information about the compiler.
3761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3762 set X $ac_compile
3763 ac_compiler=$2
3764 for ac_option in --version -v -V -qversion; do
3765   { { ac_try="$ac_compiler $ac_option >&5"
3766 case "(($ac_try" in
3767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768   *) ac_try_echo=$ac_try;;
3769 esac
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3773   ac_status=$?
3774   if test -s conftest.err; then
3775     sed '10a\
3776 ... rest of stderr output deleted ...
3777          10q' conftest.err >conftest.er1
3778     cat conftest.er1 >&5
3779   fi
3780   rm -f conftest.er1 conftest.err
3781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782   test $ac_status = 0; }
3783 done
3784
3785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786 /* end confdefs.h.  */
3787
3788 int
3789 main ()
3790 {
3791
3792   ;
3793   return 0;
3794 }
3795 _ACEOF
3796 ac_clean_files_save=$ac_clean_files
3797 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3798 # Try to create an executable without -o first, disregard a.out.
3799 # It will help us diagnose broken compilers, and finding out an intuition
3800 # of exeext.
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3802 $as_echo_n "checking whether the C compiler works... " >&6; }
3803 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3804
3805 # The possible output files:
3806 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3807
3808 ac_rmfiles=
3809 for ac_file in $ac_files
3810 do
3811   case $ac_file in
3812     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3813     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3814   esac
3815 done
3816 rm -f $ac_rmfiles
3817
3818 if { { ac_try="$ac_link_default"
3819 case "(($ac_try" in
3820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821   *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825   (eval "$ac_link_default") 2>&5
3826   ac_status=$?
3827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828   test $ac_status = 0; }; then :
3829   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3830 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3831 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3832 # so that the user can short-circuit this test for compilers unknown to
3833 # Autoconf.
3834 for ac_file in $ac_files ''
3835 do
3836   test -f "$ac_file" || continue
3837   case $ac_file in
3838     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3839         ;;
3840     [ab].out )
3841         # We found the default executable, but exeext='' is most
3842         # certainly right.
3843         break;;
3844     *.* )
3845         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3846         then :; else
3847            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3848         fi
3849         # We set ac_cv_exeext here because the later test for it is not
3850         # safe: cross compilers may not add the suffix if given an `-o'
3851         # argument, so we may need to know it at that point already.
3852         # Even if this section looks crufty: it has the advantage of
3853         # actually working.
3854         break;;
3855     * )
3856         break;;
3857   esac
3858 done
3859 test "$ac_cv_exeext" = no && ac_cv_exeext=
3860
3861 else
3862   ac_file=''
3863 fi
3864 if test -z "$ac_file"; then :
3865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3866 $as_echo "no" >&6; }
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3869
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error 77 "C compiler cannot create executables
3873 See \`config.log' for more details" "$LINENO" 5; }
3874 else
3875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3876 $as_echo "yes" >&6; }
3877 fi
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3879 $as_echo_n "checking for C compiler default output file name... " >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3881 $as_echo "$ac_file" >&6; }
3882 ac_exeext=$ac_cv_exeext
3883
3884 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3885 ac_clean_files=$ac_clean_files_save
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3887 $as_echo_n "checking for suffix of executables... " >&6; }
3888 if { { ac_try="$ac_link"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895   (eval "$ac_link") 2>&5
3896   ac_status=$?
3897   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898   test $ac_status = 0; }; then :
3899   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3900 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3901 # work properly (i.e., refer to `conftest.exe'), while it won't with
3902 # `rm'.
3903 for ac_file in conftest.exe conftest conftest.*; do
3904   test -f "$ac_file" || continue
3905   case $ac_file in
3906     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3907     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3908           break;;
3909     * ) break;;
3910   esac
3911 done
3912 else
3913   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3915 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3916 See \`config.log' for more details" "$LINENO" 5; }
3917 fi
3918 rm -f conftest conftest$ac_cv_exeext
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3920 $as_echo "$ac_cv_exeext" >&6; }
3921
3922 rm -f conftest.$ac_ext
3923 EXEEXT=$ac_cv_exeext
3924 ac_exeext=$EXEEXT
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h.  */
3927 #include <stdio.h>
3928 int
3929 main ()
3930 {
3931 FILE *f = fopen ("conftest.out", "w");
3932  return ferror (f) || fclose (f) != 0;
3933
3934   ;
3935   return 0;
3936 }
3937 _ACEOF
3938 ac_clean_files="$ac_clean_files conftest.out"
3939 # Check that the compiler produces executables we can run.  If not, either
3940 # the compiler is broken, or we cross compile.
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3942 $as_echo_n "checking whether we are cross compiling... " >&6; }
3943 if test "$cross_compiling" != yes; then
3944   { { ac_try="$ac_link"
3945 case "(($ac_try" in
3946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947   *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951   (eval "$ac_link") 2>&5
3952   ac_status=$?
3953   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954   test $ac_status = 0; }
3955   if { ac_try='./conftest$ac_cv_exeext'
3956   { { case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3962   (eval "$ac_try") 2>&5
3963   ac_status=$?
3964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3965   test $ac_status = 0; }; }; then
3966     cross_compiling=no
3967   else
3968     if test "$cross_compiling" = maybe; then
3969         cross_compiling=yes
3970     else
3971         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3972 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3973 as_fn_error $? "cannot run C compiled programs.
3974 If you meant to cross compile, use \`--host'.
3975 See \`config.log' for more details" "$LINENO" 5; }
3976     fi
3977   fi
3978 fi
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3980 $as_echo "$cross_compiling" >&6; }
3981
3982 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3983 ac_clean_files=$ac_clean_files_save
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3985 $as_echo_n "checking for suffix of object files... " >&6; }
3986 if ${ac_cv_objext+:} false; then :
3987   $as_echo_n "(cached) " >&6
3988 else
3989   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h.  */
3991
3992 int
3993 main ()
3994 {
3995
3996   ;
3997   return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try="$ac_compile"
4002 case "(($ac_try" in
4003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004   *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 $as_echo "$ac_try_echo"; } >&5
4008   (eval "$ac_compile") 2>&5
4009   ac_status=$?
4010   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011   test $ac_status = 0; }; then :
4012   for ac_file in conftest.o conftest.obj conftest.*; do
4013   test -f "$ac_file" || continue;
4014   case $ac_file in
4015     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4016     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4017        break;;
4018   esac
4019 done
4020 else
4021   $as_echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4023
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of object files: cannot compile
4027 See \`config.log' for more details" "$LINENO" 5; }
4028 fi
4029 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4032 $as_echo "$ac_cv_objext" >&6; }
4033 OBJEXT=$ac_cv_objext
4034 ac_objext=$OBJEXT
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4036 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4037 if ${ac_cv_c_compiler_gnu+:} false; then :
4038   $as_echo_n "(cached) " >&6
4039 else
4040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4041 /* end confdefs.h.  */
4042
4043 int
4044 main ()
4045 {
4046 #ifndef __GNUC__
4047        choke me
4048 #endif
4049
4050   ;
4051   return 0;
4052 }
4053 _ACEOF
4054 if ac_fn_c_try_compile "$LINENO"; then :
4055   ac_compiler_gnu=yes
4056 else
4057   ac_compiler_gnu=no
4058 fi
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4061
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4064 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4065 if test $ac_compiler_gnu = yes; then
4066   GCC=yes
4067 else
4068   GCC=
4069 fi
4070 ac_test_CFLAGS=${CFLAGS+set}
4071 ac_save_CFLAGS=$CFLAGS
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4073 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4074 if ${ac_cv_prog_cc_g+:} false; then :
4075   $as_echo_n "(cached) " >&6
4076 else
4077   ac_save_c_werror_flag=$ac_c_werror_flag
4078    ac_c_werror_flag=yes
4079    ac_cv_prog_cc_g=no
4080    CFLAGS="-g"
4081    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h.  */
4083
4084 int
4085 main ()
4086 {
4087
4088   ;
4089   return 0;
4090 }
4091 _ACEOF
4092 if ac_fn_c_try_compile "$LINENO"; then :
4093   ac_cv_prog_cc_g=yes
4094 else
4095   CFLAGS=""
4096       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h.  */
4098
4099 int
4100 main ()
4101 {
4102
4103   ;
4104   return 0;
4105 }
4106 _ACEOF
4107 if ac_fn_c_try_compile "$LINENO"; then :
4108
4109 else
4110   ac_c_werror_flag=$ac_save_c_werror_flag
4111          CFLAGS="-g"
4112          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113 /* end confdefs.h.  */
4114
4115 int
4116 main ()
4117 {
4118
4119   ;
4120   return 0;
4121 }
4122 _ACEOF
4123 if ac_fn_c_try_compile "$LINENO"; then :
4124   ac_cv_prog_cc_g=yes
4125 fi
4126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4127 fi
4128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4129 fi
4130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131    ac_c_werror_flag=$ac_save_c_werror_flag
4132 fi
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4134 $as_echo "$ac_cv_prog_cc_g" >&6; }
4135 if test "$ac_test_CFLAGS" = set; then
4136   CFLAGS=$ac_save_CFLAGS
4137 elif test $ac_cv_prog_cc_g = yes; then
4138   if test "$GCC" = yes; then
4139     CFLAGS="-g -O2"
4140   else
4141     CFLAGS="-g"
4142   fi
4143 else
4144   if test "$GCC" = yes; then
4145     CFLAGS="-O2"
4146   else
4147     CFLAGS=
4148   fi
4149 fi
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4151 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4152 if ${ac_cv_prog_cc_c89+:} false; then :
4153   $as_echo_n "(cached) " >&6
4154 else
4155   ac_cv_prog_cc_c89=no
4156 ac_save_CC=$CC
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158 /* end confdefs.h.  */
4159 #include <stdarg.h>
4160 #include <stdio.h>
4161 struct stat;
4162 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4163 struct buf { int x; };
4164 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4165 static char *e (p, i)
4166      char **p;
4167      int i;
4168 {
4169   return p[i];
4170 }
4171 static char *f (char * (*g) (char **, int), char **p, ...)
4172 {
4173   char *s;
4174   va_list v;
4175   va_start (v,p);
4176   s = g (p, va_arg (v,int));
4177   va_end (v);
4178   return s;
4179 }
4180
4181 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4182    function prototypes and stuff, but not '\xHH' hex character constants.
4183    These don't provoke an error unfortunately, instead are silently treated
4184    as 'x'.  The following induces an error, until -std is added to get
4185    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4186    array size at least.  It's necessary to write '\x00'==0 to get something
4187    that's true only with -std.  */
4188 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4189
4190 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4191    inside strings and character constants.  */
4192 #define FOO(x) 'x'
4193 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4194
4195 int test (int i, double x);
4196 struct s1 {int (*f) (int a);};
4197 struct s2 {int (*f) (double a);};
4198 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4199 int argc;
4200 char **argv;
4201 int
4202 main ()
4203 {
4204 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4205   ;
4206   return 0;
4207 }
4208 _ACEOF
4209 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4210         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4211 do
4212   CC="$ac_save_CC $ac_arg"
4213   if ac_fn_c_try_compile "$LINENO"; then :
4214   ac_cv_prog_cc_c89=$ac_arg
4215 fi
4216 rm -f core conftest.err conftest.$ac_objext
4217   test "x$ac_cv_prog_cc_c89" != "xno" && break
4218 done
4219 rm -f conftest.$ac_ext
4220 CC=$ac_save_CC
4221
4222 fi
4223 # AC_CACHE_VAL
4224 case "x$ac_cv_prog_cc_c89" in
4225   x)
4226     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4227 $as_echo "none needed" >&6; } ;;
4228   xno)
4229     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4230 $as_echo "unsupported" >&6; } ;;
4231   *)
4232     CC="$CC $ac_cv_prog_cc_c89"
4233     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4234 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4235 esac
4236 if test "x$ac_cv_prog_cc_c89" != xno; then :
4237
4238 fi
4239
4240 ac_ext=c
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4245
4246 ac_ext=c
4247 ac_cpp='$CPP $CPPFLAGS'
4248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4252 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4253 if ${am_cv_prog_cc_c_o+:} false; then :
4254   $as_echo_n "(cached) " >&6
4255 else
4256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h.  */
4258
4259 int
4260 main ()
4261 {
4262
4263   ;
4264   return 0;
4265 }
4266 _ACEOF
4267   # Make sure it works both with $CC and with simple cc.
4268   # Following AC_PROG_CC_C_O, we do the test twice because some
4269   # compilers refuse to overwrite an existing .o file with -o,
4270   # though they will create one.
4271   am_cv_prog_cc_c_o=yes
4272   for am_i in 1 2; do
4273     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4274    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4275    ac_status=$?
4276    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4277    (exit $ac_status); } \
4278          && test -f conftest2.$ac_objext; then
4279       : OK
4280     else
4281       am_cv_prog_cc_c_o=no
4282       break
4283     fi
4284   done
4285   rm -f core conftest*
4286   unset am_i
4287 fi
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4289 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4290 if test "$am_cv_prog_cc_c_o" != yes; then
4291    # Losing compiler, so override with the script.
4292    # FIXME: It is wrong to rewrite CC.
4293    # But if we don't then we get into trouble of one sort or another.
4294    # A longer-term fix would be to have automake use am__CC in this case,
4295    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4296    CC="$am_aux_dir/compile $CC"
4297 fi
4298 ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303
4304 DEPDIR="${am__leading_dot}deps"
4305
4306 ac_config_commands="$ac_config_commands depfiles"
4307
4308
4309 am_make=${MAKE-make}
4310 cat > confinc << 'END'
4311 am__doit:
4312         @echo this is the am__doit target
4313 .PHONY: am__doit
4314 END
4315 # If we don't find an include directive, just comment out the code.
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4317 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4318 am__include="#"
4319 am__quote=
4320 _am_result=none
4321 # First try GNU make style include.
4322 echo "include confinc" > confmf
4323 # Ignore all kinds of additional output from 'make'.
4324 case `$am_make -s -f confmf 2> /dev/null` in #(
4325 *the\ am__doit\ target*)
4326   am__include=include
4327   am__quote=
4328   _am_result=GNU
4329   ;;
4330 esac
4331 # Now try BSD make style include.
4332 if test "$am__include" = "#"; then
4333    echo '.include "confinc"' > confmf
4334    case `$am_make -s -f confmf 2> /dev/null` in #(
4335    *the\ am__doit\ target*)
4336      am__include=.include
4337      am__quote="\""
4338      _am_result=BSD
4339      ;;
4340    esac
4341 fi
4342
4343
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4345 $as_echo "$_am_result" >&6; }
4346 rm -f confinc confmf
4347
4348 # Check whether --enable-dependency-tracking was given.
4349 if test "${enable_dependency_tracking+set}" = set; then :
4350   enableval=$enable_dependency_tracking;
4351 fi
4352
4353 if test "x$enable_dependency_tracking" != xno; then
4354   am_depcomp="$ac_aux_dir/depcomp"
4355   AMDEPBACKSLASH='\'
4356   am__nodep='_no'
4357 fi
4358  if test "x$enable_dependency_tracking" != xno; then
4359   AMDEP_TRUE=
4360   AMDEP_FALSE='#'
4361 else
4362   AMDEP_TRUE='#'
4363   AMDEP_FALSE=
4364 fi
4365
4366
4367
4368 depcc="$CC"   am_compiler_list=
4369
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4371 $as_echo_n "checking dependency style of $depcc... " >&6; }
4372 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4373   $as_echo_n "(cached) " >&6
4374 else
4375   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4376   # We make a subdir and do the tests there.  Otherwise we can end up
4377   # making bogus files that we don't know about and never remove.  For
4378   # instance it was reported that on HP-UX the gcc test will end up
4379   # making a dummy file named 'D' -- because '-MD' means "put the output
4380   # in D".
4381   rm -rf conftest.dir
4382   mkdir conftest.dir
4383   # Copy depcomp to subdir because otherwise we won't find it if we're
4384   # using a relative directory.
4385   cp "$am_depcomp" conftest.dir
4386   cd conftest.dir
4387   # We will build objects and dependencies in a subdirectory because
4388   # it helps to detect inapplicable dependency modes.  For instance
4389   # both Tru64's cc and ICC support -MD to output dependencies as a
4390   # side effect of compilation, but ICC will put the dependencies in
4391   # the current directory while Tru64 will put them in the object
4392   # directory.
4393   mkdir sub
4394
4395   am_cv_CC_dependencies_compiler_type=none
4396   if test "$am_compiler_list" = ""; then
4397      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4398   fi
4399   am__universal=false
4400   case " $depcc " in #(
4401      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4402      esac
4403
4404   for depmode in $am_compiler_list; do
4405     # Setup a source with many dependencies, because some compilers
4406     # like to wrap large dependency lists on column 80 (with \), and
4407     # we should not choose a depcomp mode which is confused by this.
4408     #
4409     # We need to recreate these files for each test, as the compiler may
4410     # overwrite some of them when testing with obscure command lines.
4411     # This happens at least with the AIX C compiler.
4412     : > sub/conftest.c
4413     for i in 1 2 3 4 5 6; do
4414       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4415       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4416       # Solaris 10 /bin/sh.
4417       echo '/* dummy */' > sub/conftst$i.h
4418     done
4419     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4420
4421     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4422     # mode.  It turns out that the SunPro C++ compiler does not properly
4423     # handle '-M -o', and we need to detect this.  Also, some Intel
4424     # versions had trouble with output in subdirs.
4425     am__obj=sub/conftest.${OBJEXT-o}
4426     am__minus_obj="-o $am__obj"
4427     case $depmode in
4428     gcc)
4429       # This depmode causes a compiler race in universal mode.
4430       test "$am__universal" = false || continue
4431       ;;
4432     nosideeffect)
4433       # After this tag, mechanisms are not by side-effect, so they'll
4434       # only be used when explicitly requested.
4435       if test "x$enable_dependency_tracking" = xyes; then
4436         continue
4437       else
4438         break
4439       fi
4440       ;;
4441     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4442       # This compiler won't grok '-c -o', but also, the minuso test has
4443       # not run yet.  These depmodes are late enough in the game, and
4444       # so weak that their functioning should not be impacted.
4445       am__obj=conftest.${OBJEXT-o}
4446       am__minus_obj=
4447       ;;
4448     none) break ;;
4449     esac
4450     if depmode=$depmode \
4451        source=sub/conftest.c object=$am__obj \
4452        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4453        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4454          >/dev/null 2>conftest.err &&
4455        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4456        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4457        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4458        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4459       # icc doesn't choke on unknown options, it will just issue warnings
4460       # or remarks (even with -Werror).  So we grep stderr for any message
4461       # that says an option was ignored or not supported.
4462       # When given -MP, icc 7.0 and 7.1 complain thusly:
4463       #   icc: Command line warning: ignoring option '-M'; no argument required
4464       # The diagnosis changed in icc 8.0:
4465       #   icc: Command line remark: option '-MP' not supported
4466       if (grep 'ignoring option' conftest.err ||
4467           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4468         am_cv_CC_dependencies_compiler_type=$depmode
4469         break
4470       fi
4471     fi
4472   done
4473
4474   cd ..
4475   rm -rf conftest.dir
4476 else
4477   am_cv_CC_dependencies_compiler_type=none
4478 fi
4479
4480 fi
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4482 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4483 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4484
4485  if
4486   test "x$enable_dependency_tracking" != xno \
4487   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4488   am__fastdepCC_TRUE=
4489   am__fastdepCC_FALSE='#'
4490 else
4491   am__fastdepCC_TRUE='#'
4492   am__fastdepCC_FALSE=
4493 fi
4494
4495
4496
4497
4498
4499 # Initialize libtool
4500
4501 case `pwd` in
4502   *\ * | *\     *)
4503     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4504 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4505 esac
4506
4507
4508
4509 macro_version='2.4.6'
4510 macro_revision='2.4.6'
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524 ltmain=$ac_aux_dir/ltmain.sh
4525
4526 # Backslashify metacharacters that are still active within
4527 # double-quoted strings.
4528 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4529
4530 # Same as above, but do not quote variable references.
4531 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4532
4533 # Sed substitution to delay expansion of an escaped shell variable in a
4534 # double_quote_subst'ed string.
4535 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4536
4537 # Sed substitution to delay expansion of an escaped single quote.
4538 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4539
4540 # Sed substitution to avoid accidental globbing in evaled expressions
4541 no_glob_subst='s/\*/\\\*/g'
4542
4543 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4544 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4545 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4548 $as_echo_n "checking how to print strings... " >&6; }
4549 # Test print first, because it will be a builtin if present.
4550 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4551    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4552   ECHO='print -r --'
4553 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4554   ECHO='printf %s\n'
4555 else
4556   # Use this function as a fallback that always works.
4557   func_fallback_echo ()
4558   {
4559     eval 'cat <<_LTECHO_EOF
4560 $1
4561 _LTECHO_EOF'
4562   }
4563   ECHO='func_fallback_echo'
4564 fi
4565
4566 # func_echo_all arg...
4567 # Invoke $ECHO with all args, space-separated.
4568 func_echo_all ()
4569 {
4570     $ECHO ""
4571 }
4572
4573 case $ECHO in
4574   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4575 $as_echo "printf" >&6; } ;;
4576   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4577 $as_echo "print -r" >&6; } ;;
4578   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4579 $as_echo "cat" >&6; } ;;
4580 esac
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4596 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4597 if ${ac_cv_path_SED+:} false; then :
4598   $as_echo_n "(cached) " >&6
4599 else
4600             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4601      for ac_i in 1 2 3 4 5 6 7; do
4602        ac_script="$ac_script$as_nl$ac_script"
4603      done
4604      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4605      { ac_script=; unset ac_script;}
4606      if test -z "$SED"; then
4607   ac_path_SED_found=false
4608   # Loop through the user's path and test for each of PROGNAME-LIST
4609   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4610 for as_dir in $PATH
4611 do
4612   IFS=$as_save_IFS
4613   test -z "$as_dir" && as_dir=.
4614     for ac_prog in sed gsed; do
4615     for ac_exec_ext in '' $ac_executable_extensions; do
4616       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4617       as_fn_executable_p "$ac_path_SED" || continue
4618 # Check for GNU ac_path_SED and select it if it is found.
4619   # Check for GNU $ac_path_SED
4620 case `"$ac_path_SED" --version 2>&1` in
4621 *GNU*)
4622   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4623 *)
4624   ac_count=0
4625   $as_echo_n 0123456789 >"conftest.in"
4626   while :
4627   do
4628     cat "conftest.in" "conftest.in" >"conftest.tmp"
4629     mv "conftest.tmp" "conftest.in"
4630     cp "conftest.in" "conftest.nl"
4631     $as_echo '' >> "conftest.nl"
4632     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4633     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4634     as_fn_arith $ac_count + 1 && ac_count=$as_val
4635     if test $ac_count -gt ${ac_path_SED_max-0}; then
4636       # Best one so far, save it but keep looking for a better one
4637       ac_cv_path_SED="$ac_path_SED"
4638       ac_path_SED_max=$ac_count
4639     fi
4640     # 10*(2^10) chars as input seems more than enough
4641     test $ac_count -gt 10 && break
4642   done
4643   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4644 esac
4645
4646       $ac_path_SED_found && break 3
4647     done
4648   done
4649   done
4650 IFS=$as_save_IFS
4651   if test -z "$ac_cv_path_SED"; then
4652     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4653   fi
4654 else
4655   ac_cv_path_SED=$SED
4656 fi
4657
4658 fi
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4660 $as_echo "$ac_cv_path_SED" >&6; }
4661  SED="$ac_cv_path_SED"
4662   rm -f conftest.sed
4663
4664 test -z "$SED" && SED=sed
4665 Xsed="$SED -e 1s/^X//"
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4678 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4679 if ${ac_cv_path_GREP+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if test -z "$GREP"; then
4683   ac_path_GREP_found=false
4684   # Loop through the user's path and test for each of PROGNAME-LIST
4685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4687 do
4688   IFS=$as_save_IFS
4689   test -z "$as_dir" && as_dir=.
4690     for ac_prog in grep ggrep; do
4691     for ac_exec_ext in '' $ac_executable_extensions; do
4692       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4693       as_fn_executable_p "$ac_path_GREP" || continue
4694 # Check for GNU ac_path_GREP and select it if it is found.
4695   # Check for GNU $ac_path_GREP
4696 case `"$ac_path_GREP" --version 2>&1` in
4697 *GNU*)
4698   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4699 *)
4700   ac_count=0
4701   $as_echo_n 0123456789 >"conftest.in"
4702   while :
4703   do
4704     cat "conftest.in" "conftest.in" >"conftest.tmp"
4705     mv "conftest.tmp" "conftest.in"
4706     cp "conftest.in" "conftest.nl"
4707     $as_echo 'GREP' >> "conftest.nl"
4708     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4709     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4710     as_fn_arith $ac_count + 1 && ac_count=$as_val
4711     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4712       # Best one so far, save it but keep looking for a better one
4713       ac_cv_path_GREP="$ac_path_GREP"
4714       ac_path_GREP_max=$ac_count
4715     fi
4716     # 10*(2^10) chars as input seems more than enough
4717     test $ac_count -gt 10 && break
4718   done
4719   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4720 esac
4721
4722       $ac_path_GREP_found && break 3
4723     done
4724   done
4725   done
4726 IFS=$as_save_IFS
4727   if test -z "$ac_cv_path_GREP"; then
4728     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4729   fi
4730 else
4731   ac_cv_path_GREP=$GREP
4732 fi
4733
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4736 $as_echo "$ac_cv_path_GREP" >&6; }
4737  GREP="$ac_cv_path_GREP"
4738
4739
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4741 $as_echo_n "checking for egrep... " >&6; }
4742 if ${ac_cv_path_EGREP+:} false; then :
4743   $as_echo_n "(cached) " >&6
4744 else
4745   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4746    then ac_cv_path_EGREP="$GREP -E"
4747    else
4748      if test -z "$EGREP"; then
4749   ac_path_EGREP_found=false
4750   # Loop through the user's path and test for each of PROGNAME-LIST
4751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4753 do
4754   IFS=$as_save_IFS
4755   test -z "$as_dir" && as_dir=.
4756     for ac_prog in egrep; do
4757     for ac_exec_ext in '' $ac_executable_extensions; do
4758       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4759       as_fn_executable_p "$ac_path_EGREP" || continue
4760 # Check for GNU ac_path_EGREP and select it if it is found.
4761   # Check for GNU $ac_path_EGREP
4762 case `"$ac_path_EGREP" --version 2>&1` in
4763 *GNU*)
4764   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4765 *)
4766   ac_count=0
4767   $as_echo_n 0123456789 >"conftest.in"
4768   while :
4769   do
4770     cat "conftest.in" "conftest.in" >"conftest.tmp"
4771     mv "conftest.tmp" "conftest.in"
4772     cp "conftest.in" "conftest.nl"
4773     $as_echo 'EGREP' >> "conftest.nl"
4774     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4775     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4776     as_fn_arith $ac_count + 1 && ac_count=$as_val
4777     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4778       # Best one so far, save it but keep looking for a better one
4779       ac_cv_path_EGREP="$ac_path_EGREP"
4780       ac_path_EGREP_max=$ac_count
4781     fi
4782     # 10*(2^10) chars as input seems more than enough
4783     test $ac_count -gt 10 && break
4784   done
4785   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 esac
4787
4788       $ac_path_EGREP_found && break 3
4789     done
4790   done
4791   done
4792 IFS=$as_save_IFS
4793   if test -z "$ac_cv_path_EGREP"; then
4794     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4795   fi
4796 else
4797   ac_cv_path_EGREP=$EGREP
4798 fi
4799
4800    fi
4801 fi
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4803 $as_echo "$ac_cv_path_EGREP" >&6; }
4804  EGREP="$ac_cv_path_EGREP"
4805
4806
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4808 $as_echo_n "checking for fgrep... " >&6; }
4809 if ${ac_cv_path_FGREP+:} false; then :
4810   $as_echo_n "(cached) " >&6
4811 else
4812   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4813    then ac_cv_path_FGREP="$GREP -F"
4814    else
4815      if test -z "$FGREP"; then
4816   ac_path_FGREP_found=false
4817   # Loop through the user's path and test for each of PROGNAME-LIST
4818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4820 do
4821   IFS=$as_save_IFS
4822   test -z "$as_dir" && as_dir=.
4823     for ac_prog in fgrep; do
4824     for ac_exec_ext in '' $ac_executable_extensions; do
4825       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4826       as_fn_executable_p "$ac_path_FGREP" || continue
4827 # Check for GNU ac_path_FGREP and select it if it is found.
4828   # Check for GNU $ac_path_FGREP
4829 case `"$ac_path_FGREP" --version 2>&1` in
4830 *GNU*)
4831   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4832 *)
4833   ac_count=0
4834   $as_echo_n 0123456789 >"conftest.in"
4835   while :
4836   do
4837     cat "conftest.in" "conftest.in" >"conftest.tmp"
4838     mv "conftest.tmp" "conftest.in"
4839     cp "conftest.in" "conftest.nl"
4840     $as_echo 'FGREP' >> "conftest.nl"
4841     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4842     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4843     as_fn_arith $ac_count + 1 && ac_count=$as_val
4844     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4845       # Best one so far, save it but keep looking for a better one
4846       ac_cv_path_FGREP="$ac_path_FGREP"
4847       ac_path_FGREP_max=$ac_count
4848     fi
4849     # 10*(2^10) chars as input seems more than enough
4850     test $ac_count -gt 10 && break
4851   done
4852   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4853 esac
4854
4855       $ac_path_FGREP_found && break 3
4856     done
4857   done
4858   done
4859 IFS=$as_save_IFS
4860   if test -z "$ac_cv_path_FGREP"; then
4861     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4862   fi
4863 else
4864   ac_cv_path_FGREP=$FGREP
4865 fi
4866
4867    fi
4868 fi
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4870 $as_echo "$ac_cv_path_FGREP" >&6; }
4871  FGREP="$ac_cv_path_FGREP"
4872
4873
4874 test -z "$GREP" && GREP=grep
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894 # Check whether --with-gnu-ld was given.
4895 if test "${with_gnu_ld+set}" = set; then :
4896   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4897 else
4898   with_gnu_ld=no
4899 fi
4900
4901 ac_prog=ld
4902 if test yes = "$GCC"; then
4903   # Check if gcc -print-prog-name=ld gives a path.
4904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4905 $as_echo_n "checking for ld used by $CC... " >&6; }
4906   case $host in
4907   *-*-mingw*)
4908     # gcc leaves a trailing carriage return, which upsets mingw
4909     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4910   *)
4911     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4912   esac
4913   case $ac_prog in
4914     # Accept absolute paths.
4915     [\\/]* | ?:[\\/]*)
4916       re_direlt='/[^/][^/]*/\.\./'
4917       # Canonicalize the pathname of ld
4918       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4919       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4920         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4921       done
4922       test -z "$LD" && LD=$ac_prog
4923       ;;
4924   "")
4925     # If it fails, then pretend we aren't using GCC.
4926     ac_prog=ld
4927     ;;
4928   *)
4929     # If it is relative, then search for the first ld in PATH.
4930     with_gnu_ld=unknown
4931     ;;
4932   esac
4933 elif test yes = "$with_gnu_ld"; then
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4935 $as_echo_n "checking for GNU ld... " >&6; }
4936 else
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4938 $as_echo_n "checking for non-GNU ld... " >&6; }
4939 fi
4940 if ${lt_cv_path_LD+:} false; then :
4941   $as_echo_n "(cached) " >&6
4942 else
4943   if test -z "$LD"; then
4944   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4945   for ac_dir in $PATH; do
4946     IFS=$lt_save_ifs
4947     test -z "$ac_dir" && ac_dir=.
4948     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4949       lt_cv_path_LD=$ac_dir/$ac_prog
4950       # Check to see if the program is GNU ld.  I'd rather use --version,
4951       # but apparently some variants of GNU ld only accept -v.
4952       # Break only if it was the GNU/non-GNU ld that we prefer.
4953       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4954       *GNU* | *'with BFD'*)
4955         test no != "$with_gnu_ld" && break
4956         ;;
4957       *)
4958         test yes != "$with_gnu_ld" && break
4959         ;;
4960       esac
4961     fi
4962   done
4963   IFS=$lt_save_ifs
4964 else
4965   lt_cv_path_LD=$LD # Let the user override the test with a path.
4966 fi
4967 fi
4968
4969 LD=$lt_cv_path_LD
4970 if test -n "$LD"; then
4971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4972 $as_echo "$LD" >&6; }
4973 else
4974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4975 $as_echo "no" >&6; }
4976 fi
4977 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4979 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4980 if ${lt_cv_prog_gnu_ld+:} false; then :
4981   $as_echo_n "(cached) " >&6
4982 else
4983   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4984 case `$LD -v 2>&1 </dev/null` in
4985 *GNU* | *'with BFD'*)
4986   lt_cv_prog_gnu_ld=yes
4987   ;;
4988 *)
4989   lt_cv_prog_gnu_ld=no
4990   ;;
4991 esac
4992 fi
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4994 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4995 with_gnu_ld=$lt_cv_prog_gnu_ld
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5006 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5007 if ${lt_cv_path_NM+:} false; then :
5008   $as_echo_n "(cached) " >&6
5009 else
5010   if test -n "$NM"; then
5011   # Let the user override the test.
5012   lt_cv_path_NM=$NM
5013 else
5014   lt_nm_to_check=${ac_tool_prefix}nm
5015   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5016     lt_nm_to_check="$lt_nm_to_check nm"
5017   fi
5018   for lt_tmp_nm in $lt_nm_to_check; do
5019     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5020     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5021       IFS=$lt_save_ifs
5022       test -z "$ac_dir" && ac_dir=.
5023       tmp_nm=$ac_dir/$lt_tmp_nm
5024       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5025         # Check to see if the nm accepts a BSD-compat flag.
5026         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5027         #   nm: unknown option "B" ignored
5028         # Tru64's nm complains that /dev/null is an invalid object file
5029         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5030         case $build_os in
5031         mingw*) lt_bad_file=conftest.nm/nofile ;;
5032         *) lt_bad_file=/dev/null ;;
5033         esac
5034         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5035         *$lt_bad_file* | *'Invalid file or object type'*)
5036           lt_cv_path_NM="$tmp_nm -B"
5037           break 2
5038           ;;
5039         *)
5040           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5041           */dev/null*)
5042             lt_cv_path_NM="$tmp_nm -p"
5043             break 2
5044             ;;
5045           *)
5046             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5047             continue # so that we can try to find one that supports BSD flags
5048             ;;
5049           esac
5050           ;;
5051         esac
5052       fi
5053     done
5054     IFS=$lt_save_ifs
5055   done
5056   : ${lt_cv_path_NM=no}
5057 fi
5058 fi
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5060 $as_echo "$lt_cv_path_NM" >&6; }
5061 if test no != "$lt_cv_path_NM"; then
5062   NM=$lt_cv_path_NM
5063 else
5064   # Didn't find any BSD compatible name lister, look for dumpbin.
5065   if test -n "$DUMPBIN"; then :
5066     # Let the user override the test.
5067   else
5068     if test -n "$ac_tool_prefix"; then
5069   for ac_prog in dumpbin "link -dump"
5070   do
5071     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_prog_DUMPBIN+:} false; then :
5076   $as_echo_n "(cached) " >&6
5077 else
5078   if test -n "$DUMPBIN"; then
5079   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5080 else
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086     for ac_exec_ext in '' $ac_executable_extensions; do
5087   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5088     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093   done
5094 IFS=$as_save_IFS
5095
5096 fi
5097 fi
5098 DUMPBIN=$ac_cv_prog_DUMPBIN
5099 if test -n "$DUMPBIN"; then
5100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5101 $as_echo "$DUMPBIN" >&6; }
5102 else
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5104 $as_echo "no" >&6; }
5105 fi
5106
5107
5108     test -n "$DUMPBIN" && break
5109   done
5110 fi
5111 if test -z "$DUMPBIN"; then
5112   ac_ct_DUMPBIN=$DUMPBIN
5113   for ac_prog in dumpbin "link -dump"
5114 do
5115   # Extract the first word of "$ac_prog", so it can be a program name with args.
5116 set dummy $ac_prog; ac_word=$2
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5118 $as_echo_n "checking for $ac_word... " >&6; }
5119 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5120   $as_echo_n "(cached) " >&6
5121 else
5122   if test -n "$ac_ct_DUMPBIN"; then
5123   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5124 else
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5127 do
5128   IFS=$as_save_IFS
5129   test -z "$as_dir" && as_dir=.
5130     for ac_exec_ext in '' $ac_executable_extensions; do
5131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5132     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134     break 2
5135   fi
5136 done
5137   done
5138 IFS=$as_save_IFS
5139
5140 fi
5141 fi
5142 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5143 if test -n "$ac_ct_DUMPBIN"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5145 $as_echo "$ac_ct_DUMPBIN" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152   test -n "$ac_ct_DUMPBIN" && break
5153 done
5154
5155   if test "x$ac_ct_DUMPBIN" = x; then
5156     DUMPBIN=":"
5157   else
5158     case $cross_compiling:$ac_tool_warned in
5159 yes:)
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5162 ac_tool_warned=yes ;;
5163 esac
5164     DUMPBIN=$ac_ct_DUMPBIN
5165   fi
5166 fi
5167
5168     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5169     *COFF*)
5170       DUMPBIN="$DUMPBIN -symbols -headers"
5171       ;;
5172     *)
5173       DUMPBIN=:
5174       ;;
5175     esac
5176   fi
5177
5178   if test : != "$DUMPBIN"; then
5179     NM=$DUMPBIN
5180   fi
5181 fi
5182 test -z "$NM" && NM=nm
5183
5184
5185
5186
5187
5188
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5190 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5191 if ${lt_cv_nm_interface+:} false; then :
5192   $as_echo_n "(cached) " >&6
5193 else
5194   lt_cv_nm_interface="BSD nm"
5195   echo "int some_variable = 0;" > conftest.$ac_ext
5196   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5197   (eval "$ac_compile" 2>conftest.err)
5198   cat conftest.err >&5
5199   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5200   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5201   cat conftest.err >&5
5202   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5203   cat conftest.out >&5
5204   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5205     lt_cv_nm_interface="MS dumpbin"
5206   fi
5207   rm -f conftest*
5208 fi
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5210 $as_echo "$lt_cv_nm_interface" >&6; }
5211
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5213 $as_echo_n "checking whether ln -s works... " >&6; }
5214 LN_S=$as_ln_s
5215 if test "$LN_S" = "ln -s"; then
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5217 $as_echo "yes" >&6; }
5218 else
5219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5220 $as_echo "no, using $LN_S" >&6; }
5221 fi
5222
5223 # find the maximum length of command line arguments
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5225 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5226 if ${lt_cv_sys_max_cmd_len+:} false; then :
5227   $as_echo_n "(cached) " >&6
5228 else
5229     i=0
5230   teststring=ABCD
5231
5232   case $build_os in
5233   msdosdjgpp*)
5234     # On DJGPP, this test can blow up pretty badly due to problems in libc
5235     # (any single argument exceeding 2000 bytes causes a buffer overrun
5236     # during glob expansion).  Even if it were fixed, the result of this
5237     # check would be larger than it should be.
5238     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5239     ;;
5240
5241   gnu*)
5242     # Under GNU Hurd, this test is not required because there is
5243     # no limit to the length of command line arguments.
5244     # Libtool will interpret -1 as no limit whatsoever
5245     lt_cv_sys_max_cmd_len=-1;
5246     ;;
5247
5248   cygwin* | mingw* | cegcc*)
5249     # On Win9x/ME, this test blows up -- it succeeds, but takes
5250     # about 5 minutes as the teststring grows exponentially.
5251     # Worse, since 9x/ME are not pre-emptively multitasking,
5252     # you end up with a "frozen" computer, even though with patience
5253     # the test eventually succeeds (with a max line length of 256k).
5254     # Instead, let's just punt: use the minimum linelength reported by
5255     # all of the supported platforms: 8192 (on NT/2K/XP).
5256     lt_cv_sys_max_cmd_len=8192;
5257     ;;
5258
5259   mint*)
5260     # On MiNT this can take a long time and run out of memory.
5261     lt_cv_sys_max_cmd_len=8192;
5262     ;;
5263
5264   amigaos*)
5265     # On AmigaOS with pdksh, this test takes hours, literally.
5266     # So we just punt and use a minimum line length of 8192.
5267     lt_cv_sys_max_cmd_len=8192;
5268     ;;
5269
5270   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5271     # This has been around since 386BSD, at least.  Likely further.
5272     if test -x /sbin/sysctl; then
5273       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5274     elif test -x /usr/sbin/sysctl; then
5275       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5276     else
5277       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5278     fi
5279     # And add a safety zone
5280     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5281     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5282     ;;
5283
5284   interix*)
5285     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5286     lt_cv_sys_max_cmd_len=196608
5287     ;;
5288
5289   os2*)
5290     # The test takes a long time on OS/2.
5291     lt_cv_sys_max_cmd_len=8192
5292     ;;
5293
5294   osf*)
5295     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5296     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5297     # nice to cause kernel panics so lets avoid the loop below.
5298     # First set a reasonable default.
5299     lt_cv_sys_max_cmd_len=16384
5300     #
5301     if test -x /sbin/sysconfig; then
5302       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5303         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5304       esac
5305     fi
5306     ;;
5307   sco3.2v5*)
5308     lt_cv_sys_max_cmd_len=102400
5309     ;;
5310   sysv5* | sco5v6* | sysv4.2uw2*)
5311     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5312     if test -n "$kargmax"; then
5313       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5314     else
5315       lt_cv_sys_max_cmd_len=32768
5316     fi
5317     ;;
5318   *)
5319     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5320     if test -n "$lt_cv_sys_max_cmd_len" && \
5321        test undefined != "$lt_cv_sys_max_cmd_len"; then
5322       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5323       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5324     else
5325       # Make teststring a little bigger before we do anything with it.
5326       # a 1K string should be a reasonable start.
5327       for i in 1 2 3 4 5 6 7 8; do
5328         teststring=$teststring$teststring
5329       done
5330       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5331       # If test is not a shell built-in, we'll probably end up computing a
5332       # maximum length that is only half of the actual maximum length, but
5333       # we can't tell.
5334       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5335                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5336               test 17 != "$i" # 1/2 MB should be enough
5337       do
5338         i=`expr $i + 1`
5339         teststring=$teststring$teststring
5340       done
5341       # Only check the string length outside the loop.
5342       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5343       teststring=
5344       # Add a significant safety factor because C++ compilers can tack on
5345       # massive amounts of additional arguments before passing them to the
5346       # linker.  It appears as though 1/2 is a usable value.
5347       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5348     fi
5349     ;;
5350   esac
5351
5352 fi
5353
5354 if test -n "$lt_cv_sys_max_cmd_len"; then
5355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5356 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5357 else
5358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5359 $as_echo "none" >&6; }
5360 fi
5361 max_cmd_len=$lt_cv_sys_max_cmd_len
5362
5363
5364
5365
5366
5367
5368 : ${CP="cp -f"}
5369 : ${MV="mv -f"}
5370 : ${RM="rm -f"}
5371
5372 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5373   lt_unset=unset
5374 else
5375   lt_unset=false
5376 fi
5377
5378
5379
5380
5381
5382 # test EBCDIC or ASCII
5383 case `echo X|tr X '\101'` in
5384  A) # ASCII based system
5385     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5386   lt_SP2NL='tr \040 \012'
5387   lt_NL2SP='tr \015\012 \040\040'
5388   ;;
5389  *) # EBCDIC based system
5390   lt_SP2NL='tr \100 \n'
5391   lt_NL2SP='tr \r\n \100\100'
5392   ;;
5393 esac
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5404 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5405 if ${lt_cv_to_host_file_cmd+:} false; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   case $host in
5409   *-*-mingw* )
5410     case $build in
5411       *-*-mingw* ) # actually msys
5412         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5413         ;;
5414       *-*-cygwin* )
5415         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5416         ;;
5417       * ) # otherwise, assume *nix
5418         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5419         ;;
5420     esac
5421     ;;
5422   *-*-cygwin* )
5423     case $build in
5424       *-*-mingw* ) # actually msys
5425         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5426         ;;
5427       *-*-cygwin* )
5428         lt_cv_to_host_file_cmd=func_convert_file_noop
5429         ;;
5430       * ) # otherwise, assume *nix
5431         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5432         ;;
5433     esac
5434     ;;
5435   * ) # unhandled hosts (and "normal" native builds)
5436     lt_cv_to_host_file_cmd=func_convert_file_noop
5437     ;;
5438 esac
5439
5440 fi
5441
5442 to_host_file_cmd=$lt_cv_to_host_file_cmd
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5444 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5445
5446
5447
5448
5449
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5451 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5452 if ${lt_cv_to_tool_file_cmd+:} false; then :
5453   $as_echo_n "(cached) " >&6
5454 else
5455   #assume ordinary cross tools, or native build.
5456 lt_cv_to_tool_file_cmd=func_convert_file_noop
5457 case $host in
5458   *-*-mingw* )
5459     case $build in
5460       *-*-mingw* ) # actually msys
5461         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5462         ;;
5463     esac
5464     ;;
5465 esac
5466
5467 fi
5468
5469 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5471 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5472
5473
5474
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5478 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5479 if ${lt_cv_ld_reload_flag+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   lt_cv_ld_reload_flag='-r'
5483 fi
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5485 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5486 reload_flag=$lt_cv_ld_reload_flag
5487 case $reload_flag in
5488 "" | " "*) ;;
5489 *) reload_flag=" $reload_flag" ;;
5490 esac
5491 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5492 case $host_os in
5493   cygwin* | mingw* | pw32* | cegcc*)
5494     if test yes != "$GCC"; then
5495       reload_cmds=false
5496     fi
5497     ;;
5498   darwin*)
5499     if test yes = "$GCC"; then
5500       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5501     else
5502       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5503     fi
5504     ;;
5505 esac
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515 if test -n "$ac_tool_prefix"; then
5516   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5517 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_OBJDUMP+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   if test -n "$OBJDUMP"; then
5524   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5525 else
5526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5527 for as_dir in $PATH
5528 do
5529   IFS=$as_save_IFS
5530   test -z "$as_dir" && as_dir=.
5531     for ac_exec_ext in '' $ac_executable_extensions; do
5532   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5533     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5534     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5535     break 2
5536   fi
5537 done
5538   done
5539 IFS=$as_save_IFS
5540
5541 fi
5542 fi
5543 OBJDUMP=$ac_cv_prog_OBJDUMP
5544 if test -n "$OBJDUMP"; then
5545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5546 $as_echo "$OBJDUMP" >&6; }
5547 else
5548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5550 fi
5551
5552
5553 fi
5554 if test -z "$ac_cv_prog_OBJDUMP"; then
5555   ac_ct_OBJDUMP=$OBJDUMP
5556   # Extract the first word of "objdump", so it can be a program name with args.
5557 set dummy objdump; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$ac_ct_OBJDUMP"; then
5564   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5584 if test -n "$ac_ct_OBJDUMP"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5586 $as_echo "$ac_ct_OBJDUMP" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592   if test "x$ac_ct_OBJDUMP" = x; then
5593     OBJDUMP="false"
5594   else
5595     case $cross_compiling:$ac_tool_warned in
5596 yes:)
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned=yes ;;
5600 esac
5601     OBJDUMP=$ac_ct_OBJDUMP
5602   fi
5603 else
5604   OBJDUMP="$ac_cv_prog_OBJDUMP"
5605 fi
5606
5607 test -z "$OBJDUMP" && OBJDUMP=objdump
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5618 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5619 if ${lt_cv_deplibs_check_method+:} false; then :
5620   $as_echo_n "(cached) " >&6
5621 else
5622   lt_cv_file_magic_cmd='$MAGIC_CMD'
5623 lt_cv_file_magic_test_file=
5624 lt_cv_deplibs_check_method='unknown'
5625 # Need to set the preceding variable on all platforms that support
5626 # interlibrary dependencies.
5627 # 'none' -- dependencies not supported.
5628 # 'unknown' -- same as none, but documents that we really don't know.
5629 # 'pass_all' -- all dependencies passed with no checks.
5630 # 'test_compile' -- check by making test program.
5631 # 'file_magic [[regex]]' -- check by looking for files in library path
5632 # that responds to the $file_magic_cmd with a given extended regex.
5633 # If you have 'file' or equivalent on your system and you're not sure
5634 # whether 'pass_all' will *always* work, you probably want this one.
5635
5636 case $host_os in
5637 aix[4-9]*)
5638   lt_cv_deplibs_check_method=pass_all
5639   ;;
5640
5641 beos*)
5642   lt_cv_deplibs_check_method=pass_all
5643   ;;
5644
5645 bsdi[45]*)
5646   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5647   lt_cv_file_magic_cmd='/usr/bin/file -L'
5648   lt_cv_file_magic_test_file=/shlib/libc.so
5649   ;;
5650
5651 cygwin*)
5652   # func_win32_libid is a shell function defined in ltmain.sh
5653   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5654   lt_cv_file_magic_cmd='func_win32_libid'
5655   ;;
5656
5657 mingw* | pw32*)
5658   # Base MSYS/MinGW do not provide the 'file' command needed by
5659   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5660   # unless we find 'file', for example because we are cross-compiling.
5661   if ( file / ) >/dev/null 2>&1; then
5662     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5663     lt_cv_file_magic_cmd='func_win32_libid'
5664   else
5665     # Keep this pattern in sync with the one in func_win32_libid.
5666     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5667     lt_cv_file_magic_cmd='$OBJDUMP -f'
5668   fi
5669   ;;
5670
5671 cegcc*)
5672   # use the weaker test based on 'objdump'. See mingw*.
5673   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5674   lt_cv_file_magic_cmd='$OBJDUMP -f'
5675   ;;
5676
5677 darwin* | rhapsody*)
5678   lt_cv_deplibs_check_method=pass_all
5679   ;;
5680
5681 freebsd* | dragonfly*)
5682   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5683     case $host_cpu in
5684     i*86 )
5685       # Not sure whether the presence of OpenBSD here was a mistake.
5686       # Let's accept both of them until this is cleared up.
5687       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5688       lt_cv_file_magic_cmd=/usr/bin/file
5689       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5690       ;;
5691     esac
5692   else
5693     lt_cv_deplibs_check_method=pass_all
5694   fi
5695   ;;
5696
5697 haiku*)
5698   lt_cv_deplibs_check_method=pass_all
5699   ;;
5700
5701 hpux10.20* | hpux11*)
5702   lt_cv_file_magic_cmd=/usr/bin/file
5703   case $host_cpu in
5704   ia64*)
5705     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5706     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5707     ;;
5708   hppa*64*)
5709     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]'
5710     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5711     ;;
5712   *)
5713     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5714     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5715     ;;
5716   esac
5717   ;;
5718
5719 interix[3-9]*)
5720   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5721   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5722   ;;
5723
5724 irix5* | irix6* | nonstopux*)
5725   case $LD in
5726   *-32|*"-32 ") libmagic=32-bit;;
5727   *-n32|*"-n32 ") libmagic=N32;;
5728   *-64|*"-64 ") libmagic=64-bit;;
5729   *) libmagic=never-match;;
5730   esac
5731   lt_cv_deplibs_check_method=pass_all
5732   ;;
5733
5734 # This must be glibc/ELF.
5735 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5736   lt_cv_deplibs_check_method=pass_all
5737   ;;
5738
5739 netbsd*)
5740   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5741     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5742   else
5743     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5744   fi
5745   ;;
5746
5747 newos6*)
5748   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5749   lt_cv_file_magic_cmd=/usr/bin/file
5750   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5751   ;;
5752
5753 *nto* | *qnx*)
5754   lt_cv_deplibs_check_method=pass_all
5755   ;;
5756
5757 openbsd* | bitrig*)
5758   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5759     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5760   else
5761     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5762   fi
5763   ;;
5764
5765 osf3* | osf4* | osf5*)
5766   lt_cv_deplibs_check_method=pass_all
5767   ;;
5768
5769 rdos*)
5770   lt_cv_deplibs_check_method=pass_all
5771   ;;
5772
5773 solaris*)
5774   lt_cv_deplibs_check_method=pass_all
5775   ;;
5776
5777 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5778   lt_cv_deplibs_check_method=pass_all
5779   ;;
5780
5781 sysv4 | sysv4.3*)
5782   case $host_vendor in
5783   motorola)
5784     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]'
5785     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5786     ;;
5787   ncr)
5788     lt_cv_deplibs_check_method=pass_all
5789     ;;
5790   sequent)
5791     lt_cv_file_magic_cmd='/bin/file'
5792     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5793     ;;
5794   sni)
5795     lt_cv_file_magic_cmd='/bin/file'
5796     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5797     lt_cv_file_magic_test_file=/lib/libc.so
5798     ;;
5799   siemens)
5800     lt_cv_deplibs_check_method=pass_all
5801     ;;
5802   pc)
5803     lt_cv_deplibs_check_method=pass_all
5804     ;;
5805   esac
5806   ;;
5807
5808 tpf*)
5809   lt_cv_deplibs_check_method=pass_all
5810   ;;
5811 os2*)
5812   lt_cv_deplibs_check_method=pass_all
5813   ;;
5814 esac
5815
5816 fi
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5818 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5819
5820 file_magic_glob=
5821 want_nocaseglob=no
5822 if test "$build" = "$host"; then
5823   case $host_os in
5824   mingw* | pw32*)
5825     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5826       want_nocaseglob=yes
5827     else
5828       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5829     fi
5830     ;;
5831   esac
5832 fi
5833
5834 file_magic_cmd=$lt_cv_file_magic_cmd
5835 deplibs_check_method=$lt_cv_deplibs_check_method
5836 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 if test -n "$ac_tool_prefix"; then
5860   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5863 $as_echo_n "checking for $ac_word... " >&6; }
5864 if ${ac_cv_prog_DLLTOOL+:} false; then :
5865   $as_echo_n "(cached) " >&6
5866 else
5867   if test -n "$DLLTOOL"; then
5868   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873   IFS=$as_save_IFS
5874   test -z "$as_dir" && as_dir=.
5875     for ac_exec_ext in '' $ac_executable_extensions; do
5876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5877     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5879     break 2
5880   fi
5881 done
5882   done
5883 IFS=$as_save_IFS
5884
5885 fi
5886 fi
5887 DLLTOOL=$ac_cv_prog_DLLTOOL
5888 if test -n "$DLLTOOL"; then
5889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5890 $as_echo "$DLLTOOL" >&6; }
5891 else
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5893 $as_echo "no" >&6; }
5894 fi
5895
5896
5897 fi
5898 if test -z "$ac_cv_prog_DLLTOOL"; then
5899   ac_ct_DLLTOOL=$DLLTOOL
5900   # Extract the first word of "dlltool", so it can be a program name with args.
5901 set dummy dlltool; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5905   $as_echo_n "(cached) " >&6
5906 else
5907   if test -n "$ac_ct_DLLTOOL"; then
5908   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915     for ac_exec_ext in '' $ac_executable_extensions; do
5916   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5917     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919     break 2
5920   fi
5921 done
5922   done
5923 IFS=$as_save_IFS
5924
5925 fi
5926 fi
5927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5928 if test -n "$ac_ct_DLLTOOL"; then
5929   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5930 $as_echo "$ac_ct_DLLTOOL" >&6; }
5931 else
5932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5934 fi
5935
5936   if test "x$ac_ct_DLLTOOL" = x; then
5937     DLLTOOL="false"
5938   else
5939     case $cross_compiling:$ac_tool_warned in
5940 yes:)
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5943 ac_tool_warned=yes ;;
5944 esac
5945     DLLTOOL=$ac_ct_DLLTOOL
5946   fi
5947 else
5948   DLLTOOL="$ac_cv_prog_DLLTOOL"
5949 fi
5950
5951 test -z "$DLLTOOL" && DLLTOOL=dlltool
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5963 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5964 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5965   $as_echo_n "(cached) " >&6
5966 else
5967   lt_cv_sharedlib_from_linklib_cmd='unknown'
5968
5969 case $host_os in
5970 cygwin* | mingw* | pw32* | cegcc*)
5971   # two different shell functions defined in ltmain.sh;
5972   # decide which one to use based on capabilities of $DLLTOOL
5973   case `$DLLTOOL --help 2>&1` in
5974   *--identify-strict*)
5975     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5976     ;;
5977   *)
5978     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5979     ;;
5980   esac
5981   ;;
5982 *)
5983   # fallback: assume linklib IS sharedlib
5984   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5985   ;;
5986 esac
5987
5988 fi
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5990 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5991 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5992 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5993
5994
5995
5996
5997
5998
5999
6000
6001 if test -n "$ac_tool_prefix"; then
6002   for ac_prog in ar
6003   do
6004     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6005 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6007 $as_echo_n "checking for $ac_word... " >&6; }
6008 if ${ac_cv_prog_AR+:} false; then :
6009   $as_echo_n "(cached) " >&6
6010 else
6011   if test -n "$AR"; then
6012   ac_cv_prog_AR="$AR" # Let the user override the test.
6013 else
6014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6015 for as_dir in $PATH
6016 do
6017   IFS=$as_save_IFS
6018   test -z "$as_dir" && as_dir=.
6019     for ac_exec_ext in '' $ac_executable_extensions; do
6020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6021     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6023     break 2
6024   fi
6025 done
6026   done
6027 IFS=$as_save_IFS
6028
6029 fi
6030 fi
6031 AR=$ac_cv_prog_AR
6032 if test -n "$AR"; then
6033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6034 $as_echo "$AR" >&6; }
6035 else
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6037 $as_echo "no" >&6; }
6038 fi
6039
6040
6041     test -n "$AR" && break
6042   done
6043 fi
6044 if test -z "$AR"; then
6045   ac_ct_AR=$AR
6046   for ac_prog in ar
6047 do
6048   # Extract the first word of "$ac_prog", so it can be a program name with args.
6049 set dummy $ac_prog; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6053   $as_echo_n "(cached) " >&6
6054 else
6055   if test -n "$ac_ct_AR"; then
6056   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061   IFS=$as_save_IFS
6062   test -z "$as_dir" && as_dir=.
6063     for ac_exec_ext in '' $ac_executable_extensions; do
6064   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065     ac_cv_prog_ac_ct_AR="$ac_prog"
6066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067     break 2
6068   fi
6069 done
6070   done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6078 $as_echo "$ac_ct_AR" >&6; }
6079 else
6080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084
6085   test -n "$ac_ct_AR" && break
6086 done
6087
6088   if test "x$ac_ct_AR" = x; then
6089     AR="false"
6090   else
6091     case $cross_compiling:$ac_tool_warned in
6092 yes:)
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6095 ac_tool_warned=yes ;;
6096 esac
6097     AR=$ac_ct_AR
6098   fi
6099 fi
6100
6101 : ${AR=ar}
6102 : ${AR_FLAGS=cru}
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6115 $as_echo_n "checking for archiver @FILE support... " >&6; }
6116 if ${lt_cv_ar_at_file+:} false; then :
6117   $as_echo_n "(cached) " >&6
6118 else
6119   lt_cv_ar_at_file=no
6120    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121 /* end confdefs.h.  */
6122
6123 int
6124 main ()
6125 {
6126
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 if ac_fn_c_try_compile "$LINENO"; then :
6132   echo conftest.$ac_objext > conftest.lst
6133       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6134       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6135   (eval $lt_ar_try) 2>&5
6136   ac_status=$?
6137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6138   test $ac_status = 0; }
6139       if test 0 -eq "$ac_status"; then
6140         # Ensure the archiver fails upon bogus file names.
6141         rm -f conftest.$ac_objext libconftest.a
6142         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6143   (eval $lt_ar_try) 2>&5
6144   ac_status=$?
6145   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6146   test $ac_status = 0; }
6147         if test 0 -ne "$ac_status"; then
6148           lt_cv_ar_at_file=@
6149         fi
6150       fi
6151       rm -f conftest.* libconftest.a
6152
6153 fi
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6155
6156 fi
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6158 $as_echo "$lt_cv_ar_at_file" >&6; }
6159
6160 if test no = "$lt_cv_ar_at_file"; then
6161   archiver_list_spec=
6162 else
6163   archiver_list_spec=$lt_cv_ar_at_file
6164 fi
6165
6166
6167
6168
6169
6170
6171
6172 if test -n "$ac_tool_prefix"; then
6173   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}strip; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_STRIP+:} false; then :
6178   $as_echo_n "(cached) " >&6
6179 else
6180   if test -n "$STRIP"; then
6181   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186   IFS=$as_save_IFS
6187   test -z "$as_dir" && as_dir=.
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192     break 2
6193   fi
6194 done
6195   done
6196 IFS=$as_save_IFS
6197
6198 fi
6199 fi
6200 STRIP=$ac_cv_prog_STRIP
6201 if test -n "$STRIP"; then
6202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6203 $as_echo "$STRIP" >&6; }
6204 else
6205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6208
6209
6210 fi
6211 if test -z "$ac_cv_prog_STRIP"; then
6212   ac_ct_STRIP=$STRIP
6213   # Extract the first word of "strip", so it can be a program name with args.
6214 set dummy strip; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6218   $as_echo_n "(cached) " >&6
6219 else
6220   if test -n "$ac_ct_STRIP"; then
6221   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226   IFS=$as_save_IFS
6227   test -z "$as_dir" && as_dir=.
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230     ac_cv_prog_ac_ct_STRIP="strip"
6231     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6241 if test -n "$ac_ct_STRIP"; then
6242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6243 $as_echo "$ac_ct_STRIP" >&6; }
6244 else
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6248
6249   if test "x$ac_ct_STRIP" = x; then
6250     STRIP=":"
6251   else
6252     case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258     STRIP=$ac_ct_STRIP
6259   fi
6260 else
6261   STRIP="$ac_cv_prog_STRIP"
6262 fi
6263
6264 test -z "$STRIP" && STRIP=:
6265
6266
6267
6268
6269
6270
6271 if test -n "$ac_tool_prefix"; then
6272   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6273 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if ${ac_cv_prog_RANLIB+:} false; then :
6277   $as_echo_n "(cached) " >&6
6278 else
6279   if test -n "$RANLIB"; then
6280   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6284 do
6285   IFS=$as_save_IFS
6286   test -z "$as_dir" && as_dir=.
6287     for ac_exec_ext in '' $ac_executable_extensions; do
6288   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6289     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6290     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291     break 2
6292   fi
6293 done
6294   done
6295 IFS=$as_save_IFS
6296
6297 fi
6298 fi
6299 RANLIB=$ac_cv_prog_RANLIB
6300 if test -n "$RANLIB"; then
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6302 $as_echo "$RANLIB" >&6; }
6303 else
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307
6308
6309 fi
6310 if test -z "$ac_cv_prog_RANLIB"; then
6311   ac_ct_RANLIB=$RANLIB
6312   # Extract the first word of "ranlib", so it can be a program name with args.
6313 set dummy ranlib; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6317   $as_echo_n "(cached) " >&6
6318 else
6319   if test -n "$ac_ct_RANLIB"; then
6320   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6321 else
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323 for as_dir in $PATH
6324 do
6325   IFS=$as_save_IFS
6326   test -z "$as_dir" && as_dir=.
6327     for ac_exec_ext in '' $ac_executable_extensions; do
6328   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6329     ac_cv_prog_ac_ct_RANLIB="ranlib"
6330     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6331     break 2
6332   fi
6333 done
6334   done
6335 IFS=$as_save_IFS
6336
6337 fi
6338 fi
6339 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6340 if test -n "$ac_ct_RANLIB"; then
6341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6342 $as_echo "$ac_ct_RANLIB" >&6; }
6343 else
6344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6346 fi
6347
6348   if test "x$ac_ct_RANLIB" = x; then
6349     RANLIB=":"
6350   else
6351     case $cross_compiling:$ac_tool_warned in
6352 yes:)
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6355 ac_tool_warned=yes ;;
6356 esac
6357     RANLIB=$ac_ct_RANLIB
6358   fi
6359 else
6360   RANLIB="$ac_cv_prog_RANLIB"
6361 fi
6362
6363 test -z "$RANLIB" && RANLIB=:
6364
6365
6366
6367
6368
6369
6370 # Determine commands to create old-style static archives.
6371 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6372 old_postinstall_cmds='chmod 644 $oldlib'
6373 old_postuninstall_cmds=
6374
6375 if test -n "$RANLIB"; then
6376   case $host_os in
6377   bitrig* | openbsd*)
6378     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6379     ;;
6380   *)
6381     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6382     ;;
6383   esac
6384   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6385 fi
6386
6387 case $host_os in
6388   darwin*)
6389     lock_old_archive_extraction=yes ;;
6390   *)
6391     lock_old_archive_extraction=no ;;
6392 esac
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432 # If no C compiler was specified, use CC.
6433 LTCC=${LTCC-"$CC"}
6434
6435 # If no C compiler flags were specified, use CFLAGS.
6436 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6437
6438 # Allow CC to be a program name with arguments.
6439 compiler=$CC
6440
6441
6442 # Check for command to grab the raw symbol name followed by C symbol from nm.
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6444 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6445 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6446   $as_echo_n "(cached) " >&6
6447 else
6448
6449 # These are sane defaults that work on at least a few old systems.
6450 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6451
6452 # Character class describing NM global symbol codes.
6453 symcode='[BCDEGRST]'
6454
6455 # Regexp to match symbols that can be accessed directly from C.
6456 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6457
6458 # Define system-specific variables.
6459 case $host_os in
6460 aix*)
6461   symcode='[BCDT]'
6462   ;;
6463 cygwin* | mingw* | pw32* | cegcc*)
6464   symcode='[ABCDGISTW]'
6465   ;;
6466 hpux*)
6467   if test ia64 = "$host_cpu"; then
6468     symcode='[ABCDEGRST]'
6469   fi
6470   ;;
6471 irix* | nonstopux*)
6472   symcode='[BCDEGRST]'
6473   ;;
6474 osf*)
6475   symcode='[BCDEGQRST]'
6476   ;;
6477 solaris*)
6478   symcode='[BDRT]'
6479   ;;
6480 sco3.2v5*)
6481   symcode='[DT]'
6482   ;;
6483 sysv4.2uw2*)
6484   symcode='[DT]'
6485   ;;
6486 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6487   symcode='[ABDT]'
6488   ;;
6489 sysv4)
6490   symcode='[DFNSTU]'
6491   ;;
6492 esac
6493
6494 # If we're using GNU nm, then use its standard symbol codes.
6495 case `$NM -V 2>&1` in
6496 *GNU* | *'with BFD'*)
6497   symcode='[ABCDGIRSTW]' ;;
6498 esac
6499
6500 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6501   # Gets list of data symbols to import.
6502   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6503   # Adjust the below global symbol transforms to fixup imported variables.
6504   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6505   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6506   lt_c_name_lib_hook="\
6507   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6508   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6509 else
6510   # Disable hooks by default.
6511   lt_cv_sys_global_symbol_to_import=
6512   lt_cdecl_hook=
6513   lt_c_name_hook=
6514   lt_c_name_lib_hook=
6515 fi
6516
6517 # Transform an extracted symbol line into a proper C declaration.
6518 # Some systems (esp. on ia64) link data and code symbols differently,
6519 # so use this general approach.
6520 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6521 $lt_cdecl_hook\
6522 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6523 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6524
6525 # Transform an extracted symbol line into symbol name and symbol address
6526 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6527 $lt_c_name_hook\
6528 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6529 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6530
6531 # Transform an extracted symbol line into symbol name with lib prefix and
6532 # symbol address.
6533 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6534 $lt_c_name_lib_hook\
6535 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6536 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6537 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6538
6539 # Handle CRLF in mingw tool chain
6540 opt_cr=
6541 case $build_os in
6542 mingw*)
6543   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6544   ;;
6545 esac
6546
6547 # Try without a prefix underscore, then with it.
6548 for ac_symprfx in "" "_"; do
6549
6550   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6551   symxfrm="\\1 $ac_symprfx\\2 \\2"
6552
6553   # Write the raw and C identifiers.
6554   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6555     # Fake it for dumpbin and say T for any non-static function,
6556     # D for any global variable and I for any imported variable.
6557     # Also find C++ and __fastcall symbols from MSVC++,
6558     # which start with @ or ?.
6559     lt_cv_sys_global_symbol_pipe="$AWK '"\
6560 "     {last_section=section; section=\$ 3};"\
6561 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6562 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6563 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6564 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6565 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6566 "     \$ 0!~/External *\|/{next};"\
6567 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6568 "     {if(hide[section]) next};"\
6569 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6570 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6571 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6572 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6573 "     ' prfx=^$ac_symprfx"
6574   else
6575     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6576   fi
6577   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6578
6579   # Check to see that the pipe works correctly.
6580   pipe_works=no
6581
6582   rm -f conftest*
6583   cat > conftest.$ac_ext <<_LT_EOF
6584 #ifdef __cplusplus
6585 extern "C" {
6586 #endif
6587 char nm_test_var;
6588 void nm_test_func(void);
6589 void nm_test_func(void){}
6590 #ifdef __cplusplus
6591 }
6592 #endif
6593 int main(){nm_test_var='a';nm_test_func();return(0);}
6594 _LT_EOF
6595
6596   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6597   (eval $ac_compile) 2>&5
6598   ac_status=$?
6599   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6600   test $ac_status = 0; }; then
6601     # Now try to grab the symbols.
6602     nlist=conftest.nm
6603     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6604   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6605   ac_status=$?
6606   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607   test $ac_status = 0; } && test -s "$nlist"; then
6608       # Try sorting and uniquifying the output.
6609       if sort "$nlist" | uniq > "$nlist"T; then
6610         mv -f "$nlist"T "$nlist"
6611       else
6612         rm -f "$nlist"T
6613       fi
6614
6615       # Make sure that we snagged all the symbols we need.
6616       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6617         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6618           cat <<_LT_EOF > conftest.$ac_ext
6619 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6620 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6621 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6622    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6623 # define LT_DLSYM_CONST
6624 #elif defined __osf__
6625 /* This system does not cope well with relocations in const data.  */
6626 # define LT_DLSYM_CONST
6627 #else
6628 # define LT_DLSYM_CONST const
6629 #endif
6630
6631 #ifdef __cplusplus
6632 extern "C" {
6633 #endif
6634
6635 _LT_EOF
6636           # Now generate the symbol file.
6637           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6638
6639           cat <<_LT_EOF >> conftest.$ac_ext
6640
6641 /* The mapping between symbol names and symbols.  */
6642 LT_DLSYM_CONST struct {
6643   const char *name;
6644   void       *address;
6645 }
6646 lt__PROGRAM__LTX_preloaded_symbols[] =
6647 {
6648   { "@PROGRAM@", (void *) 0 },
6649 _LT_EOF
6650           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6651           cat <<\_LT_EOF >> conftest.$ac_ext
6652   {0, (void *) 0}
6653 };
6654
6655 /* This works around a problem in FreeBSD linker */
6656 #ifdef FREEBSD_WORKAROUND
6657 static const void *lt_preloaded_setup() {
6658   return lt__PROGRAM__LTX_preloaded_symbols;
6659 }
6660 #endif
6661
6662 #ifdef __cplusplus
6663 }
6664 #endif
6665 _LT_EOF
6666           # Now try linking the two files.
6667           mv conftest.$ac_objext conftstm.$ac_objext
6668           lt_globsym_save_LIBS=$LIBS
6669           lt_globsym_save_CFLAGS=$CFLAGS
6670           LIBS=conftstm.$ac_objext
6671           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6672           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6673   (eval $ac_link) 2>&5
6674   ac_status=$?
6675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6676   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6677             pipe_works=yes
6678           fi
6679           LIBS=$lt_globsym_save_LIBS
6680           CFLAGS=$lt_globsym_save_CFLAGS
6681         else
6682           echo "cannot find nm_test_func in $nlist" >&5
6683         fi
6684       else
6685         echo "cannot find nm_test_var in $nlist" >&5
6686       fi
6687     else
6688       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6689     fi
6690   else
6691     echo "$progname: failed program was:" >&5
6692     cat conftest.$ac_ext >&5
6693   fi
6694   rm -rf conftest* conftst*
6695
6696   # Do not use the global_symbol_pipe unless it works.
6697   if test yes = "$pipe_works"; then
6698     break
6699   else
6700     lt_cv_sys_global_symbol_pipe=
6701   fi
6702 done
6703
6704 fi
6705
6706 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6707   lt_cv_sys_global_symbol_to_cdecl=
6708 fi
6709 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6711 $as_echo "failed" >&6; }
6712 else
6713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6714 $as_echo "ok" >&6; }
6715 fi
6716
6717 # Response file support.
6718 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6719   nm_file_list_spec='@'
6720 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6721   nm_file_list_spec='@'
6722 fi
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6761 $as_echo_n "checking for sysroot... " >&6; }
6762
6763 # Check whether --with-sysroot was given.
6764 if test "${with_sysroot+set}" = set; then :
6765   withval=$with_sysroot;
6766 else
6767   with_sysroot=no
6768 fi
6769
6770
6771 lt_sysroot=
6772 case $with_sysroot in #(
6773  yes)
6774    if test yes = "$GCC"; then
6775      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6776    fi
6777    ;; #(
6778  /*)
6779    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6780    ;; #(
6781  no|'')
6782    ;; #(
6783  *)
6784    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6785 $as_echo "$with_sysroot" >&6; }
6786    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6787    ;;
6788 esac
6789
6790  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6791 $as_echo "${lt_sysroot:-no}" >&6; }
6792
6793
6794
6795
6796
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6798 $as_echo_n "checking for a working dd... " >&6; }
6799 if ${ac_cv_path_lt_DD+:} false; then :
6800   $as_echo_n "(cached) " >&6
6801 else
6802   printf 0123456789abcdef0123456789abcdef >conftest.i
6803 cat conftest.i conftest.i >conftest2.i
6804 : ${lt_DD:=$DD}
6805 if test -z "$lt_DD"; then
6806   ac_path_lt_DD_found=false
6807   # Loop through the user's path and test for each of PROGNAME-LIST
6808   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811   IFS=$as_save_IFS
6812   test -z "$as_dir" && as_dir=.
6813     for ac_prog in dd; do
6814     for ac_exec_ext in '' $ac_executable_extensions; do
6815       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6816       as_fn_executable_p "$ac_path_lt_DD" || continue
6817 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6818   cmp -s conftest.i conftest.out \
6819   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6820 fi
6821       $ac_path_lt_DD_found && break 3
6822     done
6823   done
6824   done
6825 IFS=$as_save_IFS
6826   if test -z "$ac_cv_path_lt_DD"; then
6827     :
6828   fi
6829 else
6830   ac_cv_path_lt_DD=$lt_DD
6831 fi
6832
6833 rm -f conftest.i conftest2.i conftest.out
6834 fi
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6836 $as_echo "$ac_cv_path_lt_DD" >&6; }
6837
6838
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6840 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6841 if ${lt_cv_truncate_bin+:} false; then :
6842   $as_echo_n "(cached) " >&6
6843 else
6844   printf 0123456789abcdef0123456789abcdef >conftest.i
6845 cat conftest.i conftest.i >conftest2.i
6846 lt_cv_truncate_bin=
6847 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6848   cmp -s conftest.i conftest.out \
6849   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6850 fi
6851 rm -f conftest.i conftest2.i conftest.out
6852 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6853 fi
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6855 $as_echo "$lt_cv_truncate_bin" >&6; }
6856
6857
6858
6859
6860
6861
6862
6863 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6864 func_cc_basename ()
6865 {
6866     for cc_temp in $*""; do
6867       case $cc_temp in
6868         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6869         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6870         \-*) ;;
6871         *) break;;
6872       esac
6873     done
6874     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6875 }
6876
6877 # Check whether --enable-libtool-lock was given.
6878 if test "${enable_libtool_lock+set}" = set; then :
6879   enableval=$enable_libtool_lock;
6880 fi
6881
6882 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6883
6884 # Some flags need to be propagated to the compiler or linker for good
6885 # libtool support.
6886 case $host in
6887 ia64-*-hpux*)
6888   # Find out what ABI is being produced by ac_compile, and set mode
6889   # options accordingly.
6890   echo 'int i;' > conftest.$ac_ext
6891   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6892   (eval $ac_compile) 2>&5
6893   ac_status=$?
6894   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6895   test $ac_status = 0; }; then
6896     case `/usr/bin/file conftest.$ac_objext` in
6897       *ELF-32*)
6898         HPUX_IA64_MODE=32
6899         ;;
6900       *ELF-64*)
6901         HPUX_IA64_MODE=64
6902         ;;
6903     esac
6904   fi
6905   rm -rf conftest*
6906   ;;
6907 *-*-irix6*)
6908   # Find out what ABI is being produced by ac_compile, and set linker
6909   # options accordingly.
6910   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6911   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6912   (eval $ac_compile) 2>&5
6913   ac_status=$?
6914   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915   test $ac_status = 0; }; then
6916     if test yes = "$lt_cv_prog_gnu_ld"; then
6917       case `/usr/bin/file conftest.$ac_objext` in
6918         *32-bit*)
6919           LD="${LD-ld} -melf32bsmip"
6920           ;;
6921         *N32*)
6922           LD="${LD-ld} -melf32bmipn32"
6923           ;;
6924         *64-bit*)
6925           LD="${LD-ld} -melf64bmip"
6926         ;;
6927       esac
6928     else
6929       case `/usr/bin/file conftest.$ac_objext` in
6930         *32-bit*)
6931           LD="${LD-ld} -32"
6932           ;;
6933         *N32*)
6934           LD="${LD-ld} -n32"
6935           ;;
6936         *64-bit*)
6937           LD="${LD-ld} -64"
6938           ;;
6939       esac
6940     fi
6941   fi
6942   rm -rf conftest*
6943   ;;
6944
6945 mips64*-*linux*)
6946   # Find out what ABI is being produced by ac_compile, and set linker
6947   # options accordingly.
6948   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6949   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6950   (eval $ac_compile) 2>&5
6951   ac_status=$?
6952   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6953   test $ac_status = 0; }; then
6954     emul=elf
6955     case `/usr/bin/file conftest.$ac_objext` in
6956       *32-bit*)
6957         emul="${emul}32"
6958         ;;
6959       *64-bit*)
6960         emul="${emul}64"
6961         ;;
6962     esac
6963     case `/usr/bin/file conftest.$ac_objext` in
6964       *MSB*)
6965         emul="${emul}btsmip"
6966         ;;
6967       *LSB*)
6968         emul="${emul}ltsmip"
6969         ;;
6970     esac
6971     case `/usr/bin/file conftest.$ac_objext` in
6972       *N32*)
6973         emul="${emul}n32"
6974         ;;
6975     esac
6976     LD="${LD-ld} -m $emul"
6977   fi
6978   rm -rf conftest*
6979   ;;
6980
6981 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6982 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6983   # Find out what ABI is being produced by ac_compile, and set linker
6984   # options accordingly.  Note that the listed cases only cover the
6985   # situations where additional linker options are needed (such as when
6986   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6987   # vice versa); the common cases where no linker options are needed do
6988   # not appear in the list.
6989   echo 'int i;' > conftest.$ac_ext
6990   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6991   (eval $ac_compile) 2>&5
6992   ac_status=$?
6993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6994   test $ac_status = 0; }; then
6995     case `/usr/bin/file conftest.o` in
6996       *32-bit*)
6997         case $host in
6998           x86_64-*kfreebsd*-gnu)
6999             LD="${LD-ld} -m elf_i386_fbsd"
7000             ;;
7001           x86_64-*linux*)
7002             case `/usr/bin/file conftest.o` in
7003               *x86-64*)
7004                 LD="${LD-ld} -m elf32_x86_64"
7005                 ;;
7006               *)
7007                 LD="${LD-ld} -m elf_i386"
7008                 ;;
7009             esac
7010             ;;
7011           powerpc64le-*linux*)
7012             LD="${LD-ld} -m elf32lppclinux"
7013             ;;
7014           powerpc64-*linux*)
7015             LD="${LD-ld} -m elf32ppclinux"
7016             ;;
7017           s390x-*linux*)
7018             LD="${LD-ld} -m elf_s390"
7019             ;;
7020           sparc64-*linux*)
7021             LD="${LD-ld} -m elf32_sparc"
7022             ;;
7023         esac
7024         ;;
7025       *64-bit*)
7026         case $host in
7027           x86_64-*kfreebsd*-gnu)
7028             LD="${LD-ld} -m elf_x86_64_fbsd"
7029             ;;
7030           x86_64-*linux*)
7031             LD="${LD-ld} -m elf_x86_64"
7032             ;;
7033           powerpcle-*linux*)
7034             LD="${LD-ld} -m elf64lppc"
7035             ;;
7036           powerpc-*linux*)
7037             LD="${LD-ld} -m elf64ppc"
7038             ;;
7039           s390*-*linux*|s390*-*tpf*)
7040             LD="${LD-ld} -m elf64_s390"
7041             ;;
7042           sparc*-*linux*)
7043             LD="${LD-ld} -m elf64_sparc"
7044             ;;
7045         esac
7046         ;;
7047     esac
7048   fi
7049   rm -rf conftest*
7050   ;;
7051
7052 *-*-sco3.2v5*)
7053   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7054   SAVE_CFLAGS=$CFLAGS
7055   CFLAGS="$CFLAGS -belf"
7056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7057 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7058 if ${lt_cv_cc_needs_belf+:} false; then :
7059   $as_echo_n "(cached) " >&6
7060 else
7061   ac_ext=c
7062 ac_cpp='$CPP $CPPFLAGS'
7063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7066
7067      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h.  */
7069
7070 int
7071 main ()
7072 {
7073
7074   ;
7075   return 0;
7076 }
7077 _ACEOF
7078 if ac_fn_c_try_link "$LINENO"; then :
7079   lt_cv_cc_needs_belf=yes
7080 else
7081   lt_cv_cc_needs_belf=no
7082 fi
7083 rm -f core conftest.err conftest.$ac_objext \
7084     conftest$ac_exeext conftest.$ac_ext
7085      ac_ext=c
7086 ac_cpp='$CPP $CPPFLAGS'
7087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7090
7091 fi
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7093 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7094   if test yes != "$lt_cv_cc_needs_belf"; then
7095     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7096     CFLAGS=$SAVE_CFLAGS
7097   fi
7098   ;;
7099 *-*solaris*)
7100   # Find out what ABI is being produced by ac_compile, and set linker
7101   # options accordingly.
7102   echo 'int i;' > conftest.$ac_ext
7103   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104   (eval $ac_compile) 2>&5
7105   ac_status=$?
7106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107   test $ac_status = 0; }; then
7108     case `/usr/bin/file conftest.o` in
7109     *64-bit*)
7110       case $lt_cv_prog_gnu_ld in
7111       yes*)
7112         case $host in
7113         i?86-*-solaris*|x86_64-*-solaris*)
7114           LD="${LD-ld} -m elf_x86_64"
7115           ;;
7116         sparc*-*-solaris*)
7117           LD="${LD-ld} -m elf64_sparc"
7118           ;;
7119         esac
7120         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7121         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7122           LD=${LD-ld}_sol2
7123         fi
7124         ;;
7125       *)
7126         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7127           LD="${LD-ld} -64"
7128         fi
7129         ;;
7130       esac
7131       ;;
7132     esac
7133   fi
7134   rm -rf conftest*
7135   ;;
7136 esac
7137
7138 need_locks=$enable_libtool_lock
7139
7140 if test -n "$ac_tool_prefix"; then
7141   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}mt; ac_word=$2
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7144 $as_echo_n "checking for $ac_word... " >&6; }
7145 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7146   $as_echo_n "(cached) " >&6
7147 else
7148   if test -n "$MANIFEST_TOOL"; then
7149   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156     for ac_exec_ext in '' $ac_executable_extensions; do
7157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7158     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163   done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7169 if test -n "$MANIFEST_TOOL"; then
7170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7171 $as_echo "$MANIFEST_TOOL" >&6; }
7172 else
7173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174 $as_echo "no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7180   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7181   # Extract the first word of "mt", so it can be a program name with args.
7182 set dummy mt; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   if test -n "$ac_ct_MANIFEST_TOOL"; then
7189   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196     for ac_exec_ext in '' $ac_executable_extensions; do
7197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203   done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7209 if test -n "$ac_ct_MANIFEST_TOOL"; then
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7211 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7212 else
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217   if test "x$ac_ct_MANIFEST_TOOL" = x; then
7218     MANIFEST_TOOL=":"
7219   else
7220     case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7224 ac_tool_warned=yes ;;
7225 esac
7226     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7227   fi
7228 else
7229   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7230 fi
7231
7232 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7234 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7235 if ${lt_cv_path_mainfest_tool+:} false; then :
7236   $as_echo_n "(cached) " >&6
7237 else
7238   lt_cv_path_mainfest_tool=no
7239   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7240   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7241   cat conftest.err >&5
7242   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7243     lt_cv_path_mainfest_tool=yes
7244   fi
7245   rm -f conftest*
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7248 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7249 if test yes != "$lt_cv_path_mainfest_tool"; then
7250   MANIFEST_TOOL=:
7251 fi
7252
7253
7254
7255
7256
7257
7258   case $host_os in
7259     rhapsody* | darwin*)
7260     if test -n "$ac_tool_prefix"; then
7261   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7262 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7266   $as_echo_n "(cached) " >&6
7267 else
7268   if test -n "$DSYMUTIL"; then
7269   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274   IFS=$as_save_IFS
7275   test -z "$as_dir" && as_dir=.
7276     for ac_exec_ext in '' $ac_executable_extensions; do
7277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280     break 2
7281   fi
7282 done
7283   done
7284 IFS=$as_save_IFS
7285
7286 fi
7287 fi
7288 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7289 if test -n "$DSYMUTIL"; then
7290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7291 $as_echo "$DSYMUTIL" >&6; }
7292 else
7293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7296
7297
7298 fi
7299 if test -z "$ac_cv_prog_DSYMUTIL"; then
7300   ac_ct_DSYMUTIL=$DSYMUTIL
7301   # Extract the first word of "dsymutil", so it can be a program name with args.
7302 set dummy dsymutil; ac_word=$2
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7304 $as_echo_n "checking for $ac_word... " >&6; }
7305 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7306   $as_echo_n "(cached) " >&6
7307 else
7308   if test -n "$ac_ct_DSYMUTIL"; then
7309   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7310 else
7311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7312 for as_dir in $PATH
7313 do
7314   IFS=$as_save_IFS
7315   test -z "$as_dir" && as_dir=.
7316     for ac_exec_ext in '' $ac_executable_extensions; do
7317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7318     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7320     break 2
7321   fi
7322 done
7323   done
7324 IFS=$as_save_IFS
7325
7326 fi
7327 fi
7328 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7329 if test -n "$ac_ct_DSYMUTIL"; then
7330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7331 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7332 else
7333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7335 fi
7336
7337   if test "x$ac_ct_DSYMUTIL" = x; then
7338     DSYMUTIL=":"
7339   else
7340     case $cross_compiling:$ac_tool_warned in
7341 yes:)
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7344 ac_tool_warned=yes ;;
7345 esac
7346     DSYMUTIL=$ac_ct_DSYMUTIL
7347   fi
7348 else
7349   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7350 fi
7351
7352     if test -n "$ac_tool_prefix"; then
7353   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_NMEDIT+:} false; then :
7358   $as_echo_n "(cached) " >&6
7359 else
7360   if test -n "$NMEDIT"; then
7361   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366   IFS=$as_save_IFS
7367   test -z "$as_dir" && as_dir=.
7368     for ac_exec_ext in '' $ac_executable_extensions; do
7369   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7371     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372     break 2
7373   fi
7374 done
7375   done
7376 IFS=$as_save_IFS
7377
7378 fi
7379 fi
7380 NMEDIT=$ac_cv_prog_NMEDIT
7381 if test -n "$NMEDIT"; then
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7383 $as_echo "$NMEDIT" >&6; }
7384 else
7385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7388
7389
7390 fi
7391 if test -z "$ac_cv_prog_NMEDIT"; then
7392   ac_ct_NMEDIT=$NMEDIT
7393   # Extract the first word of "nmedit", so it can be a program name with args.
7394 set dummy nmedit; ac_word=$2
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7396 $as_echo_n "checking for $ac_word... " >&6; }
7397 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7398   $as_echo_n "(cached) " >&6
7399 else
7400   if test -n "$ac_ct_NMEDIT"; then
7401   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7402 else
7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 for as_dir in $PATH
7405 do
7406   IFS=$as_save_IFS
7407   test -z "$as_dir" && as_dir=.
7408     for ac_exec_ext in '' $ac_executable_extensions; do
7409   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7410     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7411     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412     break 2
7413   fi
7414 done
7415   done
7416 IFS=$as_save_IFS
7417
7418 fi
7419 fi
7420 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7421 if test -n "$ac_ct_NMEDIT"; then
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7423 $as_echo "$ac_ct_NMEDIT" >&6; }
7424 else
7425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7426 $as_echo "no" >&6; }
7427 fi
7428
7429   if test "x$ac_ct_NMEDIT" = x; then
7430     NMEDIT=":"
7431   else
7432     case $cross_compiling:$ac_tool_warned in
7433 yes:)
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7436 ac_tool_warned=yes ;;
7437 esac
7438     NMEDIT=$ac_ct_NMEDIT
7439   fi
7440 else
7441   NMEDIT="$ac_cv_prog_NMEDIT"
7442 fi
7443
7444     if test -n "$ac_tool_prefix"; then
7445   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7446 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_LIPO+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   if test -n "$LIPO"; then
7453   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460     for ac_exec_ext in '' $ac_executable_extensions; do
7461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467   done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 LIPO=$ac_cv_prog_LIPO
7473 if test -n "$LIPO"; then
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7475 $as_echo "$LIPO" >&6; }
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480
7481
7482 fi
7483 if test -z "$ac_cv_prog_LIPO"; then
7484   ac_ct_LIPO=$LIPO
7485   # Extract the first word of "lipo", so it can be a program name with args.
7486 set dummy lipo; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7490   $as_echo_n "(cached) " >&6
7491 else
7492   if test -n "$ac_ct_LIPO"; then
7493   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7494 else
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH
7497 do
7498   IFS=$as_save_IFS
7499   test -z "$as_dir" && as_dir=.
7500     for ac_exec_ext in '' $ac_executable_extensions; do
7501   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7502     ac_cv_prog_ac_ct_LIPO="lipo"
7503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7504     break 2
7505   fi
7506 done
7507   done
7508 IFS=$as_save_IFS
7509
7510 fi
7511 fi
7512 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7513 if test -n "$ac_ct_LIPO"; then
7514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7515 $as_echo "$ac_ct_LIPO" >&6; }
7516 else
7517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518 $as_echo "no" >&6; }
7519 fi
7520
7521   if test "x$ac_ct_LIPO" = x; then
7522     LIPO=":"
7523   else
7524     case $cross_compiling:$ac_tool_warned in
7525 yes:)
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7528 ac_tool_warned=yes ;;
7529 esac
7530     LIPO=$ac_ct_LIPO
7531   fi
7532 else
7533   LIPO="$ac_cv_prog_LIPO"
7534 fi
7535
7536     if test -n "$ac_tool_prefix"; then
7537   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7538 set dummy ${ac_tool_prefix}otool; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_OTOOL+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   if test -n "$OTOOL"; then
7545   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 OTOOL=$ac_cv_prog_OTOOL
7565 if test -n "$OTOOL"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7567 $as_echo "$OTOOL" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573
7574 fi
7575 if test -z "$ac_cv_prog_OTOOL"; then
7576   ac_ct_OTOOL=$OTOOL
7577   # Extract the first word of "otool", so it can be a program name with args.
7578 set dummy otool; ac_word=$2
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580 $as_echo_n "checking for $ac_word... " >&6; }
7581 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7582   $as_echo_n "(cached) " >&6
7583 else
7584   if test -n "$ac_ct_OTOOL"; then
7585   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7586 else
7587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588 for as_dir in $PATH
7589 do
7590   IFS=$as_save_IFS
7591   test -z "$as_dir" && as_dir=.
7592     for ac_exec_ext in '' $ac_executable_extensions; do
7593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594     ac_cv_prog_ac_ct_OTOOL="otool"
7595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596     break 2
7597   fi
7598 done
7599   done
7600 IFS=$as_save_IFS
7601
7602 fi
7603 fi
7604 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7605 if test -n "$ac_ct_OTOOL"; then
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7607 $as_echo "$ac_ct_OTOOL" >&6; }
7608 else
7609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610 $as_echo "no" >&6; }
7611 fi
7612
7613   if test "x$ac_ct_OTOOL" = x; then
7614     OTOOL=":"
7615   else
7616     case $cross_compiling:$ac_tool_warned in
7617 yes:)
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7620 ac_tool_warned=yes ;;
7621 esac
7622     OTOOL=$ac_ct_OTOOL
7623   fi
7624 else
7625   OTOOL="$ac_cv_prog_OTOOL"
7626 fi
7627
7628     if test -n "$ac_tool_prefix"; then
7629   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7630 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_OTOOL64+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   if test -n "$OTOOL64"; then
7637   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 OTOOL64=$ac_cv_prog_OTOOL64
7657 if test -n "$OTOOL64"; then
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7659 $as_echo "$OTOOL64" >&6; }
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665
7666 fi
7667 if test -z "$ac_cv_prog_OTOOL64"; then
7668   ac_ct_OTOOL64=$OTOOL64
7669   # Extract the first word of "otool64", so it can be a program name with args.
7670 set dummy otool64; ac_word=$2
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7672 $as_echo_n "checking for $ac_word... " >&6; }
7673 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   if test -n "$ac_ct_OTOOL64"; then
7677   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7678 else
7679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7680 for as_dir in $PATH
7681 do
7682   IFS=$as_save_IFS
7683   test -z "$as_dir" && as_dir=.
7684     for ac_exec_ext in '' $ac_executable_extensions; do
7685   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7686     ac_cv_prog_ac_ct_OTOOL64="otool64"
7687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7688     break 2
7689   fi
7690 done
7691   done
7692 IFS=$as_save_IFS
7693
7694 fi
7695 fi
7696 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7697 if test -n "$ac_ct_OTOOL64"; then
7698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7699 $as_echo "$ac_ct_OTOOL64" >&6; }
7700 else
7701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7702 $as_echo "no" >&6; }
7703 fi
7704
7705   if test "x$ac_ct_OTOOL64" = x; then
7706     OTOOL64=":"
7707   else
7708     case $cross_compiling:$ac_tool_warned in
7709 yes:)
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7712 ac_tool_warned=yes ;;
7713 esac
7714     OTOOL64=$ac_ct_OTOOL64
7715   fi
7716 else
7717   OTOOL64="$ac_cv_prog_OTOOL64"
7718 fi
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7747 $as_echo_n "checking for -single_module linker flag... " >&6; }
7748 if ${lt_cv_apple_cc_single_mod+:} false; then :
7749   $as_echo_n "(cached) " >&6
7750 else
7751   lt_cv_apple_cc_single_mod=no
7752       if test -z "$LT_MULTI_MODULE"; then
7753         # By default we will add the -single_module flag. You can override
7754         # by either setting the environment variable LT_MULTI_MODULE
7755         # non-empty at configure time, or by adding -multi_module to the
7756         # link flags.
7757         rm -rf libconftest.dylib*
7758         echo "int foo(void){return 1;}" > conftest.c
7759         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7760 -dynamiclib -Wl,-single_module conftest.c" >&5
7761         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7762           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7763         _lt_result=$?
7764         # If there is a non-empty error log, and "single_module"
7765         # appears in it, assume the flag caused a linker warning
7766         if test -s conftest.err && $GREP single_module conftest.err; then
7767           cat conftest.err >&5
7768         # Otherwise, if the output was created with a 0 exit code from
7769         # the compiler, it worked.
7770         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7771           lt_cv_apple_cc_single_mod=yes
7772         else
7773           cat conftest.err >&5
7774         fi
7775         rm -rf libconftest.dylib*
7776         rm -f conftest.*
7777       fi
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7780 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7781
7782     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7783 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7784 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7785   $as_echo_n "(cached) " >&6
7786 else
7787   lt_cv_ld_exported_symbols_list=no
7788       save_LDFLAGS=$LDFLAGS
7789       echo "_main" > conftest.sym
7790       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h.  */
7793
7794 int
7795 main ()
7796 {
7797
7798   ;
7799   return 0;
7800 }
7801 _ACEOF
7802 if ac_fn_c_try_link "$LINENO"; then :
7803   lt_cv_ld_exported_symbols_list=yes
7804 else
7805   lt_cv_ld_exported_symbols_list=no
7806 fi
7807 rm -f core conftest.err conftest.$ac_objext \
7808     conftest$ac_exeext conftest.$ac_ext
7809         LDFLAGS=$save_LDFLAGS
7810
7811 fi
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7813 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7814
7815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7816 $as_echo_n "checking for -force_load linker flag... " >&6; }
7817 if ${lt_cv_ld_force_load+:} false; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   lt_cv_ld_force_load=no
7821       cat > conftest.c << _LT_EOF
7822 int forced_loaded() { return 2;}
7823 _LT_EOF
7824       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7825       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7826       echo "$AR cru libconftest.a conftest.o" >&5
7827       $AR cru libconftest.a conftest.o 2>&5
7828       echo "$RANLIB libconftest.a" >&5
7829       $RANLIB libconftest.a 2>&5
7830       cat > conftest.c << _LT_EOF
7831 int main() { return 0;}
7832 _LT_EOF
7833       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7834       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7835       _lt_result=$?
7836       if test -s conftest.err && $GREP force_load conftest.err; then
7837         cat conftest.err >&5
7838       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7839         lt_cv_ld_force_load=yes
7840       else
7841         cat conftest.err >&5
7842       fi
7843         rm -f conftest.err libconftest.a conftest conftest.c
7844         rm -rf conftest.dSYM
7845
7846 fi
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7848 $as_echo "$lt_cv_ld_force_load" >&6; }
7849     case $host_os in
7850     rhapsody* | darwin1.[012])
7851       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7852     darwin1.*)
7853       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7854     darwin*) # darwin 5.x on
7855       # if running on 10.5 or later, the deployment target defaults
7856       # to the OS version, if on x86, and 10.4, the deployment
7857       # target defaults to 10.4. Don't you love it?
7858       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7859         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7860           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7861         10.[012][,.]*)
7862           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7863         10.*)
7864           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7865       esac
7866     ;;
7867   esac
7868     if test yes = "$lt_cv_apple_cc_single_mod"; then
7869       _lt_dar_single_mod='$single_module'
7870     fi
7871     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7872       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7873     else
7874       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7875     fi
7876     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7877       _lt_dsymutil='~$DSYMUTIL $lib || :'
7878     else
7879       _lt_dsymutil=
7880     fi
7881     ;;
7882   esac
7883
7884 # func_munge_path_list VARIABLE PATH
7885 # -----------------------------------
7886 # VARIABLE is name of variable containing _space_ separated list of
7887 # directories to be munged by the contents of PATH, which is string
7888 # having a format:
7889 # "DIR[:DIR]:"
7890 #       string "DIR[ DIR]" will be prepended to VARIABLE
7891 # ":DIR[:DIR]"
7892 #       string "DIR[ DIR]" will be appended to VARIABLE
7893 # "DIRP[:DIRP]::[DIRA:]DIRA"
7894 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7895 #       "DIRA[ DIRA]" will be appended to VARIABLE
7896 # "DIR[:DIR]"
7897 #       VARIABLE will be replaced by "DIR[ DIR]"
7898 func_munge_path_list ()
7899 {
7900     case x$2 in
7901     x)
7902         ;;
7903     *:)
7904         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7905         ;;
7906     x:*)
7907         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7908         ;;
7909     *::*)
7910         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7911         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7912         ;;
7913     *)
7914         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7915         ;;
7916     esac
7917 }
7918
7919 ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7925 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7926 # On Suns, sometimes $CPP names a directory.
7927 if test -n "$CPP" && test -d "$CPP"; then
7928   CPP=
7929 fi
7930 if test -z "$CPP"; then
7931   if ${ac_cv_prog_CPP+:} false; then :
7932   $as_echo_n "(cached) " >&6
7933 else
7934       # Double quotes because CPP needs to be expanded
7935     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7936     do
7937       ac_preproc_ok=false
7938 for ac_c_preproc_warn_flag in '' yes
7939 do
7940   # Use a header file that comes with gcc, so configuring glibc
7941   # with a fresh cross-compiler works.
7942   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7943   # <limits.h> exists even on freestanding compilers.
7944   # On the NeXT, cc -E runs the code through the compiler's parser,
7945   # not just through cpp. "Syntax error" is here to catch this case.
7946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h.  */
7948 #ifdef __STDC__
7949 # include <limits.h>
7950 #else
7951 # include <assert.h>
7952 #endif
7953                      Syntax error
7954 _ACEOF
7955 if ac_fn_c_try_cpp "$LINENO"; then :
7956
7957 else
7958   # Broken: fails on valid input.
7959 continue
7960 fi
7961 rm -f conftest.err conftest.i conftest.$ac_ext
7962
7963   # OK, works on sane cases.  Now check whether nonexistent headers
7964   # can be detected and how.
7965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h.  */
7967 #include <ac_nonexistent.h>
7968 _ACEOF
7969 if ac_fn_c_try_cpp "$LINENO"; then :
7970   # Broken: success on invalid input.
7971 continue
7972 else
7973   # Passes both tests.
7974 ac_preproc_ok=:
7975 break
7976 fi
7977 rm -f conftest.err conftest.i conftest.$ac_ext
7978
7979 done
7980 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7981 rm -f conftest.i conftest.err conftest.$ac_ext
7982 if $ac_preproc_ok; then :
7983   break
7984 fi
7985
7986     done
7987     ac_cv_prog_CPP=$CPP
7988
7989 fi
7990   CPP=$ac_cv_prog_CPP
7991 else
7992   ac_cv_prog_CPP=$CPP
7993 fi
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7995 $as_echo "$CPP" >&6; }
7996 ac_preproc_ok=false
7997 for ac_c_preproc_warn_flag in '' yes
7998 do
7999   # Use a header file that comes with gcc, so configuring glibc
8000   # with a fresh cross-compiler works.
8001   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8002   # <limits.h> exists even on freestanding compilers.
8003   # On the NeXT, cc -E runs the code through the compiler's parser,
8004   # not just through cpp. "Syntax error" is here to catch this case.
8005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h.  */
8007 #ifdef __STDC__
8008 # include <limits.h>
8009 #else
8010 # include <assert.h>
8011 #endif
8012                      Syntax error
8013 _ACEOF
8014 if ac_fn_c_try_cpp "$LINENO"; then :
8015
8016 else
8017   # Broken: fails on valid input.
8018 continue
8019 fi
8020 rm -f conftest.err conftest.i conftest.$ac_ext
8021
8022   # OK, works on sane cases.  Now check whether nonexistent headers
8023   # can be detected and how.
8024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h.  */
8026 #include <ac_nonexistent.h>
8027 _ACEOF
8028 if ac_fn_c_try_cpp "$LINENO"; then :
8029   # Broken: success on invalid input.
8030 continue
8031 else
8032   # Passes both tests.
8033 ac_preproc_ok=:
8034 break
8035 fi
8036 rm -f conftest.err conftest.i conftest.$ac_ext
8037
8038 done
8039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8040 rm -f conftest.i conftest.err conftest.$ac_ext
8041 if $ac_preproc_ok; then :
8042
8043 else
8044   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8046 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8047 See \`config.log' for more details" "$LINENO" 5; }
8048 fi
8049
8050 ac_ext=c
8051 ac_cpp='$CPP $CPPFLAGS'
8052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8055
8056
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8058 $as_echo_n "checking for ANSI C header files... " >&6; }
8059 if ${ac_cv_header_stdc+:} false; then :
8060   $as_echo_n "(cached) " >&6
8061 else
8062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h.  */
8064 #include <stdlib.h>
8065 #include <stdarg.h>
8066 #include <string.h>
8067 #include <float.h>
8068
8069 int
8070 main ()
8071 {
8072
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 if ac_fn_c_try_compile "$LINENO"; then :
8078   ac_cv_header_stdc=yes
8079 else
8080   ac_cv_header_stdc=no
8081 fi
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083
8084 if test $ac_cv_header_stdc = yes; then
8085   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8086   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h.  */
8088 #include <string.h>
8089
8090 _ACEOF
8091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8092   $EGREP "memchr" >/dev/null 2>&1; then :
8093
8094 else
8095   ac_cv_header_stdc=no
8096 fi
8097 rm -f conftest*
8098
8099 fi
8100
8101 if test $ac_cv_header_stdc = yes; then
8102   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8104 /* end confdefs.h.  */
8105 #include <stdlib.h>
8106
8107 _ACEOF
8108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8109   $EGREP "free" >/dev/null 2>&1; then :
8110
8111 else
8112   ac_cv_header_stdc=no
8113 fi
8114 rm -f conftest*
8115
8116 fi
8117
8118 if test $ac_cv_header_stdc = yes; then
8119   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8120   if test "$cross_compiling" = yes; then :
8121   :
8122 else
8123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h.  */
8125 #include <ctype.h>
8126 #include <stdlib.h>
8127 #if ((' ' & 0x0FF) == 0x020)
8128 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8129 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8130 #else
8131 # define ISLOWER(c) \
8132                    (('a' <= (c) && (c) <= 'i') \
8133                      || ('j' <= (c) && (c) <= 'r') \
8134                      || ('s' <= (c) && (c) <= 'z'))
8135 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8136 #endif
8137
8138 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8139 int
8140 main ()
8141 {
8142   int i;
8143   for (i = 0; i < 256; i++)
8144     if (XOR (islower (i), ISLOWER (i))
8145         || toupper (i) != TOUPPER (i))
8146       return 2;
8147   return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_run "$LINENO"; then :
8151
8152 else
8153   ac_cv_header_stdc=no
8154 fi
8155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8156   conftest.$ac_objext conftest.beam conftest.$ac_ext
8157 fi
8158
8159 fi
8160 fi
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8162 $as_echo "$ac_cv_header_stdc" >&6; }
8163 if test $ac_cv_header_stdc = yes; then
8164
8165 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8166
8167 fi
8168
8169 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8170 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8171                   inttypes.h stdint.h unistd.h
8172 do :
8173   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8174 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8175 "
8176 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8177   cat >>confdefs.h <<_ACEOF
8178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8179 _ACEOF
8180
8181 fi
8182
8183 done
8184
8185
8186 for ac_header in dlfcn.h
8187 do :
8188   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8189 "
8190 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8191   cat >>confdefs.h <<_ACEOF
8192 #define HAVE_DLFCN_H 1
8193 _ACEOF
8194
8195 fi
8196
8197 done
8198
8199
8200
8201
8202
8203 # Set options
8204
8205
8206
8207         enable_dlopen=no
8208
8209
8210   enable_win32_dll=no
8211
8212
8213             # Check whether --enable-shared was given.
8214 if test "${enable_shared+set}" = set; then :
8215   enableval=$enable_shared; p=${PACKAGE-default}
8216     case $enableval in
8217     yes) enable_shared=yes ;;
8218     no) enable_shared=no ;;
8219     *)
8220       enable_shared=no
8221       # Look at the argument we got.  We use all the common list separators.
8222       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8223       for pkg in $enableval; do
8224         IFS=$lt_save_ifs
8225         if test "X$pkg" = "X$p"; then
8226           enable_shared=yes
8227         fi
8228       done
8229       IFS=$lt_save_ifs
8230       ;;
8231     esac
8232 else
8233   enable_shared=yes
8234 fi
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244   # Check whether --enable-static was given.
8245 if test "${enable_static+set}" = set; then :
8246   enableval=$enable_static; p=${PACKAGE-default}
8247     case $enableval in
8248     yes) enable_static=yes ;;
8249     no) enable_static=no ;;
8250     *)
8251      enable_static=no
8252       # Look at the argument we got.  We use all the common list separators.
8253       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8254       for pkg in $enableval; do
8255         IFS=$lt_save_ifs
8256         if test "X$pkg" = "X$p"; then
8257           enable_static=yes
8258         fi
8259       done
8260       IFS=$lt_save_ifs
8261       ;;
8262     esac
8263 else
8264   enable_static=yes
8265 fi
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276 # Check whether --with-pic was given.
8277 if test "${with_pic+set}" = set; then :
8278   withval=$with_pic; lt_p=${PACKAGE-default}
8279     case $withval in
8280     yes|no) pic_mode=$withval ;;
8281     *)
8282       pic_mode=default
8283       # Look at the argument we got.  We use all the common list separators.
8284       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8285       for lt_pkg in $withval; do
8286         IFS=$lt_save_ifs
8287         if test "X$lt_pkg" = "X$lt_p"; then
8288           pic_mode=yes
8289         fi
8290       done
8291       IFS=$lt_save_ifs
8292       ;;
8293     esac
8294 else
8295   pic_mode=default
8296 fi
8297
8298
8299
8300
8301
8302
8303
8304
8305   # Check whether --enable-fast-install was given.
8306 if test "${enable_fast_install+set}" = set; then :
8307   enableval=$enable_fast_install; p=${PACKAGE-default}
8308     case $enableval in
8309     yes) enable_fast_install=yes ;;
8310     no) enable_fast_install=no ;;
8311     *)
8312       enable_fast_install=no
8313       # Look at the argument we got.  We use all the common list separators.
8314       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8315       for pkg in $enableval; do
8316         IFS=$lt_save_ifs
8317         if test "X$pkg" = "X$p"; then
8318           enable_fast_install=yes
8319         fi
8320       done
8321       IFS=$lt_save_ifs
8322       ;;
8323     esac
8324 else
8325   enable_fast_install=yes
8326 fi
8327
8328
8329
8330
8331
8332
8333
8334
8335   shared_archive_member_spec=
8336 case $host,$enable_shared in
8337 power*-*-aix[5-9]*,yes)
8338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8339 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8340
8341 # Check whether --with-aix-soname was given.
8342 if test "${with_aix_soname+set}" = set; then :
8343   withval=$with_aix_soname; case $withval in
8344     aix|svr4|both)
8345       ;;
8346     *)
8347       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8348       ;;
8349     esac
8350     lt_cv_with_aix_soname=$with_aix_soname
8351 else
8352   if ${lt_cv_with_aix_soname+:} false; then :
8353   $as_echo_n "(cached) " >&6
8354 else
8355   lt_cv_with_aix_soname=aix
8356 fi
8357
8358     with_aix_soname=$lt_cv_with_aix_soname
8359 fi
8360
8361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8362 $as_echo "$with_aix_soname" >&6; }
8363   if test aix != "$with_aix_soname"; then
8364     # For the AIX way of multilib, we name the shared archive member
8365     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8366     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8367     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8368     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8369     if test 64 = "${OBJECT_MODE-32}"; then
8370       shared_archive_member_spec=shr_64
8371     else
8372       shared_archive_member_spec=shr
8373     fi
8374   fi
8375   ;;
8376 *)
8377   with_aix_soname=aix
8378   ;;
8379 esac
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390 # This can be used to rebuild libtool when needed
8391 LIBTOOL_DEPS=$ltmain
8392
8393 # Always use our own libtool.
8394 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425 test -z "$LN_S" && LN_S="ln -s"
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440 if test -n "${ZSH_VERSION+set}"; then
8441    setopt NO_GLOB_SUBST
8442 fi
8443
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8445 $as_echo_n "checking for objdir... " >&6; }
8446 if ${lt_cv_objdir+:} false; then :
8447   $as_echo_n "(cached) " >&6
8448 else
8449   rm -f .libs 2>/dev/null
8450 mkdir .libs 2>/dev/null
8451 if test -d .libs; then
8452   lt_cv_objdir=.libs
8453 else
8454   # MS-DOS does not allow filenames that begin with a dot.
8455   lt_cv_objdir=_libs
8456 fi
8457 rmdir .libs 2>/dev/null
8458 fi
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8460 $as_echo "$lt_cv_objdir" >&6; }
8461 objdir=$lt_cv_objdir
8462
8463
8464
8465
8466
8467 cat >>confdefs.h <<_ACEOF
8468 #define LT_OBJDIR "$lt_cv_objdir/"
8469 _ACEOF
8470
8471
8472
8473
8474 case $host_os in
8475 aix3*)
8476   # AIX sometimes has problems with the GCC collect2 program.  For some
8477   # reason, if we set the COLLECT_NAMES environment variable, the problems
8478   # vanish in a puff of smoke.
8479   if test set != "${COLLECT_NAMES+set}"; then
8480     COLLECT_NAMES=
8481     export COLLECT_NAMES
8482   fi
8483   ;;
8484 esac
8485
8486 # Global variables:
8487 ofile=libtool
8488 can_build_shared=yes
8489
8490 # All known linkers require a '.a' archive for static linking (except MSVC,
8491 # which needs '.lib').
8492 libext=a
8493
8494 with_gnu_ld=$lt_cv_prog_gnu_ld
8495
8496 old_CC=$CC
8497 old_CFLAGS=$CFLAGS
8498
8499 # Set sane defaults for various variables
8500 test -z "$CC" && CC=cc
8501 test -z "$LTCC" && LTCC=$CC
8502 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8503 test -z "$LD" && LD=ld
8504 test -z "$ac_objext" && ac_objext=o
8505
8506 func_cc_basename $compiler
8507 cc_basename=$func_cc_basename_result
8508
8509
8510 # Only perform the check for file, if the check method requires it
8511 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8512 case $deplibs_check_method in
8513 file_magic*)
8514   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8515     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8516 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8517 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   case $MAGIC_CMD in
8521 [\\/*] |  ?:[\\/]*)
8522   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8523   ;;
8524 *)
8525   lt_save_MAGIC_CMD=$MAGIC_CMD
8526   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8527   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8528   for ac_dir in $ac_dummy; do
8529     IFS=$lt_save_ifs
8530     test -z "$ac_dir" && ac_dir=.
8531     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8532       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8533       if test -n "$file_magic_test_file"; then
8534         case $deplibs_check_method in
8535         "file_magic "*)
8536           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8537           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8538           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8539             $EGREP "$file_magic_regex" > /dev/null; then
8540             :
8541           else
8542             cat <<_LT_EOF 1>&2
8543
8544 *** Warning: the command libtool uses to detect shared libraries,
8545 *** $file_magic_cmd, produces output that libtool cannot recognize.
8546 *** The result is that libtool may fail to recognize shared libraries
8547 *** as such.  This will affect the creation of libtool libraries that
8548 *** depend on shared libraries, but programs linked with such libtool
8549 *** libraries will work regardless of this problem.  Nevertheless, you
8550 *** may want to report the problem to your system manager and/or to
8551 *** bug-libtool@gnu.org
8552
8553 _LT_EOF
8554           fi ;;
8555         esac
8556       fi
8557       break
8558     fi
8559   done
8560   IFS=$lt_save_ifs
8561   MAGIC_CMD=$lt_save_MAGIC_CMD
8562   ;;
8563 esac
8564 fi
8565
8566 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8567 if test -n "$MAGIC_CMD"; then
8568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8569 $as_echo "$MAGIC_CMD" >&6; }
8570 else
8571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8572 $as_echo "no" >&6; }
8573 fi
8574
8575
8576
8577
8578
8579 if test -z "$lt_cv_path_MAGIC_CMD"; then
8580   if test -n "$ac_tool_prefix"; then
8581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8582 $as_echo_n "checking for file... " >&6; }
8583 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8584   $as_echo_n "(cached) " >&6
8585 else
8586   case $MAGIC_CMD in
8587 [\\/*] |  ?:[\\/]*)
8588   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8589   ;;
8590 *)
8591   lt_save_MAGIC_CMD=$MAGIC_CMD
8592   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8593   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8594   for ac_dir in $ac_dummy; do
8595     IFS=$lt_save_ifs
8596     test -z "$ac_dir" && ac_dir=.
8597     if test -f "$ac_dir/file"; then
8598       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8599       if test -n "$file_magic_test_file"; then
8600         case $deplibs_check_method in
8601         "file_magic "*)
8602           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8603           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8604           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8605             $EGREP "$file_magic_regex" > /dev/null; then
8606             :
8607           else
8608             cat <<_LT_EOF 1>&2
8609
8610 *** Warning: the command libtool uses to detect shared libraries,
8611 *** $file_magic_cmd, produces output that libtool cannot recognize.
8612 *** The result is that libtool may fail to recognize shared libraries
8613 *** as such.  This will affect the creation of libtool libraries that
8614 *** depend on shared libraries, but programs linked with such libtool
8615 *** libraries will work regardless of this problem.  Nevertheless, you
8616 *** may want to report the problem to your system manager and/or to
8617 *** bug-libtool@gnu.org
8618
8619 _LT_EOF
8620           fi ;;
8621         esac
8622       fi
8623       break
8624     fi
8625   done
8626   IFS=$lt_save_ifs
8627   MAGIC_CMD=$lt_save_MAGIC_CMD
8628   ;;
8629 esac
8630 fi
8631
8632 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8633 if test -n "$MAGIC_CMD"; then
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8635 $as_echo "$MAGIC_CMD" >&6; }
8636 else
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640
8641
8642   else
8643     MAGIC_CMD=:
8644   fi
8645 fi
8646
8647   fi
8648   ;;
8649 esac
8650
8651 # Use C for the default configuration in the libtool script
8652
8653 lt_save_CC=$CC
8654 ac_ext=c
8655 ac_cpp='$CPP $CPPFLAGS'
8656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8659
8660
8661 # Source file extension for C test sources.
8662 ac_ext=c
8663
8664 # Object file extension for compiled C test sources.
8665 objext=o
8666 objext=$objext
8667
8668 # Code to be used in simple compile tests
8669 lt_simple_compile_test_code="int some_variable = 0;"
8670
8671 # Code to be used in simple link tests
8672 lt_simple_link_test_code='int main(){return(0);}'
8673
8674
8675
8676
8677
8678
8679
8680 # If no C compiler was specified, use CC.
8681 LTCC=${LTCC-"$CC"}
8682
8683 # If no C compiler flags were specified, use CFLAGS.
8684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8685
8686 # Allow CC to be a program name with arguments.
8687 compiler=$CC
8688
8689 # Save the default compiler, since it gets overwritten when the other
8690 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8691 compiler_DEFAULT=$CC
8692
8693 # save warnings/boilerplate of simple test code
8694 ac_outfile=conftest.$ac_objext
8695 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8696 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8697 _lt_compiler_boilerplate=`cat conftest.err`
8698 $RM conftest*
8699
8700 ac_outfile=conftest.$ac_objext
8701 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8702 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8703 _lt_linker_boilerplate=`cat conftest.err`
8704 $RM -r conftest*
8705
8706
8707 ## CAVEAT EMPTOR:
8708 ## There is no encapsulation within the following macros, do not change
8709 ## the running order or otherwise move them around unless you know exactly
8710 ## what you are doing...
8711 if test -n "$compiler"; then
8712
8713 lt_prog_compiler_no_builtin_flag=
8714
8715 if test yes = "$GCC"; then
8716   case $cc_basename in
8717   nvcc*)
8718     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8719   *)
8720     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8721   esac
8722
8723   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8724 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8725 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8726   $as_echo_n "(cached) " >&6
8727 else
8728   lt_cv_prog_compiler_rtti_exceptions=no
8729    ac_outfile=conftest.$ac_objext
8730    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8731    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8732    # Insert the option either (1) after the last *FLAGS variable, or
8733    # (2) before a word containing "conftest.", or (3) at the end.
8734    # Note that $ac_compile itself does not contain backslashes and begins
8735    # with a dollar sign (not a hyphen), so the echo should work correctly.
8736    # The option is referenced via a variable to avoid confusing sed.
8737    lt_compile=`echo "$ac_compile" | $SED \
8738    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8739    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8740    -e 's:$: $lt_compiler_flag:'`
8741    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8742    (eval "$lt_compile" 2>conftest.err)
8743    ac_status=$?
8744    cat conftest.err >&5
8745    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746    if (exit $ac_status) && test -s "$ac_outfile"; then
8747      # The compiler can only warn and ignore the option if not recognized
8748      # So say no if there are warnings other than the usual output.
8749      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8750      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8751      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8752        lt_cv_prog_compiler_rtti_exceptions=yes
8753      fi
8754    fi
8755    $RM conftest*
8756
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8759 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8760
8761 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8762     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8763 else
8764     :
8765 fi
8766
8767 fi
8768
8769
8770
8771
8772
8773
8774   lt_prog_compiler_wl=
8775 lt_prog_compiler_pic=
8776 lt_prog_compiler_static=
8777
8778
8779   if test yes = "$GCC"; then
8780     lt_prog_compiler_wl='-Wl,'
8781     lt_prog_compiler_static='-static'
8782
8783     case $host_os in
8784       aix*)
8785       # All AIX code is PIC.
8786       if test ia64 = "$host_cpu"; then
8787         # AIX 5 now supports IA64 processor
8788         lt_prog_compiler_static='-Bstatic'
8789       fi
8790       lt_prog_compiler_pic='-fPIC'
8791       ;;
8792
8793     amigaos*)
8794       case $host_cpu in
8795       powerpc)
8796             # see comment about AmigaOS4 .so support
8797             lt_prog_compiler_pic='-fPIC'
8798         ;;
8799       m68k)
8800             # FIXME: we need at least 68020 code to build shared libraries, but
8801             # adding the '-m68020' flag to GCC prevents building anything better,
8802             # like '-m68040'.
8803             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8804         ;;
8805       esac
8806       ;;
8807
8808     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8809       # PIC is the default for these OSes.
8810       ;;
8811
8812     mingw* | cygwin* | pw32* | os2* | cegcc*)
8813       # This hack is so that the source file can tell whether it is being
8814       # built for inclusion in a dll (and should export symbols for example).
8815       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8816       # (--disable-auto-import) libraries
8817       lt_prog_compiler_pic='-DDLL_EXPORT'
8818       case $host_os in
8819       os2*)
8820         lt_prog_compiler_static='$wl-static'
8821         ;;
8822       esac
8823       ;;
8824
8825     darwin* | rhapsody*)
8826       # PIC is the default on this platform
8827       # Common symbols not allowed in MH_DYLIB files
8828       lt_prog_compiler_pic='-fno-common'
8829       ;;
8830
8831     haiku*)
8832       # PIC is the default for Haiku.
8833       # The "-static" flag exists, but is broken.
8834       lt_prog_compiler_static=
8835       ;;
8836
8837     hpux*)
8838       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8839       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8840       # sets the default TLS model and affects inlining.
8841       case $host_cpu in
8842       hppa*64*)
8843         # +Z the default
8844         ;;
8845       *)
8846         lt_prog_compiler_pic='-fPIC'
8847         ;;
8848       esac
8849       ;;
8850
8851     interix[3-9]*)
8852       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8853       # Instead, we relocate shared libraries at runtime.
8854       ;;
8855
8856     msdosdjgpp*)
8857       # Just because we use GCC doesn't mean we suddenly get shared libraries
8858       # on systems that don't support them.
8859       lt_prog_compiler_can_build_shared=no
8860       enable_shared=no
8861       ;;
8862
8863     *nto* | *qnx*)
8864       # QNX uses GNU C++, but need to define -shared option too, otherwise
8865       # it will coredump.
8866       lt_prog_compiler_pic='-fPIC -shared'
8867       ;;
8868
8869     sysv4*MP*)
8870       if test -d /usr/nec; then
8871         lt_prog_compiler_pic=-Kconform_pic
8872       fi
8873       ;;
8874
8875     *)
8876       lt_prog_compiler_pic='-fPIC'
8877       ;;
8878     esac
8879
8880     case $cc_basename in
8881     nvcc*) # Cuda Compiler Driver 2.2
8882       lt_prog_compiler_wl='-Xlinker '
8883       if test -n "$lt_prog_compiler_pic"; then
8884         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8885       fi
8886       ;;
8887     esac
8888   else
8889     # PORTME Check for flag to pass linker flags through the system compiler.
8890     case $host_os in
8891     aix*)
8892       lt_prog_compiler_wl='-Wl,'
8893       if test ia64 = "$host_cpu"; then
8894         # AIX 5 now supports IA64 processor
8895         lt_prog_compiler_static='-Bstatic'
8896       else
8897         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8898       fi
8899       ;;
8900
8901     darwin* | rhapsody*)
8902       # PIC is the default on this platform
8903       # Common symbols not allowed in MH_DYLIB files
8904       lt_prog_compiler_pic='-fno-common'
8905       case $cc_basename in
8906       nagfor*)
8907         # NAG Fortran compiler
8908         lt_prog_compiler_wl='-Wl,-Wl,,'
8909         lt_prog_compiler_pic='-PIC'
8910         lt_prog_compiler_static='-Bstatic'
8911         ;;
8912       esac
8913       ;;
8914
8915     mingw* | cygwin* | pw32* | os2* | cegcc*)
8916       # This hack is so that the source file can tell whether it is being
8917       # built for inclusion in a dll (and should export symbols for example).
8918       lt_prog_compiler_pic='-DDLL_EXPORT'
8919       case $host_os in
8920       os2*)
8921         lt_prog_compiler_static='$wl-static'
8922         ;;
8923       esac
8924       ;;
8925
8926     hpux9* | hpux10* | hpux11*)
8927       lt_prog_compiler_wl='-Wl,'
8928       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8929       # not for PA HP-UX.
8930       case $host_cpu in
8931       hppa*64*|ia64*)
8932         # +Z the default
8933         ;;
8934       *)
8935         lt_prog_compiler_pic='+Z'
8936         ;;
8937       esac
8938       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8939       lt_prog_compiler_static='$wl-a ${wl}archive'
8940       ;;
8941
8942     irix5* | irix6* | nonstopux*)
8943       lt_prog_compiler_wl='-Wl,'
8944       # PIC (with -KPIC) is the default.
8945       lt_prog_compiler_static='-non_shared'
8946       ;;
8947
8948     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8949       case $cc_basename in
8950       # old Intel for x86_64, which still supported -KPIC.
8951       ecc*)
8952         lt_prog_compiler_wl='-Wl,'
8953         lt_prog_compiler_pic='-KPIC'
8954         lt_prog_compiler_static='-static'
8955         ;;
8956       # icc used to be incompatible with GCC.
8957       # ICC 10 doesn't accept -KPIC any more.
8958       icc* | ifort*)
8959         lt_prog_compiler_wl='-Wl,'
8960         lt_prog_compiler_pic='-fPIC'
8961         lt_prog_compiler_static='-static'
8962         ;;
8963       # Lahey Fortran 8.1.
8964       lf95*)
8965         lt_prog_compiler_wl='-Wl,'
8966         lt_prog_compiler_pic='--shared'
8967         lt_prog_compiler_static='--static'
8968         ;;
8969       nagfor*)
8970         # NAG Fortran compiler
8971         lt_prog_compiler_wl='-Wl,-Wl,,'
8972         lt_prog_compiler_pic='-PIC'
8973         lt_prog_compiler_static='-Bstatic'
8974         ;;
8975       tcc*)
8976         # Fabrice Bellard et al's Tiny C Compiler
8977         lt_prog_compiler_wl='-Wl,'
8978         lt_prog_compiler_pic='-fPIC'
8979         lt_prog_compiler_static='-static'
8980         ;;
8981       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8982         # Portland Group compilers (*not* the Pentium gcc compiler,
8983         # which looks to be a dead project)
8984         lt_prog_compiler_wl='-Wl,'
8985         lt_prog_compiler_pic='-fpic'
8986         lt_prog_compiler_static='-Bstatic'
8987         ;;
8988       ccc*)
8989         lt_prog_compiler_wl='-Wl,'
8990         # All Alpha code is PIC.
8991         lt_prog_compiler_static='-non_shared'
8992         ;;
8993       xl* | bgxl* | bgf* | mpixl*)
8994         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8995         lt_prog_compiler_wl='-Wl,'
8996         lt_prog_compiler_pic='-qpic'
8997         lt_prog_compiler_static='-qstaticlink'
8998         ;;
8999       *)
9000         case `$CC -V 2>&1 | sed 5q` in
9001         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9002           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9003           lt_prog_compiler_pic='-KPIC'
9004           lt_prog_compiler_static='-Bstatic'
9005           lt_prog_compiler_wl=''
9006           ;;
9007         *Sun\ F* | *Sun*Fortran*)
9008           lt_prog_compiler_pic='-KPIC'
9009           lt_prog_compiler_static='-Bstatic'
9010           lt_prog_compiler_wl='-Qoption ld '
9011           ;;
9012         *Sun\ C*)
9013           # Sun C 5.9
9014           lt_prog_compiler_pic='-KPIC'
9015           lt_prog_compiler_static='-Bstatic'
9016           lt_prog_compiler_wl='-Wl,'
9017           ;;
9018         *Intel*\ [CF]*Compiler*)
9019           lt_prog_compiler_wl='-Wl,'
9020           lt_prog_compiler_pic='-fPIC'
9021           lt_prog_compiler_static='-static'
9022           ;;
9023         *Portland\ Group*)
9024           lt_prog_compiler_wl='-Wl,'
9025           lt_prog_compiler_pic='-fpic'
9026           lt_prog_compiler_static='-Bstatic'
9027           ;;
9028         esac
9029         ;;
9030       esac
9031       ;;
9032
9033     newsos6)
9034       lt_prog_compiler_pic='-KPIC'
9035       lt_prog_compiler_static='-Bstatic'
9036       ;;
9037
9038     *nto* | *qnx*)
9039       # QNX uses GNU C++, but need to define -shared option too, otherwise
9040       # it will coredump.
9041       lt_prog_compiler_pic='-fPIC -shared'
9042       ;;
9043
9044     osf3* | osf4* | osf5*)
9045       lt_prog_compiler_wl='-Wl,'
9046       # All OSF/1 code is PIC.
9047       lt_prog_compiler_static='-non_shared'
9048       ;;
9049
9050     rdos*)
9051       lt_prog_compiler_static='-non_shared'
9052       ;;
9053
9054     solaris*)
9055       lt_prog_compiler_pic='-KPIC'
9056       lt_prog_compiler_static='-Bstatic'
9057       case $cc_basename in
9058       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9059         lt_prog_compiler_wl='-Qoption ld ';;
9060       *)
9061         lt_prog_compiler_wl='-Wl,';;
9062       esac
9063       ;;
9064
9065     sunos4*)
9066       lt_prog_compiler_wl='-Qoption ld '
9067       lt_prog_compiler_pic='-PIC'
9068       lt_prog_compiler_static='-Bstatic'
9069       ;;
9070
9071     sysv4 | sysv4.2uw2* | sysv4.3*)
9072       lt_prog_compiler_wl='-Wl,'
9073       lt_prog_compiler_pic='-KPIC'
9074       lt_prog_compiler_static='-Bstatic'
9075       ;;
9076
9077     sysv4*MP*)
9078       if test -d /usr/nec; then
9079         lt_prog_compiler_pic='-Kconform_pic'
9080         lt_prog_compiler_static='-Bstatic'
9081       fi
9082       ;;
9083
9084     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9085       lt_prog_compiler_wl='-Wl,'
9086       lt_prog_compiler_pic='-KPIC'
9087       lt_prog_compiler_static='-Bstatic'
9088       ;;
9089
9090     unicos*)
9091       lt_prog_compiler_wl='-Wl,'
9092       lt_prog_compiler_can_build_shared=no
9093       ;;
9094
9095     uts4*)
9096       lt_prog_compiler_pic='-pic'
9097       lt_prog_compiler_static='-Bstatic'
9098       ;;
9099
9100     *)
9101       lt_prog_compiler_can_build_shared=no
9102       ;;
9103     esac
9104   fi
9105
9106 case $host_os in
9107   # For platforms that do not support PIC, -DPIC is meaningless:
9108   *djgpp*)
9109     lt_prog_compiler_pic=
9110     ;;
9111   *)
9112     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9113     ;;
9114 esac
9115
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9117 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9118 if ${lt_cv_prog_compiler_pic+:} false; then :
9119   $as_echo_n "(cached) " >&6
9120 else
9121   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9124 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9125 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9126
9127 #
9128 # Check to make sure the PIC flag actually works.
9129 #
9130 if test -n "$lt_prog_compiler_pic"; then
9131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9132 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9133 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9134   $as_echo_n "(cached) " >&6
9135 else
9136   lt_cv_prog_compiler_pic_works=no
9137    ac_outfile=conftest.$ac_objext
9138    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9139    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9140    # Insert the option either (1) after the last *FLAGS variable, or
9141    # (2) before a word containing "conftest.", or (3) at the end.
9142    # Note that $ac_compile itself does not contain backslashes and begins
9143    # with a dollar sign (not a hyphen), so the echo should work correctly.
9144    # The option is referenced via a variable to avoid confusing sed.
9145    lt_compile=`echo "$ac_compile" | $SED \
9146    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9147    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9148    -e 's:$: $lt_compiler_flag:'`
9149    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9150    (eval "$lt_compile" 2>conftest.err)
9151    ac_status=$?
9152    cat conftest.err >&5
9153    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9154    if (exit $ac_status) && test -s "$ac_outfile"; then
9155      # The compiler can only warn and ignore the option if not recognized
9156      # So say no if there are warnings other than the usual output.
9157      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9158      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9159      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9160        lt_cv_prog_compiler_pic_works=yes
9161      fi
9162    fi
9163    $RM conftest*
9164
9165 fi
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9167 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9168
9169 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9170     case $lt_prog_compiler_pic in
9171      "" | " "*) ;;
9172      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9173      esac
9174 else
9175     lt_prog_compiler_pic=
9176      lt_prog_compiler_can_build_shared=no
9177 fi
9178
9179 fi
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191 #
9192 # Check to make sure the static flag actually works.
9193 #
9194 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9196 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9197 if ${lt_cv_prog_compiler_static_works+:} false; then :
9198   $as_echo_n "(cached) " >&6
9199 else
9200   lt_cv_prog_compiler_static_works=no
9201    save_LDFLAGS=$LDFLAGS
9202    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9203    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9204    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9205      # The linker can only warn and ignore the option if not recognized
9206      # So say no if there are warnings
9207      if test -s conftest.err; then
9208        # Append any errors to the config.log.
9209        cat conftest.err 1>&5
9210        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9211        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9212        if diff conftest.exp conftest.er2 >/dev/null; then
9213          lt_cv_prog_compiler_static_works=yes
9214        fi
9215      else
9216        lt_cv_prog_compiler_static_works=yes
9217      fi
9218    fi
9219    $RM -r conftest*
9220    LDFLAGS=$save_LDFLAGS
9221
9222 fi
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9224 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9225
9226 if test yes = "$lt_cv_prog_compiler_static_works"; then
9227     :
9228 else
9229     lt_prog_compiler_static=
9230 fi
9231
9232
9233
9234
9235
9236
9237
9238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9239 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9240 if ${lt_cv_prog_compiler_c_o+:} false; then :
9241   $as_echo_n "(cached) " >&6
9242 else
9243   lt_cv_prog_compiler_c_o=no
9244    $RM -r conftest 2>/dev/null
9245    mkdir conftest
9246    cd conftest
9247    mkdir out
9248    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9249
9250    lt_compiler_flag="-o out/conftest2.$ac_objext"
9251    # Insert the option either (1) after the last *FLAGS variable, or
9252    # (2) before a word containing "conftest.", or (3) at the end.
9253    # Note that $ac_compile itself does not contain backslashes and begins
9254    # with a dollar sign (not a hyphen), so the echo should work correctly.
9255    lt_compile=`echo "$ac_compile" | $SED \
9256    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9257    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9258    -e 's:$: $lt_compiler_flag:'`
9259    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9260    (eval "$lt_compile" 2>out/conftest.err)
9261    ac_status=$?
9262    cat out/conftest.err >&5
9263    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9265    then
9266      # The compiler can only warn and ignore the option if not recognized
9267      # So say no if there are warnings
9268      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9269      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9270      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9271        lt_cv_prog_compiler_c_o=yes
9272      fi
9273    fi
9274    chmod u+w . 2>&5
9275    $RM conftest*
9276    # SGI C++ compiler will create directory out/ii_files/ for
9277    # template instantiation
9278    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9279    $RM out/* && rmdir out
9280    cd ..
9281    $RM -r conftest
9282    $RM conftest*
9283
9284 fi
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9286 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9287
9288
9289
9290
9291
9292
9293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9294 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9295 if ${lt_cv_prog_compiler_c_o+:} false; then :
9296   $as_echo_n "(cached) " >&6
9297 else
9298   lt_cv_prog_compiler_c_o=no
9299    $RM -r conftest 2>/dev/null
9300    mkdir conftest
9301    cd conftest
9302    mkdir out
9303    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9304
9305    lt_compiler_flag="-o out/conftest2.$ac_objext"
9306    # Insert the option either (1) after the last *FLAGS variable, or
9307    # (2) before a word containing "conftest.", or (3) at the end.
9308    # Note that $ac_compile itself does not contain backslashes and begins
9309    # with a dollar sign (not a hyphen), so the echo should work correctly.
9310    lt_compile=`echo "$ac_compile" | $SED \
9311    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9312    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9313    -e 's:$: $lt_compiler_flag:'`
9314    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9315    (eval "$lt_compile" 2>out/conftest.err)
9316    ac_status=$?
9317    cat out/conftest.err >&5
9318    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9320    then
9321      # The compiler can only warn and ignore the option if not recognized
9322      # So say no if there are warnings
9323      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9324      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9325      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9326        lt_cv_prog_compiler_c_o=yes
9327      fi
9328    fi
9329    chmod u+w . 2>&5
9330    $RM conftest*
9331    # SGI C++ compiler will create directory out/ii_files/ for
9332    # template instantiation
9333    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9334    $RM out/* && rmdir out
9335    cd ..
9336    $RM -r conftest
9337    $RM conftest*
9338
9339 fi
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9341 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9342
9343
9344
9345
9346 hard_links=nottested
9347 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9348   # do not overwrite the value of need_locks provided by the user
9349   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9350 $as_echo_n "checking if we can lock with hard links... " >&6; }
9351   hard_links=yes
9352   $RM conftest*
9353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9354   touch conftest.a
9355   ln conftest.a conftest.b 2>&5 || hard_links=no
9356   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9358 $as_echo "$hard_links" >&6; }
9359   if test no = "$hard_links"; then
9360     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9361 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9362     need_locks=warn
9363   fi
9364 else
9365   need_locks=no
9366 fi
9367
9368
9369
9370
9371
9372
9373   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9374 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9375
9376   runpath_var=
9377   allow_undefined_flag=
9378   always_export_symbols=no
9379   archive_cmds=
9380   archive_expsym_cmds=
9381   compiler_needs_object=no
9382   enable_shared_with_static_runtimes=no
9383   export_dynamic_flag_spec=
9384   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9385   hardcode_automatic=no
9386   hardcode_direct=no
9387   hardcode_direct_absolute=no
9388   hardcode_libdir_flag_spec=
9389   hardcode_libdir_separator=
9390   hardcode_minus_L=no
9391   hardcode_shlibpath_var=unsupported
9392   inherit_rpath=no
9393   link_all_deplibs=unknown
9394   module_cmds=
9395   module_expsym_cmds=
9396   old_archive_from_new_cmds=
9397   old_archive_from_expsyms_cmds=
9398   thread_safe_flag_spec=
9399   whole_archive_flag_spec=
9400   # include_expsyms should be a list of space-separated symbols to be *always*
9401   # included in the symbol list
9402   include_expsyms=
9403   # exclude_expsyms can be an extended regexp of symbols to exclude
9404   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9405   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9406   # as well as any symbol that contains 'd'.
9407   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9408   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9409   # platforms (ab)use it in PIC code, but their linkers get confused if
9410   # the symbol is explicitly referenced.  Since portable code cannot
9411   # rely on this symbol name, it's probably fine to never include it in
9412   # preloaded symbol tables.
9413   # Exclude shared library initialization/finalization symbols.
9414   extract_expsyms_cmds=
9415
9416   case $host_os in
9417   cygwin* | mingw* | pw32* | cegcc*)
9418     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9419     # When not using gcc, we currently assume that we are using
9420     # Microsoft Visual C++.
9421     if test yes != "$GCC"; then
9422       with_gnu_ld=no
9423     fi
9424     ;;
9425   interix*)
9426     # we just hope/assume this is gcc and not c89 (= MSVC++)
9427     with_gnu_ld=yes
9428     ;;
9429   openbsd* | bitrig*)
9430     with_gnu_ld=no
9431     ;;
9432   esac
9433
9434   ld_shlibs=yes
9435
9436   # On some targets, GNU ld is compatible enough with the native linker
9437   # that we're better off using the native interface for both.
9438   lt_use_gnu_ld_interface=no
9439   if test yes = "$with_gnu_ld"; then
9440     case $host_os in
9441       aix*)
9442         # The AIX port of GNU ld has always aspired to compatibility
9443         # with the native linker.  However, as the warning in the GNU ld
9444         # block says, versions before 2.19.5* couldn't really create working
9445         # shared libraries, regardless of the interface used.
9446         case `$LD -v 2>&1` in
9447           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9448           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9449           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9450           *)
9451             lt_use_gnu_ld_interface=yes
9452             ;;
9453         esac
9454         ;;
9455       *)
9456         lt_use_gnu_ld_interface=yes
9457         ;;
9458     esac
9459   fi
9460
9461   if test yes = "$lt_use_gnu_ld_interface"; then
9462     # If archive_cmds runs LD, not CC, wlarc should be empty
9463     wlarc='$wl'
9464
9465     # Set some defaults for GNU ld with shared library support. These
9466     # are reset later if shared libraries are not supported. Putting them
9467     # here allows them to be overridden if necessary.
9468     runpath_var=LD_RUN_PATH
9469     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9470     export_dynamic_flag_spec='$wl--export-dynamic'
9471     # ancient GNU ld didn't support --whole-archive et. al.
9472     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9473       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9474     else
9475       whole_archive_flag_spec=
9476     fi
9477     supports_anon_versioning=no
9478     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9479       *GNU\ gold*) supports_anon_versioning=yes ;;
9480       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9481       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9482       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9483       *\ 2.11.*) ;; # other 2.11 versions
9484       *) supports_anon_versioning=yes ;;
9485     esac
9486
9487     # See if GNU ld supports shared libraries.
9488     case $host_os in
9489     aix[3-9]*)
9490       # On AIX/PPC, the GNU linker is very broken
9491       if test ia64 != "$host_cpu"; then
9492         ld_shlibs=no
9493         cat <<_LT_EOF 1>&2
9494
9495 *** Warning: the GNU linker, at least up to release 2.19, is reported
9496 *** to be unable to reliably create shared libraries on AIX.
9497 *** Therefore, libtool is disabling shared libraries support.  If you
9498 *** really care for shared libraries, you may want to install binutils
9499 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9500 *** You will then need to restart the configuration process.
9501
9502 _LT_EOF
9503       fi
9504       ;;
9505
9506     amigaos*)
9507       case $host_cpu in
9508       powerpc)
9509             # see comment about AmigaOS4 .so support
9510             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9511             archive_expsym_cmds=''
9512         ;;
9513       m68k)
9514             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)'
9515             hardcode_libdir_flag_spec='-L$libdir'
9516             hardcode_minus_L=yes
9517         ;;
9518       esac
9519       ;;
9520
9521     beos*)
9522       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9523         allow_undefined_flag=unsupported
9524         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9525         # support --undefined.  This deserves some investigation.  FIXME
9526         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9527       else
9528         ld_shlibs=no
9529       fi
9530       ;;
9531
9532     cygwin* | mingw* | pw32* | cegcc*)
9533       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9534       # as there is no search path for DLLs.
9535       hardcode_libdir_flag_spec='-L$libdir'
9536       export_dynamic_flag_spec='$wl--export-all-symbols'
9537       allow_undefined_flag=unsupported
9538       always_export_symbols=no
9539       enable_shared_with_static_runtimes=yes
9540       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'
9541       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9542
9543       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9544         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9545         # If the export-symbols file already is a .def file, use it as
9546         # is; otherwise, prepend EXPORTS...
9547         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9548           cp $export_symbols $output_objdir/$soname.def;
9549         else
9550           echo EXPORTS > $output_objdir/$soname.def;
9551           cat $export_symbols >> $output_objdir/$soname.def;
9552         fi~
9553         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9554       else
9555         ld_shlibs=no
9556       fi
9557       ;;
9558
9559     haiku*)
9560       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9561       link_all_deplibs=yes
9562       ;;
9563
9564     os2*)
9565       hardcode_libdir_flag_spec='-L$libdir'
9566       hardcode_minus_L=yes
9567       allow_undefined_flag=unsupported
9568       shrext_cmds=.dll
9569       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9570         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9571         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9572         $ECHO EXPORTS >> $output_objdir/$libname.def~
9573         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9574         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9575         emximp -o $lib $output_objdir/$libname.def'
9576       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9577         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9578         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9579         $ECHO EXPORTS >> $output_objdir/$libname.def~
9580         prefix_cmds="$SED"~
9581         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9582           prefix_cmds="$prefix_cmds -e 1d";
9583         fi~
9584         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9585         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9586         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9587         emximp -o $lib $output_objdir/$libname.def'
9588       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9589       enable_shared_with_static_runtimes=yes
9590       ;;
9591
9592     interix[3-9]*)
9593       hardcode_direct=no
9594       hardcode_shlibpath_var=no
9595       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9596       export_dynamic_flag_spec='$wl-E'
9597       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9598       # Instead, shared libraries are loaded at an image base (0x10000000 by
9599       # default) and relocated if they conflict, which is a slow very memory
9600       # consuming and fragmenting process.  To avoid this, we pick a random,
9601       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9602       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9603       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9604       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'
9605       ;;
9606
9607     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9608       tmp_diet=no
9609       if test linux-dietlibc = "$host_os"; then
9610         case $cc_basename in
9611           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9612         esac
9613       fi
9614       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9615          && test no = "$tmp_diet"
9616       then
9617         tmp_addflag=' $pic_flag'
9618         tmp_sharedflag='-shared'
9619         case $cc_basename,$host_cpu in
9620         pgcc*)                          # Portland Group C compiler
9621           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'
9622           tmp_addflag=' $pic_flag'
9623           ;;
9624         pgf77* | pgf90* | pgf95* | pgfortran*)
9625                                         # Portland Group f77 and f90 compilers
9626           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'
9627           tmp_addflag=' $pic_flag -Mnomain' ;;
9628         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9629           tmp_addflag=' -i_dynamic' ;;
9630         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9631           tmp_addflag=' -i_dynamic -nofor_main' ;;
9632         ifc* | ifort*)                  # Intel Fortran compiler
9633           tmp_addflag=' -nofor_main' ;;
9634         lf95*)                          # Lahey Fortran 8.1
9635           whole_archive_flag_spec=
9636           tmp_sharedflag='--shared' ;;
9637         nagfor*)                        # NAGFOR 5.3
9638           tmp_sharedflag='-Wl,-shared' ;;
9639         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9640           tmp_sharedflag='-qmkshrobj'
9641           tmp_addflag= ;;
9642         nvcc*)  # Cuda Compiler Driver 2.2
9643           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'
9644           compiler_needs_object=yes
9645           ;;
9646         esac
9647         case `$CC -V 2>&1 | sed 5q` in
9648         *Sun\ C*)                       # Sun C 5.9
9649           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'
9650           compiler_needs_object=yes
9651           tmp_sharedflag='-G' ;;
9652         *Sun\ F*)                       # Sun Fortran 8.3
9653           tmp_sharedflag='-G' ;;
9654         esac
9655         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9656
9657         if test yes = "$supports_anon_versioning"; then
9658           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9659             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9660             echo "local: *; };" >> $output_objdir/$libname.ver~
9661             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9662         fi
9663
9664         case $cc_basename in
9665         tcc*)
9666           export_dynamic_flag_spec='-rdynamic'
9667           ;;
9668         xlf* | bgf* | bgxlf* | mpixlf*)
9669           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9670           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9671           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9672           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9673           if test yes = "$supports_anon_versioning"; then
9674             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9675               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9676               echo "local: *; };" >> $output_objdir/$libname.ver~
9677               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9678           fi
9679           ;;
9680         esac
9681       else
9682         ld_shlibs=no
9683       fi
9684       ;;
9685
9686     netbsd*)
9687       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9688         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9689         wlarc=
9690       else
9691         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9692         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9693       fi
9694       ;;
9695
9696     solaris*)
9697       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9698         ld_shlibs=no
9699         cat <<_LT_EOF 1>&2
9700
9701 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9702 *** create shared libraries on Solaris systems.  Therefore, libtool
9703 *** is disabling shared libraries support.  We urge you to upgrade GNU
9704 *** binutils to release 2.9.1 or newer.  Another option is to modify
9705 *** your PATH or compiler configuration so that the native linker is
9706 *** used, and then restart.
9707
9708 _LT_EOF
9709       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9710         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9711         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9712       else
9713         ld_shlibs=no
9714       fi
9715       ;;
9716
9717     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9718       case `$LD -v 2>&1` in
9719         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9720         ld_shlibs=no
9721         cat <<_LT_EOF 1>&2
9722
9723 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9724 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9725 *** is disabling shared libraries support.  We urge you to upgrade GNU
9726 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9727 *** your PATH or compiler configuration so that the native linker is
9728 *** used, and then restart.
9729
9730 _LT_EOF
9731         ;;
9732         *)
9733           # For security reasons, it is highly recommended that you always
9734           # use absolute paths for naming shared libraries, and exclude the
9735           # DT_RUNPATH tag from executables and libraries.  But doing so
9736           # requires that you compile everything twice, which is a pain.
9737           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9738             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9739             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9740             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9741           else
9742             ld_shlibs=no
9743           fi
9744         ;;
9745       esac
9746       ;;
9747
9748     sunos4*)
9749       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9750       wlarc=
9751       hardcode_direct=yes
9752       hardcode_shlibpath_var=no
9753       ;;
9754
9755     *)
9756       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9757         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9758         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9759       else
9760         ld_shlibs=no
9761       fi
9762       ;;
9763     esac
9764
9765     if test no = "$ld_shlibs"; then
9766       runpath_var=
9767       hardcode_libdir_flag_spec=
9768       export_dynamic_flag_spec=
9769       whole_archive_flag_spec=
9770     fi
9771   else
9772     # PORTME fill in a description of your system's linker (not GNU ld)
9773     case $host_os in
9774     aix3*)
9775       allow_undefined_flag=unsupported
9776       always_export_symbols=yes
9777       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'
9778       # Note: this linker hardcodes the directories in LIBPATH if there
9779       # are no directories specified by -L.
9780       hardcode_minus_L=yes
9781       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9782         # Neither direct hardcoding nor static linking is supported with a
9783         # broken collect2.
9784         hardcode_direct=unsupported
9785       fi
9786       ;;
9787
9788     aix[4-9]*)
9789       if test ia64 = "$host_cpu"; then
9790         # On IA64, the linker does run time linking by default, so we don't
9791         # have to do anything special.
9792         aix_use_runtimelinking=no
9793         exp_sym_flag='-Bexport'
9794         no_entry_flag=
9795       else
9796         # If we're using GNU nm, then we don't want the "-C" option.
9797         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9798         # Without the "-l" option, or with the "-B" option, AIX nm treats
9799         # weak defined symbols like other global defined symbols, whereas
9800         # GNU nm marks them as "W".
9801         # While the 'weak' keyword is ignored in the Export File, we need
9802         # it in the Import File for the 'aix-soname' feature, so we have
9803         # to replace the "-B" option with "-P" for AIX nm.
9804         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9805           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9806         else
9807           export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9808         fi
9809         aix_use_runtimelinking=no
9810
9811         # Test if we are trying to use run time linking or normal
9812         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9813         # have runtime linking enabled, and use it for executables.
9814         # For shared libraries, we enable/disable runtime linking
9815         # depending on the kind of the shared library created -
9816         # when "with_aix_soname,aix_use_runtimelinking" is:
9817         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9818         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9819         #            lib.a           static archive
9820         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9821         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9822         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9823         #            lib.a(lib.so.V) shared, rtl:no
9824         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9825         #            lib.a           static archive
9826         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9827           for ld_flag in $LDFLAGS; do
9828           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9829             aix_use_runtimelinking=yes
9830             break
9831           fi
9832           done
9833           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9834             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9835             # so we don't have lib.a shared libs to link our executables.
9836             # We have to force runtime linking in this case.
9837             aix_use_runtimelinking=yes
9838             LDFLAGS="$LDFLAGS -Wl,-brtl"
9839           fi
9840           ;;
9841         esac
9842
9843         exp_sym_flag='-bexport'
9844         no_entry_flag='-bnoentry'
9845       fi
9846
9847       # When large executables or shared objects are built, AIX ld can
9848       # have problems creating the table of contents.  If linking a library
9849       # or program results in "error TOC overflow" add -mminimal-toc to
9850       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9851       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9852
9853       archive_cmds=''
9854       hardcode_direct=yes
9855       hardcode_direct_absolute=yes
9856       hardcode_libdir_separator=':'
9857       link_all_deplibs=yes
9858       file_list_spec='$wl-f,'
9859       case $with_aix_soname,$aix_use_runtimelinking in
9860       aix,*) ;; # traditional, no import file
9861       svr4,* | *,yes) # use import file
9862         # The Import File defines what to hardcode.
9863         hardcode_direct=no
9864         hardcode_direct_absolute=no
9865         ;;
9866       esac
9867
9868       if test yes = "$GCC"; then
9869         case $host_os in aix4.[012]|aix4.[012].*)
9870         # We only want to do this on AIX 4.2 and lower, the check
9871         # below for broken collect2 doesn't work under 4.3+
9872           collect2name=`$CC -print-prog-name=collect2`
9873           if test -f "$collect2name" &&
9874            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9875           then
9876           # We have reworked collect2
9877           :
9878           else
9879           # We have old collect2
9880           hardcode_direct=unsupported
9881           # It fails to find uninstalled libraries when the uninstalled
9882           # path is not listed in the libpath.  Setting hardcode_minus_L
9883           # to unsupported forces relinking
9884           hardcode_minus_L=yes
9885           hardcode_libdir_flag_spec='-L$libdir'
9886           hardcode_libdir_separator=
9887           fi
9888           ;;
9889         esac
9890         shared_flag='-shared'
9891         if test yes = "$aix_use_runtimelinking"; then
9892           shared_flag="$shared_flag "'$wl-G'
9893         fi
9894         # Need to ensure runtime linking is disabled for the traditional
9895         # shared library, or the linker may eventually find shared libraries
9896         # /with/ Import File - we do not want to mix them.
9897         shared_flag_aix='-shared'
9898         shared_flag_svr4='-shared $wl-G'
9899       else
9900         # not using gcc
9901         if test ia64 = "$host_cpu"; then
9902         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9903         # chokes on -Wl,-G. The following line is correct:
9904           shared_flag='-G'
9905         else
9906           if test yes = "$aix_use_runtimelinking"; then
9907             shared_flag='$wl-G'
9908           else
9909             shared_flag='$wl-bM:SRE'
9910           fi
9911           shared_flag_aix='$wl-bM:SRE'
9912           shared_flag_svr4='$wl-G'
9913         fi
9914       fi
9915
9916       export_dynamic_flag_spec='$wl-bexpall'
9917       # It seems that -bexpall does not export symbols beginning with
9918       # underscore (_), so it is better to generate a list of symbols to export.
9919       always_export_symbols=yes
9920       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9921         # Warning - without using the other runtime loading flags (-brtl),
9922         # -berok will link without error, but may produce a broken library.
9923         allow_undefined_flag='-berok'
9924         # Determine the default libpath from the value encoded in an
9925         # empty executable.
9926         if test set = "${lt_cv_aix_libpath+set}"; then
9927   aix_libpath=$lt_cv_aix_libpath
9928 else
9929   if ${lt_cv_aix_libpath_+:} false; then :
9930   $as_echo_n "(cached) " >&6
9931 else
9932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9933 /* end confdefs.h.  */
9934
9935 int
9936 main ()
9937 {
9938
9939   ;
9940   return 0;
9941 }
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944
9945   lt_aix_libpath_sed='
9946       /Import File Strings/,/^$/ {
9947           /^0/ {
9948               s/^0  *\([^ ]*\) *$/\1/
9949               p
9950           }
9951       }'
9952   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9953   # Check for a 64-bit object if we didn't find anything.
9954   if test -z "$lt_cv_aix_libpath_"; then
9955     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9956   fi
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext \
9959     conftest$ac_exeext conftest.$ac_ext
9960   if test -z "$lt_cv_aix_libpath_"; then
9961     lt_cv_aix_libpath_=/usr/lib:/lib
9962   fi
9963
9964 fi
9965
9966   aix_libpath=$lt_cv_aix_libpath_
9967 fi
9968
9969         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9970         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9971       else
9972         if test ia64 = "$host_cpu"; then
9973           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9974           allow_undefined_flag="-z nodefs"
9975           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"
9976         else
9977          # Determine the default libpath from the value encoded in an
9978          # empty executable.
9979          if test set = "${lt_cv_aix_libpath+set}"; then
9980   aix_libpath=$lt_cv_aix_libpath
9981 else
9982   if ${lt_cv_aix_libpath_+:} false; then :
9983   $as_echo_n "(cached) " >&6
9984 else
9985   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9986 /* end confdefs.h.  */
9987
9988 int
9989 main ()
9990 {
9991
9992   ;
9993   return 0;
9994 }
9995 _ACEOF
9996 if ac_fn_c_try_link "$LINENO"; then :
9997
9998   lt_aix_libpath_sed='
9999       /Import File Strings/,/^$/ {
10000           /^0/ {
10001               s/^0  *\([^ ]*\) *$/\1/
10002               p
10003           }
10004       }'
10005   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10006   # Check for a 64-bit object if we didn't find anything.
10007   if test -z "$lt_cv_aix_libpath_"; then
10008     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10009   fi
10010 fi
10011 rm -f core conftest.err conftest.$ac_objext \
10012     conftest$ac_exeext conftest.$ac_ext
10013   if test -z "$lt_cv_aix_libpath_"; then
10014     lt_cv_aix_libpath_=/usr/lib:/lib
10015   fi
10016
10017 fi
10018
10019   aix_libpath=$lt_cv_aix_libpath_
10020 fi
10021
10022          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10023           # Warning - without using the other run time loading flags,
10024           # -berok will link without error, but may produce a broken library.
10025           no_undefined_flag=' $wl-bernotok'
10026           allow_undefined_flag=' $wl-berok'
10027           if test yes = "$with_gnu_ld"; then
10028             # We only use this code for GNU lds that support --whole-archive.
10029             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10030           else
10031             # Exported symbols can be pulled into shared objects from archives
10032             whole_archive_flag_spec='$convenience'
10033           fi
10034           archive_cmds_need_lc=yes
10035           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10036           # -brtl affects multiple linker settings, -berok does not and is overridden later
10037           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10038           if test svr4 != "$with_aix_soname"; then
10039             # This is similar to how AIX traditionally builds its shared libraries.
10040             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10041           fi
10042           if test aix != "$with_aix_soname"; then
10043             archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10044           else
10045             # used by -dlpreopen to get the symbols
10046             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10047           fi
10048           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10049         fi
10050       fi
10051       ;;
10052
10053     amigaos*)
10054       case $host_cpu in
10055       powerpc)
10056             # see comment about AmigaOS4 .so support
10057             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10058             archive_expsym_cmds=''
10059         ;;
10060       m68k)
10061             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)'
10062             hardcode_libdir_flag_spec='-L$libdir'
10063             hardcode_minus_L=yes
10064         ;;
10065       esac
10066       ;;
10067
10068     bsdi[45]*)
10069       export_dynamic_flag_spec=-rdynamic
10070       ;;
10071
10072     cygwin* | mingw* | pw32* | cegcc*)
10073       # When not using gcc, we currently assume that we are using
10074       # Microsoft Visual C++.
10075       # hardcode_libdir_flag_spec is actually meaningless, as there is
10076       # no search path for DLLs.
10077       case $cc_basename in
10078       cl*)
10079         # Native MSVC
10080         hardcode_libdir_flag_spec=' '
10081         allow_undefined_flag=unsupported
10082         always_export_symbols=yes
10083         file_list_spec='@'
10084         # Tell ltmain to make .lib files, not .a files.
10085         libext=lib
10086         # Tell ltmain to make .dll files, not .so files.
10087         shrext_cmds=.dll
10088         # FIXME: Setting linknames here is a bad hack.
10089         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10090         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10091             cp "$export_symbols" "$output_objdir/$soname.def";
10092             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10093           else
10094             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10095           fi~
10096           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10097           linknames='
10098         # The linker will not automatically build a static lib if we build a DLL.
10099         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10100         enable_shared_with_static_runtimes=yes
10101         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10102         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10103         # Don't use ranlib
10104         old_postinstall_cmds='chmod 644 $oldlib'
10105         postlink_cmds='lt_outputfile="@OUTPUT@"~
10106           lt_tool_outputfile="@TOOL_OUTPUT@"~
10107           case $lt_outputfile in
10108             *.exe|*.EXE) ;;
10109             *)
10110               lt_outputfile=$lt_outputfile.exe
10111               lt_tool_outputfile=$lt_tool_outputfile.exe
10112               ;;
10113           esac~
10114           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10115             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10116             $RM "$lt_outputfile.manifest";
10117           fi'
10118         ;;
10119       *)
10120         # Assume MSVC wrapper
10121         hardcode_libdir_flag_spec=' '
10122         allow_undefined_flag=unsupported
10123         # Tell ltmain to make .lib files, not .a files.
10124         libext=lib
10125         # Tell ltmain to make .dll files, not .so files.
10126         shrext_cmds=.dll
10127         # FIXME: Setting linknames here is a bad hack.
10128         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10129         # The linker will automatically build a .lib file if we build a DLL.
10130         old_archive_from_new_cmds='true'
10131         # FIXME: Should let the user specify the lib program.
10132         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10133         enable_shared_with_static_runtimes=yes
10134         ;;
10135       esac
10136       ;;
10137
10138     darwin* | rhapsody*)
10139
10140
10141   archive_cmds_need_lc=no
10142   hardcode_direct=no
10143   hardcode_automatic=yes
10144   hardcode_shlibpath_var=unsupported
10145   if test yes = "$lt_cv_ld_force_load"; then
10146     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\"`'
10147
10148   else
10149     whole_archive_flag_spec=''
10150   fi
10151   link_all_deplibs=yes
10152   allow_undefined_flag=$_lt_dar_allow_undefined
10153   case $cc_basename in
10154      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10155      *) _lt_dar_can_shared=$GCC ;;
10156   esac
10157   if test yes = "$_lt_dar_can_shared"; then
10158     output_verbose_link_cmd=func_echo_all
10159     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10160     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10161     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"
10162     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"
10163
10164   else
10165   ld_shlibs=no
10166   fi
10167
10168       ;;
10169
10170     dgux*)
10171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172       hardcode_libdir_flag_spec='-L$libdir'
10173       hardcode_shlibpath_var=no
10174       ;;
10175
10176     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10177     # support.  Future versions do this automatically, but an explicit c++rt0.o
10178     # does not break anything, and helps significantly (at the cost of a little
10179     # extra space).
10180     freebsd2.2*)
10181       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10182       hardcode_libdir_flag_spec='-R$libdir'
10183       hardcode_direct=yes
10184       hardcode_shlibpath_var=no
10185       ;;
10186
10187     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10188     freebsd2.*)
10189       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10190       hardcode_direct=yes
10191       hardcode_minus_L=yes
10192       hardcode_shlibpath_var=no
10193       ;;
10194
10195     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10196     freebsd* | dragonfly*)
10197       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10198       hardcode_libdir_flag_spec='-R$libdir'
10199       hardcode_direct=yes
10200       hardcode_shlibpath_var=no
10201       ;;
10202
10203     hpux9*)
10204       if test yes = "$GCC"; then
10205         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10206       else
10207         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10208       fi
10209       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10210       hardcode_libdir_separator=:
10211       hardcode_direct=yes
10212
10213       # hardcode_minus_L: Not really in the search PATH,
10214       # but as the default location of the library.
10215       hardcode_minus_L=yes
10216       export_dynamic_flag_spec='$wl-E'
10217       ;;
10218
10219     hpux10*)
10220       if test yes,no = "$GCC,$with_gnu_ld"; then
10221         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10222       else
10223         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10224       fi
10225       if test no = "$with_gnu_ld"; then
10226         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10227         hardcode_libdir_separator=:
10228         hardcode_direct=yes
10229         hardcode_direct_absolute=yes
10230         export_dynamic_flag_spec='$wl-E'
10231         # hardcode_minus_L: Not really in the search PATH,
10232         # but as the default location of the library.
10233         hardcode_minus_L=yes
10234       fi
10235       ;;
10236
10237     hpux11*)
10238       if test yes,no = "$GCC,$with_gnu_ld"; then
10239         case $host_cpu in
10240         hppa*64*)
10241           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10242           ;;
10243         ia64*)
10244           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10245           ;;
10246         *)
10247           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10248           ;;
10249         esac
10250       else
10251         case $host_cpu in
10252         hppa*64*)
10253           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10254           ;;
10255         ia64*)
10256           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10257           ;;
10258         *)
10259
10260           # Older versions of the 11.00 compiler do not understand -b yet
10261           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10262           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10263 $as_echo_n "checking if $CC understands -b... " >&6; }
10264 if ${lt_cv_prog_compiler__b+:} false; then :
10265   $as_echo_n "(cached) " >&6
10266 else
10267   lt_cv_prog_compiler__b=no
10268    save_LDFLAGS=$LDFLAGS
10269    LDFLAGS="$LDFLAGS -b"
10270    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10271    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10272      # The linker can only warn and ignore the option if not recognized
10273      # So say no if there are warnings
10274      if test -s conftest.err; then
10275        # Append any errors to the config.log.
10276        cat conftest.err 1>&5
10277        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10278        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10279        if diff conftest.exp conftest.er2 >/dev/null; then
10280          lt_cv_prog_compiler__b=yes
10281        fi
10282      else
10283        lt_cv_prog_compiler__b=yes
10284      fi
10285    fi
10286    $RM -r conftest*
10287    LDFLAGS=$save_LDFLAGS
10288
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10291 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10292
10293 if test yes = "$lt_cv_prog_compiler__b"; then
10294     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10295 else
10296     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10297 fi
10298
10299           ;;
10300         esac
10301       fi
10302       if test no = "$with_gnu_ld"; then
10303         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10304         hardcode_libdir_separator=:
10305
10306         case $host_cpu in
10307         hppa*64*|ia64*)
10308           hardcode_direct=no
10309           hardcode_shlibpath_var=no
10310           ;;
10311         *)
10312           hardcode_direct=yes
10313           hardcode_direct_absolute=yes
10314           export_dynamic_flag_spec='$wl-E'
10315
10316           # hardcode_minus_L: Not really in the search PATH,
10317           # but as the default location of the library.
10318           hardcode_minus_L=yes
10319           ;;
10320         esac
10321       fi
10322       ;;
10323
10324     irix5* | irix6* | nonstopux*)
10325       if test yes = "$GCC"; then
10326         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'
10327         # Try to use the -exported_symbol ld option, if it does not
10328         # work, assume that -exports_file does not work either and
10329         # implicitly export all symbols.
10330         # This should be the same for all languages, so no per-tag cache variable.
10331         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10332 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10333 if ${lt_cv_irix_exported_symbol+:} false; then :
10334   $as_echo_n "(cached) " >&6
10335 else
10336   save_LDFLAGS=$LDFLAGS
10337            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10338            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10339 /* end confdefs.h.  */
10340 int foo (void) { return 0; }
10341 _ACEOF
10342 if ac_fn_c_try_link "$LINENO"; then :
10343   lt_cv_irix_exported_symbol=yes
10344 else
10345   lt_cv_irix_exported_symbol=no
10346 fi
10347 rm -f core conftest.err conftest.$ac_objext \
10348     conftest$ac_exeext conftest.$ac_ext
10349            LDFLAGS=$save_LDFLAGS
10350 fi
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10352 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10353         if test yes = "$lt_cv_irix_exported_symbol"; then
10354           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'
10355         fi
10356       else
10357         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'
10358         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'
10359       fi
10360       archive_cmds_need_lc='no'
10361       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10362       hardcode_libdir_separator=:
10363       inherit_rpath=yes
10364       link_all_deplibs=yes
10365       ;;
10366
10367     linux*)
10368       case $cc_basename in
10369       tcc*)
10370         # Fabrice Bellard et al's Tiny C Compiler
10371         ld_shlibs=yes
10372         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10373         ;;
10374       esac
10375       ;;
10376
10377     netbsd*)
10378       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10379         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10380       else
10381         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10382       fi
10383       hardcode_libdir_flag_spec='-R$libdir'
10384       hardcode_direct=yes
10385       hardcode_shlibpath_var=no
10386       ;;
10387
10388     newsos6)
10389       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390       hardcode_direct=yes
10391       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10392       hardcode_libdir_separator=:
10393       hardcode_shlibpath_var=no
10394       ;;
10395
10396     *nto* | *qnx*)
10397       ;;
10398
10399     openbsd* | bitrig*)
10400       if test -f /usr/libexec/ld.so; then
10401         hardcode_direct=yes
10402         hardcode_shlibpath_var=no
10403         hardcode_direct_absolute=yes
10404         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10405           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10406           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10407           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10408           export_dynamic_flag_spec='$wl-E'
10409         else
10410           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10411           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10412         fi
10413       else
10414         ld_shlibs=no
10415       fi
10416       ;;
10417
10418     os2*)
10419       hardcode_libdir_flag_spec='-L$libdir'
10420       hardcode_minus_L=yes
10421       allow_undefined_flag=unsupported
10422       shrext_cmds=.dll
10423       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10424         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10425         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10426         $ECHO EXPORTS >> $output_objdir/$libname.def~
10427         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10428         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10429         emximp -o $lib $output_objdir/$libname.def'
10430       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10431         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10432         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10433         $ECHO EXPORTS >> $output_objdir/$libname.def~
10434         prefix_cmds="$SED"~
10435         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10436           prefix_cmds="$prefix_cmds -e 1d";
10437         fi~
10438         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10439         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10440         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10441         emximp -o $lib $output_objdir/$libname.def'
10442       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10443       enable_shared_with_static_runtimes=yes
10444       ;;
10445
10446     osf3*)
10447       if test yes = "$GCC"; then
10448         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10449         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'
10450       else
10451         allow_undefined_flag=' -expect_unresolved \*'
10452         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'
10453       fi
10454       archive_cmds_need_lc='no'
10455       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10456       hardcode_libdir_separator=:
10457       ;;
10458
10459     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10460       if test yes = "$GCC"; then
10461         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10462         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'
10463         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10464       else
10465         allow_undefined_flag=' -expect_unresolved \*'
10466         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'
10467         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~
10468           $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'
10469
10470         # Both c and cxx compiler support -rpath directly
10471         hardcode_libdir_flag_spec='-rpath $libdir'
10472       fi
10473       archive_cmds_need_lc='no'
10474       hardcode_libdir_separator=:
10475       ;;
10476
10477     solaris*)
10478       no_undefined_flag=' -z defs'
10479       if test yes = "$GCC"; then
10480         wlarc='$wl'
10481         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10482         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10483           $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'
10484       else
10485         case `$CC -V 2>&1` in
10486         *"Compilers 5.0"*)
10487           wlarc=''
10488           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10489           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10490             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10491           ;;
10492         *)
10493           wlarc='$wl'
10494           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10495           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10496             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10497           ;;
10498         esac
10499       fi
10500       hardcode_libdir_flag_spec='-R$libdir'
10501       hardcode_shlibpath_var=no
10502       case $host_os in
10503       solaris2.[0-5] | solaris2.[0-5].*) ;;
10504       *)
10505         # The compiler driver will combine and reorder linker options,
10506         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10507         # but is careful enough not to reorder.
10508         # Supported since Solaris 2.6 (maybe 2.5.1?)
10509         if test yes = "$GCC"; then
10510           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10511         else
10512           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10513         fi
10514         ;;
10515       esac
10516       link_all_deplibs=yes
10517       ;;
10518
10519     sunos4*)
10520       if test sequent = "$host_vendor"; then
10521         # Use $CC to link under sequent, because it throws in some extra .o
10522         # files that make .init and .fini sections work.
10523         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10524       else
10525         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10526       fi
10527       hardcode_libdir_flag_spec='-L$libdir'
10528       hardcode_direct=yes
10529       hardcode_minus_L=yes
10530       hardcode_shlibpath_var=no
10531       ;;
10532
10533     sysv4)
10534       case $host_vendor in
10535         sni)
10536           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10537           hardcode_direct=yes # is this really true???
10538         ;;
10539         siemens)
10540           ## LD is ld it makes a PLAMLIB
10541           ## CC just makes a GrossModule.
10542           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10543           reload_cmds='$CC -r -o $output$reload_objs'
10544           hardcode_direct=no
10545         ;;
10546         motorola)
10547           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10548           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10549         ;;
10550       esac
10551       runpath_var='LD_RUN_PATH'
10552       hardcode_shlibpath_var=no
10553       ;;
10554
10555     sysv4.3*)
10556       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10557       hardcode_shlibpath_var=no
10558       export_dynamic_flag_spec='-Bexport'
10559       ;;
10560
10561     sysv4*MP*)
10562       if test -d /usr/nec; then
10563         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10564         hardcode_shlibpath_var=no
10565         runpath_var=LD_RUN_PATH
10566         hardcode_runpath_var=yes
10567         ld_shlibs=yes
10568       fi
10569       ;;
10570
10571     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10572       no_undefined_flag='$wl-z,text'
10573       archive_cmds_need_lc=no
10574       hardcode_shlibpath_var=no
10575       runpath_var='LD_RUN_PATH'
10576
10577       if test yes = "$GCC"; then
10578         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10580       else
10581         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10582         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10583       fi
10584       ;;
10585
10586     sysv5* | sco3.2v5* | sco5v6*)
10587       # Note: We CANNOT use -z defs as we might desire, because we do not
10588       # link with -lc, and that would cause any symbols used from libc to
10589       # always be unresolved, which means just about no library would
10590       # ever link correctly.  If we're not using GNU ld we use -z text
10591       # though, which does catch some bad symbols but isn't as heavy-handed
10592       # as -z defs.
10593       no_undefined_flag='$wl-z,text'
10594       allow_undefined_flag='$wl-z,nodefs'
10595       archive_cmds_need_lc=no
10596       hardcode_shlibpath_var=no
10597       hardcode_libdir_flag_spec='$wl-R,$libdir'
10598       hardcode_libdir_separator=':'
10599       link_all_deplibs=yes
10600       export_dynamic_flag_spec='$wl-Bexport'
10601       runpath_var='LD_RUN_PATH'
10602
10603       if test yes = "$GCC"; then
10604         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10606       else
10607         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10608         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10609       fi
10610       ;;
10611
10612     uts4*)
10613       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614       hardcode_libdir_flag_spec='-L$libdir'
10615       hardcode_shlibpath_var=no
10616       ;;
10617
10618     *)
10619       ld_shlibs=no
10620       ;;
10621     esac
10622
10623     if test sni = "$host_vendor"; then
10624       case $host in
10625       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10626         export_dynamic_flag_spec='$wl-Blargedynsym'
10627         ;;
10628       esac
10629     fi
10630   fi
10631
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10633 $as_echo "$ld_shlibs" >&6; }
10634 test no = "$ld_shlibs" && can_build_shared=no
10635
10636 with_gnu_ld=$with_gnu_ld
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652 #
10653 # Do we need to explicitly link libc?
10654 #
10655 case "x$archive_cmds_need_lc" in
10656 x|xyes)
10657   # Assume -lc should be added
10658   archive_cmds_need_lc=yes
10659
10660   if test yes,yes = "$GCC,$enable_shared"; then
10661     case $archive_cmds in
10662     *'~'*)
10663       # FIXME: we may have to deal with multi-command sequences.
10664       ;;
10665     '$CC '*)
10666       # Test whether the compiler implicitly links with -lc since on some
10667       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10668       # to ld, don't add -lc before -lgcc.
10669       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10670 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10671 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10672   $as_echo_n "(cached) " >&6
10673 else
10674   $RM conftest*
10675         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10676
10677         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10678   (eval $ac_compile) 2>&5
10679   ac_status=$?
10680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10681   test $ac_status = 0; } 2>conftest.err; then
10682           soname=conftest
10683           lib=conftest
10684           libobjs=conftest.$ac_objext
10685           deplibs=
10686           wl=$lt_prog_compiler_wl
10687           pic_flag=$lt_prog_compiler_pic
10688           compiler_flags=-v
10689           linker_flags=-v
10690           verstring=
10691           output_objdir=.
10692           libname=conftest
10693           lt_save_allow_undefined_flag=$allow_undefined_flag
10694           allow_undefined_flag=
10695           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10696   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10697   ac_status=$?
10698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10699   test $ac_status = 0; }
10700           then
10701             lt_cv_archive_cmds_need_lc=no
10702           else
10703             lt_cv_archive_cmds_need_lc=yes
10704           fi
10705           allow_undefined_flag=$lt_save_allow_undefined_flag
10706         else
10707           cat conftest.err 1>&5
10708         fi
10709         $RM conftest*
10710
10711 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10713 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10714       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10715       ;;
10716     esac
10717   fi
10718   ;;
10719 esac
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10873 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10874
10875 if test yes = "$GCC"; then
10876   case $host_os in
10877     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10878     *) lt_awk_arg='/^libraries:/' ;;
10879   esac
10880   case $host_os in
10881     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10882     *) lt_sed_strip_eq='s|=/|/|g' ;;
10883   esac
10884   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10885   case $lt_search_path_spec in
10886   *\;*)
10887     # if the path contains ";" then we assume it to be the separator
10888     # otherwise default to the standard path separator (i.e. ":") - it is
10889     # assumed that no part of a normal pathname contains ";" but that should
10890     # okay in the real world where ";" in dirpaths is itself problematic.
10891     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10892     ;;
10893   *)
10894     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10895     ;;
10896   esac
10897   # Ok, now we have the path, separated by spaces, we can step through it
10898   # and add multilib dir if necessary...
10899   lt_tmp_lt_search_path_spec=
10900   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10901   # ...but if some path component already ends with the multilib dir we assume
10902   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10903   case "$lt_multi_os_dir; $lt_search_path_spec " in
10904   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10905     lt_multi_os_dir=
10906     ;;
10907   esac
10908   for lt_sys_path in $lt_search_path_spec; do
10909     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10910       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10911     elif test -n "$lt_multi_os_dir"; then
10912       test -d "$lt_sys_path" && \
10913         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10914     fi
10915   done
10916   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10917 BEGIN {RS = " "; FS = "/|\n";} {
10918   lt_foo = "";
10919   lt_count = 0;
10920   for (lt_i = NF; lt_i > 0; lt_i--) {
10921     if ($lt_i != "" && $lt_i != ".") {
10922       if ($lt_i == "..") {
10923         lt_count++;
10924       } else {
10925         if (lt_count == 0) {
10926           lt_foo = "/" $lt_i lt_foo;
10927         } else {
10928           lt_count--;
10929         }
10930       }
10931     }
10932   }
10933   if (lt_foo != "") { lt_freq[lt_foo]++; }
10934   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10935 }'`
10936   # AWK program above erroneously prepends '/' to C:/dos/paths
10937   # for these hosts.
10938   case $host_os in
10939     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10940       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10941   esac
10942   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10943 else
10944   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10945 fi
10946 library_names_spec=
10947 libname_spec='lib$name'
10948 soname_spec=
10949 shrext_cmds=.so
10950 postinstall_cmds=
10951 postuninstall_cmds=
10952 finish_cmds=
10953 finish_eval=
10954 shlibpath_var=
10955 shlibpath_overrides_runpath=unknown
10956 version_type=none
10957 dynamic_linker="$host_os ld.so"
10958 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10959 need_lib_prefix=unknown
10960 hardcode_into_libs=no
10961
10962 # when you set need_version to no, make sure it does not cause -set_version
10963 # flags to be left without arguments
10964 need_version=unknown
10965
10966
10967
10968 case $host_os in
10969 aix3*)
10970   version_type=linux # correct to gnu/linux during the next big refactor
10971   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10972   shlibpath_var=LIBPATH
10973
10974   # AIX 3 has no versioning support, so we append a major version to the name.
10975   soname_spec='$libname$release$shared_ext$major'
10976   ;;
10977
10978 aix[4-9]*)
10979   version_type=linux # correct to gnu/linux during the next big refactor
10980   need_lib_prefix=no
10981   need_version=no
10982   hardcode_into_libs=yes
10983   if test ia64 = "$host_cpu"; then
10984     # AIX 5 supports IA64
10985     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10986     shlibpath_var=LD_LIBRARY_PATH
10987   else
10988     # With GCC up to 2.95.x, collect2 would create an import file
10989     # for dependence libraries.  The import file would start with
10990     # the line '#! .'.  This would cause the generated library to
10991     # depend on '.', always an invalid library.  This was fixed in
10992     # development snapshots of GCC prior to 3.0.
10993     case $host_os in
10994       aix4 | aix4.[01] | aix4.[01].*)
10995       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10996            echo ' yes '
10997            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10998         :
10999       else
11000         can_build_shared=no
11001       fi
11002       ;;
11003     esac
11004     # Using Import Files as archive members, it is possible to support
11005     # filename-based versioning of shared library archives on AIX. While
11006     # this would work for both with and without runtime linking, it will
11007     # prevent static linking of such archives. So we do filename-based
11008     # shared library versioning with .so extension only, which is used
11009     # when both runtime linking and shared linking is enabled.
11010     # Unfortunately, runtime linking may impact performance, so we do
11011     # not want this to be the default eventually. Also, we use the
11012     # versioned .so libs for executables only if there is the -brtl
11013     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11014     # To allow for filename-based versioning support, we need to create
11015     # libNAME.so.V as an archive file, containing:
11016     # *) an Import File, referring to the versioned filename of the
11017     #    archive as well as the shared archive member, telling the
11018     #    bitwidth (32 or 64) of that shared object, and providing the
11019     #    list of exported symbols of that shared object, eventually
11020     #    decorated with the 'weak' keyword
11021     # *) the shared object with the F_LOADONLY flag set, to really avoid
11022     #    it being seen by the linker.
11023     # At run time we better use the real file rather than another symlink,
11024     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11025
11026     case $with_aix_soname,$aix_use_runtimelinking in
11027     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11028     # soname into executable. Probably we can add versioning support to
11029     # collect2, so additional links can be useful in future.
11030     aix,yes) # traditional libtool
11031       dynamic_linker='AIX unversionable lib.so'
11032       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11033       # instead of lib<name>.a to let people know that these are not
11034       # typical AIX shared libraries.
11035       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11036       ;;
11037     aix,no) # traditional AIX only
11038       dynamic_linker='AIX lib.a(lib.so.V)'
11039       # We preserve .a as extension for shared libraries through AIX4.2
11040       # and later when we are not doing run time linking.
11041       library_names_spec='$libname$release.a $libname.a'
11042       soname_spec='$libname$release$shared_ext$major'
11043       ;;
11044     svr4,*) # full svr4 only
11045       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11046       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11047       # We do not specify a path in Import Files, so LIBPATH fires.
11048       shlibpath_overrides_runpath=yes
11049       ;;
11050     *,yes) # both, prefer svr4
11051       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11052       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11053       # unpreferred sharedlib libNAME.a needs extra handling
11054       postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11055       postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11056       # We do not specify a path in Import Files, so LIBPATH fires.
11057       shlibpath_overrides_runpath=yes
11058       ;;
11059     *,no) # both, prefer aix
11060       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11061       library_names_spec='$libname$release.a $libname.a'
11062       soname_spec='$libname$release$shared_ext$major'
11063       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11064       postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11065       postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11066       ;;
11067     esac
11068     shlibpath_var=LIBPATH
11069   fi
11070   ;;
11071
11072 amigaos*)
11073   case $host_cpu in
11074   powerpc)
11075     # Since July 2007 AmigaOS4 officially supports .so libraries.
11076     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11077     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11078     ;;
11079   m68k)
11080     library_names_spec='$libname.ixlibrary $libname.a'
11081     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11082     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11083     ;;
11084   esac
11085   ;;
11086
11087 beos*)
11088   library_names_spec='$libname$shared_ext'
11089   dynamic_linker="$host_os ld.so"
11090   shlibpath_var=LIBRARY_PATH
11091   ;;
11092
11093 bsdi[45]*)
11094   version_type=linux # correct to gnu/linux during the next big refactor
11095   need_version=no
11096   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11097   soname_spec='$libname$release$shared_ext$major'
11098   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11099   shlibpath_var=LD_LIBRARY_PATH
11100   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11101   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11102   # the default ld.so.conf also contains /usr/contrib/lib and
11103   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11104   # libtool to hard-code these into programs
11105   ;;
11106
11107 cygwin* | mingw* | pw32* | cegcc*)
11108   version_type=windows
11109   shrext_cmds=.dll
11110   need_version=no
11111   need_lib_prefix=no
11112
11113   case $GCC,$cc_basename in
11114   yes,*)
11115     # gcc
11116     library_names_spec='$libname.dll.a'
11117     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11118     postinstall_cmds='base_file=`basename \$file`~
11119       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11120       dldir=$destdir/`dirname \$dlpath`~
11121       test -d \$dldir || mkdir -p \$dldir~
11122       $install_prog $dir/$dlname \$dldir/$dlname~
11123       chmod a+x \$dldir/$dlname~
11124       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11125         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11126       fi'
11127     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11128       dlpath=$dir/\$dldll~
11129        $RM \$dlpath'
11130     shlibpath_overrides_runpath=yes
11131
11132     case $host_os in
11133     cygwin*)
11134       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11135       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11136
11137       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11138       ;;
11139     mingw* | cegcc*)
11140       # MinGW DLLs use traditional 'lib' prefix
11141       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11142       ;;
11143     pw32*)
11144       # pw32 DLLs use 'pw' prefix rather than 'lib'
11145       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11146       ;;
11147     esac
11148     dynamic_linker='Win32 ld.exe'
11149     ;;
11150
11151   *,cl*)
11152     # Native MSVC
11153     libname_spec='$name'
11154     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11155     library_names_spec='$libname.dll.lib'
11156
11157     case $build_os in
11158     mingw*)
11159       sys_lib_search_path_spec=
11160       lt_save_ifs=$IFS
11161       IFS=';'
11162       for lt_path in $LIB
11163       do
11164         IFS=$lt_save_ifs
11165         # Let DOS variable expansion print the short 8.3 style file name.
11166         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11167         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11168       done
11169       IFS=$lt_save_ifs
11170       # Convert to MSYS style.
11171       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11172       ;;
11173     cygwin*)
11174       # Convert to unix form, then to dos form, then back to unix form
11175       # but this time dos style (no spaces!) so that the unix form looks
11176       # like /cygdrive/c/PROGRA~1:/cygdr...
11177       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11178       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11179       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11180       ;;
11181     *)
11182       sys_lib_search_path_spec=$LIB
11183       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11184         # It is most probably a Windows format PATH.
11185         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11186       else
11187         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11188       fi
11189       # FIXME: find the short name or the path components, as spaces are
11190       # common. (e.g. "Program Files" -> "PROGRA~1")
11191       ;;
11192     esac
11193
11194     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11195     postinstall_cmds='base_file=`basename \$file`~
11196       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11197       dldir=$destdir/`dirname \$dlpath`~
11198       test -d \$dldir || mkdir -p \$dldir~
11199       $install_prog $dir/$dlname \$dldir/$dlname'
11200     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11201       dlpath=$dir/\$dldll~
11202        $RM \$dlpath'
11203     shlibpath_overrides_runpath=yes
11204     dynamic_linker='Win32 link.exe'
11205     ;;
11206
11207   *)
11208     # Assume MSVC wrapper
11209     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11210     dynamic_linker='Win32 ld.exe'
11211     ;;
11212   esac
11213   # FIXME: first we should search . and the directory the executable is in
11214   shlibpath_var=PATH
11215   ;;
11216
11217 darwin* | rhapsody*)
11218   dynamic_linker="$host_os dyld"
11219   version_type=darwin
11220   need_lib_prefix=no
11221   need_version=no
11222   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11223   soname_spec='$libname$release$major$shared_ext'
11224   shlibpath_overrides_runpath=yes
11225   shlibpath_var=DYLD_LIBRARY_PATH
11226   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11227
11228   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11229   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11230   ;;
11231
11232 dgux*)
11233   version_type=linux # correct to gnu/linux during the next big refactor
11234   need_lib_prefix=no
11235   need_version=no
11236   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11237   soname_spec='$libname$release$shared_ext$major'
11238   shlibpath_var=LD_LIBRARY_PATH
11239   ;;
11240
11241 freebsd* | dragonfly*)
11242   # DragonFly does not have aout.  When/if they implement a new
11243   # versioning mechanism, adjust this.
11244   if test -x /usr/bin/objformat; then
11245     objformat=`/usr/bin/objformat`
11246   else
11247     case $host_os in
11248     freebsd[23].*) objformat=aout ;;
11249     *) objformat=elf ;;
11250     esac
11251   fi
11252   version_type=freebsd-$objformat
11253   case $version_type in
11254     freebsd-elf*)
11255       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11256       soname_spec='$libname$release$shared_ext$major'
11257       need_version=no
11258       need_lib_prefix=no
11259       ;;
11260     freebsd-*)
11261       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11262       need_version=yes
11263       ;;
11264   esac
11265   shlibpath_var=LD_LIBRARY_PATH
11266   case $host_os in
11267   freebsd2.*)
11268     shlibpath_overrides_runpath=yes
11269     ;;
11270   freebsd3.[01]* | freebsdelf3.[01]*)
11271     shlibpath_overrides_runpath=yes
11272     hardcode_into_libs=yes
11273     ;;
11274   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11275   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11276     shlibpath_overrides_runpath=no
11277     hardcode_into_libs=yes
11278     ;;
11279   *) # from 4.6 on, and DragonFly
11280     shlibpath_overrides_runpath=yes
11281     hardcode_into_libs=yes
11282     ;;
11283   esac
11284   ;;
11285
11286 haiku*)
11287   version_type=linux # correct to gnu/linux during the next big refactor
11288   need_lib_prefix=no
11289   need_version=no
11290   dynamic_linker="$host_os runtime_loader"
11291   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11292   soname_spec='$libname$release$shared_ext$major'
11293   shlibpath_var=LIBRARY_PATH
11294   shlibpath_overrides_runpath=no
11295   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11296   hardcode_into_libs=yes
11297   ;;
11298
11299 hpux9* | hpux10* | hpux11*)
11300   # Give a soname corresponding to the major version so that dld.sl refuses to
11301   # link against other versions.
11302   version_type=sunos
11303   need_lib_prefix=no
11304   need_version=no
11305   case $host_cpu in
11306   ia64*)
11307     shrext_cmds='.so'
11308     hardcode_into_libs=yes
11309     dynamic_linker="$host_os dld.so"
11310     shlibpath_var=LD_LIBRARY_PATH
11311     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11312     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11313     soname_spec='$libname$release$shared_ext$major'
11314     if test 32 = "$HPUX_IA64_MODE"; then
11315       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11316       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11317     else
11318       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11319       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11320     fi
11321     ;;
11322   hppa*64*)
11323     shrext_cmds='.sl'
11324     hardcode_into_libs=yes
11325     dynamic_linker="$host_os dld.sl"
11326     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11327     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11328     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11329     soname_spec='$libname$release$shared_ext$major'
11330     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11331     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11332     ;;
11333   *)
11334     shrext_cmds='.sl'
11335     dynamic_linker="$host_os dld.sl"
11336     shlibpath_var=SHLIB_PATH
11337     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11338     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11339     soname_spec='$libname$release$shared_ext$major'
11340     ;;
11341   esac
11342   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11343   postinstall_cmds='chmod 555 $lib'
11344   # or fails outright, so override atomically:
11345   install_override_mode=555
11346   ;;
11347
11348 interix[3-9]*)
11349   version_type=linux # correct to gnu/linux during the next big refactor
11350   need_lib_prefix=no
11351   need_version=no
11352   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11353   soname_spec='$libname$release$shared_ext$major'
11354   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11355   shlibpath_var=LD_LIBRARY_PATH
11356   shlibpath_overrides_runpath=no
11357   hardcode_into_libs=yes
11358   ;;
11359
11360 irix5* | irix6* | nonstopux*)
11361   case $host_os in
11362     nonstopux*) version_type=nonstopux ;;
11363     *)
11364         if test yes = "$lt_cv_prog_gnu_ld"; then
11365                 version_type=linux # correct to gnu/linux during the next big refactor
11366         else
11367                 version_type=irix
11368         fi ;;
11369   esac
11370   need_lib_prefix=no
11371   need_version=no
11372   soname_spec='$libname$release$shared_ext$major'
11373   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11374   case $host_os in
11375   irix5* | nonstopux*)
11376     libsuff= shlibsuff=
11377     ;;
11378   *)
11379     case $LD in # libtool.m4 will add one of these switches to LD
11380     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11381       libsuff= shlibsuff= libmagic=32-bit;;
11382     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11383       libsuff=32 shlibsuff=N32 libmagic=N32;;
11384     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11385       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11386     *) libsuff= shlibsuff= libmagic=never-match;;
11387     esac
11388     ;;
11389   esac
11390   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11391   shlibpath_overrides_runpath=no
11392   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11393   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11394   hardcode_into_libs=yes
11395   ;;
11396
11397 # No shared lib support for Linux oldld, aout, or coff.
11398 linux*oldld* | linux*aout* | linux*coff*)
11399   dynamic_linker=no
11400   ;;
11401
11402 linux*android*)
11403   version_type=none # Android doesn't support versioned libraries.
11404   need_lib_prefix=no
11405   need_version=no
11406   library_names_spec='$libname$release$shared_ext'
11407   soname_spec='$libname$release$shared_ext'
11408   finish_cmds=
11409   shlibpath_var=LD_LIBRARY_PATH
11410   shlibpath_overrides_runpath=yes
11411
11412   # This implies no fast_install, which is unacceptable.
11413   # Some rework will be needed to allow for fast_install
11414   # before this can be enabled.
11415   hardcode_into_libs=yes
11416
11417   dynamic_linker='Android linker'
11418   # Don't embed -rpath directories since the linker doesn't support them.
11419   hardcode_libdir_flag_spec='-L$libdir'
11420   ;;
11421
11422 # This must be glibc/ELF.
11423 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11424   version_type=linux # correct to gnu/linux during the next big refactor
11425   need_lib_prefix=no
11426   need_version=no
11427   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11428   soname_spec='$libname$release$shared_ext$major'
11429   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11430   shlibpath_var=LD_LIBRARY_PATH
11431   shlibpath_overrides_runpath=no
11432
11433   # Some binutils ld are patched to set DT_RUNPATH
11434   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11435   $as_echo_n "(cached) " >&6
11436 else
11437   lt_cv_shlibpath_overrides_runpath=no
11438     save_LDFLAGS=$LDFLAGS
11439     save_libdir=$libdir
11440     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11441          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11442     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11443 /* end confdefs.h.  */
11444
11445 int
11446 main ()
11447 {
11448
11449   ;
11450   return 0;
11451 }
11452 _ACEOF
11453 if ac_fn_c_try_link "$LINENO"; then :
11454   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11455   lt_cv_shlibpath_overrides_runpath=yes
11456 fi
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext \
11459     conftest$ac_exeext conftest.$ac_ext
11460     LDFLAGS=$save_LDFLAGS
11461     libdir=$save_libdir
11462
11463 fi
11464
11465   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11466
11467   # This implies no fast_install, which is unacceptable.
11468   # Some rework will be needed to allow for fast_install
11469   # before this can be enabled.
11470   hardcode_into_libs=yes
11471
11472   # Add ABI-specific directories to the system library path.
11473   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11474
11475   # Ideally, we could use ldconfig to report *all* directores which are
11476   # searched for libraries, however this is still not possible.  Aside from not
11477   # being certain /sbin/ldconfig is available, command
11478   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11479   # even though it is searched at run-time.  Try to do the best guess by
11480   # appending ld.so.conf contents (and includes) to the search path.
11481   if test -f /etc/ld.so.conf; then
11482     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' ' '`
11483     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11484   fi
11485
11486   # We used to test for /lib/ld.so.1 and disable shared libraries on
11487   # powerpc, because MkLinux only supported shared libraries with the
11488   # GNU dynamic linker.  Since this was broken with cross compilers,
11489   # most powerpc-linux boxes support dynamic linking these days and
11490   # people can always --disable-shared, the test was removed, and we
11491   # assume the GNU/Linux dynamic linker is in use.
11492   dynamic_linker='GNU/Linux ld.so'
11493   ;;
11494
11495 netbsd*)
11496   version_type=sunos
11497   need_lib_prefix=no
11498   need_version=no
11499   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11500     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11501     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11502     dynamic_linker='NetBSD (a.out) ld.so'
11503   else
11504     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11505     soname_spec='$libname$release$shared_ext$major'
11506     dynamic_linker='NetBSD ld.elf_so'
11507   fi
11508   shlibpath_var=LD_LIBRARY_PATH
11509   shlibpath_overrides_runpath=yes
11510   hardcode_into_libs=yes
11511   ;;
11512
11513 newsos6)
11514   version_type=linux # correct to gnu/linux during the next big refactor
11515   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11516   shlibpath_var=LD_LIBRARY_PATH
11517   shlibpath_overrides_runpath=yes
11518   ;;
11519
11520 *nto* | *qnx*)
11521   version_type=qnx
11522   need_lib_prefix=no
11523   need_version=no
11524   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11525   soname_spec='$libname$release$shared_ext$major'
11526   shlibpath_var=LD_LIBRARY_PATH
11527   shlibpath_overrides_runpath=no
11528   hardcode_into_libs=yes
11529   dynamic_linker='ldqnx.so'
11530   ;;
11531
11532 openbsd* | bitrig*)
11533   version_type=sunos
11534   sys_lib_dlsearch_path_spec=/usr/lib
11535   need_lib_prefix=no
11536   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11537     need_version=no
11538   else
11539     need_version=yes
11540   fi
11541   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11542   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11543   shlibpath_var=LD_LIBRARY_PATH
11544   shlibpath_overrides_runpath=yes
11545   ;;
11546
11547 os2*)
11548   libname_spec='$name'
11549   version_type=windows
11550   shrext_cmds=.dll
11551   need_version=no
11552   need_lib_prefix=no
11553   # OS/2 can only load a DLL with a base name of 8 characters or less.
11554   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11555     v=$($ECHO $release$versuffix | tr -d .-);
11556     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11557     $ECHO $n$v`$shared_ext'
11558   library_names_spec='${libname}_dll.$libext'
11559   dynamic_linker='OS/2 ld.exe'
11560   shlibpath_var=BEGINLIBPATH
11561   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11562   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11563   postinstall_cmds='base_file=`basename \$file`~
11564     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11565     dldir=$destdir/`dirname \$dlpath`~
11566     test -d \$dldir || mkdir -p \$dldir~
11567     $install_prog $dir/$dlname \$dldir/$dlname~
11568     chmod a+x \$dldir/$dlname~
11569     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11570       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11571     fi'
11572   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11573     dlpath=$dir/\$dldll~
11574     $RM \$dlpath'
11575   ;;
11576
11577 osf3* | osf4* | osf5*)
11578   version_type=osf
11579   need_lib_prefix=no
11580   need_version=no
11581   soname_spec='$libname$release$shared_ext$major'
11582   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11583   shlibpath_var=LD_LIBRARY_PATH
11584   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11585   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11586   ;;
11587
11588 rdos*)
11589   dynamic_linker=no
11590   ;;
11591
11592 solaris*)
11593   version_type=linux # correct to gnu/linux during the next big refactor
11594   need_lib_prefix=no
11595   need_version=no
11596   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11597   soname_spec='$libname$release$shared_ext$major'
11598   shlibpath_var=LD_LIBRARY_PATH
11599   shlibpath_overrides_runpath=yes
11600   hardcode_into_libs=yes
11601   # ldd complains unless libraries are executable
11602   postinstall_cmds='chmod +x $lib'
11603   ;;
11604
11605 sunos4*)
11606   version_type=sunos
11607   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11608   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11609   shlibpath_var=LD_LIBRARY_PATH
11610   shlibpath_overrides_runpath=yes
11611   if test yes = "$with_gnu_ld"; then
11612     need_lib_prefix=no
11613   fi
11614   need_version=yes
11615   ;;
11616
11617 sysv4 | sysv4.3*)
11618   version_type=linux # correct to gnu/linux during the next big refactor
11619   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11620   soname_spec='$libname$release$shared_ext$major'
11621   shlibpath_var=LD_LIBRARY_PATH
11622   case $host_vendor in
11623     sni)
11624       shlibpath_overrides_runpath=no
11625       need_lib_prefix=no
11626       runpath_var=LD_RUN_PATH
11627       ;;
11628     siemens)
11629       need_lib_prefix=no
11630       ;;
11631     motorola)
11632       need_lib_prefix=no
11633       need_version=no
11634       shlibpath_overrides_runpath=no
11635       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11636       ;;
11637   esac
11638   ;;
11639
11640 sysv4*MP*)
11641   if test -d /usr/nec; then
11642     version_type=linux # correct to gnu/linux during the next big refactor
11643     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11644     soname_spec='$libname$shared_ext.$major'
11645     shlibpath_var=LD_LIBRARY_PATH
11646   fi
11647   ;;
11648
11649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11650   version_type=sco
11651   need_lib_prefix=no
11652   need_version=no
11653   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11654   soname_spec='$libname$release$shared_ext$major'
11655   shlibpath_var=LD_LIBRARY_PATH
11656   shlibpath_overrides_runpath=yes
11657   hardcode_into_libs=yes
11658   if test yes = "$with_gnu_ld"; then
11659     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11660   else
11661     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11662     case $host_os in
11663       sco3.2v5*)
11664         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11665         ;;
11666     esac
11667   fi
11668   sys_lib_dlsearch_path_spec='/usr/lib'
11669   ;;
11670
11671 tpf*)
11672   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11673   version_type=linux # correct to gnu/linux during the next big refactor
11674   need_lib_prefix=no
11675   need_version=no
11676   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11677   shlibpath_var=LD_LIBRARY_PATH
11678   shlibpath_overrides_runpath=no
11679   hardcode_into_libs=yes
11680   ;;
11681
11682 uts4*)
11683   version_type=linux # correct to gnu/linux during the next big refactor
11684   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11685   soname_spec='$libname$release$shared_ext$major'
11686   shlibpath_var=LD_LIBRARY_PATH
11687   ;;
11688
11689 *)
11690   dynamic_linker=no
11691   ;;
11692 esac
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11694 $as_echo "$dynamic_linker" >&6; }
11695 test no = "$dynamic_linker" && can_build_shared=no
11696
11697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11698 if test yes = "$GCC"; then
11699   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11700 fi
11701
11702 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11703   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11704 fi
11705
11706 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11707   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11708 fi
11709
11710 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11711 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11712
11713 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11714 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11715
11716 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11717 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11816 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11817 hardcode_action=
11818 if test -n "$hardcode_libdir_flag_spec" ||
11819    test -n "$runpath_var" ||
11820    test yes = "$hardcode_automatic"; then
11821
11822   # We can hardcode non-existent directories.
11823   if test no != "$hardcode_direct" &&
11824      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11825      # have to relink, otherwise we might link with an installed library
11826      # when we should be linking with a yet-to-be-installed one
11827      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11828      test no != "$hardcode_minus_L"; then
11829     # Linking always hardcodes the temporary library directory.
11830     hardcode_action=relink
11831   else
11832     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11833     hardcode_action=immediate
11834   fi
11835 else
11836   # We cannot hardcode anything, or else we can only hardcode existing
11837   # directories.
11838   hardcode_action=unsupported
11839 fi
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11841 $as_echo "$hardcode_action" >&6; }
11842
11843 if test relink = "$hardcode_action" ||
11844    test yes = "$inherit_rpath"; then
11845   # Fast installation is not supported
11846   enable_fast_install=no
11847 elif test yes = "$shlibpath_overrides_runpath" ||
11848      test no = "$enable_shared"; then
11849   # Fast installation is not necessary
11850   enable_fast_install=needless
11851 fi
11852
11853
11854
11855
11856
11857
11858   if test yes != "$enable_dlopen"; then
11859   enable_dlopen=unknown
11860   enable_dlopen_self=unknown
11861   enable_dlopen_self_static=unknown
11862 else
11863   lt_cv_dlopen=no
11864   lt_cv_dlopen_libs=
11865
11866   case $host_os in
11867   beos*)
11868     lt_cv_dlopen=load_add_on
11869     lt_cv_dlopen_libs=
11870     lt_cv_dlopen_self=yes
11871     ;;
11872
11873   mingw* | pw32* | cegcc*)
11874     lt_cv_dlopen=LoadLibrary
11875     lt_cv_dlopen_libs=
11876     ;;
11877
11878   cygwin*)
11879     lt_cv_dlopen=dlopen
11880     lt_cv_dlopen_libs=
11881     ;;
11882
11883   darwin*)
11884     # if libdl is installed we need to link against it
11885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11886 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11887 if ${ac_cv_lib_dl_dlopen+:} false; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   ac_check_lib_save_LIBS=$LIBS
11891 LIBS="-ldl  $LIBS"
11892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11893 /* end confdefs.h.  */
11894
11895 /* Override any GCC internal prototype to avoid an error.
11896    Use char because int might match the return type of a GCC
11897    builtin and then its argument prototype would still apply.  */
11898 #ifdef __cplusplus
11899 extern "C"
11900 #endif
11901 char dlopen ();
11902 int
11903 main ()
11904 {
11905 return dlopen ();
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 if ac_fn_c_try_link "$LINENO"; then :
11911   ac_cv_lib_dl_dlopen=yes
11912 else
11913   ac_cv_lib_dl_dlopen=no
11914 fi
11915 rm -f core conftest.err conftest.$ac_objext \
11916     conftest$ac_exeext conftest.$ac_ext
11917 LIBS=$ac_check_lib_save_LIBS
11918 fi
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11920 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11921 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11922   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11923 else
11924
11925     lt_cv_dlopen=dyld
11926     lt_cv_dlopen_libs=
11927     lt_cv_dlopen_self=yes
11928
11929 fi
11930
11931     ;;
11932
11933   tpf*)
11934     # Don't try to run any link tests for TPF.  We know it's impossible
11935     # because TPF is a cross-compiler, and we know how we open DSOs.
11936     lt_cv_dlopen=dlopen
11937     lt_cv_dlopen_libs=
11938     lt_cv_dlopen_self=no
11939     ;;
11940
11941   *)
11942     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11943 if test "x$ac_cv_func_shl_load" = xyes; then :
11944   lt_cv_dlopen=shl_load
11945 else
11946   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11947 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11948 if ${ac_cv_lib_dld_shl_load+:} false; then :
11949   $as_echo_n "(cached) " >&6
11950 else
11951   ac_check_lib_save_LIBS=$LIBS
11952 LIBS="-ldld  $LIBS"
11953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11954 /* end confdefs.h.  */
11955
11956 /* Override any GCC internal prototype to avoid an error.
11957    Use char because int might match the return type of a GCC
11958    builtin and then its argument prototype would still apply.  */
11959 #ifdef __cplusplus
11960 extern "C"
11961 #endif
11962 char shl_load ();
11963 int
11964 main ()
11965 {
11966 return shl_load ();
11967   ;
11968   return 0;
11969 }
11970 _ACEOF
11971 if ac_fn_c_try_link "$LINENO"; then :
11972   ac_cv_lib_dld_shl_load=yes
11973 else
11974   ac_cv_lib_dld_shl_load=no
11975 fi
11976 rm -f core conftest.err conftest.$ac_objext \
11977     conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11979 fi
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11981 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11982 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11983   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11984 else
11985   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11986 if test "x$ac_cv_func_dlopen" = xyes; then :
11987   lt_cv_dlopen=dlopen
11988 else
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11990 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11991 if ${ac_cv_lib_dl_dlopen+:} false; then :
11992   $as_echo_n "(cached) " >&6
11993 else
11994   ac_check_lib_save_LIBS=$LIBS
11995 LIBS="-ldl  $LIBS"
11996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11997 /* end confdefs.h.  */
11998
11999 /* Override any GCC internal prototype to avoid an error.
12000    Use char because int might match the return type of a GCC
12001    builtin and then its argument prototype would still apply.  */
12002 #ifdef __cplusplus
12003 extern "C"
12004 #endif
12005 char dlopen ();
12006 int
12007 main ()
12008 {
12009 return dlopen ();
12010   ;
12011   return 0;
12012 }
12013 _ACEOF
12014 if ac_fn_c_try_link "$LINENO"; then :
12015   ac_cv_lib_dl_dlopen=yes
12016 else
12017   ac_cv_lib_dl_dlopen=no
12018 fi
12019 rm -f core conftest.err conftest.$ac_objext \
12020     conftest$ac_exeext conftest.$ac_ext
12021 LIBS=$ac_check_lib_save_LIBS
12022 fi
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12024 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12025 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12026   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12027 else
12028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12029 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12030 if ${ac_cv_lib_svld_dlopen+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   ac_check_lib_save_LIBS=$LIBS
12034 LIBS="-lsvld  $LIBS"
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h.  */
12037
12038 /* Override any GCC internal prototype to avoid an error.
12039    Use char because int might match the return type of a GCC
12040    builtin and then its argument prototype would still apply.  */
12041 #ifdef __cplusplus
12042 extern "C"
12043 #endif
12044 char dlopen ();
12045 int
12046 main ()
12047 {
12048 return dlopen ();
12049   ;
12050   return 0;
12051 }
12052 _ACEOF
12053 if ac_fn_c_try_link "$LINENO"; then :
12054   ac_cv_lib_svld_dlopen=yes
12055 else
12056   ac_cv_lib_svld_dlopen=no
12057 fi
12058 rm -f core conftest.err conftest.$ac_objext \
12059     conftest$ac_exeext conftest.$ac_ext
12060 LIBS=$ac_check_lib_save_LIBS
12061 fi
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12063 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12064 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12065   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12066 else
12067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12068 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12069 if ${ac_cv_lib_dld_dld_link+:} false; then :
12070   $as_echo_n "(cached) " >&6
12071 else
12072   ac_check_lib_save_LIBS=$LIBS
12073 LIBS="-ldld  $LIBS"
12074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12075 /* end confdefs.h.  */
12076
12077 /* Override any GCC internal prototype to avoid an error.
12078    Use char because int might match the return type of a GCC
12079    builtin and then its argument prototype would still apply.  */
12080 #ifdef __cplusplus
12081 extern "C"
12082 #endif
12083 char dld_link ();
12084 int
12085 main ()
12086 {
12087 return dld_link ();
12088   ;
12089   return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_c_try_link "$LINENO"; then :
12093   ac_cv_lib_dld_dld_link=yes
12094 else
12095   ac_cv_lib_dld_dld_link=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext \
12098     conftest$ac_exeext conftest.$ac_ext
12099 LIBS=$ac_check_lib_save_LIBS
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12102 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12103 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12104   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12105 fi
12106
12107
12108 fi
12109
12110
12111 fi
12112
12113
12114 fi
12115
12116
12117 fi
12118
12119
12120 fi
12121
12122     ;;
12123   esac
12124
12125   if test no = "$lt_cv_dlopen"; then
12126     enable_dlopen=no
12127   else
12128     enable_dlopen=yes
12129   fi
12130
12131   case $lt_cv_dlopen in
12132   dlopen)
12133     save_CPPFLAGS=$CPPFLAGS
12134     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12135
12136     save_LDFLAGS=$LDFLAGS
12137     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12138
12139     save_LIBS=$LIBS
12140     LIBS="$lt_cv_dlopen_libs $LIBS"
12141
12142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12143 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12144 if ${lt_cv_dlopen_self+:} false; then :
12145   $as_echo_n "(cached) " >&6
12146 else
12147           if test yes = "$cross_compiling"; then :
12148   lt_cv_dlopen_self=cross
12149 else
12150   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12151   lt_status=$lt_dlunknown
12152   cat > conftest.$ac_ext <<_LT_EOF
12153 #line $LINENO "configure"
12154 #include "confdefs.h"
12155
12156 #if HAVE_DLFCN_H
12157 #include <dlfcn.h>
12158 #endif
12159
12160 #include <stdio.h>
12161
12162 #ifdef RTLD_GLOBAL
12163 #  define LT_DLGLOBAL           RTLD_GLOBAL
12164 #else
12165 #  ifdef DL_GLOBAL
12166 #    define LT_DLGLOBAL         DL_GLOBAL
12167 #  else
12168 #    define LT_DLGLOBAL         0
12169 #  endif
12170 #endif
12171
12172 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12173    find out it does not work in some platform. */
12174 #ifndef LT_DLLAZY_OR_NOW
12175 #  ifdef RTLD_LAZY
12176 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12177 #  else
12178 #    ifdef DL_LAZY
12179 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12180 #    else
12181 #      ifdef RTLD_NOW
12182 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12183 #      else
12184 #        ifdef DL_NOW
12185 #          define LT_DLLAZY_OR_NOW      DL_NOW
12186 #        else
12187 #          define LT_DLLAZY_OR_NOW      0
12188 #        endif
12189 #      endif
12190 #    endif
12191 #  endif
12192 #endif
12193
12194 /* When -fvisibility=hidden is used, assume the code has been annotated
12195    correspondingly for the symbols needed.  */
12196 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12197 int fnord () __attribute__((visibility("default")));
12198 #endif
12199
12200 int fnord () { return 42; }
12201 int main ()
12202 {
12203   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12204   int status = $lt_dlunknown;
12205
12206   if (self)
12207     {
12208       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12209       else
12210         {
12211           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12212           else puts (dlerror ());
12213         }
12214       /* dlclose (self); */
12215     }
12216   else
12217     puts (dlerror ());
12218
12219   return status;
12220 }
12221 _LT_EOF
12222   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12223   (eval $ac_link) 2>&5
12224   ac_status=$?
12225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12227     (./conftest; exit; ) >&5 2>/dev/null
12228     lt_status=$?
12229     case x$lt_status in
12230       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12231       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12232       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12233     esac
12234   else :
12235     # compilation failed
12236     lt_cv_dlopen_self=no
12237   fi
12238 fi
12239 rm -fr conftest*
12240
12241
12242 fi
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12244 $as_echo "$lt_cv_dlopen_self" >&6; }
12245
12246     if test yes = "$lt_cv_dlopen_self"; then
12247       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12248       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12249 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12250 if ${lt_cv_dlopen_self_static+:} false; then :
12251   $as_echo_n "(cached) " >&6
12252 else
12253           if test yes = "$cross_compiling"; then :
12254   lt_cv_dlopen_self_static=cross
12255 else
12256   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12257   lt_status=$lt_dlunknown
12258   cat > conftest.$ac_ext <<_LT_EOF
12259 #line $LINENO "configure"
12260 #include "confdefs.h"
12261
12262 #if HAVE_DLFCN_H
12263 #include <dlfcn.h>
12264 #endif
12265
12266 #include <stdio.h>
12267
12268 #ifdef RTLD_GLOBAL
12269 #  define LT_DLGLOBAL           RTLD_GLOBAL
12270 #else
12271 #  ifdef DL_GLOBAL
12272 #    define LT_DLGLOBAL         DL_GLOBAL
12273 #  else
12274 #    define LT_DLGLOBAL         0
12275 #  endif
12276 #endif
12277
12278 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12279    find out it does not work in some platform. */
12280 #ifndef LT_DLLAZY_OR_NOW
12281 #  ifdef RTLD_LAZY
12282 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12283 #  else
12284 #    ifdef DL_LAZY
12285 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12286 #    else
12287 #      ifdef RTLD_NOW
12288 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12289 #      else
12290 #        ifdef DL_NOW
12291 #          define LT_DLLAZY_OR_NOW      DL_NOW
12292 #        else
12293 #          define LT_DLLAZY_OR_NOW      0
12294 #        endif
12295 #      endif
12296 #    endif
12297 #  endif
12298 #endif
12299
12300 /* When -fvisibility=hidden is used, assume the code has been annotated
12301    correspondingly for the symbols needed.  */
12302 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12303 int fnord () __attribute__((visibility("default")));
12304 #endif
12305
12306 int fnord () { return 42; }
12307 int main ()
12308 {
12309   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12310   int status = $lt_dlunknown;
12311
12312   if (self)
12313     {
12314       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12315       else
12316         {
12317           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12318           else puts (dlerror ());
12319         }
12320       /* dlclose (self); */
12321     }
12322   else
12323     puts (dlerror ());
12324
12325   return status;
12326 }
12327 _LT_EOF
12328   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12329   (eval $ac_link) 2>&5
12330   ac_status=$?
12331   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12332   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12333     (./conftest; exit; ) >&5 2>/dev/null
12334     lt_status=$?
12335     case x$lt_status in
12336       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12337       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12338       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12339     esac
12340   else :
12341     # compilation failed
12342     lt_cv_dlopen_self_static=no
12343   fi
12344 fi
12345 rm -fr conftest*
12346
12347
12348 fi
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12350 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12351     fi
12352
12353     CPPFLAGS=$save_CPPFLAGS
12354     LDFLAGS=$save_LDFLAGS
12355     LIBS=$save_LIBS
12356     ;;
12357   esac
12358
12359   case $lt_cv_dlopen_self in
12360   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12361   *) enable_dlopen_self=unknown ;;
12362   esac
12363
12364   case $lt_cv_dlopen_self_static in
12365   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12366   *) enable_dlopen_self_static=unknown ;;
12367   esac
12368 fi
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386 striplib=
12387 old_striplib=
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12389 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12390 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12391   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12392   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12394 $as_echo "yes" >&6; }
12395 else
12396 # FIXME - insert some real tests, host_os isn't really good enough
12397   case $host_os in
12398   darwin*)
12399     if test -n "$STRIP"; then
12400       striplib="$STRIP -x"
12401       old_striplib="$STRIP -S"
12402       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12403 $as_echo "yes" >&6; }
12404     else
12405       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12406 $as_echo "no" >&6; }
12407     fi
12408     ;;
12409   *)
12410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12411 $as_echo "no" >&6; }
12412     ;;
12413   esac
12414 fi
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427   # Report what library types will actually be built
12428   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12429 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12431 $as_echo "$can_build_shared" >&6; }
12432
12433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12434 $as_echo_n "checking whether to build shared libraries... " >&6; }
12435   test no = "$can_build_shared" && enable_shared=no
12436
12437   # On AIX, shared libraries and static libraries use the same namespace, and
12438   # are all built from PIC.
12439   case $host_os in
12440   aix3*)
12441     test yes = "$enable_shared" && enable_static=no
12442     if test -n "$RANLIB"; then
12443       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12444       postinstall_cmds='$RANLIB $lib'
12445     fi
12446     ;;
12447
12448   aix[4-9]*)
12449     if test ia64 != "$host_cpu"; then
12450       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12451       yes,aix,yes) ;;                   # shared object as lib.so file only
12452       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12453       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12454       esac
12455     fi
12456     ;;
12457   esac
12458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12459 $as_echo "$enable_shared" >&6; }
12460
12461   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12462 $as_echo_n "checking whether to build static libraries... " >&6; }
12463   # Make sure either enable_shared or enable_static is yes.
12464   test yes = "$enable_shared" || enable_static=yes
12465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12466 $as_echo "$enable_static" >&6; }
12467
12468
12469
12470
12471 fi
12472 ac_ext=c
12473 ac_cpp='$CPP $CPPFLAGS'
12474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12477
12478 CC=$lt_save_CC
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494         ac_config_commands="$ac_config_commands libtool"
12495
12496
12497
12498
12499 # Only expand once:
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12511         if test -n "$ac_tool_prefix"; then
12512   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12513 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12517   $as_echo_n "(cached) " >&6
12518 else
12519   case $PKG_CONFIG in
12520   [\\/]* | ?:[\\/]*)
12521   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12522   ;;
12523   *)
12524   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12525 for as_dir in $PATH
12526 do
12527   IFS=$as_save_IFS
12528   test -z "$as_dir" && as_dir=.
12529     for ac_exec_ext in '' $ac_executable_extensions; do
12530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12531     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12533     break 2
12534   fi
12535 done
12536   done
12537 IFS=$as_save_IFS
12538
12539   ;;
12540 esac
12541 fi
12542 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12543 if test -n "$PKG_CONFIG"; then
12544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12545 $as_echo "$PKG_CONFIG" >&6; }
12546 else
12547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 fi
12550
12551
12552 fi
12553 if test -z "$ac_cv_path_PKG_CONFIG"; then
12554   ac_pt_PKG_CONFIG=$PKG_CONFIG
12555   # Extract the first word of "pkg-config", so it can be a program name with args.
12556 set dummy pkg-config; ac_word=$2
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12558 $as_echo_n "checking for $ac_word... " >&6; }
12559 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12560   $as_echo_n "(cached) " >&6
12561 else
12562   case $ac_pt_PKG_CONFIG in
12563   [\\/]* | ?:[\\/]*)
12564   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12565   ;;
12566   *)
12567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12569 do
12570   IFS=$as_save_IFS
12571   test -z "$as_dir" && as_dir=.
12572     for ac_exec_ext in '' $ac_executable_extensions; do
12573   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12576     break 2
12577   fi
12578 done
12579   done
12580 IFS=$as_save_IFS
12581
12582   ;;
12583 esac
12584 fi
12585 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12586 if test -n "$ac_pt_PKG_CONFIG"; then
12587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12588 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12589 else
12590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 $as_echo "no" >&6; }
12592 fi
12593
12594   if test "x$ac_pt_PKG_CONFIG" = x; then
12595     PKG_CONFIG=""
12596   else
12597     case $cross_compiling:$ac_tool_warned in
12598 yes:)
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12601 ac_tool_warned=yes ;;
12602 esac
12603     PKG_CONFIG=$ac_pt_PKG_CONFIG
12604   fi
12605 else
12606   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12607 fi
12608
12609 fi
12610 if test -n "$PKG_CONFIG"; then
12611         _pkg_min_version=0.9.0
12612         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12613 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12614         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12615                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12616 $as_echo "yes" >&6; }
12617         else
12618                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619 $as_echo "no" >&6; }
12620                 PKG_CONFIG=""
12621         fi
12622 fi
12623
12624 for ac_prog in flex lex
12625 do
12626   # Extract the first word of "$ac_prog", so it can be a program name with args.
12627 set dummy $ac_prog; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629 $as_echo_n "checking for $ac_word... " >&6; }
12630 if ${ac_cv_prog_LEX+:} false; then :
12631   $as_echo_n "(cached) " >&6
12632 else
12633   if test -n "$LEX"; then
12634   ac_cv_prog_LEX="$LEX" # Let the user override the test.
12635 else
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12638 do
12639   IFS=$as_save_IFS
12640   test -z "$as_dir" && as_dir=.
12641     for ac_exec_ext in '' $ac_executable_extensions; do
12642   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643     ac_cv_prog_LEX="$ac_prog"
12644     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645     break 2
12646   fi
12647 done
12648   done
12649 IFS=$as_save_IFS
12650
12651 fi
12652 fi
12653 LEX=$ac_cv_prog_LEX
12654 if test -n "$LEX"; then
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
12656 $as_echo "$LEX" >&6; }
12657 else
12658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 $as_echo "no" >&6; }
12660 fi
12661
12662
12663   test -n "$LEX" && break
12664 done
12665 test -n "$LEX" || LEX=":"
12666
12667 if test "x$LEX" != "x:"; then
12668   cat >conftest.l <<_ACEOF
12669 %%
12670 a { ECHO; }
12671 b { REJECT; }
12672 c { yymore (); }
12673 d { yyless (1); }
12674 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument.  */
12675     yyless ((input () != 0)); }
12676 f { unput (yytext[0]); }
12677 . { BEGIN INITIAL; }
12678 %%
12679 #ifdef YYTEXT_POINTER
12680 extern char *yytext;
12681 #endif
12682 int
12683 main (void)
12684 {
12685   return ! yylex () + ! yywrap ();
12686 }
12687 _ACEOF
12688 { { ac_try="$LEX conftest.l"
12689 case "(($ac_try" in
12690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691   *) ac_try_echo=$ac_try;;
12692 esac
12693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12694 $as_echo "$ac_try_echo"; } >&5
12695   (eval "$LEX conftest.l") 2>&5
12696   ac_status=$?
12697   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12698   test $ac_status = 0; }
12699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
12700 $as_echo_n "checking lex output file root... " >&6; }
12701 if ${ac_cv_prog_lex_root+:} false; then :
12702   $as_echo_n "(cached) " >&6
12703 else
12704
12705 if test -f lex.yy.c; then
12706   ac_cv_prog_lex_root=lex.yy
12707 elif test -f lexyy.c; then
12708   ac_cv_prog_lex_root=lexyy
12709 else
12710   as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
12711 fi
12712 fi
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
12714 $as_echo "$ac_cv_prog_lex_root" >&6; }
12715 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12716
12717 if test -z "${LEXLIB+set}"; then
12718   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
12719 $as_echo_n "checking lex library... " >&6; }
12720 if ${ac_cv_lib_lex+:} false; then :
12721   $as_echo_n "(cached) " >&6
12722 else
12723
12724     ac_save_LIBS=$LIBS
12725     ac_cv_lib_lex='none needed'
12726     for ac_lib in '' -lfl -ll; do
12727       LIBS="$ac_lib $ac_save_LIBS"
12728       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12729 /* end confdefs.h.  */
12730 `cat $LEX_OUTPUT_ROOT.c`
12731 _ACEOF
12732 if ac_fn_c_try_link "$LINENO"; then :
12733   ac_cv_lib_lex=$ac_lib
12734 fi
12735 rm -f core conftest.err conftest.$ac_objext \
12736     conftest$ac_exeext conftest.$ac_ext
12737       test "$ac_cv_lib_lex" != 'none needed' && break
12738     done
12739     LIBS=$ac_save_LIBS
12740
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
12743 $as_echo "$ac_cv_lib_lex" >&6; }
12744   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12745 fi
12746
12747
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
12749 $as_echo_n "checking whether yytext is a pointer... " >&6; }
12750 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
12751   $as_echo_n "(cached) " >&6
12752 else
12753   # POSIX says lex can declare yytext either as a pointer or an array; the
12754 # default is implementation-dependent.  Figure out which it is, since
12755 # not all implementations provide the %pointer and %array declarations.
12756 ac_cv_prog_lex_yytext_pointer=no
12757 ac_save_LIBS=$LIBS
12758 LIBS="$LEXLIB $ac_save_LIBS"
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761
12762   #define YYTEXT_POINTER 1
12763 `cat $LEX_OUTPUT_ROOT.c`
12764 _ACEOF
12765 if ac_fn_c_try_link "$LINENO"; then :
12766   ac_cv_prog_lex_yytext_pointer=yes
12767 fi
12768 rm -f core conftest.err conftest.$ac_objext \
12769     conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_save_LIBS
12771
12772 fi
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
12774 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
12775 if test $ac_cv_prog_lex_yytext_pointer = yes; then
12776
12777 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
12778
12779 fi
12780 rm -f conftest.l $LEX_OUTPUT_ROOT.c
12781
12782 fi
12783 if test "$LEX" = :; then
12784         as_fn_error $? "flex not found but required" "$LINENO" 5
12785 fi
12786
12787 for ac_prog in 'bison -y'
12788 do
12789   # Extract the first word of "$ac_prog", so it can be a program name with args.
12790 set dummy $ac_prog; ac_word=$2
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12792 $as_echo_n "checking for $ac_word... " >&6; }
12793 if ${ac_cv_prog_YACC+:} false; then :
12794   $as_echo_n "(cached) " >&6
12795 else
12796   if test -n "$YACC"; then
12797   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12798 else
12799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12800 for as_dir in $PATH
12801 do
12802   IFS=$as_save_IFS
12803   test -z "$as_dir" && as_dir=.
12804     for ac_exec_ext in '' $ac_executable_extensions; do
12805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12806     ac_cv_prog_YACC="$ac_prog"
12807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12808     break 2
12809   fi
12810 done
12811   done
12812 IFS=$as_save_IFS
12813
12814 fi
12815 fi
12816 YACC=$ac_cv_prog_YACC
12817 if test -n "$YACC"; then
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
12819 $as_echo "$YACC" >&6; }
12820 else
12821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12822 $as_echo "no" >&6; }
12823 fi
12824
12825
12826   test -n "$YACC" && break
12827 done
12828 test -n "$YACC" || YACC=":"
12829
12830 if test "$YACC" = :; then
12831         as_fn_error $? "bison not found but required" "$LINENO" 5
12832 fi
12833
12834
12835 ensureflag() {
12836   flag="$1"; shift
12837   result="$@"
12838
12839   case " ${result} " in
12840   *[\ \ ]${flag}[\ \    ]*) ;;
12841   *) result="${flag} ${result}" ;;
12842   esac
12843
12844   echo ${result}
12845 }
12846
12847 if test "$GCC" = "yes"; then
12848     for flag in -Wall -Wchar-subscripts -Wmissing-declarations \
12849         -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align \
12850         -Wsign-compare -fno-strict-aliasing;
12851     do
12852         CFLAGS="$(ensureflag $flag $CFLAGS)"
12853     done
12854 fi
12855
12856 # Checks for libraries.
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12858 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12859 if ${ac_cv_lib_dl_dlopen+:} false; then :
12860   $as_echo_n "(cached) " >&6
12861 else
12862   ac_check_lib_save_LIBS=$LIBS
12863 LIBS="-ldl  $LIBS"
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h.  */
12866
12867 /* Override any GCC internal prototype to avoid an error.
12868    Use char because int might match the return type of a GCC
12869    builtin and then its argument prototype would still apply.  */
12870 #ifdef __cplusplus
12871 extern "C"
12872 #endif
12873 char dlopen ();
12874 int
12875 main ()
12876 {
12877 return dlopen ();
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 if ac_fn_c_try_link "$LINENO"; then :
12883   ac_cv_lib_dl_dlopen=yes
12884 else
12885   ac_cv_lib_dl_dlopen=no
12886 fi
12887 rm -f core conftest.err conftest.$ac_objext \
12888     conftest$ac_exeext conftest.$ac_ext
12889 LIBS=$ac_check_lib_save_LIBS
12890 fi
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12892 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12893 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12894   cat >>confdefs.h <<_ACEOF
12895 #define HAVE_LIBDL 1
12896 _ACEOF
12897
12898   LIBS="-ldl $LIBS"
12899
12900 fi
12901
12902
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the suffix of shared libraries" >&5
12904 $as_echo_n "checking for the suffix of shared libraries... " >&6; }
12905 # libtool variables are immediately available since 2.0, prior to that we need
12906 # to call libtool --config explicitly
12907 if test "x$shrext_cmds" = x; then
12908     shrext_cmds=`SED=$SED ./libtool --config | grep '^shrext_cmds='`
12909     eval $shrext_cmds
12910 fi
12911 eval std_shrext=$shrext_cmds
12912 # chop the initial dot
12913 SHLIB_SUFFIX=${std_shrext#.}
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: .$SHLIB_SUFFIX" >&5
12915 $as_echo ".$SHLIB_SUFFIX" >&6; }
12916 # any reason it may fail?
12917 if test "x$SHLIB_SUFFIX" = x; then
12918         as_fn_error $? "Cannot determine shared library suffix from libtool" "$LINENO" 5
12919 fi
12920
12921 cat >>confdefs.h <<_ACEOF
12922 #define SHLIB_SUFFIX "$SHLIB_SUFFIX"
12923 _ACEOF
12924
12925
12926 # Copied from dbus configure.in
12927 #### find the actual value for $prefix that we'll end up with
12928 ##   (I know this is broken and should be done in the Makefile, but
12929 ##    that's a major pain and almost nobody actually seems to care)
12930
12931   EXP_VAR=EXPANDED_LOCALSTATEDIR
12932   FROM_VAR="$localstatedir"
12933
12934     prefix_save=$prefix
12935   exec_prefix_save=$exec_prefix
12936
12937     if test "x$prefix" = "xNONE"; then
12938     prefix="$ac_default_prefix"
12939   fi
12940     if test "x$exec_prefix" = "xNONE"; then
12941     exec_prefix=$prefix
12942   fi
12943
12944   full_var="$FROM_VAR"
12945     while true; do
12946     new_full_var="`eval echo $full_var`"
12947     if test "x$new_full_var" = "x$full_var"; then break; fi
12948     full_var=$new_full_var
12949   done
12950
12951     full_var=$new_full_var
12952   EXPANDED_LOCALSTATEDIR="$full_var"
12953
12954
12955     prefix=$prefix_save
12956   exec_prefix=$exec_prefix_save
12957
12958
12959   EXP_VAR=EXPANDED_SYSCONFDIR
12960   FROM_VAR="$sysconfdir"
12961
12962     prefix_save=$prefix
12963   exec_prefix_save=$exec_prefix
12964
12965     if test "x$prefix" = "xNONE"; then
12966     prefix="$ac_default_prefix"
12967   fi
12968     if test "x$exec_prefix" = "xNONE"; then
12969     exec_prefix=$prefix
12970   fi
12971
12972   full_var="$FROM_VAR"
12973     while true; do
12974     new_full_var="`eval echo $full_var`"
12975     if test "x$new_full_var" = "x$full_var"; then break; fi
12976     full_var=$new_full_var
12977   done
12978
12979     full_var=$new_full_var
12980   EXPANDED_SYSCONFDIR="$full_var"
12981
12982
12983     prefix=$prefix_save
12984   exec_prefix=$exec_prefix_save
12985
12986
12987   EXP_VAR=EXPANDED_BINDIR
12988   FROM_VAR="$bindir"
12989
12990     prefix_save=$prefix
12991   exec_prefix_save=$exec_prefix
12992
12993     if test "x$prefix" = "xNONE"; then
12994     prefix="$ac_default_prefix"
12995   fi
12996     if test "x$exec_prefix" = "xNONE"; then
12997     exec_prefix=$prefix
12998   fi
12999
13000   full_var="$FROM_VAR"
13001     while true; do
13002     new_full_var="`eval echo $full_var`"
13003     if test "x$new_full_var" = "x$full_var"; then break; fi
13004     full_var=$new_full_var
13005   done
13006
13007     full_var=$new_full_var
13008   EXPANDED_BINDIR="$full_var"
13009
13010
13011     prefix=$prefix_save
13012   exec_prefix=$exec_prefix_save
13013
13014
13015   EXP_VAR=EXPANDED_LIBDIR
13016   FROM_VAR="$libdir"
13017
13018     prefix_save=$prefix
13019   exec_prefix_save=$exec_prefix
13020
13021     if test "x$prefix" = "xNONE"; then
13022     prefix="$ac_default_prefix"
13023   fi
13024     if test "x$exec_prefix" = "xNONE"; then
13025     exec_prefix=$prefix
13026   fi
13027
13028   full_var="$FROM_VAR"
13029     while true; do
13030     new_full_var="`eval echo $full_var`"
13031     if test "x$new_full_var" = "x$full_var"; then break; fi
13032     full_var=$new_full_var
13033   done
13034
13035     full_var=$new_full_var
13036   EXPANDED_LIBDIR="$full_var"
13037
13038
13039     prefix=$prefix_save
13040   exec_prefix=$exec_prefix_save
13041
13042
13043   EXP_VAR=EXPANDED_LIBEXECDIR
13044   FROM_VAR="$libexecdir"
13045
13046     prefix_save=$prefix
13047   exec_prefix_save=$exec_prefix
13048
13049     if test "x$prefix" = "xNONE"; then
13050     prefix="$ac_default_prefix"
13051   fi
13052     if test "x$exec_prefix" = "xNONE"; then
13053     exec_prefix=$prefix
13054   fi
13055
13056   full_var="$FROM_VAR"
13057     while true; do
13058     new_full_var="`eval echo $full_var`"
13059     if test "x$new_full_var" = "x$full_var"; then break; fi
13060     full_var=$new_full_var
13061   done
13062
13063     full_var=$new_full_var
13064   EXPANDED_LIBEXECDIR="$full_var"
13065
13066
13067     prefix=$prefix_save
13068   exec_prefix=$exec_prefix_save
13069
13070
13071   EXP_VAR=EXPANDED_DATADIR
13072   FROM_VAR="$datadir"
13073
13074     prefix_save=$prefix
13075   exec_prefix_save=$exec_prefix
13076
13077     if test "x$prefix" = "xNONE"; then
13078     prefix="$ac_default_prefix"
13079   fi
13080     if test "x$exec_prefix" = "xNONE"; then
13081     exec_prefix=$prefix
13082   fi
13083
13084   full_var="$FROM_VAR"
13085     while true; do
13086     new_full_var="`eval echo $full_var`"
13087     if test "x$new_full_var" = "x$full_var"; then break; fi
13088     full_var=$new_full_var
13089   done
13090
13091     full_var=$new_full_var
13092   EXPANDED_DATADIR="$full_var"
13093
13094
13095     prefix=$prefix_save
13096   exec_prefix=$exec_prefix_save
13097
13098
13099 #### Directory to install the libexec binaries
13100 GOBJECT_INTROSPECTION_LIBDIR="$EXPANDED_LIBDIR"
13101
13102
13103 cat >>confdefs.h <<_ACEOF
13104 #define GOBJECT_INTROSPECTION_LIBDIR "$GOBJECT_INTROSPECTION_LIBDIR"
13105 _ACEOF
13106
13107
13108 #### Directory to install the gir files
13109 GIR_SUFFIX="gir-1.0"
13110
13111
13112 cat >>confdefs.h <<_ACEOF
13113 #define GIR_SUFFIX "$GIR_SUFFIX"
13114 _ACEOF
13115
13116
13117 GIR_DIR="$EXPANDED_DATADIR/$GIR_SUFFIX"
13118
13119
13120 cat >>confdefs.h <<_ACEOF
13121 #define GIR_DIR "$GIR_DIR"
13122 _ACEOF
13123
13124
13125
13126 pkg_failed=no
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
13128 $as_echo_n "checking for GLIB... " >&6; }
13129
13130 if test -n "$GLIB_CFLAGS"; then
13131     pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
13132  elif test -n "$PKG_CONFIG"; then
13133     if test -n "$PKG_CONFIG" && \
13134     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.49.4\""; } >&5
13135   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.49.4") 2>&5
13136   ac_status=$?
13137   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13138   test $ac_status = 0; }; then
13139   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.49.4" 2>/dev/null`
13140                       test "x$?" != "x0" && pkg_failed=yes
13141 else
13142   pkg_failed=yes
13143 fi
13144  else
13145     pkg_failed=untried
13146 fi
13147 if test -n "$GLIB_LIBS"; then
13148     pkg_cv_GLIB_LIBS="$GLIB_LIBS"
13149  elif test -n "$PKG_CONFIG"; then
13150     if test -n "$PKG_CONFIG" && \
13151     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.49.4\""; } >&5
13152   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.49.4") 2>&5
13153   ac_status=$?
13154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13155   test $ac_status = 0; }; then
13156   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.49.4" 2>/dev/null`
13157                       test "x$?" != "x0" && pkg_failed=yes
13158 else
13159   pkg_failed=yes
13160 fi
13161  else
13162     pkg_failed=untried
13163 fi
13164
13165
13166
13167 if test $pkg_failed = yes; then
13168         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13170
13171 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13172         _pkg_short_errors_supported=yes
13173 else
13174         _pkg_short_errors_supported=no
13175 fi
13176         if test $_pkg_short_errors_supported = yes; then
13177                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.49.4" 2>&1`
13178         else
13179                 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.49.4" 2>&1`
13180         fi
13181         # Put the nasty error message in config.log where it belongs
13182         echo "$GLIB_PKG_ERRORS" >&5
13183
13184         as_fn_error $? "Package requirements (glib-2.0 >= 2.49.4) were not met:
13185
13186 $GLIB_PKG_ERRORS
13187
13188 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13189 installed software in a non-standard prefix.
13190
13191 Alternatively, you may set the environment variables GLIB_CFLAGS
13192 and GLIB_LIBS to avoid the need to call pkg-config.
13193 See the pkg-config man page for more details." "$LINENO" 5
13194 elif test $pkg_failed = untried; then
13195         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13196 $as_echo "no" >&6; }
13197         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13199 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13200 is in your PATH or set the PKG_CONFIG environment variable to the full
13201 path to pkg-config.
13202
13203 Alternatively, you may set the environment variables GLIB_CFLAGS
13204 and GLIB_LIBS to avoid the need to call pkg-config.
13205 See the pkg-config man page for more details.
13206
13207 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13208 See \`config.log' for more details" "$LINENO" 5; }
13209 else
13210         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
13211         GLIB_LIBS=$pkg_cv_GLIB_LIBS
13212         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13213 $as_echo "yes" >&6; }
13214
13215 fi
13216
13217 pkg_failed=no
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOBJECT" >&5
13219 $as_echo_n "checking for GOBJECT... " >&6; }
13220
13221 if test -n "$GOBJECT_CFLAGS"; then
13222     pkg_cv_GOBJECT_CFLAGS="$GOBJECT_CFLAGS"
13223  elif test -n "$PKG_CONFIG"; then
13224     if test -n "$PKG_CONFIG" && \
13225     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
13226   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
13227   ac_status=$?
13228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13229   test $ac_status = 0; }; then
13230   pkg_cv_GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0" 2>/dev/null`
13231                       test "x$?" != "x0" && pkg_failed=yes
13232 else
13233   pkg_failed=yes
13234 fi
13235  else
13236     pkg_failed=untried
13237 fi
13238 if test -n "$GOBJECT_LIBS"; then
13239     pkg_cv_GOBJECT_LIBS="$GOBJECT_LIBS"
13240  elif test -n "$PKG_CONFIG"; then
13241     if test -n "$PKG_CONFIG" && \
13242     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0\""; } >&5
13243   ($PKG_CONFIG --exists --print-errors "gobject-2.0") 2>&5
13244   ac_status=$?
13245   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13246   test $ac_status = 0; }; then
13247   pkg_cv_GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0" 2>/dev/null`
13248                       test "x$?" != "x0" && pkg_failed=yes
13249 else
13250   pkg_failed=yes
13251 fi
13252  else
13253     pkg_failed=untried
13254 fi
13255
13256
13257
13258 if test $pkg_failed = yes; then
13259         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13260 $as_echo "no" >&6; }
13261
13262 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13263         _pkg_short_errors_supported=yes
13264 else
13265         _pkg_short_errors_supported=no
13266 fi
13267         if test $_pkg_short_errors_supported = yes; then
13268                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0" 2>&1`
13269         else
13270                 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0" 2>&1`
13271         fi
13272         # Put the nasty error message in config.log where it belongs
13273         echo "$GOBJECT_PKG_ERRORS" >&5
13274
13275         as_fn_error $? "Package requirements (gobject-2.0) were not met:
13276
13277 $GOBJECT_PKG_ERRORS
13278
13279 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13280 installed software in a non-standard prefix.
13281
13282 Alternatively, you may set the environment variables GOBJECT_CFLAGS
13283 and GOBJECT_LIBS to avoid the need to call pkg-config.
13284 See the pkg-config man page for more details." "$LINENO" 5
13285 elif test $pkg_failed = untried; then
13286         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13287 $as_echo "no" >&6; }
13288         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13289 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13290 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13291 is in your PATH or set the PKG_CONFIG environment variable to the full
13292 path to pkg-config.
13293
13294 Alternatively, you may set the environment variables GOBJECT_CFLAGS
13295 and GOBJECT_LIBS to avoid the need to call pkg-config.
13296 See the pkg-config man page for more details.
13297
13298 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13299 See \`config.log' for more details" "$LINENO" 5; }
13300 else
13301         GOBJECT_CFLAGS=$pkg_cv_GOBJECT_CFLAGS
13302         GOBJECT_LIBS=$pkg_cv_GOBJECT_LIBS
13303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13305
13306 fi
13307
13308 pkg_failed=no
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMODULE" >&5
13310 $as_echo_n "checking for GMODULE... " >&6; }
13311
13312 if test -n "$GMODULE_CFLAGS"; then
13313     pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS"
13314  elif test -n "$PKG_CONFIG"; then
13315     if test -n "$PKG_CONFIG" && \
13316     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13317   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13318   ac_status=$?
13319   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13320   test $ac_status = 0; }; then
13321   pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0" 2>/dev/null`
13322                       test "x$?" != "x0" && pkg_failed=yes
13323 else
13324   pkg_failed=yes
13325 fi
13326  else
13327     pkg_failed=untried
13328 fi
13329 if test -n "$GMODULE_LIBS"; then
13330     pkg_cv_GMODULE_LIBS="$GMODULE_LIBS"
13331  elif test -n "$PKG_CONFIG"; then
13332     if test -n "$PKG_CONFIG" && \
13333     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0\""; } >&5
13334   ($PKG_CONFIG --exists --print-errors "gmodule-2.0") 2>&5
13335   ac_status=$?
13336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13337   test $ac_status = 0; }; then
13338   pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0" 2>/dev/null`
13339                       test "x$?" != "x0" && pkg_failed=yes
13340 else
13341   pkg_failed=yes
13342 fi
13343  else
13344     pkg_failed=untried
13345 fi
13346
13347
13348
13349 if test $pkg_failed = yes; then
13350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13351 $as_echo "no" >&6; }
13352
13353 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13354         _pkg_short_errors_supported=yes
13355 else
13356         _pkg_short_errors_supported=no
13357 fi
13358         if test $_pkg_short_errors_supported = yes; then
13359                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0" 2>&1`
13360         else
13361                 GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0" 2>&1`
13362         fi
13363         # Put the nasty error message in config.log where it belongs
13364         echo "$GMODULE_PKG_ERRORS" >&5
13365
13366         as_fn_error $? "Package requirements (gmodule-2.0) were not met:
13367
13368 $GMODULE_PKG_ERRORS
13369
13370 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13371 installed software in a non-standard prefix.
13372
13373 Alternatively, you may set the environment variables GMODULE_CFLAGS
13374 and GMODULE_LIBS to avoid the need to call pkg-config.
13375 See the pkg-config man page for more details." "$LINENO" 5
13376 elif test $pkg_failed = untried; then
13377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13378 $as_echo "no" >&6; }
13379         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13381 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13382 is in your PATH or set the PKG_CONFIG environment variable to the full
13383 path to pkg-config.
13384
13385 Alternatively, you may set the environment variables GMODULE_CFLAGS
13386 and GMODULE_LIBS to avoid the need to call pkg-config.
13387 See the pkg-config man page for more details.
13388
13389 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13390 See \`config.log' for more details" "$LINENO" 5; }
13391 else
13392         GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS
13393         GMODULE_LIBS=$pkg_cv_GMODULE_LIBS
13394         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13395 $as_echo "yes" >&6; }
13396
13397 fi
13398
13399 pkg_failed=no
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13401 $as_echo_n "checking for GIO... " >&6; }
13402
13403 if test -n "$GIO_CFLAGS"; then
13404     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13405  elif test -n "$PKG_CONFIG"; then
13406     if test -n "$PKG_CONFIG" && \
13407     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
13408   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
13409   ac_status=$?
13410   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13411   test $ac_status = 0; }; then
13412   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0" 2>/dev/null`
13413                       test "x$?" != "x0" && pkg_failed=yes
13414 else
13415   pkg_failed=yes
13416 fi
13417  else
13418     pkg_failed=untried
13419 fi
13420 if test -n "$GIO_LIBS"; then
13421     pkg_cv_GIO_LIBS="$GIO_LIBS"
13422  elif test -n "$PKG_CONFIG"; then
13423     if test -n "$PKG_CONFIG" && \
13424     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0\""; } >&5
13425   ($PKG_CONFIG --exists --print-errors "gio-2.0") 2>&5
13426   ac_status=$?
13427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13428   test $ac_status = 0; }; then
13429   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0" 2>/dev/null`
13430                       test "x$?" != "x0" && pkg_failed=yes
13431 else
13432   pkg_failed=yes
13433 fi
13434  else
13435     pkg_failed=untried
13436 fi
13437
13438
13439
13440 if test $pkg_failed = yes; then
13441         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13442 $as_echo "no" >&6; }
13443
13444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13445         _pkg_short_errors_supported=yes
13446 else
13447         _pkg_short_errors_supported=no
13448 fi
13449         if test $_pkg_short_errors_supported = yes; then
13450                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0" 2>&1`
13451         else
13452                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0" 2>&1`
13453         fi
13454         # Put the nasty error message in config.log where it belongs
13455         echo "$GIO_PKG_ERRORS" >&5
13456
13457         as_fn_error $? "Package requirements (gio-2.0) were not met:
13458
13459 $GIO_PKG_ERRORS
13460
13461 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13462 installed software in a non-standard prefix.
13463
13464 Alternatively, you may set the environment variables GIO_CFLAGS
13465 and GIO_LIBS to avoid the need to call pkg-config.
13466 See the pkg-config man page for more details." "$LINENO" 5
13467 elif test $pkg_failed = untried; then
13468         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13469 $as_echo "no" >&6; }
13470         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13472 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13473 is in your PATH or set the PKG_CONFIG environment variable to the full
13474 path to pkg-config.
13475
13476 Alternatively, you may set the environment variables GIO_CFLAGS
13477 and GIO_LIBS to avoid the need to call pkg-config.
13478 See the pkg-config man page for more details.
13479
13480 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13481 See \`config.log' for more details" "$LINENO" 5; }
13482 else
13483         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13484         GIO_LIBS=$pkg_cv_GIO_LIBS
13485         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13486 $as_echo "yes" >&6; }
13487
13488 fi
13489
13490 pkg_failed=no
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO_UNIX" >&5
13492 $as_echo_n "checking for GIO_UNIX... " >&6; }
13493
13494 if test -n "$GIO_UNIX_CFLAGS"; then
13495     pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
13496  elif test -n "$PKG_CONFIG"; then
13497     if test -n "$PKG_CONFIG" && \
13498     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13499   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13500   ac_status=$?
13501   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13502   test $ac_status = 0; }; then
13503   pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0" 2>/dev/null`
13504                       test "x$?" != "x0" && pkg_failed=yes
13505 else
13506   pkg_failed=yes
13507 fi
13508  else
13509     pkg_failed=untried
13510 fi
13511 if test -n "$GIO_UNIX_LIBS"; then
13512     pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
13513  elif test -n "$PKG_CONFIG"; then
13514     if test -n "$PKG_CONFIG" && \
13515     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0\""; } >&5
13516   ($PKG_CONFIG --exists --print-errors "gio-unix-2.0") 2>&5
13517   ac_status=$?
13518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519   test $ac_status = 0; }; then
13520   pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0" 2>/dev/null`
13521                       test "x$?" != "x0" && pkg_failed=yes
13522 else
13523   pkg_failed=yes
13524 fi
13525  else
13526     pkg_failed=untried
13527 fi
13528
13529
13530
13531 if test $pkg_failed = yes; then
13532         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13534
13535 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13536         _pkg_short_errors_supported=yes
13537 else
13538         _pkg_short_errors_supported=no
13539 fi
13540         if test $_pkg_short_errors_supported = yes; then
13541                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13542         else
13543                 GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0" 2>&1`
13544         fi
13545         # Put the nasty error message in config.log where it belongs
13546         echo "$GIO_UNIX_PKG_ERRORS" >&5
13547
13548         have_gio_unix=false
13549 elif test $pkg_failed = untried; then
13550         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13551 $as_echo "no" >&6; }
13552         have_gio_unix=false
13553 else
13554         GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
13555         GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
13556         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13557 $as_echo "yes" >&6; }
13558         have_gio_unix=true
13559 fi
13560  if test x$have_gio_unix = xtrue; then
13561   HAVE_GIO_UNIX_TRUE=
13562   HAVE_GIO_UNIX_FALSE='#'
13563 else
13564   HAVE_GIO_UNIX_TRUE='#'
13565   HAVE_GIO_UNIX_FALSE=
13566 fi
13567
13568
13569 # Prefer cairo-gobject if we have it
13570
13571 # Check whether --with-cairo was given.
13572 if test "${with_cairo+set}" = set; then :
13573   withval=$with_cairo;
13574 else
13575   with_cairo=maybe
13576 fi
13577
13578
13579 if test x${with_cairo} != xno; then :
13580
13581
13582 pkg_failed=no
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13584 $as_echo_n "checking for CAIRO... " >&6; }
13585
13586 if test -n "$CAIRO_CFLAGS"; then
13587     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13588  elif test -n "$PKG_CONFIG"; then
13589     if test -n "$PKG_CONFIG" && \
13590     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13591   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13592   ac_status=$?
13593   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13594   test $ac_status = 0; }; then
13595   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13596                       test "x$?" != "x0" && pkg_failed=yes
13597 else
13598   pkg_failed=yes
13599 fi
13600  else
13601     pkg_failed=untried
13602 fi
13603 if test -n "$CAIRO_LIBS"; then
13604     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13605  elif test -n "$PKG_CONFIG"; then
13606     if test -n "$PKG_CONFIG" && \
13607     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13608   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13609   ac_status=$?
13610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13611   test $ac_status = 0; }; then
13612   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13613                       test "x$?" != "x0" && pkg_failed=yes
13614 else
13615   pkg_failed=yes
13616 fi
13617  else
13618     pkg_failed=untried
13619 fi
13620
13621
13622
13623 if test $pkg_failed = yes; then
13624         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13625 $as_echo "no" >&6; }
13626
13627 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13628         _pkg_short_errors_supported=yes
13629 else
13630         _pkg_short_errors_supported=no
13631 fi
13632         if test $_pkg_short_errors_supported = yes; then
13633                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13634         else
13635                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13636         fi
13637         # Put the nasty error message in config.log where it belongs
13638         echo "$CAIRO_PKG_ERRORS" >&5
13639
13640         have_cairo=no
13641 elif test $pkg_failed = untried; then
13642         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13644         have_cairo=no
13645 else
13646         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13647         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13648         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13649 $as_echo "yes" >&6; }
13650         have_cairo=yes
13651 fi
13652   if  test x$have_cairo = xno && test x$with_cairo = xyes ; then :
13653
13654     as_fn_error $? "cairo enabled but not found" "$LINENO" 5
13655
13656 fi
13657
13658 fi
13659  if test x$have_cairo = xyes; then
13660   HAVE_CAIRO_TRUE=
13661   HAVE_CAIRO_FALSE='#'
13662 else
13663   HAVE_CAIRO_TRUE='#'
13664   HAVE_CAIRO_FALSE=
13665 fi
13666
13667
13668 case "$host" in
13669   *-*-darwin*)
13670     CAIRO_SHARED_LIBRARY="libcairo-gobject.2.dylib"
13671     ;;
13672   *-*-mingw*)
13673     CAIRO_SHARED_LIBRARY="libcairo-gobject-2.dll"
13674     ;;
13675   *-*-openbsd*)
13676     CAIRO_SHARED_LIBRARY="libcairo-gobject.so"
13677     ;;
13678   *)
13679     CAIRO_SHARED_LIBRARY="libcairo-gobject.so.2"
13680     ;;
13681 esac
13682 CAIRO_GIR_PACKAGE="cairo-gobject"
13683
13684
13685
13686
13687
13688
13689 pkg_failed=no
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SCANNER" >&5
13691 $as_echo_n "checking for SCANNER... " >&6; }
13692
13693 if test -n "$SCANNER_CFLAGS"; then
13694     pkg_cv_SCANNER_CFLAGS="$SCANNER_CFLAGS"
13695  elif test -n "$PKG_CONFIG"; then
13696     if test -n "$PKG_CONFIG" && \
13697     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13698   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13699   ac_status=$?
13700   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13701   test $ac_status = 0; }; then
13702   pkg_cv_SCANNER_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0 gio-2.0" 2>/dev/null`
13703                       test "x$?" != "x0" && pkg_failed=yes
13704 else
13705   pkg_failed=yes
13706 fi
13707  else
13708     pkg_failed=untried
13709 fi
13710 if test -n "$SCANNER_LIBS"; then
13711     pkg_cv_SCANNER_LIBS="$SCANNER_LIBS"
13712  elif test -n "$PKG_CONFIG"; then
13713     if test -n "$PKG_CONFIG" && \
13714     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-2.0 gio-2.0\""; } >&5
13715   ($PKG_CONFIG --exists --print-errors "gobject-2.0 gio-2.0") 2>&5
13716   ac_status=$?
13717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13718   test $ac_status = 0; }; then
13719   pkg_cv_SCANNER_LIBS=`$PKG_CONFIG --libs "gobject-2.0 gio-2.0" 2>/dev/null`
13720                       test "x$?" != "x0" && pkg_failed=yes
13721 else
13722   pkg_failed=yes
13723 fi
13724  else
13725     pkg_failed=untried
13726 fi
13727
13728
13729
13730 if test $pkg_failed = yes; then
13731         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13732 $as_echo "no" >&6; }
13733
13734 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13735         _pkg_short_errors_supported=yes
13736 else
13737         _pkg_short_errors_supported=no
13738 fi
13739         if test $_pkg_short_errors_supported = yes; then
13740                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13741         else
13742                 SCANNER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gobject-2.0 gio-2.0" 2>&1`
13743         fi
13744         # Put the nasty error message in config.log where it belongs
13745         echo "$SCANNER_PKG_ERRORS" >&5
13746
13747         as_fn_error $? "Package requirements (gobject-2.0 gio-2.0) were not met:
13748
13749 $SCANNER_PKG_ERRORS
13750
13751 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13752 installed software in a non-standard prefix.
13753
13754 Alternatively, you may set the environment variables SCANNER_CFLAGS
13755 and SCANNER_LIBS to avoid the need to call pkg-config.
13756 See the pkg-config man page for more details." "$LINENO" 5
13757 elif test $pkg_failed = untried; then
13758         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13759 $as_echo "no" >&6; }
13760         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13761 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13762 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13763 is in your PATH or set the PKG_CONFIG environment variable to the full
13764 path to pkg-config.
13765
13766 Alternatively, you may set the environment variables SCANNER_CFLAGS
13767 and SCANNER_LIBS to avoid the need to call pkg-config.
13768 See the pkg-config man page for more details.
13769
13770 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13771 See \`config.log' for more details" "$LINENO" 5; }
13772 else
13773         SCANNER_CFLAGS=$pkg_cv_SCANNER_CFLAGS
13774         SCANNER_LIBS=$pkg_cv_SCANNER_LIBS
13775         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13776 $as_echo "yes" >&6; }
13777
13778 fi
13779
13780
13781 pkg_failed=no
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13783 $as_echo_n "checking for FFI... " >&6; }
13784
13785 if test -n "$FFI_CFLAGS"; then
13786     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13787  elif test -n "$PKG_CONFIG"; then
13788     if test -n "$PKG_CONFIG" && \
13789     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0 \""; } >&5
13790   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0 ") 2>&5
13791   ac_status=$?
13792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13793   test $ac_status = 0; }; then
13794   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0.0 " 2>/dev/null`
13795                       test "x$?" != "x0" && pkg_failed=yes
13796 else
13797   pkg_failed=yes
13798 fi
13799  else
13800     pkg_failed=untried
13801 fi
13802 if test -n "$FFI_LIBS"; then
13803     pkg_cv_FFI_LIBS="$FFI_LIBS"
13804  elif test -n "$PKG_CONFIG"; then
13805     if test -n "$PKG_CONFIG" && \
13806     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0.0 \""; } >&5
13807   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0.0 ") 2>&5
13808   ac_status=$?
13809   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13810   test $ac_status = 0; }; then
13811   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0.0 " 2>/dev/null`
13812                       test "x$?" != "x0" && pkg_failed=yes
13813 else
13814   pkg_failed=yes
13815 fi
13816  else
13817     pkg_failed=untried
13818 fi
13819
13820
13821
13822 if test $pkg_failed = yes; then
13823         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13824 $as_echo "no" >&6; }
13825
13826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13827         _pkg_short_errors_supported=yes
13828 else
13829         _pkg_short_errors_supported=no
13830 fi
13831         if test $_pkg_short_errors_supported = yes; then
13832                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0.0 " 2>&1`
13833         else
13834                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0.0 " 2>&1`
13835         fi
13836         # Put the nasty error message in config.log where it belongs
13837         echo "$FFI_PKG_ERRORS" >&5
13838
13839         have_ffi_pkgconfig=no
13840 elif test $pkg_failed = untried; then
13841         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13842 $as_echo "no" >&6; }
13843         have_ffi_pkgconfig=no
13844 else
13845         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13846         FFI_LIBS=$pkg_cv_FFI_LIBS
13847         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13848 $as_echo "yes" >&6; }
13849         have_ffi_pkgconfig=yes
13850 fi
13851 FFI_PC_CFLAGS=""
13852 FFI_PC_LIBS=""
13853 FFI_PC_PACKAGES=""
13854 if test x"$have_ffi_pkgconfig" = xyes ; then
13855     FFI_PC_PACKAGES="libffi"
13856 else
13857   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi.h" >&5
13858 $as_echo_n "checking for ffi.h... " >&6; }
13859
13860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13861 /* end confdefs.h.  */
13862 #include <ffi.h>
13863 _ACEOF
13864 if ac_fn_c_try_cpp "$LINENO"; then :
13865   have_ffi_h=yes
13866 else
13867   have_ffi_h=no
13868 fi
13869 rm -f conftest.err conftest.i conftest.$ac_ext
13870   if test x"$have_ffi_h" = x"yes"; then
13871
13872     save_LIBS=$LIBS
13873     if test x"$with_ffi" = x"yes" || test x"$with_ffi" = x"auto"; then
13874       other_LIBS=
13875     else
13876       other_LIBS=$with_ffi
13877     fi
13878
13879     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
13880 $as_echo_n "checking for library containing ffi_call... " >&6; }
13881 if ${ac_cv_search_ffi_call+:} false; then :
13882   $as_echo_n "(cached) " >&6
13883 else
13884   ac_func_search_save_LIBS=$LIBS
13885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13886 /* end confdefs.h.  */
13887
13888 /* Override any GCC internal prototype to avoid an error.
13889    Use char because int might match the return type of a GCC
13890    builtin and then its argument prototype would still apply.  */
13891 #ifdef __cplusplus
13892 extern "C"
13893 #endif
13894 char ffi_call ();
13895 int
13896 main ()
13897 {
13898 return ffi_call ();
13899   ;
13900   return 0;
13901 }
13902 _ACEOF
13903 for ac_lib in '' ffi; do
13904   if test -z "$ac_lib"; then
13905     ac_res="none required"
13906   else
13907     ac_res=-l$ac_lib
13908     LIBS="-l$ac_lib $other_LIBS $ac_func_search_save_LIBS"
13909   fi
13910   if ac_fn_c_try_link "$LINENO"; then :
13911   ac_cv_search_ffi_call=$ac_res
13912 fi
13913 rm -f core conftest.err conftest.$ac_objext \
13914     conftest$ac_exeext
13915   if ${ac_cv_search_ffi_call+:} false; then :
13916   break
13917 fi
13918 done
13919 if ${ac_cv_search_ffi_call+:} false; then :
13920
13921 else
13922   ac_cv_search_ffi_call=no
13923 fi
13924 rm conftest.$ac_ext
13925 LIBS=$ac_func_search_save_LIBS
13926 fi
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
13928 $as_echo "$ac_cv_search_ffi_call" >&6; }
13929 ac_res=$ac_cv_search_ffi_call
13930 if test "$ac_res" != no; then :
13931   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13932
13933 else
13934   as_fn_error $? "libffi not found" "$LINENO" 5
13935 fi
13936
13937     if test x"$ac_cv_search_ffi_call" = x"none required" ; then
13938       FFI_LIBS=$other_LIBS
13939     else
13940       FFI_LIBS="$ac_cv_search_ffi_call $other_LIBS"
13941     fi
13942
13943     LIBS=$save_LIBS
13944   fi
13945   if test x"$have_ffi_h" != x"yes" ; then
13946     as_fn_error $? "ffi.h not found" "$LINENO" 5
13947   fi
13948
13949   FFI_PC_LIBS=$FFI_LIBS
13950   FFI_PC_CFLAGS=$FFI_CFLAGS
13951   FFI_CFLAGS=
13952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ffi_h" >&5
13953 $as_echo "$have_ffi_h" >&6; }
13954
13955
13956 fi
13957
13958
13959
13960
13961 # The cast to long int works around a bug in the HP C Compiler
13962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13964 # This bug is HP SR number 8606223364.
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13966 $as_echo_n "checking size of char... " >&6; }
13967 if ${ac_cv_sizeof_char+:} false; then :
13968   $as_echo_n "(cached) " >&6
13969 else
13970   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
13971
13972 else
13973   if test "$ac_cv_type_char" = yes; then
13974      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13976 as_fn_error 77 "cannot compute sizeof (char)
13977 See \`config.log' for more details" "$LINENO" 5; }
13978    else
13979      ac_cv_sizeof_char=0
13980    fi
13981 fi
13982
13983 fi
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13985 $as_echo "$ac_cv_sizeof_char" >&6; }
13986
13987
13988
13989 cat >>confdefs.h <<_ACEOF
13990 #define SIZEOF_CHAR $ac_cv_sizeof_char
13991 _ACEOF
13992
13993
13994 # The cast to long int works around a bug in the HP C Compiler
13995 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13996 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13997 # This bug is HP SR number 8606223364.
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13999 $as_echo_n "checking size of short... " >&6; }
14000 if ${ac_cv_sizeof_short+:} false; then :
14001   $as_echo_n "(cached) " >&6
14002 else
14003   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14004
14005 else
14006   if test "$ac_cv_type_short" = yes; then
14007      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14009 as_fn_error 77 "cannot compute sizeof (short)
14010 See \`config.log' for more details" "$LINENO" 5; }
14011    else
14012      ac_cv_sizeof_short=0
14013    fi
14014 fi
14015
14016 fi
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14018 $as_echo "$ac_cv_sizeof_short" >&6; }
14019
14020
14021
14022 cat >>confdefs.h <<_ACEOF
14023 #define SIZEOF_SHORT $ac_cv_sizeof_short
14024 _ACEOF
14025
14026
14027 # The cast to long int works around a bug in the HP C Compiler
14028 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14029 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14030 # This bug is HP SR number 8606223364.
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14032 $as_echo_n "checking size of int... " >&6; }
14033 if ${ac_cv_sizeof_int+:} false; then :
14034   $as_echo_n "(cached) " >&6
14035 else
14036   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14037
14038 else
14039   if test "$ac_cv_type_int" = yes; then
14040      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14042 as_fn_error 77 "cannot compute sizeof (int)
14043 See \`config.log' for more details" "$LINENO" 5; }
14044    else
14045      ac_cv_sizeof_int=0
14046    fi
14047 fi
14048
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14051 $as_echo "$ac_cv_sizeof_int" >&6; }
14052
14053
14054
14055 cat >>confdefs.h <<_ACEOF
14056 #define SIZEOF_INT $ac_cv_sizeof_int
14057 _ACEOF
14058
14059
14060 # The cast to long int works around a bug in the HP C Compiler
14061 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14062 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14063 # This bug is HP SR number 8606223364.
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14065 $as_echo_n "checking size of long... " >&6; }
14066 if ${ac_cv_sizeof_long+:} false; then :
14067   $as_echo_n "(cached) " >&6
14068 else
14069   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14070
14071 else
14072   if test "$ac_cv_type_long" = yes; then
14073      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14075 as_fn_error 77 "cannot compute sizeof (long)
14076 See \`config.log' for more details" "$LINENO" 5; }
14077    else
14078      ac_cv_sizeof_long=0
14079    fi
14080 fi
14081
14082 fi
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14084 $as_echo "$ac_cv_sizeof_long" >&6; }
14085
14086
14087
14088 cat >>confdefs.h <<_ACEOF
14089 #define SIZEOF_LONG $ac_cv_sizeof_long
14090 _ACEOF
14091
14092
14093
14094
14095 pkg_failed=no
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIREPO" >&5
14097 $as_echo_n "checking for GIREPO... " >&6; }
14098
14099 if test -n "$GIREPO_CFLAGS"; then
14100     pkg_cv_GIREPO_CFLAGS="$GIREPO_CFLAGS"
14101  elif test -n "$PKG_CONFIG"; then
14102     if test -n "$PKG_CONFIG" && \
14103     { { $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
14104   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
14105   ac_status=$?
14106   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14107   test $ac_status = 0; }; then
14108   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`
14109                       test "x$?" != "x0" && pkg_failed=yes
14110 else
14111   pkg_failed=yes
14112 fi
14113  else
14114     pkg_failed=untried
14115 fi
14116 if test -n "$GIREPO_LIBS"; then
14117     pkg_cv_GIREPO_LIBS="$GIREPO_LIBS"
14118  elif test -n "$PKG_CONFIG"; then
14119     if test -n "$PKG_CONFIG" && \
14120     { { $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
14121   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0") 2>&5
14122   ac_status=$?
14123   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14124   test $ac_status = 0; }; then
14125   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`
14126                       test "x$?" != "x0" && pkg_failed=yes
14127 else
14128   pkg_failed=yes
14129 fi
14130  else
14131     pkg_failed=untried
14132 fi
14133
14134
14135
14136 if test $pkg_failed = yes; then
14137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14138 $as_echo "no" >&6; }
14139
14140 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14141         _pkg_short_errors_supported=yes
14142 else
14143         _pkg_short_errors_supported=no
14144 fi
14145         if test $_pkg_short_errors_supported = yes; then
14146                 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`
14147         else
14148                 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`
14149         fi
14150         # Put the nasty error message in config.log where it belongs
14151         echo "$GIREPO_PKG_ERRORS" >&5
14152
14153         as_fn_error $? "Package requirements (glib-2.0 >= 2.24.0 gobject-2.0 gmodule-2.0 gio-2.0) were not met:
14154
14155 $GIREPO_PKG_ERRORS
14156
14157 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14158 installed software in a non-standard prefix.
14159
14160 Alternatively, you may set the environment variables GIREPO_CFLAGS
14161 and GIREPO_LIBS to avoid the need to call pkg-config.
14162 See the pkg-config man page for more details." "$LINENO" 5
14163 elif test $pkg_failed = untried; then
14164         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14165 $as_echo "no" >&6; }
14166         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14168 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14169 is in your PATH or set the PKG_CONFIG environment variable to the full
14170 path to pkg-config.
14171
14172 Alternatively, you may set the environment variables GIREPO_CFLAGS
14173 and GIREPO_LIBS to avoid the need to call pkg-config.
14174 See the pkg-config man page for more details.
14175
14176 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14177 See \`config.log' for more details" "$LINENO" 5; }
14178 else
14179         GIREPO_CFLAGS=$pkg_cv_GIREPO_CFLAGS
14180         GIREPO_LIBS=$pkg_cv_GIREPO_LIBS
14181         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14182 $as_echo "yes" >&6; }
14183
14184 fi
14185
14186 # if we ever remove manual check for ffi and require .pc file, then
14187 # just put libffi in the PKG_CHECK_MODULES(GIREPO) deps
14188 GIREPO_LIBS="$GIREPO_LIBS $GCOV_LIBS $FFI_LIBS"
14189 GIREPO_CFLAGS="$GIREPO_CFLAGS $FFI_CFLAGS"
14190
14191 GIREPO_CFLAGS="$GIREPO_CFLAGS $GCOV_CFLAGS"
14192
14193 # gtk-doc
14194 # gtkdocize greps for ^GTK_DOC_CHECK and parses it, so you need to have
14195 # it on it's own line.
14196
14197
14198
14199
14200   gtk_doc_requires="gtk-doc >= 1.19"
14201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk-doc" >&5
14202 $as_echo_n "checking for gtk-doc... " >&6; }
14203   if test -n "$PKG_CONFIG" && \
14204     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$gtk_doc_requires\""; } >&5
14205   ($PKG_CONFIG --exists --print-errors "$gtk_doc_requires") 2>&5
14206   ac_status=$?
14207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14208   test $ac_status = 0; }; then
14209   have_gtk_doc=yes
14210 else
14211   have_gtk_doc=no
14212 fi
14213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtk_doc" >&5
14214 $as_echo "$have_gtk_doc" >&6; }
14215
14216   if test "$have_gtk_doc" = "no"; then
14217       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
14218   You will not be able to create source packages with 'make dist'
14219   because $gtk_doc_requires is not found." >&5
14220 $as_echo "$as_me: WARNING:
14221   You will not be able to create source packages with 'make dist'
14222   because $gtk_doc_requires is not found." >&2;}
14223   fi
14224
14225             # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14226 set dummy gtkdoc-check; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14228 $as_echo_n "checking for $ac_word... " >&6; }
14229 if ${ac_cv_prog_GTKDOC_CHECK+:} false; then :
14230   $as_echo_n "(cached) " >&6
14231 else
14232   if test -n "$GTKDOC_CHECK"; then
14233   ac_cv_prog_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test.
14234 else
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14237 do
14238   IFS=$as_save_IFS
14239   test -z "$as_dir" && as_dir=.
14240     for ac_exec_ext in '' $ac_executable_extensions; do
14241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242     ac_cv_prog_GTKDOC_CHECK="gtkdoc-check.test"
14243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14244     break 2
14245   fi
14246 done
14247   done
14248 IFS=$as_save_IFS
14249
14250 fi
14251 fi
14252 GTKDOC_CHECK=$ac_cv_prog_GTKDOC_CHECK
14253 if test -n "$GTKDOC_CHECK"; then
14254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14255 $as_echo "$GTKDOC_CHECK" >&6; }
14256 else
14257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14258 $as_echo "no" >&6; }
14259 fi
14260
14261
14262   # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14263 set dummy gtkdoc-check; ac_word=$2
14264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14265 $as_echo_n "checking for $ac_word... " >&6; }
14266 if ${ac_cv_path_GTKDOC_CHECK_PATH+:} false; then :
14267   $as_echo_n "(cached) " >&6
14268 else
14269   case $GTKDOC_CHECK_PATH in
14270   [\\/]* | ?:[\\/]*)
14271   ac_cv_path_GTKDOC_CHECK_PATH="$GTKDOC_CHECK_PATH" # Let the user override the test with a path.
14272   ;;
14273   *)
14274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14275 for as_dir in $PATH
14276 do
14277   IFS=$as_save_IFS
14278   test -z "$as_dir" && as_dir=.
14279     for ac_exec_ext in '' $ac_executable_extensions; do
14280   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14281     ac_cv_path_GTKDOC_CHECK_PATH="$as_dir/$ac_word$ac_exec_ext"
14282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14283     break 2
14284   fi
14285 done
14286   done
14287 IFS=$as_save_IFS
14288
14289   ;;
14290 esac
14291 fi
14292 GTKDOC_CHECK_PATH=$ac_cv_path_GTKDOC_CHECK_PATH
14293 if test -n "$GTKDOC_CHECK_PATH"; then
14294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK_PATH" >&5
14295 $as_echo "$GTKDOC_CHECK_PATH" >&6; }
14296 else
14297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14298 $as_echo "no" >&6; }
14299 fi
14300
14301
14302   for ac_prog in gtkdoc-rebase
14303 do
14304   # Extract the first word of "$ac_prog", so it can be a program name with args.
14305 set dummy $ac_prog; ac_word=$2
14306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14307 $as_echo_n "checking for $ac_word... " >&6; }
14308 if ${ac_cv_path_GTKDOC_REBASE+:} false; then :
14309   $as_echo_n "(cached) " >&6
14310 else
14311   case $GTKDOC_REBASE in
14312   [\\/]* | ?:[\\/]*)
14313   ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
14314   ;;
14315   *)
14316   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14317 for as_dir in $PATH
14318 do
14319   IFS=$as_save_IFS
14320   test -z "$as_dir" && as_dir=.
14321     for ac_exec_ext in '' $ac_executable_extensions; do
14322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14323     ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
14324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14325     break 2
14326   fi
14327 done
14328   done
14329 IFS=$as_save_IFS
14330
14331   ;;
14332 esac
14333 fi
14334 GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
14335 if test -n "$GTKDOC_REBASE"; then
14336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
14337 $as_echo "$GTKDOC_REBASE" >&6; }
14338 else
14339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14341 fi
14342
14343
14344   test -n "$GTKDOC_REBASE" && break
14345 done
14346 test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
14347
14348   # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
14349 set dummy gtkdoc-mkpdf; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351 $as_echo_n "checking for $ac_word... " >&6; }
14352 if ${ac_cv_path_GTKDOC_MKPDF+:} false; then :
14353   $as_echo_n "(cached) " >&6
14354 else
14355   case $GTKDOC_MKPDF in
14356   [\\/]* | ?:[\\/]*)
14357   ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
14358   ;;
14359   *)
14360   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14361 for as_dir in $PATH
14362 do
14363   IFS=$as_save_IFS
14364   test -z "$as_dir" && as_dir=.
14365     for ac_exec_ext in '' $ac_executable_extensions; do
14366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14367     ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
14368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14369     break 2
14370   fi
14371 done
14372   done
14373 IFS=$as_save_IFS
14374
14375   ;;
14376 esac
14377 fi
14378 GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
14379 if test -n "$GTKDOC_MKPDF"; then
14380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
14381 $as_echo "$GTKDOC_MKPDF" >&6; }
14382 else
14383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14385 fi
14386
14387
14388
14389
14390 # Check whether --with-html-dir was given.
14391 if test "${with_html_dir+set}" = set; then :
14392   withval=$with_html_dir;
14393 else
14394   with_html_dir='${datadir}/gtk-doc/html'
14395 fi
14396
14397   HTML_DIR="$with_html_dir"
14398
14399
14400     # Check whether --enable-gtk-doc was given.
14401 if test "${enable_gtk_doc+set}" = set; then :
14402   enableval=$enable_gtk_doc;
14403 else
14404   enable_gtk_doc=no
14405 fi
14406
14407
14408   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14409 $as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14411 $as_echo "$enable_gtk_doc" >&6; }
14412
14413   if test "x$enable_gtk_doc" = "xyes" && test "$have_gtk_doc" = "no"; then
14414     as_fn_error $? "
14415   You must have $gtk_doc_requires installed to build documentation for
14416   $PACKAGE_NAME. Please install gtk-doc or disable building the
14417   documentation by adding '--disable-gtk-doc' to '$0'." "$LINENO" 5
14418   fi
14419
14420     if test "x$PACKAGE_NAME" != "xglib"; then
14421
14422 pkg_failed=no
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5
14424 $as_echo_n "checking for GTKDOC_DEPS... " >&6; }
14425
14426 if test -n "$GTKDOC_DEPS_CFLAGS"; then
14427     pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS"
14428  elif test -n "$PKG_CONFIG"; then
14429     if test -n "$PKG_CONFIG" && \
14430     { { $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
14431   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
14432   ac_status=$?
14433   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14434   test $ac_status = 0; }; then
14435   pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
14436                       test "x$?" != "x0" && pkg_failed=yes
14437 else
14438   pkg_failed=yes
14439 fi
14440  else
14441     pkg_failed=untried
14442 fi
14443 if test -n "$GTKDOC_DEPS_LIBS"; then
14444     pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS"
14445  elif test -n "$PKG_CONFIG"; then
14446     if test -n "$PKG_CONFIG" && \
14447     { { $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
14448   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0") 2>&5
14449   ac_status=$?
14450   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14451   test $ac_status = 0; }; then
14452   pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>/dev/null`
14453                       test "x$?" != "x0" && pkg_failed=yes
14454 else
14455   pkg_failed=yes
14456 fi
14457  else
14458     pkg_failed=untried
14459 fi
14460
14461
14462
14463 if test $pkg_failed = yes; then
14464         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14465 $as_echo "no" >&6; }
14466
14467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14468         _pkg_short_errors_supported=yes
14469 else
14470         _pkg_short_errors_supported=no
14471 fi
14472         if test $_pkg_short_errors_supported = yes; then
14473                 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`
14474         else
14475                 GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.10.0 gobject-2.0  >= 2.10.0" 2>&1`
14476         fi
14477         # Put the nasty error message in config.log where it belongs
14478         echo "$GTKDOC_DEPS_PKG_ERRORS" >&5
14479
14480         :
14481 elif test $pkg_failed = untried; then
14482         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14483 $as_echo "no" >&6; }
14484         :
14485 else
14486         GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS
14487         GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS
14488         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14489 $as_echo "yes" >&6; }
14490
14491 fi
14492   fi
14493
14494     # Check whether --enable-gtk-doc-html was given.
14495 if test "${enable_gtk_doc_html+set}" = set; then :
14496   enableval=$enable_gtk_doc_html;
14497 else
14498   enable_gtk_doc_html=yes
14499 fi
14500
14501     # Check whether --enable-gtk-doc-pdf was given.
14502 if test "${enable_gtk_doc_pdf+set}" = set; then :
14503   enableval=$enable_gtk_doc_pdf;
14504 else
14505   enable_gtk_doc_pdf=no
14506 fi
14507
14508
14509   if test -z "$GTKDOC_MKPDF"; then
14510     enable_gtk_doc_pdf=no
14511   fi
14512
14513   if test -z "$AM_DEFAULT_VERBOSITY"; then
14514     AM_DEFAULT_VERBOSITY=1
14515   fi
14516
14517
14518    if test x$have_gtk_doc = xyes; then
14519   HAVE_GTK_DOC_TRUE=
14520   HAVE_GTK_DOC_FALSE='#'
14521 else
14522   HAVE_GTK_DOC_TRUE='#'
14523   HAVE_GTK_DOC_FALSE=
14524 fi
14525
14526    if test x$enable_gtk_doc = xyes; then
14527   ENABLE_GTK_DOC_TRUE=
14528   ENABLE_GTK_DOC_FALSE='#'
14529 else
14530   ENABLE_GTK_DOC_TRUE='#'
14531   ENABLE_GTK_DOC_FALSE=
14532 fi
14533
14534    if test x$enable_gtk_doc_html = xyes; then
14535   GTK_DOC_BUILD_HTML_TRUE=
14536   GTK_DOC_BUILD_HTML_FALSE='#'
14537 else
14538   GTK_DOC_BUILD_HTML_TRUE='#'
14539   GTK_DOC_BUILD_HTML_FALSE=
14540 fi
14541
14542    if test x$enable_gtk_doc_pdf = xyes; then
14543   GTK_DOC_BUILD_PDF_TRUE=
14544   GTK_DOC_BUILD_PDF_FALSE='#'
14545 else
14546   GTK_DOC_BUILD_PDF_TRUE='#'
14547   GTK_DOC_BUILD_PDF_FALSE=
14548 fi
14549
14550    if test -n "$LIBTOOL"; then
14551   GTK_DOC_USE_LIBTOOL_TRUE=
14552   GTK_DOC_USE_LIBTOOL_FALSE='#'
14553 else
14554   GTK_DOC_USE_LIBTOOL_TRUE='#'
14555   GTK_DOC_USE_LIBTOOL_FALSE=
14556 fi
14557
14558    if test -n "$GTKDOC_REBASE"; then
14559   GTK_DOC_USE_REBASE_TRUE=
14560   GTK_DOC_USE_REBASE_FALSE='#'
14561 else
14562   GTK_DOC_USE_REBASE_TRUE='#'
14563   GTK_DOC_USE_REBASE_FALSE=
14564 fi
14565
14566
14567
14568
14569 # Checks for header files.
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14571 $as_echo_n "checking for ANSI C header files... " >&6; }
14572 if ${ac_cv_header_stdc+:} false; then :
14573   $as_echo_n "(cached) " >&6
14574 else
14575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14576 /* end confdefs.h.  */
14577 #include <stdlib.h>
14578 #include <stdarg.h>
14579 #include <string.h>
14580 #include <float.h>
14581
14582 int
14583 main ()
14584 {
14585
14586   ;
14587   return 0;
14588 }
14589 _ACEOF
14590 if ac_fn_c_try_compile "$LINENO"; then :
14591   ac_cv_header_stdc=yes
14592 else
14593   ac_cv_header_stdc=no
14594 fi
14595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14596
14597 if test $ac_cv_header_stdc = yes; then
14598   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h.  */
14601 #include <string.h>
14602
14603 _ACEOF
14604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14605   $EGREP "memchr" >/dev/null 2>&1; then :
14606
14607 else
14608   ac_cv_header_stdc=no
14609 fi
14610 rm -f conftest*
14611
14612 fi
14613
14614 if test $ac_cv_header_stdc = yes; then
14615   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h.  */
14618 #include <stdlib.h>
14619
14620 _ACEOF
14621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14622   $EGREP "free" >/dev/null 2>&1; then :
14623
14624 else
14625   ac_cv_header_stdc=no
14626 fi
14627 rm -f conftest*
14628
14629 fi
14630
14631 if test $ac_cv_header_stdc = yes; then
14632   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14633   if test "$cross_compiling" = yes; then :
14634   :
14635 else
14636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14637 /* end confdefs.h.  */
14638 #include <ctype.h>
14639 #include <stdlib.h>
14640 #if ((' ' & 0x0FF) == 0x020)
14641 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14642 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14643 #else
14644 # define ISLOWER(c) \
14645                    (('a' <= (c) && (c) <= 'i') \
14646                      || ('j' <= (c) && (c) <= 'r') \
14647                      || ('s' <= (c) && (c) <= 'z'))
14648 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14649 #endif
14650
14651 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14652 int
14653 main ()
14654 {
14655   int i;
14656   for (i = 0; i < 256; i++)
14657     if (XOR (islower (i), ISLOWER (i))
14658         || toupper (i) != TOUPPER (i))
14659       return 2;
14660   return 0;
14661 }
14662 _ACEOF
14663 if ac_fn_c_try_run "$LINENO"; then :
14664
14665 else
14666   ac_cv_header_stdc=no
14667 fi
14668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14669   conftest.$ac_objext conftest.beam conftest.$ac_ext
14670 fi
14671
14672 fi
14673 fi
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14675 $as_echo "$ac_cv_header_stdc" >&6; }
14676 if test $ac_cv_header_stdc = yes; then
14677
14678 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14679
14680 fi
14681
14682 for ac_header in fcntl.h stdlib.h string.h
14683 do :
14684   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14685 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14687   cat >>confdefs.h <<_ACEOF
14688 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14689 _ACEOF
14690
14691 fi
14692
14693 done
14694
14695
14696 # Checks for typedefs, structures, and compiler characteristics.
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14698 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14699 if ${ac_cv_c_const+:} false; then :
14700   $as_echo_n "(cached) " >&6
14701 else
14702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14703 /* end confdefs.h.  */
14704
14705 int
14706 main ()
14707 {
14708
14709 #ifndef __cplusplus
14710   /* Ultrix mips cc rejects this sort of thing.  */
14711   typedef int charset[2];
14712   const charset cs = { 0, 0 };
14713   /* SunOS 4.1.1 cc rejects this.  */
14714   char const *const *pcpcc;
14715   char **ppc;
14716   /* NEC SVR4.0.2 mips cc rejects this.  */
14717   struct point {int x, y;};
14718   static struct point const zero = {0,0};
14719   /* AIX XL C 1.02.0.0 rejects this.
14720      It does not let you subtract one const X* pointer from another in
14721      an arm of an if-expression whose if-part is not a constant
14722      expression */
14723   const char *g = "string";
14724   pcpcc = &g + (g ? g-g : 0);
14725   /* HPUX 7.0 cc rejects these. */
14726   ++pcpcc;
14727   ppc = (char**) pcpcc;
14728   pcpcc = (char const *const *) ppc;
14729   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14730     char tx;
14731     char *t = &tx;
14732     char const *s = 0 ? (char *) 0 : (char const *) 0;
14733
14734     *t++ = 0;
14735     if (s) return 0;
14736   }
14737   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14738     int x[] = {25, 17};
14739     const int *foo = &x[0];
14740     ++foo;
14741   }
14742   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14743     typedef const int *iptr;
14744     iptr p = 0;
14745     ++p;
14746   }
14747   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14748        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14749     struct s { int j; const int *ap[3]; } bx;
14750     struct s *b = &bx; b->j = 5;
14751   }
14752   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14753     const int foo = 10;
14754     if (!foo) return 0;
14755   }
14756   return !cs[0] && !zero.x;
14757 #endif
14758
14759   ;
14760   return 0;
14761 }
14762 _ACEOF
14763 if ac_fn_c_try_compile "$LINENO"; then :
14764   ac_cv_c_const=yes
14765 else
14766   ac_cv_c_const=no
14767 fi
14768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14769 fi
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14771 $as_echo "$ac_cv_c_const" >&6; }
14772 if test $ac_cv_c_const = no; then
14773
14774 $as_echo "#define const /**/" >>confdefs.h
14775
14776 fi
14777
14778
14779 # Checks for library functions.
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
14781 $as_echo_n "checking for working strtod... " >&6; }
14782 if ${ac_cv_func_strtod+:} false; then :
14783   $as_echo_n "(cached) " >&6
14784 else
14785   if test "$cross_compiling" = yes; then :
14786   ac_cv_func_strtod=no
14787 else
14788   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h.  */
14790
14791 $ac_includes_default
14792 #ifndef strtod
14793 double strtod ();
14794 #endif
14795 int
14796 main()
14797 {
14798   {
14799     /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
14800     char *string = " +69";
14801     char *term;
14802     double value;
14803     value = strtod (string, &term);
14804     if (value != 69 || term != (string + 4))
14805       return 1;
14806   }
14807
14808   {
14809     /* Under Solaris 2.4, strtod returns the wrong value for the
14810        terminating character under some conditions.  */
14811     char *string = "NaN";
14812     char *term;
14813     strtod (string, &term);
14814     if (term != string && *(term - 1) == 0)
14815       return 1;
14816   }
14817   return 0;
14818 }
14819
14820 _ACEOF
14821 if ac_fn_c_try_run "$LINENO"; then :
14822   ac_cv_func_strtod=yes
14823 else
14824   ac_cv_func_strtod=no
14825 fi
14826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14827   conftest.$ac_objext conftest.beam conftest.$ac_ext
14828 fi
14829
14830 fi
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
14832 $as_echo "$ac_cv_func_strtod" >&6; }
14833 if test $ac_cv_func_strtod = no; then
14834   case " $LIBOBJS " in
14835   *" strtod.$ac_objext "* ) ;;
14836   *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
14837  ;;
14838 esac
14839
14840 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
14841 if test "x$ac_cv_func_pow" = xyes; then :
14842
14843 fi
14844
14845 if test $ac_cv_func_pow = no; then
14846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
14847 $as_echo_n "checking for pow in -lm... " >&6; }
14848 if ${ac_cv_lib_m_pow+:} false; then :
14849   $as_echo_n "(cached) " >&6
14850 else
14851   ac_check_lib_save_LIBS=$LIBS
14852 LIBS="-lm  $LIBS"
14853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14854 /* end confdefs.h.  */
14855
14856 /* Override any GCC internal prototype to avoid an error.
14857    Use char because int might match the return type of a GCC
14858    builtin and then its argument prototype would still apply.  */
14859 #ifdef __cplusplus
14860 extern "C"
14861 #endif
14862 char pow ();
14863 int
14864 main ()
14865 {
14866 return pow ();
14867   ;
14868   return 0;
14869 }
14870 _ACEOF
14871 if ac_fn_c_try_link "$LINENO"; then :
14872   ac_cv_lib_m_pow=yes
14873 else
14874   ac_cv_lib_m_pow=no
14875 fi
14876 rm -f core conftest.err conftest.$ac_objext \
14877     conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14879 fi
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
14881 $as_echo "$ac_cv_lib_m_pow" >&6; }
14882 if test "x$ac_cv_lib_m_pow" = xyes; then :
14883   POW_LIB=-lm
14884 else
14885   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
14886 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
14887 fi
14888
14889 fi
14890
14891 fi
14892
14893 for ac_func in memchr strchr strspn strstr strtol strtoull
14894 do :
14895   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14897 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14898   cat >>confdefs.h <<_ACEOF
14899 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14900 _ACEOF
14901
14902 fi
14903 done
14904
14905 for ac_func in backtrace backtrace_symbols
14906 do :
14907   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14910   cat >>confdefs.h <<_ACEOF
14911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14912 _ACEOF
14913
14914 fi
14915 done
14916
14917
14918 # Python
14919 # option to specify python interpreter to use; this just sets $PYTHON, so that
14920 # we will fallback to reading $PYTHON if --with-python is not given, and
14921 # python.m4 will get the expected input
14922
14923 # Check whether --with-python was given.
14924 if test "${with_python+set}" = set; then :
14925   withval=$with_python; PYTHON="$withval"
14926 fi
14927
14928 if test x"$PYTHON" = xyes; then
14929     as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
14930 fi
14931 if test -n "$PYTHON" && ! which "$PYTHON"; then
14932     as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
14933 fi
14934
14935
14936
14937
14938
14939
14940
14941         if test -n "$PYTHON"; then
14942       # If the user set $PYTHON, use it and don't search something else.
14943       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 2.7" >&5
14944 $as_echo_n "checking whether $PYTHON version is >= 2.7... " >&6; }
14945       prog="import sys
14946 # split strings by '.' and convert to numeric.  Append some zeros
14947 # because we need at least 4 digits for the hex conversion.
14948 # map returns an iterator in Python 3.0 and a list in 2.x
14949 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
14950 minverhex = 0
14951 # xrange is not present in Python 3.0 and range returns an iterator
14952 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14953 sys.exit(sys.hexversion < minverhex)"
14954   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14955    ($PYTHON -c "$prog") >&5 2>&5
14956    ac_status=$?
14957    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958    (exit $ac_status); }; then :
14959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14960 $as_echo "yes" >&6; }
14961 else
14962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14963 $as_echo "no" >&6; }
14964                                as_fn_error $? "Python interpreter is too old" "$LINENO" 5
14965 fi
14966       am_display_PYTHON=$PYTHON
14967     else
14968       # Otherwise, try each interpreter until we find one that satisfies
14969       # VERSION.
14970       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
14971 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
14972 if ${am_cv_pathless_PYTHON+:} false; then :
14973   $as_echo_n "(cached) " >&6
14974 else
14975
14976         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
14977           test "$am_cv_pathless_PYTHON" = none && break
14978           prog="import sys
14979 # split strings by '.' and convert to numeric.  Append some zeros
14980 # because we need at least 4 digits for the hex conversion.
14981 # map returns an iterator in Python 3.0 and a list in 2.x
14982 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
14983 minverhex = 0
14984 # xrange is not present in Python 3.0 and range returns an iterator
14985 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
14986 sys.exit(sys.hexversion < minverhex)"
14987   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14988    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14989    ac_status=$?
14990    echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991    (exit $ac_status); }; then :
14992   break
14993 fi
14994         done
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
14997 $as_echo "$am_cv_pathless_PYTHON" >&6; }
14998       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14999       if test "$am_cv_pathless_PYTHON" = none; then
15000         PYTHON=:
15001       else
15002         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
15003 set dummy $am_cv_pathless_PYTHON; ac_word=$2
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15005 $as_echo_n "checking for $ac_word... " >&6; }
15006 if ${ac_cv_path_PYTHON+:} false; then :
15007   $as_echo_n "(cached) " >&6
15008 else
15009   case $PYTHON in
15010   [\\/]* | ?:[\\/]*)
15011   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
15012   ;;
15013   *)
15014   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015 for as_dir in $PATH
15016 do
15017   IFS=$as_save_IFS
15018   test -z "$as_dir" && as_dir=.
15019     for ac_exec_ext in '' $ac_executable_extensions; do
15020   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15021     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
15022     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15023     break 2
15024   fi
15025 done
15026   done
15027 IFS=$as_save_IFS
15028
15029   ;;
15030 esac
15031 fi
15032 PYTHON=$ac_cv_path_PYTHON
15033 if test -n "$PYTHON"; then
15034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
15035 $as_echo "$PYTHON" >&6; }
15036 else
15037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15039 fi
15040
15041
15042       fi
15043       am_display_PYTHON=$am_cv_pathless_PYTHON
15044     fi
15045
15046
15047   if test "$PYTHON" = :; then
15048       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
15049   else
15050
15051
15052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
15053 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
15054 if ${am_cv_python_version+:} false; then :
15055   $as_echo_n "(cached) " >&6
15056 else
15057   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
15058 fi
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
15060 $as_echo "$am_cv_python_version" >&6; }
15061   PYTHON_VERSION=$am_cv_python_version
15062
15063
15064
15065   PYTHON_PREFIX='${prefix}'
15066
15067   PYTHON_EXEC_PREFIX='${exec_prefix}'
15068
15069
15070
15071   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
15072 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
15073 if ${am_cv_python_platform+:} false; then :
15074   $as_echo_n "(cached) " >&6
15075 else
15076   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
15077 fi
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
15079 $as_echo "$am_cv_python_platform" >&6; }
15080   PYTHON_PLATFORM=$am_cv_python_platform
15081
15082
15083   # Just factor out some code duplication.
15084   am_python_setup_sysconfig="\
15085 import sys
15086 # Prefer sysconfig over distutils.sysconfig, for better compatibility
15087 # with python 3.x.  See automake bug#10227.
15088 try:
15089     import sysconfig
15090 except ImportError:
15091     can_use_sysconfig = 0
15092 else:
15093     can_use_sysconfig = 1
15094 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
15095 # <https://github.com/pypa/virtualenv/issues/118>
15096 try:
15097     from platform import python_implementation
15098     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
15099         can_use_sysconfig = 0
15100 except ImportError:
15101     pass"
15102
15103
15104             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
15105 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
15106 if ${am_cv_python_pythondir+:} false; then :
15107   $as_echo_n "(cached) " >&6
15108 else
15109   if test "x$prefix" = xNONE
15110      then
15111        am_py_prefix=$ac_default_prefix
15112      else
15113        am_py_prefix=$prefix
15114      fi
15115      am_cv_python_pythondir=`$PYTHON -c "
15116 $am_python_setup_sysconfig
15117 if can_use_sysconfig:
15118     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
15119 else:
15120     from distutils import sysconfig
15121     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
15122 sys.stdout.write(sitedir)"`
15123      case $am_cv_python_pythondir in
15124      $am_py_prefix*)
15125        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
15126        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
15127        ;;
15128      *)
15129        case $am_py_prefix in
15130          /usr|/System*) ;;
15131          *)
15132           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
15133           ;;
15134        esac
15135        ;;
15136      esac
15137
15138 fi
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
15140 $as_echo "$am_cv_python_pythondir" >&6; }
15141   pythondir=$am_cv_python_pythondir
15142
15143
15144
15145   pkgpythondir=\${pythondir}/$PACKAGE
15146
15147
15148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
15149 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
15150 if ${am_cv_python_pyexecdir+:} false; then :
15151   $as_echo_n "(cached) " >&6
15152 else
15153   if test "x$exec_prefix" = xNONE
15154      then
15155        am_py_exec_prefix=$am_py_prefix
15156      else
15157        am_py_exec_prefix=$exec_prefix
15158      fi
15159      am_cv_python_pyexecdir=`$PYTHON -c "
15160 $am_python_setup_sysconfig
15161 if can_use_sysconfig:
15162     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
15163 else:
15164     from distutils import sysconfig
15165     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
15166 sys.stdout.write(sitedir)"`
15167      case $am_cv_python_pyexecdir in
15168      $am_py_exec_prefix*)
15169        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
15170        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
15171        ;;
15172      *)
15173        case $am_py_exec_prefix in
15174          /usr|/System*) ;;
15175          *)
15176            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
15177            ;;
15178        esac
15179        ;;
15180      esac
15181
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
15184 $as_echo "$am_cv_python_pyexecdir" >&6; }
15185   pyexecdir=$am_cv_python_pyexecdir
15186
15187
15188
15189   pkgpyexecdir=\${pyexecdir}/$PACKAGE
15190
15191
15192
15193   fi
15194
15195
15196 case "$host" in
15197 *-*-mingw*)
15198         # Change backslashes to forward slashes in pyexecdir to avoid
15199         # quoting issues
15200         pyexecdir=`echo $pyexecdir | tr '\\\\' '/'`
15201         ;;
15202 esac
15203
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
15205 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
15206 PYTHON_INCLUDES=`$PYTHON-config --includes`
15207
15208 save_CPPFLAGS="$CPPFLAGS"
15209 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
15210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15211 /* end confdefs.h.  */
15212 #include <Python.h>
15213 _ACEOF
15214 if ac_fn_c_try_cpp "$LINENO"; then :
15215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15216 $as_echo "found" >&6; }
15217
15218 else
15219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15220 $as_echo "not found" >&6; }
15221 as_fn_error $? "Python headers not found" "$LINENO" 5
15222 fi
15223 rm -f conftest.err conftest.i conftest.$ac_ext
15224 CPPFLAGS="$save_CPPFLAGS"
15225
15226 if test "x$os_win32" = "xyes"; then
15227
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to link against libpython" >&5
15229 $as_echo_n "checking for libraries required to link against libpython... " >&6; }
15230 if test "x$PYTHON_LIBS" = x; then
15231         PYTHON_LIBS=`$PYTHON-config --ldflags --libs`
15232 fi
15233
15234 save_LIBS="$LIBS"
15235 LIBS="$LIBS $PYTHON_LIBS"
15236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15237 /* end confdefs.h.  */
15238
15239 /* Override any GCC internal prototype to avoid an error.
15240    Use char because int might match the return type of a GCC
15241    builtin and then its argument prototype would still apply.  */
15242 #ifdef __cplusplus
15243 extern "C"
15244 #endif
15245 char Py_Initialize ();
15246 int
15247 main ()
15248 {
15249 return Py_Initialize ();
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 if ac_fn_c_try_link "$LINENO"; then :
15255            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15256 $as_echo "found" >&6; };
15257 else
15258            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15259 $as_echo "not found" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext \
15262     conftest$ac_exeext conftest.$ac_ext
15263
15264
15265 fi
15266
15267 # Check whether --enable-doctool was given.
15268 if test "${enable_doctool+set}" = set; then :
15269   enableval=$enable_doctool;
15270 else
15271   enable_doctool=auto
15272 fi
15273
15274 if  test x$enable_doctool != xno; then :
15275
15276
15277 py_mod_var=`echo mako'_' | sed 'y%./+-%__p_%'`
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module mako" >&5
15279 $as_echo_n "checking for python module mako... " >&6; }
15280 if eval \${py_cv_mod_$py_mod_var+:} false; then :
15281   $as_echo_n "(cached) " >&6
15282 else
15283
15284 prog="
15285 import sys
15286 try:
15287         import mako
15288 except ImportError:
15289         sys.exit(1)
15290 except:
15291         sys.exit(0)
15292 sys.exit(0)"
15293 if $PYTHON -c "$prog" 1>&5 2>&5
15294   then
15295     eval "py_cv_mod_$py_mod_var=yes"
15296   else
15297     eval "py_cv_mod_$py_mod_var=no"
15298   fi
15299
15300 fi
15301
15302 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
15303 if test "x$py_val" != xno; then
15304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15305 $as_echo "yes" >&6; }
15306   have_python_mako=yes
15307 else
15308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15309 $as_echo "no" >&6; }
15310   have_python_mako=no
15311 fi
15312
15313
15314 fi
15315 if  test x$enable_doctool = xauto && test x$have_python_mako = xyes ; then :
15316    enable_doctool=yes
15317 elif  test x$enable_doctool = xauto && test x$have_python_mako = xno ; then :
15318    enable_doctool=no
15319 elif  test x$enable_doctool = xyes && test x$have_python_mako = xno ; then :
15320    as_fn_error $? "Python mako module not found" "$LINENO" 5
15321 fi
15322  if test x$enable_doctool != xno; then
15323   BUILD_DOCTOOL_TRUE=
15324   BUILD_DOCTOOL_FALSE='#'
15325 else
15326   BUILD_DOCTOOL_TRUE='#'
15327   BUILD_DOCTOOL_FALSE=
15328 fi
15329
15330
15331 # Glib documentation
15332
15333 GLIBSRC=
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib source directory to use for documentation" >&5
15335 $as_echo_n "checking for glib source directory to use for documentation... " >&6; }
15336
15337
15338 # Check whether --with-glib-src was given.
15339 if test "${with_glib_src+set}" = set; then :
15340   withval=$with_glib_src; GLIBSRC=$withval
15341
15342 fi
15343
15344  if test x"$GLIBSRC" != x; then
15345   WITH_GLIBSRC_TRUE=
15346   WITH_GLIBSRC_FALSE='#'
15347 else
15348   WITH_GLIBSRC_TRUE='#'
15349   WITH_GLIBSRC_FALSE=
15350 fi
15351
15352
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIBSRC" >&5
15354 $as_echo "$GLIBSRC" >&6; }
15355
15356 GI_HIDDEN_VISIBILITY_CFLAGS=""
15357 case "$host" in
15358   *-*-mingw*)
15359
15360 $as_echo "#define _GI_EXTERN __attribute__((visibility(\"default\"))) __declspec(dllexport) extern" >>confdefs.h
15361
15362     CFLAGS="${CFLAGS} -fvisibility=hidden"
15363     ;;
15364   *)
15365         SAVED_CFLAGS="${CFLAGS}"
15366     CFLAGS="-fvisibility=hidden"
15367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fvisibility=hidden compiler flag" >&5
15368 $as_echo_n "checking for -fvisibility=hidden compiler flag... " >&6; }
15369     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15370 /* end confdefs.h.  */
15371
15372 int
15373 main ()
15374 {
15375 int main (void) { return 0; }
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 if ac_fn_c_try_compile "$LINENO"; then :
15381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15382 $as_echo "yes" >&6; }
15383                    enable_fvisibility_hidden=yes
15384 else
15385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15386 $as_echo "no" >&6; }
15387                    enable_fvisibility_hidden=no
15388 fi
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390     CFLAGS="${SAVED_CFLAGS}"
15391
15392     if test "${enable_fvisibility_hidden}" = "yes"; then :
15393
15394
15395 $as_echo "#define _GI_EXTERN __attribute__((visibility(\"default\"))) extern" >>confdefs.h
15396
15397       GI_HIDDEN_VISIBILITY_CFLAGS="-fvisibility=hidden"
15398
15399 fi
15400     ;;
15401 esac
15402
15403
15404 # Check whether --enable-Bsymbolic was given.
15405 if test "${enable_Bsymbolic+set}" = set; then :
15406   enableval=$enable_Bsymbolic;
15407 else
15408   SAVED_LDFLAGS="${LDFLAGS}"
15409                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker flag" >&5
15410 $as_echo_n "checking for -Bsymbolic-functions linker flag... " >&6; }
15411                LDFLAGS=-Wl,-Bsymbolic-functions
15412                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h.  */
15414
15415 int
15416 main ()
15417 {
15418 int main (void) { return 0; }
15419   ;
15420   return 0;
15421 }
15422 _ACEOF
15423 if ac_fn_c_try_link "$LINENO"; then :
15424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15425 $as_echo "yes" >&6; }
15426                                enable_Bsymbolic=yes
15427 else
15428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15429 $as_echo "no" >&6; }
15430                                enable_Bsymbolic=no
15431 fi
15432 rm -f core conftest.err conftest.$ac_objext \
15433     conftest$ac_exeext conftest.$ac_ext
15434                LDFLAGS="${SAVED_LDFLAGS}"
15435 fi
15436
15437
15438 if test "x${enable_Bsymbolic}" = "xyes"; then
15439   EXTRA_LINK_FLAGS=-Wl,-Bsymbolic-functions
15440 fi
15441
15442
15443
15444 ac_config_files="$ac_config_files Makefile tests/Makefile tests/offsets/Makefile tests/scanner/Makefile tests/scanner/annotationparser/Makefile tests/repository/Makefile tests/warn/Makefile docs/Makefile docs/reference/Makefile docs/reference/version.xml 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/vs9/gi-version-paths.vsprops build/win32/vs10/Makefile build/win32/vs10/gi-version-paths.props build/win32/vs11/Makefile build/win32/vs12/Makefile build/win32/vs14/Makefile"
15445
15446 cat >confcache <<\_ACEOF
15447 # This file is a shell script that caches the results of configure
15448 # tests run on this system so they can be shared between configure
15449 # scripts and configure runs, see configure's option --config-cache.
15450 # It is not useful on other systems.  If it contains results you don't
15451 # want to keep, you may remove or edit it.
15452 #
15453 # config.status only pays attention to the cache file if you give it
15454 # the --recheck option to rerun configure.
15455 #
15456 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15457 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15458 # following values.
15459
15460 _ACEOF
15461
15462 # The following way of writing the cache mishandles newlines in values,
15463 # but we know of no workaround that is simple, portable, and efficient.
15464 # So, we kill variables containing newlines.
15465 # Ultrix sh set writes to stderr and can't be redirected directly,
15466 # and sets the high bit in the cache file unless we assign to the vars.
15467 (
15468   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15469     eval ac_val=\$$ac_var
15470     case $ac_val in #(
15471     *${as_nl}*)
15472       case $ac_var in #(
15473       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15474 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15475       esac
15476       case $ac_var in #(
15477       _ | IFS | as_nl) ;; #(
15478       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15479       *) { eval $ac_var=; unset $ac_var;} ;;
15480       esac ;;
15481     esac
15482   done
15483
15484   (set) 2>&1 |
15485     case $as_nl`(ac_space=' '; set) 2>&1` in #(
15486     *${as_nl}ac_space=\ *)
15487       # `set' does not quote correctly, so add quotes: double-quote
15488       # substitution turns \\\\ into \\, and sed turns \\ into \.
15489       sed -n \
15490         "s/'/'\\\\''/g;
15491           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15492       ;; #(
15493     *)
15494       # `set' quotes correctly as required by POSIX, so do not add quotes.
15495       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15496       ;;
15497     esac |
15498     sort
15499 ) |
15500   sed '
15501      /^ac_cv_env_/b end
15502      t clear
15503      :clear
15504      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15505      t end
15506      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15507      :end' >>confcache
15508 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15509   if test -w "$cache_file"; then
15510     if test "x$cache_file" != "x/dev/null"; then
15511       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15512 $as_echo "$as_me: updating cache $cache_file" >&6;}
15513       if test ! -f "$cache_file" || test -h "$cache_file"; then
15514         cat confcache >"$cache_file"
15515       else
15516         case $cache_file in #(
15517         */* | ?:*)
15518           mv -f confcache "$cache_file"$$ &&
15519           mv -f "$cache_file"$$ "$cache_file" ;; #(
15520         *)
15521           mv -f confcache "$cache_file" ;;
15522         esac
15523       fi
15524     fi
15525   else
15526     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15527 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15528   fi
15529 fi
15530 rm -f confcache
15531
15532 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15533 # Let make expand exec_prefix.
15534 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15535
15536 DEFS=-DHAVE_CONFIG_H
15537
15538 ac_libobjs=
15539 ac_ltlibobjs=
15540 U=
15541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15542   # 1. Remove the extension, and $U if already installed.
15543   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15544   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15545   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15546   #    will be set to the directory where LIBOBJS objects are built.
15547   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15548   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15549 done
15550 LIBOBJS=$ac_libobjs
15551
15552 LTLIBOBJS=$ac_ltlibobjs
15553
15554
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15556 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15557    if test -n "$am_sleep_pid"; then
15558      # Hide warnings about reused PIDs.
15559      wait $am_sleep_pid 2>/dev/null
15560    fi
15561    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15562 $as_echo "done" >&6; }
15563  if test -n "$EXEEXT"; then
15564   am__EXEEXT_TRUE=
15565   am__EXEEXT_FALSE='#'
15566 else
15567   am__EXEEXT_TRUE='#'
15568   am__EXEEXT_FALSE=
15569 fi
15570
15571 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15572   as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15574 fi
15575 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15576   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15578 fi
15579 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15580   as_fn_error $? "conditional \"AMDEP\" was never defined.
15581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15582 fi
15583 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15584   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15586 fi
15587 if test -z "${HAVE_GIO_UNIX_TRUE}" && test -z "${HAVE_GIO_UNIX_FALSE}"; then
15588   as_fn_error $? "conditional \"HAVE_GIO_UNIX\" was never defined.
15589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15590 fi
15591 if test -z "${HAVE_CAIRO_TRUE}" && test -z "${HAVE_CAIRO_FALSE}"; then
15592   as_fn_error $? "conditional \"HAVE_CAIRO\" was never defined.
15593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15594 fi
15595 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
15596   as_fn_error $? "conditional \"HAVE_GTK_DOC\" was never defined.
15597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15598 fi
15599 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
15600   as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined.
15601 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15602 fi
15603 if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
15604   as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
15605 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15606 fi
15607 if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
15608   as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
15609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15610 fi
15611 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
15612   as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
15613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15614 fi
15615 if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
15616   as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined.
15617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15618 fi
15619 if test -z "${BUILD_DOCTOOL_TRUE}" && test -z "${BUILD_DOCTOOL_FALSE}"; then
15620   as_fn_error $? "conditional \"BUILD_DOCTOOL\" was never defined.
15621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15622 fi
15623 if test -z "${WITH_GLIBSRC_TRUE}" && test -z "${WITH_GLIBSRC_FALSE}"; then
15624   as_fn_error $? "conditional \"WITH_GLIBSRC\" was never defined.
15625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15626 fi
15627
15628 : "${CONFIG_STATUS=./config.status}"
15629 ac_write_fail=0
15630 ac_clean_files_save=$ac_clean_files
15631 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15633 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15634 as_write_fail=0
15635 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15636 #! $SHELL
15637 # Generated by $as_me.
15638 # Run this file to recreate the current configuration.
15639 # Compiler output produced by configure, useful for debugging
15640 # configure, is in config.log if it exists.
15641
15642 debug=false
15643 ac_cs_recheck=false
15644 ac_cs_silent=false
15645
15646 SHELL=\${CONFIG_SHELL-$SHELL}
15647 export SHELL
15648 _ASEOF
15649 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15650 ## -------------------- ##
15651 ## M4sh Initialization. ##
15652 ## -------------------- ##
15653
15654 # Be more Bourne compatible
15655 DUALCASE=1; export DUALCASE # for MKS sh
15656 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15657   emulate sh
15658   NULLCMD=:
15659   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15660   # is contrary to our usage.  Disable this feature.
15661   alias -g '${1+"$@"}'='"$@"'
15662   setopt NO_GLOB_SUBST
15663 else
15664   case `(set -o) 2>/dev/null` in #(
15665   *posix*) :
15666     set -o posix ;; #(
15667   *) :
15668      ;;
15669 esac
15670 fi
15671
15672
15673 as_nl='
15674 '
15675 export as_nl
15676 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15677 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15678 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15679 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15680 # Prefer a ksh shell builtin over an external printf program on Solaris,
15681 # but without wasting forks for bash or zsh.
15682 if test -z "$BASH_VERSION$ZSH_VERSION" \
15683     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15684   as_echo='print -r --'
15685   as_echo_n='print -rn --'
15686 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15687   as_echo='printf %s\n'
15688   as_echo_n='printf %s'
15689 else
15690   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15691     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15692     as_echo_n='/usr/ucb/echo -n'
15693   else
15694     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15695     as_echo_n_body='eval
15696       arg=$1;
15697       case $arg in #(
15698       *"$as_nl"*)
15699         expr "X$arg" : "X\\(.*\\)$as_nl";
15700         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15701       esac;
15702       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15703     '
15704     export as_echo_n_body
15705     as_echo_n='sh -c $as_echo_n_body as_echo'
15706   fi
15707   export as_echo_body
15708   as_echo='sh -c $as_echo_body as_echo'
15709 fi
15710
15711 # The user is always right.
15712 if test "${PATH_SEPARATOR+set}" != set; then
15713   PATH_SEPARATOR=:
15714   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15715     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15716       PATH_SEPARATOR=';'
15717   }
15718 fi
15719
15720
15721 # IFS
15722 # We need space, tab and new line, in precisely that order.  Quoting is
15723 # there to prevent editors from complaining about space-tab.
15724 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15725 # splitting by setting IFS to empty value.)
15726 IFS=" ""        $as_nl"
15727
15728 # Find who we are.  Look in the path if we contain no directory separator.
15729 as_myself=
15730 case $0 in #((
15731   *[\\/]* ) as_myself=$0 ;;
15732   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15733 for as_dir in $PATH
15734 do
15735   IFS=$as_save_IFS
15736   test -z "$as_dir" && as_dir=.
15737     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15738   done
15739 IFS=$as_save_IFS
15740
15741      ;;
15742 esac
15743 # We did not find ourselves, most probably we were run as `sh COMMAND'
15744 # in which case we are not to be found in the path.
15745 if test "x$as_myself" = x; then
15746   as_myself=$0
15747 fi
15748 if test ! -f "$as_myself"; then
15749   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15750   exit 1
15751 fi
15752
15753 # Unset variables that we do not need and which cause bugs (e.g. in
15754 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15755 # suppresses any "Segmentation fault" message there.  '((' could
15756 # trigger a bug in pdksh 5.2.14.
15757 for as_var in BASH_ENV ENV MAIL MAILPATH
15758 do eval test x\${$as_var+set} = xset \
15759   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15760 done
15761 PS1='$ '
15762 PS2='> '
15763 PS4='+ '
15764
15765 # NLS nuisances.
15766 LC_ALL=C
15767 export LC_ALL
15768 LANGUAGE=C
15769 export LANGUAGE
15770
15771 # CDPATH.
15772 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15773
15774
15775 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15776 # ----------------------------------------
15777 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15778 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15779 # script with STATUS, using 1 if that was 0.
15780 as_fn_error ()
15781 {
15782   as_status=$1; test $as_status -eq 0 && as_status=1
15783   if test "$4"; then
15784     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15785     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15786   fi
15787   $as_echo "$as_me: error: $2" >&2
15788   as_fn_exit $as_status
15789 } # as_fn_error
15790
15791
15792 # as_fn_set_status STATUS
15793 # -----------------------
15794 # Set $? to STATUS, without forking.
15795 as_fn_set_status ()
15796 {
15797   return $1
15798 } # as_fn_set_status
15799
15800 # as_fn_exit STATUS
15801 # -----------------
15802 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15803 as_fn_exit ()
15804 {
15805   set +e
15806   as_fn_set_status $1
15807   exit $1
15808 } # as_fn_exit
15809
15810 # as_fn_unset VAR
15811 # ---------------
15812 # Portably unset VAR.
15813 as_fn_unset ()
15814 {
15815   { eval $1=; unset $1;}
15816 }
15817 as_unset=as_fn_unset
15818 # as_fn_append VAR VALUE
15819 # ----------------------
15820 # Append the text in VALUE to the end of the definition contained in VAR. Take
15821 # advantage of any shell optimizations that allow amortized linear growth over
15822 # repeated appends, instead of the typical quadratic growth present in naive
15823 # implementations.
15824 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15825   eval 'as_fn_append ()
15826   {
15827     eval $1+=\$2
15828   }'
15829 else
15830   as_fn_append ()
15831   {
15832     eval $1=\$$1\$2
15833   }
15834 fi # as_fn_append
15835
15836 # as_fn_arith ARG...
15837 # ------------------
15838 # Perform arithmetic evaluation on the ARGs, and store the result in the
15839 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15840 # must be portable across $(()) and expr.
15841 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15842   eval 'as_fn_arith ()
15843   {
15844     as_val=$(( $* ))
15845   }'
15846 else
15847   as_fn_arith ()
15848   {
15849     as_val=`expr "$@" || test $? -eq 1`
15850   }
15851 fi # as_fn_arith
15852
15853
15854 if expr a : '\(a\)' >/dev/null 2>&1 &&
15855    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15856   as_expr=expr
15857 else
15858   as_expr=false
15859 fi
15860
15861 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15862   as_basename=basename
15863 else
15864   as_basename=false
15865 fi
15866
15867 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15868   as_dirname=dirname
15869 else
15870   as_dirname=false
15871 fi
15872
15873 as_me=`$as_basename -- "$0" ||
15874 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15875          X"$0" : 'X\(//\)$' \| \
15876          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15877 $as_echo X/"$0" |
15878     sed '/^.*\/\([^/][^/]*\)\/*$/{
15879             s//\1/
15880             q
15881           }
15882           /^X\/\(\/\/\)$/{
15883             s//\1/
15884             q
15885           }
15886           /^X\/\(\/\).*/{
15887             s//\1/
15888             q
15889           }
15890           s/.*/./; q'`
15891
15892 # Avoid depending upon Character Ranges.
15893 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15894 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15895 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15896 as_cr_digits='0123456789'
15897 as_cr_alnum=$as_cr_Letters$as_cr_digits
15898
15899 ECHO_C= ECHO_N= ECHO_T=
15900 case `echo -n x` in #(((((
15901 -n*)
15902   case `echo 'xy\c'` in
15903   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15904   xy)  ECHO_C='\c';;
15905   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15906        ECHO_T=' ';;
15907   esac;;
15908 *)
15909   ECHO_N='-n';;
15910 esac
15911
15912 rm -f conf$$ conf$$.exe conf$$.file
15913 if test -d conf$$.dir; then
15914   rm -f conf$$.dir/conf$$.file
15915 else
15916   rm -f conf$$.dir
15917   mkdir conf$$.dir 2>/dev/null
15918 fi
15919 if (echo >conf$$.file) 2>/dev/null; then
15920   if ln -s conf$$.file conf$$ 2>/dev/null; then
15921     as_ln_s='ln -s'
15922     # ... but there are two gotchas:
15923     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15924     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15925     # In both cases, we have to default to `cp -pR'.
15926     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15927       as_ln_s='cp -pR'
15928   elif ln conf$$.file conf$$ 2>/dev/null; then
15929     as_ln_s=ln
15930   else
15931     as_ln_s='cp -pR'
15932   fi
15933 else
15934   as_ln_s='cp -pR'
15935 fi
15936 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15937 rmdir conf$$.dir 2>/dev/null
15938
15939
15940 # as_fn_mkdir_p
15941 # -------------
15942 # Create "$as_dir" as a directory, including parents if necessary.
15943 as_fn_mkdir_p ()
15944 {
15945
15946   case $as_dir in #(
15947   -*) as_dir=./$as_dir;;
15948   esac
15949   test -d "$as_dir" || eval $as_mkdir_p || {
15950     as_dirs=
15951     while :; do
15952       case $as_dir in #(
15953       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15954       *) as_qdir=$as_dir;;
15955       esac
15956       as_dirs="'$as_qdir' $as_dirs"
15957       as_dir=`$as_dirname -- "$as_dir" ||
15958 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15959          X"$as_dir" : 'X\(//\)[^/]' \| \
15960          X"$as_dir" : 'X\(//\)$' \| \
15961          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15962 $as_echo X"$as_dir" |
15963     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15964             s//\1/
15965             q
15966           }
15967           /^X\(\/\/\)[^/].*/{
15968             s//\1/
15969             q
15970           }
15971           /^X\(\/\/\)$/{
15972             s//\1/
15973             q
15974           }
15975           /^X\(\/\).*/{
15976             s//\1/
15977             q
15978           }
15979           s/.*/./; q'`
15980       test -d "$as_dir" && break
15981     done
15982     test -z "$as_dirs" || eval "mkdir $as_dirs"
15983   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15984
15985
15986 } # as_fn_mkdir_p
15987 if mkdir -p . 2>/dev/null; then
15988   as_mkdir_p='mkdir -p "$as_dir"'
15989 else
15990   test -d ./-p && rmdir ./-p
15991   as_mkdir_p=false
15992 fi
15993
15994
15995 # as_fn_executable_p FILE
15996 # -----------------------
15997 # Test if FILE is an executable regular file.
15998 as_fn_executable_p ()
15999 {
16000   test -f "$1" && test -x "$1"
16001 } # as_fn_executable_p
16002 as_test_x='test -x'
16003 as_executable_p=as_fn_executable_p
16004
16005 # Sed expression to map a string onto a valid CPP name.
16006 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16007
16008 # Sed expression to map a string onto a valid variable name.
16009 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16010
16011
16012 exec 6>&1
16013 ## ----------------------------------- ##
16014 ## Main body of $CONFIG_STATUS script. ##
16015 ## ----------------------------------- ##
16016 _ASEOF
16017 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16018
16019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16020 # Save the log message, to keep $0 and so on meaningful, and to
16021 # report actual input values of CONFIG_FILES etc. instead of their
16022 # values after options handling.
16023 ac_log="
16024 This file was extended by gobject-introspection $as_me 1.49.1, which was
16025 generated by GNU Autoconf 2.69.  Invocation command line was
16026
16027   CONFIG_FILES    = $CONFIG_FILES
16028   CONFIG_HEADERS  = $CONFIG_HEADERS
16029   CONFIG_LINKS    = $CONFIG_LINKS
16030   CONFIG_COMMANDS = $CONFIG_COMMANDS
16031   $ $0 $@
16032
16033 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16034 "
16035
16036 _ACEOF
16037
16038 case $ac_config_files in *"
16039 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16040 esac
16041
16042 case $ac_config_headers in *"
16043 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16044 esac
16045
16046
16047 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16048 # Files that config.status was made for.
16049 config_files="$ac_config_files"
16050 config_headers="$ac_config_headers"
16051 config_commands="$ac_config_commands"
16052
16053 _ACEOF
16054
16055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16056 ac_cs_usage="\
16057 \`$as_me' instantiates files and other configuration actions
16058 from templates according to the current configuration.  Unless the files
16059 and actions are specified as TAGs, all are instantiated by default.
16060
16061 Usage: $0 [OPTION]... [TAG]...
16062
16063   -h, --help       print this help, then exit
16064   -V, --version    print version number and configuration settings, then exit
16065       --config     print configuration, then exit
16066   -q, --quiet, --silent
16067                    do not print progress messages
16068   -d, --debug      don't remove temporary files
16069       --recheck    update $as_me by reconfiguring in the same conditions
16070       --file=FILE[:TEMPLATE]
16071                    instantiate the configuration file FILE
16072       --header=FILE[:TEMPLATE]
16073                    instantiate the configuration header FILE
16074
16075 Configuration files:
16076 $config_files
16077
16078 Configuration headers:
16079 $config_headers
16080
16081 Configuration commands:
16082 $config_commands
16083
16084 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=gobject-introspection>."
16085
16086 _ACEOF
16087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16088 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16089 ac_cs_version="\\
16090 gobject-introspection config.status 1.49.1
16091 configured by $0, generated by GNU Autoconf 2.69,
16092   with options \\"\$ac_cs_config\\"
16093
16094 Copyright (C) 2012 Free Software Foundation, Inc.
16095 This config.status script is free software; the Free Software Foundation
16096 gives unlimited permission to copy, distribute and modify it."
16097
16098 ac_pwd='$ac_pwd'
16099 srcdir='$srcdir'
16100 INSTALL='$INSTALL'
16101 MKDIR_P='$MKDIR_P'
16102 AWK='$AWK'
16103 test -n "\$AWK" || AWK=awk
16104 _ACEOF
16105
16106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16107 # The default lists apply if the user does not specify any file.
16108 ac_need_defaults=:
16109 while test $# != 0
16110 do
16111   case $1 in
16112   --*=?*)
16113     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16114     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16115     ac_shift=:
16116     ;;
16117   --*=)
16118     ac_option=`expr "X$1" : 'X\([^=]*\)='`
16119     ac_optarg=
16120     ac_shift=:
16121     ;;
16122   *)
16123     ac_option=$1
16124     ac_optarg=$2
16125     ac_shift=shift
16126     ;;
16127   esac
16128
16129   case $ac_option in
16130   # Handling of the options.
16131   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16132     ac_cs_recheck=: ;;
16133   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16134     $as_echo "$ac_cs_version"; exit ;;
16135   --config | --confi | --conf | --con | --co | --c )
16136     $as_echo "$ac_cs_config"; exit ;;
16137   --debug | --debu | --deb | --de | --d | -d )
16138     debug=: ;;
16139   --file | --fil | --fi | --f )
16140     $ac_shift
16141     case $ac_optarg in
16142     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16143     '') as_fn_error $? "missing file argument" ;;
16144     esac
16145     as_fn_append CONFIG_FILES " '$ac_optarg'"
16146     ac_need_defaults=false;;
16147   --header | --heade | --head | --hea )
16148     $ac_shift
16149     case $ac_optarg in
16150     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16151     esac
16152     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16153     ac_need_defaults=false;;
16154   --he | --h)
16155     # Conflict between --help and --header
16156     as_fn_error $? "ambiguous option: \`$1'
16157 Try \`$0 --help' for more information.";;
16158   --help | --hel | -h )
16159     $as_echo "$ac_cs_usage"; exit ;;
16160   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16161   | -silent | --silent | --silen | --sile | --sil | --si | --s)
16162     ac_cs_silent=: ;;
16163
16164   # This is an error.
16165   -*) as_fn_error $? "unrecognized option: \`$1'
16166 Try \`$0 --help' for more information." ;;
16167
16168   *) as_fn_append ac_config_targets " $1"
16169      ac_need_defaults=false ;;
16170
16171   esac
16172   shift
16173 done
16174
16175 ac_configure_extra_args=
16176
16177 if $ac_cs_silent; then
16178   exec 6>/dev/null
16179   ac_configure_extra_args="$ac_configure_extra_args --silent"
16180 fi
16181
16182 _ACEOF
16183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16184 if \$ac_cs_recheck; then
16185   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16186   shift
16187   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16188   CONFIG_SHELL='$SHELL'
16189   export CONFIG_SHELL
16190   exec "\$@"
16191 fi
16192
16193 _ACEOF
16194 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16195 exec 5>>config.log
16196 {
16197   echo
16198   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16199 ## Running $as_me. ##
16200 _ASBOX
16201   $as_echo "$ac_log"
16202 } >&5
16203
16204 _ACEOF
16205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16206 #
16207 # INIT-COMMANDS
16208 #
16209 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16210
16211
16212 # The HP-UX ksh and POSIX shell print the target directory to stdout
16213 # if CDPATH is set.
16214 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16215
16216 sed_quote_subst='$sed_quote_subst'
16217 double_quote_subst='$double_quote_subst'
16218 delay_variable_subst='$delay_variable_subst'
16219 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16220 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16221 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16222 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16223 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16224 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16225 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16226 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16227 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16228 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16229 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16230 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16231 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16232 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16233 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16234 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16235 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16236 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16237 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16238 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16239 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16240 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16241 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16242 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16243 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16244 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16245 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16246 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16247 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16248 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16249 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16250 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16251 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16252 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16253 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16254 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16255 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16256 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16257 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16258 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16259 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16260 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16261 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16262 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16263 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16264 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16265 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16266 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16267 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16268 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16269 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16270 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16271 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16272 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16273 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16274 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16275 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16276 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16277 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"`'
16278 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16279 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16280 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16281 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16282 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16283 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16284 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16285 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16286 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16287 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16288 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16289 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16290 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16291 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16292 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16293 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16294 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16295 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16296 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16297 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16298 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16299 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16300 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16301 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16302 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16303 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16304 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16305 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16306 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16307 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16308 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16309 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16310 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16311 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16312 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16313 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16314 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16315 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16316 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16317 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16318 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16319 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16320 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16321 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16322 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16323 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16324 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16325 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16326 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16327 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16328 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16329 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16330 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16331 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16332 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16333 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16334 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16335 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16336 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16337 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16338 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16339 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16340 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16341 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16342 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16343 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16344 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16345 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16346 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16347 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16348 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16349 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16350 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16351 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16352 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16353 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16354
16355 LTCC='$LTCC'
16356 LTCFLAGS='$LTCFLAGS'
16357 compiler='$compiler_DEFAULT'
16358
16359 # A function that is used when there is no print builtin or printf.
16360 func_fallback_echo ()
16361 {
16362   eval 'cat <<_LTECHO_EOF
16363 \$1
16364 _LTECHO_EOF'
16365 }
16366
16367 # Quote evaled strings.
16368 for var in SHELL \
16369 ECHO \
16370 PATH_SEPARATOR \
16371 SED \
16372 GREP \
16373 EGREP \
16374 FGREP \
16375 LD \
16376 NM \
16377 LN_S \
16378 lt_SP2NL \
16379 lt_NL2SP \
16380 reload_flag \
16381 OBJDUMP \
16382 deplibs_check_method \
16383 file_magic_cmd \
16384 file_magic_glob \
16385 want_nocaseglob \
16386 DLLTOOL \
16387 sharedlib_from_linklib_cmd \
16388 AR \
16389 AR_FLAGS \
16390 archiver_list_spec \
16391 STRIP \
16392 RANLIB \
16393 CC \
16394 CFLAGS \
16395 compiler \
16396 lt_cv_sys_global_symbol_pipe \
16397 lt_cv_sys_global_symbol_to_cdecl \
16398 lt_cv_sys_global_symbol_to_import \
16399 lt_cv_sys_global_symbol_to_c_name_address \
16400 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16401 lt_cv_nm_interface \
16402 nm_file_list_spec \
16403 lt_cv_truncate_bin \
16404 lt_prog_compiler_no_builtin_flag \
16405 lt_prog_compiler_pic \
16406 lt_prog_compiler_wl \
16407 lt_prog_compiler_static \
16408 lt_cv_prog_compiler_c_o \
16409 need_locks \
16410 MANIFEST_TOOL \
16411 DSYMUTIL \
16412 NMEDIT \
16413 LIPO \
16414 OTOOL \
16415 OTOOL64 \
16416 shrext_cmds \
16417 export_dynamic_flag_spec \
16418 whole_archive_flag_spec \
16419 compiler_needs_object \
16420 with_gnu_ld \
16421 allow_undefined_flag \
16422 no_undefined_flag \
16423 hardcode_libdir_flag_spec \
16424 hardcode_libdir_separator \
16425 exclude_expsyms \
16426 include_expsyms \
16427 file_list_spec \
16428 variables_saved_for_relink \
16429 libname_spec \
16430 library_names_spec \
16431 soname_spec \
16432 install_override_mode \
16433 finish_eval \
16434 old_striplib \
16435 striplib; do
16436     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16437     *[\\\\\\\`\\"\\\$]*)
16438       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16439       ;;
16440     *)
16441       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16442       ;;
16443     esac
16444 done
16445
16446 # Double-quote double-evaled strings.
16447 for var in reload_cmds \
16448 old_postinstall_cmds \
16449 old_postuninstall_cmds \
16450 old_archive_cmds \
16451 extract_expsyms_cmds \
16452 old_archive_from_new_cmds \
16453 old_archive_from_expsyms_cmds \
16454 archive_cmds \
16455 archive_expsym_cmds \
16456 module_cmds \
16457 module_expsym_cmds \
16458 export_symbols_cmds \
16459 prelink_cmds \
16460 postlink_cmds \
16461 postinstall_cmds \
16462 postuninstall_cmds \
16463 finish_cmds \
16464 sys_lib_search_path_spec \
16465 configure_time_dlsearch_path \
16466 configure_time_lt_sys_library_path; do
16467     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16468     *[\\\\\\\`\\"\\\$]*)
16469       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16470       ;;
16471     *)
16472       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16473       ;;
16474     esac
16475 done
16476
16477 ac_aux_dir='$ac_aux_dir'
16478
16479 # See if we are running on zsh, and set the options that allow our
16480 # commands through without removal of \ escapes INIT.
16481 if test -n "\${ZSH_VERSION+set}"; then
16482    setopt NO_GLOB_SUBST
16483 fi
16484
16485
16486     PACKAGE='$PACKAGE'
16487     VERSION='$VERSION'
16488     RM='$RM'
16489     ofile='$ofile'
16490
16491
16492
16493
16494 _ACEOF
16495
16496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16497
16498 # Handling of arguments.
16499 for ac_config_target in $ac_config_targets
16500 do
16501   case $ac_config_target in
16502     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16503     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16504     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16505     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16506     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
16507     "tests/offsets/Makefile") CONFIG_FILES="$CONFIG_FILES tests/offsets/Makefile" ;;
16508     "tests/scanner/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/Makefile" ;;
16509     "tests/scanner/annotationparser/Makefile") CONFIG_FILES="$CONFIG_FILES tests/scanner/annotationparser/Makefile" ;;
16510     "tests/repository/Makefile") CONFIG_FILES="$CONFIG_FILES tests/repository/Makefile" ;;
16511     "tests/warn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/warn/Makefile" ;;
16512     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
16513     "docs/reference/Makefile") CONFIG_FILES="$CONFIG_FILES docs/reference/Makefile" ;;
16514     "docs/reference/version.xml") CONFIG_FILES="$CONFIG_FILES docs/reference/version.xml" ;;
16515     "gobject-introspection-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-1.0.pc" ;;
16516     "gobject-introspection-no-export-1.0.pc") CONFIG_FILES="$CONFIG_FILES gobject-introspection-no-export-1.0.pc" ;;
16517     "config.h.win32") CONFIG_FILES="$CONFIG_FILES config.h.win32" ;;
16518     "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
16519     "build/win32/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/Makefile" ;;
16520     "build/win32/vs9/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/Makefile" ;;
16521     "build/win32/vs9/gi-version-paths.vsprops") CONFIG_FILES="$CONFIG_FILES build/win32/vs9/gi-version-paths.vsprops" ;;
16522     "build/win32/vs10/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/Makefile" ;;
16523     "build/win32/vs10/gi-version-paths.props") CONFIG_FILES="$CONFIG_FILES build/win32/vs10/gi-version-paths.props" ;;
16524     "build/win32/vs11/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs11/Makefile" ;;
16525     "build/win32/vs12/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs12/Makefile" ;;
16526     "build/win32/vs14/Makefile") CONFIG_FILES="$CONFIG_FILES build/win32/vs14/Makefile" ;;
16527
16528   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16529   esac
16530 done
16531
16532
16533 # If the user did not use the arguments to specify the items to instantiate,
16534 # then the envvar interface is used.  Set only those that are not.
16535 # We use the long form for the default assignment because of an extremely
16536 # bizarre bug on SunOS 4.1.3.
16537 if $ac_need_defaults; then
16538   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16539   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16540   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16541 fi
16542
16543 # Have a temporary directory for convenience.  Make it in the build tree
16544 # simply because there is no reason against having it here, and in addition,
16545 # creating and moving files from /tmp can sometimes cause problems.
16546 # Hook for its removal unless debugging.
16547 # Note that there is a small window in which the directory will not be cleaned:
16548 # after its creation but before its name has been assigned to `$tmp'.
16549 $debug ||
16550 {
16551   tmp= ac_tmp=
16552   trap 'exit_status=$?
16553   : "${ac_tmp:=$tmp}"
16554   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16555 ' 0
16556   trap 'as_fn_exit 1' 1 2 13 15
16557 }
16558 # Create a (secure) tmp directory for tmp files.
16559
16560 {
16561   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16562   test -d "$tmp"
16563 }  ||
16564 {
16565   tmp=./conf$$-$RANDOM
16566   (umask 077 && mkdir "$tmp")
16567 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16568 ac_tmp=$tmp
16569
16570 # Set up the scripts for CONFIG_FILES section.
16571 # No need to generate them if there are no CONFIG_FILES.
16572 # This happens for instance with `./config.status config.h'.
16573 if test -n "$CONFIG_FILES"; then
16574
16575
16576 ac_cr=`echo X | tr X '\015'`
16577 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16578 # But we know of no other shell where ac_cr would be empty at this
16579 # point, so we can use a bashism as a fallback.
16580 if test "x$ac_cr" = x; then
16581   eval ac_cr=\$\'\\r\'
16582 fi
16583 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16584 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16585   ac_cs_awk_cr='\\r'
16586 else
16587   ac_cs_awk_cr=$ac_cr
16588 fi
16589
16590 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16591 _ACEOF
16592
16593
16594 {
16595   echo "cat >conf$$subs.awk <<_ACEOF" &&
16596   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16597   echo "_ACEOF"
16598 } >conf$$subs.sh ||
16599   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16600 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16601 ac_delim='%!_!# '
16602 for ac_last_try in false false false false false :; do
16603   . ./conf$$subs.sh ||
16604     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16605
16606   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16607   if test $ac_delim_n = $ac_delim_num; then
16608     break
16609   elif $ac_last_try; then
16610     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16611   else
16612     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16613   fi
16614 done
16615 rm -f conf$$subs.sh
16616
16617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16618 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16619 _ACEOF
16620 sed -n '
16621 h
16622 s/^/S["/; s/!.*/"]=/
16623 p
16624 g
16625 s/^[^!]*!//
16626 :repl
16627 t repl
16628 s/'"$ac_delim"'$//
16629 t delim
16630 :nl
16631 h
16632 s/\(.\{148\}\)..*/\1/
16633 t more1
16634 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16635 p
16636 n
16637 b repl
16638 :more1
16639 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16640 p
16641 g
16642 s/.\{148\}//
16643 t nl
16644 :delim
16645 h
16646 s/\(.\{148\}\)..*/\1/
16647 t more2
16648 s/["\\]/\\&/g; s/^/"/; s/$/"/
16649 p
16650 b
16651 :more2
16652 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16653 p
16654 g
16655 s/.\{148\}//
16656 t delim
16657 ' <conf$$subs.awk | sed '
16658 /^[^""]/{
16659   N
16660   s/\n//
16661 }
16662 ' >>$CONFIG_STATUS || ac_write_fail=1
16663 rm -f conf$$subs.awk
16664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16665 _ACAWK
16666 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16667   for (key in S) S_is_set[key] = 1
16668   FS = "\a"
16669
16670 }
16671 {
16672   line = $ 0
16673   nfields = split(line, field, "@")
16674   substed = 0
16675   len = length(field[1])
16676   for (i = 2; i < nfields; i++) {
16677     key = field[i]
16678     keylen = length(key)
16679     if (S_is_set[key]) {
16680       value = S[key]
16681       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16682       len += length(value) + length(field[++i])
16683       substed = 1
16684     } else
16685       len += 1 + keylen
16686   }
16687
16688   print line
16689 }
16690
16691 _ACAWK
16692 _ACEOF
16693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16694 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16695   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16696 else
16697   cat
16698 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16699   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16700 _ACEOF
16701
16702 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16703 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16704 # trailing colons and then remove the whole line if VPATH becomes empty
16705 # (actually we leave an empty line to preserve line numbers).
16706 if test "x$srcdir" = x.; then
16707   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16708 h
16709 s///
16710 s/^/:/
16711 s/[      ]*$/:/
16712 s/:\$(srcdir):/:/g
16713 s/:\${srcdir}:/:/g
16714 s/:@srcdir@:/:/g
16715 s/^:*//
16716 s/:*$//
16717 x
16718 s/\(=[   ]*\).*/\1/
16719 G
16720 s/\n//
16721 s/^[^=]*=[       ]*$//
16722 }'
16723 fi
16724
16725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16726 fi # test -n "$CONFIG_FILES"
16727
16728 # Set up the scripts for CONFIG_HEADERS section.
16729 # No need to generate them if there are no CONFIG_HEADERS.
16730 # This happens for instance with `./config.status Makefile'.
16731 if test -n "$CONFIG_HEADERS"; then
16732 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16733 BEGIN {
16734 _ACEOF
16735
16736 # Transform confdefs.h into an awk script `defines.awk', embedded as
16737 # here-document in config.status, that substitutes the proper values into
16738 # config.h.in to produce config.h.
16739
16740 # Create a delimiter string that does not exist in confdefs.h, to ease
16741 # handling of long lines.
16742 ac_delim='%!_!# '
16743 for ac_last_try in false false :; do
16744   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16745   if test -z "$ac_tt"; then
16746     break
16747   elif $ac_last_try; then
16748     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16749   else
16750     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16751   fi
16752 done
16753
16754 # For the awk script, D is an array of macro values keyed by name,
16755 # likewise P contains macro parameters if any.  Preserve backslash
16756 # newline sequences.
16757
16758 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16759 sed -n '
16760 s/.\{148\}/&'"$ac_delim"'/g
16761 t rset
16762 :rset
16763 s/^[     ]*#[    ]*define[       ][      ]*/ /
16764 t def
16765 d
16766 :def
16767 s/\\$//
16768 t bsnl
16769 s/["\\]/\\&/g
16770 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16771 D["\1"]=" \3"/p
16772 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16773 d
16774 :bsnl
16775 s/["\\]/\\&/g
16776 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16777 D["\1"]=" \3\\\\\\n"\\/p
16778 t cont
16779 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16780 t cont
16781 d
16782 :cont
16783 n
16784 s/.\{148\}/&'"$ac_delim"'/g
16785 t clear
16786 :clear
16787 s/\\$//
16788 t bsnlc
16789 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16790 d
16791 :bsnlc
16792 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16793 b cont
16794 ' <confdefs.h | sed '
16795 s/'"$ac_delim"'/"\\\
16796 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16797
16798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16799   for (key in D) D_is_set[key] = 1
16800   FS = "\a"
16801 }
16802 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16803   line = \$ 0
16804   split(line, arg, " ")
16805   if (arg[1] == "#") {
16806     defundef = arg[2]
16807     mac1 = arg[3]
16808   } else {
16809     defundef = substr(arg[1], 2)
16810     mac1 = arg[2]
16811   }
16812   split(mac1, mac2, "(") #)
16813   macro = mac2[1]
16814   prefix = substr(line, 1, index(line, defundef) - 1)
16815   if (D_is_set[macro]) {
16816     # Preserve the white space surrounding the "#".
16817     print prefix "define", macro P[macro] D[macro]
16818     next
16819   } else {
16820     # Replace #undef with comments.  This is necessary, for example,
16821     # in the case of _POSIX_SOURCE, which is predefined and required
16822     # on some systems where configure will not decide to define it.
16823     if (defundef == "undef") {
16824       print "/*", prefix defundef, macro, "*/"
16825       next
16826     }
16827   }
16828 }
16829 { print }
16830 _ACAWK
16831 _ACEOF
16832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16833   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16834 fi # test -n "$CONFIG_HEADERS"
16835
16836
16837 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16838 shift
16839 for ac_tag
16840 do
16841   case $ac_tag in
16842   :[FHLC]) ac_mode=$ac_tag; continue;;
16843   esac
16844   case $ac_mode$ac_tag in
16845   :[FHL]*:*);;
16846   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16847   :[FH]-) ac_tag=-:-;;
16848   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16849   esac
16850   ac_save_IFS=$IFS
16851   IFS=:
16852   set x $ac_tag
16853   IFS=$ac_save_IFS
16854   shift
16855   ac_file=$1
16856   shift
16857
16858   case $ac_mode in
16859   :L) ac_source=$1;;
16860   :[FH])
16861     ac_file_inputs=
16862     for ac_f
16863     do
16864       case $ac_f in
16865       -) ac_f="$ac_tmp/stdin";;
16866       *) # Look for the file first in the build tree, then in the source tree
16867          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16868          # because $ac_f cannot contain `:'.
16869          test -f "$ac_f" ||
16870            case $ac_f in
16871            [\\/$]*) false;;
16872            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16873            esac ||
16874            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16875       esac
16876       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16877       as_fn_append ac_file_inputs " '$ac_f'"
16878     done
16879
16880     # Let's still pretend it is `configure' which instantiates (i.e., don't
16881     # use $as_me), people would be surprised to read:
16882     #    /* config.h.  Generated by config.status.  */
16883     configure_input='Generated from '`
16884           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16885         `' by configure.'
16886     if test x"$ac_file" != x-; then
16887       configure_input="$ac_file.  $configure_input"
16888       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16889 $as_echo "$as_me: creating $ac_file" >&6;}
16890     fi
16891     # Neutralize special characters interpreted by sed in replacement strings.
16892     case $configure_input in #(
16893     *\&* | *\|* | *\\* )
16894        ac_sed_conf_input=`$as_echo "$configure_input" |
16895        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16896     *) ac_sed_conf_input=$configure_input;;
16897     esac
16898
16899     case $ac_tag in
16900     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16901       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16902     esac
16903     ;;
16904   esac
16905
16906   ac_dir=`$as_dirname -- "$ac_file" ||
16907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16908          X"$ac_file" : 'X\(//\)[^/]' \| \
16909          X"$ac_file" : 'X\(//\)$' \| \
16910          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16911 $as_echo X"$ac_file" |
16912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16913             s//\1/
16914             q
16915           }
16916           /^X\(\/\/\)[^/].*/{
16917             s//\1/
16918             q
16919           }
16920           /^X\(\/\/\)$/{
16921             s//\1/
16922             q
16923           }
16924           /^X\(\/\).*/{
16925             s//\1/
16926             q
16927           }
16928           s/.*/./; q'`
16929   as_dir="$ac_dir"; as_fn_mkdir_p
16930   ac_builddir=.
16931
16932 case "$ac_dir" in
16933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16934 *)
16935   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16936   # A ".." for each directory in $ac_dir_suffix.
16937   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16938   case $ac_top_builddir_sub in
16939   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16940   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16941   esac ;;
16942 esac
16943 ac_abs_top_builddir=$ac_pwd
16944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16945 # for backward compatibility:
16946 ac_top_builddir=$ac_top_build_prefix
16947
16948 case $srcdir in
16949   .)  # We are building in place.
16950     ac_srcdir=.
16951     ac_top_srcdir=$ac_top_builddir_sub
16952     ac_abs_top_srcdir=$ac_pwd ;;
16953   [\\/]* | ?:[\\/]* )  # Absolute name.
16954     ac_srcdir=$srcdir$ac_dir_suffix;
16955     ac_top_srcdir=$srcdir
16956     ac_abs_top_srcdir=$srcdir ;;
16957   *) # Relative name.
16958     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16959     ac_top_srcdir=$ac_top_build_prefix$srcdir
16960     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16961 esac
16962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16963
16964
16965   case $ac_mode in
16966   :F)
16967   #
16968   # CONFIG_FILE
16969   #
16970
16971   case $INSTALL in
16972   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16973   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16974   esac
16975   ac_MKDIR_P=$MKDIR_P
16976   case $MKDIR_P in
16977   [\\/$]* | ?:[\\/]* ) ;;
16978   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16979   esac
16980 _ACEOF
16981
16982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16983 # If the template does not know about datarootdir, expand it.
16984 # FIXME: This hack should be removed a few years after 2.60.
16985 ac_datarootdir_hack=; ac_datarootdir_seen=
16986 ac_sed_dataroot='
16987 /datarootdir/ {
16988   p
16989   q
16990 }
16991 /@datadir@/p
16992 /@docdir@/p
16993 /@infodir@/p
16994 /@localedir@/p
16995 /@mandir@/p'
16996 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16997 *datarootdir*) ac_datarootdir_seen=yes;;
16998 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16999   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17000 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17001 _ACEOF
17002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17003   ac_datarootdir_hack='
17004   s&@datadir@&$datadir&g
17005   s&@docdir@&$docdir&g
17006   s&@infodir@&$infodir&g
17007   s&@localedir@&$localedir&g
17008   s&@mandir@&$mandir&g
17009   s&\\\${datarootdir}&$datarootdir&g' ;;
17010 esac
17011 _ACEOF
17012
17013 # Neutralize VPATH when `$srcdir' = `.'.
17014 # Shell code in configure.ac might set extrasub.
17015 # FIXME: do we really want to maintain this feature?
17016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17017 ac_sed_extra="$ac_vpsub
17018 $extrasub
17019 _ACEOF
17020 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17021 :t
17022 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17023 s|@configure_input@|$ac_sed_conf_input|;t t
17024 s&@top_builddir@&$ac_top_builddir_sub&;t t
17025 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17026 s&@srcdir@&$ac_srcdir&;t t
17027 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17028 s&@top_srcdir@&$ac_top_srcdir&;t t
17029 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17030 s&@builddir@&$ac_builddir&;t t
17031 s&@abs_builddir@&$ac_abs_builddir&;t t
17032 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17033 s&@INSTALL@&$ac_INSTALL&;t t
17034 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17035 $ac_datarootdir_hack
17036 "
17037 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17038   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17039
17040 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17041   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17042   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17043       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17044   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17045 which seems to be undefined.  Please make sure it is defined" >&5
17046 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17047 which seems to be undefined.  Please make sure it is defined" >&2;}
17048
17049   rm -f "$ac_tmp/stdin"
17050   case $ac_file in
17051   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17052   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17053   esac \
17054   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17055  ;;
17056   :H)
17057   #
17058   # CONFIG_HEADER
17059   #
17060   if test x"$ac_file" != x-; then
17061     {
17062       $as_echo "/* $configure_input  */" \
17063       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17064     } >"$ac_tmp/config.h" \
17065       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17066     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17067       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17068 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17069     else
17070       rm -f "$ac_file"
17071       mv "$ac_tmp/config.h" "$ac_file" \
17072         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17073     fi
17074   else
17075     $as_echo "/* $configure_input  */" \
17076       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17077       || as_fn_error $? "could not create -" "$LINENO" 5
17078   fi
17079 # Compute "$ac_file"'s index in $config_headers.
17080 _am_arg="$ac_file"
17081 _am_stamp_count=1
17082 for _am_header in $config_headers :; do
17083   case $_am_header in
17084     $_am_arg | $_am_arg:* )
17085       break ;;
17086     * )
17087       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17088   esac
17089 done
17090 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17091 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17092          X"$_am_arg" : 'X\(//\)[^/]' \| \
17093          X"$_am_arg" : 'X\(//\)$' \| \
17094          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17095 $as_echo X"$_am_arg" |
17096     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17097             s//\1/
17098             q
17099           }
17100           /^X\(\/\/\)[^/].*/{
17101             s//\1/
17102             q
17103           }
17104           /^X\(\/\/\)$/{
17105             s//\1/
17106             q
17107           }
17108           /^X\(\/\).*/{
17109             s//\1/
17110             q
17111           }
17112           s/.*/./; q'`/stamp-h$_am_stamp_count
17113  ;;
17114
17115   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17116 $as_echo "$as_me: executing $ac_file commands" >&6;}
17117  ;;
17118   esac
17119
17120
17121   case $ac_file$ac_mode in
17122     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17123   # Older Autoconf quotes --file arguments for eval, but not when files
17124   # are listed without --file.  Let's play safe and only enable the eval
17125   # if we detect the quoting.
17126   case $CONFIG_FILES in
17127   *\'*) eval set x "$CONFIG_FILES" ;;
17128   *)   set x $CONFIG_FILES ;;
17129   esac
17130   shift
17131   for mf
17132   do
17133     # Strip MF so we end up with the name of the file.
17134     mf=`echo "$mf" | sed -e 's/:.*$//'`
17135     # Check whether this is an Automake generated Makefile or not.
17136     # We used to match only the files named 'Makefile.in', but
17137     # some people rename them; so instead we look at the file content.
17138     # Grep'ing the first line is not enough: some people post-process
17139     # each Makefile.in and add a new line on top of each file to say so.
17140     # Grep'ing the whole file is not good either: AIX grep has a line
17141     # limit of 2048, but all sed's we know have understand at least 4000.
17142     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17143       dirpart=`$as_dirname -- "$mf" ||
17144 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17145          X"$mf" : 'X\(//\)[^/]' \| \
17146          X"$mf" : 'X\(//\)$' \| \
17147          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17148 $as_echo X"$mf" |
17149     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17150             s//\1/
17151             q
17152           }
17153           /^X\(\/\/\)[^/].*/{
17154             s//\1/
17155             q
17156           }
17157           /^X\(\/\/\)$/{
17158             s//\1/
17159             q
17160           }
17161           /^X\(\/\).*/{
17162             s//\1/
17163             q
17164           }
17165           s/.*/./; q'`
17166     else
17167       continue
17168     fi
17169     # Extract the definition of DEPDIR, am__include, and am__quote
17170     # from the Makefile without running 'make'.
17171     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17172     test -z "$DEPDIR" && continue
17173     am__include=`sed -n 's/^am__include = //p' < "$mf"`
17174     test -z "$am__include" && continue
17175     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17176     # Find all dependency output files, they are included files with
17177     # $(DEPDIR) in their names.  We invoke sed twice because it is the
17178     # simplest approach to changing $(DEPDIR) to its actual value in the
17179     # expansion.
17180     for file in `sed -n "
17181       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17182          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17183       # Make sure the directory exists.
17184       test -f "$dirpart/$file" && continue
17185       fdir=`$as_dirname -- "$file" ||
17186 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17187          X"$file" : 'X\(//\)[^/]' \| \
17188          X"$file" : 'X\(//\)$' \| \
17189          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17190 $as_echo X"$file" |
17191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17192             s//\1/
17193             q
17194           }
17195           /^X\(\/\/\)[^/].*/{
17196             s//\1/
17197             q
17198           }
17199           /^X\(\/\/\)$/{
17200             s//\1/
17201             q
17202           }
17203           /^X\(\/\).*/{
17204             s//\1/
17205             q
17206           }
17207           s/.*/./; q'`
17208       as_dir=$dirpart/$fdir; as_fn_mkdir_p
17209       # echo "creating $dirpart/$file"
17210       echo '# dummy' > "$dirpart/$file"
17211     done
17212   done
17213 }
17214  ;;
17215     "libtool":C)
17216
17217     # See if we are running on zsh, and set the options that allow our
17218     # commands through without removal of \ escapes.
17219     if test -n "${ZSH_VERSION+set}"; then
17220       setopt NO_GLOB_SUBST
17221     fi
17222
17223     cfgfile=${ofile}T
17224     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17225     $RM "$cfgfile"
17226
17227     cat <<_LT_EOF >> "$cfgfile"
17228 #! $SHELL
17229 # Generated automatically by $as_me ($PACKAGE) $VERSION
17230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17231 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17232
17233 # Provide generalized library-building support services.
17234 # Written by Gordon Matzigkeit, 1996
17235
17236 # Copyright (C) 2014 Free Software Foundation, Inc.
17237 # This is free software; see the source for copying conditions.  There is NO
17238 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17239
17240 # GNU Libtool is free software; you can redistribute it and/or modify
17241 # it under the terms of the GNU General Public License as published by
17242 # the Free Software Foundation; either version 2 of of the License, or
17243 # (at your option) any later version.
17244 #
17245 # As a special exception to the GNU General Public License, if you
17246 # distribute this file as part of a program or library that is built
17247 # using GNU Libtool, you may include this file under the  same
17248 # distribution terms that you use for the rest of that program.
17249 #
17250 # GNU Libtool is distributed in the hope that it will be useful, but
17251 # WITHOUT ANY WARRANTY; without even the implied warranty of
17252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17253 # GNU General Public License for more details.
17254 #
17255 # You should have received a copy of the GNU General Public License
17256 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
17257
17258
17259 # The names of the tagged configurations supported by this script.
17260 available_tags=''
17261
17262 # Configured defaults for sys_lib_dlsearch_path munging.
17263 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17264
17265 # ### BEGIN LIBTOOL CONFIG
17266
17267 # Which release of libtool.m4 was used?
17268 macro_version=$macro_version
17269 macro_revision=$macro_revision
17270
17271 # Whether or not to build shared libraries.
17272 build_libtool_libs=$enable_shared
17273
17274 # Whether or not to build static libraries.
17275 build_old_libs=$enable_static
17276
17277 # What type of objects to build.
17278 pic_mode=$pic_mode
17279
17280 # Whether or not to optimize for fast installation.
17281 fast_install=$enable_fast_install
17282
17283 # Shared archive member basename,for filename based shared library versioning on AIX.
17284 shared_archive_member_spec=$shared_archive_member_spec
17285
17286 # Shell to use when invoking shell scripts.
17287 SHELL=$lt_SHELL
17288
17289 # An echo program that protects backslashes.
17290 ECHO=$lt_ECHO
17291
17292 # The PATH separator for the build system.
17293 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17294
17295 # The host system.
17296 host_alias=$host_alias
17297 host=$host
17298 host_os=$host_os
17299
17300 # The build system.
17301 build_alias=$build_alias
17302 build=$build
17303 build_os=$build_os
17304
17305 # A sed program that does not truncate output.
17306 SED=$lt_SED
17307
17308 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17309 Xsed="\$SED -e 1s/^X//"
17310
17311 # A grep program that handles long lines.
17312 GREP=$lt_GREP
17313
17314 # An ERE matcher.
17315 EGREP=$lt_EGREP
17316
17317 # A literal string matcher.
17318 FGREP=$lt_FGREP
17319
17320 # A BSD- or MS-compatible name lister.
17321 NM=$lt_NM
17322
17323 # Whether we need soft or hard links.
17324 LN_S=$lt_LN_S
17325
17326 # What is the maximum length of a command?
17327 max_cmd_len=$max_cmd_len
17328
17329 # Object file suffix (normally "o").
17330 objext=$ac_objext
17331
17332 # Executable file suffix (normally "").
17333 exeext=$exeext
17334
17335 # whether the shell understands "unset".
17336 lt_unset=$lt_unset
17337
17338 # turn spaces into newlines.
17339 SP2NL=$lt_lt_SP2NL
17340
17341 # turn newlines into spaces.
17342 NL2SP=$lt_lt_NL2SP
17343
17344 # convert \$build file names to \$host format.
17345 to_host_file_cmd=$lt_cv_to_host_file_cmd
17346
17347 # convert \$build files to toolchain format.
17348 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17349
17350 # An object symbol dumper.
17351 OBJDUMP=$lt_OBJDUMP
17352
17353 # Method to check whether dependent libraries are shared objects.
17354 deplibs_check_method=$lt_deplibs_check_method
17355
17356 # Command to use when deplibs_check_method = "file_magic".
17357 file_magic_cmd=$lt_file_magic_cmd
17358
17359 # How to find potential files when deplibs_check_method = "file_magic".
17360 file_magic_glob=$lt_file_magic_glob
17361
17362 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17363 want_nocaseglob=$lt_want_nocaseglob
17364
17365 # DLL creation program.
17366 DLLTOOL=$lt_DLLTOOL
17367
17368 # Command to associate shared and link libraries.
17369 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17370
17371 # The archiver.
17372 AR=$lt_AR
17373
17374 # Flags to create an archive.
17375 AR_FLAGS=$lt_AR_FLAGS
17376
17377 # How to feed a file listing to the archiver.
17378 archiver_list_spec=$lt_archiver_list_spec
17379
17380 # A symbol stripping program.
17381 STRIP=$lt_STRIP
17382
17383 # Commands used to install an old-style archive.
17384 RANLIB=$lt_RANLIB
17385 old_postinstall_cmds=$lt_old_postinstall_cmds
17386 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17387
17388 # Whether to use a lock for old archive extraction.
17389 lock_old_archive_extraction=$lock_old_archive_extraction
17390
17391 # A C compiler.
17392 LTCC=$lt_CC
17393
17394 # LTCC compiler flags.
17395 LTCFLAGS=$lt_CFLAGS
17396
17397 # Take the output of nm and produce a listing of raw symbols and C names.
17398 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17399
17400 # Transform the output of nm in a proper C declaration.
17401 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17402
17403 # Transform the output of nm into a list of symbols to manually relocate.
17404 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17405
17406 # Transform the output of nm in a C name address pair.
17407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17408
17409 # Transform the output of nm in a C name address pair when lib prefix is needed.
17410 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17411
17412 # The name lister interface.
17413 nm_interface=$lt_lt_cv_nm_interface
17414
17415 # Specify filename containing input files for \$NM.
17416 nm_file_list_spec=$lt_nm_file_list_spec
17417
17418 # The root where to search for dependent libraries,and where our libraries should be installed.
17419 lt_sysroot=$lt_sysroot
17420
17421 # Command to truncate a binary pipe.
17422 lt_truncate_bin=$lt_lt_cv_truncate_bin
17423
17424 # The name of the directory that contains temporary libtool files.
17425 objdir=$objdir
17426
17427 # Used to examine libraries when file_magic_cmd begins with "file".
17428 MAGIC_CMD=$MAGIC_CMD
17429
17430 # Must we lock files when doing compilation?
17431 need_locks=$lt_need_locks
17432
17433 # Manifest tool.
17434 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17435
17436 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17437 DSYMUTIL=$lt_DSYMUTIL
17438
17439 # Tool to change global to local symbols on Mac OS X.
17440 NMEDIT=$lt_NMEDIT
17441
17442 # Tool to manipulate fat objects and archives on Mac OS X.
17443 LIPO=$lt_LIPO
17444
17445 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17446 OTOOL=$lt_OTOOL
17447
17448 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17449 OTOOL64=$lt_OTOOL64
17450
17451 # Old archive suffix (normally "a").
17452 libext=$libext
17453
17454 # Shared library suffix (normally ".so").
17455 shrext_cmds=$lt_shrext_cmds
17456
17457 # The commands to extract the exported symbol list from a shared archive.
17458 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17459
17460 # Variables whose values should be saved in libtool wrapper scripts and
17461 # restored at link time.
17462 variables_saved_for_relink=$lt_variables_saved_for_relink
17463
17464 # Do we need the "lib" prefix for modules?
17465 need_lib_prefix=$need_lib_prefix
17466
17467 # Do we need a version for libraries?
17468 need_version=$need_version
17469
17470 # Library versioning type.
17471 version_type=$version_type
17472
17473 # Shared library runtime path variable.
17474 runpath_var=$runpath_var
17475
17476 # Shared library path variable.
17477 shlibpath_var=$shlibpath_var
17478
17479 # Is shlibpath searched before the hard-coded library search path?
17480 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17481
17482 # Format of library name prefix.
17483 libname_spec=$lt_libname_spec
17484
17485 # List of archive names.  First name is the real one, the rest are links.
17486 # The last name is the one that the linker finds with -lNAME
17487 library_names_spec=$lt_library_names_spec
17488
17489 # The coded name of the library, if different from the real name.
17490 soname_spec=$lt_soname_spec
17491
17492 # Permission mode override for installation of shared libraries.
17493 install_override_mode=$lt_install_override_mode
17494
17495 # Command to use after installation of a shared archive.
17496 postinstall_cmds=$lt_postinstall_cmds
17497
17498 # Command to use after uninstallation of a shared archive.
17499 postuninstall_cmds=$lt_postuninstall_cmds
17500
17501 # Commands used to finish a libtool library installation in a directory.
17502 finish_cmds=$lt_finish_cmds
17503
17504 # As "finish_cmds", except a single script fragment to be evaled but
17505 # not shown.
17506 finish_eval=$lt_finish_eval
17507
17508 # Whether we should hardcode library paths into libraries.
17509 hardcode_into_libs=$hardcode_into_libs
17510
17511 # Compile-time system search path for libraries.
17512 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17513
17514 # Detected run-time system search path for libraries.
17515 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17516
17517 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17518 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17519
17520 # Whether dlopen is supported.
17521 dlopen_support=$enable_dlopen
17522
17523 # Whether dlopen of programs is supported.
17524 dlopen_self=$enable_dlopen_self
17525
17526 # Whether dlopen of statically linked programs is supported.
17527 dlopen_self_static=$enable_dlopen_self_static
17528
17529 # Commands to strip libraries.
17530 old_striplib=$lt_old_striplib
17531 striplib=$lt_striplib
17532
17533
17534 # The linker used to build libraries.
17535 LD=$lt_LD
17536
17537 # How to create reloadable object files.
17538 reload_flag=$lt_reload_flag
17539 reload_cmds=$lt_reload_cmds
17540
17541 # Commands used to build an old-style archive.
17542 old_archive_cmds=$lt_old_archive_cmds
17543
17544 # A language specific compiler.
17545 CC=$lt_compiler
17546
17547 # Is the compiler the GNU compiler?
17548 with_gcc=$GCC
17549
17550 # Compiler flag to turn off builtin functions.
17551 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17552
17553 # Additional compiler flags for building library objects.
17554 pic_flag=$lt_lt_prog_compiler_pic
17555
17556 # How to pass a linker flag through the compiler.
17557 wl=$lt_lt_prog_compiler_wl
17558
17559 # Compiler flag to prevent dynamic linking.
17560 link_static_flag=$lt_lt_prog_compiler_static
17561
17562 # Does compiler simultaneously support -c and -o options?
17563 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17564
17565 # Whether or not to add -lc for building shared libraries.
17566 build_libtool_need_lc=$archive_cmds_need_lc
17567
17568 # Whether or not to disallow shared libs when runtime libs are static.
17569 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17570
17571 # Compiler flag to allow reflexive dlopens.
17572 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17573
17574 # Compiler flag to generate shared objects directly from archives.
17575 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17576
17577 # Whether the compiler copes with passing no objects directly.
17578 compiler_needs_object=$lt_compiler_needs_object
17579
17580 # Create an old-style archive from a shared archive.
17581 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17582
17583 # Create a temporary old-style archive to link instead of a shared archive.
17584 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17585
17586 # Commands used to build a shared archive.
17587 archive_cmds=$lt_archive_cmds
17588 archive_expsym_cmds=$lt_archive_expsym_cmds
17589
17590 # Commands used to build a loadable module if different from building
17591 # a shared archive.
17592 module_cmds=$lt_module_cmds
17593 module_expsym_cmds=$lt_module_expsym_cmds
17594
17595 # Whether we are building with GNU ld or not.
17596 with_gnu_ld=$lt_with_gnu_ld
17597
17598 # Flag that allows shared libraries with undefined symbols to be built.
17599 allow_undefined_flag=$lt_allow_undefined_flag
17600
17601 # Flag that enforces no undefined symbols.
17602 no_undefined_flag=$lt_no_undefined_flag
17603
17604 # Flag to hardcode \$libdir into a binary during linking.
17605 # This must work even if \$libdir does not exist
17606 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17607
17608 # Whether we need a single "-rpath" flag with a separated argument.
17609 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17610
17611 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17612 # DIR into the resulting binary.
17613 hardcode_direct=$hardcode_direct
17614
17615 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17616 # DIR into the resulting binary and the resulting library dependency is
17617 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
17618 # library is relocated.
17619 hardcode_direct_absolute=$hardcode_direct_absolute
17620
17621 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17622 # into the resulting binary.
17623 hardcode_minus_L=$hardcode_minus_L
17624
17625 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17626 # into the resulting binary.
17627 hardcode_shlibpath_var=$hardcode_shlibpath_var
17628
17629 # Set to "yes" if building a shared library automatically hardcodes DIR
17630 # into the library and all subsequent libraries and executables linked
17631 # against it.
17632 hardcode_automatic=$hardcode_automatic
17633
17634 # Set to yes if linker adds runtime paths of dependent libraries
17635 # to runtime path list.
17636 inherit_rpath=$inherit_rpath
17637
17638 # Whether libtool must link a program against all its dependency libraries.
17639 link_all_deplibs=$link_all_deplibs
17640
17641 # Set to "yes" if exported symbols are required.
17642 always_export_symbols=$always_export_symbols
17643
17644 # The commands to list exported symbols.
17645 export_symbols_cmds=$lt_export_symbols_cmds
17646
17647 # Symbols that should not be listed in the preloaded symbols.
17648 exclude_expsyms=$lt_exclude_expsyms
17649
17650 # Symbols that must always be exported.
17651 include_expsyms=$lt_include_expsyms
17652
17653 # Commands necessary for linking programs (against libraries) with templates.
17654 prelink_cmds=$lt_prelink_cmds
17655
17656 # Commands necessary for finishing linking programs.
17657 postlink_cmds=$lt_postlink_cmds
17658
17659 # Specify filename containing input files.
17660 file_list_spec=$lt_file_list_spec
17661
17662 # How to hardcode a shared library path into an executable.
17663 hardcode_action=$hardcode_action
17664
17665 # ### END LIBTOOL CONFIG
17666
17667 _LT_EOF
17668
17669     cat <<'_LT_EOF' >> "$cfgfile"
17670
17671 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17672
17673 # func_munge_path_list VARIABLE PATH
17674 # -----------------------------------
17675 # VARIABLE is name of variable containing _space_ separated list of
17676 # directories to be munged by the contents of PATH, which is string
17677 # having a format:
17678 # "DIR[:DIR]:"
17679 #       string "DIR[ DIR]" will be prepended to VARIABLE
17680 # ":DIR[:DIR]"
17681 #       string "DIR[ DIR]" will be appended to VARIABLE
17682 # "DIRP[:DIRP]::[DIRA:]DIRA"
17683 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17684 #       "DIRA[ DIRA]" will be appended to VARIABLE
17685 # "DIR[:DIR]"
17686 #       VARIABLE will be replaced by "DIR[ DIR]"
17687 func_munge_path_list ()
17688 {
17689     case x$2 in
17690     x)
17691         ;;
17692     *:)
17693         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
17694         ;;
17695     x:*)
17696         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
17697         ;;
17698     *::*)
17699         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17700         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
17701         ;;
17702     *)
17703         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
17704         ;;
17705     esac
17706 }
17707
17708
17709 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17710 func_cc_basename ()
17711 {
17712     for cc_temp in $*""; do
17713       case $cc_temp in
17714         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17715         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17716         \-*) ;;
17717         *) break;;
17718       esac
17719     done
17720     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17721 }
17722
17723
17724 # ### END FUNCTIONS SHARED WITH CONFIGURE
17725
17726 _LT_EOF
17727
17728   case $host_os in
17729   aix3*)
17730     cat <<\_LT_EOF >> "$cfgfile"
17731 # AIX sometimes has problems with the GCC collect2 program.  For some
17732 # reason, if we set the COLLECT_NAMES environment variable, the problems
17733 # vanish in a puff of smoke.
17734 if test set != "${COLLECT_NAMES+set}"; then
17735   COLLECT_NAMES=
17736   export COLLECT_NAMES
17737 fi
17738 _LT_EOF
17739     ;;
17740   esac
17741
17742
17743 ltmain=$ac_aux_dir/ltmain.sh
17744
17745
17746   # We use sed instead of cat because bash on DJGPP gets confused if
17747   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17748   # text mode, it properly converts lines to CR/LF.  This bash problem
17749   # is reportedly fixed, but why not run on old versions too?
17750   sed '$q' "$ltmain" >> "$cfgfile" \
17751      || (rm -f "$cfgfile"; exit 1)
17752
17753    mv -f "$cfgfile" "$ofile" ||
17754     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17755   chmod +x "$ofile"
17756
17757  ;;
17758
17759   esac
17760 done # for ac_tag
17761
17762
17763 as_fn_exit 0
17764 _ACEOF
17765 ac_clean_files=$ac_clean_files_save
17766
17767 test $ac_write_fail = 0 ||
17768   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17769
17770
17771 # configure is writing to config.log, and then calls config.status.
17772 # config.status does its own redirection, appending to config.log.
17773 # Unfortunately, on DOS this fails, as config.log is still kept open
17774 # by configure, so config.status won't be able to write to it; its
17775 # output is simply discarded.  So we exec the FD to /dev/null,
17776 # effectively closing config.log, so it can be properly (re)opened and
17777 # appended to by config.status.  When coming back to configure, we
17778 # need to make the FD available again.
17779 if test "$no_create" != yes; then
17780   ac_cs_success=:
17781   ac_config_status_args=
17782   test "$silent" = yes &&
17783     ac_config_status_args="$ac_config_status_args --quiet"
17784   exec 5>/dev/null
17785   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17786   exec 5>>config.log
17787   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17788   # would make configure fail if this is the last instruction.
17789   $ac_cs_success || as_fn_exit 1
17790 fi
17791 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17792   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17793 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17794 fi
17795