Imported Upstream version 3.27.5
[platform/upstream/python-gobject.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for pygobject 3.27.5.
4 #
5 # Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
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=pygobject
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='pygobject'
593 PACKAGE_TARNAME='pygobject'
594 PACKAGE_VERSION='3.27.5'
595 PACKAGE_STRING='pygobject 3.27.5'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://wiki.gnome.org/Projects/PyGObject/'
598
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 CODE_COVERAGE_RULES
641 CODE_COVERAGE_LDFLAGS
642 CODE_COVERAGE_LIBS
643 CODE_COVERAGE_CXXFLAGS
644 CODE_COVERAGE_CFLAGS
645 CODE_COVERAGE_CPPFLAGS
646 GENHTML
647 LCOV
648 GCOV
649 CODE_COVERAGE_ENABLED
650 CODE_COVERAGE_ENABLED_FALSE
651 CODE_COVERAGE_ENABLED_TRUE
652 WARN_SCANNERFLAGS
653 WARN_LDFLAGS
654 WARN_CFLAGS
655 WITH_COMMON_FALSE
656 WITH_COMMON_TRUE
657 ENABLE_CAIRO_FALSE
658 ENABLE_CAIRO_TRUE
659 PYCAIRO_LIBS
660 PYCAIRO_CFLAGS
661 CAIRO_LIBS
662 CAIRO_CFLAGS
663 GI_DATADIR
664 HAVE_INTROSPECTION_FALSE
665 HAVE_INTROSPECTION_TRUE
666 INTROSPECTION_MAKEFILE
667 INTROSPECTION_LIBS
668 INTROSPECTION_CFLAGS
669 INTROSPECTION_TYPELIBDIR
670 INTROSPECTION_GIRDIR
671 INTROSPECTION_GENERATE
672 INTROSPECTION_COMPILER
673 INTROSPECTION_SCANNER
674 GI_LIBS
675 GI_CFLAGS
676 GIO_LIBS
677 GIO_CFLAGS
678 FFI_LIBS
679 FFI_CFLAGS
680 PYTHON_VALGRIND_SUPP
681 GLIB_COMPILE_RESOURCES
682 GLIB_MKENUMS
683 GOBJECT_QUERY
684 GLIB_GENMARSHAL
685 GLIB_LIBS
686 GLIB_CFLAGS
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 PYTHON_LIB_LOC
691 PYTHON_LIBS
692 PYTHON_INCLUDES
693 PYTHON_SO
694 pkgpyexecdir
695 pyexecdir
696 pkgpythondir
697 pythondir
698 PYTHON_PLATFORM
699 PYTHON_EXEC_PREFIX
700 PYTHON_PREFIX
701 PYTHON_VERSION
702 PYTHON
703 CPP
704 LT_SYS_LIBRARY_PATH
705 OTOOL64
706 OTOOL
707 LIPO
708 NMEDIT
709 DSYMUTIL
710 MANIFEST_TOOL
711 RANLIB
712 ac_ct_AR
713 AR
714 LN_S
715 NM
716 ac_ct_DUMPBIN
717 DUMPBIN
718 LD
719 FGREP
720 EGREP
721 GREP
722 SED
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 LIBTOOL
741 OBJDUMP
742 DLLTOOL
743 AS
744 OS_EXT
745 OS_WIN32_FALSE
746 OS_WIN32_TRUE
747 host_os
748 host_vendor
749 host_cpu
750 host
751 build_os
752 build_vendor
753 build_cpu
754 build
755 am__untar
756 am__tar
757 AMTAR
758 am__leading_dot
759 SET_MAKE
760 AWK
761 mkdir_p
762 MKDIR_P
763 INSTALL_STRIP_PROGRAM
764 STRIP
765 install_sh
766 MAKEINFO
767 AUTOHEADER
768 AUTOMAKE
769 AUTOCONF
770 ACLOCAL
771 VERSION
772 PACKAGE
773 CYGPATH_W
774 am__isrc
775 INSTALL_DATA
776 INSTALL_SCRIPT
777 INSTALL_PROGRAM
778 AM_BACKSLASH
779 AM_DEFAULT_VERBOSITY
780 AM_DEFAULT_V
781 AM_V
782 PYGOBJECT_MICRO_VERSION
783 PYGOBJECT_MINOR_VERSION
784 PYGOBJECT_MAJOR_VERSION
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 runstatedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL'
824 ac_subst_files=''
825 ac_user_opts='
826 enable_option_checking
827 enable_silent_rules
828 enable_static
829 enable_shared
830 with_pic
831 enable_fast_install
832 with_aix_soname
833 enable_dependency_tracking
834 with_gnu_ld
835 with_sysroot
836 enable_libtool_lock
837 with_python
838 enable_glibtest
839 enable_cairo
840 enable_introspection
841 with_common
842 enable_compile_warnings
843 enable_Werror
844 with_gcov
845 enable_code_coverage
846 '
847       ac_precious_vars='build_alias
848 host_alias
849 target_alias
850 CC
851 CFLAGS
852 LDFLAGS
853 LIBS
854 CPPFLAGS
855 LT_SYS_LIBRARY_PATH
856 CPP
857 PYTHON
858 PKG_CONFIG
859 PKG_CONFIG_PATH
860 PKG_CONFIG_LIBDIR
861 FFI_CFLAGS
862 FFI_LIBS
863 GIO_CFLAGS
864 GIO_LIBS
865 GI_CFLAGS
866 GI_LIBS
867 CAIRO_CFLAGS
868 CAIRO_LIBS
869 PYCAIRO_CFLAGS
870 PYCAIRO_LIBS'
871
872
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
894
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 runstatedir='${localstatedir}/run'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926   # If the previous option needs an argument, assign it.
927   if test -n "$ac_prev"; then
928     eval $ac_prev=\$ac_option
929     ac_prev=
930     continue
931   fi
932
933   case $ac_option in
934   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935   *=)   ac_optarg= ;;
936   *)    ac_optarg=yes ;;
937   esac
938
939   # Accept the important Cygnus configure options, so we can diagnose typos.
940
941   case $ac_dashdash$ac_option in
942   --)
943     ac_dashdash=yes ;;
944
945   -bindir | --bindir | --bindi | --bind | --bin | --bi)
946     ac_prev=bindir ;;
947   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
948     bindir=$ac_optarg ;;
949
950   -build | --build | --buil | --bui | --bu)
951     ac_prev=build_alias ;;
952   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
953     build_alias=$ac_optarg ;;
954
955   -cache-file | --cache-file | --cache-fil | --cache-fi \
956   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
957     ac_prev=cache_file ;;
958   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
959   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
960     cache_file=$ac_optarg ;;
961
962   --config-cache | -C)
963     cache_file=config.cache ;;
964
965   -datadir | --datadir | --datadi | --datad)
966     ac_prev=datadir ;;
967   -datadir=* | --datadir=* | --datadi=* | --datad=*)
968     datadir=$ac_optarg ;;
969
970   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
971   | --dataroo | --dataro | --datar)
972     ac_prev=datarootdir ;;
973   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
974   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
975     datarootdir=$ac_optarg ;;
976
977   -disable-* | --disable-*)
978     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
979     # Reject names that are not valid shell variable names.
980     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981       as_fn_error $? "invalid feature name: $ac_useropt"
982     ac_useropt_orig=$ac_useropt
983     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984     case $ac_user_opts in
985       *"
986 "enable_$ac_useropt"
987 "*) ;;
988       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989          ac_unrecognized_sep=', ';;
990     esac
991     eval enable_$ac_useropt=no ;;
992
993   -docdir | --docdir | --docdi | --doc | --do)
994     ac_prev=docdir ;;
995   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996     docdir=$ac_optarg ;;
997
998   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999     ac_prev=dvidir ;;
1000   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001     dvidir=$ac_optarg ;;
1002
1003   -enable-* | --enable-*)
1004     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005     # Reject names that are not valid shell variable names.
1006     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007       as_fn_error $? "invalid feature name: $ac_useropt"
1008     ac_useropt_orig=$ac_useropt
1009     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010     case $ac_user_opts in
1011       *"
1012 "enable_$ac_useropt"
1013 "*) ;;
1014       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1015          ac_unrecognized_sep=', ';;
1016     esac
1017     eval enable_$ac_useropt=\$ac_optarg ;;
1018
1019   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1020   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1021   | --exec | --exe | --ex)
1022     ac_prev=exec_prefix ;;
1023   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1024   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1025   | --exec=* | --exe=* | --ex=*)
1026     exec_prefix=$ac_optarg ;;
1027
1028   -gas | --gas | --ga | --g)
1029     # Obsolete; use --with-gas.
1030     with_gas=yes ;;
1031
1032   -help | --help | --hel | --he | -h)
1033     ac_init_help=long ;;
1034   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1035     ac_init_help=recursive ;;
1036   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1037     ac_init_help=short ;;
1038
1039   -host | --host | --hos | --ho)
1040     ac_prev=host_alias ;;
1041   -host=* | --host=* | --hos=* | --ho=*)
1042     host_alias=$ac_optarg ;;
1043
1044   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045     ac_prev=htmldir ;;
1046   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047   | --ht=*)
1048     htmldir=$ac_optarg ;;
1049
1050   -includedir | --includedir | --includedi | --included | --include \
1051   | --includ | --inclu | --incl | --inc)
1052     ac_prev=includedir ;;
1053   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1054   | --includ=* | --inclu=* | --incl=* | --inc=*)
1055     includedir=$ac_optarg ;;
1056
1057   -infodir | --infodir | --infodi | --infod | --info | --inf)
1058     ac_prev=infodir ;;
1059   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1060     infodir=$ac_optarg ;;
1061
1062   -libdir | --libdir | --libdi | --libd)
1063     ac_prev=libdir ;;
1064   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1065     libdir=$ac_optarg ;;
1066
1067   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1068   | --libexe | --libex | --libe)
1069     ac_prev=libexecdir ;;
1070   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1071   | --libexe=* | --libex=* | --libe=*)
1072     libexecdir=$ac_optarg ;;
1073
1074   -localedir | --localedir | --localedi | --localed | --locale)
1075     ac_prev=localedir ;;
1076   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1077     localedir=$ac_optarg ;;
1078
1079   -localstatedir | --localstatedir | --localstatedi | --localstated \
1080   | --localstate | --localstat | --localsta | --localst | --locals)
1081     ac_prev=localstatedir ;;
1082   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1083   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1084     localstatedir=$ac_optarg ;;
1085
1086   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087     ac_prev=mandir ;;
1088   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1089     mandir=$ac_optarg ;;
1090
1091   -nfp | --nfp | --nf)
1092     # Obsolete; use --without-fp.
1093     with_fp=no ;;
1094
1095   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1096   | --no-cr | --no-c | -n)
1097     no_create=yes ;;
1098
1099   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1100   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1101     no_recursion=yes ;;
1102
1103   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1104   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1105   | --oldin | --oldi | --old | --ol | --o)
1106     ac_prev=oldincludedir ;;
1107   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1108   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1109   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1110     oldincludedir=$ac_optarg ;;
1111
1112   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113     ac_prev=prefix ;;
1114   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1115     prefix=$ac_optarg ;;
1116
1117   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1118   | --program-pre | --program-pr | --program-p)
1119     ac_prev=program_prefix ;;
1120   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1121   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1122     program_prefix=$ac_optarg ;;
1123
1124   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1125   | --program-suf | --program-su | --program-s)
1126     ac_prev=program_suffix ;;
1127   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1128   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1129     program_suffix=$ac_optarg ;;
1130
1131   -program-transform-name | --program-transform-name \
1132   | --program-transform-nam | --program-transform-na \
1133   | --program-transform-n | --program-transform- \
1134   | --program-transform | --program-transfor \
1135   | --program-transfo | --program-transf \
1136   | --program-trans | --program-tran \
1137   | --progr-tra | --program-tr | --program-t)
1138     ac_prev=program_transform_name ;;
1139   -program-transform-name=* | --program-transform-name=* \
1140   | --program-transform-nam=* | --program-transform-na=* \
1141   | --program-transform-n=* | --program-transform-=* \
1142   | --program-transform=* | --program-transfor=* \
1143   | --program-transfo=* | --program-transf=* \
1144   | --program-trans=* | --program-tran=* \
1145   | --progr-tra=* | --program-tr=* | --program-t=*)
1146     program_transform_name=$ac_optarg ;;
1147
1148   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149     ac_prev=pdfdir ;;
1150   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1151     pdfdir=$ac_optarg ;;
1152
1153   -psdir | --psdir | --psdi | --psd | --ps)
1154     ac_prev=psdir ;;
1155   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1156     psdir=$ac_optarg ;;
1157
1158   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1159   | -silent | --silent | --silen | --sile | --sil)
1160     silent=yes ;;
1161
1162   -runstatedir | --runstatedir | --runstatedi | --runstated \
1163   | --runstate | --runstat | --runsta | --runst | --runs \
1164   | --run | --ru | --r)
1165     ac_prev=runstatedir ;;
1166   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1167   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1168   | --run=* | --ru=* | --r=*)
1169     runstatedir=$ac_optarg ;;
1170
1171   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172     ac_prev=sbindir ;;
1173   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174   | --sbi=* | --sb=*)
1175     sbindir=$ac_optarg ;;
1176
1177   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179   | --sharedst | --shareds | --shared | --share | --shar \
1180   | --sha | --sh)
1181     ac_prev=sharedstatedir ;;
1182   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185   | --sha=* | --sh=*)
1186     sharedstatedir=$ac_optarg ;;
1187
1188   -site | --site | --sit)
1189     ac_prev=site ;;
1190   -site=* | --site=* | --sit=*)
1191     site=$ac_optarg ;;
1192
1193   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194     ac_prev=srcdir ;;
1195   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196     srcdir=$ac_optarg ;;
1197
1198   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199   | --syscon | --sysco | --sysc | --sys | --sy)
1200     ac_prev=sysconfdir ;;
1201   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203     sysconfdir=$ac_optarg ;;
1204
1205   -target | --target | --targe | --targ | --tar | --ta | --t)
1206     ac_prev=target_alias ;;
1207   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208     target_alias=$ac_optarg ;;
1209
1210   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211     verbose=yes ;;
1212
1213   -version | --version | --versio | --versi | --vers | -V)
1214     ac_init_version=: ;;
1215
1216   -with-* | --with-*)
1217     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218     # Reject names that are not valid shell variable names.
1219     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220       as_fn_error $? "invalid package name: $ac_useropt"
1221     ac_useropt_orig=$ac_useropt
1222     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223     case $ac_user_opts in
1224       *"
1225 "with_$ac_useropt"
1226 "*) ;;
1227       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228          ac_unrecognized_sep=', ';;
1229     esac
1230     eval with_$ac_useropt=\$ac_optarg ;;
1231
1232   -without-* | --without-*)
1233     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1244          ac_unrecognized_sep=', ';;
1245     esac
1246     eval with_$ac_useropt=no ;;
1247
1248   --x)
1249     # Obsolete; use --with-x.
1250     with_x=yes ;;
1251
1252   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253   | --x-incl | --x-inc | --x-in | --x-i)
1254     ac_prev=x_includes ;;
1255   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257     x_includes=$ac_optarg ;;
1258
1259   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261     ac_prev=x_libraries ;;
1262   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264     x_libraries=$ac_optarg ;;
1265
1266   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1268     ;;
1269
1270   *=*)
1271     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272     # Reject names that are not valid shell variable names.
1273     case $ac_envvar in #(
1274       '' | [0-9]* | *[!_$as_cr_alnum]* )
1275       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276     esac
1277     eval $ac_envvar=\$ac_optarg
1278     export $ac_envvar ;;
1279
1280   *)
1281     # FIXME: should be removed in autoconf 3.0.
1282     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1286     ;;
1287
1288   esac
1289 done
1290
1291 if test -n "$ac_prev"; then
1292   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293   as_fn_error $? "missing argument to $ac_option"
1294 fi
1295
1296 if test -n "$ac_unrecognized_opts"; then
1297   case $enable_option_checking in
1298     no) ;;
1299     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301   esac
1302 fi
1303
1304 # Check all directory arguments for consistency.
1305 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306                 datadir sysconfdir sharedstatedir localstatedir includedir \
1307                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308                 libdir localedir mandir runstatedir
1309 do
1310   eval ac_val=\$$ac_var
1311   # Remove trailing slashes.
1312   case $ac_val in
1313     */ )
1314       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315       eval $ac_var=\$ac_val;;
1316   esac
1317   # Be sure to have absolute directory names.
1318   case $ac_val in
1319     [\\/$]* | ?:[\\/]* )  continue;;
1320     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321   esac
1322   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1324
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1331
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334   if test "x$build_alias" = x; then
1335     cross_compiling=maybe
1336   elif test "x$build_alias" != "x$host_alias"; then
1337     cross_compiling=yes
1338   fi
1339 fi
1340
1341 ac_tool_prefix=
1342 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1343
1344 test "$silent" = yes && exec 6>/dev/null
1345
1346
1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1348 ac_ls_di=`ls -di .` &&
1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1350   as_fn_error $? "working directory cannot be determined"
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352   as_fn_error $? "pwd does not report name of working directory"
1353
1354
1355 # Find the source files, if location was not specified.
1356 if test -z "$srcdir"; then
1357   ac_srcdir_defaulted=yes
1358   # Try the directory containing this script, then the parent directory.
1359   ac_confdir=`$as_dirname -- "$as_myself" ||
1360 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1361          X"$as_myself" : 'X\(//\)[^/]' \| \
1362          X"$as_myself" : 'X\(//\)$' \| \
1363          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1364 $as_echo X"$as_myself" |
1365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\/\)[^/].*/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\/\)$/{
1374             s//\1/
1375             q
1376           }
1377           /^X\(\/\).*/{
1378             s//\1/
1379             q
1380           }
1381           s/.*/./; q'`
1382   srcdir=$ac_confdir
1383   if test ! -r "$srcdir/$ac_unique_file"; then
1384     srcdir=..
1385   fi
1386 else
1387   ac_srcdir_defaulted=no
1388 fi
1389 if test ! -r "$srcdir/$ac_unique_file"; then
1390   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1391   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1392 fi
1393 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1394 ac_abs_confdir=`(
1395         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1396         pwd)`
1397 # When building in place, set srcdir=.
1398 if test "$ac_abs_confdir" = "$ac_pwd"; then
1399   srcdir=.
1400 fi
1401 # Remove unnecessary trailing slashes from srcdir.
1402 # Double slashes in file names in object file debugging info
1403 # mess up M-x gdb in Emacs.
1404 case $srcdir in
1405 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1406 esac
1407 for ac_var in $ac_precious_vars; do
1408   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1409   eval ac_env_${ac_var}_value=\$${ac_var}
1410   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1411   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1412 done
1413
1414 #
1415 # Report the --help message.
1416 #
1417 if test "$ac_init_help" = "long"; then
1418   # Omit some internal or obsolete options to make the list less imposing.
1419   # This message is too long to be a string in the A/UX 3.1 sh.
1420   cat <<_ACEOF
1421 \`configure' configures pygobject 3.27.5 to adapt to many kinds of systems.
1422
1423 Usage: $0 [OPTION]... [VAR=VALUE]...
1424
1425 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1426 VAR=VALUE.  See below for descriptions of some of the useful variables.
1427
1428 Defaults for the options are specified in brackets.
1429
1430 Configuration:
1431   -h, --help              display this help and exit
1432       --help=short        display options specific to this package
1433       --help=recursive    display the short help of all the included packages
1434   -V, --version           display version information and exit
1435   -q, --quiet, --silent   do not print \`checking ...' messages
1436       --cache-file=FILE   cache test results in FILE [disabled]
1437   -C, --config-cache      alias for \`--cache-file=config.cache'
1438   -n, --no-create         do not create output files
1439       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1440
1441 Installation directories:
1442   --prefix=PREFIX         install architecture-independent files in PREFIX
1443                           [$ac_default_prefix]
1444   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1445                           [PREFIX]
1446
1447 By default, \`make install' will install all the files in
1448 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1449 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1450 for instance \`--prefix=\$HOME'.
1451
1452 For better control, use the options below.
1453
1454 Fine tuning of the installation directories:
1455   --bindir=DIR            user executables [EPREFIX/bin]
1456   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1457   --libexecdir=DIR        program executables [EPREFIX/libexec]
1458   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1459   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1460   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1461   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1462   --libdir=DIR            object code libraries [EPREFIX/lib]
1463   --includedir=DIR        C header files [PREFIX/include]
1464   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1465   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1466   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1467   --infodir=DIR           info documentation [DATAROOTDIR/info]
1468   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1469   --mandir=DIR            man documentation [DATAROOTDIR/man]
1470   --docdir=DIR            documentation root [DATAROOTDIR/doc/pygobject]
1471   --htmldir=DIR           html documentation [DOCDIR]
1472   --dvidir=DIR            dvi documentation [DOCDIR]
1473   --pdfdir=DIR            pdf documentation [DOCDIR]
1474   --psdir=DIR             ps documentation [DOCDIR]
1475 _ACEOF
1476
1477   cat <<\_ACEOF
1478
1479 Program names:
1480   --program-prefix=PREFIX            prepend PREFIX to installed program names
1481   --program-suffix=SUFFIX            append SUFFIX to installed program names
1482   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1483
1484 System types:
1485   --build=BUILD     configure for building on BUILD [guessed]
1486   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1488 fi
1489
1490 if test -n "$ac_init_help"; then
1491   case $ac_init_help in
1492      short | recursive ) echo "Configuration of pygobject 3.27.5:";;
1493    esac
1494   cat <<\_ACEOF
1495
1496 Optional Features:
1497   --disable-option-checking  ignore unrecognized --enable/--with options
1498   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1499   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1500   --enable-silent-rules   less verbose build output (undo: "make V=1")
1501   --disable-silent-rules  verbose build output (undo: "make V=0")
1502   --enable-static[=PKGS]  build static libraries [default=no]
1503   --enable-shared[=PKGS]  build shared libraries [default=yes]
1504   --enable-fast-install[=PKGS]
1505                           optimize for fast installation [default=yes]
1506   --enable-dependency-tracking
1507                           do not reject slow dependency extractors
1508   --disable-dependency-tracking
1509                           speeds up one-time build
1510   --disable-libtool-lock  avoid locking (might break parallel builds)
1511   --disable-glibtest      do not try to compile and run a test GLIB program
1512   --enable-cairo          Enable Cairo bindings using introspection
1513                           information
1514   --enable-introspection=[no/auto/yes]
1515                           Enable introspection for this build
1516   --enable-compile-warnings=[no/yes/error]
1517                           Enable compiler warnings and errors
1518   --disable-Werror        Unconditionally make all compiler warnings non-fatal
1519   --enable-code-coverage  Whether to enable code coverage support
1520
1521 Optional Packages:
1522   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1523   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1524   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1525                           both]
1526   --with-aix-soname=aix|svr4|both
1527                           shared library versioning (aka "SONAME") variant to
1528                           provide on AIX, [default=aix].
1529   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1530   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1531                           compiler's sysroot if not specified).
1532   --with-python=PATH      Path to Python interpreter; searches $PATH if only a
1533                           program name is given; if not given, searches for a
1534                           few standard names such as "python3" or "python2"
1535   --without-common        For package maintainers: do not install Python
1536                           version independent files
1537   --with-gcov=GCOV        use given GCOV for coverage (GCOV=gcov).
1538
1539 Some influential environment variables:
1540   CC          C compiler command
1541   CFLAGS      C compiler flags
1542   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1543               nonstandard directory <lib dir>
1544   LIBS        libraries to pass to the linker, e.g. -l<library>
1545   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1546               you have headers in a nonstandard directory <include dir>
1547   LT_SYS_LIBRARY_PATH
1548               User-defined run-time library search path.
1549   CPP         C preprocessor
1550   PYTHON      the Python interpreter
1551   PKG_CONFIG  path to pkg-config utility
1552   PKG_CONFIG_PATH
1553               directories to add to pkg-config's search path
1554   PKG_CONFIG_LIBDIR
1555               path overriding pkg-config's built-in search path
1556   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1557   FFI_LIBS    linker flags for FFI, overriding pkg-config
1558   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1559   GIO_LIBS    linker flags for GIO, overriding pkg-config
1560   GI_CFLAGS   C compiler flags for GI, overriding pkg-config
1561   GI_LIBS     linker flags for GI, overriding pkg-config
1562   CAIRO_CFLAGS
1563               C compiler flags for CAIRO, overriding pkg-config
1564   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1565   PYCAIRO_CFLAGS
1566               C compiler flags for PYCAIRO, overriding pkg-config
1567   PYCAIRO_LIBS
1568               linker flags for PYCAIRO, overriding pkg-config
1569
1570 Use these variables to override the choices made by `configure' or to help
1571 it to find libraries and programs with nonstandard names/locations.
1572
1573 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1574 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1575 _ACEOF
1576 ac_status=$?
1577 fi
1578
1579 if test "$ac_init_help" = "recursive"; then
1580   # If there are subdirs, report their specific --help.
1581   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1582     test -d "$ac_dir" ||
1583       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584       continue
1585     ac_builddir=.
1586
1587 case "$ac_dir" in
1588 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1589 *)
1590   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1591   # A ".." for each directory in $ac_dir_suffix.
1592   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1593   case $ac_top_builddir_sub in
1594   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1596   esac ;;
1597 esac
1598 ac_abs_top_builddir=$ac_pwd
1599 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1600 # for backward compatibility:
1601 ac_top_builddir=$ac_top_build_prefix
1602
1603 case $srcdir in
1604   .)  # We are building in place.
1605     ac_srcdir=.
1606     ac_top_srcdir=$ac_top_builddir_sub
1607     ac_abs_top_srcdir=$ac_pwd ;;
1608   [\\/]* | ?:[\\/]* )  # Absolute name.
1609     ac_srcdir=$srcdir$ac_dir_suffix;
1610     ac_top_srcdir=$srcdir
1611     ac_abs_top_srcdir=$srcdir ;;
1612   *) # Relative name.
1613     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1614     ac_top_srcdir=$ac_top_build_prefix$srcdir
1615     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1616 esac
1617 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1618
1619     cd "$ac_dir" || { ac_status=$?; continue; }
1620     # Check for guested configure.
1621     if test -f "$ac_srcdir/configure.gnu"; then
1622       echo &&
1623       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1624     elif test -f "$ac_srcdir/configure"; then
1625       echo &&
1626       $SHELL "$ac_srcdir/configure" --help=recursive
1627     else
1628       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1629     fi || ac_status=$?
1630     cd "$ac_pwd" || { ac_status=$?; break; }
1631   done
1632 fi
1633
1634 test -n "$ac_init_help" && exit $ac_status
1635 if $ac_init_version; then
1636   cat <<\_ACEOF
1637 pygobject configure 3.27.5
1638 generated by GNU Autoconf 2.69
1639
1640 Copyright (C) 2012 Free Software Foundation, Inc.
1641 This configure script is free software; the Free Software Foundation
1642 gives unlimited permission to copy, distribute and modify it.
1643 _ACEOF
1644   exit
1645 fi
1646
1647 ## ------------------------ ##
1648 ## Autoconf initialization. ##
1649 ## ------------------------ ##
1650
1651 # ac_fn_c_try_compile LINENO
1652 # --------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_compile ()
1655 {
1656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657   rm -f conftest.$ac_objext
1658   if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661   *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665   (eval "$ac_compile") 2>conftest.err
1666   ac_status=$?
1667   if test -s conftest.err; then
1668     grep -v '^ *+' conftest.err >conftest.er1
1669     cat conftest.er1 >&5
1670     mv -f conftest.er1 conftest.err
1671   fi
1672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673   test $ac_status = 0; } && {
1674          test -z "$ac_c_werror_flag" ||
1675          test ! -s conftest.err
1676        } && test -s conftest.$ac_objext; then :
1677   ac_retval=0
1678 else
1679   $as_echo "$as_me: failed program was:" >&5
1680 sed 's/^/| /' conftest.$ac_ext >&5
1681
1682         ac_retval=1
1683 fi
1684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685   as_fn_set_status $ac_retval
1686
1687 } # ac_fn_c_try_compile
1688
1689 # ac_fn_c_try_link LINENO
1690 # -----------------------
1691 # Try to link conftest.$ac_ext, and return whether this succeeded.
1692 ac_fn_c_try_link ()
1693 {
1694   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695   rm -f conftest.$ac_objext conftest$ac_exeext
1696   if { { ac_try="$ac_link"
1697 case "(($ac_try" in
1698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699   *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703   (eval "$ac_link") 2>conftest.err
1704   ac_status=$?
1705   if test -s conftest.err; then
1706     grep -v '^ *+' conftest.err >conftest.er1
1707     cat conftest.er1 >&5
1708     mv -f conftest.er1 conftest.err
1709   fi
1710   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711   test $ac_status = 0; } && {
1712          test -z "$ac_c_werror_flag" ||
1713          test ! -s conftest.err
1714        } && test -s conftest$ac_exeext && {
1715          test "$cross_compiling" = yes ||
1716          test -x conftest$ac_exeext
1717        }; then :
1718   ac_retval=0
1719 else
1720   $as_echo "$as_me: failed program was:" >&5
1721 sed 's/^/| /' conftest.$ac_ext >&5
1722
1723         ac_retval=1
1724 fi
1725   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1726   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1727   # interfere with the next link command; also delete a directory that is
1728   # left behind by Apple's compiler.  We do this before executing the actions.
1729   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731   as_fn_set_status $ac_retval
1732
1733 } # ac_fn_c_try_link
1734
1735 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1736 # -------------------------------------------------------
1737 # Tests whether HEADER exists and can be compiled using the include files in
1738 # INCLUDES, setting the cache variable VAR accordingly.
1739 ac_fn_c_check_header_compile ()
1740 {
1741   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743 $as_echo_n "checking for $2... " >&6; }
1744 if eval \${$3+:} false; then :
1745   $as_echo_n "(cached) " >&6
1746 else
1747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1748 /* end confdefs.h.  */
1749 $4
1750 #include <$2>
1751 _ACEOF
1752 if ac_fn_c_try_compile "$LINENO"; then :
1753   eval "$3=yes"
1754 else
1755   eval "$3=no"
1756 fi
1757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1758 fi
1759 eval ac_res=\$$3
1760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1761 $as_echo "$ac_res" >&6; }
1762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
1764 } # ac_fn_c_check_header_compile
1765
1766 # ac_fn_c_try_cpp LINENO
1767 # ----------------------
1768 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1769 ac_fn_c_try_cpp ()
1770 {
1771   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772   if { { ac_try="$ac_cpp conftest.$ac_ext"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1780   ac_status=$?
1781   if test -s conftest.err; then
1782     grep -v '^ *+' conftest.err >conftest.er1
1783     cat conftest.er1 >&5
1784     mv -f conftest.er1 conftest.err
1785   fi
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } > conftest.i && {
1788          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1789          test ! -s conftest.err
1790        }; then :
1791   ac_retval=0
1792 else
1793   $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796     ac_retval=1
1797 fi
1798   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_cpp
1802
1803 # ac_fn_c_try_run LINENO
1804 # ----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806 # that executables *can* be run.
1807 ac_fn_c_try_run ()
1808 {
1809   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810   if { { ac_try="$ac_link"
1811 case "(($ac_try" in
1812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813   *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817   (eval "$ac_link") 2>&5
1818   ac_status=$?
1819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821   { { case "(($ac_try" in
1822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823   *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827   (eval "$ac_try") 2>&5
1828   ac_status=$?
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; }; }; then :
1831   ac_retval=0
1832 else
1833   $as_echo "$as_me: program exited with status $ac_status" >&5
1834        $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837        ac_retval=$ac_status
1838 fi
1839   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841   as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_run
1844
1845 # ac_fn_c_check_func LINENO FUNC VAR
1846 # ----------------------------------
1847 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1848 ac_fn_c_check_func ()
1849 {
1850   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852 $as_echo_n "checking for $2... " >&6; }
1853 if eval \${$3+:} false; then :
1854   $as_echo_n "(cached) " >&6
1855 else
1856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1859    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1860 #define $2 innocuous_$2
1861
1862 /* System header to define __stub macros and hopefully few prototypes,
1863     which can conflict with char $2 (); below.
1864     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1865     <limits.h> exists even on freestanding compilers.  */
1866
1867 #ifdef __STDC__
1868 # include <limits.h>
1869 #else
1870 # include <assert.h>
1871 #endif
1872
1873 #undef $2
1874
1875 /* Override any GCC internal prototype to avoid an error.
1876    Use char because int might match the return type of a GCC
1877    builtin and then its argument prototype would still apply.  */
1878 #ifdef __cplusplus
1879 extern "C"
1880 #endif
1881 char $2 ();
1882 /* The GNU C library defines this for functions which it implements
1883     to always fail with ENOSYS.  Some functions are actually named
1884     something starting with __ and the normal name is an alias.  */
1885 #if defined __stub_$2 || defined __stub___$2
1886 choke me
1887 #endif
1888
1889 int
1890 main ()
1891 {
1892 return $2 ();
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_link "$LINENO"; then :
1898   eval "$3=yes"
1899 else
1900   eval "$3=no"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext \
1903     conftest$ac_exeext conftest.$ac_ext
1904 fi
1905 eval ac_res=\$$3
1906                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1908   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909
1910 } # ac_fn_c_check_func
1911 cat >config.log <<_ACEOF
1912 This file contains any messages produced by compilers while
1913 running configure, to aid debugging if configure makes a mistake.
1914
1915 It was created by pygobject $as_me 3.27.5, which was
1916 generated by GNU Autoconf 2.69.  Invocation command line was
1917
1918   $ $0 $@
1919
1920 _ACEOF
1921 exec 5>>config.log
1922 {
1923 cat <<_ASUNAME
1924 ## --------- ##
1925 ## Platform. ##
1926 ## --------- ##
1927
1928 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1929 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1930 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1931 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1932 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1933
1934 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1935 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1936
1937 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1938 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1939 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1940 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1941 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1942 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1943 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1944
1945 _ASUNAME
1946
1947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948 for as_dir in $PATH
1949 do
1950   IFS=$as_save_IFS
1951   test -z "$as_dir" && as_dir=.
1952     $as_echo "PATH: $as_dir"
1953   done
1954 IFS=$as_save_IFS
1955
1956 } >&5
1957
1958 cat >&5 <<_ACEOF
1959
1960
1961 ## ----------- ##
1962 ## Core tests. ##
1963 ## ----------- ##
1964
1965 _ACEOF
1966
1967
1968 # Keep a trace of the command line.
1969 # Strip out --no-create and --no-recursion so they do not pile up.
1970 # Strip out --silent because we don't want to record it for future runs.
1971 # Also quote any args containing shell meta-characters.
1972 # Make two passes to allow for proper duplicate-argument suppression.
1973 ac_configure_args=
1974 ac_configure_args0=
1975 ac_configure_args1=
1976 ac_must_keep_next=false
1977 for ac_pass in 1 2
1978 do
1979   for ac_arg
1980   do
1981     case $ac_arg in
1982     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1983     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1984     | -silent | --silent | --silen | --sile | --sil)
1985       continue ;;
1986     *\'*)
1987       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1988     esac
1989     case $ac_pass in
1990     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1991     2)
1992       as_fn_append ac_configure_args1 " '$ac_arg'"
1993       if test $ac_must_keep_next = true; then
1994         ac_must_keep_next=false # Got value, back to normal.
1995       else
1996         case $ac_arg in
1997           *=* | --config-cache | -C | -disable-* | --disable-* \
1998           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1999           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2000           | -with-* | --with-* | -without-* | --without-* | --x)
2001             case "$ac_configure_args0 " in
2002               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2003             esac
2004             ;;
2005           -* ) ac_must_keep_next=true ;;
2006         esac
2007       fi
2008       as_fn_append ac_configure_args " '$ac_arg'"
2009       ;;
2010     esac
2011   done
2012 done
2013 { ac_configure_args0=; unset ac_configure_args0;}
2014 { ac_configure_args1=; unset ac_configure_args1;}
2015
2016 # When interrupted or exit'd, cleanup temporary files, and complete
2017 # config.log.  We remove comments because anyway the quotes in there
2018 # would cause problems or look ugly.
2019 # WARNING: Use '\'' to represent an apostrophe within the trap.
2020 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2021 trap 'exit_status=$?
2022   # Save into config.log some information that might help in debugging.
2023   {
2024     echo
2025
2026     $as_echo "## ---------------- ##
2027 ## Cache variables. ##
2028 ## ---------------- ##"
2029     echo
2030     # The following way of writing the cache mishandles newlines in values,
2031 (
2032   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2033     eval ac_val=\$$ac_var
2034     case $ac_val in #(
2035     *${as_nl}*)
2036       case $ac_var in #(
2037       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2039       esac
2040       case $ac_var in #(
2041       _ | IFS | as_nl) ;; #(
2042       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2043       *) { eval $ac_var=; unset $ac_var;} ;;
2044       esac ;;
2045     esac
2046   done
2047   (set) 2>&1 |
2048     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2049     *${as_nl}ac_space=\ *)
2050       sed -n \
2051         "s/'\''/'\''\\\\'\'''\''/g;
2052           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2053       ;; #(
2054     *)
2055       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2056       ;;
2057     esac |
2058     sort
2059 )
2060     echo
2061
2062     $as_echo "## ----------------- ##
2063 ## Output variables. ##
2064 ## ----------------- ##"
2065     echo
2066     for ac_var in $ac_subst_vars
2067     do
2068       eval ac_val=\$$ac_var
2069       case $ac_val in
2070       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2071       esac
2072       $as_echo "$ac_var='\''$ac_val'\''"
2073     done | sort
2074     echo
2075
2076     if test -n "$ac_subst_files"; then
2077       $as_echo "## ------------------- ##
2078 ## File substitutions. ##
2079 ## ------------------- ##"
2080       echo
2081       for ac_var in $ac_subst_files
2082       do
2083         eval ac_val=\$$ac_var
2084         case $ac_val in
2085         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2086         esac
2087         $as_echo "$ac_var='\''$ac_val'\''"
2088       done | sort
2089       echo
2090     fi
2091
2092     if test -s confdefs.h; then
2093       $as_echo "## ----------- ##
2094 ## confdefs.h. ##
2095 ## ----------- ##"
2096       echo
2097       cat confdefs.h
2098       echo
2099     fi
2100     test "$ac_signal" != 0 &&
2101       $as_echo "$as_me: caught signal $ac_signal"
2102     $as_echo "$as_me: exit $exit_status"
2103   } >&5
2104   rm -f core *.core core.conftest.* &&
2105     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106     exit $exit_status
2107 ' 0
2108 for ac_signal in 1 2 13 15; do
2109   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110 done
2111 ac_signal=0
2112
2113 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2114 rm -f -r conftest* confdefs.h
2115
2116 $as_echo "/* confdefs.h */" > confdefs.h
2117
2118 # Predefined preprocessor variables.
2119
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_NAME "$PACKAGE_NAME"
2122 _ACEOF
2123
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126 _ACEOF
2127
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2130 _ACEOF
2131
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_STRING "$PACKAGE_STRING"
2134 _ACEOF
2135
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138 _ACEOF
2139
2140 cat >>confdefs.h <<_ACEOF
2141 #define PACKAGE_URL "$PACKAGE_URL"
2142 _ACEOF
2143
2144
2145 # Let the site file select an alternate cache file if it wants to.
2146 # Prefer an explicitly selected file to automatically selected ones.
2147 ac_site_file1=NONE
2148 ac_site_file2=NONE
2149 if test -n "$CONFIG_SITE"; then
2150   # We do not want a PATH search for config.site.
2151   case $CONFIG_SITE in #((
2152     -*)  ac_site_file1=./$CONFIG_SITE;;
2153     */*) ac_site_file1=$CONFIG_SITE;;
2154     *)   ac_site_file1=./$CONFIG_SITE;;
2155   esac
2156 elif test "x$prefix" != xNONE; then
2157   ac_site_file1=$prefix/share/config.site
2158   ac_site_file2=$prefix/etc/config.site
2159 else
2160   ac_site_file1=$ac_default_prefix/share/config.site
2161   ac_site_file2=$ac_default_prefix/etc/config.site
2162 fi
2163 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2164 do
2165   test "x$ac_site_file" = xNONE && continue
2166   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2167     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2168 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2169     sed 's/^/| /' "$ac_site_file" >&5
2170     . "$ac_site_file" \
2171       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2173 as_fn_error $? "failed to load site script $ac_site_file
2174 See \`config.log' for more details" "$LINENO" 5; }
2175   fi
2176 done
2177
2178 if test -r "$cache_file"; then
2179   # Some versions of bash will fail to source /dev/null (special files
2180   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2181   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2182     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2183 $as_echo "$as_me: loading cache $cache_file" >&6;}
2184     case $cache_file in
2185       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2186       *)                      . "./$cache_file";;
2187     esac
2188   fi
2189 else
2190   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2191 $as_echo "$as_me: creating cache $cache_file" >&6;}
2192   >$cache_file
2193 fi
2194
2195 # Check that the precious variables saved in the cache have kept the same
2196 # value.
2197 ac_cache_corrupted=false
2198 for ac_var in $ac_precious_vars; do
2199   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2200   eval ac_new_set=\$ac_env_${ac_var}_set
2201   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2202   eval ac_new_val=\$ac_env_${ac_var}_value
2203   case $ac_old_set,$ac_new_set in
2204     set,)
2205       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2207       ac_cache_corrupted=: ;;
2208     ,set)
2209       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2211       ac_cache_corrupted=: ;;
2212     ,);;
2213     *)
2214       if test "x$ac_old_val" != "x$ac_new_val"; then
2215         # differences in whitespace do not lead to failure.
2216         ac_old_val_w=`echo x $ac_old_val`
2217         ac_new_val_w=`echo x $ac_new_val`
2218         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2219           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2221           ac_cache_corrupted=:
2222         else
2223           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2225           eval $ac_var=\$ac_old_val
2226         fi
2227         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2228 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2229         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2230 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2231       fi;;
2232   esac
2233   # Pass precious variables to config.status.
2234   if test "$ac_new_set" = set; then
2235     case $ac_new_val in
2236     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2237     *) ac_arg=$ac_var=$ac_new_val ;;
2238     esac
2239     case " $ac_configure_args " in
2240       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2241       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242     esac
2243   fi
2244 done
2245 if $ac_cache_corrupted; then
2246   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2250   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2251 fi
2252 ## -------------------- ##
2253 ## Main body of script. ##
2254 ## -------------------- ##
2255
2256 ac_ext=c
2257 ac_cpp='$CPP $CPPFLAGS'
2258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270         # $is_release = ($minor_version is even)
2271         minor_version=`echo "$PACKAGE_VERSION" | sed 's/[^.][^.]*.\([^.][^.]*\).*/\1/'`
2272         if test "$(( $minor_version % 2 ))" -ne 0; then :
2273   ax_is_release=no
2274 else
2275   ax_is_release=yes
2276 fi
2277
2278
2279
2280
2281
2282
2283 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2284
2285 PYGOBJECT_MAJOR_VERSION=3
2286
2287
2288 $as_echo "#define PYGOBJECT_MINOR_VERSION 27" >>confdefs.h
2289
2290 PYGOBJECT_MINOR_VERSION=27
2291
2292
2293 $as_echo "#define PYGOBJECT_MICRO_VERSION 5" >>confdefs.h
2294
2295 PYGOBJECT_MICRO_VERSION=5
2296
2297
2298 ac_config_headers="$ac_config_headers config.h"
2299
2300 # Check whether --enable-silent-rules was given.
2301 if test "${enable_silent_rules+set}" = set; then :
2302   enableval=$enable_silent_rules;
2303 fi
2304
2305 case $enable_silent_rules in # (((
2306   yes) AM_DEFAULT_VERBOSITY=0;;
2307    no) AM_DEFAULT_VERBOSITY=1;;
2308     *) AM_DEFAULT_VERBOSITY=0;;
2309 esac
2310 am_make=${MAKE-make}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2312 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2313 if ${am_cv_make_support_nested_variables+:} false; then :
2314   $as_echo_n "(cached) " >&6
2315 else
2316   if $as_echo 'TRUE=$(BAR$(V))
2317 BAR0=false
2318 BAR1=true
2319 V=1
2320 am__doit:
2321         @$(TRUE)
2322 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2323   am_cv_make_support_nested_variables=yes
2324 else
2325   am_cv_make_support_nested_variables=no
2326 fi
2327 fi
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2329 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2330 if test $am_cv_make_support_nested_variables = yes; then
2331     AM_V='$(V)'
2332   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2333 else
2334   AM_V=$AM_DEFAULT_VERBOSITY
2335   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2336 fi
2337 AM_BACKSLASH='\'
2338
2339 am__api_version='1.15'
2340
2341 ac_aux_dir=
2342 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343   if test -f "$ac_dir/install-sh"; then
2344     ac_aux_dir=$ac_dir
2345     ac_install_sh="$ac_aux_dir/install-sh -c"
2346     break
2347   elif test -f "$ac_dir/install.sh"; then
2348     ac_aux_dir=$ac_dir
2349     ac_install_sh="$ac_aux_dir/install.sh -c"
2350     break
2351   elif test -f "$ac_dir/shtool"; then
2352     ac_aux_dir=$ac_dir
2353     ac_install_sh="$ac_aux_dir/shtool install -c"
2354     break
2355   fi
2356 done
2357 if test -z "$ac_aux_dir"; then
2358   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359 fi
2360
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2368
2369
2370 # Find a good install program.  We prefer a C program (faster),
2371 # so one script is as good as another.  But avoid the broken or
2372 # incompatible versions:
2373 # SysV /etc/install, /usr/sbin/install
2374 # SunOS /usr/etc/install
2375 # IRIX /sbin/install
2376 # AIX /bin/install
2377 # AmigaOS /C/install, which installs bootblocks on floppy discs
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # OS/2's system install, which has a completely different semantic
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 # Reject install programs that cannot install multiple files.
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2385 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2386 if test -z "$INSTALL"; then
2387 if ${ac_cv_path_install+:} false; then :
2388   $as_echo_n "(cached) " >&6
2389 else
2390   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395     # Account for people who put trailing slashes in PATH elements.
2396 case $as_dir/ in #((
2397   ./ | .// | /[cC]/* | \
2398   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2399   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2400   /usr/ucb/* ) ;;
2401   *)
2402     # OSF1 and SCO ODT 3.0 have their own names for install.
2403     # Don't use installbsd from OSF since it installs stuff as root
2404     # by default.
2405     for ac_prog in ginstall scoinst install; do
2406       for ac_exec_ext in '' $ac_executable_extensions; do
2407         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2408           if test $ac_prog = install &&
2409             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410             # AIX install.  It has an incompatible calling convention.
2411             :
2412           elif test $ac_prog = install &&
2413             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414             # program-specific install script used by HP pwplus--don't use.
2415             :
2416           else
2417             rm -rf conftest.one conftest.two conftest.dir
2418             echo one > conftest.one
2419             echo two > conftest.two
2420             mkdir conftest.dir
2421             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2422               test -s conftest.one && test -s conftest.two &&
2423               test -s conftest.dir/conftest.one &&
2424               test -s conftest.dir/conftest.two
2425             then
2426               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2427               break 3
2428             fi
2429           fi
2430         fi
2431       done
2432     done
2433     ;;
2434 esac
2435
2436   done
2437 IFS=$as_save_IFS
2438
2439 rm -rf conftest.one conftest.two conftest.dir
2440
2441 fi
2442   if test "${ac_cv_path_install+set}" = set; then
2443     INSTALL=$ac_cv_path_install
2444   else
2445     # As a last resort, use the slow shell script.  Don't cache a
2446     # value for INSTALL within a source directory, because that will
2447     # break other packages using the cache if that directory is
2448     # removed, or if the value is a relative name.
2449     INSTALL=$ac_install_sh
2450   fi
2451 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2453 $as_echo "$INSTALL" >&6; }
2454
2455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2456 # It thinks the first close brace ends the variable substitution.
2457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2458
2459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2460
2461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2462
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2464 $as_echo_n "checking whether build environment is sane... " >&6; }
2465 # Reject unsafe characters in $srcdir or the absolute working directory
2466 # name.  Accept space and tab only in the latter.
2467 am_lf='
2468 '
2469 case `pwd` in
2470   *[\\\"\#\$\&\'\`$am_lf]*)
2471     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2472 esac
2473 case $srcdir in
2474   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2475     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2476 esac
2477
2478 # Do 'set' in a subshell so we don't clobber the current shell's
2479 # arguments.  Must try -L first in case configure is actually a
2480 # symlink; some systems play weird games with the mod time of symlinks
2481 # (eg FreeBSD returns the mod time of the symlink's containing
2482 # directory).
2483 if (
2484    am_has_slept=no
2485    for am_try in 1 2; do
2486      echo "timestamp, slept: $am_has_slept" > conftest.file
2487      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2488      if test "$*" = "X"; then
2489         # -L didn't work.
2490         set X `ls -t "$srcdir/configure" conftest.file`
2491      fi
2492      if test "$*" != "X $srcdir/configure conftest.file" \
2493         && test "$*" != "X conftest.file $srcdir/configure"; then
2494
2495         # If neither matched, then we have a broken ls.  This can happen
2496         # if, for instance, CONFIG_SHELL is bash and it inherits a
2497         # broken ls alias from the environment.  This has actually
2498         # happened.  Such a system could not be considered "sane".
2499         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2500   alias in your environment" "$LINENO" 5
2501      fi
2502      if test "$2" = conftest.file || test $am_try -eq 2; then
2503        break
2504      fi
2505      # Just in case.
2506      sleep 1
2507      am_has_slept=yes
2508    done
2509    test "$2" = conftest.file
2510    )
2511 then
2512    # Ok.
2513    :
2514 else
2515    as_fn_error $? "newly created file is older than distributed files!
2516 Check your system clock" "$LINENO" 5
2517 fi
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519 $as_echo "yes" >&6; }
2520 # If we didn't sleep, we still need to ensure time stamps of config.status and
2521 # generated files are strictly newer.
2522 am_sleep_pid=
2523 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2524   ( sleep 1 ) &
2525   am_sleep_pid=$!
2526 fi
2527
2528 rm -f conftest.file
2529
2530 test "$program_prefix" != NONE &&
2531   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2532 # Use a double $ so make ignores it.
2533 test "$program_suffix" != NONE &&
2534   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2535 # Double any \ or $.
2536 # By default was `s,x,x', remove it if useless.
2537 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2538 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2539
2540 # Expand $ac_aux_dir to an absolute path.
2541 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2542
2543 if test x"${MISSING+set}" != xset; then
2544   case $am_aux_dir in
2545   *\ * | *\     *)
2546     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2547   *)
2548     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2549   esac
2550 fi
2551 # Use eval to expand $SHELL
2552 if eval "$MISSING --is-lightweight"; then
2553   am_missing_run="$MISSING "
2554 else
2555   am_missing_run=
2556   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2557 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2558 fi
2559
2560 if test x"${install_sh+set}" != xset; then
2561   case $am_aux_dir in
2562   *\ * | *\     *)
2563     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2564   *)
2565     install_sh="\${SHELL} $am_aux_dir/install-sh"
2566   esac
2567 fi
2568
2569 # Installed binaries are usually stripped using 'strip' when the user
2570 # run "make install-strip".  However 'strip' might not be the right
2571 # tool to use in cross-compilation environments, therefore Automake
2572 # will honor the 'STRIP' environment variable to overrule this program.
2573 if test "$cross_compiling" != no; then
2574   if test -n "$ac_tool_prefix"; then
2575   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2576 set dummy ${ac_tool_prefix}strip; ac_word=$2
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578 $as_echo_n "checking for $ac_word... " >&6; }
2579 if ${ac_cv_prog_STRIP+:} false; then :
2580   $as_echo_n "(cached) " >&6
2581 else
2582   if test -n "$STRIP"; then
2583   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2584 else
2585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 for as_dir in $PATH
2587 do
2588   IFS=$as_save_IFS
2589   test -z "$as_dir" && as_dir=.
2590     for ac_exec_ext in '' $ac_executable_extensions; do
2591   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2592     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2593     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594     break 2
2595   fi
2596 done
2597   done
2598 IFS=$as_save_IFS
2599
2600 fi
2601 fi
2602 STRIP=$ac_cv_prog_STRIP
2603 if test -n "$STRIP"; then
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2605 $as_echo "$STRIP" >&6; }
2606 else
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608 $as_echo "no" >&6; }
2609 fi
2610
2611
2612 fi
2613 if test -z "$ac_cv_prog_STRIP"; then
2614   ac_ct_STRIP=$STRIP
2615   # Extract the first word of "strip", so it can be a program name with args.
2616 set dummy strip; ac_word=$2
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2618 $as_echo_n "checking for $ac_word... " >&6; }
2619 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2620   $as_echo_n "(cached) " >&6
2621 else
2622   if test -n "$ac_ct_STRIP"; then
2623   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2624 else
2625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630     for ac_exec_ext in '' $ac_executable_extensions; do
2631   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2632     ac_cv_prog_ac_ct_STRIP="strip"
2633     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634     break 2
2635   fi
2636 done
2637   done
2638 IFS=$as_save_IFS
2639
2640 fi
2641 fi
2642 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2643 if test -n "$ac_ct_STRIP"; then
2644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2645 $as_echo "$ac_ct_STRIP" >&6; }
2646 else
2647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2648 $as_echo "no" >&6; }
2649 fi
2650
2651   if test "x$ac_ct_STRIP" = x; then
2652     STRIP=":"
2653   else
2654     case $cross_compiling:$ac_tool_warned in
2655 yes:)
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2658 ac_tool_warned=yes ;;
2659 esac
2660     STRIP=$ac_ct_STRIP
2661   fi
2662 else
2663   STRIP="$ac_cv_prog_STRIP"
2664 fi
2665
2666 fi
2667 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2670 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2671 if test -z "$MKDIR_P"; then
2672   if ${ac_cv_path_mkdir+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2676 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2677 do
2678   IFS=$as_save_IFS
2679   test -z "$as_dir" && as_dir=.
2680     for ac_prog in mkdir gmkdir; do
2681          for ac_exec_ext in '' $ac_executable_extensions; do
2682            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2683            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2684              'mkdir (GNU coreutils) '* | \
2685              'mkdir (coreutils) '* | \
2686              'mkdir (fileutils) '4.1*)
2687                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2688                break 3;;
2689            esac
2690          done
2691        done
2692   done
2693 IFS=$as_save_IFS
2694
2695 fi
2696
2697   test -d ./--version && rmdir ./--version
2698   if test "${ac_cv_path_mkdir+set}" = set; then
2699     MKDIR_P="$ac_cv_path_mkdir -p"
2700   else
2701     # As a last resort, use the slow shell script.  Don't cache a
2702     # value for MKDIR_P within a source directory, because that will
2703     # break other packages using the cache if that directory is
2704     # removed, or if the value is a relative name.
2705     MKDIR_P="$ac_install_sh -d"
2706   fi
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2709 $as_echo "$MKDIR_P" >&6; }
2710
2711 for ac_prog in gawk mawk nawk awk
2712 do
2713   # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_AWK+:} false; then :
2718   $as_echo_n "(cached) " >&6
2719 else
2720   if test -n "$AWK"; then
2721   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2725 do
2726   IFS=$as_save_IFS
2727   test -z "$as_dir" && as_dir=.
2728     for ac_exec_ext in '' $ac_executable_extensions; do
2729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730     ac_cv_prog_AWK="$ac_prog"
2731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732     break 2
2733   fi
2734 done
2735   done
2736 IFS=$as_save_IFS
2737
2738 fi
2739 fi
2740 AWK=$ac_cv_prog_AWK
2741 if test -n "$AWK"; then
2742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2743 $as_echo "$AWK" >&6; }
2744 else
2745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2747 fi
2748
2749
2750   test -n "$AWK" && break
2751 done
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2754 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755 set x ${MAKE-make}
2756 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2757 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   cat >conftest.make <<\_ACEOF
2761 SHELL = /bin/sh
2762 all:
2763         @echo '@@@%%%=$(MAKE)=@@@%%%'
2764 _ACEOF
2765 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2766 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2767   *@@@%%%=?*=@@@%%%*)
2768     eval ac_cv_prog_make_${ac_make}_set=yes;;
2769   *)
2770     eval ac_cv_prog_make_${ac_make}_set=no;;
2771 esac
2772 rm -f conftest.make
2773 fi
2774 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2776 $as_echo "yes" >&6; }
2777   SET_MAKE=
2778 else
2779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2781   SET_MAKE="MAKE=${MAKE-make}"
2782 fi
2783
2784 rm -rf .tst 2>/dev/null
2785 mkdir .tst 2>/dev/null
2786 if test -d .tst; then
2787   am__leading_dot=.
2788 else
2789   am__leading_dot=_
2790 fi
2791 rmdir .tst 2>/dev/null
2792
2793 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2794   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2795   # is not polluted with repeated "-I."
2796   am__isrc=' -I$(srcdir)'
2797   # test to see if srcdir already configured
2798   if test -f $srcdir/config.status; then
2799     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800   fi
2801 fi
2802
2803 # test whether we have cygpath
2804 if test -z "$CYGPATH_W"; then
2805   if (cygpath --version) >/dev/null 2>/dev/null; then
2806     CYGPATH_W='cygpath -w'
2807   else
2808     CYGPATH_W=echo
2809   fi
2810 fi
2811
2812
2813 # Define the identity of the package.
2814  PACKAGE='pygobject'
2815  VERSION='3.27.5'
2816
2817
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE "$PACKAGE"
2820 _ACEOF
2821
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define VERSION "$VERSION"
2825 _ACEOF
2826
2827 # Some tools Automake needs.
2828
2829 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2830
2831
2832 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2833
2834
2835 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2836
2837
2838 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2839
2840
2841 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2842
2843 # For better backward compatibility.  To be removed once Automake 1.9.x
2844 # dies out for good.  For more background, see:
2845 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2846 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2847 mkdir_p='$(MKDIR_P)'
2848
2849 # We need awk for the "check" target (and possibly the TAP driver).  The
2850 # system "awk" is bad on some platforms.
2851 # Always define AMTAR for backward compatibility.  Yes, it's still used
2852 # in the wild :-(  We should find a proper way to deprecate it ...
2853 AMTAR='$${TAR-tar}'
2854
2855
2856 # We'll loop over all known methods to create a tar archive until one works.
2857 _am_tools='gnutar  pax cpio none'
2858
2859 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2860
2861
2862
2863
2864
2865
2866 # POSIX will say in a future version that running "rm -f" with no argument
2867 # is OK; and we want to be able to make that assumption in our Makefile
2868 # recipes.  So use an aggressive probe to check that the usage we want is
2869 # actually supported "in the wild" to an acceptable degree.
2870 # See automake bug#10828.
2871 # To make any issue more visible, cause the running configure to be aborted
2872 # by default if the 'rm' program in use doesn't match our expectations; the
2873 # user can still override this though.
2874 if rm -f && rm -fr && rm -rf; then : OK; else
2875   cat >&2 <<'END'
2876 Oops!
2877
2878 Your 'rm' program seems unable to run without file operands specified
2879 on the command line, even when the '-f' option is present.  This is contrary
2880 to the behaviour of most rm programs out there, and not conforming with
2881 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2882
2883 Please tell bug-automake@gnu.org about your system, including the value
2884 of your $PATH and any error possibly output before this message.  This
2885 can help us improve future automake versions.
2886
2887 END
2888   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2889     echo 'Configuration will proceed anyway, since you have set the' >&2
2890     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2891     echo >&2
2892   else
2893     cat >&2 <<'END'
2894 Aborting the configuration process, to ensure you take notice of the issue.
2895
2896 You can download and install GNU coreutils to get an 'rm' implementation
2897 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2898
2899 If you want to complete the configuration process using your problematic
2900 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2901 to "yes", and re-run configure.
2902
2903 END
2904     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2905   fi
2906 fi
2907
2908
2909 # Make sure we can run config.sub.
2910 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2911   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2912
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2914 $as_echo_n "checking build system type... " >&6; }
2915 if ${ac_cv_build+:} false; then :
2916   $as_echo_n "(cached) " >&6
2917 else
2918   ac_build_alias=$build_alias
2919 test "x$ac_build_alias" = x &&
2920   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2921 test "x$ac_build_alias" = x &&
2922   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2923 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2924   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2925
2926 fi
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2928 $as_echo "$ac_cv_build" >&6; }
2929 case $ac_cv_build in
2930 *-*-*) ;;
2931 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2932 esac
2933 build=$ac_cv_build
2934 ac_save_IFS=$IFS; IFS='-'
2935 set x $ac_cv_build
2936 shift
2937 build_cpu=$1
2938 build_vendor=$2
2939 shift; shift
2940 # Remember, the first character of IFS is used to create $*,
2941 # except with old shells:
2942 build_os=$*
2943 IFS=$ac_save_IFS
2944 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2945
2946
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2948 $as_echo_n "checking host system type... " >&6; }
2949 if ${ac_cv_host+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test "x$host_alias" = x; then
2953   ac_cv_host=$ac_cv_build
2954 else
2955   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2956     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2957 fi
2958
2959 fi
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2961 $as_echo "$ac_cv_host" >&6; }
2962 case $ac_cv_host in
2963 *-*-*) ;;
2964 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2965 esac
2966 host=$ac_cv_host
2967 ac_save_IFS=$IFS; IFS='-'
2968 set x $ac_cv_host
2969 shift
2970 host_cpu=$1
2971 host_vendor=$2
2972 shift; shift
2973 # Remember, the first character of IFS is used to create $*,
2974 # except with old shells:
2975 host_os=$*
2976 IFS=$ac_save_IFS
2977 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2978
2979
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Win32)" >&5
2981 $as_echo_n "checking for build time linking with Python (Win32)... " >&6; }
2982 case "$host" in
2983   *-*-mingw*|*-*-cygwin*)
2984     os_win32=yes
2985     link_python_libs=yes
2986     OS_EXT=dll
2987     ;;
2988   *-*-darwin*)
2989     os_win32=no
2990     link_python_libs=no
2991     OS_EXT=dylib
2992     ;;
2993   *)
2994     os_win32=no
2995     link_python_libs=no
2996     OS_EXT=so
2997     ;;
2998 esac
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
3000 $as_echo "$link_python_libs" >&6; }
3001  if test "$os_win32" = "yes"; then
3002   OS_WIN32_TRUE=
3003   OS_WIN32_FALSE='#'
3004 else
3005   OS_WIN32_TRUE='#'
3006   OS_WIN32_FALSE=
3007 fi
3008
3009
3010
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define OS_EXT "$OS_EXT"
3014 _ACEOF
3015
3016
3017
3018 case `pwd` in
3019   *\ * | *\     *)
3020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3021 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3022 esac
3023
3024
3025
3026 macro_version='2.4.6'
3027 macro_revision='2.4.6'
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041 ltmain=$ac_aux_dir/ltmain.sh
3042
3043 # Backslashify metacharacters that are still active within
3044 # double-quoted strings.
3045 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3046
3047 # Same as above, but do not quote variable references.
3048 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3049
3050 # Sed substitution to delay expansion of an escaped shell variable in a
3051 # double_quote_subst'ed string.
3052 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3053
3054 # Sed substitution to delay expansion of an escaped single quote.
3055 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3056
3057 # Sed substitution to avoid accidental globbing in evaled expressions
3058 no_glob_subst='s/\*/\\\*/g'
3059
3060 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3061 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3062 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3065 $as_echo_n "checking how to print strings... " >&6; }
3066 # Test print first, because it will be a builtin if present.
3067 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3068    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3069   ECHO='print -r --'
3070 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3071   ECHO='printf %s\n'
3072 else
3073   # Use this function as a fallback that always works.
3074   func_fallback_echo ()
3075   {
3076     eval 'cat <<_LTECHO_EOF
3077 $1
3078 _LTECHO_EOF'
3079   }
3080   ECHO='func_fallback_echo'
3081 fi
3082
3083 # func_echo_all arg...
3084 # Invoke $ECHO with all args, space-separated.
3085 func_echo_all ()
3086 {
3087     $ECHO ""
3088 }
3089
3090 case $ECHO in
3091   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3092 $as_echo "printf" >&6; } ;;
3093   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3094 $as_echo "print -r" >&6; } ;;
3095   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3096 $as_echo "cat" >&6; } ;;
3097 esac
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112 DEPDIR="${am__leading_dot}deps"
3113
3114 ac_config_commands="$ac_config_commands depfiles"
3115
3116
3117 am_make=${MAKE-make}
3118 cat > confinc << 'END'
3119 am__doit:
3120         @echo this is the am__doit target
3121 .PHONY: am__doit
3122 END
3123 # If we don't find an include directive, just comment out the code.
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3126 am__include="#"
3127 am__quote=
3128 _am_result=none
3129 # First try GNU make style include.
3130 echo "include confinc" > confmf
3131 # Ignore all kinds of additional output from 'make'.
3132 case `$am_make -s -f confmf 2> /dev/null` in #(
3133 *the\ am__doit\ target*)
3134   am__include=include
3135   am__quote=
3136   _am_result=GNU
3137   ;;
3138 esac
3139 # Now try BSD make style include.
3140 if test "$am__include" = "#"; then
3141    echo '.include "confinc"' > confmf
3142    case `$am_make -s -f confmf 2> /dev/null` in #(
3143    *the\ am__doit\ target*)
3144      am__include=.include
3145      am__quote="\""
3146      _am_result=BSD
3147      ;;
3148    esac
3149 fi
3150
3151
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153 $as_echo "$_am_result" >&6; }
3154 rm -f confinc confmf
3155
3156 # Check whether --enable-dependency-tracking was given.
3157 if test "${enable_dependency_tracking+set}" = set; then :
3158   enableval=$enable_dependency_tracking;
3159 fi
3160
3161 if test "x$enable_dependency_tracking" != xno; then
3162   am_depcomp="$ac_aux_dir/depcomp"
3163   AMDEPBACKSLASH='\'
3164   am__nodep='_no'
3165 fi
3166  if test "x$enable_dependency_tracking" != xno; then
3167   AMDEP_TRUE=
3168   AMDEP_FALSE='#'
3169 else
3170   AMDEP_TRUE='#'
3171   AMDEP_FALSE=
3172 fi
3173
3174
3175 ac_ext=c
3176 ac_cpp='$CPP $CPPFLAGS'
3177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180 if test -n "$ac_tool_prefix"; then
3181   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3182 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_prog_CC+:} false; then :
3186   $as_echo_n "(cached) " >&6
3187 else
3188   if test -n "$CC"; then
3189   ac_cv_prog_CC="$CC" # Let the user override the test.
3190 else
3191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3192 for as_dir in $PATH
3193 do
3194   IFS=$as_save_IFS
3195   test -z "$as_dir" && as_dir=.
3196     for ac_exec_ext in '' $ac_executable_extensions; do
3197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3198     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3200     break 2
3201   fi
3202 done
3203   done
3204 IFS=$as_save_IFS
3205
3206 fi
3207 fi
3208 CC=$ac_cv_prog_CC
3209 if test -n "$CC"; then
3210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3211 $as_echo "$CC" >&6; }
3212 else
3213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 fi
3216
3217
3218 fi
3219 if test -z "$ac_cv_prog_CC"; then
3220   ac_ct_CC=$CC
3221   # Extract the first word of "gcc", so it can be a program name with args.
3222 set dummy gcc; ac_word=$2
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224 $as_echo_n "checking for $ac_word... " >&6; }
3225 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3226   $as_echo_n "(cached) " >&6
3227 else
3228   if test -n "$ac_ct_CC"; then
3229   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3230 else
3231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232 for as_dir in $PATH
3233 do
3234   IFS=$as_save_IFS
3235   test -z "$as_dir" && as_dir=.
3236     for ac_exec_ext in '' $ac_executable_extensions; do
3237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3238     ac_cv_prog_ac_ct_CC="gcc"
3239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240     break 2
3241   fi
3242 done
3243   done
3244 IFS=$as_save_IFS
3245
3246 fi
3247 fi
3248 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3249 if test -n "$ac_ct_CC"; then
3250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3251 $as_echo "$ac_ct_CC" >&6; }
3252 else
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3255 fi
3256
3257   if test "x$ac_ct_CC" = x; then
3258     CC=""
3259   else
3260     case $cross_compiling:$ac_tool_warned in
3261 yes:)
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266     CC=$ac_ct_CC
3267   fi
3268 else
3269   CC="$ac_cv_prog_CC"
3270 fi
3271
3272 if test -z "$CC"; then
3273           if test -n "$ac_tool_prefix"; then
3274     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}cc; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if ${ac_cv_prog_CC+:} false; then :
3279   $as_echo_n "(cached) " >&6
3280 else
3281   if test -n "$CC"; then
3282   ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287   IFS=$as_save_IFS
3288   test -z "$as_dir" && as_dir=.
3289     for ac_exec_ext in '' $ac_executable_extensions; do
3290   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291     ac_cv_prog_CC="${ac_tool_prefix}cc"
3292     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293     break 2
3294   fi
3295 done
3296   done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3304 $as_echo "$CC" >&6; }
3305 else
3306   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 fi
3309
3310
3311   fi
3312 fi
3313 if test -z "$CC"; then
3314   # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3317 $as_echo_n "checking for $ac_word... " >&6; }
3318 if ${ac_cv_prog_CC+:} false; then :
3319   $as_echo_n "(cached) " >&6
3320 else
3321   if test -n "$CC"; then
3322   ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324   ac_prog_rejected=no
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328   IFS=$as_save_IFS
3329   test -z "$as_dir" && as_dir=.
3330     for ac_exec_ext in '' $ac_executable_extensions; do
3331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3332     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333        ac_prog_rejected=yes
3334        continue
3335      fi
3336     ac_cv_prog_CC="cc"
3337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3338     break 2
3339   fi
3340 done
3341   done
3342 IFS=$as_save_IFS
3343
3344 if test $ac_prog_rejected = yes; then
3345   # We found a bogon in the path, so make sure we never use it.
3346   set dummy $ac_cv_prog_CC
3347   shift
3348   if test $# != 0; then
3349     # We chose a different compiler from the bogus one.
3350     # However, it has the same basename, so the bogon will be chosen
3351     # first if we set CC to just the basename; use the full file name.
3352     shift
3353     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3354   fi
3355 fi
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3362 else
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367
3368 fi
3369 if test -z "$CC"; then
3370   if test -n "$ac_tool_prefix"; then
3371   for ac_prog in cl.exe
3372   do
3373     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CC+:} false; then :
3378   $as_echo_n "(cached) " >&6
3379 else
3380   if test -n "$CC"; then
3381   ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386   IFS=$as_save_IFS
3387   test -z "$as_dir" && as_dir=.
3388     for ac_exec_ext in '' $ac_executable_extensions; do
3389   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3390     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3392     break 2
3393   fi
3394 done
3395   done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3403 $as_echo "$CC" >&6; }
3404 else
3405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3407 fi
3408
3409
3410     test -n "$CC" && break
3411   done
3412 fi
3413 if test -z "$CC"; then
3414   ac_ct_CC=$CC
3415   for ac_prog in cl.exe
3416 do
3417   # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3422   $as_echo_n "(cached) " >&6
3423 else
3424   if test -n "$ac_ct_CC"; then
3425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432     for ac_exec_ext in '' $ac_executable_extensions; do
3433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3434     ac_cv_prog_ac_ct_CC="$ac_prog"
3435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439   done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3448 else
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 fi
3452
3453
3454   test -n "$ac_ct_CC" && break
3455 done
3456
3457   if test "x$ac_ct_CC" = x; then
3458     CC=""
3459   else
3460     case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3465 esac
3466     CC=$ac_ct_CC
3467   fi
3468 fi
3469
3470 fi
3471
3472
3473 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error $? "no acceptable C compiler found in \$PATH
3476 See \`config.log' for more details" "$LINENO" 5; }
3477
3478 # Provide some information about the compiler.
3479 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3480 set X $ac_compile
3481 ac_compiler=$2
3482 for ac_option in --version -v -V -qversion; do
3483   { { ac_try="$ac_compiler $ac_option >&5"
3484 case "(($ac_try" in
3485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486   *) ac_try_echo=$ac_try;;
3487 esac
3488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3489 $as_echo "$ac_try_echo"; } >&5
3490   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3491   ac_status=$?
3492   if test -s conftest.err; then
3493     sed '10a\
3494 ... rest of stderr output deleted ...
3495          10q' conftest.err >conftest.er1
3496     cat conftest.er1 >&5
3497   fi
3498   rm -f conftest.er1 conftest.err
3499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3500   test $ac_status = 0; }
3501 done
3502
3503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 /* end confdefs.h.  */
3505
3506 int
3507 main ()
3508 {
3509
3510   ;
3511   return 0;
3512 }
3513 _ACEOF
3514 ac_clean_files_save=$ac_clean_files
3515 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3516 # Try to create an executable without -o first, disregard a.out.
3517 # It will help us diagnose broken compilers, and finding out an intuition
3518 # of exeext.
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3520 $as_echo_n "checking whether the C compiler works... " >&6; }
3521 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3522
3523 # The possible output files:
3524 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3525
3526 ac_rmfiles=
3527 for ac_file in $ac_files
3528 do
3529   case $ac_file in
3530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3532   esac
3533 done
3534 rm -f $ac_rmfiles
3535
3536 if { { ac_try="$ac_link_default"
3537 case "(($ac_try" in
3538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539   *) ac_try_echo=$ac_try;;
3540 esac
3541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3542 $as_echo "$ac_try_echo"; } >&5
3543   (eval "$ac_link_default") 2>&5
3544   ac_status=$?
3545   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3546   test $ac_status = 0; }; then :
3547   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3548 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3549 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3550 # so that the user can short-circuit this test for compilers unknown to
3551 # Autoconf.
3552 for ac_file in $ac_files ''
3553 do
3554   test -f "$ac_file" || continue
3555   case $ac_file in
3556     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3557         ;;
3558     [ab].out )
3559         # We found the default executable, but exeext='' is most
3560         # certainly right.
3561         break;;
3562     *.* )
3563         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3564         then :; else
3565            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3566         fi
3567         # We set ac_cv_exeext here because the later test for it is not
3568         # safe: cross compilers may not add the suffix if given an `-o'
3569         # argument, so we may need to know it at that point already.
3570         # Even if this section looks crufty: it has the advantage of
3571         # actually working.
3572         break;;
3573     * )
3574         break;;
3575   esac
3576 done
3577 test "$ac_cv_exeext" = no && ac_cv_exeext=
3578
3579 else
3580   ac_file=''
3581 fi
3582 if test -z "$ac_file"; then :
3583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3585 $as_echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3589 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3590 as_fn_error 77 "C compiler cannot create executables
3591 See \`config.log' for more details" "$LINENO" 5; }
3592 else
3593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595 fi
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597 $as_echo_n "checking for C compiler default output file name... " >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599 $as_echo "$ac_file" >&6; }
3600 ac_exeext=$ac_cv_exeext
3601
3602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 ac_clean_files=$ac_clean_files_save
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 $as_echo_n "checking for suffix of executables... " >&6; }
3606 if { { ac_try="$ac_link"
3607 case "(($ac_try" in
3608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609   *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613   (eval "$ac_link") 2>&5
3614   ac_status=$?
3615   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616   test $ac_status = 0; }; then :
3617   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3619 # work properly (i.e., refer to `conftest.exe'), while it won't with
3620 # `rm'.
3621 for ac_file in conftest.exe conftest conftest.*; do
3622   test -f "$ac_file" || continue
3623   case $ac_file in
3624     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626           break;;
3627     * ) break;;
3628   esac
3629 done
3630 else
3631   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3634 See \`config.log' for more details" "$LINENO" 5; }
3635 fi
3636 rm -f conftest conftest$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 $as_echo "$ac_cv_exeext" >&6; }
3639
3640 rm -f conftest.$ac_ext
3641 EXEEXT=$ac_cv_exeext
3642 ac_exeext=$EXEEXT
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h.  */
3645 #include <stdio.h>
3646 int
3647 main ()
3648 {
3649 FILE *f = fopen ("conftest.out", "w");
3650  return ferror (f) || fclose (f) != 0;
3651
3652   ;
3653   return 0;
3654 }
3655 _ACEOF
3656 ac_clean_files="$ac_clean_files conftest.out"
3657 # Check that the compiler produces executables we can run.  If not, either
3658 # the compiler is broken, or we cross compile.
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660 $as_echo_n "checking whether we are cross compiling... " >&6; }
3661 if test "$cross_compiling" != yes; then
3662   { { ac_try="$ac_link"
3663 case "(($ac_try" in
3664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665   *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668 $as_echo "$ac_try_echo"; } >&5
3669   (eval "$ac_link") 2>&5
3670   ac_status=$?
3671   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672   test $ac_status = 0; }
3673   if { ac_try='./conftest$ac_cv_exeext'
3674   { { case "(($ac_try" in
3675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676   *) ac_try_echo=$ac_try;;
3677 esac
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680   (eval "$ac_try") 2>&5
3681   ac_status=$?
3682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683   test $ac_status = 0; }; }; then
3684     cross_compiling=no
3685   else
3686     if test "$cross_compiling" = maybe; then
3687         cross_compiling=yes
3688     else
3689         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error $? "cannot run C compiled programs.
3692 If you meant to cross compile, use \`--host'.
3693 See \`config.log' for more details" "$LINENO" 5; }
3694     fi
3695   fi
3696 fi
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698 $as_echo "$cross_compiling" >&6; }
3699
3700 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701 ac_clean_files=$ac_clean_files_save
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 $as_echo_n "checking for suffix of object files... " >&6; }
3704 if ${ac_cv_objext+:} false; then :
3705   $as_echo_n "(cached) " >&6
3706 else
3707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713
3714   ;
3715   return 0;
3716 }
3717 _ACEOF
3718 rm -f conftest.o conftest.obj
3719 if { { ac_try="$ac_compile"
3720 case "(($ac_try" in
3721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722   *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 $as_echo "$ac_try_echo"; } >&5
3726   (eval "$ac_compile") 2>&5
3727   ac_status=$?
3728   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729   test $ac_status = 0; }; then :
3730   for ac_file in conftest.o conftest.obj conftest.*; do
3731   test -f "$ac_file" || continue;
3732   case $ac_file in
3733     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735        break;;
3736   esac
3737 done
3738 else
3739   $as_echo "$as_me: failed program was:" >&5
3740 sed 's/^/| /' conftest.$ac_ext >&5
3741
3742 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 as_fn_error $? "cannot compute suffix of object files: cannot compile
3745 See \`config.log' for more details" "$LINENO" 5; }
3746 fi
3747 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748 fi
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 $as_echo "$ac_cv_objext" >&6; }
3751 OBJEXT=$ac_cv_objext
3752 ac_objext=$OBJEXT
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 if ${ac_cv_c_compiler_gnu+:} false; then :
3756   $as_echo_n "(cached) " >&6
3757 else
3758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* end confdefs.h.  */
3760
3761 int
3762 main ()
3763 {
3764 #ifndef __GNUC__
3765        choke me
3766 #endif
3767
3768   ;
3769   return 0;
3770 }
3771 _ACEOF
3772 if ac_fn_c_try_compile "$LINENO"; then :
3773   ac_compiler_gnu=yes
3774 else
3775   ac_compiler_gnu=no
3776 fi
3777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3779
3780 fi
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783 if test $ac_compiler_gnu = yes; then
3784   GCC=yes
3785 else
3786   GCC=
3787 fi
3788 ac_test_CFLAGS=${CFLAGS+set}
3789 ac_save_CFLAGS=$CFLAGS
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 if ${ac_cv_prog_cc_g+:} false; then :
3793   $as_echo_n "(cached) " >&6
3794 else
3795   ac_save_c_werror_flag=$ac_c_werror_flag
3796    ac_c_werror_flag=yes
3797    ac_cv_prog_cc_g=no
3798    CFLAGS="-g"
3799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h.  */
3801
3802 int
3803 main ()
3804 {
3805
3806   ;
3807   return 0;
3808 }
3809 _ACEOF
3810 if ac_fn_c_try_compile "$LINENO"; then :
3811   ac_cv_prog_cc_g=yes
3812 else
3813   CFLAGS=""
3814       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h.  */
3816
3817 int
3818 main ()
3819 {
3820
3821   ;
3822   return 0;
3823 }
3824 _ACEOF
3825 if ac_fn_c_try_compile "$LINENO"; then :
3826
3827 else
3828   ac_c_werror_flag=$ac_save_c_werror_flag
3829          CFLAGS="-g"
3830          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832
3833 int
3834 main ()
3835 {
3836
3837   ;
3838   return 0;
3839 }
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842   ac_cv_prog_cc_g=yes
3843 fi
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 fi
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847 fi
3848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849    ac_c_werror_flag=$ac_save_c_werror_flag
3850 fi
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 if test "$ac_test_CFLAGS" = set; then
3854   CFLAGS=$ac_save_CFLAGS
3855 elif test $ac_cv_prog_cc_g = yes; then
3856   if test "$GCC" = yes; then
3857     CFLAGS="-g -O2"
3858   else
3859     CFLAGS="-g"
3860   fi
3861 else
3862   if test "$GCC" = yes; then
3863     CFLAGS="-O2"
3864   else
3865     CFLAGS=
3866   fi
3867 fi
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 if ${ac_cv_prog_cc_c89+:} false; then :
3871   $as_echo_n "(cached) " >&6
3872 else
3873   ac_cv_prog_cc_c89=no
3874 ac_save_CC=$CC
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877 #include <stdarg.h>
3878 #include <stdio.h>
3879 struct stat;
3880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3881 struct buf { int x; };
3882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3883 static char *e (p, i)
3884      char **p;
3885      int i;
3886 {
3887   return p[i];
3888 }
3889 static char *f (char * (*g) (char **, int), char **p, ...)
3890 {
3891   char *s;
3892   va_list v;
3893   va_start (v,p);
3894   s = g (p, va_arg (v,int));
3895   va_end (v);
3896   return s;
3897 }
3898
3899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3900    function prototypes and stuff, but not '\xHH' hex character constants.
3901    These don't provoke an error unfortunately, instead are silently treated
3902    as 'x'.  The following induces an error, until -std is added to get
3903    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3904    array size at least.  It's necessary to write '\x00'==0 to get something
3905    that's true only with -std.  */
3906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3907
3908 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3909    inside strings and character constants.  */
3910 #define FOO(x) 'x'
3911 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3912
3913 int test (int i, double x);
3914 struct s1 {int (*f) (int a);};
3915 struct s2 {int (*f) (double a);};
3916 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3917 int argc;
3918 char **argv;
3919 int
3920 main ()
3921 {
3922 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3923   ;
3924   return 0;
3925 }
3926 _ACEOF
3927 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3928         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3929 do
3930   CC="$ac_save_CC $ac_arg"
3931   if ac_fn_c_try_compile "$LINENO"; then :
3932   ac_cv_prog_cc_c89=$ac_arg
3933 fi
3934 rm -f core conftest.err conftest.$ac_objext
3935   test "x$ac_cv_prog_cc_c89" != "xno" && break
3936 done
3937 rm -f conftest.$ac_ext
3938 CC=$ac_save_CC
3939
3940 fi
3941 # AC_CACHE_VAL
3942 case "x$ac_cv_prog_cc_c89" in
3943   x)
3944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3945 $as_echo "none needed" >&6; } ;;
3946   xno)
3947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3948 $as_echo "unsupported" >&6; } ;;
3949   *)
3950     CC="$CC $ac_cv_prog_cc_c89"
3951     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3952 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3953 esac
3954 if test "x$ac_cv_prog_cc_c89" != xno; then :
3955
3956 fi
3957
3958 ac_ext=c
3959 ac_cpp='$CPP $CPPFLAGS'
3960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3963
3964 ac_ext=c
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3970 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3971 if ${am_cv_prog_cc_c_o+:} false; then :
3972   $as_echo_n "(cached) " >&6
3973 else
3974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3975 /* end confdefs.h.  */
3976
3977 int
3978 main ()
3979 {
3980
3981   ;
3982   return 0;
3983 }
3984 _ACEOF
3985   # Make sure it works both with $CC and with simple cc.
3986   # Following AC_PROG_CC_C_O, we do the test twice because some
3987   # compilers refuse to overwrite an existing .o file with -o,
3988   # though they will create one.
3989   am_cv_prog_cc_c_o=yes
3990   for am_i in 1 2; do
3991     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3992    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3993    ac_status=$?
3994    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995    (exit $ac_status); } \
3996          && test -f conftest2.$ac_objext; then
3997       : OK
3998     else
3999       am_cv_prog_cc_c_o=no
4000       break
4001     fi
4002   done
4003   rm -f core conftest*
4004   unset am_i
4005 fi
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4007 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4008 if test "$am_cv_prog_cc_c_o" != yes; then
4009    # Losing compiler, so override with the script.
4010    # FIXME: It is wrong to rewrite CC.
4011    # But if we don't then we get into trouble of one sort or another.
4012    # A longer-term fix would be to have automake use am__CC in this case,
4013    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4014    CC="$am_aux_dir/compile $CC"
4015 fi
4016 ac_ext=c
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021
4022
4023 depcc="$CC"   am_compiler_list=
4024
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4026 $as_echo_n "checking dependency style of $depcc... " >&6; }
4027 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4028   $as_echo_n "(cached) " >&6
4029 else
4030   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4031   # We make a subdir and do the tests there.  Otherwise we can end up
4032   # making bogus files that we don't know about and never remove.  For
4033   # instance it was reported that on HP-UX the gcc test will end up
4034   # making a dummy file named 'D' -- because '-MD' means "put the output
4035   # in D".
4036   rm -rf conftest.dir
4037   mkdir conftest.dir
4038   # Copy depcomp to subdir because otherwise we won't find it if we're
4039   # using a relative directory.
4040   cp "$am_depcomp" conftest.dir
4041   cd conftest.dir
4042   # We will build objects and dependencies in a subdirectory because
4043   # it helps to detect inapplicable dependency modes.  For instance
4044   # both Tru64's cc and ICC support -MD to output dependencies as a
4045   # side effect of compilation, but ICC will put the dependencies in
4046   # the current directory while Tru64 will put them in the object
4047   # directory.
4048   mkdir sub
4049
4050   am_cv_CC_dependencies_compiler_type=none
4051   if test "$am_compiler_list" = ""; then
4052      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4053   fi
4054   am__universal=false
4055   case " $depcc " in #(
4056      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4057      esac
4058
4059   for depmode in $am_compiler_list; do
4060     # Setup a source with many dependencies, because some compilers
4061     # like to wrap large dependency lists on column 80 (with \), and
4062     # we should not choose a depcomp mode which is confused by this.
4063     #
4064     # We need to recreate these files for each test, as the compiler may
4065     # overwrite some of them when testing with obscure command lines.
4066     # This happens at least with the AIX C compiler.
4067     : > sub/conftest.c
4068     for i in 1 2 3 4 5 6; do
4069       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4070       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4071       # Solaris 10 /bin/sh.
4072       echo '/* dummy */' > sub/conftst$i.h
4073     done
4074     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4075
4076     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4077     # mode.  It turns out that the SunPro C++ compiler does not properly
4078     # handle '-M -o', and we need to detect this.  Also, some Intel
4079     # versions had trouble with output in subdirs.
4080     am__obj=sub/conftest.${OBJEXT-o}
4081     am__minus_obj="-o $am__obj"
4082     case $depmode in
4083     gcc)
4084       # This depmode causes a compiler race in universal mode.
4085       test "$am__universal" = false || continue
4086       ;;
4087     nosideeffect)
4088       # After this tag, mechanisms are not by side-effect, so they'll
4089       # only be used when explicitly requested.
4090       if test "x$enable_dependency_tracking" = xyes; then
4091         continue
4092       else
4093         break
4094       fi
4095       ;;
4096     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4097       # This compiler won't grok '-c -o', but also, the minuso test has
4098       # not run yet.  These depmodes are late enough in the game, and
4099       # so weak that their functioning should not be impacted.
4100       am__obj=conftest.${OBJEXT-o}
4101       am__minus_obj=
4102       ;;
4103     none) break ;;
4104     esac
4105     if depmode=$depmode \
4106        source=sub/conftest.c object=$am__obj \
4107        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4108        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4109          >/dev/null 2>conftest.err &&
4110        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4111        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4112        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4113        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4114       # icc doesn't choke on unknown options, it will just issue warnings
4115       # or remarks (even with -Werror).  So we grep stderr for any message
4116       # that says an option was ignored or not supported.
4117       # When given -MP, icc 7.0 and 7.1 complain thusly:
4118       #   icc: Command line warning: ignoring option '-M'; no argument required
4119       # The diagnosis changed in icc 8.0:
4120       #   icc: Command line remark: option '-MP' not supported
4121       if (grep 'ignoring option' conftest.err ||
4122           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4123         am_cv_CC_dependencies_compiler_type=$depmode
4124         break
4125       fi
4126     fi
4127   done
4128
4129   cd ..
4130   rm -rf conftest.dir
4131 else
4132   am_cv_CC_dependencies_compiler_type=none
4133 fi
4134
4135 fi
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4137 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4138 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4139
4140  if
4141   test "x$enable_dependency_tracking" != xno \
4142   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4143   am__fastdepCC_TRUE=
4144   am__fastdepCC_FALSE='#'
4145 else
4146   am__fastdepCC_TRUE='#'
4147   am__fastdepCC_FALSE=
4148 fi
4149
4150
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4152 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4153 if ${ac_cv_path_SED+:} false; then :
4154   $as_echo_n "(cached) " >&6
4155 else
4156             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4157      for ac_i in 1 2 3 4 5 6 7; do
4158        ac_script="$ac_script$as_nl$ac_script"
4159      done
4160      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4161      { ac_script=; unset ac_script;}
4162      if test -z "$SED"; then
4163   ac_path_SED_found=false
4164   # Loop through the user's path and test for each of PROGNAME-LIST
4165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168   IFS=$as_save_IFS
4169   test -z "$as_dir" && as_dir=.
4170     for ac_prog in sed gsed; do
4171     for ac_exec_ext in '' $ac_executable_extensions; do
4172       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4173       as_fn_executable_p "$ac_path_SED" || continue
4174 # Check for GNU ac_path_SED and select it if it is found.
4175   # Check for GNU $ac_path_SED
4176 case `"$ac_path_SED" --version 2>&1` in
4177 *GNU*)
4178   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4179 *)
4180   ac_count=0
4181   $as_echo_n 0123456789 >"conftest.in"
4182   while :
4183   do
4184     cat "conftest.in" "conftest.in" >"conftest.tmp"
4185     mv "conftest.tmp" "conftest.in"
4186     cp "conftest.in" "conftest.nl"
4187     $as_echo '' >> "conftest.nl"
4188     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4189     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4190     as_fn_arith $ac_count + 1 && ac_count=$as_val
4191     if test $ac_count -gt ${ac_path_SED_max-0}; then
4192       # Best one so far, save it but keep looking for a better one
4193       ac_cv_path_SED="$ac_path_SED"
4194       ac_path_SED_max=$ac_count
4195     fi
4196     # 10*(2^10) chars as input seems more than enough
4197     test $ac_count -gt 10 && break
4198   done
4199   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4200 esac
4201
4202       $ac_path_SED_found && break 3
4203     done
4204   done
4205   done
4206 IFS=$as_save_IFS
4207   if test -z "$ac_cv_path_SED"; then
4208     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4209   fi
4210 else
4211   ac_cv_path_SED=$SED
4212 fi
4213
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4216 $as_echo "$ac_cv_path_SED" >&6; }
4217  SED="$ac_cv_path_SED"
4218   rm -f conftest.sed
4219
4220 test -z "$SED" && SED=sed
4221 Xsed="$SED -e 1s/^X//"
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4234 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4235 if ${ac_cv_path_GREP+:} false; then :
4236   $as_echo_n "(cached) " >&6
4237 else
4238   if test -z "$GREP"; then
4239   ac_path_GREP_found=false
4240   # Loop through the user's path and test for each of PROGNAME-LIST
4241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4243 do
4244   IFS=$as_save_IFS
4245   test -z "$as_dir" && as_dir=.
4246     for ac_prog in grep ggrep; do
4247     for ac_exec_ext in '' $ac_executable_extensions; do
4248       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4249       as_fn_executable_p "$ac_path_GREP" || continue
4250 # Check for GNU ac_path_GREP and select it if it is found.
4251   # Check for GNU $ac_path_GREP
4252 case `"$ac_path_GREP" --version 2>&1` in
4253 *GNU*)
4254   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4255 *)
4256   ac_count=0
4257   $as_echo_n 0123456789 >"conftest.in"
4258   while :
4259   do
4260     cat "conftest.in" "conftest.in" >"conftest.tmp"
4261     mv "conftest.tmp" "conftest.in"
4262     cp "conftest.in" "conftest.nl"
4263     $as_echo 'GREP' >> "conftest.nl"
4264     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4265     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4266     as_fn_arith $ac_count + 1 && ac_count=$as_val
4267     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4268       # Best one so far, save it but keep looking for a better one
4269       ac_cv_path_GREP="$ac_path_GREP"
4270       ac_path_GREP_max=$ac_count
4271     fi
4272     # 10*(2^10) chars as input seems more than enough
4273     test $ac_count -gt 10 && break
4274   done
4275   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276 esac
4277
4278       $ac_path_GREP_found && break 3
4279     done
4280   done
4281   done
4282 IFS=$as_save_IFS
4283   if test -z "$ac_cv_path_GREP"; then
4284     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4285   fi
4286 else
4287   ac_cv_path_GREP=$GREP
4288 fi
4289
4290 fi
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4292 $as_echo "$ac_cv_path_GREP" >&6; }
4293  GREP="$ac_cv_path_GREP"
4294
4295
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4297 $as_echo_n "checking for egrep... " >&6; }
4298 if ${ac_cv_path_EGREP+:} false; then :
4299   $as_echo_n "(cached) " >&6
4300 else
4301   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4302    then ac_cv_path_EGREP="$GREP -E"
4303    else
4304      if test -z "$EGREP"; then
4305   ac_path_EGREP_found=false
4306   # Loop through the user's path and test for each of PROGNAME-LIST
4307   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4309 do
4310   IFS=$as_save_IFS
4311   test -z "$as_dir" && as_dir=.
4312     for ac_prog in egrep; do
4313     for ac_exec_ext in '' $ac_executable_extensions; do
4314       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4315       as_fn_executable_p "$ac_path_EGREP" || continue
4316 # Check for GNU ac_path_EGREP and select it if it is found.
4317   # Check for GNU $ac_path_EGREP
4318 case `"$ac_path_EGREP" --version 2>&1` in
4319 *GNU*)
4320   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4321 *)
4322   ac_count=0
4323   $as_echo_n 0123456789 >"conftest.in"
4324   while :
4325   do
4326     cat "conftest.in" "conftest.in" >"conftest.tmp"
4327     mv "conftest.tmp" "conftest.in"
4328     cp "conftest.in" "conftest.nl"
4329     $as_echo 'EGREP' >> "conftest.nl"
4330     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4331     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4332     as_fn_arith $ac_count + 1 && ac_count=$as_val
4333     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4334       # Best one so far, save it but keep looking for a better one
4335       ac_cv_path_EGREP="$ac_path_EGREP"
4336       ac_path_EGREP_max=$ac_count
4337     fi
4338     # 10*(2^10) chars as input seems more than enough
4339     test $ac_count -gt 10 && break
4340   done
4341   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4342 esac
4343
4344       $ac_path_EGREP_found && break 3
4345     done
4346   done
4347   done
4348 IFS=$as_save_IFS
4349   if test -z "$ac_cv_path_EGREP"; then
4350     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4351   fi
4352 else
4353   ac_cv_path_EGREP=$EGREP
4354 fi
4355
4356    fi
4357 fi
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4359 $as_echo "$ac_cv_path_EGREP" >&6; }
4360  EGREP="$ac_cv_path_EGREP"
4361
4362
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4364 $as_echo_n "checking for fgrep... " >&6; }
4365 if ${ac_cv_path_FGREP+:} false; then :
4366   $as_echo_n "(cached) " >&6
4367 else
4368   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4369    then ac_cv_path_FGREP="$GREP -F"
4370    else
4371      if test -z "$FGREP"; then
4372   ac_path_FGREP_found=false
4373   # Loop through the user's path and test for each of PROGNAME-LIST
4374   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376 do
4377   IFS=$as_save_IFS
4378   test -z "$as_dir" && as_dir=.
4379     for ac_prog in fgrep; do
4380     for ac_exec_ext in '' $ac_executable_extensions; do
4381       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4382       as_fn_executable_p "$ac_path_FGREP" || continue
4383 # Check for GNU ac_path_FGREP and select it if it is found.
4384   # Check for GNU $ac_path_FGREP
4385 case `"$ac_path_FGREP" --version 2>&1` in
4386 *GNU*)
4387   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4388 *)
4389   ac_count=0
4390   $as_echo_n 0123456789 >"conftest.in"
4391   while :
4392   do
4393     cat "conftest.in" "conftest.in" >"conftest.tmp"
4394     mv "conftest.tmp" "conftest.in"
4395     cp "conftest.in" "conftest.nl"
4396     $as_echo 'FGREP' >> "conftest.nl"
4397     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399     as_fn_arith $ac_count + 1 && ac_count=$as_val
4400     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4401       # Best one so far, save it but keep looking for a better one
4402       ac_cv_path_FGREP="$ac_path_FGREP"
4403       ac_path_FGREP_max=$ac_count
4404     fi
4405     # 10*(2^10) chars as input seems more than enough
4406     test $ac_count -gt 10 && break
4407   done
4408   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4410
4411       $ac_path_FGREP_found && break 3
4412     done
4413   done
4414   done
4415 IFS=$as_save_IFS
4416   if test -z "$ac_cv_path_FGREP"; then
4417     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4418   fi
4419 else
4420   ac_cv_path_FGREP=$FGREP
4421 fi
4422
4423    fi
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4426 $as_echo "$ac_cv_path_FGREP" >&6; }
4427  FGREP="$ac_cv_path_FGREP"
4428
4429
4430 test -z "$GREP" && GREP=grep
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450 # Check whether --with-gnu-ld was given.
4451 if test "${with_gnu_ld+set}" = set; then :
4452   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4453 else
4454   with_gnu_ld=no
4455 fi
4456
4457 ac_prog=ld
4458 if test yes = "$GCC"; then
4459   # Check if gcc -print-prog-name=ld gives a path.
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4461 $as_echo_n "checking for ld used by $CC... " >&6; }
4462   case $host in
4463   *-*-mingw*)
4464     # gcc leaves a trailing carriage return, which upsets mingw
4465     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4466   *)
4467     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4468   esac
4469   case $ac_prog in
4470     # Accept absolute paths.
4471     [\\/]* | ?:[\\/]*)
4472       re_direlt='/[^/][^/]*/\.\./'
4473       # Canonicalize the pathname of ld
4474       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4475       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4476         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4477       done
4478       test -z "$LD" && LD=$ac_prog
4479       ;;
4480   "")
4481     # If it fails, then pretend we aren't using GCC.
4482     ac_prog=ld
4483     ;;
4484   *)
4485     # If it is relative, then search for the first ld in PATH.
4486     with_gnu_ld=unknown
4487     ;;
4488   esac
4489 elif test yes = "$with_gnu_ld"; then
4490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4491 $as_echo_n "checking for GNU ld... " >&6; }
4492 else
4493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4494 $as_echo_n "checking for non-GNU ld... " >&6; }
4495 fi
4496 if ${lt_cv_path_LD+:} false; then :
4497   $as_echo_n "(cached) " >&6
4498 else
4499   if test -z "$LD"; then
4500   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4501   for ac_dir in $PATH; do
4502     IFS=$lt_save_ifs
4503     test -z "$ac_dir" && ac_dir=.
4504     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4505       lt_cv_path_LD=$ac_dir/$ac_prog
4506       # Check to see if the program is GNU ld.  I'd rather use --version,
4507       # but apparently some variants of GNU ld only accept -v.
4508       # Break only if it was the GNU/non-GNU ld that we prefer.
4509       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4510       *GNU* | *'with BFD'*)
4511         test no != "$with_gnu_ld" && break
4512         ;;
4513       *)
4514         test yes != "$with_gnu_ld" && break
4515         ;;
4516       esac
4517     fi
4518   done
4519   IFS=$lt_save_ifs
4520 else
4521   lt_cv_path_LD=$LD # Let the user override the test with a path.
4522 fi
4523 fi
4524
4525 LD=$lt_cv_path_LD
4526 if test -n "$LD"; then
4527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4528 $as_echo "$LD" >&6; }
4529 else
4530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4532 fi
4533 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4535 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4536 if ${lt_cv_prog_gnu_ld+:} false; then :
4537   $as_echo_n "(cached) " >&6
4538 else
4539   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4540 case `$LD -v 2>&1 </dev/null` in
4541 *GNU* | *'with BFD'*)
4542   lt_cv_prog_gnu_ld=yes
4543   ;;
4544 *)
4545   lt_cv_prog_gnu_ld=no
4546   ;;
4547 esac
4548 fi
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4550 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4551 with_gnu_ld=$lt_cv_prog_gnu_ld
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4562 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4563 if ${lt_cv_path_NM+:} false; then :
4564   $as_echo_n "(cached) " >&6
4565 else
4566   if test -n "$NM"; then
4567   # Let the user override the test.
4568   lt_cv_path_NM=$NM
4569 else
4570   lt_nm_to_check=${ac_tool_prefix}nm
4571   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4572     lt_nm_to_check="$lt_nm_to_check nm"
4573   fi
4574   for lt_tmp_nm in $lt_nm_to_check; do
4575     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4576     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4577       IFS=$lt_save_ifs
4578       test -z "$ac_dir" && ac_dir=.
4579       tmp_nm=$ac_dir/$lt_tmp_nm
4580       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4581         # Check to see if the nm accepts a BSD-compat flag.
4582         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4583         #   nm: unknown option "B" ignored
4584         # Tru64's nm complains that /dev/null is an invalid object file
4585         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4586         case $build_os in
4587         mingw*) lt_bad_file=conftest.nm/nofile ;;
4588         *) lt_bad_file=/dev/null ;;
4589         esac
4590         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4591         *$lt_bad_file* | *'Invalid file or object type'*)
4592           lt_cv_path_NM="$tmp_nm -B"
4593           break 2
4594           ;;
4595         *)
4596           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4597           */dev/null*)
4598             lt_cv_path_NM="$tmp_nm -p"
4599             break 2
4600             ;;
4601           *)
4602             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4603             continue # so that we can try to find one that supports BSD flags
4604             ;;
4605           esac
4606           ;;
4607         esac
4608       fi
4609     done
4610     IFS=$lt_save_ifs
4611   done
4612   : ${lt_cv_path_NM=no}
4613 fi
4614 fi
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4616 $as_echo "$lt_cv_path_NM" >&6; }
4617 if test no != "$lt_cv_path_NM"; then
4618   NM=$lt_cv_path_NM
4619 else
4620   # Didn't find any BSD compatible name lister, look for dumpbin.
4621   if test -n "$DUMPBIN"; then :
4622     # Let the user override the test.
4623   else
4624     if test -n "$ac_tool_prefix"; then
4625   for ac_prog in dumpbin "link -dump"
4626   do
4627     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4628 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if ${ac_cv_prog_DUMPBIN+:} false; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   if test -n "$DUMPBIN"; then
4635   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4636 else
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 for as_dir in $PATH
4639 do
4640   IFS=$as_save_IFS
4641   test -z "$as_dir" && as_dir=.
4642     for ac_exec_ext in '' $ac_executable_extensions; do
4643   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4644     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4645     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4646     break 2
4647   fi
4648 done
4649   done
4650 IFS=$as_save_IFS
4651
4652 fi
4653 fi
4654 DUMPBIN=$ac_cv_prog_DUMPBIN
4655 if test -n "$DUMPBIN"; then
4656   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4657 $as_echo "$DUMPBIN" >&6; }
4658 else
4659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4660 $as_echo "no" >&6; }
4661 fi
4662
4663
4664     test -n "$DUMPBIN" && break
4665   done
4666 fi
4667 if test -z "$DUMPBIN"; then
4668   ac_ct_DUMPBIN=$DUMPBIN
4669   for ac_prog in dumpbin "link -dump"
4670 do
4671   # Extract the first word of "$ac_prog", so it can be a program name with args.
4672 set dummy $ac_prog; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4676   $as_echo_n "(cached) " >&6
4677 else
4678   if test -n "$ac_ct_DUMPBIN"; then
4679   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4683 do
4684   IFS=$as_save_IFS
4685   test -z "$as_dir" && as_dir=.
4686     for ac_exec_ext in '' $ac_executable_extensions; do
4687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690     break 2
4691   fi
4692 done
4693   done
4694 IFS=$as_save_IFS
4695
4696 fi
4697 fi
4698 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4699 if test -n "$ac_ct_DUMPBIN"; then
4700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4701 $as_echo "$ac_ct_DUMPBIN" >&6; }
4702 else
4703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4705 fi
4706
4707
4708   test -n "$ac_ct_DUMPBIN" && break
4709 done
4710
4711   if test "x$ac_ct_DUMPBIN" = x; then
4712     DUMPBIN=":"
4713   else
4714     case $cross_compiling:$ac_tool_warned in
4715 yes:)
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4718 ac_tool_warned=yes ;;
4719 esac
4720     DUMPBIN=$ac_ct_DUMPBIN
4721   fi
4722 fi
4723
4724     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4725     *COFF*)
4726       DUMPBIN="$DUMPBIN -symbols -headers"
4727       ;;
4728     *)
4729       DUMPBIN=:
4730       ;;
4731     esac
4732   fi
4733
4734   if test : != "$DUMPBIN"; then
4735     NM=$DUMPBIN
4736   fi
4737 fi
4738 test -z "$NM" && NM=nm
4739
4740
4741
4742
4743
4744
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4746 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4747 if ${lt_cv_nm_interface+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750   lt_cv_nm_interface="BSD nm"
4751   echo "int some_variable = 0;" > conftest.$ac_ext
4752   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4753   (eval "$ac_compile" 2>conftest.err)
4754   cat conftest.err >&5
4755   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4756   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4757   cat conftest.err >&5
4758   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4759   cat conftest.out >&5
4760   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4761     lt_cv_nm_interface="MS dumpbin"
4762   fi
4763   rm -f conftest*
4764 fi
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4766 $as_echo "$lt_cv_nm_interface" >&6; }
4767
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4769 $as_echo_n "checking whether ln -s works... " >&6; }
4770 LN_S=$as_ln_s
4771 if test "$LN_S" = "ln -s"; then
4772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4773 $as_echo "yes" >&6; }
4774 else
4775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4776 $as_echo "no, using $LN_S" >&6; }
4777 fi
4778
4779 # find the maximum length of command line arguments
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4781 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4782 if ${lt_cv_sys_max_cmd_len+:} false; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785     i=0
4786   teststring=ABCD
4787
4788   case $build_os in
4789   msdosdjgpp*)
4790     # On DJGPP, this test can blow up pretty badly due to problems in libc
4791     # (any single argument exceeding 2000 bytes causes a buffer overrun
4792     # during glob expansion).  Even if it were fixed, the result of this
4793     # check would be larger than it should be.
4794     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4795     ;;
4796
4797   gnu*)
4798     # Under GNU Hurd, this test is not required because there is
4799     # no limit to the length of command line arguments.
4800     # Libtool will interpret -1 as no limit whatsoever
4801     lt_cv_sys_max_cmd_len=-1;
4802     ;;
4803
4804   cygwin* | mingw* | cegcc*)
4805     # On Win9x/ME, this test blows up -- it succeeds, but takes
4806     # about 5 minutes as the teststring grows exponentially.
4807     # Worse, since 9x/ME are not pre-emptively multitasking,
4808     # you end up with a "frozen" computer, even though with patience
4809     # the test eventually succeeds (with a max line length of 256k).
4810     # Instead, let's just punt: use the minimum linelength reported by
4811     # all of the supported platforms: 8192 (on NT/2K/XP).
4812     lt_cv_sys_max_cmd_len=8192;
4813     ;;
4814
4815   mint*)
4816     # On MiNT this can take a long time and run out of memory.
4817     lt_cv_sys_max_cmd_len=8192;
4818     ;;
4819
4820   amigaos*)
4821     # On AmigaOS with pdksh, this test takes hours, literally.
4822     # So we just punt and use a minimum line length of 8192.
4823     lt_cv_sys_max_cmd_len=8192;
4824     ;;
4825
4826   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4827     # This has been around since 386BSD, at least.  Likely further.
4828     if test -x /sbin/sysctl; then
4829       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4830     elif test -x /usr/sbin/sysctl; then
4831       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4832     else
4833       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4834     fi
4835     # And add a safety zone
4836     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4837     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4838     ;;
4839
4840   interix*)
4841     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4842     lt_cv_sys_max_cmd_len=196608
4843     ;;
4844
4845   os2*)
4846     # The test takes a long time on OS/2.
4847     lt_cv_sys_max_cmd_len=8192
4848     ;;
4849
4850   osf*)
4851     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4852     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4853     # nice to cause kernel panics so lets avoid the loop below.
4854     # First set a reasonable default.
4855     lt_cv_sys_max_cmd_len=16384
4856     #
4857     if test -x /sbin/sysconfig; then
4858       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4859         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4860       esac
4861     fi
4862     ;;
4863   sco3.2v5*)
4864     lt_cv_sys_max_cmd_len=102400
4865     ;;
4866   sysv5* | sco5v6* | sysv4.2uw2*)
4867     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4868     if test -n "$kargmax"; then
4869       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4870     else
4871       lt_cv_sys_max_cmd_len=32768
4872     fi
4873     ;;
4874   *)
4875     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4876     if test -n "$lt_cv_sys_max_cmd_len" && \
4877        test undefined != "$lt_cv_sys_max_cmd_len"; then
4878       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4879       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4880     else
4881       # Make teststring a little bigger before we do anything with it.
4882       # a 1K string should be a reasonable start.
4883       for i in 1 2 3 4 5 6 7 8; do
4884         teststring=$teststring$teststring
4885       done
4886       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4887       # If test is not a shell built-in, we'll probably end up computing a
4888       # maximum length that is only half of the actual maximum length, but
4889       # we can't tell.
4890       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4891                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4892               test 17 != "$i" # 1/2 MB should be enough
4893       do
4894         i=`expr $i + 1`
4895         teststring=$teststring$teststring
4896       done
4897       # Only check the string length outside the loop.
4898       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4899       teststring=
4900       # Add a significant safety factor because C++ compilers can tack on
4901       # massive amounts of additional arguments before passing them to the
4902       # linker.  It appears as though 1/2 is a usable value.
4903       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4904     fi
4905     ;;
4906   esac
4907
4908 fi
4909
4910 if test -n "$lt_cv_sys_max_cmd_len"; then
4911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4912 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4913 else
4914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4915 $as_echo "none" >&6; }
4916 fi
4917 max_cmd_len=$lt_cv_sys_max_cmd_len
4918
4919
4920
4921
4922
4923
4924 : ${CP="cp -f"}
4925 : ${MV="mv -f"}
4926 : ${RM="rm -f"}
4927
4928 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4929   lt_unset=unset
4930 else
4931   lt_unset=false
4932 fi
4933
4934
4935
4936
4937
4938 # test EBCDIC or ASCII
4939 case `echo X|tr X '\101'` in
4940  A) # ASCII based system
4941     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4942   lt_SP2NL='tr \040 \012'
4943   lt_NL2SP='tr \015\012 \040\040'
4944   ;;
4945  *) # EBCDIC based system
4946   lt_SP2NL='tr \100 \n'
4947   lt_NL2SP='tr \r\n \100\100'
4948   ;;
4949 esac
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4960 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4961 if ${lt_cv_to_host_file_cmd+:} false; then :
4962   $as_echo_n "(cached) " >&6
4963 else
4964   case $host in
4965   *-*-mingw* )
4966     case $build in
4967       *-*-mingw* ) # actually msys
4968         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4969         ;;
4970       *-*-cygwin* )
4971         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4972         ;;
4973       * ) # otherwise, assume *nix
4974         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4975         ;;
4976     esac
4977     ;;
4978   *-*-cygwin* )
4979     case $build in
4980       *-*-mingw* ) # actually msys
4981         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4982         ;;
4983       *-*-cygwin* )
4984         lt_cv_to_host_file_cmd=func_convert_file_noop
4985         ;;
4986       * ) # otherwise, assume *nix
4987         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4988         ;;
4989     esac
4990     ;;
4991   * ) # unhandled hosts (and "normal" native builds)
4992     lt_cv_to_host_file_cmd=func_convert_file_noop
4993     ;;
4994 esac
4995
4996 fi
4997
4998 to_host_file_cmd=$lt_cv_to_host_file_cmd
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5000 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5001
5002
5003
5004
5005
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5007 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5008 if ${lt_cv_to_tool_file_cmd+:} false; then :
5009   $as_echo_n "(cached) " >&6
5010 else
5011   #assume ordinary cross tools, or native build.
5012 lt_cv_to_tool_file_cmd=func_convert_file_noop
5013 case $host in
5014   *-*-mingw* )
5015     case $build in
5016       *-*-mingw* ) # actually msys
5017         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5018         ;;
5019     esac
5020     ;;
5021 esac
5022
5023 fi
5024
5025 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5027 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5028
5029
5030
5031
5032
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5034 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5035 if ${lt_cv_ld_reload_flag+:} false; then :
5036   $as_echo_n "(cached) " >&6
5037 else
5038   lt_cv_ld_reload_flag='-r'
5039 fi
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5041 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5042 reload_flag=$lt_cv_ld_reload_flag
5043 case $reload_flag in
5044 "" | " "*) ;;
5045 *) reload_flag=" $reload_flag" ;;
5046 esac
5047 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5048 case $host_os in
5049   cygwin* | mingw* | pw32* | cegcc*)
5050     if test yes != "$GCC"; then
5051       reload_cmds=false
5052     fi
5053     ;;
5054   darwin*)
5055     if test yes = "$GCC"; then
5056       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5057     else
5058       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5059     fi
5060     ;;
5061 esac
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071 if test -n "$ac_tool_prefix"; then
5072   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5073 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5075 $as_echo_n "checking for $ac_word... " >&6; }
5076 if ${ac_cv_prog_OBJDUMP+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   if test -n "$OBJDUMP"; then
5080   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5081 else
5082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097 fi
5098 fi
5099 OBJDUMP=$ac_cv_prog_OBJDUMP
5100 if test -n "$OBJDUMP"; then
5101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5102 $as_echo "$OBJDUMP" >&6; }
5103 else
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5105 $as_echo "no" >&6; }
5106 fi
5107
5108
5109 fi
5110 if test -z "$ac_cv_prog_OBJDUMP"; then
5111   ac_ct_OBJDUMP=$OBJDUMP
5112   # Extract the first word of "objdump", so it can be a program name with args.
5113 set dummy objdump; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   if test -n "$ac_ct_OBJDUMP"; then
5120   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5121 else
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136
5137 fi
5138 fi
5139 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5140 if test -n "$ac_ct_OBJDUMP"; then
5141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5142 $as_echo "$ac_ct_OBJDUMP" >&6; }
5143 else
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5146 fi
5147
5148   if test "x$ac_ct_OBJDUMP" = x; then
5149     OBJDUMP="false"
5150   else
5151     case $cross_compiling:$ac_tool_warned in
5152 yes:)
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5155 ac_tool_warned=yes ;;
5156 esac
5157     OBJDUMP=$ac_ct_OBJDUMP
5158   fi
5159 else
5160   OBJDUMP="$ac_cv_prog_OBJDUMP"
5161 fi
5162
5163 test -z "$OBJDUMP" && OBJDUMP=objdump
5164
5165
5166
5167
5168
5169
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5171 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5172 if ${lt_cv_deplibs_check_method+:} false; then :
5173   $as_echo_n "(cached) " >&6
5174 else
5175   lt_cv_file_magic_cmd='$MAGIC_CMD'
5176 lt_cv_file_magic_test_file=
5177 lt_cv_deplibs_check_method='unknown'
5178 # Need to set the preceding variable on all platforms that support
5179 # interlibrary dependencies.
5180 # 'none' -- dependencies not supported.
5181 # 'unknown' -- same as none, but documents that we really don't know.
5182 # 'pass_all' -- all dependencies passed with no checks.
5183 # 'test_compile' -- check by making test program.
5184 # 'file_magic [[regex]]' -- check by looking for files in library path
5185 # that responds to the $file_magic_cmd with a given extended regex.
5186 # If you have 'file' or equivalent on your system and you're not sure
5187 # whether 'pass_all' will *always* work, you probably want this one.
5188
5189 case $host_os in
5190 aix[4-9]*)
5191   lt_cv_deplibs_check_method=pass_all
5192   ;;
5193
5194 beos*)
5195   lt_cv_deplibs_check_method=pass_all
5196   ;;
5197
5198 bsdi[45]*)
5199   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5200   lt_cv_file_magic_cmd='/usr/bin/file -L'
5201   lt_cv_file_magic_test_file=/shlib/libc.so
5202   ;;
5203
5204 cygwin*)
5205   # func_win32_libid is a shell function defined in ltmain.sh
5206   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5207   lt_cv_file_magic_cmd='func_win32_libid'
5208   ;;
5209
5210 mingw* | pw32*)
5211   # Base MSYS/MinGW do not provide the 'file' command needed by
5212   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5213   # unless we find 'file', for example because we are cross-compiling.
5214   if ( file / ) >/dev/null 2>&1; then
5215     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5216     lt_cv_file_magic_cmd='func_win32_libid'
5217   else
5218     # Keep this pattern in sync with the one in func_win32_libid.
5219     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5220     lt_cv_file_magic_cmd='$OBJDUMP -f'
5221   fi
5222   ;;
5223
5224 cegcc*)
5225   # use the weaker test based on 'objdump'. See mingw*.
5226   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5227   lt_cv_file_magic_cmd='$OBJDUMP -f'
5228   ;;
5229
5230 darwin* | rhapsody*)
5231   lt_cv_deplibs_check_method=pass_all
5232   ;;
5233
5234 freebsd* | dragonfly*)
5235   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5236     case $host_cpu in
5237     i*86 )
5238       # Not sure whether the presence of OpenBSD here was a mistake.
5239       # Let's accept both of them until this is cleared up.
5240       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5241       lt_cv_file_magic_cmd=/usr/bin/file
5242       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5243       ;;
5244     esac
5245   else
5246     lt_cv_deplibs_check_method=pass_all
5247   fi
5248   ;;
5249
5250 haiku*)
5251   lt_cv_deplibs_check_method=pass_all
5252   ;;
5253
5254 hpux10.20* | hpux11*)
5255   lt_cv_file_magic_cmd=/usr/bin/file
5256   case $host_cpu in
5257   ia64*)
5258     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5259     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5260     ;;
5261   hppa*64*)
5262     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]'
5263     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5264     ;;
5265   *)
5266     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5267     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5268     ;;
5269   esac
5270   ;;
5271
5272 interix[3-9]*)
5273   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5274   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5275   ;;
5276
5277 irix5* | irix6* | nonstopux*)
5278   case $LD in
5279   *-32|*"-32 ") libmagic=32-bit;;
5280   *-n32|*"-n32 ") libmagic=N32;;
5281   *-64|*"-64 ") libmagic=64-bit;;
5282   *) libmagic=never-match;;
5283   esac
5284   lt_cv_deplibs_check_method=pass_all
5285   ;;
5286
5287 # This must be glibc/ELF.
5288 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5289   lt_cv_deplibs_check_method=pass_all
5290   ;;
5291
5292 netbsd* | netbsdelf*-gnu)
5293   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5294     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5295   else
5296     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5297   fi
5298   ;;
5299
5300 newos6*)
5301   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5302   lt_cv_file_magic_cmd=/usr/bin/file
5303   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5304   ;;
5305
5306 *nto* | *qnx*)
5307   lt_cv_deplibs_check_method=pass_all
5308   ;;
5309
5310 openbsd* | bitrig*)
5311   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5312     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5313   else
5314     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5315   fi
5316   ;;
5317
5318 osf3* | osf4* | osf5*)
5319   lt_cv_deplibs_check_method=pass_all
5320   ;;
5321
5322 rdos*)
5323   lt_cv_deplibs_check_method=pass_all
5324   ;;
5325
5326 solaris*)
5327   lt_cv_deplibs_check_method=pass_all
5328   ;;
5329
5330 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5331   lt_cv_deplibs_check_method=pass_all
5332   ;;
5333
5334 sysv4 | sysv4.3*)
5335   case $host_vendor in
5336   motorola)
5337     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]'
5338     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5339     ;;
5340   ncr)
5341     lt_cv_deplibs_check_method=pass_all
5342     ;;
5343   sequent)
5344     lt_cv_file_magic_cmd='/bin/file'
5345     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5346     ;;
5347   sni)
5348     lt_cv_file_magic_cmd='/bin/file'
5349     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5350     lt_cv_file_magic_test_file=/lib/libc.so
5351     ;;
5352   siemens)
5353     lt_cv_deplibs_check_method=pass_all
5354     ;;
5355   pc)
5356     lt_cv_deplibs_check_method=pass_all
5357     ;;
5358   esac
5359   ;;
5360
5361 tpf*)
5362   lt_cv_deplibs_check_method=pass_all
5363   ;;
5364 os2*)
5365   lt_cv_deplibs_check_method=pass_all
5366   ;;
5367 esac
5368
5369 fi
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5371 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5372
5373 file_magic_glob=
5374 want_nocaseglob=no
5375 if test "$build" = "$host"; then
5376   case $host_os in
5377   mingw* | pw32*)
5378     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5379       want_nocaseglob=yes
5380     else
5381       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5382     fi
5383     ;;
5384   esac
5385 fi
5386
5387 file_magic_cmd=$lt_cv_file_magic_cmd
5388 deplibs_check_method=$lt_cv_deplibs_check_method
5389 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412 if test -n "$ac_tool_prefix"; then
5413   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5414 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 $as_echo_n "checking for $ac_word... " >&6; }
5417 if ${ac_cv_prog_DLLTOOL+:} false; then :
5418   $as_echo_n "(cached) " >&6
5419 else
5420   if test -n "$DLLTOOL"; then
5421   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5422 else
5423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424 for as_dir in $PATH
5425 do
5426   IFS=$as_save_IFS
5427   test -z "$as_dir" && as_dir=.
5428     for ac_exec_ext in '' $ac_executable_extensions; do
5429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5430     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432     break 2
5433   fi
5434 done
5435   done
5436 IFS=$as_save_IFS
5437
5438 fi
5439 fi
5440 DLLTOOL=$ac_cv_prog_DLLTOOL
5441 if test -n "$DLLTOOL"; then
5442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5443 $as_echo "$DLLTOOL" >&6; }
5444 else
5445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5447 fi
5448
5449
5450 fi
5451 if test -z "$ac_cv_prog_DLLTOOL"; then
5452   ac_ct_DLLTOOL=$DLLTOOL
5453   # Extract the first word of "dlltool", so it can be a program name with args.
5454 set dummy dlltool; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5458   $as_echo_n "(cached) " >&6
5459 else
5460   if test -n "$ac_ct_DLLTOOL"; then
5461   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5465 do
5466   IFS=$as_save_IFS
5467   test -z "$as_dir" && as_dir=.
5468     for ac_exec_ext in '' $ac_executable_extensions; do
5469   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472     break 2
5473   fi
5474 done
5475   done
5476 IFS=$as_save_IFS
5477
5478 fi
5479 fi
5480 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5481 if test -n "$ac_ct_DLLTOOL"; then
5482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5483 $as_echo "$ac_ct_DLLTOOL" >&6; }
5484 else
5485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5487 fi
5488
5489   if test "x$ac_ct_DLLTOOL" = x; then
5490     DLLTOOL="false"
5491   else
5492     case $cross_compiling:$ac_tool_warned in
5493 yes:)
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496 ac_tool_warned=yes ;;
5497 esac
5498     DLLTOOL=$ac_ct_DLLTOOL
5499   fi
5500 else
5501   DLLTOOL="$ac_cv_prog_DLLTOOL"
5502 fi
5503
5504 test -z "$DLLTOOL" && DLLTOOL=dlltool
5505
5506
5507
5508
5509
5510
5511
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5513 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5514 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5515   $as_echo_n "(cached) " >&6
5516 else
5517   lt_cv_sharedlib_from_linklib_cmd='unknown'
5518
5519 case $host_os in
5520 cygwin* | mingw* | pw32* | cegcc*)
5521   # two different shell functions defined in ltmain.sh;
5522   # decide which one to use based on capabilities of $DLLTOOL
5523   case `$DLLTOOL --help 2>&1` in
5524   *--identify-strict*)
5525     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5526     ;;
5527   *)
5528     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5529     ;;
5530   esac
5531   ;;
5532 *)
5533   # fallback: assume linklib IS sharedlib
5534   lt_cv_sharedlib_from_linklib_cmd=$ECHO
5535   ;;
5536 esac
5537
5538 fi
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5540 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5541 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5542 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5543
5544
5545
5546
5547
5548
5549
5550
5551 if test -n "$ac_tool_prefix"; then
5552   for ac_prog in ar
5553   do
5554     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_prog_AR+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   if test -n "$AR"; then
5562   ac_cv_prog_AR="$AR" # Let the user override the test.
5563 else
5564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565 for as_dir in $PATH
5566 do
5567   IFS=$as_save_IFS
5568   test -z "$as_dir" && as_dir=.
5569     for ac_exec_ext in '' $ac_executable_extensions; do
5570   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5572     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573     break 2
5574   fi
5575 done
5576   done
5577 IFS=$as_save_IFS
5578
5579 fi
5580 fi
5581 AR=$ac_cv_prog_AR
5582 if test -n "$AR"; then
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5584 $as_echo "$AR" >&6; }
5585 else
5586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587 $as_echo "no" >&6; }
5588 fi
5589
5590
5591     test -n "$AR" && break
5592   done
5593 fi
5594 if test -z "$AR"; then
5595   ac_ct_AR=$AR
5596   for ac_prog in ar
5597 do
5598   # Extract the first word of "$ac_prog", so it can be a program name with args.
5599 set dummy $ac_prog; ac_word=$2
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5601 $as_echo_n "checking for $ac_word... " >&6; }
5602 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5603   $as_echo_n "(cached) " >&6
5604 else
5605   if test -n "$ac_ct_AR"; then
5606   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5607 else
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH
5610 do
5611   IFS=$as_save_IFS
5612   test -z "$as_dir" && as_dir=.
5613     for ac_exec_ext in '' $ac_executable_extensions; do
5614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5615     ac_cv_prog_ac_ct_AR="$ac_prog"
5616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617     break 2
5618   fi
5619 done
5620   done
5621 IFS=$as_save_IFS
5622
5623 fi
5624 fi
5625 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5626 if test -n "$ac_ct_AR"; then
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5628 $as_echo "$ac_ct_AR" >&6; }
5629 else
5630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5631 $as_echo "no" >&6; }
5632 fi
5633
5634
5635   test -n "$ac_ct_AR" && break
5636 done
5637
5638   if test "x$ac_ct_AR" = x; then
5639     AR="false"
5640   else
5641     case $cross_compiling:$ac_tool_warned in
5642 yes:)
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5645 ac_tool_warned=yes ;;
5646 esac
5647     AR=$ac_ct_AR
5648   fi
5649 fi
5650
5651 : ${AR=ar}
5652 : ${AR_FLAGS=cru}
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5665 $as_echo_n "checking for archiver @FILE support... " >&6; }
5666 if ${lt_cv_ar_at_file+:} false; then :
5667   $as_echo_n "(cached) " >&6
5668 else
5669   lt_cv_ar_at_file=no
5670    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676
5677   ;
5678   return 0;
5679 }
5680 _ACEOF
5681 if ac_fn_c_try_compile "$LINENO"; then :
5682   echo conftest.$ac_objext > conftest.lst
5683       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5684       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5685   (eval $lt_ar_try) 2>&5
5686   ac_status=$?
5687   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5688   test $ac_status = 0; }
5689       if test 0 -eq "$ac_status"; then
5690         # Ensure the archiver fails upon bogus file names.
5691         rm -f conftest.$ac_objext libconftest.a
5692         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5693   (eval $lt_ar_try) 2>&5
5694   ac_status=$?
5695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5696   test $ac_status = 0; }
5697         if test 0 -ne "$ac_status"; then
5698           lt_cv_ar_at_file=@
5699         fi
5700       fi
5701       rm -f conftest.* libconftest.a
5702
5703 fi
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705
5706 fi
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5708 $as_echo "$lt_cv_ar_at_file" >&6; }
5709
5710 if test no = "$lt_cv_ar_at_file"; then
5711   archiver_list_spec=
5712 else
5713   archiver_list_spec=$lt_cv_ar_at_file
5714 fi
5715
5716
5717
5718
5719
5720
5721
5722 if test -n "$ac_tool_prefix"; then
5723   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5724 set dummy ${ac_tool_prefix}strip; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_prog_STRIP+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   if test -n "$STRIP"; then
5731   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5732 else
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734 for as_dir in $PATH
5735 do
5736   IFS=$as_save_IFS
5737   test -z "$as_dir" && as_dir=.
5738     for ac_exec_ext in '' $ac_executable_extensions; do
5739   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5742     break 2
5743   fi
5744 done
5745   done
5746 IFS=$as_save_IFS
5747
5748 fi
5749 fi
5750 STRIP=$ac_cv_prog_STRIP
5751 if test -n "$STRIP"; then
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5753 $as_echo "$STRIP" >&6; }
5754 else
5755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5757 fi
5758
5759
5760 fi
5761 if test -z "$ac_cv_prog_STRIP"; then
5762   ac_ct_STRIP=$STRIP
5763   # Extract the first word of "strip", so it can be a program name with args.
5764 set dummy strip; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5768   $as_echo_n "(cached) " >&6
5769 else
5770   if test -n "$ac_ct_STRIP"; then
5771   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778     for ac_exec_ext in '' $ac_executable_extensions; do
5779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780     ac_cv_prog_ac_ct_STRIP="strip"
5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785   done
5786 IFS=$as_save_IFS
5787
5788 fi
5789 fi
5790 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5791 if test -n "$ac_ct_STRIP"; then
5792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5793 $as_echo "$ac_ct_STRIP" >&6; }
5794 else
5795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5797 fi
5798
5799   if test "x$ac_ct_STRIP" = x; then
5800     STRIP=":"
5801   else
5802     case $cross_compiling:$ac_tool_warned in
5803 yes:)
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5806 ac_tool_warned=yes ;;
5807 esac
5808     STRIP=$ac_ct_STRIP
5809   fi
5810 else
5811   STRIP="$ac_cv_prog_STRIP"
5812 fi
5813
5814 test -z "$STRIP" && STRIP=:
5815
5816
5817
5818
5819
5820
5821 if test -n "$ac_tool_prefix"; then
5822   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5825 $as_echo_n "checking for $ac_word... " >&6; }
5826 if ${ac_cv_prog_RANLIB+:} false; then :
5827   $as_echo_n "(cached) " >&6
5828 else
5829   if test -n "$RANLIB"; then
5830   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5831 else
5832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833 for as_dir in $PATH
5834 do
5835   IFS=$as_save_IFS
5836   test -z "$as_dir" && as_dir=.
5837     for ac_exec_ext in '' $ac_executable_extensions; do
5838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5839     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5841     break 2
5842   fi
5843 done
5844   done
5845 IFS=$as_save_IFS
5846
5847 fi
5848 fi
5849 RANLIB=$ac_cv_prog_RANLIB
5850 if test -n "$RANLIB"; then
5851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5852 $as_echo "$RANLIB" >&6; }
5853 else
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5855 $as_echo "no" >&6; }
5856 fi
5857
5858
5859 fi
5860 if test -z "$ac_cv_prog_RANLIB"; then
5861   ac_ct_RANLIB=$RANLIB
5862   # Extract the first word of "ranlib", so it can be a program name with args.
5863 set dummy ranlib; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5865 $as_echo_n "checking for $ac_word... " >&6; }
5866 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5867   $as_echo_n "(cached) " >&6
5868 else
5869   if test -n "$ac_ct_RANLIB"; then
5870   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5871 else
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873 for as_dir in $PATH
5874 do
5875   IFS=$as_save_IFS
5876   test -z "$as_dir" && as_dir=.
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879     ac_cv_prog_ac_ct_RANLIB="ranlib"
5880     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5881     break 2
5882   fi
5883 done
5884   done
5885 IFS=$as_save_IFS
5886
5887 fi
5888 fi
5889 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5890 if test -n "$ac_ct_RANLIB"; then
5891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5892 $as_echo "$ac_ct_RANLIB" >&6; }
5893 else
5894   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5895 $as_echo "no" >&6; }
5896 fi
5897
5898   if test "x$ac_ct_RANLIB" = x; then
5899     RANLIB=":"
5900   else
5901     case $cross_compiling:$ac_tool_warned in
5902 yes:)
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5905 ac_tool_warned=yes ;;
5906 esac
5907     RANLIB=$ac_ct_RANLIB
5908   fi
5909 else
5910   RANLIB="$ac_cv_prog_RANLIB"
5911 fi
5912
5913 test -z "$RANLIB" && RANLIB=:
5914
5915
5916
5917
5918
5919
5920 # Determine commands to create old-style static archives.
5921 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5922 old_postinstall_cmds='chmod 644 $oldlib'
5923 old_postuninstall_cmds=
5924
5925 if test -n "$RANLIB"; then
5926   case $host_os in
5927   bitrig* | openbsd*)
5928     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5929     ;;
5930   *)
5931     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5932     ;;
5933   esac
5934   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5935 fi
5936
5937 case $host_os in
5938   darwin*)
5939     lock_old_archive_extraction=yes ;;
5940   *)
5941     lock_old_archive_extraction=no ;;
5942 esac
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982 # If no C compiler was specified, use CC.
5983 LTCC=${LTCC-"$CC"}
5984
5985 # If no C compiler flags were specified, use CFLAGS.
5986 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5987
5988 # Allow CC to be a program name with arguments.
5989 compiler=$CC
5990
5991
5992 # Check for command to grab the raw symbol name followed by C symbol from nm.
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5994 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5995 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5996   $as_echo_n "(cached) " >&6
5997 else
5998
5999 # These are sane defaults that work on at least a few old systems.
6000 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6001
6002 # Character class describing NM global symbol codes.
6003 symcode='[BCDEGRST]'
6004
6005 # Regexp to match symbols that can be accessed directly from C.
6006 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6007
6008 # Define system-specific variables.
6009 case $host_os in
6010 aix*)
6011   symcode='[BCDT]'
6012   ;;
6013 cygwin* | mingw* | pw32* | cegcc*)
6014   symcode='[ABCDGISTW]'
6015   ;;
6016 hpux*)
6017   if test ia64 = "$host_cpu"; then
6018     symcode='[ABCDEGRST]'
6019   fi
6020   ;;
6021 irix* | nonstopux*)
6022   symcode='[BCDEGRST]'
6023   ;;
6024 osf*)
6025   symcode='[BCDEGQRST]'
6026   ;;
6027 solaris*)
6028   symcode='[BDRT]'
6029   ;;
6030 sco3.2v5*)
6031   symcode='[DT]'
6032   ;;
6033 sysv4.2uw2*)
6034   symcode='[DT]'
6035   ;;
6036 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6037   symcode='[ABDT]'
6038   ;;
6039 sysv4)
6040   symcode='[DFNSTU]'
6041   ;;
6042 esac
6043
6044 # If we're using GNU nm, then use its standard symbol codes.
6045 case `$NM -V 2>&1` in
6046 *GNU* | *'with BFD'*)
6047   symcode='[ABCDGIRSTW]' ;;
6048 esac
6049
6050 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6051   # Gets list of data symbols to import.
6052   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6053   # Adjust the below global symbol transforms to fixup imported variables.
6054   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6055   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6056   lt_c_name_lib_hook="\
6057   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6058   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6059 else
6060   # Disable hooks by default.
6061   lt_cv_sys_global_symbol_to_import=
6062   lt_cdecl_hook=
6063   lt_c_name_hook=
6064   lt_c_name_lib_hook=
6065 fi
6066
6067 # Transform an extracted symbol line into a proper C declaration.
6068 # Some systems (esp. on ia64) link data and code symbols differently,
6069 # so use this general approach.
6070 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6071 $lt_cdecl_hook\
6072 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6073 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6074
6075 # Transform an extracted symbol line into symbol name and symbol address
6076 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6077 $lt_c_name_hook\
6078 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6079 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6080
6081 # Transform an extracted symbol line into symbol name with lib prefix and
6082 # symbol address.
6083 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6084 $lt_c_name_lib_hook\
6085 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6086 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6087 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6088
6089 # Handle CRLF in mingw tool chain
6090 opt_cr=
6091 case $build_os in
6092 mingw*)
6093   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6094   ;;
6095 esac
6096
6097 # Try without a prefix underscore, then with it.
6098 for ac_symprfx in "" "_"; do
6099
6100   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6101   symxfrm="\\1 $ac_symprfx\\2 \\2"
6102
6103   # Write the raw and C identifiers.
6104   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6105     # Fake it for dumpbin and say T for any non-static function,
6106     # D for any global variable and I for any imported variable.
6107     # Also find C++ and __fastcall symbols from MSVC++,
6108     # which start with @ or ?.
6109     lt_cv_sys_global_symbol_pipe="$AWK '"\
6110 "     {last_section=section; section=\$ 3};"\
6111 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6112 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6113 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6114 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6115 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6116 "     \$ 0!~/External *\|/{next};"\
6117 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6118 "     {if(hide[section]) next};"\
6119 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6120 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6121 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6122 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6123 "     ' prfx=^$ac_symprfx"
6124   else
6125     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6126   fi
6127   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6128
6129   # Check to see that the pipe works correctly.
6130   pipe_works=no
6131
6132   rm -f conftest*
6133   cat > conftest.$ac_ext <<_LT_EOF
6134 #ifdef __cplusplus
6135 extern "C" {
6136 #endif
6137 char nm_test_var;
6138 void nm_test_func(void);
6139 void nm_test_func(void){}
6140 #ifdef __cplusplus
6141 }
6142 #endif
6143 int main(){nm_test_var='a';nm_test_func();return(0);}
6144 _LT_EOF
6145
6146   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6147   (eval $ac_compile) 2>&5
6148   ac_status=$?
6149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6150   test $ac_status = 0; }; then
6151     # Now try to grab the symbols.
6152     nlist=conftest.nm
6153     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6154   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6155   ac_status=$?
6156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6157   test $ac_status = 0; } && test -s "$nlist"; then
6158       # Try sorting and uniquifying the output.
6159       if sort "$nlist" | uniq > "$nlist"T; then
6160         mv -f "$nlist"T "$nlist"
6161       else
6162         rm -f "$nlist"T
6163       fi
6164
6165       # Make sure that we snagged all the symbols we need.
6166       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6167         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6168           cat <<_LT_EOF > conftest.$ac_ext
6169 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6170 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6171 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6172    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6173 # define LT_DLSYM_CONST
6174 #elif defined __osf__
6175 /* This system does not cope well with relocations in const data.  */
6176 # define LT_DLSYM_CONST
6177 #else
6178 # define LT_DLSYM_CONST const
6179 #endif
6180
6181 #ifdef __cplusplus
6182 extern "C" {
6183 #endif
6184
6185 _LT_EOF
6186           # Now generate the symbol file.
6187           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6188
6189           cat <<_LT_EOF >> conftest.$ac_ext
6190
6191 /* The mapping between symbol names and symbols.  */
6192 LT_DLSYM_CONST struct {
6193   const char *name;
6194   void       *address;
6195 }
6196 lt__PROGRAM__LTX_preloaded_symbols[] =
6197 {
6198   { "@PROGRAM@", (void *) 0 },
6199 _LT_EOF
6200           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6201           cat <<\_LT_EOF >> conftest.$ac_ext
6202   {0, (void *) 0}
6203 };
6204
6205 /* This works around a problem in FreeBSD linker */
6206 #ifdef FREEBSD_WORKAROUND
6207 static const void *lt_preloaded_setup() {
6208   return lt__PROGRAM__LTX_preloaded_symbols;
6209 }
6210 #endif
6211
6212 #ifdef __cplusplus
6213 }
6214 #endif
6215 _LT_EOF
6216           # Now try linking the two files.
6217           mv conftest.$ac_objext conftstm.$ac_objext
6218           lt_globsym_save_LIBS=$LIBS
6219           lt_globsym_save_CFLAGS=$CFLAGS
6220           LIBS=conftstm.$ac_objext
6221           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6222           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6223   (eval $ac_link) 2>&5
6224   ac_status=$?
6225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6226   test $ac_status = 0; } && test -s conftest$ac_exeext; then
6227             pipe_works=yes
6228           fi
6229           LIBS=$lt_globsym_save_LIBS
6230           CFLAGS=$lt_globsym_save_CFLAGS
6231         else
6232           echo "cannot find nm_test_func in $nlist" >&5
6233         fi
6234       else
6235         echo "cannot find nm_test_var in $nlist" >&5
6236       fi
6237     else
6238       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6239     fi
6240   else
6241     echo "$progname: failed program was:" >&5
6242     cat conftest.$ac_ext >&5
6243   fi
6244   rm -rf conftest* conftst*
6245
6246   # Do not use the global_symbol_pipe unless it works.
6247   if test yes = "$pipe_works"; then
6248     break
6249   else
6250     lt_cv_sys_global_symbol_pipe=
6251   fi
6252 done
6253
6254 fi
6255
6256 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6257   lt_cv_sys_global_symbol_to_cdecl=
6258 fi
6259 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6261 $as_echo "failed" >&6; }
6262 else
6263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6264 $as_echo "ok" >&6; }
6265 fi
6266
6267 # Response file support.
6268 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6269   nm_file_list_spec='@'
6270 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6271   nm_file_list_spec='@'
6272 fi
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6311 $as_echo_n "checking for sysroot... " >&6; }
6312
6313 # Check whether --with-sysroot was given.
6314 if test "${with_sysroot+set}" = set; then :
6315   withval=$with_sysroot;
6316 else
6317   with_sysroot=no
6318 fi
6319
6320
6321 lt_sysroot=
6322 case $with_sysroot in #(
6323  yes)
6324    if test yes = "$GCC"; then
6325      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6326    fi
6327    ;; #(
6328  /*)
6329    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6330    ;; #(
6331  no|'')
6332    ;; #(
6333  *)
6334    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6335 $as_echo "$with_sysroot" >&6; }
6336    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6337    ;;
6338 esac
6339
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6341 $as_echo "${lt_sysroot:-no}" >&6; }
6342
6343
6344
6345
6346
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6348 $as_echo_n "checking for a working dd... " >&6; }
6349 if ${ac_cv_path_lt_DD+:} false; then :
6350   $as_echo_n "(cached) " >&6
6351 else
6352   printf 0123456789abcdef0123456789abcdef >conftest.i
6353 cat conftest.i conftest.i >conftest2.i
6354 : ${lt_DD:=$DD}
6355 if test -z "$lt_DD"; then
6356   ac_path_lt_DD_found=false
6357   # Loop through the user's path and test for each of PROGNAME-LIST
6358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6359 for as_dir in $PATH
6360 do
6361   IFS=$as_save_IFS
6362   test -z "$as_dir" && as_dir=.
6363     for ac_prog in dd; do
6364     for ac_exec_ext in '' $ac_executable_extensions; do
6365       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6366       as_fn_executable_p "$ac_path_lt_DD" || continue
6367 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6368   cmp -s conftest.i conftest.out \
6369   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6370 fi
6371       $ac_path_lt_DD_found && break 3
6372     done
6373   done
6374   done
6375 IFS=$as_save_IFS
6376   if test -z "$ac_cv_path_lt_DD"; then
6377     :
6378   fi
6379 else
6380   ac_cv_path_lt_DD=$lt_DD
6381 fi
6382
6383 rm -f conftest.i conftest2.i conftest.out
6384 fi
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6386 $as_echo "$ac_cv_path_lt_DD" >&6; }
6387
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6390 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6391 if ${lt_cv_truncate_bin+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   printf 0123456789abcdef0123456789abcdef >conftest.i
6395 cat conftest.i conftest.i >conftest2.i
6396 lt_cv_truncate_bin=
6397 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6398   cmp -s conftest.i conftest.out \
6399   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6400 fi
6401 rm -f conftest.i conftest2.i conftest.out
6402 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6403 fi
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6405 $as_echo "$lt_cv_truncate_bin" >&6; }
6406
6407
6408
6409
6410
6411
6412
6413 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6414 func_cc_basename ()
6415 {
6416     for cc_temp in $*""; do
6417       case $cc_temp in
6418         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6419         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6420         \-*) ;;
6421         *) break;;
6422       esac
6423     done
6424     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6425 }
6426
6427 # Check whether --enable-libtool-lock was given.
6428 if test "${enable_libtool_lock+set}" = set; then :
6429   enableval=$enable_libtool_lock;
6430 fi
6431
6432 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6433
6434 # Some flags need to be propagated to the compiler or linker for good
6435 # libtool support.
6436 case $host in
6437 ia64-*-hpux*)
6438   # Find out what ABI is being produced by ac_compile, and set mode
6439   # options accordingly.
6440   echo 'int i;' > conftest.$ac_ext
6441   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6442   (eval $ac_compile) 2>&5
6443   ac_status=$?
6444   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6445   test $ac_status = 0; }; then
6446     case `/usr/bin/file conftest.$ac_objext` in
6447       *ELF-32*)
6448         HPUX_IA64_MODE=32
6449         ;;
6450       *ELF-64*)
6451         HPUX_IA64_MODE=64
6452         ;;
6453     esac
6454   fi
6455   rm -rf conftest*
6456   ;;
6457 *-*-irix6*)
6458   # Find out what ABI is being produced by ac_compile, and set linker
6459   # options accordingly.
6460   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6461   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6462   (eval $ac_compile) 2>&5
6463   ac_status=$?
6464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6465   test $ac_status = 0; }; then
6466     if test yes = "$lt_cv_prog_gnu_ld"; then
6467       case `/usr/bin/file conftest.$ac_objext` in
6468         *32-bit*)
6469           LD="${LD-ld} -melf32bsmip"
6470           ;;
6471         *N32*)
6472           LD="${LD-ld} -melf32bmipn32"
6473           ;;
6474         *64-bit*)
6475           LD="${LD-ld} -melf64bmip"
6476         ;;
6477       esac
6478     else
6479       case `/usr/bin/file conftest.$ac_objext` in
6480         *32-bit*)
6481           LD="${LD-ld} -32"
6482           ;;
6483         *N32*)
6484           LD="${LD-ld} -n32"
6485           ;;
6486         *64-bit*)
6487           LD="${LD-ld} -64"
6488           ;;
6489       esac
6490     fi
6491   fi
6492   rm -rf conftest*
6493   ;;
6494
6495 mips64*-*linux*)
6496   # Find out what ABI is being produced by ac_compile, and set linker
6497   # options accordingly.
6498   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6499   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6500   (eval $ac_compile) 2>&5
6501   ac_status=$?
6502   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6503   test $ac_status = 0; }; then
6504     emul=elf
6505     case `/usr/bin/file conftest.$ac_objext` in
6506       *32-bit*)
6507         emul="${emul}32"
6508         ;;
6509       *64-bit*)
6510         emul="${emul}64"
6511         ;;
6512     esac
6513     case `/usr/bin/file conftest.$ac_objext` in
6514       *MSB*)
6515         emul="${emul}btsmip"
6516         ;;
6517       *LSB*)
6518         emul="${emul}ltsmip"
6519         ;;
6520     esac
6521     case `/usr/bin/file conftest.$ac_objext` in
6522       *N32*)
6523         emul="${emul}n32"
6524         ;;
6525     esac
6526     LD="${LD-ld} -m $emul"
6527   fi
6528   rm -rf conftest*
6529   ;;
6530
6531 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6532 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6533   # Find out what ABI is being produced by ac_compile, and set linker
6534   # options accordingly.  Note that the listed cases only cover the
6535   # situations where additional linker options are needed (such as when
6536   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6537   # vice versa); the common cases where no linker options are needed do
6538   # not appear in the list.
6539   echo 'int i;' > conftest.$ac_ext
6540   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6541   (eval $ac_compile) 2>&5
6542   ac_status=$?
6543   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6544   test $ac_status = 0; }; then
6545     case `/usr/bin/file conftest.o` in
6546       *32-bit*)
6547         case $host in
6548           x86_64-*kfreebsd*-gnu)
6549             LD="${LD-ld} -m elf_i386_fbsd"
6550             ;;
6551           x86_64-*linux*)
6552             case `/usr/bin/file conftest.o` in
6553               *x86-64*)
6554                 LD="${LD-ld} -m elf32_x86_64"
6555                 ;;
6556               *)
6557                 LD="${LD-ld} -m elf_i386"
6558                 ;;
6559             esac
6560             ;;
6561           powerpc64le-*linux*)
6562             LD="${LD-ld} -m elf32lppclinux"
6563             ;;
6564           powerpc64-*linux*)
6565             LD="${LD-ld} -m elf32ppclinux"
6566             ;;
6567           s390x-*linux*)
6568             LD="${LD-ld} -m elf_s390"
6569             ;;
6570           sparc64-*linux*)
6571             LD="${LD-ld} -m elf32_sparc"
6572             ;;
6573         esac
6574         ;;
6575       *64-bit*)
6576         case $host in
6577           x86_64-*kfreebsd*-gnu)
6578             LD="${LD-ld} -m elf_x86_64_fbsd"
6579             ;;
6580           x86_64-*linux*)
6581             LD="${LD-ld} -m elf_x86_64"
6582             ;;
6583           powerpcle-*linux*)
6584             LD="${LD-ld} -m elf64lppc"
6585             ;;
6586           powerpc-*linux*)
6587             LD="${LD-ld} -m elf64ppc"
6588             ;;
6589           s390*-*linux*|s390*-*tpf*)
6590             LD="${LD-ld} -m elf64_s390"
6591             ;;
6592           sparc*-*linux*)
6593             LD="${LD-ld} -m elf64_sparc"
6594             ;;
6595         esac
6596         ;;
6597     esac
6598   fi
6599   rm -rf conftest*
6600   ;;
6601
6602 *-*-sco3.2v5*)
6603   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6604   SAVE_CFLAGS=$CFLAGS
6605   CFLAGS="$CFLAGS -belf"
6606   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6607 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6608 if ${lt_cv_cc_needs_belf+:} false; then :
6609   $as_echo_n "(cached) " >&6
6610 else
6611   ac_ext=c
6612 ac_cpp='$CPP $CPPFLAGS'
6613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6616
6617      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618 /* end confdefs.h.  */
6619
6620 int
6621 main ()
6622 {
6623
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 if ac_fn_c_try_link "$LINENO"; then :
6629   lt_cv_cc_needs_belf=yes
6630 else
6631   lt_cv_cc_needs_belf=no
6632 fi
6633 rm -f core conftest.err conftest.$ac_objext \
6634     conftest$ac_exeext conftest.$ac_ext
6635      ac_ext=c
6636 ac_cpp='$CPP $CPPFLAGS'
6637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6640
6641 fi
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6643 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6644   if test yes != "$lt_cv_cc_needs_belf"; then
6645     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6646     CFLAGS=$SAVE_CFLAGS
6647   fi
6648   ;;
6649 *-*solaris*)
6650   # Find out what ABI is being produced by ac_compile, and set linker
6651   # options accordingly.
6652   echo 'int i;' > conftest.$ac_ext
6653   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6654   (eval $ac_compile) 2>&5
6655   ac_status=$?
6656   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6657   test $ac_status = 0; }; then
6658     case `/usr/bin/file conftest.o` in
6659     *64-bit*)
6660       case $lt_cv_prog_gnu_ld in
6661       yes*)
6662         case $host in
6663         i?86-*-solaris*|x86_64-*-solaris*)
6664           LD="${LD-ld} -m elf_x86_64"
6665           ;;
6666         sparc*-*-solaris*)
6667           LD="${LD-ld} -m elf64_sparc"
6668           ;;
6669         esac
6670         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6671         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6672           LD=${LD-ld}_sol2
6673         fi
6674         ;;
6675       *)
6676         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6677           LD="${LD-ld} -64"
6678         fi
6679         ;;
6680       esac
6681       ;;
6682     esac
6683   fi
6684   rm -rf conftest*
6685   ;;
6686 esac
6687
6688 need_locks=$enable_libtool_lock
6689
6690 if test -n "$ac_tool_prefix"; then
6691   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}mt; ac_word=$2
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694 $as_echo_n "checking for $ac_word... " >&6; }
6695 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6696   $as_echo_n "(cached) " >&6
6697 else
6698   if test -n "$MANIFEST_TOOL"; then
6699   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6700 else
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702 for as_dir in $PATH
6703 do
6704   IFS=$as_save_IFS
6705   test -z "$as_dir" && as_dir=.
6706     for ac_exec_ext in '' $ac_executable_extensions; do
6707   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6708     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710     break 2
6711   fi
6712 done
6713   done
6714 IFS=$as_save_IFS
6715
6716 fi
6717 fi
6718 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6719 if test -n "$MANIFEST_TOOL"; then
6720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6721 $as_echo "$MANIFEST_TOOL" >&6; }
6722 else
6723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724 $as_echo "no" >&6; }
6725 fi
6726
6727
6728 fi
6729 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6730   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6731   # Extract the first word of "mt", so it can be a program name with args.
6732 set dummy mt; ac_word=$2
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6734 $as_echo_n "checking for $ac_word... " >&6; }
6735 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   if test -n "$ac_ct_MANIFEST_TOOL"; then
6739   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744   IFS=$as_save_IFS
6745   test -z "$as_dir" && as_dir=.
6746     for ac_exec_ext in '' $ac_executable_extensions; do
6747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6748     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750     break 2
6751   fi
6752 done
6753   done
6754 IFS=$as_save_IFS
6755
6756 fi
6757 fi
6758 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6759 if test -n "$ac_ct_MANIFEST_TOOL"; then
6760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6761 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6762 else
6763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6764 $as_echo "no" >&6; }
6765 fi
6766
6767   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6768     MANIFEST_TOOL=":"
6769   else
6770     case $cross_compiling:$ac_tool_warned in
6771 yes:)
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6774 ac_tool_warned=yes ;;
6775 esac
6776     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6777   fi
6778 else
6779   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6780 fi
6781
6782 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6784 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6785 if ${lt_cv_path_mainfest_tool+:} false; then :
6786   $as_echo_n "(cached) " >&6
6787 else
6788   lt_cv_path_mainfest_tool=no
6789   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6790   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6791   cat conftest.err >&5
6792   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6793     lt_cv_path_mainfest_tool=yes
6794   fi
6795   rm -f conftest*
6796 fi
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6798 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6799 if test yes != "$lt_cv_path_mainfest_tool"; then
6800   MANIFEST_TOOL=:
6801 fi
6802
6803
6804
6805
6806
6807
6808   case $host_os in
6809     rhapsody* | darwin*)
6810     if test -n "$ac_tool_prefix"; then
6811   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6812 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814 $as_echo_n "checking for $ac_word... " >&6; }
6815 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6816   $as_echo_n "(cached) " >&6
6817 else
6818   if test -n "$DSYMUTIL"; then
6819   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826     for ac_exec_ext in '' $ac_executable_extensions; do
6827   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6829     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833   done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6839 if test -n "$DSYMUTIL"; then
6840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6841 $as_echo "$DSYMUTIL" >&6; }
6842 else
6843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6845 fi
6846
6847
6848 fi
6849 if test -z "$ac_cv_prog_DSYMUTIL"; then
6850   ac_ct_DSYMUTIL=$DSYMUTIL
6851   # Extract the first word of "dsymutil", so it can be a program name with args.
6852 set dummy dsymutil; ac_word=$2
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6854 $as_echo_n "checking for $ac_word... " >&6; }
6855 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6856   $as_echo_n "(cached) " >&6
6857 else
6858   if test -n "$ac_ct_DSYMUTIL"; then
6859   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6860 else
6861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6862 for as_dir in $PATH
6863 do
6864   IFS=$as_save_IFS
6865   test -z "$as_dir" && as_dir=.
6866     for ac_exec_ext in '' $ac_executable_extensions; do
6867   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6868     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6869     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6870     break 2
6871   fi
6872 done
6873   done
6874 IFS=$as_save_IFS
6875
6876 fi
6877 fi
6878 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6879 if test -n "$ac_ct_DSYMUTIL"; then
6880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6881 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6882 else
6883   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6885 fi
6886
6887   if test "x$ac_ct_DSYMUTIL" = x; then
6888     DSYMUTIL=":"
6889   else
6890     case $cross_compiling:$ac_tool_warned in
6891 yes:)
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6894 ac_tool_warned=yes ;;
6895 esac
6896     DSYMUTIL=$ac_ct_DSYMUTIL
6897   fi
6898 else
6899   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6900 fi
6901
6902     if test -n "$ac_tool_prefix"; then
6903   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if ${ac_cv_prog_NMEDIT+:} false; then :
6908   $as_echo_n "(cached) " >&6
6909 else
6910   if test -n "$NMEDIT"; then
6911   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916   IFS=$as_save_IFS
6917   test -z "$as_dir" && as_dir=.
6918     for ac_exec_ext in '' $ac_executable_extensions; do
6919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6920     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922     break 2
6923   fi
6924 done
6925   done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 NMEDIT=$ac_cv_prog_NMEDIT
6931 if test -n "$NMEDIT"; then
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6933 $as_echo "$NMEDIT" >&6; }
6934 else
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939
6940 fi
6941 if test -z "$ac_cv_prog_NMEDIT"; then
6942   ac_ct_NMEDIT=$NMEDIT
6943   # Extract the first word of "nmedit", so it can be a program name with args.
6944 set dummy nmedit; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   if test -n "$ac_ct_NMEDIT"; then
6951   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958     for ac_exec_ext in '' $ac_executable_extensions; do
6959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6960     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965   done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6971 if test -n "$ac_ct_NMEDIT"; then
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6973 $as_echo "$ac_ct_NMEDIT" >&6; }
6974 else
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979   if test "x$ac_ct_NMEDIT" = x; then
6980     NMEDIT=":"
6981   else
6982     case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988     NMEDIT=$ac_ct_NMEDIT
6989   fi
6990 else
6991   NMEDIT="$ac_cv_prog_NMEDIT"
6992 fi
6993
6994     if test -n "$ac_tool_prefix"; then
6995   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6996 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6998 $as_echo_n "checking for $ac_word... " >&6; }
6999 if ${ac_cv_prog_LIPO+:} false; then :
7000   $as_echo_n "(cached) " >&6
7001 else
7002   if test -n "$LIPO"; then
7003   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7004 else
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 for as_dir in $PATH
7007 do
7008   IFS=$as_save_IFS
7009   test -z "$as_dir" && as_dir=.
7010     for ac_exec_ext in '' $ac_executable_extensions; do
7011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7014     break 2
7015   fi
7016 done
7017   done
7018 IFS=$as_save_IFS
7019
7020 fi
7021 fi
7022 LIPO=$ac_cv_prog_LIPO
7023 if test -n "$LIPO"; then
7024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7025 $as_echo "$LIPO" >&6; }
7026 else
7027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7028 $as_echo "no" >&6; }
7029 fi
7030
7031
7032 fi
7033 if test -z "$ac_cv_prog_LIPO"; then
7034   ac_ct_LIPO=$LIPO
7035   # Extract the first word of "lipo", so it can be a program name with args.
7036 set dummy lipo; ac_word=$2
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7038 $as_echo_n "checking for $ac_word... " >&6; }
7039 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7040   $as_echo_n "(cached) " >&6
7041 else
7042   if test -n "$ac_ct_LIPO"; then
7043   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7044 else
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH
7047 do
7048   IFS=$as_save_IFS
7049   test -z "$as_dir" && as_dir=.
7050     for ac_exec_ext in '' $ac_executable_extensions; do
7051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7052     ac_cv_prog_ac_ct_LIPO="lipo"
7053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7054     break 2
7055   fi
7056 done
7057   done
7058 IFS=$as_save_IFS
7059
7060 fi
7061 fi
7062 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7063 if test -n "$ac_ct_LIPO"; then
7064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7065 $as_echo "$ac_ct_LIPO" >&6; }
7066 else
7067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7068 $as_echo "no" >&6; }
7069 fi
7070
7071   if test "x$ac_ct_LIPO" = x; then
7072     LIPO=":"
7073   else
7074     case $cross_compiling:$ac_tool_warned in
7075 yes:)
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7078 ac_tool_warned=yes ;;
7079 esac
7080     LIPO=$ac_ct_LIPO
7081   fi
7082 else
7083   LIPO="$ac_cv_prog_LIPO"
7084 fi
7085
7086     if test -n "$ac_tool_prefix"; then
7087   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7088 set dummy ${ac_tool_prefix}otool; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7090 $as_echo_n "checking for $ac_word... " >&6; }
7091 if ${ac_cv_prog_OTOOL+:} false; then :
7092   $as_echo_n "(cached) " >&6
7093 else
7094   if test -n "$OTOOL"; then
7095   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7096 else
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098 for as_dir in $PATH
7099 do
7100   IFS=$as_save_IFS
7101   test -z "$as_dir" && as_dir=.
7102     for ac_exec_ext in '' $ac_executable_extensions; do
7103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7106     break 2
7107   fi
7108 done
7109   done
7110 IFS=$as_save_IFS
7111
7112 fi
7113 fi
7114 OTOOL=$ac_cv_prog_OTOOL
7115 if test -n "$OTOOL"; then
7116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7117 $as_echo "$OTOOL" >&6; }
7118 else
7119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7120 $as_echo "no" >&6; }
7121 fi
7122
7123
7124 fi
7125 if test -z "$ac_cv_prog_OTOOL"; then
7126   ac_ct_OTOOL=$OTOOL
7127   # Extract the first word of "otool", so it can be a program name with args.
7128 set dummy otool; ac_word=$2
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130 $as_echo_n "checking for $ac_word... " >&6; }
7131 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7132   $as_echo_n "(cached) " >&6
7133 else
7134   if test -n "$ac_ct_OTOOL"; then
7135   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7136 else
7137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7138 for as_dir in $PATH
7139 do
7140   IFS=$as_save_IFS
7141   test -z "$as_dir" && as_dir=.
7142     for ac_exec_ext in '' $ac_executable_extensions; do
7143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144     ac_cv_prog_ac_ct_OTOOL="otool"
7145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7146     break 2
7147   fi
7148 done
7149   done
7150 IFS=$as_save_IFS
7151
7152 fi
7153 fi
7154 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7155 if test -n "$ac_ct_OTOOL"; then
7156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7157 $as_echo "$ac_ct_OTOOL" >&6; }
7158 else
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162
7163   if test "x$ac_ct_OTOOL" = x; then
7164     OTOOL=":"
7165   else
7166     case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172     OTOOL=$ac_ct_OTOOL
7173   fi
7174 else
7175   OTOOL="$ac_cv_prog_OTOOL"
7176 fi
7177
7178     if test -n "$ac_tool_prefix"; then
7179   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7180 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182 $as_echo_n "checking for $ac_word... " >&6; }
7183 if ${ac_cv_prog_OTOOL64+:} false; then :
7184   $as_echo_n "(cached) " >&6
7185 else
7186   if test -n "$OTOOL64"; then
7187   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7188 else
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190 for as_dir in $PATH
7191 do
7192   IFS=$as_save_IFS
7193   test -z "$as_dir" && as_dir=.
7194     for ac_exec_ext in '' $ac_executable_extensions; do
7195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198     break 2
7199   fi
7200 done
7201   done
7202 IFS=$as_save_IFS
7203
7204 fi
7205 fi
7206 OTOOL64=$ac_cv_prog_OTOOL64
7207 if test -n "$OTOOL64"; then
7208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7209 $as_echo "$OTOOL64" >&6; }
7210 else
7211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212 $as_echo "no" >&6; }
7213 fi
7214
7215
7216 fi
7217 if test -z "$ac_cv_prog_OTOOL64"; then
7218   ac_ct_OTOOL64=$OTOOL64
7219   # Extract the first word of "otool64", so it can be a program name with args.
7220 set dummy otool64; ac_word=$2
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7222 $as_echo_n "checking for $ac_word... " >&6; }
7223 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7224   $as_echo_n "(cached) " >&6
7225 else
7226   if test -n "$ac_ct_OTOOL64"; then
7227   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7228 else
7229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7230 for as_dir in $PATH
7231 do
7232   IFS=$as_save_IFS
7233   test -z "$as_dir" && as_dir=.
7234     for ac_exec_ext in '' $ac_executable_extensions; do
7235   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7236     ac_cv_prog_ac_ct_OTOOL64="otool64"
7237     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7238     break 2
7239   fi
7240 done
7241   done
7242 IFS=$as_save_IFS
7243
7244 fi
7245 fi
7246 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7247 if test -n "$ac_ct_OTOOL64"; then
7248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7249 $as_echo "$ac_ct_OTOOL64" >&6; }
7250 else
7251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7253 fi
7254
7255   if test "x$ac_ct_OTOOL64" = x; then
7256     OTOOL64=":"
7257   else
7258     case $cross_compiling:$ac_tool_warned in
7259 yes:)
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7261 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7262 ac_tool_warned=yes ;;
7263 esac
7264     OTOOL64=$ac_ct_OTOOL64
7265   fi
7266 else
7267   OTOOL64="$ac_cv_prog_OTOOL64"
7268 fi
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7297 $as_echo_n "checking for -single_module linker flag... " >&6; }
7298 if ${lt_cv_apple_cc_single_mod+:} false; then :
7299   $as_echo_n "(cached) " >&6
7300 else
7301   lt_cv_apple_cc_single_mod=no
7302       if test -z "$LT_MULTI_MODULE"; then
7303         # By default we will add the -single_module flag. You can override
7304         # by either setting the environment variable LT_MULTI_MODULE
7305         # non-empty at configure time, or by adding -multi_module to the
7306         # link flags.
7307         rm -rf libconftest.dylib*
7308         echo "int foo(void){return 1;}" > conftest.c
7309         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7310 -dynamiclib -Wl,-single_module conftest.c" >&5
7311         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7312           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7313         _lt_result=$?
7314         # If there is a non-empty error log, and "single_module"
7315         # appears in it, assume the flag caused a linker warning
7316         if test -s conftest.err && $GREP single_module conftest.err; then
7317           cat conftest.err >&5
7318         # Otherwise, if the output was created with a 0 exit code from
7319         # the compiler, it worked.
7320         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7321           lt_cv_apple_cc_single_mod=yes
7322         else
7323           cat conftest.err >&5
7324         fi
7325         rm -rf libconftest.dylib*
7326         rm -f conftest.*
7327       fi
7328 fi
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7330 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7331
7332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7333 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7334 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   lt_cv_ld_exported_symbols_list=no
7338       save_LDFLAGS=$LDFLAGS
7339       echo "_main" > conftest.sym
7340       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7341       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342 /* end confdefs.h.  */
7343
7344 int
7345 main ()
7346 {
7347
7348   ;
7349   return 0;
7350 }
7351 _ACEOF
7352 if ac_fn_c_try_link "$LINENO"; then :
7353   lt_cv_ld_exported_symbols_list=yes
7354 else
7355   lt_cv_ld_exported_symbols_list=no
7356 fi
7357 rm -f core conftest.err conftest.$ac_objext \
7358     conftest$ac_exeext conftest.$ac_ext
7359         LDFLAGS=$save_LDFLAGS
7360
7361 fi
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7363 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7364
7365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7366 $as_echo_n "checking for -force_load linker flag... " >&6; }
7367 if ${lt_cv_ld_force_load+:} false; then :
7368   $as_echo_n "(cached) " >&6
7369 else
7370   lt_cv_ld_force_load=no
7371       cat > conftest.c << _LT_EOF
7372 int forced_loaded() { return 2;}
7373 _LT_EOF
7374       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7375       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7376       echo "$AR cru libconftest.a conftest.o" >&5
7377       $AR cru libconftest.a conftest.o 2>&5
7378       echo "$RANLIB libconftest.a" >&5
7379       $RANLIB libconftest.a 2>&5
7380       cat > conftest.c << _LT_EOF
7381 int main() { return 0;}
7382 _LT_EOF
7383       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7384       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7385       _lt_result=$?
7386       if test -s conftest.err && $GREP force_load conftest.err; then
7387         cat conftest.err >&5
7388       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7389         lt_cv_ld_force_load=yes
7390       else
7391         cat conftest.err >&5
7392       fi
7393         rm -f conftest.err libconftest.a conftest conftest.c
7394         rm -rf conftest.dSYM
7395
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7398 $as_echo "$lt_cv_ld_force_load" >&6; }
7399     case $host_os in
7400     rhapsody* | darwin1.[012])
7401       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7402     darwin1.*)
7403       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7404     darwin*) # darwin 5.x on
7405       # if running on 10.5 or later, the deployment target defaults
7406       # to the OS version, if on x86, and 10.4, the deployment
7407       # target defaults to 10.4. Don't you love it?
7408       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7409         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7410           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7411         10.[012][,.]*)
7412           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7413         10.*)
7414           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7415       esac
7416     ;;
7417   esac
7418     if test yes = "$lt_cv_apple_cc_single_mod"; then
7419       _lt_dar_single_mod='$single_module'
7420     fi
7421     if test yes = "$lt_cv_ld_exported_symbols_list"; then
7422       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7423     else
7424       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7425     fi
7426     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7427       _lt_dsymutil='~$DSYMUTIL $lib || :'
7428     else
7429       _lt_dsymutil=
7430     fi
7431     ;;
7432   esac
7433
7434 # func_munge_path_list VARIABLE PATH
7435 # -----------------------------------
7436 # VARIABLE is name of variable containing _space_ separated list of
7437 # directories to be munged by the contents of PATH, which is string
7438 # having a format:
7439 # "DIR[:DIR]:"
7440 #       string "DIR[ DIR]" will be prepended to VARIABLE
7441 # ":DIR[:DIR]"
7442 #       string "DIR[ DIR]" will be appended to VARIABLE
7443 # "DIRP[:DIRP]::[DIRA:]DIRA"
7444 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7445 #       "DIRA[ DIRA]" will be appended to VARIABLE
7446 # "DIR[:DIR]"
7447 #       VARIABLE will be replaced by "DIR[ DIR]"
7448 func_munge_path_list ()
7449 {
7450     case x$2 in
7451     x)
7452         ;;
7453     *:)
7454         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7455         ;;
7456     x:*)
7457         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7458         ;;
7459     *::*)
7460         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7461         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7462         ;;
7463     *)
7464         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7465         ;;
7466     esac
7467 }
7468
7469 ac_ext=c
7470 ac_cpp='$CPP $CPPFLAGS'
7471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7475 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7476 # On Suns, sometimes $CPP names a directory.
7477 if test -n "$CPP" && test -d "$CPP"; then
7478   CPP=
7479 fi
7480 if test -z "$CPP"; then
7481   if ${ac_cv_prog_CPP+:} false; then :
7482   $as_echo_n "(cached) " >&6
7483 else
7484       # Double quotes because CPP needs to be expanded
7485     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7486     do
7487       ac_preproc_ok=false
7488 for ac_c_preproc_warn_flag in '' yes
7489 do
7490   # Use a header file that comes with gcc, so configuring glibc
7491   # with a fresh cross-compiler works.
7492   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7493   # <limits.h> exists even on freestanding compilers.
7494   # On the NeXT, cc -E runs the code through the compiler's parser,
7495   # not just through cpp. "Syntax error" is here to catch this case.
7496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7497 /* end confdefs.h.  */
7498 #ifdef __STDC__
7499 # include <limits.h>
7500 #else
7501 # include <assert.h>
7502 #endif
7503                      Syntax error
7504 _ACEOF
7505 if ac_fn_c_try_cpp "$LINENO"; then :
7506
7507 else
7508   # Broken: fails on valid input.
7509 continue
7510 fi
7511 rm -f conftest.err conftest.i conftest.$ac_ext
7512
7513   # OK, works on sane cases.  Now check whether nonexistent headers
7514   # can be detected and how.
7515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7516 /* end confdefs.h.  */
7517 #include <ac_nonexistent.h>
7518 _ACEOF
7519 if ac_fn_c_try_cpp "$LINENO"; then :
7520   # Broken: success on invalid input.
7521 continue
7522 else
7523   # Passes both tests.
7524 ac_preproc_ok=:
7525 break
7526 fi
7527 rm -f conftest.err conftest.i conftest.$ac_ext
7528
7529 done
7530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7531 rm -f conftest.i conftest.err conftest.$ac_ext
7532 if $ac_preproc_ok; then :
7533   break
7534 fi
7535
7536     done
7537     ac_cv_prog_CPP=$CPP
7538
7539 fi
7540   CPP=$ac_cv_prog_CPP
7541 else
7542   ac_cv_prog_CPP=$CPP
7543 fi
7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7545 $as_echo "$CPP" >&6; }
7546 ac_preproc_ok=false
7547 for ac_c_preproc_warn_flag in '' yes
7548 do
7549   # Use a header file that comes with gcc, so configuring glibc
7550   # with a fresh cross-compiler works.
7551   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7552   # <limits.h> exists even on freestanding compilers.
7553   # On the NeXT, cc -E runs the code through the compiler's parser,
7554   # not just through cpp. "Syntax error" is here to catch this case.
7555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7556 /* end confdefs.h.  */
7557 #ifdef __STDC__
7558 # include <limits.h>
7559 #else
7560 # include <assert.h>
7561 #endif
7562                      Syntax error
7563 _ACEOF
7564 if ac_fn_c_try_cpp "$LINENO"; then :
7565
7566 else
7567   # Broken: fails on valid input.
7568 continue
7569 fi
7570 rm -f conftest.err conftest.i conftest.$ac_ext
7571
7572   # OK, works on sane cases.  Now check whether nonexistent headers
7573   # can be detected and how.
7574   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7575 /* end confdefs.h.  */
7576 #include <ac_nonexistent.h>
7577 _ACEOF
7578 if ac_fn_c_try_cpp "$LINENO"; then :
7579   # Broken: success on invalid input.
7580 continue
7581 else
7582   # Passes both tests.
7583 ac_preproc_ok=:
7584 break
7585 fi
7586 rm -f conftest.err conftest.i conftest.$ac_ext
7587
7588 done
7589 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7590 rm -f conftest.i conftest.err conftest.$ac_ext
7591 if $ac_preproc_ok; then :
7592
7593 else
7594   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7596 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7597 See \`config.log' for more details" "$LINENO" 5; }
7598 fi
7599
7600 ac_ext=c
7601 ac_cpp='$CPP $CPPFLAGS'
7602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7605
7606
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7608 $as_echo_n "checking for ANSI C header files... " >&6; }
7609 if ${ac_cv_header_stdc+:} false; then :
7610   $as_echo_n "(cached) " >&6
7611 else
7612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h.  */
7614 #include <stdlib.h>
7615 #include <stdarg.h>
7616 #include <string.h>
7617 #include <float.h>
7618
7619 int
7620 main ()
7621 {
7622
7623   ;
7624   return 0;
7625 }
7626 _ACEOF
7627 if ac_fn_c_try_compile "$LINENO"; then :
7628   ac_cv_header_stdc=yes
7629 else
7630   ac_cv_header_stdc=no
7631 fi
7632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7633
7634 if test $ac_cv_header_stdc = yes; then
7635   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h.  */
7638 #include <string.h>
7639
7640 _ACEOF
7641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7642   $EGREP "memchr" >/dev/null 2>&1; then :
7643
7644 else
7645   ac_cv_header_stdc=no
7646 fi
7647 rm -f conftest*
7648
7649 fi
7650
7651 if test $ac_cv_header_stdc = yes; then
7652   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h.  */
7655 #include <stdlib.h>
7656
7657 _ACEOF
7658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7659   $EGREP "free" >/dev/null 2>&1; then :
7660
7661 else
7662   ac_cv_header_stdc=no
7663 fi
7664 rm -f conftest*
7665
7666 fi
7667
7668 if test $ac_cv_header_stdc = yes; then
7669   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7670   if test "$cross_compiling" = yes; then :
7671   :
7672 else
7673   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7674 /* end confdefs.h.  */
7675 #include <ctype.h>
7676 #include <stdlib.h>
7677 #if ((' ' & 0x0FF) == 0x020)
7678 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7679 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7680 #else
7681 # define ISLOWER(c) \
7682                    (('a' <= (c) && (c) <= 'i') \
7683                      || ('j' <= (c) && (c) <= 'r') \
7684                      || ('s' <= (c) && (c) <= 'z'))
7685 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7686 #endif
7687
7688 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7689 int
7690 main ()
7691 {
7692   int i;
7693   for (i = 0; i < 256; i++)
7694     if (XOR (islower (i), ISLOWER (i))
7695         || toupper (i) != TOUPPER (i))
7696       return 2;
7697   return 0;
7698 }
7699 _ACEOF
7700 if ac_fn_c_try_run "$LINENO"; then :
7701
7702 else
7703   ac_cv_header_stdc=no
7704 fi
7705 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7706   conftest.$ac_objext conftest.beam conftest.$ac_ext
7707 fi
7708
7709 fi
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7712 $as_echo "$ac_cv_header_stdc" >&6; }
7713 if test $ac_cv_header_stdc = yes; then
7714
7715 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7716
7717 fi
7718
7719 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7720 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7721                   inttypes.h stdint.h unistd.h
7722 do :
7723   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7724 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7725 "
7726 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7727   cat >>confdefs.h <<_ACEOF
7728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7729 _ACEOF
7730
7731 fi
7732
7733 done
7734
7735
7736 for ac_header in dlfcn.h
7737 do :
7738   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7739 "
7740 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7741   cat >>confdefs.h <<_ACEOF
7742 #define HAVE_DLFCN_H 1
7743 _ACEOF
7744
7745 fi
7746
7747 done
7748
7749
7750
7751
7752
7753 # Set options
7754 enable_dlopen=yes
7755 enable_win32_dll=yes
7756
7757 case $host in
7758 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7759   if test -n "$ac_tool_prefix"; then
7760   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}as; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if ${ac_cv_prog_AS+:} false; then :
7765   $as_echo_n "(cached) " >&6
7766 else
7767   if test -n "$AS"; then
7768   ac_cv_prog_AS="$AS" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775     for ac_exec_ext in '' $ac_executable_extensions; do
7776   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7777     ac_cv_prog_AS="${ac_tool_prefix}as"
7778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782   done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 AS=$ac_cv_prog_AS
7788 if test -n "$AS"; then
7789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7790 $as_echo "$AS" >&6; }
7791 else
7792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796
7797 fi
7798 if test -z "$ac_cv_prog_AS"; then
7799   ac_ct_AS=$AS
7800   # Extract the first word of "as", so it can be a program name with args.
7801 set dummy as; ac_word=$2
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7803 $as_echo_n "checking for $ac_word... " >&6; }
7804 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7805   $as_echo_n "(cached) " >&6
7806 else
7807   if test -n "$ac_ct_AS"; then
7808   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7809 else
7810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815     for ac_exec_ext in '' $ac_executable_extensions; do
7816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7817     ac_cv_prog_ac_ct_AS="as"
7818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822   done
7823 IFS=$as_save_IFS
7824
7825 fi
7826 fi
7827 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7828 if test -n "$ac_ct_AS"; then
7829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7830 $as_echo "$ac_ct_AS" >&6; }
7831 else
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7833 $as_echo "no" >&6; }
7834 fi
7835
7836   if test "x$ac_ct_AS" = x; then
7837     AS="false"
7838   else
7839     case $cross_compiling:$ac_tool_warned in
7840 yes:)
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7843 ac_tool_warned=yes ;;
7844 esac
7845     AS=$ac_ct_AS
7846   fi
7847 else
7848   AS="$ac_cv_prog_AS"
7849 fi
7850
7851   if test -n "$ac_tool_prefix"; then
7852   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7853 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_prog_DLLTOOL+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$DLLTOOL"; then
7860   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867     for ac_exec_ext in '' $ac_executable_extensions; do
7868   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7869     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7870     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874   done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 DLLTOOL=$ac_cv_prog_DLLTOOL
7880 if test -n "$DLLTOOL"; then
7881   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7882 $as_echo "$DLLTOOL" >&6; }
7883 else
7884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888
7889 fi
7890 if test -z "$ac_cv_prog_DLLTOOL"; then
7891   ac_ct_DLLTOOL=$DLLTOOL
7892   # Extract the first word of "dlltool", so it can be a program name with args.
7893 set dummy dlltool; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7897   $as_echo_n "(cached) " >&6
7898 else
7899   if test -n "$ac_ct_DLLTOOL"; then
7900   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7901 else
7902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903 for as_dir in $PATH
7904 do
7905   IFS=$as_save_IFS
7906   test -z "$as_dir" && as_dir=.
7907     for ac_exec_ext in '' $ac_executable_extensions; do
7908   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7909     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7910     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7911     break 2
7912   fi
7913 done
7914   done
7915 IFS=$as_save_IFS
7916
7917 fi
7918 fi
7919 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7920 if test -n "$ac_ct_DLLTOOL"; then
7921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7922 $as_echo "$ac_ct_DLLTOOL" >&6; }
7923 else
7924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7926 fi
7927
7928   if test "x$ac_ct_DLLTOOL" = x; then
7929     DLLTOOL="false"
7930   else
7931     case $cross_compiling:$ac_tool_warned in
7932 yes:)
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7934 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7935 ac_tool_warned=yes ;;
7936 esac
7937     DLLTOOL=$ac_ct_DLLTOOL
7938   fi
7939 else
7940   DLLTOOL="$ac_cv_prog_DLLTOOL"
7941 fi
7942
7943   if test -n "$ac_tool_prefix"; then
7944   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7945 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if ${ac_cv_prog_OBJDUMP+:} false; then :
7949   $as_echo_n "(cached) " >&6
7950 else
7951   if test -n "$OBJDUMP"; then
7952   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959     for ac_exec_ext in '' $ac_executable_extensions; do
7960   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7961     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7962     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966   done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 OBJDUMP=$ac_cv_prog_OBJDUMP
7972 if test -n "$OBJDUMP"; then
7973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7974 $as_echo "$OBJDUMP" >&6; }
7975 else
7976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980
7981 fi
7982 if test -z "$ac_cv_prog_OBJDUMP"; then
7983   ac_ct_OBJDUMP=$OBJDUMP
7984   # Extract the first word of "objdump", so it can be a program name with args.
7985 set dummy objdump; ac_word=$2
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7987 $as_echo_n "checking for $ac_word... " >&6; }
7988 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7989   $as_echo_n "(cached) " >&6
7990 else
7991   if test -n "$ac_ct_OBJDUMP"; then
7992   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7993 else
7994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7995 for as_dir in $PATH
7996 do
7997   IFS=$as_save_IFS
7998   test -z "$as_dir" && as_dir=.
7999     for ac_exec_ext in '' $ac_executable_extensions; do
8000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8001     ac_cv_prog_ac_ct_OBJDUMP="objdump"
8002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8003     break 2
8004   fi
8005 done
8006   done
8007 IFS=$as_save_IFS
8008
8009 fi
8010 fi
8011 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8012 if test -n "$ac_ct_OBJDUMP"; then
8013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8014 $as_echo "$ac_ct_OBJDUMP" >&6; }
8015 else
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8017 $as_echo "no" >&6; }
8018 fi
8019
8020   if test "x$ac_ct_OBJDUMP" = x; then
8021     OBJDUMP="false"
8022   else
8023     case $cross_compiling:$ac_tool_warned in
8024 yes:)
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8027 ac_tool_warned=yes ;;
8028 esac
8029     OBJDUMP=$ac_ct_OBJDUMP
8030   fi
8031 else
8032   OBJDUMP="$ac_cv_prog_OBJDUMP"
8033 fi
8034
8035   ;;
8036 esac
8037
8038 test -z "$AS" && AS=as
8039
8040
8041
8042
8043
8044 test -z "$DLLTOOL" && DLLTOOL=dlltool
8045
8046
8047
8048
8049
8050 test -z "$OBJDUMP" && OBJDUMP=objdump
8051
8052
8053
8054
8055 # Check whether --enable-static was given.
8056 if test "${enable_static+set}" = set; then :
8057   enableval=$enable_static; p=${PACKAGE-default}
8058     case $enableval in
8059     yes) enable_static=yes ;;
8060     no) enable_static=no ;;
8061     *)
8062      enable_static=no
8063       # Look at the argument we got.  We use all the common list separators.
8064       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8065       for pkg in $enableval; do
8066         IFS=$lt_save_ifs
8067         if test "X$pkg" = "X$p"; then
8068           enable_static=yes
8069         fi
8070       done
8071       IFS=$lt_save_ifs
8072       ;;
8073     esac
8074 else
8075   enable_static=no
8076 fi
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089             # Check whether --enable-shared was given.
8090 if test "${enable_shared+set}" = set; then :
8091   enableval=$enable_shared; p=${PACKAGE-default}
8092     case $enableval in
8093     yes) enable_shared=yes ;;
8094     no) enable_shared=no ;;
8095     *)
8096       enable_shared=no
8097       # Look at the argument we got.  We use all the common list separators.
8098       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8099       for pkg in $enableval; do
8100         IFS=$lt_save_ifs
8101         if test "X$pkg" = "X$p"; then
8102           enable_shared=yes
8103         fi
8104       done
8105       IFS=$lt_save_ifs
8106       ;;
8107     esac
8108 else
8109   enable_shared=yes
8110 fi
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122 # Check whether --with-pic was given.
8123 if test "${with_pic+set}" = set; then :
8124   withval=$with_pic; lt_p=${PACKAGE-default}
8125     case $withval in
8126     yes|no) pic_mode=$withval ;;
8127     *)
8128       pic_mode=default
8129       # Look at the argument we got.  We use all the common list separators.
8130       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8131       for lt_pkg in $withval; do
8132         IFS=$lt_save_ifs
8133         if test "X$lt_pkg" = "X$lt_p"; then
8134           pic_mode=yes
8135         fi
8136       done
8137       IFS=$lt_save_ifs
8138       ;;
8139     esac
8140 else
8141   pic_mode=default
8142 fi
8143
8144
8145
8146
8147
8148
8149
8150
8151   # Check whether --enable-fast-install was given.
8152 if test "${enable_fast_install+set}" = set; then :
8153   enableval=$enable_fast_install; p=${PACKAGE-default}
8154     case $enableval in
8155     yes) enable_fast_install=yes ;;
8156     no) enable_fast_install=no ;;
8157     *)
8158       enable_fast_install=no
8159       # Look at the argument we got.  We use all the common list separators.
8160       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8161       for pkg in $enableval; do
8162         IFS=$lt_save_ifs
8163         if test "X$pkg" = "X$p"; then
8164           enable_fast_install=yes
8165         fi
8166       done
8167       IFS=$lt_save_ifs
8168       ;;
8169     esac
8170 else
8171   enable_fast_install=yes
8172 fi
8173
8174
8175
8176
8177
8178
8179
8180
8181   shared_archive_member_spec=
8182 case $host,$enable_shared in
8183 power*-*-aix[5-9]*,yes)
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8185 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8186
8187 # Check whether --with-aix-soname was given.
8188 if test "${with_aix_soname+set}" = set; then :
8189   withval=$with_aix_soname; case $withval in
8190     aix|svr4|both)
8191       ;;
8192     *)
8193       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8194       ;;
8195     esac
8196     lt_cv_with_aix_soname=$with_aix_soname
8197 else
8198   if ${lt_cv_with_aix_soname+:} false; then :
8199   $as_echo_n "(cached) " >&6
8200 else
8201   lt_cv_with_aix_soname=aix
8202 fi
8203
8204     with_aix_soname=$lt_cv_with_aix_soname
8205 fi
8206
8207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8208 $as_echo "$with_aix_soname" >&6; }
8209   if test aix != "$with_aix_soname"; then
8210     # For the AIX way of multilib, we name the shared archive member
8211     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8212     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8213     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8214     # the AIX toolchain works better with OBJECT_MODE set (default 32).
8215     if test 64 = "${OBJECT_MODE-32}"; then
8216       shared_archive_member_spec=shr_64
8217     else
8218       shared_archive_member_spec=shr
8219     fi
8220   fi
8221   ;;
8222 *)
8223   with_aix_soname=aix
8224   ;;
8225 esac
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236 # This can be used to rebuild libtool when needed
8237 LIBTOOL_DEPS=$ltmain
8238
8239 # Always use our own libtool.
8240 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271 test -z "$LN_S" && LN_S="ln -s"
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286 if test -n "${ZSH_VERSION+set}"; then
8287    setopt NO_GLOB_SUBST
8288 fi
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8291 $as_echo_n "checking for objdir... " >&6; }
8292 if ${lt_cv_objdir+:} false; then :
8293   $as_echo_n "(cached) " >&6
8294 else
8295   rm -f .libs 2>/dev/null
8296 mkdir .libs 2>/dev/null
8297 if test -d .libs; then
8298   lt_cv_objdir=.libs
8299 else
8300   # MS-DOS does not allow filenames that begin with a dot.
8301   lt_cv_objdir=_libs
8302 fi
8303 rmdir .libs 2>/dev/null
8304 fi
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8306 $as_echo "$lt_cv_objdir" >&6; }
8307 objdir=$lt_cv_objdir
8308
8309
8310
8311
8312
8313 cat >>confdefs.h <<_ACEOF
8314 #define LT_OBJDIR "$lt_cv_objdir/"
8315 _ACEOF
8316
8317
8318
8319
8320 case $host_os in
8321 aix3*)
8322   # AIX sometimes has problems with the GCC collect2 program.  For some
8323   # reason, if we set the COLLECT_NAMES environment variable, the problems
8324   # vanish in a puff of smoke.
8325   if test set != "${COLLECT_NAMES+set}"; then
8326     COLLECT_NAMES=
8327     export COLLECT_NAMES
8328   fi
8329   ;;
8330 esac
8331
8332 # Global variables:
8333 ofile=libtool
8334 can_build_shared=yes
8335
8336 # All known linkers require a '.a' archive for static linking (except MSVC,
8337 # which needs '.lib').
8338 libext=a
8339
8340 with_gnu_ld=$lt_cv_prog_gnu_ld
8341
8342 old_CC=$CC
8343 old_CFLAGS=$CFLAGS
8344
8345 # Set sane defaults for various variables
8346 test -z "$CC" && CC=cc
8347 test -z "$LTCC" && LTCC=$CC
8348 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8349 test -z "$LD" && LD=ld
8350 test -z "$ac_objext" && ac_objext=o
8351
8352 func_cc_basename $compiler
8353 cc_basename=$func_cc_basename_result
8354
8355
8356 # Only perform the check for file, if the check method requires it
8357 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8358 case $deplibs_check_method in
8359 file_magic*)
8360   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8362 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8363 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8364   $as_echo_n "(cached) " >&6
8365 else
8366   case $MAGIC_CMD in
8367 [\\/*] |  ?:[\\/]*)
8368   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8369   ;;
8370 *)
8371   lt_save_MAGIC_CMD=$MAGIC_CMD
8372   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8373   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8374   for ac_dir in $ac_dummy; do
8375     IFS=$lt_save_ifs
8376     test -z "$ac_dir" && ac_dir=.
8377     if test -f "$ac_dir/${ac_tool_prefix}file"; then
8378       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8379       if test -n "$file_magic_test_file"; then
8380         case $deplibs_check_method in
8381         "file_magic "*)
8382           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8383           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8384           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8385             $EGREP "$file_magic_regex" > /dev/null; then
8386             :
8387           else
8388             cat <<_LT_EOF 1>&2
8389
8390 *** Warning: the command libtool uses to detect shared libraries,
8391 *** $file_magic_cmd, produces output that libtool cannot recognize.
8392 *** The result is that libtool may fail to recognize shared libraries
8393 *** as such.  This will affect the creation of libtool libraries that
8394 *** depend on shared libraries, but programs linked with such libtool
8395 *** libraries will work regardless of this problem.  Nevertheless, you
8396 *** may want to report the problem to your system manager and/or to
8397 *** bug-libtool@gnu.org
8398
8399 _LT_EOF
8400           fi ;;
8401         esac
8402       fi
8403       break
8404     fi
8405   done
8406   IFS=$lt_save_ifs
8407   MAGIC_CMD=$lt_save_MAGIC_CMD
8408   ;;
8409 esac
8410 fi
8411
8412 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8413 if test -n "$MAGIC_CMD"; then
8414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8415 $as_echo "$MAGIC_CMD" >&6; }
8416 else
8417   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8419 fi
8420
8421
8422
8423
8424
8425 if test -z "$lt_cv_path_MAGIC_CMD"; then
8426   if test -n "$ac_tool_prefix"; then
8427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8428 $as_echo_n "checking for file... " >&6; }
8429 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8430   $as_echo_n "(cached) " >&6
8431 else
8432   case $MAGIC_CMD in
8433 [\\/*] |  ?:[\\/]*)
8434   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8435   ;;
8436 *)
8437   lt_save_MAGIC_CMD=$MAGIC_CMD
8438   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8439   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8440   for ac_dir in $ac_dummy; do
8441     IFS=$lt_save_ifs
8442     test -z "$ac_dir" && ac_dir=.
8443     if test -f "$ac_dir/file"; then
8444       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8445       if test -n "$file_magic_test_file"; then
8446         case $deplibs_check_method in
8447         "file_magic "*)
8448           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8449           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8450           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8451             $EGREP "$file_magic_regex" > /dev/null; then
8452             :
8453           else
8454             cat <<_LT_EOF 1>&2
8455
8456 *** Warning: the command libtool uses to detect shared libraries,
8457 *** $file_magic_cmd, produces output that libtool cannot recognize.
8458 *** The result is that libtool may fail to recognize shared libraries
8459 *** as such.  This will affect the creation of libtool libraries that
8460 *** depend on shared libraries, but programs linked with such libtool
8461 *** libraries will work regardless of this problem.  Nevertheless, you
8462 *** may want to report the problem to your system manager and/or to
8463 *** bug-libtool@gnu.org
8464
8465 _LT_EOF
8466           fi ;;
8467         esac
8468       fi
8469       break
8470     fi
8471   done
8472   IFS=$lt_save_ifs
8473   MAGIC_CMD=$lt_save_MAGIC_CMD
8474   ;;
8475 esac
8476 fi
8477
8478 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8479 if test -n "$MAGIC_CMD"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8481 $as_echo "$MAGIC_CMD" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487
8488   else
8489     MAGIC_CMD=:
8490   fi
8491 fi
8492
8493   fi
8494   ;;
8495 esac
8496
8497 # Use C for the default configuration in the libtool script
8498
8499 lt_save_CC=$CC
8500 ac_ext=c
8501 ac_cpp='$CPP $CPPFLAGS'
8502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8505
8506
8507 # Source file extension for C test sources.
8508 ac_ext=c
8509
8510 # Object file extension for compiled C test sources.
8511 objext=o
8512 objext=$objext
8513
8514 # Code to be used in simple compile tests
8515 lt_simple_compile_test_code="int some_variable = 0;"
8516
8517 # Code to be used in simple link tests
8518 lt_simple_link_test_code='int main(){return(0);}'
8519
8520
8521
8522
8523
8524
8525
8526 # If no C compiler was specified, use CC.
8527 LTCC=${LTCC-"$CC"}
8528
8529 # If no C compiler flags were specified, use CFLAGS.
8530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8531
8532 # Allow CC to be a program name with arguments.
8533 compiler=$CC
8534
8535 # Save the default compiler, since it gets overwritten when the other
8536 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8537 compiler_DEFAULT=$CC
8538
8539 # save warnings/boilerplate of simple test code
8540 ac_outfile=conftest.$ac_objext
8541 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8542 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8543 _lt_compiler_boilerplate=`cat conftest.err`
8544 $RM conftest*
8545
8546 ac_outfile=conftest.$ac_objext
8547 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8548 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8549 _lt_linker_boilerplate=`cat conftest.err`
8550 $RM -r conftest*
8551
8552
8553 ## CAVEAT EMPTOR:
8554 ## There is no encapsulation within the following macros, do not change
8555 ## the running order or otherwise move them around unless you know exactly
8556 ## what you are doing...
8557 if test -n "$compiler"; then
8558
8559 lt_prog_compiler_no_builtin_flag=
8560
8561 if test yes = "$GCC"; then
8562   case $cc_basename in
8563   nvcc*)
8564     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8565   *)
8566     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8567   esac
8568
8569   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8570 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8571 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8572   $as_echo_n "(cached) " >&6
8573 else
8574   lt_cv_prog_compiler_rtti_exceptions=no
8575    ac_outfile=conftest.$ac_objext
8576    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8577    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8578    # Insert the option either (1) after the last *FLAGS variable, or
8579    # (2) before a word containing "conftest.", or (3) at the end.
8580    # Note that $ac_compile itself does not contain backslashes and begins
8581    # with a dollar sign (not a hyphen), so the echo should work correctly.
8582    # The option is referenced via a variable to avoid confusing sed.
8583    lt_compile=`echo "$ac_compile" | $SED \
8584    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8585    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8586    -e 's:$: $lt_compiler_flag:'`
8587    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8588    (eval "$lt_compile" 2>conftest.err)
8589    ac_status=$?
8590    cat conftest.err >&5
8591    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592    if (exit $ac_status) && test -s "$ac_outfile"; then
8593      # The compiler can only warn and ignore the option if not recognized
8594      # So say no if there are warnings other than the usual output.
8595      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8596      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8597      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8598        lt_cv_prog_compiler_rtti_exceptions=yes
8599      fi
8600    fi
8601    $RM conftest*
8602
8603 fi
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8605 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8606
8607 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8608     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8609 else
8610     :
8611 fi
8612
8613 fi
8614
8615
8616
8617
8618
8619
8620   lt_prog_compiler_wl=
8621 lt_prog_compiler_pic=
8622 lt_prog_compiler_static=
8623
8624
8625   if test yes = "$GCC"; then
8626     lt_prog_compiler_wl='-Wl,'
8627     lt_prog_compiler_static='-static'
8628
8629     case $host_os in
8630       aix*)
8631       # All AIX code is PIC.
8632       if test ia64 = "$host_cpu"; then
8633         # AIX 5 now supports IA64 processor
8634         lt_prog_compiler_static='-Bstatic'
8635       fi
8636       lt_prog_compiler_pic='-fPIC'
8637       ;;
8638
8639     amigaos*)
8640       case $host_cpu in
8641       powerpc)
8642             # see comment about AmigaOS4 .so support
8643             lt_prog_compiler_pic='-fPIC'
8644         ;;
8645       m68k)
8646             # FIXME: we need at least 68020 code to build shared libraries, but
8647             # adding the '-m68020' flag to GCC prevents building anything better,
8648             # like '-m68040'.
8649             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8650         ;;
8651       esac
8652       ;;
8653
8654     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8655       # PIC is the default for these OSes.
8656       ;;
8657
8658     mingw* | cygwin* | pw32* | os2* | cegcc*)
8659       # This hack is so that the source file can tell whether it is being
8660       # built for inclusion in a dll (and should export symbols for example).
8661       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8662       # (--disable-auto-import) libraries
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       case $host_os in
8665       os2*)
8666         lt_prog_compiler_static='$wl-static'
8667         ;;
8668       esac
8669       ;;
8670
8671     darwin* | rhapsody*)
8672       # PIC is the default on this platform
8673       # Common symbols not allowed in MH_DYLIB files
8674       lt_prog_compiler_pic='-fno-common'
8675       ;;
8676
8677     haiku*)
8678       # PIC is the default for Haiku.
8679       # The "-static" flag exists, but is broken.
8680       lt_prog_compiler_static=
8681       ;;
8682
8683     hpux*)
8684       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8685       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8686       # sets the default TLS model and affects inlining.
8687       case $host_cpu in
8688       hppa*64*)
8689         # +Z the default
8690         ;;
8691       *)
8692         lt_prog_compiler_pic='-fPIC'
8693         ;;
8694       esac
8695       ;;
8696
8697     interix[3-9]*)
8698       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8699       # Instead, we relocate shared libraries at runtime.
8700       ;;
8701
8702     msdosdjgpp*)
8703       # Just because we use GCC doesn't mean we suddenly get shared libraries
8704       # on systems that don't support them.
8705       lt_prog_compiler_can_build_shared=no
8706       enable_shared=no
8707       ;;
8708
8709     *nto* | *qnx*)
8710       # QNX uses GNU C++, but need to define -shared option too, otherwise
8711       # it will coredump.
8712       lt_prog_compiler_pic='-fPIC -shared'
8713       ;;
8714
8715     sysv4*MP*)
8716       if test -d /usr/nec; then
8717         lt_prog_compiler_pic=-Kconform_pic
8718       fi
8719       ;;
8720
8721     *)
8722       lt_prog_compiler_pic='-fPIC'
8723       ;;
8724     esac
8725
8726     case $cc_basename in
8727     nvcc*) # Cuda Compiler Driver 2.2
8728       lt_prog_compiler_wl='-Xlinker '
8729       if test -n "$lt_prog_compiler_pic"; then
8730         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8731       fi
8732       ;;
8733     esac
8734   else
8735     # PORTME Check for flag to pass linker flags through the system compiler.
8736     case $host_os in
8737     aix*)
8738       lt_prog_compiler_wl='-Wl,'
8739       if test ia64 = "$host_cpu"; then
8740         # AIX 5 now supports IA64 processor
8741         lt_prog_compiler_static='-Bstatic'
8742       else
8743         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8744       fi
8745       ;;
8746
8747     darwin* | rhapsody*)
8748       # PIC is the default on this platform
8749       # Common symbols not allowed in MH_DYLIB files
8750       lt_prog_compiler_pic='-fno-common'
8751       case $cc_basename in
8752       nagfor*)
8753         # NAG Fortran compiler
8754         lt_prog_compiler_wl='-Wl,-Wl,,'
8755         lt_prog_compiler_pic='-PIC'
8756         lt_prog_compiler_static='-Bstatic'
8757         ;;
8758       esac
8759       ;;
8760
8761     mingw* | cygwin* | pw32* | os2* | cegcc*)
8762       # This hack is so that the source file can tell whether it is being
8763       # built for inclusion in a dll (and should export symbols for example).
8764       lt_prog_compiler_pic='-DDLL_EXPORT'
8765       case $host_os in
8766       os2*)
8767         lt_prog_compiler_static='$wl-static'
8768         ;;
8769       esac
8770       ;;
8771
8772     hpux9* | hpux10* | hpux11*)
8773       lt_prog_compiler_wl='-Wl,'
8774       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8775       # not for PA HP-UX.
8776       case $host_cpu in
8777       hppa*64*|ia64*)
8778         # +Z the default
8779         ;;
8780       *)
8781         lt_prog_compiler_pic='+Z'
8782         ;;
8783       esac
8784       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8785       lt_prog_compiler_static='$wl-a ${wl}archive'
8786       ;;
8787
8788     irix5* | irix6* | nonstopux*)
8789       lt_prog_compiler_wl='-Wl,'
8790       # PIC (with -KPIC) is the default.
8791       lt_prog_compiler_static='-non_shared'
8792       ;;
8793
8794     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8795       case $cc_basename in
8796       # old Intel for x86_64, which still supported -KPIC.
8797       ecc*)
8798         lt_prog_compiler_wl='-Wl,'
8799         lt_prog_compiler_pic='-KPIC'
8800         lt_prog_compiler_static='-static'
8801         ;;
8802       # icc used to be incompatible with GCC.
8803       # ICC 10 doesn't accept -KPIC any more.
8804       icc* | ifort*)
8805         lt_prog_compiler_wl='-Wl,'
8806         lt_prog_compiler_pic='-fPIC'
8807         lt_prog_compiler_static='-static'
8808         ;;
8809       # Lahey Fortran 8.1.
8810       lf95*)
8811         lt_prog_compiler_wl='-Wl,'
8812         lt_prog_compiler_pic='--shared'
8813         lt_prog_compiler_static='--static'
8814         ;;
8815       nagfor*)
8816         # NAG Fortran compiler
8817         lt_prog_compiler_wl='-Wl,-Wl,,'
8818         lt_prog_compiler_pic='-PIC'
8819         lt_prog_compiler_static='-Bstatic'
8820         ;;
8821       tcc*)
8822         # Fabrice Bellard et al's Tiny C Compiler
8823         lt_prog_compiler_wl='-Wl,'
8824         lt_prog_compiler_pic='-fPIC'
8825         lt_prog_compiler_static='-static'
8826         ;;
8827       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8828         # Portland Group compilers (*not* the Pentium gcc compiler,
8829         # which looks to be a dead project)
8830         lt_prog_compiler_wl='-Wl,'
8831         lt_prog_compiler_pic='-fpic'
8832         lt_prog_compiler_static='-Bstatic'
8833         ;;
8834       ccc*)
8835         lt_prog_compiler_wl='-Wl,'
8836         # All Alpha code is PIC.
8837         lt_prog_compiler_static='-non_shared'
8838         ;;
8839       xl* | bgxl* | bgf* | mpixl*)
8840         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8841         lt_prog_compiler_wl='-Wl,'
8842         lt_prog_compiler_pic='-qpic'
8843         lt_prog_compiler_static='-qstaticlink'
8844         ;;
8845       *)
8846         case `$CC -V 2>&1 | sed 5q` in
8847         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8848           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8849           lt_prog_compiler_pic='-KPIC'
8850           lt_prog_compiler_static='-Bstatic'
8851           lt_prog_compiler_wl=''
8852           ;;
8853         *Sun\ F* | *Sun*Fortran*)
8854           lt_prog_compiler_pic='-KPIC'
8855           lt_prog_compiler_static='-Bstatic'
8856           lt_prog_compiler_wl='-Qoption ld '
8857           ;;
8858         *Sun\ C*)
8859           # Sun C 5.9
8860           lt_prog_compiler_pic='-KPIC'
8861           lt_prog_compiler_static='-Bstatic'
8862           lt_prog_compiler_wl='-Wl,'
8863           ;;
8864         *Intel*\ [CF]*Compiler*)
8865           lt_prog_compiler_wl='-Wl,'
8866           lt_prog_compiler_pic='-fPIC'
8867           lt_prog_compiler_static='-static'
8868           ;;
8869         *Portland\ Group*)
8870           lt_prog_compiler_wl='-Wl,'
8871           lt_prog_compiler_pic='-fpic'
8872           lt_prog_compiler_static='-Bstatic'
8873           ;;
8874         esac
8875         ;;
8876       esac
8877       ;;
8878
8879     newsos6)
8880       lt_prog_compiler_pic='-KPIC'
8881       lt_prog_compiler_static='-Bstatic'
8882       ;;
8883
8884     *nto* | *qnx*)
8885       # QNX uses GNU C++, but need to define -shared option too, otherwise
8886       # it will coredump.
8887       lt_prog_compiler_pic='-fPIC -shared'
8888       ;;
8889
8890     osf3* | osf4* | osf5*)
8891       lt_prog_compiler_wl='-Wl,'
8892       # All OSF/1 code is PIC.
8893       lt_prog_compiler_static='-non_shared'
8894       ;;
8895
8896     rdos*)
8897       lt_prog_compiler_static='-non_shared'
8898       ;;
8899
8900     solaris*)
8901       lt_prog_compiler_pic='-KPIC'
8902       lt_prog_compiler_static='-Bstatic'
8903       case $cc_basename in
8904       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8905         lt_prog_compiler_wl='-Qoption ld ';;
8906       *)
8907         lt_prog_compiler_wl='-Wl,';;
8908       esac
8909       ;;
8910
8911     sunos4*)
8912       lt_prog_compiler_wl='-Qoption ld '
8913       lt_prog_compiler_pic='-PIC'
8914       lt_prog_compiler_static='-Bstatic'
8915       ;;
8916
8917     sysv4 | sysv4.2uw2* | sysv4.3*)
8918       lt_prog_compiler_wl='-Wl,'
8919       lt_prog_compiler_pic='-KPIC'
8920       lt_prog_compiler_static='-Bstatic'
8921       ;;
8922
8923     sysv4*MP*)
8924       if test -d /usr/nec; then
8925         lt_prog_compiler_pic='-Kconform_pic'
8926         lt_prog_compiler_static='-Bstatic'
8927       fi
8928       ;;
8929
8930     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8931       lt_prog_compiler_wl='-Wl,'
8932       lt_prog_compiler_pic='-KPIC'
8933       lt_prog_compiler_static='-Bstatic'
8934       ;;
8935
8936     unicos*)
8937       lt_prog_compiler_wl='-Wl,'
8938       lt_prog_compiler_can_build_shared=no
8939       ;;
8940
8941     uts4*)
8942       lt_prog_compiler_pic='-pic'
8943       lt_prog_compiler_static='-Bstatic'
8944       ;;
8945
8946     *)
8947       lt_prog_compiler_can_build_shared=no
8948       ;;
8949     esac
8950   fi
8951
8952 case $host_os in
8953   # For platforms that do not support PIC, -DPIC is meaningless:
8954   *djgpp*)
8955     lt_prog_compiler_pic=
8956     ;;
8957   *)
8958     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8959     ;;
8960 esac
8961
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8963 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8964 if ${lt_cv_prog_compiler_pic+:} false; then :
8965   $as_echo_n "(cached) " >&6
8966 else
8967   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8968 fi
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8970 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8971 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8972
8973 #
8974 # Check to make sure the PIC flag actually works.
8975 #
8976 if test -n "$lt_prog_compiler_pic"; then
8977   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8978 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8979 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8980   $as_echo_n "(cached) " >&6
8981 else
8982   lt_cv_prog_compiler_pic_works=no
8983    ac_outfile=conftest.$ac_objext
8984    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8985    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
8986    # Insert the option either (1) after the last *FLAGS variable, or
8987    # (2) before a word containing "conftest.", or (3) at the end.
8988    # Note that $ac_compile itself does not contain backslashes and begins
8989    # with a dollar sign (not a hyphen), so the echo should work correctly.
8990    # The option is referenced via a variable to avoid confusing sed.
8991    lt_compile=`echo "$ac_compile" | $SED \
8992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8994    -e 's:$: $lt_compiler_flag:'`
8995    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8996    (eval "$lt_compile" 2>conftest.err)
8997    ac_status=$?
8998    cat conftest.err >&5
8999    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000    if (exit $ac_status) && test -s "$ac_outfile"; then
9001      # The compiler can only warn and ignore the option if not recognized
9002      # So say no if there are warnings other than the usual output.
9003      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9004      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9005      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9006        lt_cv_prog_compiler_pic_works=yes
9007      fi
9008    fi
9009    $RM conftest*
9010
9011 fi
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9013 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9014
9015 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9016     case $lt_prog_compiler_pic in
9017      "" | " "*) ;;
9018      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9019      esac
9020 else
9021     lt_prog_compiler_pic=
9022      lt_prog_compiler_can_build_shared=no
9023 fi
9024
9025 fi
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037 #
9038 # Check to make sure the static flag actually works.
9039 #
9040 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9042 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9043 if ${lt_cv_prog_compiler_static_works+:} false; then :
9044   $as_echo_n "(cached) " >&6
9045 else
9046   lt_cv_prog_compiler_static_works=no
9047    save_LDFLAGS=$LDFLAGS
9048    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9049    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9050    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9051      # The linker can only warn and ignore the option if not recognized
9052      # So say no if there are warnings
9053      if test -s conftest.err; then
9054        # Append any errors to the config.log.
9055        cat conftest.err 1>&5
9056        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9057        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9058        if diff conftest.exp conftest.er2 >/dev/null; then
9059          lt_cv_prog_compiler_static_works=yes
9060        fi
9061      else
9062        lt_cv_prog_compiler_static_works=yes
9063      fi
9064    fi
9065    $RM -r conftest*
9066    LDFLAGS=$save_LDFLAGS
9067
9068 fi
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9070 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9071
9072 if test yes = "$lt_cv_prog_compiler_static_works"; then
9073     :
9074 else
9075     lt_prog_compiler_static=
9076 fi
9077
9078
9079
9080
9081
9082
9083
9084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9086 if ${lt_cv_prog_compiler_c_o+:} false; then :
9087   $as_echo_n "(cached) " >&6
9088 else
9089   lt_cv_prog_compiler_c_o=no
9090    $RM -r conftest 2>/dev/null
9091    mkdir conftest
9092    cd conftest
9093    mkdir out
9094    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9095
9096    lt_compiler_flag="-o out/conftest2.$ac_objext"
9097    # Insert the option either (1) after the last *FLAGS variable, or
9098    # (2) before a word containing "conftest.", or (3) at the end.
9099    # Note that $ac_compile itself does not contain backslashes and begins
9100    # with a dollar sign (not a hyphen), so the echo should work correctly.
9101    lt_compile=`echo "$ac_compile" | $SED \
9102    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9103    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9104    -e 's:$: $lt_compiler_flag:'`
9105    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9106    (eval "$lt_compile" 2>out/conftest.err)
9107    ac_status=$?
9108    cat out/conftest.err >&5
9109    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9111    then
9112      # The compiler can only warn and ignore the option if not recognized
9113      # So say no if there are warnings
9114      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9115      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9116      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9117        lt_cv_prog_compiler_c_o=yes
9118      fi
9119    fi
9120    chmod u+w . 2>&5
9121    $RM conftest*
9122    # SGI C++ compiler will create directory out/ii_files/ for
9123    # template instantiation
9124    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9125    $RM out/* && rmdir out
9126    cd ..
9127    $RM -r conftest
9128    $RM conftest*
9129
9130 fi
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9132 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9133
9134
9135
9136
9137
9138
9139   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9141 if ${lt_cv_prog_compiler_c_o+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   lt_cv_prog_compiler_c_o=no
9145    $RM -r conftest 2>/dev/null
9146    mkdir conftest
9147    cd conftest
9148    mkdir out
9149    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150
9151    lt_compiler_flag="-o out/conftest2.$ac_objext"
9152    # Insert the option either (1) after the last *FLAGS variable, or
9153    # (2) before a word containing "conftest.", or (3) at the end.
9154    # Note that $ac_compile itself does not contain backslashes and begins
9155    # with a dollar sign (not a hyphen), so the echo should work correctly.
9156    lt_compile=`echo "$ac_compile" | $SED \
9157    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9158    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9159    -e 's:$: $lt_compiler_flag:'`
9160    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9161    (eval "$lt_compile" 2>out/conftest.err)
9162    ac_status=$?
9163    cat out/conftest.err >&5
9164    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9166    then
9167      # The compiler can only warn and ignore the option if not recognized
9168      # So say no if there are warnings
9169      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9170      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9171      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9172        lt_cv_prog_compiler_c_o=yes
9173      fi
9174    fi
9175    chmod u+w . 2>&5
9176    $RM conftest*
9177    # SGI C++ compiler will create directory out/ii_files/ for
9178    # template instantiation
9179    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9180    $RM out/* && rmdir out
9181    cd ..
9182    $RM -r conftest
9183    $RM conftest*
9184
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9188
9189
9190
9191
9192 hard_links=nottested
9193 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9194   # do not overwrite the value of need_locks provided by the user
9195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9196 $as_echo_n "checking if we can lock with hard links... " >&6; }
9197   hard_links=yes
9198   $RM conftest*
9199   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200   touch conftest.a
9201   ln conftest.a conftest.b 2>&5 || hard_links=no
9202   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9204 $as_echo "$hard_links" >&6; }
9205   if test no = "$hard_links"; then
9206     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9207 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9208     need_locks=warn
9209   fi
9210 else
9211   need_locks=no
9212 fi
9213
9214
9215
9216
9217
9218
9219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9220 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9221
9222   runpath_var=
9223   allow_undefined_flag=
9224   always_export_symbols=no
9225   archive_cmds=
9226   archive_expsym_cmds=
9227   compiler_needs_object=no
9228   enable_shared_with_static_runtimes=no
9229   export_dynamic_flag_spec=
9230   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9231   hardcode_automatic=no
9232   hardcode_direct=no
9233   hardcode_direct_absolute=no
9234   hardcode_libdir_flag_spec=
9235   hardcode_libdir_separator=
9236   hardcode_minus_L=no
9237   hardcode_shlibpath_var=unsupported
9238   inherit_rpath=no
9239   link_all_deplibs=unknown
9240   module_cmds=
9241   module_expsym_cmds=
9242   old_archive_from_new_cmds=
9243   old_archive_from_expsyms_cmds=
9244   thread_safe_flag_spec=
9245   whole_archive_flag_spec=
9246   # include_expsyms should be a list of space-separated symbols to be *always*
9247   # included in the symbol list
9248   include_expsyms=
9249   # exclude_expsyms can be an extended regexp of symbols to exclude
9250   # it will be wrapped by ' (' and ')$', so one must not match beginning or
9251   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9252   # as well as any symbol that contains 'd'.
9253   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9254   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9255   # platforms (ab)use it in PIC code, but their linkers get confused if
9256   # the symbol is explicitly referenced.  Since portable code cannot
9257   # rely on this symbol name, it's probably fine to never include it in
9258   # preloaded symbol tables.
9259   # Exclude shared library initialization/finalization symbols.
9260   extract_expsyms_cmds=
9261
9262   case $host_os in
9263   cygwin* | mingw* | pw32* | cegcc*)
9264     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9265     # When not using gcc, we currently assume that we are using
9266     # Microsoft Visual C++.
9267     if test yes != "$GCC"; then
9268       with_gnu_ld=no
9269     fi
9270     ;;
9271   interix*)
9272     # we just hope/assume this is gcc and not c89 (= MSVC++)
9273     with_gnu_ld=yes
9274     ;;
9275   openbsd* | bitrig*)
9276     with_gnu_ld=no
9277     ;;
9278   linux* | k*bsd*-gnu | gnu*)
9279     link_all_deplibs=no
9280     ;;
9281   esac
9282
9283   ld_shlibs=yes
9284
9285   # On some targets, GNU ld is compatible enough with the native linker
9286   # that we're better off using the native interface for both.
9287   lt_use_gnu_ld_interface=no
9288   if test yes = "$with_gnu_ld"; then
9289     case $host_os in
9290       aix*)
9291         # The AIX port of GNU ld has always aspired to compatibility
9292         # with the native linker.  However, as the warning in the GNU ld
9293         # block says, versions before 2.19.5* couldn't really create working
9294         # shared libraries, regardless of the interface used.
9295         case `$LD -v 2>&1` in
9296           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9297           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9298           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9299           *)
9300             lt_use_gnu_ld_interface=yes
9301             ;;
9302         esac
9303         ;;
9304       *)
9305         lt_use_gnu_ld_interface=yes
9306         ;;
9307     esac
9308   fi
9309
9310   if test yes = "$lt_use_gnu_ld_interface"; then
9311     # If archive_cmds runs LD, not CC, wlarc should be empty
9312     wlarc='$wl'
9313
9314     # Set some defaults for GNU ld with shared library support. These
9315     # are reset later if shared libraries are not supported. Putting them
9316     # here allows them to be overridden if necessary.
9317     runpath_var=LD_RUN_PATH
9318     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9319     export_dynamic_flag_spec='$wl--export-dynamic'
9320     # ancient GNU ld didn't support --whole-archive et. al.
9321     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9322       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9323     else
9324       whole_archive_flag_spec=
9325     fi
9326     supports_anon_versioning=no
9327     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9328       *GNU\ gold*) supports_anon_versioning=yes ;;
9329       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9330       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9331       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9332       *\ 2.11.*) ;; # other 2.11 versions
9333       *) supports_anon_versioning=yes ;;
9334     esac
9335
9336     # See if GNU ld supports shared libraries.
9337     case $host_os in
9338     aix[3-9]*)
9339       # On AIX/PPC, the GNU linker is very broken
9340       if test ia64 != "$host_cpu"; then
9341         ld_shlibs=no
9342         cat <<_LT_EOF 1>&2
9343
9344 *** Warning: the GNU linker, at least up to release 2.19, is reported
9345 *** to be unable to reliably create shared libraries on AIX.
9346 *** Therefore, libtool is disabling shared libraries support.  If you
9347 *** really care for shared libraries, you may want to install binutils
9348 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9349 *** You will then need to restart the configuration process.
9350
9351 _LT_EOF
9352       fi
9353       ;;
9354
9355     amigaos*)
9356       case $host_cpu in
9357       powerpc)
9358             # see comment about AmigaOS4 .so support
9359             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9360             archive_expsym_cmds=''
9361         ;;
9362       m68k)
9363             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)'
9364             hardcode_libdir_flag_spec='-L$libdir'
9365             hardcode_minus_L=yes
9366         ;;
9367       esac
9368       ;;
9369
9370     beos*)
9371       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9372         allow_undefined_flag=unsupported
9373         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9374         # support --undefined.  This deserves some investigation.  FIXME
9375         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9376       else
9377         ld_shlibs=no
9378       fi
9379       ;;
9380
9381     cygwin* | mingw* | pw32* | cegcc*)
9382       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9383       # as there is no search path for DLLs.
9384       hardcode_libdir_flag_spec='-L$libdir'
9385       export_dynamic_flag_spec='$wl--export-all-symbols'
9386       allow_undefined_flag=unsupported
9387       always_export_symbols=no
9388       enable_shared_with_static_runtimes=yes
9389       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'
9390       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9391
9392       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9393         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9394         # If the export-symbols file already is a .def file, use it as
9395         # is; otherwise, prepend EXPORTS...
9396         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9397           cp $export_symbols $output_objdir/$soname.def;
9398         else
9399           echo EXPORTS > $output_objdir/$soname.def;
9400           cat $export_symbols >> $output_objdir/$soname.def;
9401         fi~
9402         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9403       else
9404         ld_shlibs=no
9405       fi
9406       ;;
9407
9408     haiku*)
9409       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9410       link_all_deplibs=yes
9411       ;;
9412
9413     os2*)
9414       hardcode_libdir_flag_spec='-L$libdir'
9415       hardcode_minus_L=yes
9416       allow_undefined_flag=unsupported
9417       shrext_cmds=.dll
9418       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9419         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9420         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9421         $ECHO EXPORTS >> $output_objdir/$libname.def~
9422         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9423         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9424         emximp -o $lib $output_objdir/$libname.def'
9425       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9426         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9427         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9428         $ECHO EXPORTS >> $output_objdir/$libname.def~
9429         prefix_cmds="$SED"~
9430         if test EXPORTS = "`$SED 1q $export_symbols`"; then
9431           prefix_cmds="$prefix_cmds -e 1d";
9432         fi~
9433         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9434         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9435         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9436         emximp -o $lib $output_objdir/$libname.def'
9437       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9438       enable_shared_with_static_runtimes=yes
9439       ;;
9440
9441     interix[3-9]*)
9442       hardcode_direct=no
9443       hardcode_shlibpath_var=no
9444       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9445       export_dynamic_flag_spec='$wl-E'
9446       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9447       # Instead, shared libraries are loaded at an image base (0x10000000 by
9448       # default) and relocated if they conflict, which is a slow very memory
9449       # consuming and fragmenting process.  To avoid this, we pick a random,
9450       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9451       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9452       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9453       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'
9454       ;;
9455
9456     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9457       tmp_diet=no
9458       if test linux-dietlibc = "$host_os"; then
9459         case $cc_basename in
9460           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9461         esac
9462       fi
9463       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9464          && test no = "$tmp_diet"
9465       then
9466         tmp_addflag=' $pic_flag'
9467         tmp_sharedflag='-shared'
9468         case $cc_basename,$host_cpu in
9469         pgcc*)                          # Portland Group C compiler
9470           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'
9471           tmp_addflag=' $pic_flag'
9472           ;;
9473         pgf77* | pgf90* | pgf95* | pgfortran*)
9474                                         # Portland Group f77 and f90 compilers
9475           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'
9476           tmp_addflag=' $pic_flag -Mnomain' ;;
9477         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9478           tmp_addflag=' -i_dynamic' ;;
9479         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9480           tmp_addflag=' -i_dynamic -nofor_main' ;;
9481         ifc* | ifort*)                  # Intel Fortran compiler
9482           tmp_addflag=' -nofor_main' ;;
9483         lf95*)                          # Lahey Fortran 8.1
9484           whole_archive_flag_spec=
9485           tmp_sharedflag='--shared' ;;
9486         nagfor*)                        # NAGFOR 5.3
9487           tmp_sharedflag='-Wl,-shared' ;;
9488         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9489           tmp_sharedflag='-qmkshrobj'
9490           tmp_addflag= ;;
9491         nvcc*)  # Cuda Compiler Driver 2.2
9492           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'
9493           compiler_needs_object=yes
9494           ;;
9495         esac
9496         case `$CC -V 2>&1 | sed 5q` in
9497         *Sun\ C*)                       # Sun C 5.9
9498           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'
9499           compiler_needs_object=yes
9500           tmp_sharedflag='-G' ;;
9501         *Sun\ F*)                       # Sun Fortran 8.3
9502           tmp_sharedflag='-G' ;;
9503         esac
9504         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9505
9506         if test yes = "$supports_anon_versioning"; then
9507           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9508             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9509             echo "local: *; };" >> $output_objdir/$libname.ver~
9510             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9511         fi
9512
9513         case $cc_basename in
9514         tcc*)
9515           export_dynamic_flag_spec='-rdynamic'
9516           ;;
9517         xlf* | bgf* | bgxlf* | mpixlf*)
9518           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9519           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9520           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9521           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9522           if test yes = "$supports_anon_versioning"; then
9523             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9524               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9525               echo "local: *; };" >> $output_objdir/$libname.ver~
9526               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9527           fi
9528           ;;
9529         esac
9530       else
9531         ld_shlibs=no
9532       fi
9533       ;;
9534
9535     netbsd* | netbsdelf*-gnu)
9536       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9537         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9538         wlarc=
9539       else
9540         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9541         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9542       fi
9543       ;;
9544
9545     solaris*)
9546       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9547         ld_shlibs=no
9548         cat <<_LT_EOF 1>&2
9549
9550 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9551 *** create shared libraries on Solaris systems.  Therefore, libtool
9552 *** is disabling shared libraries support.  We urge you to upgrade GNU
9553 *** binutils to release 2.9.1 or newer.  Another option is to modify
9554 *** your PATH or compiler configuration so that the native linker is
9555 *** used, and then restart.
9556
9557 _LT_EOF
9558       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9559         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9560         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9561       else
9562         ld_shlibs=no
9563       fi
9564       ;;
9565
9566     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9567       case `$LD -v 2>&1` in
9568         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9569         ld_shlibs=no
9570         cat <<_LT_EOF 1>&2
9571
9572 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9573 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9574 *** is disabling shared libraries support.  We urge you to upgrade GNU
9575 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9576 *** your PATH or compiler configuration so that the native linker is
9577 *** used, and then restart.
9578
9579 _LT_EOF
9580         ;;
9581         *)
9582           # For security reasons, it is highly recommended that you always
9583           # use absolute paths for naming shared libraries, and exclude the
9584           # DT_RUNPATH tag from executables and libraries.  But doing so
9585           # requires that you compile everything twice, which is a pain.
9586           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9587             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9588             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9589             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9590           else
9591             ld_shlibs=no
9592           fi
9593         ;;
9594       esac
9595       ;;
9596
9597     sunos4*)
9598       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9599       wlarc=
9600       hardcode_direct=yes
9601       hardcode_shlibpath_var=no
9602       ;;
9603
9604     *)
9605       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9606         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9607         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9608       else
9609         ld_shlibs=no
9610       fi
9611       ;;
9612     esac
9613
9614     if test no = "$ld_shlibs"; then
9615       runpath_var=
9616       hardcode_libdir_flag_spec=
9617       export_dynamic_flag_spec=
9618       whole_archive_flag_spec=
9619     fi
9620   else
9621     # PORTME fill in a description of your system's linker (not GNU ld)
9622     case $host_os in
9623     aix3*)
9624       allow_undefined_flag=unsupported
9625       always_export_symbols=yes
9626       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'
9627       # Note: this linker hardcodes the directories in LIBPATH if there
9628       # are no directories specified by -L.
9629       hardcode_minus_L=yes
9630       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9631         # Neither direct hardcoding nor static linking is supported with a
9632         # broken collect2.
9633         hardcode_direct=unsupported
9634       fi
9635       ;;
9636
9637     aix[4-9]*)
9638       if test ia64 = "$host_cpu"; then
9639         # On IA64, the linker does run time linking by default, so we don't
9640         # have to do anything special.
9641         aix_use_runtimelinking=no
9642         exp_sym_flag='-Bexport'
9643         no_entry_flag=
9644       else
9645         # If we're using GNU nm, then we don't want the "-C" option.
9646         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9647         # Without the "-l" option, or with the "-B" option, AIX nm treats
9648         # weak defined symbols like other global defined symbols, whereas
9649         # GNU nm marks them as "W".
9650         # While the 'weak' keyword is ignored in the Export File, we need
9651         # it in the Import File for the 'aix-soname' feature, so we have
9652         # to replace the "-B" option with "-P" for AIX nm.
9653         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9654           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'
9655         else
9656           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'
9657         fi
9658         aix_use_runtimelinking=no
9659
9660         # Test if we are trying to use run time linking or normal
9661         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9662         # have runtime linking enabled, and use it for executables.
9663         # For shared libraries, we enable/disable runtime linking
9664         # depending on the kind of the shared library created -
9665         # when "with_aix_soname,aix_use_runtimelinking" is:
9666         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9667         # "aix,yes"  lib.so          shared, rtl:yes, for executables
9668         #            lib.a           static archive
9669         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
9670         #            lib.a(lib.so.V) shared, rtl:no,  for executables
9671         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9672         #            lib.a(lib.so.V) shared, rtl:no
9673         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9674         #            lib.a           static archive
9675         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9676           for ld_flag in $LDFLAGS; do
9677           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9678             aix_use_runtimelinking=yes
9679             break
9680           fi
9681           done
9682           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9683             # With aix-soname=svr4, we create the lib.so.V shared archives only,
9684             # so we don't have lib.a shared libs to link our executables.
9685             # We have to force runtime linking in this case.
9686             aix_use_runtimelinking=yes
9687             LDFLAGS="$LDFLAGS -Wl,-brtl"
9688           fi
9689           ;;
9690         esac
9691
9692         exp_sym_flag='-bexport'
9693         no_entry_flag='-bnoentry'
9694       fi
9695
9696       # When large executables or shared objects are built, AIX ld can
9697       # have problems creating the table of contents.  If linking a library
9698       # or program results in "error TOC overflow" add -mminimal-toc to
9699       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9700       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9701
9702       archive_cmds=''
9703       hardcode_direct=yes
9704       hardcode_direct_absolute=yes
9705       hardcode_libdir_separator=':'
9706       link_all_deplibs=yes
9707       file_list_spec='$wl-f,'
9708       case $with_aix_soname,$aix_use_runtimelinking in
9709       aix,*) ;; # traditional, no import file
9710       svr4,* | *,yes) # use import file
9711         # The Import File defines what to hardcode.
9712         hardcode_direct=no
9713         hardcode_direct_absolute=no
9714         ;;
9715       esac
9716
9717       if test yes = "$GCC"; then
9718         case $host_os in aix4.[012]|aix4.[012].*)
9719         # We only want to do this on AIX 4.2 and lower, the check
9720         # below for broken collect2 doesn't work under 4.3+
9721           collect2name=`$CC -print-prog-name=collect2`
9722           if test -f "$collect2name" &&
9723            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9724           then
9725           # We have reworked collect2
9726           :
9727           else
9728           # We have old collect2
9729           hardcode_direct=unsupported
9730           # It fails to find uninstalled libraries when the uninstalled
9731           # path is not listed in the libpath.  Setting hardcode_minus_L
9732           # to unsupported forces relinking
9733           hardcode_minus_L=yes
9734           hardcode_libdir_flag_spec='-L$libdir'
9735           hardcode_libdir_separator=
9736           fi
9737           ;;
9738         esac
9739         shared_flag='-shared'
9740         if test yes = "$aix_use_runtimelinking"; then
9741           shared_flag="$shared_flag "'$wl-G'
9742         fi
9743         # Need to ensure runtime linking is disabled for the traditional
9744         # shared library, or the linker may eventually find shared libraries
9745         # /with/ Import File - we do not want to mix them.
9746         shared_flag_aix='-shared'
9747         shared_flag_svr4='-shared $wl-G'
9748       else
9749         # not using gcc
9750         if test ia64 = "$host_cpu"; then
9751         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9752         # chokes on -Wl,-G. The following line is correct:
9753           shared_flag='-G'
9754         else
9755           if test yes = "$aix_use_runtimelinking"; then
9756             shared_flag='$wl-G'
9757           else
9758             shared_flag='$wl-bM:SRE'
9759           fi
9760           shared_flag_aix='$wl-bM:SRE'
9761           shared_flag_svr4='$wl-G'
9762         fi
9763       fi
9764
9765       export_dynamic_flag_spec='$wl-bexpall'
9766       # It seems that -bexpall does not export symbols beginning with
9767       # underscore (_), so it is better to generate a list of symbols to export.
9768       always_export_symbols=yes
9769       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9770         # Warning - without using the other runtime loading flags (-brtl),
9771         # -berok will link without error, but may produce a broken library.
9772         allow_undefined_flag='-berok'
9773         # Determine the default libpath from the value encoded in an
9774         # empty executable.
9775         if test set = "${lt_cv_aix_libpath+set}"; then
9776   aix_libpath=$lt_cv_aix_libpath
9777 else
9778   if ${lt_cv_aix_libpath_+:} false; then :
9779   $as_echo_n "(cached) " >&6
9780 else
9781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h.  */
9783
9784 int
9785 main ()
9786 {
9787
9788   ;
9789   return 0;
9790 }
9791 _ACEOF
9792 if ac_fn_c_try_link "$LINENO"; then :
9793
9794   lt_aix_libpath_sed='
9795       /Import File Strings/,/^$/ {
9796           /^0/ {
9797               s/^0  *\([^ ]*\) *$/\1/
9798               p
9799           }
9800       }'
9801   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802   # Check for a 64-bit object if we didn't find anything.
9803   if test -z "$lt_cv_aix_libpath_"; then
9804     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9805   fi
9806 fi
9807 rm -f core conftest.err conftest.$ac_objext \
9808     conftest$ac_exeext conftest.$ac_ext
9809   if test -z "$lt_cv_aix_libpath_"; then
9810     lt_cv_aix_libpath_=/usr/lib:/lib
9811   fi
9812
9813 fi
9814
9815   aix_libpath=$lt_cv_aix_libpath_
9816 fi
9817
9818         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9819         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
9820       else
9821         if test ia64 = "$host_cpu"; then
9822           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9823           allow_undefined_flag="-z nodefs"
9824           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"
9825         else
9826          # Determine the default libpath from the value encoded in an
9827          # empty executable.
9828          if test set = "${lt_cv_aix_libpath+set}"; then
9829   aix_libpath=$lt_cv_aix_libpath
9830 else
9831   if ${lt_cv_aix_libpath_+:} false; then :
9832   $as_echo_n "(cached) " >&6
9833 else
9834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835 /* end confdefs.h.  */
9836
9837 int
9838 main ()
9839 {
9840
9841   ;
9842   return 0;
9843 }
9844 _ACEOF
9845 if ac_fn_c_try_link "$LINENO"; then :
9846
9847   lt_aix_libpath_sed='
9848       /Import File Strings/,/^$/ {
9849           /^0/ {
9850               s/^0  *\([^ ]*\) *$/\1/
9851               p
9852           }
9853       }'
9854   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855   # Check for a 64-bit object if we didn't find anything.
9856   if test -z "$lt_cv_aix_libpath_"; then
9857     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858   fi
9859 fi
9860 rm -f core conftest.err conftest.$ac_objext \
9861     conftest$ac_exeext conftest.$ac_ext
9862   if test -z "$lt_cv_aix_libpath_"; then
9863     lt_cv_aix_libpath_=/usr/lib:/lib
9864   fi
9865
9866 fi
9867
9868   aix_libpath=$lt_cv_aix_libpath_
9869 fi
9870
9871          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9872           # Warning - without using the other run time loading flags,
9873           # -berok will link without error, but may produce a broken library.
9874           no_undefined_flag=' $wl-bernotok'
9875           allow_undefined_flag=' $wl-berok'
9876           if test yes = "$with_gnu_ld"; then
9877             # We only use this code for GNU lds that support --whole-archive.
9878             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9879           else
9880             # Exported symbols can be pulled into shared objects from archives
9881             whole_archive_flag_spec='$convenience'
9882           fi
9883           archive_cmds_need_lc=yes
9884           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9885           # -brtl affects multiple linker settings, -berok does not and is overridden later
9886           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9887           if test svr4 != "$with_aix_soname"; then
9888             # This is similar to how AIX traditionally builds its shared libraries.
9889             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'
9890           fi
9891           if test aix != "$with_aix_soname"; then
9892             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'
9893           else
9894             # used by -dlpreopen to get the symbols
9895             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
9896           fi
9897           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9898         fi
9899       fi
9900       ;;
9901
9902     amigaos*)
9903       case $host_cpu in
9904       powerpc)
9905             # see comment about AmigaOS4 .so support
9906             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9907             archive_expsym_cmds=''
9908         ;;
9909       m68k)
9910             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)'
9911             hardcode_libdir_flag_spec='-L$libdir'
9912             hardcode_minus_L=yes
9913         ;;
9914       esac
9915       ;;
9916
9917     bsdi[45]*)
9918       export_dynamic_flag_spec=-rdynamic
9919       ;;
9920
9921     cygwin* | mingw* | pw32* | cegcc*)
9922       # When not using gcc, we currently assume that we are using
9923       # Microsoft Visual C++.
9924       # hardcode_libdir_flag_spec is actually meaningless, as there is
9925       # no search path for DLLs.
9926       case $cc_basename in
9927       cl*)
9928         # Native MSVC
9929         hardcode_libdir_flag_spec=' '
9930         allow_undefined_flag=unsupported
9931         always_export_symbols=yes
9932         file_list_spec='@'
9933         # Tell ltmain to make .lib files, not .a files.
9934         libext=lib
9935         # Tell ltmain to make .dll files, not .so files.
9936         shrext_cmds=.dll
9937         # FIXME: Setting linknames here is a bad hack.
9938         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9939         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9940             cp "$export_symbols" "$output_objdir/$soname.def";
9941             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9942           else
9943             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9944           fi~
9945           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9946           linknames='
9947         # The linker will not automatically build a static lib if we build a DLL.
9948         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9949         enable_shared_with_static_runtimes=yes
9950         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9951         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9952         # Don't use ranlib
9953         old_postinstall_cmds='chmod 644 $oldlib'
9954         postlink_cmds='lt_outputfile="@OUTPUT@"~
9955           lt_tool_outputfile="@TOOL_OUTPUT@"~
9956           case $lt_outputfile in
9957             *.exe|*.EXE) ;;
9958             *)
9959               lt_outputfile=$lt_outputfile.exe
9960               lt_tool_outputfile=$lt_tool_outputfile.exe
9961               ;;
9962           esac~
9963           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9964             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9965             $RM "$lt_outputfile.manifest";
9966           fi'
9967         ;;
9968       *)
9969         # Assume MSVC wrapper
9970         hardcode_libdir_flag_spec=' '
9971         allow_undefined_flag=unsupported
9972         # Tell ltmain to make .lib files, not .a files.
9973         libext=lib
9974         # Tell ltmain to make .dll files, not .so files.
9975         shrext_cmds=.dll
9976         # FIXME: Setting linknames here is a bad hack.
9977         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9978         # The linker will automatically build a .lib file if we build a DLL.
9979         old_archive_from_new_cmds='true'
9980         # FIXME: Should let the user specify the lib program.
9981         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9982         enable_shared_with_static_runtimes=yes
9983         ;;
9984       esac
9985       ;;
9986
9987     darwin* | rhapsody*)
9988
9989
9990   archive_cmds_need_lc=no
9991   hardcode_direct=no
9992   hardcode_automatic=yes
9993   hardcode_shlibpath_var=unsupported
9994   if test yes = "$lt_cv_ld_force_load"; then
9995     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\"`'
9996
9997   else
9998     whole_archive_flag_spec=''
9999   fi
10000   link_all_deplibs=yes
10001   allow_undefined_flag=$_lt_dar_allow_undefined
10002   case $cc_basename in
10003      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10004      *) _lt_dar_can_shared=$GCC ;;
10005   esac
10006   if test yes = "$_lt_dar_can_shared"; then
10007     output_verbose_link_cmd=func_echo_all
10008     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10009     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10010     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"
10011     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"
10012
10013   else
10014   ld_shlibs=no
10015   fi
10016
10017       ;;
10018
10019     dgux*)
10020       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021       hardcode_libdir_flag_spec='-L$libdir'
10022       hardcode_shlibpath_var=no
10023       ;;
10024
10025     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10026     # support.  Future versions do this automatically, but an explicit c++rt0.o
10027     # does not break anything, and helps significantly (at the cost of a little
10028     # extra space).
10029     freebsd2.2*)
10030       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10031       hardcode_libdir_flag_spec='-R$libdir'
10032       hardcode_direct=yes
10033       hardcode_shlibpath_var=no
10034       ;;
10035
10036     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10037     freebsd2.*)
10038       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039       hardcode_direct=yes
10040       hardcode_minus_L=yes
10041       hardcode_shlibpath_var=no
10042       ;;
10043
10044     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10045     freebsd* | dragonfly*)
10046       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10047       hardcode_libdir_flag_spec='-R$libdir'
10048       hardcode_direct=yes
10049       hardcode_shlibpath_var=no
10050       ;;
10051
10052     hpux9*)
10053       if test yes = "$GCC"; then
10054         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'
10055       else
10056         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'
10057       fi
10058       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10059       hardcode_libdir_separator=:
10060       hardcode_direct=yes
10061
10062       # hardcode_minus_L: Not really in the search PATH,
10063       # but as the default location of the library.
10064       hardcode_minus_L=yes
10065       export_dynamic_flag_spec='$wl-E'
10066       ;;
10067
10068     hpux10*)
10069       if test yes,no = "$GCC,$with_gnu_ld"; then
10070         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071       else
10072         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10073       fi
10074       if test no = "$with_gnu_ld"; then
10075         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10076         hardcode_libdir_separator=:
10077         hardcode_direct=yes
10078         hardcode_direct_absolute=yes
10079         export_dynamic_flag_spec='$wl-E'
10080         # hardcode_minus_L: Not really in the search PATH,
10081         # but as the default location of the library.
10082         hardcode_minus_L=yes
10083       fi
10084       ;;
10085
10086     hpux11*)
10087       if test yes,no = "$GCC,$with_gnu_ld"; then
10088         case $host_cpu in
10089         hppa*64*)
10090           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10091           ;;
10092         ia64*)
10093           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10094           ;;
10095         *)
10096           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097           ;;
10098         esac
10099       else
10100         case $host_cpu in
10101         hppa*64*)
10102           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10103           ;;
10104         ia64*)
10105           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10106           ;;
10107         *)
10108
10109           # Older versions of the 11.00 compiler do not understand -b yet
10110           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10111           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10112 $as_echo_n "checking if $CC understands -b... " >&6; }
10113 if ${lt_cv_prog_compiler__b+:} false; then :
10114   $as_echo_n "(cached) " >&6
10115 else
10116   lt_cv_prog_compiler__b=no
10117    save_LDFLAGS=$LDFLAGS
10118    LDFLAGS="$LDFLAGS -b"
10119    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10120    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10121      # The linker can only warn and ignore the option if not recognized
10122      # So say no if there are warnings
10123      if test -s conftest.err; then
10124        # Append any errors to the config.log.
10125        cat conftest.err 1>&5
10126        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10127        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10128        if diff conftest.exp conftest.er2 >/dev/null; then
10129          lt_cv_prog_compiler__b=yes
10130        fi
10131      else
10132        lt_cv_prog_compiler__b=yes
10133      fi
10134    fi
10135    $RM -r conftest*
10136    LDFLAGS=$save_LDFLAGS
10137
10138 fi
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10140 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10141
10142 if test yes = "$lt_cv_prog_compiler__b"; then
10143     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10144 else
10145     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10146 fi
10147
10148           ;;
10149         esac
10150       fi
10151       if test no = "$with_gnu_ld"; then
10152         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10153         hardcode_libdir_separator=:
10154
10155         case $host_cpu in
10156         hppa*64*|ia64*)
10157           hardcode_direct=no
10158           hardcode_shlibpath_var=no
10159           ;;
10160         *)
10161           hardcode_direct=yes
10162           hardcode_direct_absolute=yes
10163           export_dynamic_flag_spec='$wl-E'
10164
10165           # hardcode_minus_L: Not really in the search PATH,
10166           # but as the default location of the library.
10167           hardcode_minus_L=yes
10168           ;;
10169         esac
10170       fi
10171       ;;
10172
10173     irix5* | irix6* | nonstopux*)
10174       if test yes = "$GCC"; then
10175         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'
10176         # Try to use the -exported_symbol ld option, if it does not
10177         # work, assume that -exports_file does not work either and
10178         # implicitly export all symbols.
10179         # This should be the same for all languages, so no per-tag cache variable.
10180         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10181 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10182 if ${lt_cv_irix_exported_symbol+:} false; then :
10183   $as_echo_n "(cached) " >&6
10184 else
10185   save_LDFLAGS=$LDFLAGS
10186            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10187            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10188 /* end confdefs.h.  */
10189 int foo (void) { return 0; }
10190 _ACEOF
10191 if ac_fn_c_try_link "$LINENO"; then :
10192   lt_cv_irix_exported_symbol=yes
10193 else
10194   lt_cv_irix_exported_symbol=no
10195 fi
10196 rm -f core conftest.err conftest.$ac_objext \
10197     conftest$ac_exeext conftest.$ac_ext
10198            LDFLAGS=$save_LDFLAGS
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10201 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10202         if test yes = "$lt_cv_irix_exported_symbol"; then
10203           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'
10204         fi
10205         link_all_deplibs=no
10206       else
10207         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'
10208         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'
10209       fi
10210       archive_cmds_need_lc='no'
10211       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10212       hardcode_libdir_separator=:
10213       inherit_rpath=yes
10214       link_all_deplibs=yes
10215       ;;
10216
10217     linux*)
10218       case $cc_basename in
10219       tcc*)
10220         # Fabrice Bellard et al's Tiny C Compiler
10221         ld_shlibs=yes
10222         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10223         ;;
10224       esac
10225       ;;
10226
10227     netbsd* | netbsdelf*-gnu)
10228       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10229         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10230       else
10231         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10232       fi
10233       hardcode_libdir_flag_spec='-R$libdir'
10234       hardcode_direct=yes
10235       hardcode_shlibpath_var=no
10236       ;;
10237
10238     newsos6)
10239       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10240       hardcode_direct=yes
10241       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10242       hardcode_libdir_separator=:
10243       hardcode_shlibpath_var=no
10244       ;;
10245
10246     *nto* | *qnx*)
10247       ;;
10248
10249     openbsd* | bitrig*)
10250       if test -f /usr/libexec/ld.so; then
10251         hardcode_direct=yes
10252         hardcode_shlibpath_var=no
10253         hardcode_direct_absolute=yes
10254         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10255           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10257           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10258           export_dynamic_flag_spec='$wl-E'
10259         else
10260           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10261           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10262         fi
10263       else
10264         ld_shlibs=no
10265       fi
10266       ;;
10267
10268     os2*)
10269       hardcode_libdir_flag_spec='-L$libdir'
10270       hardcode_minus_L=yes
10271       allow_undefined_flag=unsupported
10272       shrext_cmds=.dll
10273       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10274         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10275         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10276         $ECHO EXPORTS >> $output_objdir/$libname.def~
10277         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10278         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10279         emximp -o $lib $output_objdir/$libname.def'
10280       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10281         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10282         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10283         $ECHO EXPORTS >> $output_objdir/$libname.def~
10284         prefix_cmds="$SED"~
10285         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10286           prefix_cmds="$prefix_cmds -e 1d";
10287         fi~
10288         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10289         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10290         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10291         emximp -o $lib $output_objdir/$libname.def'
10292       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10293       enable_shared_with_static_runtimes=yes
10294       ;;
10295
10296     osf3*)
10297       if test yes = "$GCC"; then
10298         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10299         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'
10300       else
10301         allow_undefined_flag=' -expect_unresolved \*'
10302         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'
10303       fi
10304       archive_cmds_need_lc='no'
10305       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10306       hardcode_libdir_separator=:
10307       ;;
10308
10309     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10310       if test yes = "$GCC"; then
10311         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10312         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'
10313         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10314       else
10315         allow_undefined_flag=' -expect_unresolved \*'
10316         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'
10317         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~
10318           $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'
10319
10320         # Both c and cxx compiler support -rpath directly
10321         hardcode_libdir_flag_spec='-rpath $libdir'
10322       fi
10323       archive_cmds_need_lc='no'
10324       hardcode_libdir_separator=:
10325       ;;
10326
10327     solaris*)
10328       no_undefined_flag=' -z defs'
10329       if test yes = "$GCC"; then
10330         wlarc='$wl'
10331         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10332         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10333           $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'
10334       else
10335         case `$CC -V 2>&1` in
10336         *"Compilers 5.0"*)
10337           wlarc=''
10338           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10340             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10341           ;;
10342         *)
10343           wlarc='$wl'
10344           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10345           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10346             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10347           ;;
10348         esac
10349       fi
10350       hardcode_libdir_flag_spec='-R$libdir'
10351       hardcode_shlibpath_var=no
10352       case $host_os in
10353       solaris2.[0-5] | solaris2.[0-5].*) ;;
10354       *)
10355         # The compiler driver will combine and reorder linker options,
10356         # but understands '-z linker_flag'.  GCC discards it without '$wl',
10357         # but is careful enough not to reorder.
10358         # Supported since Solaris 2.6 (maybe 2.5.1?)
10359         if test yes = "$GCC"; then
10360           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10361         else
10362           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10363         fi
10364         ;;
10365       esac
10366       link_all_deplibs=yes
10367       ;;
10368
10369     sunos4*)
10370       if test sequent = "$host_vendor"; then
10371         # Use $CC to link under sequent, because it throws in some extra .o
10372         # files that make .init and .fini sections work.
10373         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10374       else
10375         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10376       fi
10377       hardcode_libdir_flag_spec='-L$libdir'
10378       hardcode_direct=yes
10379       hardcode_minus_L=yes
10380       hardcode_shlibpath_var=no
10381       ;;
10382
10383     sysv4)
10384       case $host_vendor in
10385         sni)
10386           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10387           hardcode_direct=yes # is this really true???
10388         ;;
10389         siemens)
10390           ## LD is ld it makes a PLAMLIB
10391           ## CC just makes a GrossModule.
10392           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10393           reload_cmds='$CC -r -o $output$reload_objs'
10394           hardcode_direct=no
10395         ;;
10396         motorola)
10397           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10399         ;;
10400       esac
10401       runpath_var='LD_RUN_PATH'
10402       hardcode_shlibpath_var=no
10403       ;;
10404
10405     sysv4.3*)
10406       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10407       hardcode_shlibpath_var=no
10408       export_dynamic_flag_spec='-Bexport'
10409       ;;
10410
10411     sysv4*MP*)
10412       if test -d /usr/nec; then
10413         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414         hardcode_shlibpath_var=no
10415         runpath_var=LD_RUN_PATH
10416         hardcode_runpath_var=yes
10417         ld_shlibs=yes
10418       fi
10419       ;;
10420
10421     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10422       no_undefined_flag='$wl-z,text'
10423       archive_cmds_need_lc=no
10424       hardcode_shlibpath_var=no
10425       runpath_var='LD_RUN_PATH'
10426
10427       if test yes = "$GCC"; then
10428         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10429         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430       else
10431         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10432         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10433       fi
10434       ;;
10435
10436     sysv5* | sco3.2v5* | sco5v6*)
10437       # Note: We CANNOT use -z defs as we might desire, because we do not
10438       # link with -lc, and that would cause any symbols used from libc to
10439       # always be unresolved, which means just about no library would
10440       # ever link correctly.  If we're not using GNU ld we use -z text
10441       # though, which does catch some bad symbols but isn't as heavy-handed
10442       # as -z defs.
10443       no_undefined_flag='$wl-z,text'
10444       allow_undefined_flag='$wl-z,nodefs'
10445       archive_cmds_need_lc=no
10446       hardcode_shlibpath_var=no
10447       hardcode_libdir_flag_spec='$wl-R,$libdir'
10448       hardcode_libdir_separator=':'
10449       link_all_deplibs=yes
10450       export_dynamic_flag_spec='$wl-Bexport'
10451       runpath_var='LD_RUN_PATH'
10452
10453       if test yes = "$GCC"; then
10454         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10456       else
10457         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459       fi
10460       ;;
10461
10462     uts4*)
10463       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10464       hardcode_libdir_flag_spec='-L$libdir'
10465       hardcode_shlibpath_var=no
10466       ;;
10467
10468     *)
10469       ld_shlibs=no
10470       ;;
10471     esac
10472
10473     if test sni = "$host_vendor"; then
10474       case $host in
10475       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10476         export_dynamic_flag_spec='$wl-Blargedynsym'
10477         ;;
10478       esac
10479     fi
10480   fi
10481
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10483 $as_echo "$ld_shlibs" >&6; }
10484 test no = "$ld_shlibs" && can_build_shared=no
10485
10486 with_gnu_ld=$with_gnu_ld
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502 #
10503 # Do we need to explicitly link libc?
10504 #
10505 case "x$archive_cmds_need_lc" in
10506 x|xyes)
10507   # Assume -lc should be added
10508   archive_cmds_need_lc=yes
10509
10510   if test yes,yes = "$GCC,$enable_shared"; then
10511     case $archive_cmds in
10512     *'~'*)
10513       # FIXME: we may have to deal with multi-command sequences.
10514       ;;
10515     '$CC '*)
10516       # Test whether the compiler implicitly links with -lc since on some
10517       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10518       # to ld, don't add -lc before -lgcc.
10519       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10520 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10521 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10522   $as_echo_n "(cached) " >&6
10523 else
10524   $RM conftest*
10525         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10526
10527         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10528   (eval $ac_compile) 2>&5
10529   ac_status=$?
10530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10531   test $ac_status = 0; } 2>conftest.err; then
10532           soname=conftest
10533           lib=conftest
10534           libobjs=conftest.$ac_objext
10535           deplibs=
10536           wl=$lt_prog_compiler_wl
10537           pic_flag=$lt_prog_compiler_pic
10538           compiler_flags=-v
10539           linker_flags=-v
10540           verstring=
10541           output_objdir=.
10542           libname=conftest
10543           lt_save_allow_undefined_flag=$allow_undefined_flag
10544           allow_undefined_flag=
10545           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10546   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10547   ac_status=$?
10548   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549   test $ac_status = 0; }
10550           then
10551             lt_cv_archive_cmds_need_lc=no
10552           else
10553             lt_cv_archive_cmds_need_lc=yes
10554           fi
10555           allow_undefined_flag=$lt_save_allow_undefined_flag
10556         else
10557           cat conftest.err 1>&5
10558         fi
10559         $RM conftest*
10560
10561 fi
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10563 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10564       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10565       ;;
10566     esac
10567   fi
10568   ;;
10569 esac
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10723 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10724
10725 if test yes = "$GCC"; then
10726   case $host_os in
10727     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10728     *) lt_awk_arg='/^libraries:/' ;;
10729   esac
10730   case $host_os in
10731     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10732     *) lt_sed_strip_eq='s|=/|/|g' ;;
10733   esac
10734   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10735   case $lt_search_path_spec in
10736   *\;*)
10737     # if the path contains ";" then we assume it to be the separator
10738     # otherwise default to the standard path separator (i.e. ":") - it is
10739     # assumed that no part of a normal pathname contains ";" but that should
10740     # okay in the real world where ";" in dirpaths is itself problematic.
10741     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10742     ;;
10743   *)
10744     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10745     ;;
10746   esac
10747   # Ok, now we have the path, separated by spaces, we can step through it
10748   # and add multilib dir if necessary...
10749   lt_tmp_lt_search_path_spec=
10750   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10751   # ...but if some path component already ends with the multilib dir we assume
10752   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10753   case "$lt_multi_os_dir; $lt_search_path_spec " in
10754   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10755     lt_multi_os_dir=
10756     ;;
10757   esac
10758   for lt_sys_path in $lt_search_path_spec; do
10759     if test -d "$lt_sys_path$lt_multi_os_dir"; then
10760       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10761     elif test -n "$lt_multi_os_dir"; then
10762       test -d "$lt_sys_path" && \
10763         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10764     fi
10765   done
10766   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10767 BEGIN {RS = " "; FS = "/|\n";} {
10768   lt_foo = "";
10769   lt_count = 0;
10770   for (lt_i = NF; lt_i > 0; lt_i--) {
10771     if ($lt_i != "" && $lt_i != ".") {
10772       if ($lt_i == "..") {
10773         lt_count++;
10774       } else {
10775         if (lt_count == 0) {
10776           lt_foo = "/" $lt_i lt_foo;
10777         } else {
10778           lt_count--;
10779         }
10780       }
10781     }
10782   }
10783   if (lt_foo != "") { lt_freq[lt_foo]++; }
10784   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10785 }'`
10786   # AWK program above erroneously prepends '/' to C:/dos/paths
10787   # for these hosts.
10788   case $host_os in
10789     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10790       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10791   esac
10792   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10793 else
10794   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10795 fi
10796 library_names_spec=
10797 libname_spec='lib$name'
10798 soname_spec=
10799 shrext_cmds=.so
10800 postinstall_cmds=
10801 postuninstall_cmds=
10802 finish_cmds=
10803 finish_eval=
10804 shlibpath_var=
10805 shlibpath_overrides_runpath=unknown
10806 version_type=none
10807 dynamic_linker="$host_os ld.so"
10808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10809 need_lib_prefix=unknown
10810 hardcode_into_libs=no
10811
10812 # when you set need_version to no, make sure it does not cause -set_version
10813 # flags to be left without arguments
10814 need_version=unknown
10815
10816
10817
10818 case $host_os in
10819 aix3*)
10820   version_type=linux # correct to gnu/linux during the next big refactor
10821   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10822   shlibpath_var=LIBPATH
10823
10824   # AIX 3 has no versioning support, so we append a major version to the name.
10825   soname_spec='$libname$release$shared_ext$major'
10826   ;;
10827
10828 aix[4-9]*)
10829   version_type=linux # correct to gnu/linux during the next big refactor
10830   need_lib_prefix=no
10831   need_version=no
10832   hardcode_into_libs=yes
10833   if test ia64 = "$host_cpu"; then
10834     # AIX 5 supports IA64
10835     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10836     shlibpath_var=LD_LIBRARY_PATH
10837   else
10838     # With GCC up to 2.95.x, collect2 would create an import file
10839     # for dependence libraries.  The import file would start with
10840     # the line '#! .'.  This would cause the generated library to
10841     # depend on '.', always an invalid library.  This was fixed in
10842     # development snapshots of GCC prior to 3.0.
10843     case $host_os in
10844       aix4 | aix4.[01] | aix4.[01].*)
10845       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10846            echo ' yes '
10847            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10848         :
10849       else
10850         can_build_shared=no
10851       fi
10852       ;;
10853     esac
10854     # Using Import Files as archive members, it is possible to support
10855     # filename-based versioning of shared library archives on AIX. While
10856     # this would work for both with and without runtime linking, it will
10857     # prevent static linking of such archives. So we do filename-based
10858     # shared library versioning with .so extension only, which is used
10859     # when both runtime linking and shared linking is enabled.
10860     # Unfortunately, runtime linking may impact performance, so we do
10861     # not want this to be the default eventually. Also, we use the
10862     # versioned .so libs for executables only if there is the -brtl
10863     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10864     # To allow for filename-based versioning support, we need to create
10865     # libNAME.so.V as an archive file, containing:
10866     # *) an Import File, referring to the versioned filename of the
10867     #    archive as well as the shared archive member, telling the
10868     #    bitwidth (32 or 64) of that shared object, and providing the
10869     #    list of exported symbols of that shared object, eventually
10870     #    decorated with the 'weak' keyword
10871     # *) the shared object with the F_LOADONLY flag set, to really avoid
10872     #    it being seen by the linker.
10873     # At run time we better use the real file rather than another symlink,
10874     # but for link time we create the symlink libNAME.so -> libNAME.so.V
10875
10876     case $with_aix_soname,$aix_use_runtimelinking in
10877     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10878     # soname into executable. Probably we can add versioning support to
10879     # collect2, so additional links can be useful in future.
10880     aix,yes) # traditional libtool
10881       dynamic_linker='AIX unversionable lib.so'
10882       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10883       # instead of lib<name>.a to let people know that these are not
10884       # typical AIX shared libraries.
10885       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10886       ;;
10887     aix,no) # traditional AIX only
10888       dynamic_linker='AIX lib.a(lib.so.V)'
10889       # We preserve .a as extension for shared libraries through AIX4.2
10890       # and later when we are not doing run time linking.
10891       library_names_spec='$libname$release.a $libname.a'
10892       soname_spec='$libname$release$shared_ext$major'
10893       ;;
10894     svr4,*) # full svr4 only
10895       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10896       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10897       # We do not specify a path in Import Files, so LIBPATH fires.
10898       shlibpath_overrides_runpath=yes
10899       ;;
10900     *,yes) # both, prefer svr4
10901       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10902       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10903       # unpreferred sharedlib libNAME.a needs extra handling
10904       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"'
10905       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"'
10906       # We do not specify a path in Import Files, so LIBPATH fires.
10907       shlibpath_overrides_runpath=yes
10908       ;;
10909     *,no) # both, prefer aix
10910       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10911       library_names_spec='$libname$release.a $libname.a'
10912       soname_spec='$libname$release$shared_ext$major'
10913       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10914       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)'
10915       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"'
10916       ;;
10917     esac
10918     shlibpath_var=LIBPATH
10919   fi
10920   ;;
10921
10922 amigaos*)
10923   case $host_cpu in
10924   powerpc)
10925     # Since July 2007 AmigaOS4 officially supports .so libraries.
10926     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10927     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10928     ;;
10929   m68k)
10930     library_names_spec='$libname.ixlibrary $libname.a'
10931     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10932     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'
10933     ;;
10934   esac
10935   ;;
10936
10937 beos*)
10938   library_names_spec='$libname$shared_ext'
10939   dynamic_linker="$host_os ld.so"
10940   shlibpath_var=LIBRARY_PATH
10941   ;;
10942
10943 bsdi[45]*)
10944   version_type=linux # correct to gnu/linux during the next big refactor
10945   need_version=no
10946   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947   soname_spec='$libname$release$shared_ext$major'
10948   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10949   shlibpath_var=LD_LIBRARY_PATH
10950   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10951   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10952   # the default ld.so.conf also contains /usr/contrib/lib and
10953   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10954   # libtool to hard-code these into programs
10955   ;;
10956
10957 cygwin* | mingw* | pw32* | cegcc*)
10958   version_type=windows
10959   shrext_cmds=.dll
10960   need_version=no
10961   need_lib_prefix=no
10962
10963   case $GCC,$cc_basename in
10964   yes,*)
10965     # gcc
10966     library_names_spec='$libname.dll.a'
10967     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10968     postinstall_cmds='base_file=`basename \$file`~
10969       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10970       dldir=$destdir/`dirname \$dlpath`~
10971       test -d \$dldir || mkdir -p \$dldir~
10972       $install_prog $dir/$dlname \$dldir/$dlname~
10973       chmod a+x \$dldir/$dlname~
10974       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10975         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10976       fi'
10977     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10978       dlpath=$dir/\$dldll~
10979        $RM \$dlpath'
10980     shlibpath_overrides_runpath=yes
10981
10982     case $host_os in
10983     cygwin*)
10984       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10985       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10986
10987       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10988       ;;
10989     mingw* | cegcc*)
10990       # MinGW DLLs use traditional 'lib' prefix
10991       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10992       ;;
10993     pw32*)
10994       # pw32 DLLs use 'pw' prefix rather than 'lib'
10995       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10996       ;;
10997     esac
10998     dynamic_linker='Win32 ld.exe'
10999     ;;
11000
11001   *,cl*)
11002     # Native MSVC
11003     libname_spec='$name'
11004     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11005     library_names_spec='$libname.dll.lib'
11006
11007     case $build_os in
11008     mingw*)
11009       sys_lib_search_path_spec=
11010       lt_save_ifs=$IFS
11011       IFS=';'
11012       for lt_path in $LIB
11013       do
11014         IFS=$lt_save_ifs
11015         # Let DOS variable expansion print the short 8.3 style file name.
11016         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11017         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11018       done
11019       IFS=$lt_save_ifs
11020       # Convert to MSYS style.
11021       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11022       ;;
11023     cygwin*)
11024       # Convert to unix form, then to dos form, then back to unix form
11025       # but this time dos style (no spaces!) so that the unix form looks
11026       # like /cygdrive/c/PROGRA~1:/cygdr...
11027       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11028       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11029       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11030       ;;
11031     *)
11032       sys_lib_search_path_spec=$LIB
11033       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11034         # It is most probably a Windows format PATH.
11035         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11036       else
11037         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11038       fi
11039       # FIXME: find the short name or the path components, as spaces are
11040       # common. (e.g. "Program Files" -> "PROGRA~1")
11041       ;;
11042     esac
11043
11044     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11045     postinstall_cmds='base_file=`basename \$file`~
11046       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11047       dldir=$destdir/`dirname \$dlpath`~
11048       test -d \$dldir || mkdir -p \$dldir~
11049       $install_prog $dir/$dlname \$dldir/$dlname'
11050     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11051       dlpath=$dir/\$dldll~
11052        $RM \$dlpath'
11053     shlibpath_overrides_runpath=yes
11054     dynamic_linker='Win32 link.exe'
11055     ;;
11056
11057   *)
11058     # Assume MSVC wrapper
11059     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11060     dynamic_linker='Win32 ld.exe'
11061     ;;
11062   esac
11063   # FIXME: first we should search . and the directory the executable is in
11064   shlibpath_var=PATH
11065   ;;
11066
11067 darwin* | rhapsody*)
11068   dynamic_linker="$host_os dyld"
11069   version_type=darwin
11070   need_lib_prefix=no
11071   need_version=no
11072   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11073   soname_spec='$libname$release$major$shared_ext'
11074   shlibpath_overrides_runpath=yes
11075   shlibpath_var=DYLD_LIBRARY_PATH
11076   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11077
11078   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11079   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11080   ;;
11081
11082 dgux*)
11083   version_type=linux # correct to gnu/linux during the next big refactor
11084   need_lib_prefix=no
11085   need_version=no
11086   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11087   soname_spec='$libname$release$shared_ext$major'
11088   shlibpath_var=LD_LIBRARY_PATH
11089   ;;
11090
11091 freebsd* | dragonfly*)
11092   # DragonFly does not have aout.  When/if they implement a new
11093   # versioning mechanism, adjust this.
11094   if test -x /usr/bin/objformat; then
11095     objformat=`/usr/bin/objformat`
11096   else
11097     case $host_os in
11098     freebsd[23].*) objformat=aout ;;
11099     *) objformat=elf ;;
11100     esac
11101   fi
11102   version_type=freebsd-$objformat
11103   case $version_type in
11104     freebsd-elf*)
11105       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11106       soname_spec='$libname$release$shared_ext$major'
11107       need_version=no
11108       need_lib_prefix=no
11109       ;;
11110     freebsd-*)
11111       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11112       need_version=yes
11113       ;;
11114   esac
11115   shlibpath_var=LD_LIBRARY_PATH
11116   case $host_os in
11117   freebsd2.*)
11118     shlibpath_overrides_runpath=yes
11119     ;;
11120   freebsd3.[01]* | freebsdelf3.[01]*)
11121     shlibpath_overrides_runpath=yes
11122     hardcode_into_libs=yes
11123     ;;
11124   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11125   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11126     shlibpath_overrides_runpath=no
11127     hardcode_into_libs=yes
11128     ;;
11129   *) # from 4.6 on, and DragonFly
11130     shlibpath_overrides_runpath=yes
11131     hardcode_into_libs=yes
11132     ;;
11133   esac
11134   ;;
11135
11136 haiku*)
11137   version_type=linux # correct to gnu/linux during the next big refactor
11138   need_lib_prefix=no
11139   need_version=no
11140   dynamic_linker="$host_os runtime_loader"
11141   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11142   soname_spec='$libname$release$shared_ext$major'
11143   shlibpath_var=LIBRARY_PATH
11144   shlibpath_overrides_runpath=no
11145   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11146   hardcode_into_libs=yes
11147   ;;
11148
11149 hpux9* | hpux10* | hpux11*)
11150   # Give a soname corresponding to the major version so that dld.sl refuses to
11151   # link against other versions.
11152   version_type=sunos
11153   need_lib_prefix=no
11154   need_version=no
11155   case $host_cpu in
11156   ia64*)
11157     shrext_cmds='.so'
11158     hardcode_into_libs=yes
11159     dynamic_linker="$host_os dld.so"
11160     shlibpath_var=LD_LIBRARY_PATH
11161     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11162     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11163     soname_spec='$libname$release$shared_ext$major'
11164     if test 32 = "$HPUX_IA64_MODE"; then
11165       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11166       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11167     else
11168       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11169       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11170     fi
11171     ;;
11172   hppa*64*)
11173     shrext_cmds='.sl'
11174     hardcode_into_libs=yes
11175     dynamic_linker="$host_os dld.sl"
11176     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11177     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11178     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11179     soname_spec='$libname$release$shared_ext$major'
11180     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11181     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11182     ;;
11183   *)
11184     shrext_cmds='.sl'
11185     dynamic_linker="$host_os dld.sl"
11186     shlibpath_var=SHLIB_PATH
11187     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11188     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11189     soname_spec='$libname$release$shared_ext$major'
11190     ;;
11191   esac
11192   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11193   postinstall_cmds='chmod 555 $lib'
11194   # or fails outright, so override atomically:
11195   install_override_mode=555
11196   ;;
11197
11198 interix[3-9]*)
11199   version_type=linux # correct to gnu/linux during the next big refactor
11200   need_lib_prefix=no
11201   need_version=no
11202   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11203   soname_spec='$libname$release$shared_ext$major'
11204   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   shlibpath_overrides_runpath=no
11207   hardcode_into_libs=yes
11208   ;;
11209
11210 irix5* | irix6* | nonstopux*)
11211   case $host_os in
11212     nonstopux*) version_type=nonstopux ;;
11213     *)
11214         if test yes = "$lt_cv_prog_gnu_ld"; then
11215                 version_type=linux # correct to gnu/linux during the next big refactor
11216         else
11217                 version_type=irix
11218         fi ;;
11219   esac
11220   need_lib_prefix=no
11221   need_version=no
11222   soname_spec='$libname$release$shared_ext$major'
11223   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11224   case $host_os in
11225   irix5* | nonstopux*)
11226     libsuff= shlibsuff=
11227     ;;
11228   *)
11229     case $LD in # libtool.m4 will add one of these switches to LD
11230     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11231       libsuff= shlibsuff= libmagic=32-bit;;
11232     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11233       libsuff=32 shlibsuff=N32 libmagic=N32;;
11234     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11235       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11236     *) libsuff= shlibsuff= libmagic=never-match;;
11237     esac
11238     ;;
11239   esac
11240   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11241   shlibpath_overrides_runpath=no
11242   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11243   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11244   hardcode_into_libs=yes
11245   ;;
11246
11247 # No shared lib support for Linux oldld, aout, or coff.
11248 linux*oldld* | linux*aout* | linux*coff*)
11249   dynamic_linker=no
11250   ;;
11251
11252 linux*android*)
11253   version_type=none # Android doesn't support versioned libraries.
11254   need_lib_prefix=no
11255   need_version=no
11256   library_names_spec='$libname$release$shared_ext'
11257   soname_spec='$libname$release$shared_ext'
11258   finish_cmds=
11259   shlibpath_var=LD_LIBRARY_PATH
11260   shlibpath_overrides_runpath=yes
11261
11262   # This implies no fast_install, which is unacceptable.
11263   # Some rework will be needed to allow for fast_install
11264   # before this can be enabled.
11265   hardcode_into_libs=yes
11266
11267   dynamic_linker='Android linker'
11268   # Don't embed -rpath directories since the linker doesn't support them.
11269   hardcode_libdir_flag_spec='-L$libdir'
11270   ;;
11271
11272 # This must be glibc/ELF.
11273 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11274   version_type=linux # correct to gnu/linux during the next big refactor
11275   need_lib_prefix=no
11276   need_version=no
11277   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11278   soname_spec='$libname$release$shared_ext$major'
11279   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11280   shlibpath_var=LD_LIBRARY_PATH
11281   shlibpath_overrides_runpath=no
11282
11283   # Some binutils ld are patched to set DT_RUNPATH
11284   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11285   $as_echo_n "(cached) " >&6
11286 else
11287   lt_cv_shlibpath_overrides_runpath=no
11288     save_LDFLAGS=$LDFLAGS
11289     save_libdir=$libdir
11290     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11291          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11292     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11293 /* end confdefs.h.  */
11294
11295 int
11296 main ()
11297 {
11298
11299   ;
11300   return 0;
11301 }
11302 _ACEOF
11303 if ac_fn_c_try_link "$LINENO"; then :
11304   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11305   lt_cv_shlibpath_overrides_runpath=yes
11306 fi
11307 fi
11308 rm -f core conftest.err conftest.$ac_objext \
11309     conftest$ac_exeext conftest.$ac_ext
11310     LDFLAGS=$save_LDFLAGS
11311     libdir=$save_libdir
11312
11313 fi
11314
11315   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11316
11317   # This implies no fast_install, which is unacceptable.
11318   # Some rework will be needed to allow for fast_install
11319   # before this can be enabled.
11320   hardcode_into_libs=yes
11321
11322   # Ideally, we could use ldconfig to report *all* directores which are
11323   # searched for libraries, however this is still not possible.  Aside from not
11324   # being certain /sbin/ldconfig is available, command
11325   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11326   # even though it is searched at run-time.  Try to do the best guess by
11327   # appending ld.so.conf contents (and includes) to the search path.
11328   if test -f /etc/ld.so.conf; then
11329     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' ' '`
11330     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11331   fi
11332
11333   # We used to test for /lib/ld.so.1 and disable shared libraries on
11334   # powerpc, because MkLinux only supported shared libraries with the
11335   # GNU dynamic linker.  Since this was broken with cross compilers,
11336   # most powerpc-linux boxes support dynamic linking these days and
11337   # people can always --disable-shared, the test was removed, and we
11338   # assume the GNU/Linux dynamic linker is in use.
11339   dynamic_linker='GNU/Linux ld.so'
11340   ;;
11341
11342 netbsdelf*-gnu)
11343   version_type=linux
11344   need_lib_prefix=no
11345   need_version=no
11346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11347   soname_spec='${libname}${release}${shared_ext}$major'
11348   shlibpath_var=LD_LIBRARY_PATH
11349   shlibpath_overrides_runpath=no
11350   hardcode_into_libs=yes
11351   dynamic_linker='NetBSD ld.elf_so'
11352   ;;
11353
11354 netbsd*)
11355   version_type=sunos
11356   need_lib_prefix=no
11357   need_version=no
11358   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11359     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11360     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11361     dynamic_linker='NetBSD (a.out) ld.so'
11362   else
11363     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11364     soname_spec='$libname$release$shared_ext$major'
11365     dynamic_linker='NetBSD ld.elf_so'
11366   fi
11367   shlibpath_var=LD_LIBRARY_PATH
11368   shlibpath_overrides_runpath=yes
11369   hardcode_into_libs=yes
11370   ;;
11371
11372 newsos6)
11373   version_type=linux # correct to gnu/linux during the next big refactor
11374   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11375   shlibpath_var=LD_LIBRARY_PATH
11376   shlibpath_overrides_runpath=yes
11377   ;;
11378
11379 *nto* | *qnx*)
11380   version_type=qnx
11381   need_lib_prefix=no
11382   need_version=no
11383   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11384   soname_spec='$libname$release$shared_ext$major'
11385   shlibpath_var=LD_LIBRARY_PATH
11386   shlibpath_overrides_runpath=no
11387   hardcode_into_libs=yes
11388   dynamic_linker='ldqnx.so'
11389   ;;
11390
11391 openbsd* | bitrig*)
11392   version_type=sunos
11393   sys_lib_dlsearch_path_spec=/usr/lib
11394   need_lib_prefix=no
11395   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11396     need_version=no
11397   else
11398     need_version=yes
11399   fi
11400   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11401   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11402   shlibpath_var=LD_LIBRARY_PATH
11403   shlibpath_overrides_runpath=yes
11404   ;;
11405
11406 os2*)
11407   libname_spec='$name'
11408   version_type=windows
11409   shrext_cmds=.dll
11410   need_version=no
11411   need_lib_prefix=no
11412   # OS/2 can only load a DLL with a base name of 8 characters or less.
11413   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11414     v=$($ECHO $release$versuffix | tr -d .-);
11415     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11416     $ECHO $n$v`$shared_ext'
11417   library_names_spec='${libname}_dll.$libext'
11418   dynamic_linker='OS/2 ld.exe'
11419   shlibpath_var=BEGINLIBPATH
11420   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11421   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11422   postinstall_cmds='base_file=`basename \$file`~
11423     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11424     dldir=$destdir/`dirname \$dlpath`~
11425     test -d \$dldir || mkdir -p \$dldir~
11426     $install_prog $dir/$dlname \$dldir/$dlname~
11427     chmod a+x \$dldir/$dlname~
11428     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11429       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11430     fi'
11431   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11432     dlpath=$dir/\$dldll~
11433     $RM \$dlpath'
11434   ;;
11435
11436 osf3* | osf4* | osf5*)
11437   version_type=osf
11438   need_lib_prefix=no
11439   need_version=no
11440   soname_spec='$libname$release$shared_ext$major'
11441   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11442   shlibpath_var=LD_LIBRARY_PATH
11443   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11444   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11445   ;;
11446
11447 rdos*)
11448   dynamic_linker=no
11449   ;;
11450
11451 solaris*)
11452   version_type=linux # correct to gnu/linux during the next big refactor
11453   need_lib_prefix=no
11454   need_version=no
11455   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11456   soname_spec='$libname$release$shared_ext$major'
11457   shlibpath_var=LD_LIBRARY_PATH
11458   shlibpath_overrides_runpath=yes
11459   hardcode_into_libs=yes
11460   # ldd complains unless libraries are executable
11461   postinstall_cmds='chmod +x $lib'
11462   ;;
11463
11464 sunos4*)
11465   version_type=sunos
11466   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11467   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11468   shlibpath_var=LD_LIBRARY_PATH
11469   shlibpath_overrides_runpath=yes
11470   if test yes = "$with_gnu_ld"; then
11471     need_lib_prefix=no
11472   fi
11473   need_version=yes
11474   ;;
11475
11476 sysv4 | sysv4.3*)
11477   version_type=linux # correct to gnu/linux during the next big refactor
11478   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11479   soname_spec='$libname$release$shared_ext$major'
11480   shlibpath_var=LD_LIBRARY_PATH
11481   case $host_vendor in
11482     sni)
11483       shlibpath_overrides_runpath=no
11484       need_lib_prefix=no
11485       runpath_var=LD_RUN_PATH
11486       ;;
11487     siemens)
11488       need_lib_prefix=no
11489       ;;
11490     motorola)
11491       need_lib_prefix=no
11492       need_version=no
11493       shlibpath_overrides_runpath=no
11494       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11495       ;;
11496   esac
11497   ;;
11498
11499 sysv4*MP*)
11500   if test -d /usr/nec; then
11501     version_type=linux # correct to gnu/linux during the next big refactor
11502     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11503     soname_spec='$libname$shared_ext.$major'
11504     shlibpath_var=LD_LIBRARY_PATH
11505   fi
11506   ;;
11507
11508 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11509   version_type=sco
11510   need_lib_prefix=no
11511   need_version=no
11512   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11513   soname_spec='$libname$release$shared_ext$major'
11514   shlibpath_var=LD_LIBRARY_PATH
11515   shlibpath_overrides_runpath=yes
11516   hardcode_into_libs=yes
11517   if test yes = "$with_gnu_ld"; then
11518     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11519   else
11520     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11521     case $host_os in
11522       sco3.2v5*)
11523         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11524         ;;
11525     esac
11526   fi
11527   sys_lib_dlsearch_path_spec='/usr/lib'
11528   ;;
11529
11530 tpf*)
11531   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11532   version_type=linux # correct to gnu/linux during the next big refactor
11533   need_lib_prefix=no
11534   need_version=no
11535   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11536   shlibpath_var=LD_LIBRARY_PATH
11537   shlibpath_overrides_runpath=no
11538   hardcode_into_libs=yes
11539   ;;
11540
11541 uts4*)
11542   version_type=linux # correct to gnu/linux during the next big refactor
11543   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11544   soname_spec='$libname$release$shared_ext$major'
11545   shlibpath_var=LD_LIBRARY_PATH
11546   ;;
11547
11548 *)
11549   dynamic_linker=no
11550   ;;
11551 esac
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11553 $as_echo "$dynamic_linker" >&6; }
11554 test no = "$dynamic_linker" && can_build_shared=no
11555
11556 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11557 if test yes = "$GCC"; then
11558   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11559 fi
11560
11561 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11562   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11563 fi
11564
11565 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11566   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11567 fi
11568
11569 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11570 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11571
11572 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11573 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11574
11575 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11576 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11675 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11676 hardcode_action=
11677 if test -n "$hardcode_libdir_flag_spec" ||
11678    test -n "$runpath_var" ||
11679    test yes = "$hardcode_automatic"; then
11680
11681   # We can hardcode non-existent directories.
11682   if test no != "$hardcode_direct" &&
11683      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11684      # have to relink, otherwise we might link with an installed library
11685      # when we should be linking with a yet-to-be-installed one
11686      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11687      test no != "$hardcode_minus_L"; then
11688     # Linking always hardcodes the temporary library directory.
11689     hardcode_action=relink
11690   else
11691     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11692     hardcode_action=immediate
11693   fi
11694 else
11695   # We cannot hardcode anything, or else we can only hardcode existing
11696   # directories.
11697   hardcode_action=unsupported
11698 fi
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11700 $as_echo "$hardcode_action" >&6; }
11701
11702 if test relink = "$hardcode_action" ||
11703    test yes = "$inherit_rpath"; then
11704   # Fast installation is not supported
11705   enable_fast_install=no
11706 elif test yes = "$shlibpath_overrides_runpath" ||
11707      test no = "$enable_shared"; then
11708   # Fast installation is not necessary
11709   enable_fast_install=needless
11710 fi
11711
11712
11713
11714
11715
11716
11717   if test yes != "$enable_dlopen"; then
11718   enable_dlopen=unknown
11719   enable_dlopen_self=unknown
11720   enable_dlopen_self_static=unknown
11721 else
11722   lt_cv_dlopen=no
11723   lt_cv_dlopen_libs=
11724
11725   case $host_os in
11726   beos*)
11727     lt_cv_dlopen=load_add_on
11728     lt_cv_dlopen_libs=
11729     lt_cv_dlopen_self=yes
11730     ;;
11731
11732   mingw* | pw32* | cegcc*)
11733     lt_cv_dlopen=LoadLibrary
11734     lt_cv_dlopen_libs=
11735     ;;
11736
11737   cygwin*)
11738     lt_cv_dlopen=dlopen
11739     lt_cv_dlopen_libs=
11740     ;;
11741
11742   darwin*)
11743     # if libdl is installed we need to link against it
11744     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11745 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11746 if ${ac_cv_lib_dl_dlopen+:} false; then :
11747   $as_echo_n "(cached) " >&6
11748 else
11749   ac_check_lib_save_LIBS=$LIBS
11750 LIBS="-ldl  $LIBS"
11751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752 /* end confdefs.h.  */
11753
11754 /* Override any GCC internal prototype to avoid an error.
11755    Use char because int might match the return type of a GCC
11756    builtin and then its argument prototype would still apply.  */
11757 #ifdef __cplusplus
11758 extern "C"
11759 #endif
11760 char dlopen ();
11761 int
11762 main ()
11763 {
11764 return dlopen ();
11765   ;
11766   return 0;
11767 }
11768 _ACEOF
11769 if ac_fn_c_try_link "$LINENO"; then :
11770   ac_cv_lib_dl_dlopen=yes
11771 else
11772   ac_cv_lib_dl_dlopen=no
11773 fi
11774 rm -f core conftest.err conftest.$ac_objext \
11775     conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11779 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11780 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11781   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11782 else
11783
11784     lt_cv_dlopen=dyld
11785     lt_cv_dlopen_libs=
11786     lt_cv_dlopen_self=yes
11787
11788 fi
11789
11790     ;;
11791
11792   tpf*)
11793     # Don't try to run any link tests for TPF.  We know it's impossible
11794     # because TPF is a cross-compiler, and we know how we open DSOs.
11795     lt_cv_dlopen=dlopen
11796     lt_cv_dlopen_libs=
11797     lt_cv_dlopen_self=no
11798     ;;
11799
11800   *)
11801     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11802 if test "x$ac_cv_func_shl_load" = xyes; then :
11803   lt_cv_dlopen=shl_load
11804 else
11805   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11806 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11807 if ${ac_cv_lib_dld_shl_load+:} false; then :
11808   $as_echo_n "(cached) " >&6
11809 else
11810   ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-ldld  $LIBS"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h.  */
11814
11815 /* Override any GCC internal prototype to avoid an error.
11816    Use char because int might match the return type of a GCC
11817    builtin and then its argument prototype would still apply.  */
11818 #ifdef __cplusplus
11819 extern "C"
11820 #endif
11821 char shl_load ();
11822 int
11823 main ()
11824 {
11825 return shl_load ();
11826   ;
11827   return 0;
11828 }
11829 _ACEOF
11830 if ac_fn_c_try_link "$LINENO"; then :
11831   ac_cv_lib_dld_shl_load=yes
11832 else
11833   ac_cv_lib_dld_shl_load=no
11834 fi
11835 rm -f core conftest.err conftest.$ac_objext \
11836     conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11838 fi
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11840 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11841 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11842   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11843 else
11844   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11845 if test "x$ac_cv_func_dlopen" = xyes; then :
11846   lt_cv_dlopen=dlopen
11847 else
11848   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11849 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11850 if ${ac_cv_lib_dl_dlopen+:} false; then :
11851   $as_echo_n "(cached) " >&6
11852 else
11853   ac_check_lib_save_LIBS=$LIBS
11854 LIBS="-ldl  $LIBS"
11855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11856 /* end confdefs.h.  */
11857
11858 /* Override any GCC internal prototype to avoid an error.
11859    Use char because int might match the return type of a GCC
11860    builtin and then its argument prototype would still apply.  */
11861 #ifdef __cplusplus
11862 extern "C"
11863 #endif
11864 char dlopen ();
11865 int
11866 main ()
11867 {
11868 return dlopen ();
11869   ;
11870   return 0;
11871 }
11872 _ACEOF
11873 if ac_fn_c_try_link "$LINENO"; then :
11874   ac_cv_lib_dl_dlopen=yes
11875 else
11876   ac_cv_lib_dl_dlopen=no
11877 fi
11878 rm -f core conftest.err conftest.$ac_objext \
11879     conftest$ac_exeext conftest.$ac_ext
11880 LIBS=$ac_check_lib_save_LIBS
11881 fi
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11883 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11884 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11885   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11886 else
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11888 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11889 if ${ac_cv_lib_svld_dlopen+:} false; then :
11890   $as_echo_n "(cached) " >&6
11891 else
11892   ac_check_lib_save_LIBS=$LIBS
11893 LIBS="-lsvld  $LIBS"
11894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11895 /* end confdefs.h.  */
11896
11897 /* Override any GCC internal prototype to avoid an error.
11898    Use char because int might match the return type of a GCC
11899    builtin and then its argument prototype would still apply.  */
11900 #ifdef __cplusplus
11901 extern "C"
11902 #endif
11903 char dlopen ();
11904 int
11905 main ()
11906 {
11907 return dlopen ();
11908   ;
11909   return 0;
11910 }
11911 _ACEOF
11912 if ac_fn_c_try_link "$LINENO"; then :
11913   ac_cv_lib_svld_dlopen=yes
11914 else
11915   ac_cv_lib_svld_dlopen=no
11916 fi
11917 rm -f core conftest.err conftest.$ac_objext \
11918     conftest$ac_exeext conftest.$ac_ext
11919 LIBS=$ac_check_lib_save_LIBS
11920 fi
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11922 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11923 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11924   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11925 else
11926   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11927 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11928 if ${ac_cv_lib_dld_dld_link+:} false; then :
11929   $as_echo_n "(cached) " >&6
11930 else
11931   ac_check_lib_save_LIBS=$LIBS
11932 LIBS="-ldld  $LIBS"
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934 /* end confdefs.h.  */
11935
11936 /* Override any GCC internal prototype to avoid an error.
11937    Use char because int might match the return type of a GCC
11938    builtin and then its argument prototype would still apply.  */
11939 #ifdef __cplusplus
11940 extern "C"
11941 #endif
11942 char dld_link ();
11943 int
11944 main ()
11945 {
11946 return dld_link ();
11947   ;
11948   return 0;
11949 }
11950 _ACEOF
11951 if ac_fn_c_try_link "$LINENO"; then :
11952   ac_cv_lib_dld_dld_link=yes
11953 else
11954   ac_cv_lib_dld_dld_link=no
11955 fi
11956 rm -f core conftest.err conftest.$ac_objext \
11957     conftest$ac_exeext conftest.$ac_ext
11958 LIBS=$ac_check_lib_save_LIBS
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11961 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11962 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11963   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11964 fi
11965
11966
11967 fi
11968
11969
11970 fi
11971
11972
11973 fi
11974
11975
11976 fi
11977
11978
11979 fi
11980
11981     ;;
11982   esac
11983
11984   if test no = "$lt_cv_dlopen"; then
11985     enable_dlopen=no
11986   else
11987     enable_dlopen=yes
11988   fi
11989
11990   case $lt_cv_dlopen in
11991   dlopen)
11992     save_CPPFLAGS=$CPPFLAGS
11993     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11994
11995     save_LDFLAGS=$LDFLAGS
11996     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11997
11998     save_LIBS=$LIBS
11999     LIBS="$lt_cv_dlopen_libs $LIBS"
12000
12001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12002 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12003 if ${lt_cv_dlopen_self+:} false; then :
12004   $as_echo_n "(cached) " >&6
12005 else
12006           if test yes = "$cross_compiling"; then :
12007   lt_cv_dlopen_self=cross
12008 else
12009   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12010   lt_status=$lt_dlunknown
12011   cat > conftest.$ac_ext <<_LT_EOF
12012 #line $LINENO "configure"
12013 #include "confdefs.h"
12014
12015 #if HAVE_DLFCN_H
12016 #include <dlfcn.h>
12017 #endif
12018
12019 #include <stdio.h>
12020
12021 #ifdef RTLD_GLOBAL
12022 #  define LT_DLGLOBAL           RTLD_GLOBAL
12023 #else
12024 #  ifdef DL_GLOBAL
12025 #    define LT_DLGLOBAL         DL_GLOBAL
12026 #  else
12027 #    define LT_DLGLOBAL         0
12028 #  endif
12029 #endif
12030
12031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12032    find out it does not work in some platform. */
12033 #ifndef LT_DLLAZY_OR_NOW
12034 #  ifdef RTLD_LAZY
12035 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12036 #  else
12037 #    ifdef DL_LAZY
12038 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12039 #    else
12040 #      ifdef RTLD_NOW
12041 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12042 #      else
12043 #        ifdef DL_NOW
12044 #          define LT_DLLAZY_OR_NOW      DL_NOW
12045 #        else
12046 #          define LT_DLLAZY_OR_NOW      0
12047 #        endif
12048 #      endif
12049 #    endif
12050 #  endif
12051 #endif
12052
12053 /* When -fvisibility=hidden is used, assume the code has been annotated
12054    correspondingly for the symbols needed.  */
12055 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12056 int fnord () __attribute__((visibility("default")));
12057 #endif
12058
12059 int fnord () { return 42; }
12060 int main ()
12061 {
12062   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12063   int status = $lt_dlunknown;
12064
12065   if (self)
12066     {
12067       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12068       else
12069         {
12070           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12071           else puts (dlerror ());
12072         }
12073       /* dlclose (self); */
12074     }
12075   else
12076     puts (dlerror ());
12077
12078   return status;
12079 }
12080 _LT_EOF
12081   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12082   (eval $ac_link) 2>&5
12083   ac_status=$?
12084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12085   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12086     (./conftest; exit; ) >&5 2>/dev/null
12087     lt_status=$?
12088     case x$lt_status in
12089       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12090       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12091       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12092     esac
12093   else :
12094     # compilation failed
12095     lt_cv_dlopen_self=no
12096   fi
12097 fi
12098 rm -fr conftest*
12099
12100
12101 fi
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12103 $as_echo "$lt_cv_dlopen_self" >&6; }
12104
12105     if test yes = "$lt_cv_dlopen_self"; then
12106       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12107       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12108 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12109 if ${lt_cv_dlopen_self_static+:} false; then :
12110   $as_echo_n "(cached) " >&6
12111 else
12112           if test yes = "$cross_compiling"; then :
12113   lt_cv_dlopen_self_static=cross
12114 else
12115   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12116   lt_status=$lt_dlunknown
12117   cat > conftest.$ac_ext <<_LT_EOF
12118 #line $LINENO "configure"
12119 #include "confdefs.h"
12120
12121 #if HAVE_DLFCN_H
12122 #include <dlfcn.h>
12123 #endif
12124
12125 #include <stdio.h>
12126
12127 #ifdef RTLD_GLOBAL
12128 #  define LT_DLGLOBAL           RTLD_GLOBAL
12129 #else
12130 #  ifdef DL_GLOBAL
12131 #    define LT_DLGLOBAL         DL_GLOBAL
12132 #  else
12133 #    define LT_DLGLOBAL         0
12134 #  endif
12135 #endif
12136
12137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12138    find out it does not work in some platform. */
12139 #ifndef LT_DLLAZY_OR_NOW
12140 #  ifdef RTLD_LAZY
12141 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12142 #  else
12143 #    ifdef DL_LAZY
12144 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12145 #    else
12146 #      ifdef RTLD_NOW
12147 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12148 #      else
12149 #        ifdef DL_NOW
12150 #          define LT_DLLAZY_OR_NOW      DL_NOW
12151 #        else
12152 #          define LT_DLLAZY_OR_NOW      0
12153 #        endif
12154 #      endif
12155 #    endif
12156 #  endif
12157 #endif
12158
12159 /* When -fvisibility=hidden is used, assume the code has been annotated
12160    correspondingly for the symbols needed.  */
12161 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12162 int fnord () __attribute__((visibility("default")));
12163 #endif
12164
12165 int fnord () { return 42; }
12166 int main ()
12167 {
12168   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12169   int status = $lt_dlunknown;
12170
12171   if (self)
12172     {
12173       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12174       else
12175         {
12176           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12177           else puts (dlerror ());
12178         }
12179       /* dlclose (self); */
12180     }
12181   else
12182     puts (dlerror ());
12183
12184   return status;
12185 }
12186 _LT_EOF
12187   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12188   (eval $ac_link) 2>&5
12189   ac_status=$?
12190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12191   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12192     (./conftest; exit; ) >&5 2>/dev/null
12193     lt_status=$?
12194     case x$lt_status in
12195       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12196       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12197       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12198     esac
12199   else :
12200     # compilation failed
12201     lt_cv_dlopen_self_static=no
12202   fi
12203 fi
12204 rm -fr conftest*
12205
12206
12207 fi
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12209 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12210     fi
12211
12212     CPPFLAGS=$save_CPPFLAGS
12213     LDFLAGS=$save_LDFLAGS
12214     LIBS=$save_LIBS
12215     ;;
12216   esac
12217
12218   case $lt_cv_dlopen_self in
12219   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12220   *) enable_dlopen_self=unknown ;;
12221   esac
12222
12223   case $lt_cv_dlopen_self_static in
12224   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12225   *) enable_dlopen_self_static=unknown ;;
12226   esac
12227 fi
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245 striplib=
12246 old_striplib=
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12248 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12249 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12250   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12251   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12253 $as_echo "yes" >&6; }
12254 else
12255 # FIXME - insert some real tests, host_os isn't really good enough
12256   case $host_os in
12257   darwin*)
12258     if test -n "$STRIP"; then
12259       striplib="$STRIP -x"
12260       old_striplib="$STRIP -S"
12261       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12262 $as_echo "yes" >&6; }
12263     else
12264       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12266     fi
12267     ;;
12268   *)
12269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12271     ;;
12272   esac
12273 fi
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286   # Report what library types will actually be built
12287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12288 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12290 $as_echo "$can_build_shared" >&6; }
12291
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12293 $as_echo_n "checking whether to build shared libraries... " >&6; }
12294   test no = "$can_build_shared" && enable_shared=no
12295
12296   # On AIX, shared libraries and static libraries use the same namespace, and
12297   # are all built from PIC.
12298   case $host_os in
12299   aix3*)
12300     test yes = "$enable_shared" && enable_static=no
12301     if test -n "$RANLIB"; then
12302       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12303       postinstall_cmds='$RANLIB $lib'
12304     fi
12305     ;;
12306
12307   aix[4-9]*)
12308     if test ia64 != "$host_cpu"; then
12309       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12310       yes,aix,yes) ;;                   # shared object as lib.so file only
12311       yes,svr4,*) ;;                    # shared object as lib.so archive member only
12312       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
12313       esac
12314     fi
12315     ;;
12316   esac
12317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12318 $as_echo "$enable_shared" >&6; }
12319
12320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12321 $as_echo_n "checking whether to build static libraries... " >&6; }
12322   # Make sure either enable_shared or enable_static is yes.
12323   test yes = "$enable_shared" || enable_static=yes
12324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12325 $as_echo "$enable_static" >&6; }
12326
12327
12328
12329
12330 fi
12331 ac_ext=c
12332 ac_cpp='$CPP $CPPFLAGS'
12333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12336
12337 CC=$lt_save_CC
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353         ac_config_commands="$ac_config_commands libtool"
12354
12355
12356
12357
12358 # Only expand once:
12359
12360
12361
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
12363 $as_echo_n "checking for library containing strerror... " >&6; }
12364 if ${ac_cv_search_strerror+:} false; then :
12365   $as_echo_n "(cached) " >&6
12366 else
12367   ac_func_search_save_LIBS=$LIBS
12368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12369 /* end confdefs.h.  */
12370
12371 /* Override any GCC internal prototype to avoid an error.
12372    Use char because int might match the return type of a GCC
12373    builtin and then its argument prototype would still apply.  */
12374 #ifdef __cplusplus
12375 extern "C"
12376 #endif
12377 char strerror ();
12378 int
12379 main ()
12380 {
12381 return strerror ();
12382   ;
12383   return 0;
12384 }
12385 _ACEOF
12386 for ac_lib in '' cposix; do
12387   if test -z "$ac_lib"; then
12388     ac_res="none required"
12389   else
12390     ac_res=-l$ac_lib
12391     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12392   fi
12393   if ac_fn_c_try_link "$LINENO"; then :
12394   ac_cv_search_strerror=$ac_res
12395 fi
12396 rm -f core conftest.err conftest.$ac_objext \
12397     conftest$ac_exeext
12398   if ${ac_cv_search_strerror+:} false; then :
12399   break
12400 fi
12401 done
12402 if ${ac_cv_search_strerror+:} false; then :
12403
12404 else
12405   ac_cv_search_strerror=no
12406 fi
12407 rm conftest.$ac_ext
12408 LIBS=$ac_func_search_save_LIBS
12409 fi
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
12411 $as_echo "$ac_cv_search_strerror" >&6; }
12412 ac_res=$ac_cv_search_strerror
12413 if test "$ac_res" != no; then :
12414   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12415
12416 fi
12417
12418 ac_ext=c
12419 ac_cpp='$CPP $CPPFLAGS'
12420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12423 if test -n "$ac_tool_prefix"; then
12424   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12425 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12427 $as_echo_n "checking for $ac_word... " >&6; }
12428 if ${ac_cv_prog_CC+:} false; then :
12429   $as_echo_n "(cached) " >&6
12430 else
12431   if test -n "$CC"; then
12432   ac_cv_prog_CC="$CC" # Let the user override the test.
12433 else
12434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12435 for as_dir in $PATH
12436 do
12437   IFS=$as_save_IFS
12438   test -z "$as_dir" && as_dir=.
12439     for ac_exec_ext in '' $ac_executable_extensions; do
12440   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12441     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12443     break 2
12444   fi
12445 done
12446   done
12447 IFS=$as_save_IFS
12448
12449 fi
12450 fi
12451 CC=$ac_cv_prog_CC
12452 if test -n "$CC"; then
12453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12454 $as_echo "$CC" >&6; }
12455 else
12456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12457 $as_echo "no" >&6; }
12458 fi
12459
12460
12461 fi
12462 if test -z "$ac_cv_prog_CC"; then
12463   ac_ct_CC=$CC
12464   # Extract the first word of "gcc", so it can be a program name with args.
12465 set dummy gcc; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471   if test -n "$ac_ct_CC"; then
12472   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12473 else
12474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12475 for as_dir in $PATH
12476 do
12477   IFS=$as_save_IFS
12478   test -z "$as_dir" && as_dir=.
12479     for ac_exec_ext in '' $ac_executable_extensions; do
12480   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12481     ac_cv_prog_ac_ct_CC="gcc"
12482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12483     break 2
12484   fi
12485 done
12486   done
12487 IFS=$as_save_IFS
12488
12489 fi
12490 fi
12491 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12492 if test -n "$ac_ct_CC"; then
12493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12494 $as_echo "$ac_ct_CC" >&6; }
12495 else
12496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12497 $as_echo "no" >&6; }
12498 fi
12499
12500   if test "x$ac_ct_CC" = x; then
12501     CC=""
12502   else
12503     case $cross_compiling:$ac_tool_warned in
12504 yes:)
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12507 ac_tool_warned=yes ;;
12508 esac
12509     CC=$ac_ct_CC
12510   fi
12511 else
12512   CC="$ac_cv_prog_CC"
12513 fi
12514
12515 if test -z "$CC"; then
12516           if test -n "$ac_tool_prefix"; then
12517     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12518 set dummy ${ac_tool_prefix}cc; ac_word=$2
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12520 $as_echo_n "checking for $ac_word... " >&6; }
12521 if ${ac_cv_prog_CC+:} false; then :
12522   $as_echo_n "(cached) " >&6
12523 else
12524   if test -n "$CC"; then
12525   ac_cv_prog_CC="$CC" # Let the user override the test.
12526 else
12527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12528 for as_dir in $PATH
12529 do
12530   IFS=$as_save_IFS
12531   test -z "$as_dir" && as_dir=.
12532     for ac_exec_ext in '' $ac_executable_extensions; do
12533   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12534     ac_cv_prog_CC="${ac_tool_prefix}cc"
12535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12536     break 2
12537   fi
12538 done
12539   done
12540 IFS=$as_save_IFS
12541
12542 fi
12543 fi
12544 CC=$ac_cv_prog_CC
12545 if test -n "$CC"; then
12546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12547 $as_echo "$CC" >&6; }
12548 else
12549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12550 $as_echo "no" >&6; }
12551 fi
12552
12553
12554   fi
12555 fi
12556 if test -z "$CC"; then
12557   # Extract the first word of "cc", so it can be a program name with args.
12558 set dummy cc; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12560 $as_echo_n "checking for $ac_word... " >&6; }
12561 if ${ac_cv_prog_CC+:} false; then :
12562   $as_echo_n "(cached) " >&6
12563 else
12564   if test -n "$CC"; then
12565   ac_cv_prog_CC="$CC" # Let the user override the test.
12566 else
12567   ac_prog_rejected=no
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12570 do
12571   IFS=$as_save_IFS
12572   test -z "$as_dir" && as_dir=.
12573     for ac_exec_ext in '' $ac_executable_extensions; do
12574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12575     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12576        ac_prog_rejected=yes
12577        continue
12578      fi
12579     ac_cv_prog_CC="cc"
12580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581     break 2
12582   fi
12583 done
12584   done
12585 IFS=$as_save_IFS
12586
12587 if test $ac_prog_rejected = yes; then
12588   # We found a bogon in the path, so make sure we never use it.
12589   set dummy $ac_cv_prog_CC
12590   shift
12591   if test $# != 0; then
12592     # We chose a different compiler from the bogus one.
12593     # However, it has the same basename, so the bogon will be chosen
12594     # first if we set CC to just the basename; use the full file name.
12595     shift
12596     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12597   fi
12598 fi
12599 fi
12600 fi
12601 CC=$ac_cv_prog_CC
12602 if test -n "$CC"; then
12603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12604 $as_echo "$CC" >&6; }
12605 else
12606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12607 $as_echo "no" >&6; }
12608 fi
12609
12610
12611 fi
12612 if test -z "$CC"; then
12613   if test -n "$ac_tool_prefix"; then
12614   for ac_prog in cl.exe
12615   do
12616     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12617 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12619 $as_echo_n "checking for $ac_word... " >&6; }
12620 if ${ac_cv_prog_CC+:} false; then :
12621   $as_echo_n "(cached) " >&6
12622 else
12623   if test -n "$CC"; then
12624   ac_cv_prog_CC="$CC" # Let the user override the test.
12625 else
12626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12627 for as_dir in $PATH
12628 do
12629   IFS=$as_save_IFS
12630   test -z "$as_dir" && as_dir=.
12631     for ac_exec_ext in '' $ac_executable_extensions; do
12632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12633     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12635     break 2
12636   fi
12637 done
12638   done
12639 IFS=$as_save_IFS
12640
12641 fi
12642 fi
12643 CC=$ac_cv_prog_CC
12644 if test -n "$CC"; then
12645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12646 $as_echo "$CC" >&6; }
12647 else
12648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12649 $as_echo "no" >&6; }
12650 fi
12651
12652
12653     test -n "$CC" && break
12654   done
12655 fi
12656 if test -z "$CC"; then
12657   ac_ct_CC=$CC
12658   for ac_prog in cl.exe
12659 do
12660   # Extract the first word of "$ac_prog", so it can be a program name with args.
12661 set dummy $ac_prog; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12665   $as_echo_n "(cached) " >&6
12666 else
12667   if test -n "$ac_ct_CC"; then
12668   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12669 else
12670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12671 for as_dir in $PATH
12672 do
12673   IFS=$as_save_IFS
12674   test -z "$as_dir" && as_dir=.
12675     for ac_exec_ext in '' $ac_executable_extensions; do
12676   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12677     ac_cv_prog_ac_ct_CC="$ac_prog"
12678     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12679     break 2
12680   fi
12681 done
12682   done
12683 IFS=$as_save_IFS
12684
12685 fi
12686 fi
12687 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12688 if test -n "$ac_ct_CC"; then
12689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12690 $as_echo "$ac_ct_CC" >&6; }
12691 else
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12693 $as_echo "no" >&6; }
12694 fi
12695
12696
12697   test -n "$ac_ct_CC" && break
12698 done
12699
12700   if test "x$ac_ct_CC" = x; then
12701     CC=""
12702   else
12703     case $cross_compiling:$ac_tool_warned in
12704 yes:)
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12707 ac_tool_warned=yes ;;
12708 esac
12709     CC=$ac_ct_CC
12710   fi
12711 fi
12712
12713 fi
12714
12715
12716 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12718 as_fn_error $? "no acceptable C compiler found in \$PATH
12719 See \`config.log' for more details" "$LINENO" 5; }
12720
12721 # Provide some information about the compiler.
12722 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12723 set X $ac_compile
12724 ac_compiler=$2
12725 for ac_option in --version -v -V -qversion; do
12726   { { ac_try="$ac_compiler $ac_option >&5"
12727 case "(($ac_try" in
12728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12729   *) ac_try_echo=$ac_try;;
12730 esac
12731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12732 $as_echo "$ac_try_echo"; } >&5
12733   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12734   ac_status=$?
12735   if test -s conftest.err; then
12736     sed '10a\
12737 ... rest of stderr output deleted ...
12738          10q' conftest.err >conftest.er1
12739     cat conftest.er1 >&5
12740   fi
12741   rm -f conftest.er1 conftest.err
12742   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12743   test $ac_status = 0; }
12744 done
12745
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12747 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12748 if ${ac_cv_c_compiler_gnu+:} false; then :
12749   $as_echo_n "(cached) " >&6
12750 else
12751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12752 /* end confdefs.h.  */
12753
12754 int
12755 main ()
12756 {
12757 #ifndef __GNUC__
12758        choke me
12759 #endif
12760
12761   ;
12762   return 0;
12763 }
12764 _ACEOF
12765 if ac_fn_c_try_compile "$LINENO"; then :
12766   ac_compiler_gnu=yes
12767 else
12768   ac_compiler_gnu=no
12769 fi
12770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12771 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12772
12773 fi
12774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12775 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12776 if test $ac_compiler_gnu = yes; then
12777   GCC=yes
12778 else
12779   GCC=
12780 fi
12781 ac_test_CFLAGS=${CFLAGS+set}
12782 ac_save_CFLAGS=$CFLAGS
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12784 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12785 if ${ac_cv_prog_cc_g+:} false; then :
12786   $as_echo_n "(cached) " >&6
12787 else
12788   ac_save_c_werror_flag=$ac_c_werror_flag
12789    ac_c_werror_flag=yes
12790    ac_cv_prog_cc_g=no
12791    CFLAGS="-g"
12792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h.  */
12794
12795 int
12796 main ()
12797 {
12798
12799   ;
12800   return 0;
12801 }
12802 _ACEOF
12803 if ac_fn_c_try_compile "$LINENO"; then :
12804   ac_cv_prog_cc_g=yes
12805 else
12806   CFLAGS=""
12807       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12808 /* end confdefs.h.  */
12809
12810 int
12811 main ()
12812 {
12813
12814   ;
12815   return 0;
12816 }
12817 _ACEOF
12818 if ac_fn_c_try_compile "$LINENO"; then :
12819
12820 else
12821   ac_c_werror_flag=$ac_save_c_werror_flag
12822          CFLAGS="-g"
12823          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h.  */
12825
12826 int
12827 main ()
12828 {
12829
12830   ;
12831   return 0;
12832 }
12833 _ACEOF
12834 if ac_fn_c_try_compile "$LINENO"; then :
12835   ac_cv_prog_cc_g=yes
12836 fi
12837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12838 fi
12839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12840 fi
12841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12842    ac_c_werror_flag=$ac_save_c_werror_flag
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12845 $as_echo "$ac_cv_prog_cc_g" >&6; }
12846 if test "$ac_test_CFLAGS" = set; then
12847   CFLAGS=$ac_save_CFLAGS
12848 elif test $ac_cv_prog_cc_g = yes; then
12849   if test "$GCC" = yes; then
12850     CFLAGS="-g -O2"
12851   else
12852     CFLAGS="-g"
12853   fi
12854 else
12855   if test "$GCC" = yes; then
12856     CFLAGS="-O2"
12857   else
12858     CFLAGS=
12859   fi
12860 fi
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12862 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12863 if ${ac_cv_prog_cc_c89+:} false; then :
12864   $as_echo_n "(cached) " >&6
12865 else
12866   ac_cv_prog_cc_c89=no
12867 ac_save_CC=$CC
12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h.  */
12870 #include <stdarg.h>
12871 #include <stdio.h>
12872 struct stat;
12873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12874 struct buf { int x; };
12875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12876 static char *e (p, i)
12877      char **p;
12878      int i;
12879 {
12880   return p[i];
12881 }
12882 static char *f (char * (*g) (char **, int), char **p, ...)
12883 {
12884   char *s;
12885   va_list v;
12886   va_start (v,p);
12887   s = g (p, va_arg (v,int));
12888   va_end (v);
12889   return s;
12890 }
12891
12892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12893    function prototypes and stuff, but not '\xHH' hex character constants.
12894    These don't provoke an error unfortunately, instead are silently treated
12895    as 'x'.  The following induces an error, until -std is added to get
12896    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12897    array size at least.  It's necessary to write '\x00'==0 to get something
12898    that's true only with -std.  */
12899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12900
12901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12902    inside strings and character constants.  */
12903 #define FOO(x) 'x'
12904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12905
12906 int test (int i, double x);
12907 struct s1 {int (*f) (int a);};
12908 struct s2 {int (*f) (double a);};
12909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12910 int argc;
12911 char **argv;
12912 int
12913 main ()
12914 {
12915 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12916   ;
12917   return 0;
12918 }
12919 _ACEOF
12920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12921         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12922 do
12923   CC="$ac_save_CC $ac_arg"
12924   if ac_fn_c_try_compile "$LINENO"; then :
12925   ac_cv_prog_cc_c89=$ac_arg
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext
12928   test "x$ac_cv_prog_cc_c89" != "xno" && break
12929 done
12930 rm -f conftest.$ac_ext
12931 CC=$ac_save_CC
12932
12933 fi
12934 # AC_CACHE_VAL
12935 case "x$ac_cv_prog_cc_c89" in
12936   x)
12937     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12938 $as_echo "none needed" >&6; } ;;
12939   xno)
12940     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12941 $as_echo "unsupported" >&6; } ;;
12942   *)
12943     CC="$CC $ac_cv_prog_cc_c89"
12944     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12945 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12946 esac
12947 if test "x$ac_cv_prog_cc_c89" != xno; then :
12948
12949 fi
12950
12951 ac_ext=c
12952 ac_cpp='$CPP $CPPFLAGS'
12953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12956
12957 ac_ext=c
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12963 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12964 if ${am_cv_prog_cc_c_o+:} false; then :
12965   $as_echo_n "(cached) " >&6
12966 else
12967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h.  */
12969
12970 int
12971 main ()
12972 {
12973
12974   ;
12975   return 0;
12976 }
12977 _ACEOF
12978   # Make sure it works both with $CC and with simple cc.
12979   # Following AC_PROG_CC_C_O, we do the test twice because some
12980   # compilers refuse to overwrite an existing .o file with -o,
12981   # though they will create one.
12982   am_cv_prog_cc_c_o=yes
12983   for am_i in 1 2; do
12984     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12985    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12986    ac_status=$?
12987    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12988    (exit $ac_status); } \
12989          && test -f conftest2.$ac_objext; then
12990       : OK
12991     else
12992       am_cv_prog_cc_c_o=no
12993       break
12994     fi
12995   done
12996   rm -f core conftest*
12997   unset am_i
12998 fi
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13000 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13001 if test "$am_cv_prog_cc_c_o" != yes; then
13002    # Losing compiler, so override with the script.
13003    # FIXME: It is wrong to rewrite CC.
13004    # But if we don't then we get into trouble of one sort or another.
13005    # A longer-term fix would be to have automake use am__CC in this case,
13006    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13007    CC="$am_aux_dir/compile $CC"
13008 fi
13009 ac_ext=c
13010 ac_cpp='$CPP $CPPFLAGS'
13011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13014
13015
13016 depcc="$CC"   am_compiler_list=
13017
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13019 $as_echo_n "checking dependency style of $depcc... " >&6; }
13020 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13021   $as_echo_n "(cached) " >&6
13022 else
13023   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13024   # We make a subdir and do the tests there.  Otherwise we can end up
13025   # making bogus files that we don't know about and never remove.  For
13026   # instance it was reported that on HP-UX the gcc test will end up
13027   # making a dummy file named 'D' -- because '-MD' means "put the output
13028   # in D".
13029   rm -rf conftest.dir
13030   mkdir conftest.dir
13031   # Copy depcomp to subdir because otherwise we won't find it if we're
13032   # using a relative directory.
13033   cp "$am_depcomp" conftest.dir
13034   cd conftest.dir
13035   # We will build objects and dependencies in a subdirectory because
13036   # it helps to detect inapplicable dependency modes.  For instance
13037   # both Tru64's cc and ICC support -MD to output dependencies as a
13038   # side effect of compilation, but ICC will put the dependencies in
13039   # the current directory while Tru64 will put them in the object
13040   # directory.
13041   mkdir sub
13042
13043   am_cv_CC_dependencies_compiler_type=none
13044   if test "$am_compiler_list" = ""; then
13045      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13046   fi
13047   am__universal=false
13048   case " $depcc " in #(
13049      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13050      esac
13051
13052   for depmode in $am_compiler_list; do
13053     # Setup a source with many dependencies, because some compilers
13054     # like to wrap large dependency lists on column 80 (with \), and
13055     # we should not choose a depcomp mode which is confused by this.
13056     #
13057     # We need to recreate these files for each test, as the compiler may
13058     # overwrite some of them when testing with obscure command lines.
13059     # This happens at least with the AIX C compiler.
13060     : > sub/conftest.c
13061     for i in 1 2 3 4 5 6; do
13062       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13063       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13064       # Solaris 10 /bin/sh.
13065       echo '/* dummy */' > sub/conftst$i.h
13066     done
13067     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13068
13069     # We check with '-c' and '-o' for the sake of the "dashmstdout"
13070     # mode.  It turns out that the SunPro C++ compiler does not properly
13071     # handle '-M -o', and we need to detect this.  Also, some Intel
13072     # versions had trouble with output in subdirs.
13073     am__obj=sub/conftest.${OBJEXT-o}
13074     am__minus_obj="-o $am__obj"
13075     case $depmode in
13076     gcc)
13077       # This depmode causes a compiler race in universal mode.
13078       test "$am__universal" = false || continue
13079       ;;
13080     nosideeffect)
13081       # After this tag, mechanisms are not by side-effect, so they'll
13082       # only be used when explicitly requested.
13083       if test "x$enable_dependency_tracking" = xyes; then
13084         continue
13085       else
13086         break
13087       fi
13088       ;;
13089     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13090       # This compiler won't grok '-c -o', but also, the minuso test has
13091       # not run yet.  These depmodes are late enough in the game, and
13092       # so weak that their functioning should not be impacted.
13093       am__obj=conftest.${OBJEXT-o}
13094       am__minus_obj=
13095       ;;
13096     none) break ;;
13097     esac
13098     if depmode=$depmode \
13099        source=sub/conftest.c object=$am__obj \
13100        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13101        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13102          >/dev/null 2>conftest.err &&
13103        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13104        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13105        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13106        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13107       # icc doesn't choke on unknown options, it will just issue warnings
13108       # or remarks (even with -Werror).  So we grep stderr for any message
13109       # that says an option was ignored or not supported.
13110       # When given -MP, icc 7.0 and 7.1 complain thusly:
13111       #   icc: Command line warning: ignoring option '-M'; no argument required
13112       # The diagnosis changed in icc 8.0:
13113       #   icc: Command line remark: option '-MP' not supported
13114       if (grep 'ignoring option' conftest.err ||
13115           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13116         am_cv_CC_dependencies_compiler_type=$depmode
13117         break
13118       fi
13119     fi
13120   done
13121
13122   cd ..
13123   rm -rf conftest.dir
13124 else
13125   am_cv_CC_dependencies_compiler_type=none
13126 fi
13127
13128 fi
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13130 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13131 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13132
13133  if
13134   test "x$enable_dependency_tracking" != xno \
13135   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13136   am__fastdepCC_TRUE=
13137   am__fastdepCC_FALSE='#'
13138 else
13139   am__fastdepCC_TRUE='#'
13140   am__fastdepCC_FALSE=
13141 fi
13142
13143
13144
13145
13146 # option to specify python interpreter to use; this just sets $PYTHON, so that
13147 # we will fallback to reading $PYTHON if --with-python is not given, and
13148 # python.m4 will get the expected input
13149
13150 # Check whether --with-python was given.
13151 if test "${with_python+set}" = set; then :
13152   withval=$with_python; PYTHON="$withval"
13153 fi
13154
13155 if test x"$PYTHON" = xyes; then
13156         as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
13157 fi
13158 if test -n "$PYTHON" && ! which "$PYTHON"; then
13159         as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
13160 fi
13161
13162 # check that we have the minimum version of python necessary to build
13163
13164
13165
13166
13167         if test -n "$PYTHON"; then
13168       # If the user set $PYTHON, use it and don't search something else.
13169       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
13170 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
13171       prog="import sys
13172 # split strings by '.' and convert to numeric.  Append some zeros
13173 # because we need at least 4 digits for the hex conversion.
13174 # map returns an iterator in Python 3.0 and a list in 2.x
13175 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13176 minverhex = 0
13177 # xrange is not present in Python 3.0 and range returns an iterator
13178 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13179 sys.exit(sys.hexversion < minverhex)"
13180   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13181    ($PYTHON -c "$prog") >&5 2>&5
13182    ac_status=$?
13183    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184    (exit $ac_status); }; then :
13185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13186 $as_echo "yes" >&6; }
13187 else
13188   as_fn_error $? "too old" "$LINENO" 5
13189 fi
13190       am_display_PYTHON=$PYTHON
13191     else
13192       # Otherwise, try each interpreter until we find one that satisfies
13193       # VERSION.
13194       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
13195 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
13196 if ${am_cv_pathless_PYTHON+:} false; then :
13197   $as_echo_n "(cached) " >&6
13198 else
13199
13200         for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
13201           test "$am_cv_pathless_PYTHON" = none && break
13202           prog="import sys
13203 # split strings by '.' and convert to numeric.  Append some zeros
13204 # because we need at least 4 digits for the hex conversion.
13205 # map returns an iterator in Python 3.0 and a list in 2.x
13206 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
13207 minverhex = 0
13208 # xrange is not present in Python 3.0 and range returns an iterator
13209 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13210 sys.exit(sys.hexversion < minverhex)"
13211   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13212    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13213    ac_status=$?
13214    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215    (exit $ac_status); }; then :
13216   break
13217 fi
13218         done
13219 fi
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13221 $as_echo "$am_cv_pathless_PYTHON" >&6; }
13222       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13223       if test "$am_cv_pathless_PYTHON" = none; then
13224         PYTHON=:
13225       else
13226         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13227 set dummy $am_cv_pathless_PYTHON; ac_word=$2
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13229 $as_echo_n "checking for $ac_word... " >&6; }
13230 if ${ac_cv_path_PYTHON+:} false; then :
13231   $as_echo_n "(cached) " >&6
13232 else
13233   case $PYTHON in
13234   [\\/]* | ?:[\\/]*)
13235   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13236   ;;
13237   *)
13238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13240 do
13241   IFS=$as_save_IFS
13242   test -z "$as_dir" && as_dir=.
13243     for ac_exec_ext in '' $ac_executable_extensions; do
13244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13245     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13247     break 2
13248   fi
13249 done
13250   done
13251 IFS=$as_save_IFS
13252
13253   ;;
13254 esac
13255 fi
13256 PYTHON=$ac_cv_path_PYTHON
13257 if test -n "$PYTHON"; then
13258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13259 $as_echo "$PYTHON" >&6; }
13260 else
13261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13262 $as_echo "no" >&6; }
13263 fi
13264
13265
13266       fi
13267       am_display_PYTHON=$am_cv_pathless_PYTHON
13268     fi
13269
13270
13271   if test "$PYTHON" = :; then
13272       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13273   else
13274
13275
13276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13277 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13278 if ${am_cv_python_version+:} false; then :
13279   $as_echo_n "(cached) " >&6
13280 else
13281   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13282 fi
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13284 $as_echo "$am_cv_python_version" >&6; }
13285   PYTHON_VERSION=$am_cv_python_version
13286
13287
13288
13289   PYTHON_PREFIX='${prefix}'
13290
13291   PYTHON_EXEC_PREFIX='${exec_prefix}'
13292
13293
13294
13295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13296 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13297 if ${am_cv_python_platform+:} false; then :
13298   $as_echo_n "(cached) " >&6
13299 else
13300   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13303 $as_echo "$am_cv_python_platform" >&6; }
13304   PYTHON_PLATFORM=$am_cv_python_platform
13305
13306
13307
13308
13309                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13310 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13311 if ${am_cv_python_pythondir+:} false; then :
13312   $as_echo_n "(cached) " >&6
13313 else
13314   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
13315      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13316 fi
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13318 $as_echo "$am_cv_python_pythondir" >&6; }
13319   pythondir=$am_cv_python_pythondir
13320
13321
13322
13323   pkgpythondir=\${pythondir}/$PACKAGE
13324
13325
13326             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13327 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13328 if ${am_cv_python_pyexecdir+:} false; then :
13329   $as_echo_n "(cached) " >&6
13330 else
13331   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
13332      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
13333 fi
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13335 $as_echo "$am_cv_python_pyexecdir" >&6; }
13336   pyexecdir=$am_cv_python_pyexecdir
13337
13338
13339
13340   pkgpyexecdir=\${pyexecdir}/$PACKAGE
13341
13342
13343
13344   fi
13345
13346
13347
13348 # check if we are building for python 3
13349 prog="import sys
13350 # split strings by '.' and convert to numeric.  Append some zeros
13351 # because we need at least 4 digits for the hex conversion.
13352 # map returns an iterator in Python 3.0 and a list in 2.x
13353 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
13354 minverhex = 0
13355 # xrange is not present in Python 3.0 and range returns an iterator
13356 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13357 sys.exit(sys.hexversion < minverhex)"
13358   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13359    ($PYTHON -c "$prog") >&5 2>&5
13360    ac_status=$?
13361    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362    (exit $ac_status); }; then :
13363   build_py3k=true
13364 else
13365   build_py3k=false
13366 fi
13367
13368 # if building for python 3 make sure we have the minimum version supported
13369 if test $build_py3k = true ; then
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.4" >&5
13371 $as_echo_n "checking for $PYTHON >= 3.4... " >&6; }
13372   prog="import sys
13373 # split strings by '.' and convert to numeric.  Append some zeros
13374 # because we need at least 4 digits for the hex conversion.
13375 # map returns an iterator in Python 3.0 and a list in 2.x
13376 minver = list(map(int, '3.4'.split('.'))) + [0, 0, 0]
13377 minverhex = 0
13378 # xrange is not present in Python 3.0 and range returns an iterator
13379 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13380 sys.exit(sys.hexversion < minverhex)"
13381   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13382    ($PYTHON -c "$prog") >&5 2>&5
13383    ac_status=$?
13384    echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385    (exit $ac_status); }; then :
13386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387 $as_echo "yes" >&6; }
13388 else
13389   as_fn_error $? "too old" "$LINENO" 5
13390 fi
13391 fi
13392
13393 # - 'SO' for PyPy, CPython 2.7-3.2
13394 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
13395 # - fallback to '.so'
13396 PYTHON_SO=`$PYTHON -c "import distutils.sysconfig, sys; get = distutils.sysconfig.get_config_var; sys.stdout.write(get('EXT_SUFFIX') or get('SO') or '.so');"`
13397
13398
13399
13400
13401
13402
13403
13404
13405         # Find any Python interpreter.
13406     if test -z "$PYTHON"; then
13407       for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
13408 do
13409   # Extract the first word of "$ac_prog", so it can be a program name with args.
13410 set dummy $ac_prog; ac_word=$2
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13412 $as_echo_n "checking for $ac_word... " >&6; }
13413 if ${ac_cv_path_PYTHON+:} false; then :
13414   $as_echo_n "(cached) " >&6
13415 else
13416   case $PYTHON in
13417   [\\/]* | ?:[\\/]*)
13418   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13419   ;;
13420   *)
13421   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13422 for as_dir in $PATH
13423 do
13424   IFS=$as_save_IFS
13425   test -z "$as_dir" && as_dir=.
13426     for ac_exec_ext in '' $ac_executable_extensions; do
13427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13428     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13430     break 2
13431   fi
13432 done
13433   done
13434 IFS=$as_save_IFS
13435
13436   ;;
13437 esac
13438 fi
13439 PYTHON=$ac_cv_path_PYTHON
13440 if test -n "$PYTHON"; then
13441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13442 $as_echo "$PYTHON" >&6; }
13443 else
13444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445 $as_echo "no" >&6; }
13446 fi
13447
13448
13449   test -n "$PYTHON" && break
13450 done
13451 test -n "$PYTHON" || PYTHON=":"
13452
13453     fi
13454     am_display_PYTHON=python
13455
13456
13457   if test "$PYTHON" = :; then
13458       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
13459   else
13460
13461
13462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13463 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13464 if ${am_cv_python_version+:} false; then :
13465   $as_echo_n "(cached) " >&6
13466 else
13467   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13468 fi
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13470 $as_echo "$am_cv_python_version" >&6; }
13471   PYTHON_VERSION=$am_cv_python_version
13472
13473
13474
13475   PYTHON_PREFIX='${prefix}'
13476
13477   PYTHON_EXEC_PREFIX='${exec_prefix}'
13478
13479
13480
13481   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13482 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13483 if ${am_cv_python_platform+:} false; then :
13484   $as_echo_n "(cached) " >&6
13485 else
13486   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13487 fi
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13489 $as_echo "$am_cv_python_platform" >&6; }
13490   PYTHON_PLATFORM=$am_cv_python_platform
13491
13492
13493   # Just factor out some code duplication.
13494   am_python_setup_sysconfig="\
13495 import sys
13496 # Prefer sysconfig over distutils.sysconfig, for better compatibility
13497 # with python 3.x.  See automake bug#10227.
13498 try:
13499     import sysconfig
13500 except ImportError:
13501     can_use_sysconfig = 0
13502 else:
13503     can_use_sysconfig = 1
13504 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13505 # <https://github.com/pypa/virtualenv/issues/118>
13506 try:
13507     from platform import python_implementation
13508     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13509         can_use_sysconfig = 0
13510 except ImportError:
13511     pass"
13512
13513
13514             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13515 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13516 if ${am_cv_python_pythondir+:} false; then :
13517   $as_echo_n "(cached) " >&6
13518 else
13519   if test "x$prefix" = xNONE
13520      then
13521        am_py_prefix=$ac_default_prefix
13522      else
13523        am_py_prefix=$prefix
13524      fi
13525      am_cv_python_pythondir=`$PYTHON -c "
13526 $am_python_setup_sysconfig
13527 if can_use_sysconfig:
13528     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
13529 else:
13530     from distutils import sysconfig
13531     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
13532 sys.stdout.write(sitedir)"`
13533      case $am_cv_python_pythondir in
13534      $am_py_prefix*)
13535        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13536        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13537        ;;
13538      *)
13539        case $am_py_prefix in
13540          /usr|/System*) ;;
13541          *)
13542           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13543           ;;
13544        esac
13545        ;;
13546      esac
13547
13548 fi
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13550 $as_echo "$am_cv_python_pythondir" >&6; }
13551   pythondir=$am_cv_python_pythondir
13552
13553
13554
13555   pkgpythondir=\${pythondir}/$PACKAGE
13556
13557
13558         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13559 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13560 if ${am_cv_python_pyexecdir+:} false; then :
13561   $as_echo_n "(cached) " >&6
13562 else
13563   if test "x$exec_prefix" = xNONE
13564      then
13565        am_py_exec_prefix=$am_py_prefix
13566      else
13567        am_py_exec_prefix=$exec_prefix
13568      fi
13569      am_cv_python_pyexecdir=`$PYTHON -c "
13570 $am_python_setup_sysconfig
13571 if can_use_sysconfig:
13572     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13573 else:
13574     from distutils import sysconfig
13575     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13576 sys.stdout.write(sitedir)"`
13577      case $am_cv_python_pyexecdir in
13578      $am_py_exec_prefix*)
13579        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13580        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13581        ;;
13582      *)
13583        case $am_py_exec_prefix in
13584          /usr|/System*) ;;
13585          *)
13586            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13587            ;;
13588        esac
13589        ;;
13590      esac
13591
13592 fi
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13594 $as_echo "$am_cv_python_pyexecdir" >&6; }
13595   pyexecdir=$am_cv_python_pyexecdir
13596
13597
13598
13599   pkgpyexecdir=\${pyexecdir}/$PACKAGE
13600
13601
13602
13603   fi
13604
13605
13606
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13608 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13609 if test "x$PYTHON_INCLUDES" = x; then
13610   PYTHON_CONFIG=`which $PYTHON`-config
13611   if test -x "$PYTHON_CONFIG"; then
13612     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13613   else
13614     PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13615     PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13616   fi
13617 fi
13618
13619 save_CPPFLAGS="$CPPFLAGS"
13620 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13622 /* end confdefs.h.  */
13623 #include <Python.h>
13624 _ACEOF
13625 if ac_fn_c_try_cpp "$LINENO"; then :
13626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13627 $as_echo "found" >&6; }
13628
13629 else
13630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13631 $as_echo "not found" >&6; }
13632 as_fn_error $? "Python headers not found" "$LINENO" 5
13633 fi
13634 rm -f conftest.err conftest.i conftest.$ac_ext
13635 CPPFLAGS="$save_CPPFLAGS"
13636
13637 if test "x$link_python_libs" = "xyes"; then
13638
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13640 $as_echo_n "checking for libraries required to embed python... " >&6; }
13641 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13642 if test "x$PYTHON_LIBS" = x; then
13643   PYTHON_CONFIG=`which $PYTHON`-config
13644   if test -x "$PYTHON_CONFIG"; then
13645     PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13646   else
13647     PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13648   fi
13649 fi
13650 if test "x$PYTHON_LIB_LOC" = x; then
13651         PYTHON_LIB_LOC="${py_prefix}/lib"
13652 fi
13653
13654
13655 save_LIBS="$LIBS"
13656 LIBS="$LIBS $PYTHON_LIBS"
13657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13658 /* end confdefs.h.  */
13659
13660 /* Override any GCC internal prototype to avoid an error.
13661    Use char because int might match the return type of a GCC
13662    builtin and then its argument prototype would still apply.  */
13663 #ifdef __cplusplus
13664 extern "C"
13665 #endif
13666 char Py_Initialize ();
13667 int
13668 main ()
13669 {
13670 return Py_Initialize ();
13671   ;
13672   return 0;
13673 }
13674 _ACEOF
13675 if ac_fn_c_try_link "$LINENO"; then :
13676            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13677 $as_echo "yes" >&6; };
13678 else
13679            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13680 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13681 fi
13682 rm -f core conftest.err conftest.$ac_objext \
13683     conftest$ac_exeext conftest.$ac_ext
13684
13685
13686 fi
13687
13688 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13689
13690 # Check whether --enable-glibtest was given.
13691 if test "${enable_glibtest+set}" = set; then :
13692   enableval=$enable_glibtest;
13693 else
13694   enable_glibtest=yes
13695 fi
13696
13697
13698   pkg_config_args=glib-2.0
13699   for module in . gobject $extra_mods
13700   do
13701       case "$module" in
13702          gmodule)
13703              pkg_config_args="$pkg_config_args gmodule-2.0"
13704          ;;
13705          gmodule-no-export)
13706              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13707          ;;
13708          gobject)
13709              pkg_config_args="$pkg_config_args gobject-2.0"
13710          ;;
13711          gthread)
13712              pkg_config_args="$pkg_config_args gthread-2.0"
13713          ;;
13714          gio*)
13715              pkg_config_args="$pkg_config_args $module-2.0"
13716          ;;
13717       esac
13718   done
13719
13720
13721
13722
13723
13724
13725
13726
13727 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13728         if test -n "$ac_tool_prefix"; then
13729   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13730 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13732 $as_echo_n "checking for $ac_word... " >&6; }
13733 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13734   $as_echo_n "(cached) " >&6
13735 else
13736   case $PKG_CONFIG in
13737   [\\/]* | ?:[\\/]*)
13738   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13739   ;;
13740   *)
13741   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13742 for as_dir in $PATH
13743 do
13744   IFS=$as_save_IFS
13745   test -z "$as_dir" && as_dir=.
13746     for ac_exec_ext in '' $ac_executable_extensions; do
13747   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13748     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13750     break 2
13751   fi
13752 done
13753   done
13754 IFS=$as_save_IFS
13755
13756   ;;
13757 esac
13758 fi
13759 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13760 if test -n "$PKG_CONFIG"; then
13761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13762 $as_echo "$PKG_CONFIG" >&6; }
13763 else
13764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13765 $as_echo "no" >&6; }
13766 fi
13767
13768
13769 fi
13770 if test -z "$ac_cv_path_PKG_CONFIG"; then
13771   ac_pt_PKG_CONFIG=$PKG_CONFIG
13772   # Extract the first word of "pkg-config", so it can be a program name with args.
13773 set dummy pkg-config; ac_word=$2
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13775 $as_echo_n "checking for $ac_word... " >&6; }
13776 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13777   $as_echo_n "(cached) " >&6
13778 else
13779   case $ac_pt_PKG_CONFIG in
13780   [\\/]* | ?:[\\/]*)
13781   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13782   ;;
13783   *)
13784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13785 for as_dir in $PATH
13786 do
13787   IFS=$as_save_IFS
13788   test -z "$as_dir" && as_dir=.
13789     for ac_exec_ext in '' $ac_executable_extensions; do
13790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13791     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13793     break 2
13794   fi
13795 done
13796   done
13797 IFS=$as_save_IFS
13798
13799   ;;
13800 esac
13801 fi
13802 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13803 if test -n "$ac_pt_PKG_CONFIG"; then
13804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13805 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13806 else
13807   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809 fi
13810
13811   if test "x$ac_pt_PKG_CONFIG" = x; then
13812     PKG_CONFIG=""
13813   else
13814     case $cross_compiling:$ac_tool_warned in
13815 yes:)
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13818 ac_tool_warned=yes ;;
13819 esac
13820     PKG_CONFIG=$ac_pt_PKG_CONFIG
13821   fi
13822 else
13823   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13824 fi
13825
13826 fi
13827 if test -n "$PKG_CONFIG"; then
13828         _pkg_min_version=0.16
13829         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13830 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13831         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13832                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13833 $as_echo "yes" >&6; }
13834         else
13835                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13836 $as_echo "no" >&6; }
13837                 PKG_CONFIG=""
13838         fi
13839 fi
13840
13841   no_glib=""
13842
13843   if test "x$PKG_CONFIG" = x ; then
13844     no_glib=yes
13845     PKG_CONFIG=no
13846   fi
13847
13848   min_glib_version=2.38.0
13849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13850 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13851
13852   if test x$PKG_CONFIG != xno ; then
13853     ## don't try to run the test against uninstalled libtool libs
13854     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13855           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13856           enable_glibtest=no
13857     fi
13858
13859     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13860           :
13861     else
13862           no_glib=yes
13863     fi
13864   fi
13865
13866   if test x"$no_glib" = x ; then
13867     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13868     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13869     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13870     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13871
13872     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13873     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13874     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13875            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13876     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13877            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13878     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13879            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13880     if test "x$enable_glibtest" = "xyes" ; then
13881       ac_save_CFLAGS="$CFLAGS"
13882       ac_save_LIBS="$LIBS"
13883       CFLAGS="$CFLAGS $GLIB_CFLAGS"
13884       LIBS="$GLIB_LIBS $LIBS"
13885       rm -f conf.glibtest
13886       if test "$cross_compiling" = yes; then :
13887   echo $ac_n "cross compiling; assumed OK... $ac_c"
13888 else
13889   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13890 /* end confdefs.h.  */
13891
13892 #include <glib.h>
13893 #include <stdio.h>
13894 #include <stdlib.h>
13895
13896 int
13897 main ()
13898 {
13899   unsigned int major, minor, micro;
13900
13901   fclose (fopen ("conf.glibtest", "w"));
13902
13903   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
13904      printf("%s, bad version string\n", "$min_glib_version");
13905      exit(1);
13906    }
13907
13908   if ((glib_major_version != $glib_config_major_version) ||
13909       (glib_minor_version != $glib_config_minor_version) ||
13910       (glib_micro_version != $glib_config_micro_version))
13911     {
13912       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13913              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13914              glib_major_version, glib_minor_version, glib_micro_version);
13915       printf ("*** was found! If pkg-config was correct, then it is best\n");
13916       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13917       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13918       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13919       printf("*** required on your system.\n");
13920       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13921       printf("*** to point to the correct configuration files\n");
13922     }
13923   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13924            (glib_minor_version != GLIB_MINOR_VERSION) ||
13925            (glib_micro_version != GLIB_MICRO_VERSION))
13926     {
13927       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13928              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13929       printf("*** library (version %d.%d.%d)\n",
13930              glib_major_version, glib_minor_version, glib_micro_version);
13931     }
13932   else
13933     {
13934       if ((glib_major_version > major) ||
13935         ((glib_major_version == major) && (glib_minor_version > minor)) ||
13936         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13937       {
13938         return 0;
13939        }
13940      else
13941       {
13942         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13943                glib_major_version, glib_minor_version, glib_micro_version);
13944         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13945                major, minor, micro);
13946         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13947         printf("***\n");
13948         printf("*** If you have already installed a sufficiently new version, this error\n");
13949         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13950         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13951         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13952         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13953         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13954         printf("*** so that the correct libraries are found at run-time))\n");
13955       }
13956     }
13957   return 1;
13958 }
13959
13960 _ACEOF
13961 if ac_fn_c_try_run "$LINENO"; then :
13962
13963 else
13964   no_glib=yes
13965 fi
13966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13967   conftest.$ac_objext conftest.beam conftest.$ac_ext
13968 fi
13969
13970        CFLAGS="$ac_save_CFLAGS"
13971        LIBS="$ac_save_LIBS"
13972      fi
13973   fi
13974   if test "x$no_glib" = x ; then
13975      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13976 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13977      :
13978   else
13979      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13980 $as_echo "no" >&6; }
13981      if test "$PKG_CONFIG" = "no" ; then
13982        echo "*** A new enough version of pkg-config was not found."
13983        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13984      else
13985        if test -f conf.glibtest ; then
13986         :
13987        else
13988           echo "*** Could not run GLIB test program, checking why..."
13989           ac_save_CFLAGS="$CFLAGS"
13990           ac_save_LIBS="$LIBS"
13991           CFLAGS="$CFLAGS $GLIB_CFLAGS"
13992           LIBS="$LIBS $GLIB_LIBS"
13993           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13994 /* end confdefs.h.  */
13995
13996 #include <glib.h>
13997 #include <stdio.h>
13998
13999 int
14000 main ()
14001 {
14002  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
14003   ;
14004   return 0;
14005 }
14006 _ACEOF
14007 if ac_fn_c_try_link "$LINENO"; then :
14008    echo "*** The test program compiled, but did not run. This usually means"
14009           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
14010           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
14011           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
14012           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
14013           echo "*** is required on your system"
14014           echo "***"
14015           echo "*** If you have an old version installed, it is best to remove it, although"
14016           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
14017 else
14018    echo "*** The test program failed to compile or link. See the file config.log for the"
14019           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
14020 fi
14021 rm -f core conftest.err conftest.$ac_objext \
14022     conftest$ac_exeext conftest.$ac_ext
14023           CFLAGS="$ac_save_CFLAGS"
14024           LIBS="$ac_save_LIBS"
14025        fi
14026      fi
14027      GLIB_CFLAGS=""
14028      GLIB_LIBS=""
14029      GLIB_GENMARSHAL=""
14030      GOBJECT_QUERY=""
14031      GLIB_MKENUMS=""
14032      GLIB_COMPILE_RESOURCES=""
14033      as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
14034   fi
14035
14036
14037
14038
14039
14040
14041   rm -f conf.glibtest
14042
14043 if test -n "$export_dynamic"; then
14044   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
14045 fi
14046
14047 PYTHON_VALGRIND_SUPP=`$PYTHON -c "import sys; sys.stdout.write('python' + sys.version.__getitem__(0))"`
14048
14049
14050
14051 pkg_failed=no
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
14053 $as_echo_n "checking for FFI... " >&6; }
14054
14055 if test -n "$FFI_CFLAGS"; then
14056     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
14057  elif test -n "$PKG_CONFIG"; then
14058     if test -n "$PKG_CONFIG" && \
14059     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14060   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14061   ac_status=$?
14062   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063   test $ac_status = 0; }; then
14064   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
14065                       test "x$?" != "x0" && pkg_failed=yes
14066 else
14067   pkg_failed=yes
14068 fi
14069  else
14070     pkg_failed=untried
14071 fi
14072 if test -n "$FFI_LIBS"; then
14073     pkg_cv_FFI_LIBS="$FFI_LIBS"
14074  elif test -n "$PKG_CONFIG"; then
14075     if test -n "$PKG_CONFIG" && \
14076     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
14077   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
14078   ac_status=$?
14079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14080   test $ac_status = 0; }; then
14081   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
14082                       test "x$?" != "x0" && pkg_failed=yes
14083 else
14084   pkg_failed=yes
14085 fi
14086  else
14087     pkg_failed=untried
14088 fi
14089
14090
14091
14092 if test $pkg_failed = yes; then
14093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14095
14096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14097         _pkg_short_errors_supported=yes
14098 else
14099         _pkg_short_errors_supported=no
14100 fi
14101         if test $_pkg_short_errors_supported = yes; then
14102                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14103         else
14104                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
14105         fi
14106         # Put the nasty error message in config.log where it belongs
14107         echo "$FFI_PKG_ERRORS" >&5
14108
14109         as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
14110
14111 $FFI_PKG_ERRORS
14112
14113 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14114 installed software in a non-standard prefix.
14115
14116 Alternatively, you may set the environment variables FFI_CFLAGS
14117 and FFI_LIBS to avoid the need to call pkg-config.
14118 See the pkg-config man page for more details." "$LINENO" 5
14119 elif test $pkg_failed = untried; then
14120         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14121 $as_echo "no" >&6; }
14122         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14124 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14125 is in your PATH or set the PKG_CONFIG environment variable to the full
14126 path to pkg-config.
14127
14128 Alternatively, you may set the environment variables FFI_CFLAGS
14129 and FFI_LIBS to avoid the need to call pkg-config.
14130 See the pkg-config man page for more details.
14131
14132 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14133 See \`config.log' for more details" "$LINENO" 5; }
14134 else
14135         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
14136         FFI_LIBS=$pkg_cv_FFI_LIBS
14137         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138 $as_echo "yes" >&6; }
14139
14140 fi
14141
14142
14143
14144
14145
14146 pkg_failed=no
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
14148 $as_echo_n "checking for GIO... " >&6; }
14149
14150 if test -n "$GIO_CFLAGS"; then
14151     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
14152  elif test -n "$PKG_CONFIG"; then
14153     if test -n "$PKG_CONFIG" && \
14154     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14155   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14156   ac_status=$?
14157   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14158   test $ac_status = 0; }; then
14159   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
14160                       test "x$?" != "x0" && pkg_failed=yes
14161 else
14162   pkg_failed=yes
14163 fi
14164  else
14165     pkg_failed=untried
14166 fi
14167 if test -n "$GIO_LIBS"; then
14168     pkg_cv_GIO_LIBS="$GIO_LIBS"
14169  elif test -n "$PKG_CONFIG"; then
14170     if test -n "$PKG_CONFIG" && \
14171     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
14172   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
14173   ac_status=$?
14174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175   test $ac_status = 0; }; then
14176   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
14177                       test "x$?" != "x0" && pkg_failed=yes
14178 else
14179   pkg_failed=yes
14180 fi
14181  else
14182     pkg_failed=untried
14183 fi
14184
14185
14186
14187 if test $pkg_failed = yes; then
14188         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14189 $as_echo "no" >&6; }
14190
14191 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14192         _pkg_short_errors_supported=yes
14193 else
14194         _pkg_short_errors_supported=no
14195 fi
14196         if test $_pkg_short_errors_supported = yes; then
14197                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14198         else
14199                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
14200         fi
14201         # Put the nasty error message in config.log where it belongs
14202         echo "$GIO_PKG_ERRORS" >&5
14203
14204         as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
14205
14206 $GIO_PKG_ERRORS
14207
14208 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14209 installed software in a non-standard prefix.
14210
14211 Alternatively, you may set the environment variables GIO_CFLAGS
14212 and GIO_LIBS to avoid the need to call pkg-config.
14213 See the pkg-config man page for more details." "$LINENO" 5
14214 elif test $pkg_failed = untried; then
14215         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14217         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14219 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14220 is in your PATH or set the PKG_CONFIG environment variable to the full
14221 path to pkg-config.
14222
14223 Alternatively, you may set the environment variables GIO_CFLAGS
14224 and GIO_LIBS to avoid the need to call pkg-config.
14225 See the pkg-config man page for more details.
14226
14227 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14228 See \`config.log' for more details" "$LINENO" 5; }
14229 else
14230         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
14231         GIO_LIBS=$pkg_cv_GIO_LIBS
14232         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14233 $as_echo "yes" >&6; }
14234
14235 fi
14236
14237 # Check whether --enable-cairo was given.
14238 if test "${enable_cairo+set}" = set; then :
14239   enableval=$enable_cairo; enable_cairo=$enableval
14240 else
14241   enable_cairo=yes
14242 fi
14243
14244
14245
14246 pkg_failed=no
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
14248 $as_echo_n "checking for GI... " >&6; }
14249
14250 if test -n "$GI_CFLAGS"; then
14251     pkg_cv_GI_CFLAGS="$GI_CFLAGS"
14252  elif test -n "$PKG_CONFIG"; then
14253     if test -n "$PKG_CONFIG" && \
14254     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14255     gobject-introspection-1.0 >= 1.46.0
14256 \""; } >&5
14257   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14258     gobject-introspection-1.0 >= 1.46.0
14259 ") 2>&5
14260   ac_status=$?
14261   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14262   test $ac_status = 0; }; then
14263   pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
14264     gobject-introspection-1.0 >= 1.46.0
14265 " 2>/dev/null`
14266                       test "x$?" != "x0" && pkg_failed=yes
14267 else
14268   pkg_failed=yes
14269 fi
14270  else
14271     pkg_failed=untried
14272 fi
14273 if test -n "$GI_LIBS"; then
14274     pkg_cv_GI_LIBS="$GI_LIBS"
14275  elif test -n "$PKG_CONFIG"; then
14276     if test -n "$PKG_CONFIG" && \
14277     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
14278     gobject-introspection-1.0 >= 1.46.0
14279 \""; } >&5
14280   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
14281     gobject-introspection-1.0 >= 1.46.0
14282 ") 2>&5
14283   ac_status=$?
14284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14285   test $ac_status = 0; }; then
14286   pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
14287     gobject-introspection-1.0 >= 1.46.0
14288 " 2>/dev/null`
14289                       test "x$?" != "x0" && pkg_failed=yes
14290 else
14291   pkg_failed=yes
14292 fi
14293  else
14294     pkg_failed=untried
14295 fi
14296
14297
14298
14299 if test $pkg_failed = yes; then
14300         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14302
14303 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14304         _pkg_short_errors_supported=yes
14305 else
14306         _pkg_short_errors_supported=no
14307 fi
14308         if test $_pkg_short_errors_supported = yes; then
14309                 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14310     gobject-introspection-1.0 >= 1.46.0
14311 " 2>&1`
14312         else
14313                 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
14314     gobject-introspection-1.0 >= 1.46.0
14315 " 2>&1`
14316         fi
14317         # Put the nasty error message in config.log where it belongs
14318         echo "$GI_PKG_ERRORS" >&5
14319
14320         as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
14321     gobject-introspection-1.0 >= 1.46.0
14322 ) were not met:
14323
14324 $GI_PKG_ERRORS
14325
14326 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14327 installed software in a non-standard prefix.
14328
14329 Alternatively, you may set the environment variables GI_CFLAGS
14330 and GI_LIBS to avoid the need to call pkg-config.
14331 See the pkg-config man page for more details." "$LINENO" 5
14332 elif test $pkg_failed = untried; then
14333         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14334 $as_echo "no" >&6; }
14335         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14337 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14338 is in your PATH or set the PKG_CONFIG environment variable to the full
14339 path to pkg-config.
14340
14341 Alternatively, you may set the environment variables GI_CFLAGS
14342 and GI_LIBS to avoid the need to call pkg-config.
14343 See the pkg-config man page for more details.
14344
14345 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14346 See \`config.log' for more details" "$LINENO" 5; }
14347 else
14348         GI_CFLAGS=$pkg_cv_GI_CFLAGS
14349         GI_LIBS=$pkg_cv_GI_LIBS
14350         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14351 $as_echo "yes" >&6; }
14352
14353 fi
14354
14355
14356
14357
14358                 # Check whether --enable-introspection was given.
14359 if test "${enable_introspection+set}" = set; then :
14360   enableval=$enable_introspection;
14361 else
14362   enable_introspection=auto
14363 fi
14364
14365
14366     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
14367 $as_echo_n "checking for gobject-introspection... " >&6; }
14368
14369         case $enable_introspection in #(
14370   no) :
14371             found_introspection="no (disabled, use --enable-introspection to enable)"
14372      ;; #(
14373       yes) :
14374             if test -n "$PKG_CONFIG" && \
14375     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
14376   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
14377   ac_status=$?
14378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14379   test $ac_status = 0; }; then
14380   :
14381 else
14382   as_fn_error $? "gobject-introspection-1.0 is not installed" "$LINENO" 5
14383 fi
14384         if test -n "$PKG_CONFIG" && \
14385     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.46.0\""; } >&5
14386   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.46.0") 2>&5
14387   ac_status=$?
14388   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14389   test $ac_status = 0; }; then
14390   found_introspection=yes
14391 else
14392   as_fn_error $? "You need to have gobject-introspection >= 1.46.0 installed to build pygobject" "$LINENO" 5
14393 fi
14394      ;; #(
14395       auto) :
14396             if test -n "$PKG_CONFIG" && \
14397     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 1.46.0\""; } >&5
14398   ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 1.46.0") 2>&5
14399   ac_status=$?
14400   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14401   test $ac_status = 0; }; then
14402   found_introspection=yes
14403 else
14404   found_introspection=no
14405 fi
14406                 enable_introspection=$found_introspection
14407      ;; #(
14408   *) :
14409                 as_fn_error $? "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
14410      ;;
14411 esac
14412     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14413 $as_echo "$found_introspection" >&6; }
14414
14415     INTROSPECTION_SCANNER=
14416     INTROSPECTION_COMPILER=
14417     INTROSPECTION_GENERATE=
14418     INTROSPECTION_GIRDIR=
14419     INTROSPECTION_TYPELIBDIR=
14420     if test "x$found_introspection" = "xyes"; then
14421        INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14422        INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14423        INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14424        INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
14425        INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
14426        INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14427        INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14428        INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14429     fi
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439      if test "x$found_introspection" = "xyes"; then
14440   HAVE_INTROSPECTION_TRUE=
14441   HAVE_INTROSPECTION_FALSE='#'
14442 else
14443   HAVE_INTROSPECTION_TRUE='#'
14444   HAVE_INTROSPECTION_FALSE=
14445 fi
14446
14447
14448
14449
14450 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
14451
14452
14453 if test "$enable_cairo" != no; then
14454
14455 pkg_failed=no
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
14457 $as_echo_n "checking for CAIRO... " >&6; }
14458
14459 if test -n "$CAIRO_CFLAGS"; then
14460     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
14461  elif test -n "$PKG_CONFIG"; then
14462     if test -n "$PKG_CONFIG" && \
14463     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14464   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14465   ac_status=$?
14466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14467   test $ac_status = 0; }; then
14468   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
14469                       test "x$?" != "x0" && pkg_failed=yes
14470 else
14471   pkg_failed=yes
14472 fi
14473  else
14474     pkg_failed=untried
14475 fi
14476 if test -n "$CAIRO_LIBS"; then
14477     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
14478  elif test -n "$PKG_CONFIG"; then
14479     if test -n "$PKG_CONFIG" && \
14480     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
14481   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
14482   ac_status=$?
14483   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14484   test $ac_status = 0; }; then
14485   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
14486                       test "x$?" != "x0" && pkg_failed=yes
14487 else
14488   pkg_failed=yes
14489 fi
14490  else
14491     pkg_failed=untried
14492 fi
14493
14494
14495
14496 if test $pkg_failed = yes; then
14497         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14498 $as_echo "no" >&6; }
14499
14500 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14501         _pkg_short_errors_supported=yes
14502 else
14503         _pkg_short_errors_supported=no
14504 fi
14505         if test $_pkg_short_errors_supported = yes; then
14506                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14507         else
14508                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14509         fi
14510         # Put the nasty error message in config.log where it belongs
14511         echo "$CAIRO_PKG_ERRORS" >&5
14512
14513         as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14514
14515 $CAIRO_PKG_ERRORS
14516
14517 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14518 installed software in a non-standard prefix.
14519
14520 Alternatively, you may set the environment variables CAIRO_CFLAGS
14521 and CAIRO_LIBS to avoid the need to call pkg-config.
14522 See the pkg-config man page for more details." "$LINENO" 5
14523 elif test $pkg_failed = untried; then
14524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14525 $as_echo "no" >&6; }
14526         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14528 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14529 is in your PATH or set the PKG_CONFIG environment variable to the full
14530 path to pkg-config.
14531
14532 Alternatively, you may set the environment variables CAIRO_CFLAGS
14533 and CAIRO_LIBS to avoid the need to call pkg-config.
14534 See the pkg-config man page for more details.
14535
14536 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14537 See \`config.log' for more details" "$LINENO" 5; }
14538 else
14539         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14540         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14541         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14542 $as_echo "yes" >&6; }
14543
14544 fi
14545
14546     if test $build_py3k = true; then
14547
14548 pkg_failed=no
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14550 $as_echo_n "checking for PYCAIRO... " >&6; }
14551
14552 if test -n "$PYCAIRO_CFLAGS"; then
14553     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14554  elif test -n "$PKG_CONFIG"; then
14555     if test -n "$PKG_CONFIG" && \
14556     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.11.1
14557         \""; } >&5
14558   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.11.1
14559         ") 2>&5
14560   ac_status=$?
14561   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562   test $ac_status = 0; }; then
14563   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.11.1
14564         " 2>/dev/null`
14565                       test "x$?" != "x0" && pkg_failed=yes
14566 else
14567   pkg_failed=yes
14568 fi
14569  else
14570     pkg_failed=untried
14571 fi
14572 if test -n "$PYCAIRO_LIBS"; then
14573     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14574  elif test -n "$PKG_CONFIG"; then
14575     if test -n "$PKG_CONFIG" && \
14576     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.11.1
14577         \""; } >&5
14578   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.11.1
14579         ") 2>&5
14580   ac_status=$?
14581   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14582   test $ac_status = 0; }; then
14583   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.11.1
14584         " 2>/dev/null`
14585                       test "x$?" != "x0" && pkg_failed=yes
14586 else
14587   pkg_failed=yes
14588 fi
14589  else
14590     pkg_failed=untried
14591 fi
14592
14593
14594
14595 if test $pkg_failed = yes; then
14596         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14597 $as_echo "no" >&6; }
14598
14599 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14600         _pkg_short_errors_supported=yes
14601 else
14602         _pkg_short_errors_supported=no
14603 fi
14604         if test $_pkg_short_errors_supported = yes; then
14605                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.11.1
14606         " 2>&1`
14607         else
14608                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.11.1
14609         " 2>&1`
14610         fi
14611         # Put the nasty error message in config.log where it belongs
14612         echo "$PYCAIRO_PKG_ERRORS" >&5
14613
14614         as_fn_error $? "Package requirements (py3cairo >= 1.11.1
14615         ) were not met:
14616
14617 $PYCAIRO_PKG_ERRORS
14618
14619 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14620 installed software in a non-standard prefix.
14621
14622 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14623 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14624 See the pkg-config man page for more details." "$LINENO" 5
14625 elif test $pkg_failed = untried; then
14626         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14627 $as_echo "no" >&6; }
14628         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14630 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14631 is in your PATH or set the PKG_CONFIG environment variable to the full
14632 path to pkg-config.
14633
14634 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14635 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14636 See the pkg-config man page for more details.
14637
14638 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14639 See \`config.log' for more details" "$LINENO" 5; }
14640 else
14641         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14642         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14643         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644 $as_echo "yes" >&6; }
14645
14646 fi
14647     else
14648
14649 pkg_failed=no
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14651 $as_echo_n "checking for PYCAIRO... " >&6; }
14652
14653 if test -n "$PYCAIRO_CFLAGS"; then
14654     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14655  elif test -n "$PKG_CONFIG"; then
14656     if test -n "$PKG_CONFIG" && \
14657     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.11.1
14658         \""; } >&5
14659   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.11.1
14660         ") 2>&5
14661   ac_status=$?
14662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14663   test $ac_status = 0; }; then
14664   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.11.1
14665         " 2>/dev/null`
14666                       test "x$?" != "x0" && pkg_failed=yes
14667 else
14668   pkg_failed=yes
14669 fi
14670  else
14671     pkg_failed=untried
14672 fi
14673 if test -n "$PYCAIRO_LIBS"; then
14674     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14675  elif test -n "$PKG_CONFIG"; then
14676     if test -n "$PKG_CONFIG" && \
14677     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.11.1
14678         \""; } >&5
14679   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.11.1
14680         ") 2>&5
14681   ac_status=$?
14682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683   test $ac_status = 0; }; then
14684   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.11.1
14685         " 2>/dev/null`
14686                       test "x$?" != "x0" && pkg_failed=yes
14687 else
14688   pkg_failed=yes
14689 fi
14690  else
14691     pkg_failed=untried
14692 fi
14693
14694
14695
14696 if test $pkg_failed = yes; then
14697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14698 $as_echo "no" >&6; }
14699
14700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14701         _pkg_short_errors_supported=yes
14702 else
14703         _pkg_short_errors_supported=no
14704 fi
14705         if test $_pkg_short_errors_supported = yes; then
14706                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.11.1
14707         " 2>&1`
14708         else
14709                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.11.1
14710         " 2>&1`
14711         fi
14712         # Put the nasty error message in config.log where it belongs
14713         echo "$PYCAIRO_PKG_ERRORS" >&5
14714
14715         as_fn_error $? "Package requirements (pycairo >= 1.11.1
14716         ) were not met:
14717
14718 $PYCAIRO_PKG_ERRORS
14719
14720 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14721 installed software in a non-standard prefix.
14722
14723 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14724 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14725 See the pkg-config man page for more details." "$LINENO" 5
14726 elif test $pkg_failed = untried; then
14727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14728 $as_echo "no" >&6; }
14729         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14731 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14732 is in your PATH or set the PKG_CONFIG environment variable to the full
14733 path to pkg-config.
14734
14735 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14736 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14737 See the pkg-config man page for more details.
14738
14739 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14740 See \`config.log' for more details" "$LINENO" 5; }
14741 else
14742         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14743         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14744         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14745 $as_echo "yes" >&6; }
14746
14747 fi
14748     fi
14749 fi
14750  if test "$enable_cairo" = "yes"; then
14751   ENABLE_CAIRO_TRUE=
14752   ENABLE_CAIRO_FALSE='#'
14753 else
14754   ENABLE_CAIRO_TRUE='#'
14755   ENABLE_CAIRO_FALSE=
14756 fi
14757
14758
14759
14760 # Check whether --with-common was given.
14761 if test "${with_common+set}" = set; then :
14762   withval=$with_common; with_common=$enableval
14763 else
14764   with_common=yes
14765 fi
14766
14767  if test "$with_common" = "yes"; then
14768   WITH_COMMON_TRUE=
14769   WITH_COMMON_FALSE='#'
14770 else
14771   WITH_COMMON_TRUE='#'
14772   WITH_COMMON_FALSE=
14773 fi
14774
14775
14776 # Disable -Werror always, see
14777 # https://mail.gnome.org/archives/desktop-devel-list/2017-April/msg00009.html
14778
14779     # C support is enabled by default.
14780
14781
14782     # Only enable C++ support if AC_PROG_CXX is called. The redefinition of
14783     # AC_PROG_CXX is so that a fatal error is emitted if this macro is called
14784     # before AC_PROG_CXX, which would otherwise cause no C++ warnings to be
14785     # checked.
14786
14787
14788
14789
14790     # Default value for IS-RELEASE is $ax_is_release
14791     ax_compiler_flags_is_release=yes
14792
14793     # Check whether --enable-compile-warnings was given.
14794 if test "${enable_compile_warnings+set}" = set; then :
14795   enableval=$enable_compile_warnings;
14796 else
14797   if test "$ax_compiler_flags_is_release" = "yes"; then :
14798   enable_compile_warnings="yes"
14799 else
14800   enable_compile_warnings="error"
14801 fi
14802 fi
14803
14804     # Check whether --enable-Werror was given.
14805 if test "${enable_Werror+set}" = set; then :
14806   enableval=$enable_Werror;
14807 else
14808   enable_Werror=maybe
14809 fi
14810
14811
14812     # Return the user's chosen warning level
14813     if test "$enable_Werror" = "no" -a \
14814                 "$enable_compile_warnings" = "error"; then :
14815
14816         enable_compile_warnings="yes"
14817
14818 fi
14819
14820     ax_enable_compile_warnings=$enable_compile_warnings
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831     # Variable names
14832
14833
14834     ac_ext=c
14835 ac_cpp='$CPP $CPPFLAGS'
14836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14839
14840
14841     # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
14842     # flags, otherwise they are always appended to the warn_cflags variable, and
14843     # Clang warns on them for every compilation unit.
14844     # If this is passed to GCC, it will explode, so the flag must be enabled
14845     # conditionally.
14846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
14847 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
14848 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
14849   $as_echo_n "(cached) " >&6
14850 else
14851
14852   ax_check_save_flags=$CFLAGS
14853   CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
14854   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h.  */
14856
14857 int
14858 main ()
14859 {
14860
14861   ;
14862   return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_compile "$LINENO"; then :
14866   ax_cv_check_cflags___Werror_unknown_warning_option=yes
14867 else
14868   ax_cv_check_cflags___Werror_unknown_warning_option=no
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14871   CFLAGS=$ax_check_save_flags
14872 fi
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
14874 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
14875 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
14876
14877         ax_compiler_flags_test="-Werror=unknown-warning-option"
14878
14879 else
14880
14881         ax_compiler_flags_test=""
14882
14883 fi
14884
14885
14886     # Check that -Wno-suggest-attribute=format is supported
14887     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-suggest-attribute=format" >&5
14888 $as_echo_n "checking whether C compiler accepts -Wno-suggest-attribute=format... " >&6; }
14889 if ${ax_cv_check_cflags___Wno_suggest_attribute_format+:} false; then :
14890   $as_echo_n "(cached) " >&6
14891 else
14892
14893   ax_check_save_flags=$CFLAGS
14894   CFLAGS="$CFLAGS  -Wno-suggest-attribute=format"
14895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h.  */
14897
14898 int
14899 main ()
14900 {
14901
14902   ;
14903   return 0;
14904 }
14905 _ACEOF
14906 if ac_fn_c_try_compile "$LINENO"; then :
14907   ax_cv_check_cflags___Wno_suggest_attribute_format=yes
14908 else
14909   ax_cv_check_cflags___Wno_suggest_attribute_format=no
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14912   CFLAGS=$ax_check_save_flags
14913 fi
14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_suggest_attribute_format" >&5
14915 $as_echo "$ax_cv_check_cflags___Wno_suggest_attribute_format" >&6; }
14916 if test "x$ax_cv_check_cflags___Wno_suggest_attribute_format" = xyes; then :
14917
14918         ax_compiler_no_suggest_attribute_flags="-Wno-suggest-attribute=format"
14919
14920 else
14921
14922         ax_compiler_no_suggest_attribute_flags=""
14923
14924 fi
14925
14926
14927     # Base flags
14928
14929
14930
14931
14932 for flag in          -fno-strict-aliasing              ; do
14933   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14935 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14936 if eval \${$as_CACHEVAR+:} false; then :
14937   $as_echo_n "(cached) " >&6
14938 else
14939
14940   ax_check_save_flags=$CFLAGS
14941   CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
14942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14943 /* end confdefs.h.  */
14944
14945 int
14946 main ()
14947 {
14948
14949   ;
14950   return 0;
14951 }
14952 _ACEOF
14953 if ac_fn_c_try_compile "$LINENO"; then :
14954   eval "$as_CACHEVAR=yes"
14955 else
14956   eval "$as_CACHEVAR=no"
14957 fi
14958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959   CFLAGS=$ax_check_save_flags
14960 fi
14961 eval ac_res=\$$as_CACHEVAR
14962                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14963 $as_echo "$ac_res" >&6; }
14964 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
14965
14966 if ${WARN_CFLAGS+:} false; then :
14967
14968   case " $WARN_CFLAGS " in #(
14969   *" $flag "*) :
14970     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
14971   (: WARN_CFLAGS already contains $flag) 2>&5
14972   ac_status=$?
14973   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14974   test $ac_status = 0; } ;; #(
14975   *) :
14976
14977      as_fn_append WARN_CFLAGS " $flag"
14978      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14979   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14980   ac_status=$?
14981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14982   test $ac_status = 0; }
14983      ;;
14984 esac
14985
14986 else
14987
14988   WARN_CFLAGS=$flag
14989   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
14990   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
14991   ac_status=$?
14992   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14993   test $ac_status = 0; }
14994
14995 fi
14996
14997 else
14998   :
14999 fi
15000
15001 done
15002
15003
15004     if test "$ax_enable_compile_warnings" != "no"; then :
15005
15006         # "yes" flags
15007
15008
15009
15010
15011 for flag in              -Wall             -Wextra             -Wundef             -Wnested-externs             -Wwrite-strings             -Wpointer-arith             -Wmissing-declarations             -Wmissing-prototypes             -Wstrict-prototypes             -Wredundant-decls             -Wno-unused-parameter             -Wno-missing-field-initializers             -Wdeclaration-after-statement             -Wformat=2             -Wold-style-definition             -Wcast-align             -Wformat-nonliteral             -Wformat-security             -Wsign-compare             -Wstrict-aliasing             -Wshadow             -Winline             -Wpacked             -Wmissing-format-attribute             -Wmissing-noreturn             -Winit-self             -Wredundant-decls             -Wmissing-include-dirs             -Wunused-but-set-variable             -Warray-bounds             -Wimplicit-function-declaration             -Wreturn-type             -Wswitch-enum             -Wswitch-default                                                                ; do
15012   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15014 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15015 if eval \${$as_CACHEVAR+:} false; then :
15016   $as_echo_n "(cached) " >&6
15017 else
15018
15019   ax_check_save_flags=$CFLAGS
15020   CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
15021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15023
15024 int
15025 main ()
15026 {
15027
15028   ;
15029   return 0;
15030 }
15031 _ACEOF
15032 if ac_fn_c_try_compile "$LINENO"; then :
15033   eval "$as_CACHEVAR=yes"
15034 else
15035   eval "$as_CACHEVAR=no"
15036 fi
15037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15038   CFLAGS=$ax_check_save_flags
15039 fi
15040 eval ac_res=\$$as_CACHEVAR
15041                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15042 $as_echo "$ac_res" >&6; }
15043 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15044
15045 if ${WARN_CFLAGS+:} false; then :
15046
15047   case " $WARN_CFLAGS " in #(
15048   *" $flag "*) :
15049     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
15050   (: WARN_CFLAGS already contains $flag) 2>&5
15051   ac_status=$?
15052   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15053   test $ac_status = 0; } ;; #(
15054   *) :
15055
15056      as_fn_append WARN_CFLAGS " $flag"
15057      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15058   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15059   ac_status=$?
15060   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15061   test $ac_status = 0; }
15062      ;;
15063 esac
15064
15065 else
15066
15067   WARN_CFLAGS=$flag
15068   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15069   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15070   ac_status=$?
15071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15072   test $ac_status = 0; }
15073
15074 fi
15075
15076 else
15077   :
15078 fi
15079
15080 done
15081
15082
15083 fi
15084     if test "$ax_enable_compile_warnings" = "error"; then :
15085
15086         # "error" flags; -Werror has to be appended unconditionally because
15087         # it's not possible to test for
15088         #
15089         # suggest-attribute=format is disabled because it gives too many false
15090         # positives
15091
15092 if ${WARN_CFLAGS+:} false; then :
15093
15094   case " $WARN_CFLAGS " in #(
15095   *" -Werror "*) :
15096     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains -Werror"; } >&5
15097   (: WARN_CFLAGS already contains -Werror) 2>&5
15098   ac_status=$?
15099   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15100   test $ac_status = 0; } ;; #(
15101   *) :
15102
15103      as_fn_append WARN_CFLAGS " -Werror"
15104      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15105   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15106   ac_status=$?
15107   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15108   test $ac_status = 0; }
15109      ;;
15110 esac
15111
15112 else
15113
15114   WARN_CFLAGS=-Werror
15115   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15116   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15117   ac_status=$?
15118   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15119   test $ac_status = 0; }
15120
15121 fi
15122
15123
15124
15125
15126
15127
15128 for flag in              $ax_compiler_no_suggest_attribute_flags         ; do
15129   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15131 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15132 if eval \${$as_CACHEVAR+:} false; then :
15133   $as_echo_n "(cached) " >&6
15134 else
15135
15136   ax_check_save_flags=$CFLAGS
15137   CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
15138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h.  */
15140
15141 int
15142 main ()
15143 {
15144
15145   ;
15146   return 0;
15147 }
15148 _ACEOF
15149 if ac_fn_c_try_compile "$LINENO"; then :
15150   eval "$as_CACHEVAR=yes"
15151 else
15152   eval "$as_CACHEVAR=no"
15153 fi
15154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155   CFLAGS=$ax_check_save_flags
15156 fi
15157 eval ac_res=\$$as_CACHEVAR
15158                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15159 $as_echo "$ac_res" >&6; }
15160 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15161
15162 if ${WARN_CFLAGS+:} false; then :
15163
15164   case " $WARN_CFLAGS " in #(
15165   *" $flag "*) :
15166     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
15167   (: WARN_CFLAGS already contains $flag) 2>&5
15168   ac_status=$?
15169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15170   test $ac_status = 0; } ;; #(
15171   *) :
15172
15173      as_fn_append WARN_CFLAGS " $flag"
15174      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15175   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15176   ac_status=$?
15177   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15178   test $ac_status = 0; }
15179      ;;
15180 esac
15181
15182 else
15183
15184   WARN_CFLAGS=$flag
15185   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15186   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15187   ac_status=$?
15188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189   test $ac_status = 0; }
15190
15191 fi
15192
15193 else
15194   :
15195 fi
15196
15197 done
15198
15199
15200 fi
15201
15202     # In the flags below, when disabling specific flags, always add *both*
15203     # -Wno-foo and -Wno-error=foo. This fixes the situation where (for example)
15204     # we enable -Werror, disable a flag, and a build bot passes CFLAGS=-Wall,
15205     # which effectively turns that flag back on again as an error.
15206     for flag in $WARN_CFLAGS; do
15207         case $flag in #(
15208   -Wno-*=*) :
15209      ;; #(
15210   -Wno-*) :
15211
15212
15213
15214
15215
15216 for flag in -Wno-error=$($as_echo $flag | $SED 's/^-Wno-//'); do
15217   as_CACHEVAR=`$as_echo "ax_cv_check_cflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15219 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15220 if eval \${$as_CACHEVAR+:} false; then :
15221   $as_echo_n "(cached) " >&6
15222 else
15223
15224   ax_check_save_flags=$CFLAGS
15225   CFLAGS="$CFLAGS $ax_compiler_flags_test $flag"
15226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15227 /* end confdefs.h.  */
15228
15229 int
15230 main ()
15231 {
15232
15233   ;
15234   return 0;
15235 }
15236 _ACEOF
15237 if ac_fn_c_try_compile "$LINENO"; then :
15238   eval "$as_CACHEVAR=yes"
15239 else
15240   eval "$as_CACHEVAR=no"
15241 fi
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15243   CFLAGS=$ax_check_save_flags
15244 fi
15245 eval ac_res=\$$as_CACHEVAR
15246                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15247 $as_echo "$ac_res" >&6; }
15248 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15249
15250 if ${WARN_CFLAGS+:} false; then :
15251
15252   case " $WARN_CFLAGS " in #(
15253   *" $flag "*) :
15254     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS already contains \$flag"; } >&5
15255   (: WARN_CFLAGS already contains $flag) 2>&5
15256   ac_status=$?
15257   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15258   test $ac_status = 0; } ;; #(
15259   *) :
15260
15261      as_fn_append WARN_CFLAGS " $flag"
15262      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15263   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15264   ac_status=$?
15265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266   test $ac_status = 0; }
15267      ;;
15268 esac
15269
15270 else
15271
15272   WARN_CFLAGS=$flag
15273   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_CFLAGS=\"\$WARN_CFLAGS\""; } >&5
15274   (: WARN_CFLAGS="$WARN_CFLAGS") 2>&5
15275   ac_status=$?
15276   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15277   test $ac_status = 0; }
15278
15279 fi
15280
15281 else
15282   :
15283 fi
15284
15285 done
15286
15287                  ;; #(
15288   *) :
15289      ;;
15290 esac
15291     done
15292
15293     ac_ext=c
15294 ac_cpp='$CPP $CPPFLAGS'
15295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15298
15299
15300     # Substitute the variables
15301
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314     # Variable names
15315
15316
15317     # Always pass -Werror=unknown-warning-option to get Clang to fail on bad
15318     # flags, otherwise they are always appended to the warn_ldflags variable,
15319     # and Clang warns on them for every compilation unit.
15320     # If this is passed to GCC, it will explode, so the flag must be enabled
15321     # conditionally.
15322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Werror=unknown-warning-option" >&5
15323 $as_echo_n "checking whether C compiler accepts -Werror=unknown-warning-option... " >&6; }
15324 if ${ax_cv_check_cflags___Werror_unknown_warning_option+:} false; then :
15325   $as_echo_n "(cached) " >&6
15326 else
15327
15328   ax_check_save_flags=$CFLAGS
15329   CFLAGS="$CFLAGS  -Werror=unknown-warning-option"
15330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15331 /* end confdefs.h.  */
15332
15333 int
15334 main ()
15335 {
15336
15337   ;
15338   return 0;
15339 }
15340 _ACEOF
15341 if ac_fn_c_try_compile "$LINENO"; then :
15342   ax_cv_check_cflags___Werror_unknown_warning_option=yes
15343 else
15344   ax_cv_check_cflags___Werror_unknown_warning_option=no
15345 fi
15346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15347   CFLAGS=$ax_check_save_flags
15348 fi
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Werror_unknown_warning_option" >&5
15350 $as_echo "$ax_cv_check_cflags___Werror_unknown_warning_option" >&6; }
15351 if test "x$ax_cv_check_cflags___Werror_unknown_warning_option" = xyes; then :
15352
15353         ax_compiler_flags_test="-Werror=unknown-warning-option"
15354
15355 else
15356
15357         ax_compiler_flags_test=""
15358
15359 fi
15360
15361
15362     # macOS linker does not have --as-needed
15363     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--no-as-needed" >&5
15364 $as_echo_n "checking whether the linker accepts -Wl,--no-as-needed... " >&6; }
15365 if ${ax_cv_check_ldflags___Wl___no_as_needed+:} false; then :
15366   $as_echo_n "(cached) " >&6
15367 else
15368
15369   ax_check_save_flags=$LDFLAGS
15370   LDFLAGS="$LDFLAGS  -Wl,--no-as-needed"
15371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15372 /* end confdefs.h.  */
15373
15374 int
15375 main ()
15376 {
15377
15378   ;
15379   return 0;
15380 }
15381 _ACEOF
15382 if ac_fn_c_try_link "$LINENO"; then :
15383   ax_cv_check_ldflags___Wl___no_as_needed=yes
15384 else
15385   ax_cv_check_ldflags___Wl___no_as_needed=no
15386 fi
15387 rm -f core conftest.err conftest.$ac_objext \
15388     conftest$ac_exeext conftest.$ac_ext
15389   LDFLAGS=$ax_check_save_flags
15390 fi
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___no_as_needed" >&5
15392 $as_echo "$ax_cv_check_ldflags___Wl___no_as_needed" >&6; }
15393 if test "x$ax_cv_check_ldflags___Wl___no_as_needed" = xyes; then :
15394
15395         ax_compiler_flags_as_needed_option="-Wl,--no-as-needed"
15396
15397 else
15398
15399         ax_compiler_flags_as_needed_option=""
15400
15401 fi
15402
15403
15404     # macOS linker speaks with a different accent
15405     ax_compiler_flags_fatal_warnings_option=""
15406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,--fatal-warnings" >&5
15407 $as_echo_n "checking whether the linker accepts -Wl,--fatal-warnings... " >&6; }
15408 if ${ax_cv_check_ldflags___Wl___fatal_warnings+:} false; then :
15409   $as_echo_n "(cached) " >&6
15410 else
15411
15412   ax_check_save_flags=$LDFLAGS
15413   LDFLAGS="$LDFLAGS  -Wl,--fatal-warnings"
15414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15415 /* end confdefs.h.  */
15416
15417 int
15418 main ()
15419 {
15420
15421   ;
15422   return 0;
15423 }
15424 _ACEOF
15425 if ac_fn_c_try_link "$LINENO"; then :
15426   ax_cv_check_ldflags___Wl___fatal_warnings=yes
15427 else
15428   ax_cv_check_ldflags___Wl___fatal_warnings=no
15429 fi
15430 rm -f core conftest.err conftest.$ac_objext \
15431     conftest$ac_exeext conftest.$ac_ext
15432   LDFLAGS=$ax_check_save_flags
15433 fi
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl___fatal_warnings" >&5
15435 $as_echo "$ax_cv_check_ldflags___Wl___fatal_warnings" >&6; }
15436 if test "x$ax_cv_check_ldflags___Wl___fatal_warnings" = xyes; then :
15437
15438         ax_compiler_flags_fatal_warnings_option="-Wl,--fatal-warnings"
15439
15440 else
15441   :
15442 fi
15443
15444     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts -Wl,-fatal_warnings" >&5
15445 $as_echo_n "checking whether the linker accepts -Wl,-fatal_warnings... " >&6; }
15446 if ${ax_cv_check_ldflags___Wl__fatal_warnings+:} false; then :
15447   $as_echo_n "(cached) " >&6
15448 else
15449
15450   ax_check_save_flags=$LDFLAGS
15451   LDFLAGS="$LDFLAGS  -Wl,-fatal_warnings"
15452   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15453 /* end confdefs.h.  */
15454
15455 int
15456 main ()
15457 {
15458
15459   ;
15460   return 0;
15461 }
15462 _ACEOF
15463 if ac_fn_c_try_link "$LINENO"; then :
15464   ax_cv_check_ldflags___Wl__fatal_warnings=yes
15465 else
15466   ax_cv_check_ldflags___Wl__fatal_warnings=no
15467 fi
15468 rm -f core conftest.err conftest.$ac_objext \
15469     conftest$ac_exeext conftest.$ac_ext
15470   LDFLAGS=$ax_check_save_flags
15471 fi
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_ldflags___Wl__fatal_warnings" >&5
15473 $as_echo "$ax_cv_check_ldflags___Wl__fatal_warnings" >&6; }
15474 if test "x$ax_cv_check_ldflags___Wl__fatal_warnings" = xyes; then :
15475
15476         ax_compiler_flags_fatal_warnings_option="-Wl,-fatal_warnings"
15477
15478 else
15479   :
15480 fi
15481
15482
15483     # Base flags
15484
15485
15486
15487
15488 for flag in          $ax_compiler_flags_as_needed_option              ; do
15489   as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15491 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
15492 if eval \${$as_CACHEVAR+:} false; then :
15493   $as_echo_n "(cached) " >&6
15494 else
15495
15496   ax_check_save_flags=$LDFLAGS
15497   LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h.  */
15500
15501 int
15502 main ()
15503 {
15504
15505   ;
15506   return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_link "$LINENO"; then :
15510   eval "$as_CACHEVAR=yes"
15511 else
15512   eval "$as_CACHEVAR=no"
15513 fi
15514 rm -f core conftest.err conftest.$ac_objext \
15515     conftest$ac_exeext conftest.$ac_ext
15516   LDFLAGS=$ax_check_save_flags
15517 fi
15518 eval ac_res=\$$as_CACHEVAR
15519                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15520 $as_echo "$ac_res" >&6; }
15521 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15522
15523 if ${WARN_LDFLAGS+:} false; then :
15524
15525   case " $WARN_LDFLAGS " in #(
15526   *" $flag "*) :
15527     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15528   (: WARN_LDFLAGS already contains $flag) 2>&5
15529   ac_status=$?
15530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15531   test $ac_status = 0; } ;; #(
15532   *) :
15533
15534      as_fn_append WARN_LDFLAGS " $flag"
15535      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15536   (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15537   ac_status=$?
15538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15539   test $ac_status = 0; }
15540      ;;
15541 esac
15542
15543 else
15544
15545   WARN_LDFLAGS=$flag
15546   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15547   (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15548   ac_status=$?
15549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550   test $ac_status = 0; }
15551
15552 fi
15553
15554 else
15555   :
15556 fi
15557
15558 done
15559
15560
15561     if test "$ax_enable_compile_warnings" != "no"; then :
15562
15563         # "yes" flags
15564
15565
15566
15567
15568 for flag in       ; do
15569   as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15571 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
15572 if eval \${$as_CACHEVAR+:} false; then :
15573   $as_echo_n "(cached) " >&6
15574 else
15575
15576   ax_check_save_flags=$LDFLAGS
15577   LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15579 /* end confdefs.h.  */
15580
15581 int
15582 main ()
15583 {
15584
15585   ;
15586   return 0;
15587 }
15588 _ACEOF
15589 if ac_fn_c_try_link "$LINENO"; then :
15590   eval "$as_CACHEVAR=yes"
15591 else
15592   eval "$as_CACHEVAR=no"
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext \
15595     conftest$ac_exeext conftest.$ac_ext
15596   LDFLAGS=$ax_check_save_flags
15597 fi
15598 eval ac_res=\$$as_CACHEVAR
15599                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15600 $as_echo "$ac_res" >&6; }
15601 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15602
15603 if ${WARN_LDFLAGS+:} false; then :
15604
15605   case " $WARN_LDFLAGS " in #(
15606   *" $flag "*) :
15607     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15608   (: WARN_LDFLAGS already contains $flag) 2>&5
15609   ac_status=$?
15610   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15611   test $ac_status = 0; } ;; #(
15612   *) :
15613
15614      as_fn_append WARN_LDFLAGS " $flag"
15615      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15616   (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15617   ac_status=$?
15618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15619   test $ac_status = 0; }
15620      ;;
15621 esac
15622
15623 else
15624
15625   WARN_LDFLAGS=$flag
15626   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15627   (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15628   ac_status=$?
15629   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15630   test $ac_status = 0; }
15631
15632 fi
15633
15634 else
15635   :
15636 fi
15637
15638 done
15639
15640
15641 fi
15642     if test "$ax_enable_compile_warnings" = "error"; then :
15643
15644         # "error" flags; -Werror has to be appended unconditionally because
15645         # it's not possible to test for
15646         #
15647         # suggest-attribute=format is disabled because it gives too many false
15648         # positives
15649
15650
15651
15652
15653 for flag in              $ax_compiler_flags_fatal_warnings_option         ; do
15654   as_CACHEVAR=`$as_echo "ax_cv_check_ldflags_$ax_compiler_flags_test_$flag" | $as_tr_sh`
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker accepts $flag" >&5
15656 $as_echo_n "checking whether the linker accepts $flag... " >&6; }
15657 if eval \${$as_CACHEVAR+:} false; then :
15658   $as_echo_n "(cached) " >&6
15659 else
15660
15661   ax_check_save_flags=$LDFLAGS
15662   LDFLAGS="$LDFLAGS $ax_compiler_flags_test $flag"
15663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h.  */
15665
15666 int
15667 main ()
15668 {
15669
15670   ;
15671   return 0;
15672 }
15673 _ACEOF
15674 if ac_fn_c_try_link "$LINENO"; then :
15675   eval "$as_CACHEVAR=yes"
15676 else
15677   eval "$as_CACHEVAR=no"
15678 fi
15679 rm -f core conftest.err conftest.$ac_objext \
15680     conftest$ac_exeext conftest.$ac_ext
15681   LDFLAGS=$ax_check_save_flags
15682 fi
15683 eval ac_res=\$$as_CACHEVAR
15684                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15685 $as_echo "$ac_res" >&6; }
15686 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15687
15688 if ${WARN_LDFLAGS+:} false; then :
15689
15690   case " $WARN_LDFLAGS " in #(
15691   *" $flag "*) :
15692     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS already contains \$flag"; } >&5
15693   (: WARN_LDFLAGS already contains $flag) 2>&5
15694   ac_status=$?
15695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15696   test $ac_status = 0; } ;; #(
15697   *) :
15698
15699      as_fn_append WARN_LDFLAGS " $flag"
15700      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15701   (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15702   ac_status=$?
15703   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15704   test $ac_status = 0; }
15705      ;;
15706 esac
15707
15708 else
15709
15710   WARN_LDFLAGS=$flag
15711   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_LDFLAGS=\"\$WARN_LDFLAGS\""; } >&5
15712   (: WARN_LDFLAGS="$WARN_LDFLAGS") 2>&5
15713   ac_status=$?
15714   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15715   test $ac_status = 0; }
15716
15717 fi
15718
15719 else
15720   :
15721 fi
15722
15723 done
15724
15725
15726 fi
15727
15728     # Substitute the variables
15729
15730
15731
15732
15733
15734
15735     # Variable names
15736
15737
15738     # Base flags
15739
15740 if ${WARN_SCANNERFLAGS+:} false; then :
15741
15742   case " $WARN_SCANNERFLAGS " in #(
15743   *"  "*) :
15744     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains "; } >&5
15745   (: WARN_SCANNERFLAGS already contains ) 2>&5
15746   ac_status=$?
15747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748   test $ac_status = 0; } ;; #(
15749   *) :
15750
15751      as_fn_append WARN_SCANNERFLAGS " "
15752      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15753   (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15754   ac_status=$?
15755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15756   test $ac_status = 0; }
15757      ;;
15758 esac
15759
15760 else
15761
15762   WARN_SCANNERFLAGS=
15763   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15764   (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15765   ac_status=$?
15766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15767   test $ac_status = 0; }
15768
15769 fi
15770
15771
15772     if test "$ax_enable_compile_warnings" != "no"; then :
15773
15774         # "yes" flags
15775
15776 if ${WARN_SCANNERFLAGS+:} false; then :
15777
15778   case " $WARN_SCANNERFLAGS " in #(
15779   *"              --warn-all                                                              "*) :
15780     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-all                                                             "; } >&5
15781   (: WARN_SCANNERFLAGS already contains              --warn-all                                                             ) 2>&5
15782   ac_status=$?
15783   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15784   test $ac_status = 0; } ;; #(
15785   *) :
15786
15787      as_fn_append WARN_SCANNERFLAGS "              --warn-all                                                             "
15788      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15789   (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15790   ac_status=$?
15791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15792   test $ac_status = 0; }
15793      ;;
15794 esac
15795
15796 else
15797
15798   WARN_SCANNERFLAGS=             --warn-all
15799   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15800   (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15801   ac_status=$?
15802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15803   test $ac_status = 0; }
15804
15805 fi
15806
15807
15808 fi
15809     if test "$ax_enable_compile_warnings" = "error"; then :
15810
15811         # "error" flags
15812
15813 if ${WARN_SCANNERFLAGS+:} false; then :
15814
15815   case " $WARN_SCANNERFLAGS " in #(
15816   *"              --warn-error          "*) :
15817     { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS already contains              --warn-error         "; } >&5
15818   (: WARN_SCANNERFLAGS already contains              --warn-error         ) 2>&5
15819   ac_status=$?
15820   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15821   test $ac_status = 0; } ;; #(
15822   *) :
15823
15824      as_fn_append WARN_SCANNERFLAGS "              --warn-error         "
15825      { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15826   (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15827   ac_status=$?
15828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15829   test $ac_status = 0; }
15830      ;;
15831 esac
15832
15833 else
15834
15835   WARN_SCANNERFLAGS=             --warn-error
15836   { { $as_echo "$as_me:${as_lineno-$LINENO}: : WARN_SCANNERFLAGS=\"\$WARN_SCANNERFLAGS\""; } >&5
15837   (: WARN_SCANNERFLAGS="$WARN_SCANNERFLAGS") 2>&5
15838   ac_status=$?
15839   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15840   test $ac_status = 0; }
15841
15842 fi
15843
15844
15845 fi
15846
15847     # Substitute the variables
15848
15849
15850
15851 # Disable some warnings, either because they get generated by headers of
15852 # dependencies we don't control or because it was hard to fix them.
15853 # Feel free and try to get rid of them.
15854 # For clang only:
15855
15856
15857
15858
15859 for flag in -Wno-unknown-warning-option -Wno-incompatible-pointer-types-discards-qualifiers -Wno-cast-align; do
15860   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15862 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15863 if eval \${$as_CACHEVAR+:} false; then :
15864   $as_echo_n "(cached) " >&6
15865 else
15866
15867   ax_check_save_flags=$CFLAGS
15868   CFLAGS="$CFLAGS  $flag"
15869   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15870 /* end confdefs.h.  */
15871
15872 int
15873 main ()
15874 {
15875
15876   ;
15877   return 0;
15878 }
15879 _ACEOF
15880 if ac_fn_c_try_compile "$LINENO"; then :
15881   eval "$as_CACHEVAR=yes"
15882 else
15883   eval "$as_CACHEVAR=no"
15884 fi
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886   CFLAGS=$ax_check_save_flags
15887 fi
15888 eval ac_res=\$$as_CACHEVAR
15889                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15890 $as_echo "$ac_res" >&6; }
15891 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15892
15893 if ${CFLAGS+:} false; then :
15894
15895   case " $CFLAGS " in #(
15896   *" $flag "*) :
15897     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15898   (: CFLAGS already contains $flag) 2>&5
15899   ac_status=$?
15900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901   test $ac_status = 0; } ;; #(
15902   *) :
15903
15904      as_fn_append CFLAGS " $flag"
15905      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15906   (: CFLAGS="$CFLAGS") 2>&5
15907   ac_status=$?
15908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15909   test $ac_status = 0; }
15910      ;;
15911 esac
15912
15913 else
15914
15915   CFLAGS=$flag
15916   { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15917   (: CFLAGS="$CFLAGS") 2>&5
15918   ac_status=$?
15919   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15920   test $ac_status = 0; }
15921
15922 fi
15923
15924 else
15925   :
15926 fi
15927
15928 done
15929
15930 # For gcc + clang:
15931
15932
15933
15934
15935 for flag in -Wno-discarded-qualifiers -Wno-redundant-decls -Wno-switch-enum -Wno-undef; do
15936   as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15938 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15939 if eval \${$as_CACHEVAR+:} false; then :
15940   $as_echo_n "(cached) " >&6
15941 else
15942
15943   ax_check_save_flags=$CFLAGS
15944   CFLAGS="$CFLAGS  $flag"
15945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15946 /* end confdefs.h.  */
15947
15948 int
15949 main ()
15950 {
15951
15952   ;
15953   return 0;
15954 }
15955 _ACEOF
15956 if ac_fn_c_try_compile "$LINENO"; then :
15957   eval "$as_CACHEVAR=yes"
15958 else
15959   eval "$as_CACHEVAR=no"
15960 fi
15961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15962   CFLAGS=$ax_check_save_flags
15963 fi
15964 eval ac_res=\$$as_CACHEVAR
15965                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15966 $as_echo "$ac_res" >&6; }
15967 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
15968
15969 if ${CFLAGS+:} false; then :
15970
15971   case " $CFLAGS " in #(
15972   *" $flag "*) :
15973     { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15974   (: CFLAGS already contains $flag) 2>&5
15975   ac_status=$?
15976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15977   test $ac_status = 0; } ;; #(
15978   *) :
15979
15980      as_fn_append CFLAGS " $flag"
15981      { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15982   (: CFLAGS="$CFLAGS") 2>&5
15983   ac_status=$?
15984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15985   test $ac_status = 0; }
15986      ;;
15987 esac
15988
15989 else
15990
15991   CFLAGS=$flag
15992   { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
15993   (: CFLAGS="$CFLAGS") 2>&5
15994   ac_status=$?
15995   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15996   test $ac_status = 0; }
15997
15998 fi
15999
16000 else
16001   :
16002 fi
16003
16004 done
16005
16006
16007
16008
16009
16010         # allow to override gcov location
16011
16012 # Check whether --with-gcov was given.
16013 if test "${with_gcov+set}" = set; then :
16014   withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
16015 else
16016   _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
16017 fi
16018
16019
16020         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
16021 $as_echo_n "checking whether to build with code coverage support... " >&6; }
16022         # Check whether --enable-code-coverage was given.
16023 if test "${enable_code_coverage+set}" = set; then :
16024   enableval=$enable_code_coverage;
16025 else
16026   enable_code_coverage=no
16027 fi
16028
16029
16030          if test x$enable_code_coverage = xyes; then
16031   CODE_COVERAGE_ENABLED_TRUE=
16032   CODE_COVERAGE_ENABLED_FALSE='#'
16033 else
16034   CODE_COVERAGE_ENABLED_TRUE='#'
16035   CODE_COVERAGE_ENABLED_FALSE=
16036 fi
16037
16038         CODE_COVERAGE_ENABLED=$enable_code_coverage
16039
16040         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
16041 $as_echo "$enable_code_coverage" >&6; }
16042
16043         if  test "$enable_code_coverage" = "yes" ; then :
16044
16045                 # check for gcov
16046                 if test -n "$ac_tool_prefix"; then
16047   # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16048 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16050 $as_echo_n "checking for $ac_word... " >&6; }
16051 if ${ac_cv_prog_GCOV+:} false; then :
16052   $as_echo_n "(cached) " >&6
16053 else
16054   if test -n "$GCOV"; then
16055   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
16056 else
16057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16058 for as_dir in $PATH
16059 do
16060   IFS=$as_save_IFS
16061   test -z "$as_dir" && as_dir=.
16062     for ac_exec_ext in '' $ac_executable_extensions; do
16063   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16064     ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16066     break 2
16067   fi
16068 done
16069   done
16070 IFS=$as_save_IFS
16071
16072 fi
16073 fi
16074 GCOV=$ac_cv_prog_GCOV
16075 if test -n "$GCOV"; then
16076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
16077 $as_echo "$GCOV" >&6; }
16078 else
16079   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16080 $as_echo "no" >&6; }
16081 fi
16082
16083
16084 fi
16085 if test -z "$ac_cv_prog_GCOV"; then
16086   ac_ct_GCOV=$GCOV
16087   # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
16088 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16090 $as_echo_n "checking for $ac_word... " >&6; }
16091 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
16092   $as_echo_n "(cached) " >&6
16093 else
16094   if test -n "$ac_ct_GCOV"; then
16095   ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
16096 else
16097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16098 for as_dir in $PATH
16099 do
16100   IFS=$as_save_IFS
16101   test -z "$as_dir" && as_dir=.
16102     for ac_exec_ext in '' $ac_executable_extensions; do
16103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16104     ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
16105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16106     break 2
16107   fi
16108 done
16109   done
16110 IFS=$as_save_IFS
16111
16112 fi
16113 fi
16114 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
16115 if test -n "$ac_ct_GCOV"; then
16116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
16117 $as_echo "$ac_ct_GCOV" >&6; }
16118 else
16119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16120 $as_echo "no" >&6; }
16121 fi
16122
16123   if test "x$ac_ct_GCOV" = x; then
16124     GCOV=":"
16125   else
16126     case $cross_compiling:$ac_tool_warned in
16127 yes:)
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16130 ac_tool_warned=yes ;;
16131 esac
16132     GCOV=$ac_ct_GCOV
16133   fi
16134 else
16135   GCOV="$ac_cv_prog_GCOV"
16136 fi
16137
16138                 if test "X$GCOV" = "X:"; then :
16139   as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
16140 fi
16141
16142
16143                                 if  test "$GCC" = "no" ; then :
16144
16145                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
16146
16147 fi
16148
16149                 # Extract the first word of "lcov", so it can be a program name with args.
16150 set dummy lcov; ac_word=$2
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16152 $as_echo_n "checking for $ac_word... " >&6; }
16153 if ${ac_cv_prog_LCOV+:} false; then :
16154   $as_echo_n "(cached) " >&6
16155 else
16156   if test -n "$LCOV"; then
16157   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
16158 else
16159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16160 for as_dir in $PATH
16161 do
16162   IFS=$as_save_IFS
16163   test -z "$as_dir" && as_dir=.
16164     for ac_exec_ext in '' $ac_executable_extensions; do
16165   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16166     ac_cv_prog_LCOV="lcov"
16167     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16168     break 2
16169   fi
16170 done
16171   done
16172 IFS=$as_save_IFS
16173
16174 fi
16175 fi
16176 LCOV=$ac_cv_prog_LCOV
16177 if test -n "$LCOV"; then
16178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
16179 $as_echo "$LCOV" >&6; }
16180 else
16181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16182 $as_echo "no" >&6; }
16183 fi
16184
16185
16186                 # Extract the first word of "genhtml", so it can be a program name with args.
16187 set dummy genhtml; ac_word=$2
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16189 $as_echo_n "checking for $ac_word... " >&6; }
16190 if ${ac_cv_prog_GENHTML+:} false; then :
16191   $as_echo_n "(cached) " >&6
16192 else
16193   if test -n "$GENHTML"; then
16194   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
16195 else
16196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16197 for as_dir in $PATH
16198 do
16199   IFS=$as_save_IFS
16200   test -z "$as_dir" && as_dir=.
16201     for ac_exec_ext in '' $ac_executable_extensions; do
16202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16203     ac_cv_prog_GENHTML="genhtml"
16204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16205     break 2
16206   fi
16207 done
16208   done
16209 IFS=$as_save_IFS
16210
16211 fi
16212 fi
16213 GENHTML=$ac_cv_prog_GENHTML
16214 if test -n "$GENHTML"; then
16215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
16216 $as_echo "$GENHTML" >&6; }
16217 else
16218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16220 fi
16221
16222
16223
16224                 if  test -z "$LCOV" ; then :
16225
16226                         as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
16227
16228 fi
16229
16230                 if  test -z "$GENHTML" ; then :
16231
16232                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
16233
16234 fi
16235
16236                                                 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
16237                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16238                 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
16239                 CODE_COVERAGE_LIBS="-lgcov"
16240                 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
16241
16242
16243
16244
16245
16246
16247
16248                 CODE_COVERAGE_RULES_CHECK='
16249         -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
16250         $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
16251 '
16252                 CODE_COVERAGE_RULES_CAPTURE='
16253         $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
16254         $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
16255         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
16256         $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
16257         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
16258 '
16259                 CODE_COVERAGE_RULES_CLEAN='
16260 clean: code-coverage-clean
16261 distclean: code-coverage-clean
16262 code-coverage-clean:
16263         -$(LCOV) --directory $(top_builddir) -z
16264         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16265         -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
16266 '
16267
16268 else
16269
16270                 CODE_COVERAGE_RULES_CHECK='
16271         @echo "Need to reconfigure with --enable-code-coverage"
16272 '
16273                 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
16274                 CODE_COVERAGE_RULES_CLEAN=''
16275
16276 fi
16277
16278 CODE_COVERAGE_RULES='
16279 # Code coverage
16280 #
16281 # Optional:
16282 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
16283 #    Multiple directories may be specified, separated by whitespace.
16284 #    (Default: $(top_builddir))
16285 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
16286 #    by lcov for code coverage. (Default:
16287 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
16288 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
16289 #    reports to be created. (Default:
16290 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
16291 #  - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
16292 #    set to 0 to disable it and leave empty to stay with the default.
16293 #    (Default: empty)
16294 #  - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
16295 #    instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
16296 #  - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
16297 #    instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
16298 #  - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
16299 #  - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
16300 #    collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16301 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
16302 #    instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16303 #  - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
16304 #    lcov instance. (Default: empty)
16305 #  - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
16306 #    instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
16307 #  - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
16308 #    genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
16309 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
16310 #    instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
16311 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
16312 #
16313 # The generated report will be titled using the $(PACKAGE_NAME) and
16314 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
16315 # use the git-version-gen script, available online.
16316
16317 # Optional variables
16318 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
16319 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
16320 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
16321 CODE_COVERAGE_BRANCH_COVERAGE ?=
16322 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
16323 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
16324 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
16325 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
16326 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
16327 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
16328 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
16329 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
16330 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
16331 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
16332 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
16333 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULTS)
16334 CODE_COVERAGE_IGNORE_PATTERN ?=
16335
16336 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
16337 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
16338 code_coverage_v_lcov_cap_0 = @echo "  LCOV   --capture"\
16339  $(CODE_COVERAGE_OUTPUT_FILE);
16340 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
16341 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
16342 code_coverage_v_lcov_ign_0 = @echo "  LCOV   --remove /tmp/*"\
16343  $(CODE_COVERAGE_IGNORE_PATTERN);
16344 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
16345 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
16346 code_coverage_v_genhtml_0 = @echo "  GEN   " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
16347 code_coverage_quiet = $(code_coverage_quiet_$(V))
16348 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
16349 code_coverage_quiet_0 = --quiet
16350
16351 # sanitizes the test-name: replaces with underscores: dashes and dots
16352 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
16353
16354 # Use recursive makes in order to ignore errors during check
16355 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
16356
16357 # Capture code coverage data
16358 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
16359
16360 # Hook rule executed before code-coverage-capture, overridable by the user
16361 code-coverage-capture-hook:
16362
16363 '"$CODE_COVERAGE_RULES_CLEAN"'
16364
16365 GITIGNOREFILES ?=
16366 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
16367
16368 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
16369 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
16370
16371 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
16372 '
16373
16374
16375
16376
16377
16378 ac_config_files="$ac_config_files Makefile pygobject-3.0.pc gi/Makefile gi/repository/Makefile gi/overrides/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
16379
16380 cat >confcache <<\_ACEOF
16381 # This file is a shell script that caches the results of configure
16382 # tests run on this system so they can be shared between configure
16383 # scripts and configure runs, see configure's option --config-cache.
16384 # It is not useful on other systems.  If it contains results you don't
16385 # want to keep, you may remove or edit it.
16386 #
16387 # config.status only pays attention to the cache file if you give it
16388 # the --recheck option to rerun configure.
16389 #
16390 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16391 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16392 # following values.
16393
16394 _ACEOF
16395
16396 # The following way of writing the cache mishandles newlines in values,
16397 # but we know of no workaround that is simple, portable, and efficient.
16398 # So, we kill variables containing newlines.
16399 # Ultrix sh set writes to stderr and can't be redirected directly,
16400 # and sets the high bit in the cache file unless we assign to the vars.
16401 (
16402   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16403     eval ac_val=\$$ac_var
16404     case $ac_val in #(
16405     *${as_nl}*)
16406       case $ac_var in #(
16407       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16408 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16409       esac
16410       case $ac_var in #(
16411       _ | IFS | as_nl) ;; #(
16412       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16413       *) { eval $ac_var=; unset $ac_var;} ;;
16414       esac ;;
16415     esac
16416   done
16417
16418   (set) 2>&1 |
16419     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16420     *${as_nl}ac_space=\ *)
16421       # `set' does not quote correctly, so add quotes: double-quote
16422       # substitution turns \\\\ into \\, and sed turns \\ into \.
16423       sed -n \
16424         "s/'/'\\\\''/g;
16425           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16426       ;; #(
16427     *)
16428       # `set' quotes correctly as required by POSIX, so do not add quotes.
16429       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16430       ;;
16431     esac |
16432     sort
16433 ) |
16434   sed '
16435      /^ac_cv_env_/b end
16436      t clear
16437      :clear
16438      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16439      t end
16440      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16441      :end' >>confcache
16442 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16443   if test -w "$cache_file"; then
16444     if test "x$cache_file" != "x/dev/null"; then
16445       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16446 $as_echo "$as_me: updating cache $cache_file" >&6;}
16447       if test ! -f "$cache_file" || test -h "$cache_file"; then
16448         cat confcache >"$cache_file"
16449       else
16450         case $cache_file in #(
16451         */* | ?:*)
16452           mv -f confcache "$cache_file"$$ &&
16453           mv -f "$cache_file"$$ "$cache_file" ;; #(
16454         *)
16455           mv -f confcache "$cache_file" ;;
16456         esac
16457       fi
16458     fi
16459   else
16460     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16461 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16462   fi
16463 fi
16464 rm -f confcache
16465
16466 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16467 # Let make expand exec_prefix.
16468 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16469
16470 DEFS=-DHAVE_CONFIG_H
16471
16472 ac_libobjs=
16473 ac_ltlibobjs=
16474 U=
16475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16476   # 1. Remove the extension, and $U if already installed.
16477   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16478   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16479   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16480   #    will be set to the directory where LIBOBJS objects are built.
16481   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16482   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16483 done
16484 LIBOBJS=$ac_libobjs
16485
16486 LTLIBOBJS=$ac_ltlibobjs
16487
16488
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16490 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16491    if test -n "$am_sleep_pid"; then
16492      # Hide warnings about reused PIDs.
16493      wait $am_sleep_pid 2>/dev/null
16494    fi
16495    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16496 $as_echo "done" >&6; }
16497  if test -n "$EXEEXT"; then
16498   am__EXEEXT_TRUE=
16499   am__EXEEXT_FALSE='#'
16500 else
16501   am__EXEEXT_TRUE='#'
16502   am__EXEEXT_FALSE=
16503 fi
16504
16505 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16506   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16507 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508 fi
16509 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16510   as_fn_error $? "conditional \"AMDEP\" was never defined.
16511 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512 fi
16513 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16514   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516 fi
16517 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16518   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16520 fi
16521 if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
16522   as_fn_error $? "conditional \"HAVE_INTROSPECTION\" was never defined.
16523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16524 fi
16525 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
16526   as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
16527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528 fi
16529 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
16530   as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
16531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532 fi
16533 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
16534   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
16535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16536 fi
16537
16538 : "${CONFIG_STATUS=./config.status}"
16539 ac_write_fail=0
16540 ac_clean_files_save=$ac_clean_files
16541 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16543 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16544 as_write_fail=0
16545 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16546 #! $SHELL
16547 # Generated by $as_me.
16548 # Run this file to recreate the current configuration.
16549 # Compiler output produced by configure, useful for debugging
16550 # configure, is in config.log if it exists.
16551
16552 debug=false
16553 ac_cs_recheck=false
16554 ac_cs_silent=false
16555
16556 SHELL=\${CONFIG_SHELL-$SHELL}
16557 export SHELL
16558 _ASEOF
16559 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16560 ## -------------------- ##
16561 ## M4sh Initialization. ##
16562 ## -------------------- ##
16563
16564 # Be more Bourne compatible
16565 DUALCASE=1; export DUALCASE # for MKS sh
16566 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16567   emulate sh
16568   NULLCMD=:
16569   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16570   # is contrary to our usage.  Disable this feature.
16571   alias -g '${1+"$@"}'='"$@"'
16572   setopt NO_GLOB_SUBST
16573 else
16574   case `(set -o) 2>/dev/null` in #(
16575   *posix*) :
16576     set -o posix ;; #(
16577   *) :
16578      ;;
16579 esac
16580 fi
16581
16582
16583 as_nl='
16584 '
16585 export as_nl
16586 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16587 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16588 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16589 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16590 # Prefer a ksh shell builtin over an external printf program on Solaris,
16591 # but without wasting forks for bash or zsh.
16592 if test -z "$BASH_VERSION$ZSH_VERSION" \
16593     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16594   as_echo='print -r --'
16595   as_echo_n='print -rn --'
16596 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16597   as_echo='printf %s\n'
16598   as_echo_n='printf %s'
16599 else
16600   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16601     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16602     as_echo_n='/usr/ucb/echo -n'
16603   else
16604     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16605     as_echo_n_body='eval
16606       arg=$1;
16607       case $arg in #(
16608       *"$as_nl"*)
16609         expr "X$arg" : "X\\(.*\\)$as_nl";
16610         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16611       esac;
16612       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16613     '
16614     export as_echo_n_body
16615     as_echo_n='sh -c $as_echo_n_body as_echo'
16616   fi
16617   export as_echo_body
16618   as_echo='sh -c $as_echo_body as_echo'
16619 fi
16620
16621 # The user is always right.
16622 if test "${PATH_SEPARATOR+set}" != set; then
16623   PATH_SEPARATOR=:
16624   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16625     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16626       PATH_SEPARATOR=';'
16627   }
16628 fi
16629
16630
16631 # IFS
16632 # We need space, tab and new line, in precisely that order.  Quoting is
16633 # there to prevent editors from complaining about space-tab.
16634 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16635 # splitting by setting IFS to empty value.)
16636 IFS=" ""        $as_nl"
16637
16638 # Find who we are.  Look in the path if we contain no directory separator.
16639 as_myself=
16640 case $0 in #((
16641   *[\\/]* ) as_myself=$0 ;;
16642   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16643 for as_dir in $PATH
16644 do
16645   IFS=$as_save_IFS
16646   test -z "$as_dir" && as_dir=.
16647     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16648   done
16649 IFS=$as_save_IFS
16650
16651      ;;
16652 esac
16653 # We did not find ourselves, most probably we were run as `sh COMMAND'
16654 # in which case we are not to be found in the path.
16655 if test "x$as_myself" = x; then
16656   as_myself=$0
16657 fi
16658 if test ! -f "$as_myself"; then
16659   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16660   exit 1
16661 fi
16662
16663 # Unset variables that we do not need and which cause bugs (e.g. in
16664 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
16665 # suppresses any "Segmentation fault" message there.  '((' could
16666 # trigger a bug in pdksh 5.2.14.
16667 for as_var in BASH_ENV ENV MAIL MAILPATH
16668 do eval test x\${$as_var+set} = xset \
16669   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16670 done
16671 PS1='$ '
16672 PS2='> '
16673 PS4='+ '
16674
16675 # NLS nuisances.
16676 LC_ALL=C
16677 export LC_ALL
16678 LANGUAGE=C
16679 export LANGUAGE
16680
16681 # CDPATH.
16682 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16683
16684
16685 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16686 # ----------------------------------------
16687 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16688 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16689 # script with STATUS, using 1 if that was 0.
16690 as_fn_error ()
16691 {
16692   as_status=$1; test $as_status -eq 0 && as_status=1
16693   if test "$4"; then
16694     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16695     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16696   fi
16697   $as_echo "$as_me: error: $2" >&2
16698   as_fn_exit $as_status
16699 } # as_fn_error
16700
16701
16702 # as_fn_set_status STATUS
16703 # -----------------------
16704 # Set $? to STATUS, without forking.
16705 as_fn_set_status ()
16706 {
16707   return $1
16708 } # as_fn_set_status
16709
16710 # as_fn_exit STATUS
16711 # -----------------
16712 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16713 as_fn_exit ()
16714 {
16715   set +e
16716   as_fn_set_status $1
16717   exit $1
16718 } # as_fn_exit
16719
16720 # as_fn_unset VAR
16721 # ---------------
16722 # Portably unset VAR.
16723 as_fn_unset ()
16724 {
16725   { eval $1=; unset $1;}
16726 }
16727 as_unset=as_fn_unset
16728 # as_fn_append VAR VALUE
16729 # ----------------------
16730 # Append the text in VALUE to the end of the definition contained in VAR. Take
16731 # advantage of any shell optimizations that allow amortized linear growth over
16732 # repeated appends, instead of the typical quadratic growth present in naive
16733 # implementations.
16734 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16735   eval 'as_fn_append ()
16736   {
16737     eval $1+=\$2
16738   }'
16739 else
16740   as_fn_append ()
16741   {
16742     eval $1=\$$1\$2
16743   }
16744 fi # as_fn_append
16745
16746 # as_fn_arith ARG...
16747 # ------------------
16748 # Perform arithmetic evaluation on the ARGs, and store the result in the
16749 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16750 # must be portable across $(()) and expr.
16751 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16752   eval 'as_fn_arith ()
16753   {
16754     as_val=$(( $* ))
16755   }'
16756 else
16757   as_fn_arith ()
16758   {
16759     as_val=`expr "$@" || test $? -eq 1`
16760   }
16761 fi # as_fn_arith
16762
16763
16764 if expr a : '\(a\)' >/dev/null 2>&1 &&
16765    test "X`expr 00001 : '.*\(...\)'`" = X001; then
16766   as_expr=expr
16767 else
16768   as_expr=false
16769 fi
16770
16771 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16772   as_basename=basename
16773 else
16774   as_basename=false
16775 fi
16776
16777 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16778   as_dirname=dirname
16779 else
16780   as_dirname=false
16781 fi
16782
16783 as_me=`$as_basename -- "$0" ||
16784 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16785          X"$0" : 'X\(//\)$' \| \
16786          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16787 $as_echo X/"$0" |
16788     sed '/^.*\/\([^/][^/]*\)\/*$/{
16789             s//\1/
16790             q
16791           }
16792           /^X\/\(\/\/\)$/{
16793             s//\1/
16794             q
16795           }
16796           /^X\/\(\/\).*/{
16797             s//\1/
16798             q
16799           }
16800           s/.*/./; q'`
16801
16802 # Avoid depending upon Character Ranges.
16803 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16804 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16805 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16806 as_cr_digits='0123456789'
16807 as_cr_alnum=$as_cr_Letters$as_cr_digits
16808
16809 ECHO_C= ECHO_N= ECHO_T=
16810 case `echo -n x` in #(((((
16811 -n*)
16812   case `echo 'xy\c'` in
16813   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
16814   xy)  ECHO_C='\c';;
16815   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
16816        ECHO_T=' ';;
16817   esac;;
16818 *)
16819   ECHO_N='-n';;
16820 esac
16821
16822 rm -f conf$$ conf$$.exe conf$$.file
16823 if test -d conf$$.dir; then
16824   rm -f conf$$.dir/conf$$.file
16825 else
16826   rm -f conf$$.dir
16827   mkdir conf$$.dir 2>/dev/null
16828 fi
16829 if (echo >conf$$.file) 2>/dev/null; then
16830   if ln -s conf$$.file conf$$ 2>/dev/null; then
16831     as_ln_s='ln -s'
16832     # ... but there are two gotchas:
16833     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16834     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16835     # In both cases, we have to default to `cp -pR'.
16836     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16837       as_ln_s='cp -pR'
16838   elif ln conf$$.file conf$$ 2>/dev/null; then
16839     as_ln_s=ln
16840   else
16841     as_ln_s='cp -pR'
16842   fi
16843 else
16844   as_ln_s='cp -pR'
16845 fi
16846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16847 rmdir conf$$.dir 2>/dev/null
16848
16849
16850 # as_fn_mkdir_p
16851 # -------------
16852 # Create "$as_dir" as a directory, including parents if necessary.
16853 as_fn_mkdir_p ()
16854 {
16855
16856   case $as_dir in #(
16857   -*) as_dir=./$as_dir;;
16858   esac
16859   test -d "$as_dir" || eval $as_mkdir_p || {
16860     as_dirs=
16861     while :; do
16862       case $as_dir in #(
16863       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16864       *) as_qdir=$as_dir;;
16865       esac
16866       as_dirs="'$as_qdir' $as_dirs"
16867       as_dir=`$as_dirname -- "$as_dir" ||
16868 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16869          X"$as_dir" : 'X\(//\)[^/]' \| \
16870          X"$as_dir" : 'X\(//\)$' \| \
16871          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16872 $as_echo X"$as_dir" |
16873     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16874             s//\1/
16875             q
16876           }
16877           /^X\(\/\/\)[^/].*/{
16878             s//\1/
16879             q
16880           }
16881           /^X\(\/\/\)$/{
16882             s//\1/
16883             q
16884           }
16885           /^X\(\/\).*/{
16886             s//\1/
16887             q
16888           }
16889           s/.*/./; q'`
16890       test -d "$as_dir" && break
16891     done
16892     test -z "$as_dirs" || eval "mkdir $as_dirs"
16893   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16894
16895
16896 } # as_fn_mkdir_p
16897 if mkdir -p . 2>/dev/null; then
16898   as_mkdir_p='mkdir -p "$as_dir"'
16899 else
16900   test -d ./-p && rmdir ./-p
16901   as_mkdir_p=false
16902 fi
16903
16904
16905 # as_fn_executable_p FILE
16906 # -----------------------
16907 # Test if FILE is an executable regular file.
16908 as_fn_executable_p ()
16909 {
16910   test -f "$1" && test -x "$1"
16911 } # as_fn_executable_p
16912 as_test_x='test -x'
16913 as_executable_p=as_fn_executable_p
16914
16915 # Sed expression to map a string onto a valid CPP name.
16916 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16917
16918 # Sed expression to map a string onto a valid variable name.
16919 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16920
16921
16922 exec 6>&1
16923 ## ----------------------------------- ##
16924 ## Main body of $CONFIG_STATUS script. ##
16925 ## ----------------------------------- ##
16926 _ASEOF
16927 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16928
16929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16930 # Save the log message, to keep $0 and so on meaningful, and to
16931 # report actual input values of CONFIG_FILES etc. instead of their
16932 # values after options handling.
16933 ac_log="
16934 This file was extended by pygobject $as_me 3.27.5, which was
16935 generated by GNU Autoconf 2.69.  Invocation command line was
16936
16937   CONFIG_FILES    = $CONFIG_FILES
16938   CONFIG_HEADERS  = $CONFIG_HEADERS
16939   CONFIG_LINKS    = $CONFIG_LINKS
16940   CONFIG_COMMANDS = $CONFIG_COMMANDS
16941   $ $0 $@
16942
16943 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16944 "
16945
16946 _ACEOF
16947
16948 case $ac_config_files in *"
16949 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16950 esac
16951
16952 case $ac_config_headers in *"
16953 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16954 esac
16955
16956
16957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16958 # Files that config.status was made for.
16959 config_files="$ac_config_files"
16960 config_headers="$ac_config_headers"
16961 config_commands="$ac_config_commands"
16962
16963 _ACEOF
16964
16965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16966 ac_cs_usage="\
16967 \`$as_me' instantiates files and other configuration actions
16968 from templates according to the current configuration.  Unless the files
16969 and actions are specified as TAGs, all are instantiated by default.
16970
16971 Usage: $0 [OPTION]... [TAG]...
16972
16973   -h, --help       print this help, then exit
16974   -V, --version    print version number and configuration settings, then exit
16975       --config     print configuration, then exit
16976   -q, --quiet, --silent
16977                    do not print progress messages
16978   -d, --debug      don't remove temporary files
16979       --recheck    update $as_me by reconfiguring in the same conditions
16980       --file=FILE[:TEMPLATE]
16981                    instantiate the configuration file FILE
16982       --header=FILE[:TEMPLATE]
16983                    instantiate the configuration header FILE
16984
16985 Configuration files:
16986 $config_files
16987
16988 Configuration headers:
16989 $config_headers
16990
16991 Configuration commands:
16992 $config_commands
16993
16994 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
16995 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
16996
16997 _ACEOF
16998 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16999 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17000 ac_cs_version="\\
17001 pygobject config.status 3.27.5
17002 configured by $0, generated by GNU Autoconf 2.69,
17003   with options \\"\$ac_cs_config\\"
17004
17005 Copyright (C) 2012 Free Software Foundation, Inc.
17006 This config.status script is free software; the Free Software Foundation
17007 gives unlimited permission to copy, distribute and modify it."
17008
17009 ac_pwd='$ac_pwd'
17010 srcdir='$srcdir'
17011 INSTALL='$INSTALL'
17012 MKDIR_P='$MKDIR_P'
17013 AWK='$AWK'
17014 test -n "\$AWK" || AWK=awk
17015 _ACEOF
17016
17017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17018 # The default lists apply if the user does not specify any file.
17019 ac_need_defaults=:
17020 while test $# != 0
17021 do
17022   case $1 in
17023   --*=?*)
17024     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17025     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17026     ac_shift=:
17027     ;;
17028   --*=)
17029     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17030     ac_optarg=
17031     ac_shift=:
17032     ;;
17033   *)
17034     ac_option=$1
17035     ac_optarg=$2
17036     ac_shift=shift
17037     ;;
17038   esac
17039
17040   case $ac_option in
17041   # Handling of the options.
17042   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17043     ac_cs_recheck=: ;;
17044   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17045     $as_echo "$ac_cs_version"; exit ;;
17046   --config | --confi | --conf | --con | --co | --c )
17047     $as_echo "$ac_cs_config"; exit ;;
17048   --debug | --debu | --deb | --de | --d | -d )
17049     debug=: ;;
17050   --file | --fil | --fi | --f )
17051     $ac_shift
17052     case $ac_optarg in
17053     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17054     '') as_fn_error $? "missing file argument" ;;
17055     esac
17056     as_fn_append CONFIG_FILES " '$ac_optarg'"
17057     ac_need_defaults=false;;
17058   --header | --heade | --head | --hea )
17059     $ac_shift
17060     case $ac_optarg in
17061     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17062     esac
17063     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17064     ac_need_defaults=false;;
17065   --he | --h)
17066     # Conflict between --help and --header
17067     as_fn_error $? "ambiguous option: \`$1'
17068 Try \`$0 --help' for more information.";;
17069   --help | --hel | -h )
17070     $as_echo "$ac_cs_usage"; exit ;;
17071   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17072   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17073     ac_cs_silent=: ;;
17074
17075   # This is an error.
17076   -*) as_fn_error $? "unrecognized option: \`$1'
17077 Try \`$0 --help' for more information." ;;
17078
17079   *) as_fn_append ac_config_targets " $1"
17080      ac_need_defaults=false ;;
17081
17082   esac
17083   shift
17084 done
17085
17086 ac_configure_extra_args=
17087
17088 if $ac_cs_silent; then
17089   exec 6>/dev/null
17090   ac_configure_extra_args="$ac_configure_extra_args --silent"
17091 fi
17092
17093 _ACEOF
17094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17095 if \$ac_cs_recheck; then
17096   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17097   shift
17098   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17099   CONFIG_SHELL='$SHELL'
17100   export CONFIG_SHELL
17101   exec "\$@"
17102 fi
17103
17104 _ACEOF
17105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17106 exec 5>>config.log
17107 {
17108   echo
17109   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17110 ## Running $as_me. ##
17111 _ASBOX
17112   $as_echo "$ac_log"
17113 } >&5
17114
17115 _ACEOF
17116 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17117 #
17118 # INIT-COMMANDS
17119 #
17120 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17121
17122
17123 # The HP-UX ksh and POSIX shell print the target directory to stdout
17124 # if CDPATH is set.
17125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17126
17127 sed_quote_subst='$sed_quote_subst'
17128 double_quote_subst='$double_quote_subst'
17129 delay_variable_subst='$delay_variable_subst'
17130 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17131 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17132 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17133 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17134 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17135 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17136 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17137 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17138 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17139 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17140 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17141 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17142 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17143 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17144 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17145 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17146 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17147 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17148 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17149 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17150 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17151 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17152 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17153 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17154 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17155 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17156 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17157 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17158 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17159 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17160 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17161 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17162 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17163 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17164 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17165 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17166 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17167 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17168 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17169 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17170 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17171 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17172 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17173 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17174 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17175 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17176 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17177 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17178 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17179 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17180 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17181 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17182 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17183 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17184 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17185 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17186 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17187 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17188 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17189 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"`'
17190 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17191 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17192 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17193 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17194 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17195 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17196 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17197 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17198 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17199 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17200 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17201 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17202 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17203 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17204 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17205 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17206 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17207 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17208 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17209 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17210 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17211 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17212 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17213 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17214 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17215 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17216 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17217 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17218 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17219 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17220 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17221 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17222 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17223 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17224 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17225 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17226 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17227 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17228 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17229 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17230 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17231 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17232 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17233 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17234 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17235 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17236 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17237 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17238 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17239 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17240 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17241 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17242 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17243 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17244 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17245 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17246 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17247 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17248 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17249 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17250 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17251 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17252 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17253 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17254 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17255 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17256 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17257 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17258 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17259 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17260 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17261 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17262 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17263 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17264 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17265 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17266
17267 LTCC='$LTCC'
17268 LTCFLAGS='$LTCFLAGS'
17269 compiler='$compiler_DEFAULT'
17270
17271 # A function that is used when there is no print builtin or printf.
17272 func_fallback_echo ()
17273 {
17274   eval 'cat <<_LTECHO_EOF
17275 \$1
17276 _LTECHO_EOF'
17277 }
17278
17279 # Quote evaled strings.
17280 for var in AS \
17281 DLLTOOL \
17282 OBJDUMP \
17283 SHELL \
17284 ECHO \
17285 PATH_SEPARATOR \
17286 SED \
17287 GREP \
17288 EGREP \
17289 FGREP \
17290 LD \
17291 NM \
17292 LN_S \
17293 lt_SP2NL \
17294 lt_NL2SP \
17295 reload_flag \
17296 deplibs_check_method \
17297 file_magic_cmd \
17298 file_magic_glob \
17299 want_nocaseglob \
17300 sharedlib_from_linklib_cmd \
17301 AR \
17302 AR_FLAGS \
17303 archiver_list_spec \
17304 STRIP \
17305 RANLIB \
17306 CC \
17307 CFLAGS \
17308 compiler \
17309 lt_cv_sys_global_symbol_pipe \
17310 lt_cv_sys_global_symbol_to_cdecl \
17311 lt_cv_sys_global_symbol_to_import \
17312 lt_cv_sys_global_symbol_to_c_name_address \
17313 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17314 lt_cv_nm_interface \
17315 nm_file_list_spec \
17316 lt_cv_truncate_bin \
17317 lt_prog_compiler_no_builtin_flag \
17318 lt_prog_compiler_pic \
17319 lt_prog_compiler_wl \
17320 lt_prog_compiler_static \
17321 lt_cv_prog_compiler_c_o \
17322 need_locks \
17323 MANIFEST_TOOL \
17324 DSYMUTIL \
17325 NMEDIT \
17326 LIPO \
17327 OTOOL \
17328 OTOOL64 \
17329 shrext_cmds \
17330 export_dynamic_flag_spec \
17331 whole_archive_flag_spec \
17332 compiler_needs_object \
17333 with_gnu_ld \
17334 allow_undefined_flag \
17335 no_undefined_flag \
17336 hardcode_libdir_flag_spec \
17337 hardcode_libdir_separator \
17338 exclude_expsyms \
17339 include_expsyms \
17340 file_list_spec \
17341 variables_saved_for_relink \
17342 libname_spec \
17343 library_names_spec \
17344 soname_spec \
17345 install_override_mode \
17346 finish_eval \
17347 old_striplib \
17348 striplib; do
17349     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17350     *[\\\\\\\`\\"\\\$]*)
17351       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17352       ;;
17353     *)
17354       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17355       ;;
17356     esac
17357 done
17358
17359 # Double-quote double-evaled strings.
17360 for var in reload_cmds \
17361 old_postinstall_cmds \
17362 old_postuninstall_cmds \
17363 old_archive_cmds \
17364 extract_expsyms_cmds \
17365 old_archive_from_new_cmds \
17366 old_archive_from_expsyms_cmds \
17367 archive_cmds \
17368 archive_expsym_cmds \
17369 module_cmds \
17370 module_expsym_cmds \
17371 export_symbols_cmds \
17372 prelink_cmds \
17373 postlink_cmds \
17374 postinstall_cmds \
17375 postuninstall_cmds \
17376 finish_cmds \
17377 sys_lib_search_path_spec \
17378 configure_time_dlsearch_path \
17379 configure_time_lt_sys_library_path; do
17380     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17381     *[\\\\\\\`\\"\\\$]*)
17382       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17383       ;;
17384     *)
17385       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17386       ;;
17387     esac
17388 done
17389
17390 ac_aux_dir='$ac_aux_dir'
17391
17392 # See if we are running on zsh, and set the options that allow our
17393 # commands through without removal of \ escapes INIT.
17394 if test -n "\${ZSH_VERSION+set}"; then
17395    setopt NO_GLOB_SUBST
17396 fi
17397
17398
17399     PACKAGE='$PACKAGE'
17400     VERSION='$VERSION'
17401     RM='$RM'
17402     ofile='$ofile'
17403
17404
17405
17406
17407 _ACEOF
17408
17409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17410
17411 # Handling of arguments.
17412 for ac_config_target in $ac_config_targets
17413 do
17414   case $ac_config_target in
17415     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17416     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17417     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17418     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17419     "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
17420     "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
17421     "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
17422     "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
17423     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17424     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17425     "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
17426     "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
17427
17428   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17429   esac
17430 done
17431
17432
17433 # If the user did not use the arguments to specify the items to instantiate,
17434 # then the envvar interface is used.  Set only those that are not.
17435 # We use the long form for the default assignment because of an extremely
17436 # bizarre bug on SunOS 4.1.3.
17437 if $ac_need_defaults; then
17438   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17439   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17440   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17441 fi
17442
17443 # Have a temporary directory for convenience.  Make it in the build tree
17444 # simply because there is no reason against having it here, and in addition,
17445 # creating and moving files from /tmp can sometimes cause problems.
17446 # Hook for its removal unless debugging.
17447 # Note that there is a small window in which the directory will not be cleaned:
17448 # after its creation but before its name has been assigned to `$tmp'.
17449 $debug ||
17450 {
17451   tmp= ac_tmp=
17452   trap 'exit_status=$?
17453   : "${ac_tmp:=$tmp}"
17454   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17455 ' 0
17456   trap 'as_fn_exit 1' 1 2 13 15
17457 }
17458 # Create a (secure) tmp directory for tmp files.
17459
17460 {
17461   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17462   test -d "$tmp"
17463 }  ||
17464 {
17465   tmp=./conf$$-$RANDOM
17466   (umask 077 && mkdir "$tmp")
17467 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17468 ac_tmp=$tmp
17469
17470 # Set up the scripts for CONFIG_FILES section.
17471 # No need to generate them if there are no CONFIG_FILES.
17472 # This happens for instance with `./config.status config.h'.
17473 if test -n "$CONFIG_FILES"; then
17474
17475
17476 ac_cr=`echo X | tr X '\015'`
17477 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17478 # But we know of no other shell where ac_cr would be empty at this
17479 # point, so we can use a bashism as a fallback.
17480 if test "x$ac_cr" = x; then
17481   eval ac_cr=\$\'\\r\'
17482 fi
17483 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17484 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17485   ac_cs_awk_cr='\\r'
17486 else
17487   ac_cs_awk_cr=$ac_cr
17488 fi
17489
17490 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17491 _ACEOF
17492
17493
17494 {
17495   echo "cat >conf$$subs.awk <<_ACEOF" &&
17496   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17497   echo "_ACEOF"
17498 } >conf$$subs.sh ||
17499   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17500 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17501 ac_delim='%!_!# '
17502 for ac_last_try in false false false false false :; do
17503   . ./conf$$subs.sh ||
17504     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17505
17506   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17507   if test $ac_delim_n = $ac_delim_num; then
17508     break
17509   elif $ac_last_try; then
17510     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17511   else
17512     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17513   fi
17514 done
17515 rm -f conf$$subs.sh
17516
17517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17518 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17519 _ACEOF
17520 sed -n '
17521 h
17522 s/^/S["/; s/!.*/"]=/
17523 p
17524 g
17525 s/^[^!]*!//
17526 :repl
17527 t repl
17528 s/'"$ac_delim"'$//
17529 t delim
17530 :nl
17531 h
17532 s/\(.\{148\}\)..*/\1/
17533 t more1
17534 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17535 p
17536 n
17537 b repl
17538 :more1
17539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17540 p
17541 g
17542 s/.\{148\}//
17543 t nl
17544 :delim
17545 h
17546 s/\(.\{148\}\)..*/\1/
17547 t more2
17548 s/["\\]/\\&/g; s/^/"/; s/$/"/
17549 p
17550 b
17551 :more2
17552 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17553 p
17554 g
17555 s/.\{148\}//
17556 t delim
17557 ' <conf$$subs.awk | sed '
17558 /^[^""]/{
17559   N
17560   s/\n//
17561 }
17562 ' >>$CONFIG_STATUS || ac_write_fail=1
17563 rm -f conf$$subs.awk
17564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17565 _ACAWK
17566 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17567   for (key in S) S_is_set[key] = 1
17568   FS = "\a"
17569
17570 }
17571 {
17572   line = $ 0
17573   nfields = split(line, field, "@")
17574   substed = 0
17575   len = length(field[1])
17576   for (i = 2; i < nfields; i++) {
17577     key = field[i]
17578     keylen = length(key)
17579     if (S_is_set[key]) {
17580       value = S[key]
17581       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17582       len += length(value) + length(field[++i])
17583       substed = 1
17584     } else
17585       len += 1 + keylen
17586   }
17587
17588   print line
17589 }
17590
17591 _ACAWK
17592 _ACEOF
17593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17594 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17595   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17596 else
17597   cat
17598 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17599   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17600 _ACEOF
17601
17602 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17603 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17604 # trailing colons and then remove the whole line if VPATH becomes empty
17605 # (actually we leave an empty line to preserve line numbers).
17606 if test "x$srcdir" = x.; then
17607   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
17608 h
17609 s///
17610 s/^/:/
17611 s/[      ]*$/:/
17612 s/:\$(srcdir):/:/g
17613 s/:\${srcdir}:/:/g
17614 s/:@srcdir@:/:/g
17615 s/^:*//
17616 s/:*$//
17617 x
17618 s/\(=[   ]*\).*/\1/
17619 G
17620 s/\n//
17621 s/^[^=]*=[       ]*$//
17622 }'
17623 fi
17624
17625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17626 fi # test -n "$CONFIG_FILES"
17627
17628 # Set up the scripts for CONFIG_HEADERS section.
17629 # No need to generate them if there are no CONFIG_HEADERS.
17630 # This happens for instance with `./config.status Makefile'.
17631 if test -n "$CONFIG_HEADERS"; then
17632 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17633 BEGIN {
17634 _ACEOF
17635
17636 # Transform confdefs.h into an awk script `defines.awk', embedded as
17637 # here-document in config.status, that substitutes the proper values into
17638 # config.h.in to produce config.h.
17639
17640 # Create a delimiter string that does not exist in confdefs.h, to ease
17641 # handling of long lines.
17642 ac_delim='%!_!# '
17643 for ac_last_try in false false :; do
17644   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17645   if test -z "$ac_tt"; then
17646     break
17647   elif $ac_last_try; then
17648     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17649   else
17650     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17651   fi
17652 done
17653
17654 # For the awk script, D is an array of macro values keyed by name,
17655 # likewise P contains macro parameters if any.  Preserve backslash
17656 # newline sequences.
17657
17658 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17659 sed -n '
17660 s/.\{148\}/&'"$ac_delim"'/g
17661 t rset
17662 :rset
17663 s/^[     ]*#[    ]*define[       ][      ]*/ /
17664 t def
17665 d
17666 :def
17667 s/\\$//
17668 t bsnl
17669 s/["\\]/\\&/g
17670 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17671 D["\1"]=" \3"/p
17672 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
17673 d
17674 :bsnl
17675 s/["\\]/\\&/g
17676 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
17677 D["\1"]=" \3\\\\\\n"\\/p
17678 t cont
17679 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17680 t cont
17681 d
17682 :cont
17683 n
17684 s/.\{148\}/&'"$ac_delim"'/g
17685 t clear
17686 :clear
17687 s/\\$//
17688 t bsnlc
17689 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17690 d
17691 :bsnlc
17692 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17693 b cont
17694 ' <confdefs.h | sed '
17695 s/'"$ac_delim"'/"\\\
17696 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17697
17698 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17699   for (key in D) D_is_set[key] = 1
17700   FS = "\a"
17701 }
17702 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17703   line = \$ 0
17704   split(line, arg, " ")
17705   if (arg[1] == "#") {
17706     defundef = arg[2]
17707     mac1 = arg[3]
17708   } else {
17709     defundef = substr(arg[1], 2)
17710     mac1 = arg[2]
17711   }
17712   split(mac1, mac2, "(") #)
17713   macro = mac2[1]
17714   prefix = substr(line, 1, index(line, defundef) - 1)
17715   if (D_is_set[macro]) {
17716     # Preserve the white space surrounding the "#".
17717     print prefix "define", macro P[macro] D[macro]
17718     next
17719   } else {
17720     # Replace #undef with comments.  This is necessary, for example,
17721     # in the case of _POSIX_SOURCE, which is predefined and required
17722     # on some systems where configure will not decide to define it.
17723     if (defundef == "undef") {
17724       print "/*", prefix defundef, macro, "*/"
17725       next
17726     }
17727   }
17728 }
17729 { print }
17730 _ACAWK
17731 _ACEOF
17732 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17733   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17734 fi # test -n "$CONFIG_HEADERS"
17735
17736
17737 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
17738 shift
17739 for ac_tag
17740 do
17741   case $ac_tag in
17742   :[FHLC]) ac_mode=$ac_tag; continue;;
17743   esac
17744   case $ac_mode$ac_tag in
17745   :[FHL]*:*);;
17746   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17747   :[FH]-) ac_tag=-:-;;
17748   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17749   esac
17750   ac_save_IFS=$IFS
17751   IFS=:
17752   set x $ac_tag
17753   IFS=$ac_save_IFS
17754   shift
17755   ac_file=$1
17756   shift
17757
17758   case $ac_mode in
17759   :L) ac_source=$1;;
17760   :[FH])
17761     ac_file_inputs=
17762     for ac_f
17763     do
17764       case $ac_f in
17765       -) ac_f="$ac_tmp/stdin";;
17766       *) # Look for the file first in the build tree, then in the source tree
17767          # (if the path is not absolute).  The absolute path cannot be DOS-style,
17768          # because $ac_f cannot contain `:'.
17769          test -f "$ac_f" ||
17770            case $ac_f in
17771            [\\/$]*) false;;
17772            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17773            esac ||
17774            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17775       esac
17776       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17777       as_fn_append ac_file_inputs " '$ac_f'"
17778     done
17779
17780     # Let's still pretend it is `configure' which instantiates (i.e., don't
17781     # use $as_me), people would be surprised to read:
17782     #    /* config.h.  Generated by config.status.  */
17783     configure_input='Generated from '`
17784           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17785         `' by configure.'
17786     if test x"$ac_file" != x-; then
17787       configure_input="$ac_file.  $configure_input"
17788       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17789 $as_echo "$as_me: creating $ac_file" >&6;}
17790     fi
17791     # Neutralize special characters interpreted by sed in replacement strings.
17792     case $configure_input in #(
17793     *\&* | *\|* | *\\* )
17794        ac_sed_conf_input=`$as_echo "$configure_input" |
17795        sed 's/[\\\\&|]/\\\\&/g'`;; #(
17796     *) ac_sed_conf_input=$configure_input;;
17797     esac
17798
17799     case $ac_tag in
17800     *:-:* | *:-) cat >"$ac_tmp/stdin" \
17801       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17802     esac
17803     ;;
17804   esac
17805
17806   ac_dir=`$as_dirname -- "$ac_file" ||
17807 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17808          X"$ac_file" : 'X\(//\)[^/]' \| \
17809          X"$ac_file" : 'X\(//\)$' \| \
17810          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17811 $as_echo X"$ac_file" |
17812     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17813             s//\1/
17814             q
17815           }
17816           /^X\(\/\/\)[^/].*/{
17817             s//\1/
17818             q
17819           }
17820           /^X\(\/\/\)$/{
17821             s//\1/
17822             q
17823           }
17824           /^X\(\/\).*/{
17825             s//\1/
17826             q
17827           }
17828           s/.*/./; q'`
17829   as_dir="$ac_dir"; as_fn_mkdir_p
17830   ac_builddir=.
17831
17832 case "$ac_dir" in
17833 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17834 *)
17835   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17836   # A ".." for each directory in $ac_dir_suffix.
17837   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17838   case $ac_top_builddir_sub in
17839   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17840   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17841   esac ;;
17842 esac
17843 ac_abs_top_builddir=$ac_pwd
17844 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17845 # for backward compatibility:
17846 ac_top_builddir=$ac_top_build_prefix
17847
17848 case $srcdir in
17849   .)  # We are building in place.
17850     ac_srcdir=.
17851     ac_top_srcdir=$ac_top_builddir_sub
17852     ac_abs_top_srcdir=$ac_pwd ;;
17853   [\\/]* | ?:[\\/]* )  # Absolute name.
17854     ac_srcdir=$srcdir$ac_dir_suffix;
17855     ac_top_srcdir=$srcdir
17856     ac_abs_top_srcdir=$srcdir ;;
17857   *) # Relative name.
17858     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17859     ac_top_srcdir=$ac_top_build_prefix$srcdir
17860     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17861 esac
17862 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17863
17864
17865   case $ac_mode in
17866   :F)
17867   #
17868   # CONFIG_FILE
17869   #
17870
17871   case $INSTALL in
17872   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17873   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17874   esac
17875   ac_MKDIR_P=$MKDIR_P
17876   case $MKDIR_P in
17877   [\\/$]* | ?:[\\/]* ) ;;
17878   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17879   esac
17880 _ACEOF
17881
17882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17883 # If the template does not know about datarootdir, expand it.
17884 # FIXME: This hack should be removed a few years after 2.60.
17885 ac_datarootdir_hack=; ac_datarootdir_seen=
17886 ac_sed_dataroot='
17887 /datarootdir/ {
17888   p
17889   q
17890 }
17891 /@datadir@/p
17892 /@docdir@/p
17893 /@infodir@/p
17894 /@localedir@/p
17895 /@mandir@/p'
17896 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17897 *datarootdir*) ac_datarootdir_seen=yes;;
17898 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17899   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17900 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17901 _ACEOF
17902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17903   ac_datarootdir_hack='
17904   s&@datadir@&$datadir&g
17905   s&@docdir@&$docdir&g
17906   s&@infodir@&$infodir&g
17907   s&@localedir@&$localedir&g
17908   s&@mandir@&$mandir&g
17909   s&\\\${datarootdir}&$datarootdir&g' ;;
17910 esac
17911 _ACEOF
17912
17913 # Neutralize VPATH when `$srcdir' = `.'.
17914 # Shell code in configure.ac might set extrasub.
17915 # FIXME: do we really want to maintain this feature?
17916 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17917 ac_sed_extra="$ac_vpsub
17918 $extrasub
17919 _ACEOF
17920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17921 :t
17922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17923 s|@configure_input@|$ac_sed_conf_input|;t t
17924 s&@top_builddir@&$ac_top_builddir_sub&;t t
17925 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17926 s&@srcdir@&$ac_srcdir&;t t
17927 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17928 s&@top_srcdir@&$ac_top_srcdir&;t t
17929 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17930 s&@builddir@&$ac_builddir&;t t
17931 s&@abs_builddir@&$ac_abs_builddir&;t t
17932 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17933 s&@INSTALL@&$ac_INSTALL&;t t
17934 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17935 $ac_datarootdir_hack
17936 "
17937 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17938   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17939
17940 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17941   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17942   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
17943       "$ac_tmp/out"`; test -z "$ac_out"; } &&
17944   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17945 which seems to be undefined.  Please make sure it is defined" >&5
17946 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17947 which seems to be undefined.  Please make sure it is defined" >&2;}
17948
17949   rm -f "$ac_tmp/stdin"
17950   case $ac_file in
17951   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17952   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17953   esac \
17954   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17955  ;;
17956   :H)
17957   #
17958   # CONFIG_HEADER
17959   #
17960   if test x"$ac_file" != x-; then
17961     {
17962       $as_echo "/* $configure_input  */" \
17963       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17964     } >"$ac_tmp/config.h" \
17965       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17966     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17967       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17968 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17969     else
17970       rm -f "$ac_file"
17971       mv "$ac_tmp/config.h" "$ac_file" \
17972         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17973     fi
17974   else
17975     $as_echo "/* $configure_input  */" \
17976       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17977       || as_fn_error $? "could not create -" "$LINENO" 5
17978   fi
17979 # Compute "$ac_file"'s index in $config_headers.
17980 _am_arg="$ac_file"
17981 _am_stamp_count=1
17982 for _am_header in $config_headers :; do
17983   case $_am_header in
17984     $_am_arg | $_am_arg:* )
17985       break ;;
17986     * )
17987       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17988   esac
17989 done
17990 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17991 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17992          X"$_am_arg" : 'X\(//\)[^/]' \| \
17993          X"$_am_arg" : 'X\(//\)$' \| \
17994          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17995 $as_echo X"$_am_arg" |
17996     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17997             s//\1/
17998             q
17999           }
18000           /^X\(\/\/\)[^/].*/{
18001             s//\1/
18002             q
18003           }
18004           /^X\(\/\/\)$/{
18005             s//\1/
18006             q
18007           }
18008           /^X\(\/\).*/{
18009             s//\1/
18010             q
18011           }
18012           s/.*/./; q'`/stamp-h$_am_stamp_count
18013  ;;
18014
18015   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18016 $as_echo "$as_me: executing $ac_file commands" >&6;}
18017  ;;
18018   esac
18019
18020
18021   case $ac_file$ac_mode in
18022     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18023   # Older Autoconf quotes --file arguments for eval, but not when files
18024   # are listed without --file.  Let's play safe and only enable the eval
18025   # if we detect the quoting.
18026   case $CONFIG_FILES in
18027   *\'*) eval set x "$CONFIG_FILES" ;;
18028   *)   set x $CONFIG_FILES ;;
18029   esac
18030   shift
18031   for mf
18032   do
18033     # Strip MF so we end up with the name of the file.
18034     mf=`echo "$mf" | sed -e 's/:.*$//'`
18035     # Check whether this is an Automake generated Makefile or not.
18036     # We used to match only the files named 'Makefile.in', but
18037     # some people rename them; so instead we look at the file content.
18038     # Grep'ing the first line is not enough: some people post-process
18039     # each Makefile.in and add a new line on top of each file to say so.
18040     # Grep'ing the whole file is not good either: AIX grep has a line
18041     # limit of 2048, but all sed's we know have understand at least 4000.
18042     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18043       dirpart=`$as_dirname -- "$mf" ||
18044 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18045          X"$mf" : 'X\(//\)[^/]' \| \
18046          X"$mf" : 'X\(//\)$' \| \
18047          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18048 $as_echo X"$mf" |
18049     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18050             s//\1/
18051             q
18052           }
18053           /^X\(\/\/\)[^/].*/{
18054             s//\1/
18055             q
18056           }
18057           /^X\(\/\/\)$/{
18058             s//\1/
18059             q
18060           }
18061           /^X\(\/\).*/{
18062             s//\1/
18063             q
18064           }
18065           s/.*/./; q'`
18066     else
18067       continue
18068     fi
18069     # Extract the definition of DEPDIR, am__include, and am__quote
18070     # from the Makefile without running 'make'.
18071     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18072     test -z "$DEPDIR" && continue
18073     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18074     test -z "$am__include" && continue
18075     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18076     # Find all dependency output files, they are included files with
18077     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18078     # simplest approach to changing $(DEPDIR) to its actual value in the
18079     # expansion.
18080     for file in `sed -n "
18081       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18082          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18083       # Make sure the directory exists.
18084       test -f "$dirpart/$file" && continue
18085       fdir=`$as_dirname -- "$file" ||
18086 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18087          X"$file" : 'X\(//\)[^/]' \| \
18088          X"$file" : 'X\(//\)$' \| \
18089          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18090 $as_echo X"$file" |
18091     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18092             s//\1/
18093             q
18094           }
18095           /^X\(\/\/\)[^/].*/{
18096             s//\1/
18097             q
18098           }
18099           /^X\(\/\/\)$/{
18100             s//\1/
18101             q
18102           }
18103           /^X\(\/\).*/{
18104             s//\1/
18105             q
18106           }
18107           s/.*/./; q'`
18108       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18109       # echo "creating $dirpart/$file"
18110       echo '# dummy' > "$dirpart/$file"
18111     done
18112   done
18113 }
18114  ;;
18115     "libtool":C)
18116
18117     # See if we are running on zsh, and set the options that allow our
18118     # commands through without removal of \ escapes.
18119     if test -n "${ZSH_VERSION+set}"; then
18120       setopt NO_GLOB_SUBST
18121     fi
18122
18123     cfgfile=${ofile}T
18124     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18125     $RM "$cfgfile"
18126
18127     cat <<_LT_EOF >> "$cfgfile"
18128 #! $SHELL
18129 # Generated automatically by $as_me ($PACKAGE) $VERSION
18130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18131
18132 # Provide generalized library-building support services.
18133 # Written by Gordon Matzigkeit, 1996
18134
18135 # Copyright (C) 2014 Free Software Foundation, Inc.
18136 # This is free software; see the source for copying conditions.  There is NO
18137 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18138
18139 # GNU Libtool is free software; you can redistribute it and/or modify
18140 # it under the terms of the GNU General Public License as published by
18141 # the Free Software Foundation; either version 2 of of the License, or
18142 # (at your option) any later version.
18143 #
18144 # As a special exception to the GNU General Public License, if you
18145 # distribute this file as part of a program or library that is built
18146 # using GNU Libtool, you may include this file under the  same
18147 # distribution terms that you use for the rest of that program.
18148 #
18149 # GNU Libtool is distributed in the hope that it will be useful, but
18150 # WITHOUT ANY WARRANTY; without even the implied warranty of
18151 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18152 # GNU General Public License for more details.
18153 #
18154 # You should have received a copy of the GNU General Public License
18155 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18156
18157
18158 # The names of the tagged configurations supported by this script.
18159 available_tags=''
18160
18161 # Configured defaults for sys_lib_dlsearch_path munging.
18162 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18163
18164 # ### BEGIN LIBTOOL CONFIG
18165
18166 # Which release of libtool.m4 was used?
18167 macro_version=$macro_version
18168 macro_revision=$macro_revision
18169
18170 # Assembler program.
18171 AS=$lt_AS
18172
18173 # DLL creation program.
18174 DLLTOOL=$lt_DLLTOOL
18175
18176 # Object dumper program.
18177 OBJDUMP=$lt_OBJDUMP
18178
18179 # Whether or not to build static libraries.
18180 build_old_libs=$enable_static
18181
18182 # Whether or not to build shared libraries.
18183 build_libtool_libs=$enable_shared
18184
18185 # What type of objects to build.
18186 pic_mode=$pic_mode
18187
18188 # Whether or not to optimize for fast installation.
18189 fast_install=$enable_fast_install
18190
18191 # Shared archive member basename,for filename based shared library versioning on AIX.
18192 shared_archive_member_spec=$shared_archive_member_spec
18193
18194 # Shell to use when invoking shell scripts.
18195 SHELL=$lt_SHELL
18196
18197 # An echo program that protects backslashes.
18198 ECHO=$lt_ECHO
18199
18200 # The PATH separator for the build system.
18201 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18202
18203 # The host system.
18204 host_alias=$host_alias
18205 host=$host
18206 host_os=$host_os
18207
18208 # The build system.
18209 build_alias=$build_alias
18210 build=$build
18211 build_os=$build_os
18212
18213 # A sed program that does not truncate output.
18214 SED=$lt_SED
18215
18216 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18217 Xsed="\$SED -e 1s/^X//"
18218
18219 # A grep program that handles long lines.
18220 GREP=$lt_GREP
18221
18222 # An ERE matcher.
18223 EGREP=$lt_EGREP
18224
18225 # A literal string matcher.
18226 FGREP=$lt_FGREP
18227
18228 # A BSD- or MS-compatible name lister.
18229 NM=$lt_NM
18230
18231 # Whether we need soft or hard links.
18232 LN_S=$lt_LN_S
18233
18234 # What is the maximum length of a command?
18235 max_cmd_len=$max_cmd_len
18236
18237 # Object file suffix (normally "o").
18238 objext=$ac_objext
18239
18240 # Executable file suffix (normally "").
18241 exeext=$exeext
18242
18243 # whether the shell understands "unset".
18244 lt_unset=$lt_unset
18245
18246 # turn spaces into newlines.
18247 SP2NL=$lt_lt_SP2NL
18248
18249 # turn newlines into spaces.
18250 NL2SP=$lt_lt_NL2SP
18251
18252 # convert \$build file names to \$host format.
18253 to_host_file_cmd=$lt_cv_to_host_file_cmd
18254
18255 # convert \$build files to toolchain format.
18256 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18257
18258 # Method to check whether dependent libraries are shared objects.
18259 deplibs_check_method=$lt_deplibs_check_method
18260
18261 # Command to use when deplibs_check_method = "file_magic".
18262 file_magic_cmd=$lt_file_magic_cmd
18263
18264 # How to find potential files when deplibs_check_method = "file_magic".
18265 file_magic_glob=$lt_file_magic_glob
18266
18267 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18268 want_nocaseglob=$lt_want_nocaseglob
18269
18270 # Command to associate shared and link libraries.
18271 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18272
18273 # The archiver.
18274 AR=$lt_AR
18275
18276 # Flags to create an archive.
18277 AR_FLAGS=$lt_AR_FLAGS
18278
18279 # How to feed a file listing to the archiver.
18280 archiver_list_spec=$lt_archiver_list_spec
18281
18282 # A symbol stripping program.
18283 STRIP=$lt_STRIP
18284
18285 # Commands used to install an old-style archive.
18286 RANLIB=$lt_RANLIB
18287 old_postinstall_cmds=$lt_old_postinstall_cmds
18288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18289
18290 # Whether to use a lock for old archive extraction.
18291 lock_old_archive_extraction=$lock_old_archive_extraction
18292
18293 # A C compiler.
18294 LTCC=$lt_CC
18295
18296 # LTCC compiler flags.
18297 LTCFLAGS=$lt_CFLAGS
18298
18299 # Take the output of nm and produce a listing of raw symbols and C names.
18300 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18301
18302 # Transform the output of nm in a proper C declaration.
18303 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18304
18305 # Transform the output of nm into a list of symbols to manually relocate.
18306 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18307
18308 # Transform the output of nm in a C name address pair.
18309 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18310
18311 # Transform the output of nm in a C name address pair when lib prefix is needed.
18312 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18313
18314 # The name lister interface.
18315 nm_interface=$lt_lt_cv_nm_interface
18316
18317 # Specify filename containing input files for \$NM.
18318 nm_file_list_spec=$lt_nm_file_list_spec
18319
18320 # The root where to search for dependent libraries,and where our libraries should be installed.
18321 lt_sysroot=$lt_sysroot
18322
18323 # Command to truncate a binary pipe.
18324 lt_truncate_bin=$lt_lt_cv_truncate_bin
18325
18326 # The name of the directory that contains temporary libtool files.
18327 objdir=$objdir
18328
18329 # Used to examine libraries when file_magic_cmd begins with "file".
18330 MAGIC_CMD=$MAGIC_CMD
18331
18332 # Must we lock files when doing compilation?
18333 need_locks=$lt_need_locks
18334
18335 # Manifest tool.
18336 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18337
18338 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18339 DSYMUTIL=$lt_DSYMUTIL
18340
18341 # Tool to change global to local symbols on Mac OS X.
18342 NMEDIT=$lt_NMEDIT
18343
18344 # Tool to manipulate fat objects and archives on Mac OS X.
18345 LIPO=$lt_LIPO
18346
18347 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18348 OTOOL=$lt_OTOOL
18349
18350 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18351 OTOOL64=$lt_OTOOL64
18352
18353 # Old archive suffix (normally "a").
18354 libext=$libext
18355
18356 # Shared library suffix (normally ".so").
18357 shrext_cmds=$lt_shrext_cmds
18358
18359 # The commands to extract the exported symbol list from a shared archive.
18360 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18361
18362 # Variables whose values should be saved in libtool wrapper scripts and
18363 # restored at link time.
18364 variables_saved_for_relink=$lt_variables_saved_for_relink
18365
18366 # Do we need the "lib" prefix for modules?
18367 need_lib_prefix=$need_lib_prefix
18368
18369 # Do we need a version for libraries?
18370 need_version=$need_version
18371
18372 # Library versioning type.
18373 version_type=$version_type
18374
18375 # Shared library runtime path variable.
18376 runpath_var=$runpath_var
18377
18378 # Shared library path variable.
18379 shlibpath_var=$shlibpath_var
18380
18381 # Is shlibpath searched before the hard-coded library search path?
18382 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18383
18384 # Format of library name prefix.
18385 libname_spec=$lt_libname_spec
18386
18387 # List of archive names.  First name is the real one, the rest are links.
18388 # The last name is the one that the linker finds with -lNAME
18389 library_names_spec=$lt_library_names_spec
18390
18391 # The coded name of the library, if different from the real name.
18392 soname_spec=$lt_soname_spec
18393
18394 # Permission mode override for installation of shared libraries.
18395 install_override_mode=$lt_install_override_mode
18396
18397 # Command to use after installation of a shared archive.
18398 postinstall_cmds=$lt_postinstall_cmds
18399
18400 # Command to use after uninstallation of a shared archive.
18401 postuninstall_cmds=$lt_postuninstall_cmds
18402
18403 # Commands used to finish a libtool library installation in a directory.
18404 finish_cmds=$lt_finish_cmds
18405
18406 # As "finish_cmds", except a single script fragment to be evaled but
18407 # not shown.
18408 finish_eval=$lt_finish_eval
18409
18410 # Whether we should hardcode library paths into libraries.
18411 hardcode_into_libs=$hardcode_into_libs
18412
18413 # Compile-time system search path for libraries.
18414 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18415
18416 # Detected run-time system search path for libraries.
18417 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18418
18419 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18420 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18421
18422 # Whether dlopen is supported.
18423 dlopen_support=$enable_dlopen
18424
18425 # Whether dlopen of programs is supported.
18426 dlopen_self=$enable_dlopen_self
18427
18428 # Whether dlopen of statically linked programs is supported.
18429 dlopen_self_static=$enable_dlopen_self_static
18430
18431 # Commands to strip libraries.
18432 old_striplib=$lt_old_striplib
18433 striplib=$lt_striplib
18434
18435
18436 # The linker used to build libraries.
18437 LD=$lt_LD
18438
18439 # How to create reloadable object files.
18440 reload_flag=$lt_reload_flag
18441 reload_cmds=$lt_reload_cmds
18442
18443 # Commands used to build an old-style archive.
18444 old_archive_cmds=$lt_old_archive_cmds
18445
18446 # A language specific compiler.
18447 CC=$lt_compiler
18448
18449 # Is the compiler the GNU compiler?
18450 with_gcc=$GCC
18451
18452 # Compiler flag to turn off builtin functions.
18453 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18454
18455 # Additional compiler flags for building library objects.
18456 pic_flag=$lt_lt_prog_compiler_pic
18457
18458 # How to pass a linker flag through the compiler.
18459 wl=$lt_lt_prog_compiler_wl
18460
18461 # Compiler flag to prevent dynamic linking.
18462 link_static_flag=$lt_lt_prog_compiler_static
18463
18464 # Does compiler simultaneously support -c and -o options?
18465 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18466
18467 # Whether or not to add -lc for building shared libraries.
18468 build_libtool_need_lc=$archive_cmds_need_lc
18469
18470 # Whether or not to disallow shared libs when runtime libs are static.
18471 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18472
18473 # Compiler flag to allow reflexive dlopens.
18474 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18475
18476 # Compiler flag to generate shared objects directly from archives.
18477 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18478
18479 # Whether the compiler copes with passing no objects directly.
18480 compiler_needs_object=$lt_compiler_needs_object
18481
18482 # Create an old-style archive from a shared archive.
18483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18484
18485 # Create a temporary old-style archive to link instead of a shared archive.
18486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18487
18488 # Commands used to build a shared archive.
18489 archive_cmds=$lt_archive_cmds
18490 archive_expsym_cmds=$lt_archive_expsym_cmds
18491
18492 # Commands used to build a loadable module if different from building
18493 # a shared archive.
18494 module_cmds=$lt_module_cmds
18495 module_expsym_cmds=$lt_module_expsym_cmds
18496
18497 # Whether we are building with GNU ld or not.
18498 with_gnu_ld=$lt_with_gnu_ld
18499
18500 # Flag that allows shared libraries with undefined symbols to be built.
18501 allow_undefined_flag=$lt_allow_undefined_flag
18502
18503 # Flag that enforces no undefined symbols.
18504 no_undefined_flag=$lt_no_undefined_flag
18505
18506 # Flag to hardcode \$libdir into a binary during linking.
18507 # This must work even if \$libdir does not exist
18508 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18509
18510 # Whether we need a single "-rpath" flag with a separated argument.
18511 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18512
18513 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18514 # DIR into the resulting binary.
18515 hardcode_direct=$hardcode_direct
18516
18517 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
18518 # DIR into the resulting binary and the resulting library dependency is
18519 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
18520 # library is relocated.
18521 hardcode_direct_absolute=$hardcode_direct_absolute
18522
18523 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18524 # into the resulting binary.
18525 hardcode_minus_L=$hardcode_minus_L
18526
18527 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18528 # into the resulting binary.
18529 hardcode_shlibpath_var=$hardcode_shlibpath_var
18530
18531 # Set to "yes" if building a shared library automatically hardcodes DIR
18532 # into the library and all subsequent libraries and executables linked
18533 # against it.
18534 hardcode_automatic=$hardcode_automatic
18535
18536 # Set to yes if linker adds runtime paths of dependent libraries
18537 # to runtime path list.
18538 inherit_rpath=$inherit_rpath
18539
18540 # Whether libtool must link a program against all its dependency libraries.
18541 link_all_deplibs=$link_all_deplibs
18542
18543 # Set to "yes" if exported symbols are required.
18544 always_export_symbols=$always_export_symbols
18545
18546 # The commands to list exported symbols.
18547 export_symbols_cmds=$lt_export_symbols_cmds
18548
18549 # Symbols that should not be listed in the preloaded symbols.
18550 exclude_expsyms=$lt_exclude_expsyms
18551
18552 # Symbols that must always be exported.
18553 include_expsyms=$lt_include_expsyms
18554
18555 # Commands necessary for linking programs (against libraries) with templates.
18556 prelink_cmds=$lt_prelink_cmds
18557
18558 # Commands necessary for finishing linking programs.
18559 postlink_cmds=$lt_postlink_cmds
18560
18561 # Specify filename containing input files.
18562 file_list_spec=$lt_file_list_spec
18563
18564 # How to hardcode a shared library path into an executable.
18565 hardcode_action=$hardcode_action
18566
18567 # ### END LIBTOOL CONFIG
18568
18569 _LT_EOF
18570
18571     cat <<'_LT_EOF' >> "$cfgfile"
18572
18573 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
18574
18575 # func_munge_path_list VARIABLE PATH
18576 # -----------------------------------
18577 # VARIABLE is name of variable containing _space_ separated list of
18578 # directories to be munged by the contents of PATH, which is string
18579 # having a format:
18580 # "DIR[:DIR]:"
18581 #       string "DIR[ DIR]" will be prepended to VARIABLE
18582 # ":DIR[:DIR]"
18583 #       string "DIR[ DIR]" will be appended to VARIABLE
18584 # "DIRP[:DIRP]::[DIRA:]DIRA"
18585 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
18586 #       "DIRA[ DIRA]" will be appended to VARIABLE
18587 # "DIR[:DIR]"
18588 #       VARIABLE will be replaced by "DIR[ DIR]"
18589 func_munge_path_list ()
18590 {
18591     case x$2 in
18592     x)
18593         ;;
18594     *:)
18595         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
18596         ;;
18597     x:*)
18598         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
18599         ;;
18600     *::*)
18601         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
18602         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
18603         ;;
18604     *)
18605         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
18606         ;;
18607     esac
18608 }
18609
18610
18611 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
18612 func_cc_basename ()
18613 {
18614     for cc_temp in $*""; do
18615       case $cc_temp in
18616         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18617         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18618         \-*) ;;
18619         *) break;;
18620       esac
18621     done
18622     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
18623 }
18624
18625
18626 # ### END FUNCTIONS SHARED WITH CONFIGURE
18627
18628 _LT_EOF
18629
18630   case $host_os in
18631   aix3*)
18632     cat <<\_LT_EOF >> "$cfgfile"
18633 # AIX sometimes has problems with the GCC collect2 program.  For some
18634 # reason, if we set the COLLECT_NAMES environment variable, the problems
18635 # vanish in a puff of smoke.
18636 if test set != "${COLLECT_NAMES+set}"; then
18637   COLLECT_NAMES=
18638   export COLLECT_NAMES
18639 fi
18640 _LT_EOF
18641     ;;
18642   esac
18643
18644
18645 ltmain=$ac_aux_dir/ltmain.sh
18646
18647
18648   # We use sed instead of cat because bash on DJGPP gets confused if
18649   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18650   # text mode, it properly converts lines to CR/LF.  This bash problem
18651   # is reportedly fixed, but why not run on old versions too?
18652   sed '$q' "$ltmain" >> "$cfgfile" \
18653      || (rm -f "$cfgfile"; exit 1)
18654
18655    mv -f "$cfgfile" "$ofile" ||
18656     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18657   chmod +x "$ofile"
18658
18659  ;;
18660
18661   esac
18662 done # for ac_tag
18663
18664
18665 as_fn_exit 0
18666 _ACEOF
18667 ac_clean_files=$ac_clean_files_save
18668
18669 test $ac_write_fail = 0 ||
18670   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18671
18672
18673 # configure is writing to config.log, and then calls config.status.
18674 # config.status does its own redirection, appending to config.log.
18675 # Unfortunately, on DOS this fails, as config.log is still kept open
18676 # by configure, so config.status won't be able to write to it; its
18677 # output is simply discarded.  So we exec the FD to /dev/null,
18678 # effectively closing config.log, so it can be properly (re)opened and
18679 # appended to by config.status.  When coming back to configure, we
18680 # need to make the FD available again.
18681 if test "$no_create" != yes; then
18682   ac_cs_success=:
18683   ac_config_status_args=
18684   test "$silent" = yes &&
18685     ac_config_status_args="$ac_config_status_args --quiet"
18686   exec 5>/dev/null
18687   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18688   exec 5>>config.log
18689   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18690   # would make configure fail if this is the last instruction.
18691   $ac_cs_success || as_fn_exit 1
18692 fi
18693 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18694   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18695 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18696 fi
18697
18698
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
18700         pygobject $VERSION
18701
18702         Is release:                     $ax_is_release
18703         Using python interpreter:       $PYTHON
18704         cairo support:                  $enable_cairo
18705         code coverage support:          $enable_code_coverage
18706 " >&5
18707 $as_echo "
18708         pygobject $VERSION
18709
18710         Is release:                     $ax_is_release
18711         Using python interpreter:       $PYTHON
18712         cairo support:                  $enable_cairo
18713         code coverage support:          $enable_code_coverage
18714 " >&6; }
18715