Imported Upstream version 3.9.91
[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.9.91.
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.9.91'
595 PACKAGE_STRING='pygobject 3.9.91'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://live.gnome.org/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 GNOME_CODE_COVERAGE_RULES
641 CODE_COVERAGE_LDFLAGS
642 CODE_COVERAGE_CFLAGS
643 GENHTML
644 LCOV
645 CODE_COVERAGE_ENABLED
646 CODE_COVERAGE_ENABLED_FALSE
647 CODE_COVERAGE_ENABLED_TRUE
648 WARN_CFLAGS
649 INTROSPECTION_COMPILER
650 INTROSPECTION_SCANNER
651 ENABLE_CAIRO_FALSE
652 ENABLE_CAIRO_TRUE
653 PYCAIRO_LIBS
654 PYCAIRO_CFLAGS
655 CAIRO_LIBS
656 CAIRO_CFLAGS
657 GI_DATADIR
658 GI_LIBS
659 GI_CFLAGS
660 GIO_LIBS
661 GIO_CFLAGS
662 LIBFFI_PC
663 HAVE_LIBFFI_FALSE
664 HAVE_LIBFFI_TRUE
665 FFI_LIBS
666 FFI_CFLAGS
667 DATADIR
668 PYTHON_BASENAME
669 GLIB_COMPILE_RESOURCES
670 GLIB_MKENUMS
671 GOBJECT_QUERY
672 GLIB_GENMARSHAL
673 GLIB_LIBS
674 GLIB_CFLAGS
675 PKG_CONFIG_LIBDIR
676 PKG_CONFIG_PATH
677 PKG_CONFIG
678 THREADING_CFLAGS
679 PLATFORM
680 PYTHON_LIB_LOC
681 PYTHON_LIBS
682 PYTHON_INCLUDES
683 PYTHON_SO
684 pkgpyexecdir
685 pyexecdir
686 pkgpythondir
687 pythondir
688 PYTHON_PLATFORM
689 PYTHON_EXEC_PREFIX
690 PYTHON_PREFIX
691 PYTHON_VERSION
692 PYTHON
693 CPP
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 MANIFEST_TOOL
700 RANLIB
701 ac_ct_AR
702 AR
703 LN_S
704 NM
705 ac_ct_DUMPBIN
706 DUMPBIN
707 LD
708 FGREP
709 EGREP
710 GREP
711 SED
712 am__fastdepCC_FALSE
713 am__fastdepCC_TRUE
714 CCDEPMODE
715 am__nodep
716 AMDEPBACKSLASH
717 AMDEP_FALSE
718 AMDEP_TRUE
719 am__quote
720 am__include
721 DEPDIR
722 OBJEXT
723 EXEEXT
724 ac_ct_CC
725 CPPFLAGS
726 LDFLAGS
727 CFLAGS
728 CC
729 LIBTOOL
730 OBJDUMP
731 DLLTOOL
732 AS
733 OS_WIN32_FALSE
734 OS_WIN32_TRUE
735 PLATFORM_WIN32_FALSE
736 PLATFORM_WIN32_TRUE
737 host_os
738 host_vendor
739 host_cpu
740 host
741 build_os
742 build_vendor
743 build_cpu
744 build
745 am__untar
746 am__tar
747 AMTAR
748 am__leading_dot
749 SET_MAKE
750 AWK
751 mkdir_p
752 MKDIR_P
753 INSTALL_STRIP_PROGRAM
754 STRIP
755 install_sh
756 MAKEINFO
757 AUTOHEADER
758 AUTOMAKE
759 AUTOCONF
760 ACLOCAL
761 VERSION
762 PACKAGE
763 CYGPATH_W
764 am__isrc
765 INSTALL_DATA
766 INSTALL_SCRIPT
767 INSTALL_PROGRAM
768 AM_BACKSLASH
769 AM_DEFAULT_VERBOSITY
770 AM_DEFAULT_V
771 AM_V
772 PYGOBJECT_MICRO_VERSION
773 PYGOBJECT_MINOR_VERSION
774 PYGOBJECT_MAJOR_VERSION
775 ACLOCAL_AMFLAGS
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_silent_rules
818 enable_static
819 enable_shared
820 with_pic
821 enable_fast_install
822 enable_dependency_tracking
823 with_gnu_ld
824 with_sysroot
825 enable_libtool_lock
826 with_python
827 enable_thread
828 enable_glibtest
829 with_ffi
830 enable_cairo
831 enable_compile_warnings
832 enable_iso_c
833 enable_code_coverage
834 '
835       ac_precious_vars='build_alias
836 host_alias
837 target_alias
838 CC
839 CFLAGS
840 LDFLAGS
841 LIBS
842 CPPFLAGS
843 CPP
844 PYTHON
845 PKG_CONFIG
846 PKG_CONFIG_PATH
847 PKG_CONFIG_LIBDIR
848 FFI_CFLAGS
849 FFI_LIBS
850 GIO_CFLAGS
851 GIO_LIBS
852 GI_CFLAGS
853 GI_LIBS
854 CAIRO_CFLAGS
855 CAIRO_LIBS
856 PYCAIRO_CFLAGS
857 PYCAIRO_LIBS'
858
859
860 # Initialize some variables set by options.
861 ac_init_help=
862 ac_init_version=false
863 ac_unrecognized_opts=
864 ac_unrecognized_sep=
865 # The variables have the same names as the options, with
866 # dashes changed to underlines.
867 cache_file=/dev/null
868 exec_prefix=NONE
869 no_create=
870 no_recursion=
871 prefix=NONE
872 program_prefix=NONE
873 program_suffix=NONE
874 program_transform_name=s,x,x,
875 silent=
876 site=
877 srcdir=
878 verbose=
879 x_includes=NONE
880 x_libraries=NONE
881
882 # Installation directory options.
883 # These are left unexpanded so users can "make install exec_prefix=/foo"
884 # and all the variables that are supposed to be based on exec_prefix
885 # by default will actually change.
886 # Use braces instead of parens because sh, perl, etc. also accept them.
887 # (The list follows the same order as the GNU Coding Standards.)
888 bindir='${exec_prefix}/bin'
889 sbindir='${exec_prefix}/sbin'
890 libexecdir='${exec_prefix}/libexec'
891 datarootdir='${prefix}/share'
892 datadir='${datarootdir}'
893 sysconfdir='${prefix}/etc'
894 sharedstatedir='${prefix}/com'
895 localstatedir='${prefix}/var'
896 includedir='${prefix}/include'
897 oldincludedir='/usr/include'
898 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
899 infodir='${datarootdir}/info'
900 htmldir='${docdir}'
901 dvidir='${docdir}'
902 pdfdir='${docdir}'
903 psdir='${docdir}'
904 libdir='${exec_prefix}/lib'
905 localedir='${datarootdir}/locale'
906 mandir='${datarootdir}/man'
907
908 ac_prev=
909 ac_dashdash=
910 for ac_option
911 do
912   # If the previous option needs an argument, assign it.
913   if test -n "$ac_prev"; then
914     eval $ac_prev=\$ac_option
915     ac_prev=
916     continue
917   fi
918
919   case $ac_option in
920   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
921   *=)   ac_optarg= ;;
922   *)    ac_optarg=yes ;;
923   esac
924
925   # Accept the important Cygnus configure options, so we can diagnose typos.
926
927   case $ac_dashdash$ac_option in
928   --)
929     ac_dashdash=yes ;;
930
931   -bindir | --bindir | --bindi | --bind | --bin | --bi)
932     ac_prev=bindir ;;
933   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
934     bindir=$ac_optarg ;;
935
936   -build | --build | --buil | --bui | --bu)
937     ac_prev=build_alias ;;
938   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
939     build_alias=$ac_optarg ;;
940
941   -cache-file | --cache-file | --cache-fil | --cache-fi \
942   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
943     ac_prev=cache_file ;;
944   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
945   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
946     cache_file=$ac_optarg ;;
947
948   --config-cache | -C)
949     cache_file=config.cache ;;
950
951   -datadir | --datadir | --datadi | --datad)
952     ac_prev=datadir ;;
953   -datadir=* | --datadir=* | --datadi=* | --datad=*)
954     datadir=$ac_optarg ;;
955
956   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
957   | --dataroo | --dataro | --datar)
958     ac_prev=datarootdir ;;
959   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
960   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
961     datarootdir=$ac_optarg ;;
962
963   -disable-* | --disable-*)
964     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
965     # Reject names that are not valid shell variable names.
966     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
967       as_fn_error $? "invalid feature name: $ac_useropt"
968     ac_useropt_orig=$ac_useropt
969     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
970     case $ac_user_opts in
971       *"
972 "enable_$ac_useropt"
973 "*) ;;
974       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
975          ac_unrecognized_sep=', ';;
976     esac
977     eval enable_$ac_useropt=no ;;
978
979   -docdir | --docdir | --docdi | --doc | --do)
980     ac_prev=docdir ;;
981   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
982     docdir=$ac_optarg ;;
983
984   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
985     ac_prev=dvidir ;;
986   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
987     dvidir=$ac_optarg ;;
988
989   -enable-* | --enable-*)
990     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
991     # Reject names that are not valid shell variable names.
992     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
993       as_fn_error $? "invalid feature name: $ac_useropt"
994     ac_useropt_orig=$ac_useropt
995     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
996     case $ac_user_opts in
997       *"
998 "enable_$ac_useropt"
999 "*) ;;
1000       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1001          ac_unrecognized_sep=', ';;
1002     esac
1003     eval enable_$ac_useropt=\$ac_optarg ;;
1004
1005   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1006   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1007   | --exec | --exe | --ex)
1008     ac_prev=exec_prefix ;;
1009   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1010   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1011   | --exec=* | --exe=* | --ex=*)
1012     exec_prefix=$ac_optarg ;;
1013
1014   -gas | --gas | --ga | --g)
1015     # Obsolete; use --with-gas.
1016     with_gas=yes ;;
1017
1018   -help | --help | --hel | --he | -h)
1019     ac_init_help=long ;;
1020   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1021     ac_init_help=recursive ;;
1022   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1023     ac_init_help=short ;;
1024
1025   -host | --host | --hos | --ho)
1026     ac_prev=host_alias ;;
1027   -host=* | --host=* | --hos=* | --ho=*)
1028     host_alias=$ac_optarg ;;
1029
1030   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1031     ac_prev=htmldir ;;
1032   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1033   | --ht=*)
1034     htmldir=$ac_optarg ;;
1035
1036   -includedir | --includedir | --includedi | --included | --include \
1037   | --includ | --inclu | --incl | --inc)
1038     ac_prev=includedir ;;
1039   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1040   | --includ=* | --inclu=* | --incl=* | --inc=*)
1041     includedir=$ac_optarg ;;
1042
1043   -infodir | --infodir | --infodi | --infod | --info | --inf)
1044     ac_prev=infodir ;;
1045   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1046     infodir=$ac_optarg ;;
1047
1048   -libdir | --libdir | --libdi | --libd)
1049     ac_prev=libdir ;;
1050   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1051     libdir=$ac_optarg ;;
1052
1053   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1054   | --libexe | --libex | --libe)
1055     ac_prev=libexecdir ;;
1056   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1057   | --libexe=* | --libex=* | --libe=*)
1058     libexecdir=$ac_optarg ;;
1059
1060   -localedir | --localedir | --localedi | --localed | --locale)
1061     ac_prev=localedir ;;
1062   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1063     localedir=$ac_optarg ;;
1064
1065   -localstatedir | --localstatedir | --localstatedi | --localstated \
1066   | --localstate | --localstat | --localsta | --localst | --locals)
1067     ac_prev=localstatedir ;;
1068   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1069   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1070     localstatedir=$ac_optarg ;;
1071
1072   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1073     ac_prev=mandir ;;
1074   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1075     mandir=$ac_optarg ;;
1076
1077   -nfp | --nfp | --nf)
1078     # Obsolete; use --without-fp.
1079     with_fp=no ;;
1080
1081   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1082   | --no-cr | --no-c | -n)
1083     no_create=yes ;;
1084
1085   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1086   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1087     no_recursion=yes ;;
1088
1089   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1090   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1091   | --oldin | --oldi | --old | --ol | --o)
1092     ac_prev=oldincludedir ;;
1093   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1094   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1095   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1096     oldincludedir=$ac_optarg ;;
1097
1098   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1099     ac_prev=prefix ;;
1100   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1101     prefix=$ac_optarg ;;
1102
1103   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1104   | --program-pre | --program-pr | --program-p)
1105     ac_prev=program_prefix ;;
1106   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1107   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1108     program_prefix=$ac_optarg ;;
1109
1110   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1111   | --program-suf | --program-su | --program-s)
1112     ac_prev=program_suffix ;;
1113   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1114   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1115     program_suffix=$ac_optarg ;;
1116
1117   -program-transform-name | --program-transform-name \
1118   | --program-transform-nam | --program-transform-na \
1119   | --program-transform-n | --program-transform- \
1120   | --program-transform | --program-transfor \
1121   | --program-transfo | --program-transf \
1122   | --program-trans | --program-tran \
1123   | --progr-tra | --program-tr | --program-t)
1124     ac_prev=program_transform_name ;;
1125   -program-transform-name=* | --program-transform-name=* \
1126   | --program-transform-nam=* | --program-transform-na=* \
1127   | --program-transform-n=* | --program-transform-=* \
1128   | --program-transform=* | --program-transfor=* \
1129   | --program-transfo=* | --program-transf=* \
1130   | --program-trans=* | --program-tran=* \
1131   | --progr-tra=* | --program-tr=* | --program-t=*)
1132     program_transform_name=$ac_optarg ;;
1133
1134   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1135     ac_prev=pdfdir ;;
1136   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1137     pdfdir=$ac_optarg ;;
1138
1139   -psdir | --psdir | --psdi | --psd | --ps)
1140     ac_prev=psdir ;;
1141   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1142     psdir=$ac_optarg ;;
1143
1144   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1145   | -silent | --silent | --silen | --sile | --sil)
1146     silent=yes ;;
1147
1148   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149     ac_prev=sbindir ;;
1150   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151   | --sbi=* | --sb=*)
1152     sbindir=$ac_optarg ;;
1153
1154   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156   | --sharedst | --shareds | --shared | --share | --shar \
1157   | --sha | --sh)
1158     ac_prev=sharedstatedir ;;
1159   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162   | --sha=* | --sh=*)
1163     sharedstatedir=$ac_optarg ;;
1164
1165   -site | --site | --sit)
1166     ac_prev=site ;;
1167   -site=* | --site=* | --sit=*)
1168     site=$ac_optarg ;;
1169
1170   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171     ac_prev=srcdir ;;
1172   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173     srcdir=$ac_optarg ;;
1174
1175   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176   | --syscon | --sysco | --sysc | --sys | --sy)
1177     ac_prev=sysconfdir ;;
1178   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180     sysconfdir=$ac_optarg ;;
1181
1182   -target | --target | --targe | --targ | --tar | --ta | --t)
1183     ac_prev=target_alias ;;
1184   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185     target_alias=$ac_optarg ;;
1186
1187   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188     verbose=yes ;;
1189
1190   -version | --version | --versio | --versi | --vers | -V)
1191     ac_init_version=: ;;
1192
1193   -with-* | --with-*)
1194     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195     # Reject names that are not valid shell variable names.
1196     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197       as_fn_error $? "invalid package name: $ac_useropt"
1198     ac_useropt_orig=$ac_useropt
1199     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200     case $ac_user_opts in
1201       *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205          ac_unrecognized_sep=', ';;
1206     esac
1207     eval with_$ac_useropt=\$ac_optarg ;;
1208
1209   -without-* | --without-*)
1210     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211     # Reject names that are not valid shell variable names.
1212     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213       as_fn_error $? "invalid package name: $ac_useropt"
1214     ac_useropt_orig=$ac_useropt
1215     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216     case $ac_user_opts in
1217       *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221          ac_unrecognized_sep=', ';;
1222     esac
1223     eval with_$ac_useropt=no ;;
1224
1225   --x)
1226     # Obsolete; use --with-x.
1227     with_x=yes ;;
1228
1229   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230   | --x-incl | --x-inc | --x-in | --x-i)
1231     ac_prev=x_includes ;;
1232   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234     x_includes=$ac_optarg ;;
1235
1236   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238     ac_prev=x_libraries ;;
1239   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241     x_libraries=$ac_optarg ;;
1242
1243   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245     ;;
1246
1247   *=*)
1248     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249     # Reject names that are not valid shell variable names.
1250     case $ac_envvar in #(
1251       '' | [0-9]* | *[!_$as_cr_alnum]* )
1252       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253     esac
1254     eval $ac_envvar=\$ac_optarg
1255     export $ac_envvar ;;
1256
1257   *)
1258     # FIXME: should be removed in autoconf 3.0.
1259     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263     ;;
1264
1265   esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270   as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274   case $enable_option_checking in
1275     no) ;;
1276     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278   esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283                 datadir sysconfdir sharedstatedir localstatedir includedir \
1284                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285                 libdir localedir mandir
1286 do
1287   eval ac_val=\$$ac_var
1288   # Remove trailing slashes.
1289   case $ac_val in
1290     */ )
1291       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292       eval $ac_var=\$ac_val;;
1293   esac
1294   # Be sure to have absolute directory names.
1295   case $ac_val in
1296     [\\/$]* | ?:[\\/]* )  continue;;
1297     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298   esac
1299   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311   if test "x$build_alias" = x; then
1312     cross_compiling=maybe
1313   elif test "x$build_alias" != "x$host_alias"; then
1314     cross_compiling=yes
1315   fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327   as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329   as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334   ac_srcdir_defaulted=yes
1335   # Try the directory containing this script, then the parent directory.
1336   ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338          X"$as_myself" : 'X\(//\)[^/]' \| \
1339          X"$as_myself" : 'X\(//\)$' \| \
1340          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 $as_echo X"$as_myself" |
1342     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343             s//\1/
1344             q
1345           }
1346           /^X\(\/\/\)[^/].*/{
1347             s//\1/
1348             q
1349           }
1350           /^X\(\/\/\)$/{
1351             s//\1/
1352             q
1353           }
1354           /^X\(\/\).*/{
1355             s//\1/
1356             q
1357           }
1358           s/.*/./; q'`
1359   srcdir=$ac_confdir
1360   if test ! -r "$srcdir/$ac_unique_file"; then
1361     srcdir=..
1362   fi
1363 else
1364   ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373         pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376   srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386   eval ac_env_${ac_var}_value=\$${ac_var}
1387   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395   # Omit some internal or obsolete options to make the list less imposing.
1396   # This message is too long to be a string in the A/UX 3.1 sh.
1397   cat <<_ACEOF
1398 \`configure' configures pygobject 3.9.91 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408   -h, --help              display this help and exit
1409       --help=short        display options specific to this package
1410       --help=recursive    display the short help of all the included packages
1411   -V, --version           display version information and exit
1412   -q, --quiet, --silent   do not print \`checking ...' messages
1413       --cache-file=FILE   cache test results in FILE [disabled]
1414   -C, --config-cache      alias for \`--cache-file=config.cache'
1415   -n, --no-create         do not create output files
1416       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419   --prefix=PREFIX         install architecture-independent files in PREFIX
1420                           [$ac_default_prefix]
1421   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                           [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432   --bindir=DIR            user executables [EPREFIX/bin]
1433   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434   --libexecdir=DIR        program executables [EPREFIX/libexec]
1435   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438   --libdir=DIR            object code libraries [EPREFIX/lib]
1439   --includedir=DIR        C header files [PREFIX/include]
1440   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1441   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1442   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1443   --infodir=DIR           info documentation [DATAROOTDIR/info]
1444   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1445   --mandir=DIR            man documentation [DATAROOTDIR/man]
1446   --docdir=DIR            documentation root [DATAROOTDIR/doc/pygobject]
1447   --htmldir=DIR           html documentation [DOCDIR]
1448   --dvidir=DIR            dvi documentation [DOCDIR]
1449   --pdfdir=DIR            pdf documentation [DOCDIR]
1450   --psdir=DIR             ps documentation [DOCDIR]
1451 _ACEOF
1452
1453   cat <<\_ACEOF
1454
1455 Program names:
1456   --program-prefix=PREFIX            prepend PREFIX to installed program names
1457   --program-suffix=SUFFIX            append SUFFIX to installed program names
1458   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1459
1460 System types:
1461   --build=BUILD     configure for building on BUILD [guessed]
1462   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467   case $ac_init_help in
1468      short | recursive ) echo "Configuration of pygobject 3.9.91:";;
1469    esac
1470   cat <<\_ACEOF
1471
1472 Optional Features:
1473   --disable-option-checking  ignore unrecognized --enable/--with options
1474   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1475   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1476   --enable-silent-rules   less verbose build output (undo: "make V=1")
1477   --disable-silent-rules  verbose build output (undo: "make V=0")
1478   --enable-static[=PKGS]  build static libraries [default=no]
1479   --enable-shared[=PKGS]  build shared libraries [default=yes]
1480   --enable-fast-install[=PKGS]
1481                           optimize for fast installation [default=yes]
1482   --enable-dependency-tracking
1483                           do not reject slow dependency extractors
1484   --disable-dependency-tracking
1485                           speeds up one-time build
1486   --disable-libtool-lock  avoid locking (might break parallel builds)
1487   --disable-thread        Disable pygobject threading support
1488   --disable-glibtest      do not try to compile and run a test GLIB program
1489   --enable-cairo          Enable Cairo bindings using introspection
1490                           information
1491   --enable-compile-warnings=[no/minimum/yes/maximum/error]
1492                           Turn on compiler warnings
1493   --enable-iso-c          Try to warn if code is not ISO C
1494   --enable-code-coverage  Whether to enable code coverage support
1495
1496 Optional Packages:
1497   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1498   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1499   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1500                           both]
1501   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1502   --with-sysroot=DIR Search for dependent libraries within DIR
1503                         (or the compiler's sysroot if not specified).
1504   --with-python=PATH      Path to Python interpreter; searches $PATH if only a
1505                           program name is given; if not given, searches for a
1506                           few standard names such as "python3" or "python2"
1507   --without-ffi           Disable libffi support
1508
1509 Some influential environment variables:
1510   CC          C compiler command
1511   CFLAGS      C compiler flags
1512   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1513               nonstandard directory <lib dir>
1514   LIBS        libraries to pass to the linker, e.g. -l<library>
1515   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1516               you have headers in a nonstandard directory <include dir>
1517   CPP         C preprocessor
1518   PYTHON      the Python interpreter
1519   PKG_CONFIG  path to pkg-config utility
1520   PKG_CONFIG_PATH
1521               directories to add to pkg-config's search path
1522   PKG_CONFIG_LIBDIR
1523               path overriding pkg-config's built-in search path
1524   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1525   FFI_LIBS    linker flags for FFI, overriding pkg-config
1526   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1527   GIO_LIBS    linker flags for GIO, overriding pkg-config
1528   GI_CFLAGS   C compiler flags for GI, overriding pkg-config
1529   GI_LIBS     linker flags for GI, overriding pkg-config
1530   CAIRO_CFLAGS
1531               C compiler flags for CAIRO, overriding pkg-config
1532   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1533   PYCAIRO_CFLAGS
1534               C compiler flags for PYCAIRO, overriding pkg-config
1535   PYCAIRO_LIBS
1536               linker flags for PYCAIRO, overriding pkg-config
1537
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1540
1541 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1542 pygobject home page: <https://live.gnome.org/PyGObject/>.
1543 _ACEOF
1544 ac_status=$?
1545 fi
1546
1547 if test "$ac_init_help" = "recursive"; then
1548   # If there are subdirs, report their specific --help.
1549   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1550     test -d "$ac_dir" ||
1551       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1552       continue
1553     ac_builddir=.
1554
1555 case "$ac_dir" in
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557 *)
1558   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1559   # A ".." for each directory in $ac_dir_suffix.
1560   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1561   case $ac_top_builddir_sub in
1562   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1564   esac ;;
1565 esac
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1570
1571 case $srcdir in
1572   .)  # We are building in place.
1573     ac_srcdir=.
1574     ac_top_srcdir=$ac_top_builddir_sub
1575     ac_abs_top_srcdir=$ac_pwd ;;
1576   [\\/]* | ?:[\\/]* )  # Absolute name.
1577     ac_srcdir=$srcdir$ac_dir_suffix;
1578     ac_top_srcdir=$srcdir
1579     ac_abs_top_srcdir=$srcdir ;;
1580   *) # Relative name.
1581     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582     ac_top_srcdir=$ac_top_build_prefix$srcdir
1583     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1584 esac
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1586
1587     cd "$ac_dir" || { ac_status=$?; continue; }
1588     # Check for guested configure.
1589     if test -f "$ac_srcdir/configure.gnu"; then
1590       echo &&
1591       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592     elif test -f "$ac_srcdir/configure"; then
1593       echo &&
1594       $SHELL "$ac_srcdir/configure" --help=recursive
1595     else
1596       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1597     fi || ac_status=$?
1598     cd "$ac_pwd" || { ac_status=$?; break; }
1599   done
1600 fi
1601
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1604   cat <<\_ACEOF
1605 pygobject configure 3.9.91
1606 generated by GNU Autoconf 2.69
1607
1608 Copyright (C) 2012 Free Software Foundation, Inc.
1609 This configure script is free software; the Free Software Foundation
1610 gives unlimited permission to copy, distribute and modify it.
1611 _ACEOF
1612   exit
1613 fi
1614
1615 ## ------------------------ ##
1616 ## Autoconf initialization. ##
1617 ## ------------------------ ##
1618
1619 # ac_fn_c_try_compile LINENO
1620 # --------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_compile ()
1623 {
1624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625   rm -f conftest.$ac_objext
1626   if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629   *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633   (eval "$ac_compile") 2>conftest.err
1634   ac_status=$?
1635   if test -s conftest.err; then
1636     grep -v '^ *+' conftest.err >conftest.er1
1637     cat conftest.er1 >&5
1638     mv -f conftest.er1 conftest.err
1639   fi
1640   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641   test $ac_status = 0; } && {
1642          test -z "$ac_c_werror_flag" ||
1643          test ! -s conftest.err
1644        } && test -s conftest.$ac_objext; then :
1645   ac_retval=0
1646 else
1647   $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650         ac_retval=1
1651 fi
1652   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653   as_fn_set_status $ac_retval
1654
1655 } # ac_fn_c_try_compile
1656
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1661 {
1662   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663   rm -f conftest.$ac_objext conftest$ac_exeext
1664   if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667   *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671   (eval "$ac_link") 2>conftest.err
1672   ac_status=$?
1673   if test -s conftest.err; then
1674     grep -v '^ *+' conftest.err >conftest.er1
1675     cat conftest.er1 >&5
1676     mv -f conftest.er1 conftest.err
1677   fi
1678   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679   test $ac_status = 0; } && {
1680          test -z "$ac_c_werror_flag" ||
1681          test ! -s conftest.err
1682        } && test -s conftest$ac_exeext && {
1683          test "$cross_compiling" = yes ||
1684          test -x conftest$ac_exeext
1685        }; then :
1686   ac_retval=0
1687 else
1688   $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691         ac_retval=1
1692 fi
1693   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695   # interfere with the next link command; also delete a directory that is
1696   # left behind by Apple's compiler.  We do this before executing the actions.
1697   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699   as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713   $as_echo_n "(cached) " >&6
1714 else
1715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h.  */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721   eval "$3=yes"
1722 else
1723   eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1738 {
1739   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740   if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743   *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748   ac_status=$?
1749   if test -s conftest.err; then
1750     grep -v '^ *+' conftest.err >conftest.er1
1751     cat conftest.er1 >&5
1752     mv -f conftest.er1 conftest.err
1753   fi
1754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755   test $ac_status = 0; } > conftest.i && {
1756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757          test ! -s conftest.err
1758        }; then :
1759   ac_retval=0
1760 else
1761   $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764     ac_retval=1
1765 fi
1766   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767   as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_cpp
1770
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1776 {
1777   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778   if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_link") 2>&5
1786   ac_status=$?
1787   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789   { { case "(($ac_try" in
1790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791   *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795   (eval "$ac_try") 2>&5
1796   ac_status=$?
1797   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798   test $ac_status = 0; }; }; then :
1799   ac_retval=0
1800 else
1801   $as_echo "$as_me: program exited with status $ac_status" >&5
1802        $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805        ac_retval=$ac_status
1806 fi
1807   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809   as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_run
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822   $as_echo_n "(cached) " >&6
1823 else
1824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h.  */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831     which can conflict with char $2 (); below.
1832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833     <limits.h> exists even on freestanding compilers.  */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844    Use char because int might match the return type of a GCC
1845    builtin and then its argument prototype would still apply.  */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851     to always fail with ENOSYS.  Some functions are actually named
1852     something starting with __ and the normal name is an alias.  */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861   ;
1862   return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866   eval "$3=yes"
1867 else
1868   eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871     conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1882
1883 It was created by pygobject $as_me 3.9.91, which was
1884 generated by GNU Autoconf 2.69.  Invocation command line was
1885
1886   $ $0 $@
1887
1888 _ACEOF
1889 exec 5>>config.log
1890 {
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1895
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1901
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1904
1905 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1906 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1909 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1910 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1911 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1912
1913 _ASUNAME
1914
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1917 do
1918   IFS=$as_save_IFS
1919   test -z "$as_dir" && as_dir=.
1920     $as_echo "PATH: $as_dir"
1921   done
1922 IFS=$as_save_IFS
1923
1924 } >&5
1925
1926 cat >&5 <<_ACEOF
1927
1928
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1932
1933 _ACEOF
1934
1935
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1946 do
1947   for ac_arg
1948   do
1949     case $ac_arg in
1950     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952     | -silent | --silent | --silen | --sile | --sil)
1953       continue ;;
1954     *\'*)
1955       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956     esac
1957     case $ac_pass in
1958     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1959     2)
1960       as_fn_append ac_configure_args1 " '$ac_arg'"
1961       if test $ac_must_keep_next = true; then
1962         ac_must_keep_next=false # Got value, back to normal.
1963       else
1964         case $ac_arg in
1965           *=* | --config-cache | -C | -disable-* | --disable-* \
1966           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968           | -with-* | --with-* | -without-* | --without-* | --x)
1969             case "$ac_configure_args0 " in
1970               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971             esac
1972             ;;
1973           -* ) ac_must_keep_next=true ;;
1974         esac
1975       fi
1976       as_fn_append ac_configure_args " '$ac_arg'"
1977       ;;
1978     esac
1979   done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1983
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log.  We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990   # Save into config.log some information that might help in debugging.
1991   {
1992     echo
1993
1994     $as_echo "## ---------------- ##
1995 ## Cache variables. ##
1996 ## ---------------- ##"
1997     echo
1998     # The following way of writing the cache mishandles newlines in values,
1999 (
2000   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2001     eval ac_val=\$$ac_var
2002     case $ac_val in #(
2003     *${as_nl}*)
2004       case $ac_var in #(
2005       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2007       esac
2008       case $ac_var in #(
2009       _ | IFS | as_nl) ;; #(
2010       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2011       *) { eval $ac_var=; unset $ac_var;} ;;
2012       esac ;;
2013     esac
2014   done
2015   (set) 2>&1 |
2016     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2017     *${as_nl}ac_space=\ *)
2018       sed -n \
2019         "s/'\''/'\''\\\\'\'''\''/g;
2020           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2021       ;; #(
2022     *)
2023       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2024       ;;
2025     esac |
2026     sort
2027 )
2028     echo
2029
2030     $as_echo "## ----------------- ##
2031 ## Output variables. ##
2032 ## ----------------- ##"
2033     echo
2034     for ac_var in $ac_subst_vars
2035     do
2036       eval ac_val=\$$ac_var
2037       case $ac_val in
2038       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039       esac
2040       $as_echo "$ac_var='\''$ac_val'\''"
2041     done | sort
2042     echo
2043
2044     if test -n "$ac_subst_files"; then
2045       $as_echo "## ------------------- ##
2046 ## File substitutions. ##
2047 ## ------------------- ##"
2048       echo
2049       for ac_var in $ac_subst_files
2050       do
2051         eval ac_val=\$$ac_var
2052         case $ac_val in
2053         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054         esac
2055         $as_echo "$ac_var='\''$ac_val'\''"
2056       done | sort
2057       echo
2058     fi
2059
2060     if test -s confdefs.h; then
2061       $as_echo "## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##"
2064       echo
2065       cat confdefs.h
2066       echo
2067     fi
2068     test "$ac_signal" != 0 &&
2069       $as_echo "$as_me: caught signal $ac_signal"
2070     $as_echo "$as_me: exit $exit_status"
2071   } >&5
2072   rm -f core *.core core.conftest.* &&
2073     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2074     exit $exit_status
2075 ' 0
2076 for ac_signal in 1 2 13 15; do
2077   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2078 done
2079 ac_signal=0
2080
2081 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2082 rm -f -r conftest* confdefs.h
2083
2084 $as_echo "/* confdefs.h */" > confdefs.h
2085
2086 # Predefined preprocessor variables.
2087
2088 cat >>confdefs.h <<_ACEOF
2089 #define PACKAGE_NAME "$PACKAGE_NAME"
2090 _ACEOF
2091
2092 cat >>confdefs.h <<_ACEOF
2093 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2094 _ACEOF
2095
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2098 _ACEOF
2099
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_STRING "$PACKAGE_STRING"
2102 _ACEOF
2103
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2106 _ACEOF
2107
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_URL "$PACKAGE_URL"
2110 _ACEOF
2111
2112
2113 # Let the site file select an alternate cache file if it wants to.
2114 # Prefer an explicitly selected file to automatically selected ones.
2115 ac_site_file1=NONE
2116 ac_site_file2=NONE
2117 if test -n "$CONFIG_SITE"; then
2118   # We do not want a PATH search for config.site.
2119   case $CONFIG_SITE in #((
2120     -*)  ac_site_file1=./$CONFIG_SITE;;
2121     */*) ac_site_file1=$CONFIG_SITE;;
2122     *)   ac_site_file1=./$CONFIG_SITE;;
2123   esac
2124 elif test "x$prefix" != xNONE; then
2125   ac_site_file1=$prefix/share/config.site
2126   ac_site_file2=$prefix/etc/config.site
2127 else
2128   ac_site_file1=$ac_default_prefix/share/config.site
2129   ac_site_file2=$ac_default_prefix/etc/config.site
2130 fi
2131 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2132 do
2133   test "x$ac_site_file" = xNONE && continue
2134   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2135     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2136 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2137     sed 's/^/| /' "$ac_site_file" >&5
2138     . "$ac_site_file" \
2139       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2141 as_fn_error $? "failed to load site script $ac_site_file
2142 See \`config.log' for more details" "$LINENO" 5; }
2143   fi
2144 done
2145
2146 if test -r "$cache_file"; then
2147   # Some versions of bash will fail to source /dev/null (special files
2148   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2149   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2150     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2151 $as_echo "$as_me: loading cache $cache_file" >&6;}
2152     case $cache_file in
2153       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2154       *)                      . "./$cache_file";;
2155     esac
2156   fi
2157 else
2158   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2159 $as_echo "$as_me: creating cache $cache_file" >&6;}
2160   >$cache_file
2161 fi
2162
2163 # Check that the precious variables saved in the cache have kept the same
2164 # value.
2165 ac_cache_corrupted=false
2166 for ac_var in $ac_precious_vars; do
2167   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2168   eval ac_new_set=\$ac_env_${ac_var}_set
2169   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2170   eval ac_new_val=\$ac_env_${ac_var}_value
2171   case $ac_old_set,$ac_new_set in
2172     set,)
2173       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2174 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2175       ac_cache_corrupted=: ;;
2176     ,set)
2177       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2178 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2179       ac_cache_corrupted=: ;;
2180     ,);;
2181     *)
2182       if test "x$ac_old_val" != "x$ac_new_val"; then
2183         # differences in whitespace do not lead to failure.
2184         ac_old_val_w=`echo x $ac_old_val`
2185         ac_new_val_w=`echo x $ac_new_val`
2186         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2187           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2188 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2189           ac_cache_corrupted=:
2190         else
2191           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2192 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2193           eval $ac_var=\$ac_old_val
2194         fi
2195         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2196 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2197         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2198 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2199       fi;;
2200   esac
2201   # Pass precious variables to config.status.
2202   if test "$ac_new_set" = set; then
2203     case $ac_new_val in
2204     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2205     *) ac_arg=$ac_var=$ac_new_val ;;
2206     esac
2207     case " $ac_configure_args " in
2208       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2209       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2210     esac
2211   fi
2212 done
2213 if $ac_cache_corrupted; then
2214   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2216   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2217 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2218   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 fi
2220 ## -------------------- ##
2221 ## Main body of script. ##
2222 ## -------------------- ##
2223
2224 ac_ext=c
2225 ac_cpp='$CPP $CPPFLAGS'
2226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2229
2230
2231 ACLOCAL_AMFLAGS="-I m4 -I ."
2232
2233
2234
2235
2236
2237 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2238
2239 PYGOBJECT_MAJOR_VERSION=3
2240
2241
2242 $as_echo "#define PYGOBJECT_MINOR_VERSION 9" >>confdefs.h
2243
2244 PYGOBJECT_MINOR_VERSION=9
2245
2246
2247 $as_echo "#define PYGOBJECT_MICRO_VERSION 91" >>confdefs.h
2248
2249 PYGOBJECT_MICRO_VERSION=91
2250
2251
2252 ac_config_headers="$ac_config_headers config.h"
2253
2254 # Check whether --enable-silent-rules was given.
2255 if test "${enable_silent_rules+set}" = set; then :
2256   enableval=$enable_silent_rules;
2257 fi
2258
2259 case $enable_silent_rules in # (((
2260   yes) AM_DEFAULT_VERBOSITY=0;;
2261    no) AM_DEFAULT_VERBOSITY=1;;
2262     *) AM_DEFAULT_VERBOSITY=0;;
2263 esac
2264 am_make=${MAKE-make}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2266 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2267 if ${am_cv_make_support_nested_variables+:} false; then :
2268   $as_echo_n "(cached) " >&6
2269 else
2270   if $as_echo 'TRUE=$(BAR$(V))
2271 BAR0=false
2272 BAR1=true
2273 V=1
2274 am__doit:
2275         @$(TRUE)
2276 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2277   am_cv_make_support_nested_variables=yes
2278 else
2279   am_cv_make_support_nested_variables=no
2280 fi
2281 fi
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2283 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2284 if test $am_cv_make_support_nested_variables = yes; then
2285     AM_V='$(V)'
2286   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2287 else
2288   AM_V=$AM_DEFAULT_VERBOSITY
2289   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2290 fi
2291 AM_BACKSLASH='\'
2292
2293 am__api_version='1.13'
2294
2295 ac_aux_dir=
2296 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2297   if test -f "$ac_dir/install-sh"; then
2298     ac_aux_dir=$ac_dir
2299     ac_install_sh="$ac_aux_dir/install-sh -c"
2300     break
2301   elif test -f "$ac_dir/install.sh"; then
2302     ac_aux_dir=$ac_dir
2303     ac_install_sh="$ac_aux_dir/install.sh -c"
2304     break
2305   elif test -f "$ac_dir/shtool"; then
2306     ac_aux_dir=$ac_dir
2307     ac_install_sh="$ac_aux_dir/shtool install -c"
2308     break
2309   fi
2310 done
2311 if test -z "$ac_aux_dir"; then
2312   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2313 fi
2314
2315 # These three variables are undocumented and unsupported,
2316 # and are intended to be withdrawn in a future Autoconf release.
2317 # They can cause serious problems if a builder's source tree is in a directory
2318 # whose full name contains unusual characters.
2319 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2320 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2321 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2322
2323
2324 # Find a good install program.  We prefer a C program (faster),
2325 # so one script is as good as another.  But avoid the broken or
2326 # incompatible versions:
2327 # SysV /etc/install, /usr/sbin/install
2328 # SunOS /usr/etc/install
2329 # IRIX /sbin/install
2330 # AIX /bin/install
2331 # AmigaOS /C/install, which installs bootblocks on floppy discs
2332 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2333 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2334 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2335 # OS/2's system install, which has a completely different semantic
2336 # ./install, which can be erroneously created by make from ./install.sh.
2337 # Reject install programs that cannot install multiple files.
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2339 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2340 if test -z "$INSTALL"; then
2341 if ${ac_cv_path_install+:} false; then :
2342   $as_echo_n "(cached) " >&6
2343 else
2344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2346 do
2347   IFS=$as_save_IFS
2348   test -z "$as_dir" && as_dir=.
2349     # Account for people who put trailing slashes in PATH elements.
2350 case $as_dir/ in #((
2351   ./ | .// | /[cC]/* | \
2352   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2353   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2354   /usr/ucb/* ) ;;
2355   *)
2356     # OSF1 and SCO ODT 3.0 have their own names for install.
2357     # Don't use installbsd from OSF since it installs stuff as root
2358     # by default.
2359     for ac_prog in ginstall scoinst install; do
2360       for ac_exec_ext in '' $ac_executable_extensions; do
2361         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2362           if test $ac_prog = install &&
2363             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2364             # AIX install.  It has an incompatible calling convention.
2365             :
2366           elif test $ac_prog = install &&
2367             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2368             # program-specific install script used by HP pwplus--don't use.
2369             :
2370           else
2371             rm -rf conftest.one conftest.two conftest.dir
2372             echo one > conftest.one
2373             echo two > conftest.two
2374             mkdir conftest.dir
2375             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2376               test -s conftest.one && test -s conftest.two &&
2377               test -s conftest.dir/conftest.one &&
2378               test -s conftest.dir/conftest.two
2379             then
2380               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2381               break 3
2382             fi
2383           fi
2384         fi
2385       done
2386     done
2387     ;;
2388 esac
2389
2390   done
2391 IFS=$as_save_IFS
2392
2393 rm -rf conftest.one conftest.two conftest.dir
2394
2395 fi
2396   if test "${ac_cv_path_install+set}" = set; then
2397     INSTALL=$ac_cv_path_install
2398   else
2399     # As a last resort, use the slow shell script.  Don't cache a
2400     # value for INSTALL within a source directory, because that will
2401     # break other packages using the cache if that directory is
2402     # removed, or if the value is a relative name.
2403     INSTALL=$ac_install_sh
2404   fi
2405 fi
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2407 $as_echo "$INSTALL" >&6; }
2408
2409 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2410 # It thinks the first close brace ends the variable substitution.
2411 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2412
2413 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2414
2415 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2416
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2418 $as_echo_n "checking whether build environment is sane... " >&6; }
2419 # Reject unsafe characters in $srcdir or the absolute working directory
2420 # name.  Accept space and tab only in the latter.
2421 am_lf='
2422 '
2423 case `pwd` in
2424   *[\\\"\#\$\&\'\`$am_lf]*)
2425     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2426 esac
2427 case $srcdir in
2428   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2429     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2430 esac
2431
2432 # Do 'set' in a subshell so we don't clobber the current shell's
2433 # arguments.  Must try -L first in case configure is actually a
2434 # symlink; some systems play weird games with the mod time of symlinks
2435 # (eg FreeBSD returns the mod time of the symlink's containing
2436 # directory).
2437 if (
2438    am_has_slept=no
2439    for am_try in 1 2; do
2440      echo "timestamp, slept: $am_has_slept" > conftest.file
2441      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2442      if test "$*" = "X"; then
2443         # -L didn't work.
2444         set X `ls -t "$srcdir/configure" conftest.file`
2445      fi
2446      if test "$*" != "X $srcdir/configure conftest.file" \
2447         && test "$*" != "X conftest.file $srcdir/configure"; then
2448
2449         # If neither matched, then we have a broken ls.  This can happen
2450         # if, for instance, CONFIG_SHELL is bash and it inherits a
2451         # broken ls alias from the environment.  This has actually
2452         # happened.  Such a system could not be considered "sane".
2453         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2454   alias in your environment" "$LINENO" 5
2455      fi
2456      if test "$2" = conftest.file || test $am_try -eq 2; then
2457        break
2458      fi
2459      # Just in case.
2460      sleep 1
2461      am_has_slept=yes
2462    done
2463    test "$2" = conftest.file
2464    )
2465 then
2466    # Ok.
2467    :
2468 else
2469    as_fn_error $? "newly created file is older than distributed files!
2470 Check your system clock" "$LINENO" 5
2471 fi
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2473 $as_echo "yes" >&6; }
2474 # If we didn't sleep, we still need to ensure time stamps of config.status and
2475 # generated files are strictly newer.
2476 am_sleep_pid=
2477 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2478   ( sleep 1 ) &
2479   am_sleep_pid=$!
2480 fi
2481
2482 rm -f conftest.file
2483
2484 test "$program_prefix" != NONE &&
2485   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2486 # Use a double $ so make ignores it.
2487 test "$program_suffix" != NONE &&
2488   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2489 # Double any \ or $.
2490 # By default was `s,x,x', remove it if useless.
2491 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2492 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2493
2494 # expand $ac_aux_dir to an absolute path
2495 am_aux_dir=`cd $ac_aux_dir && pwd`
2496
2497 if test x"${MISSING+set}" != xset; then
2498   case $am_aux_dir in
2499   *\ * | *\     *)
2500     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2501   *)
2502     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2503   esac
2504 fi
2505 # Use eval to expand $SHELL
2506 if eval "$MISSING --is-lightweight"; then
2507   am_missing_run="$MISSING "
2508 else
2509   am_missing_run=
2510   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2511 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2512 fi
2513
2514 if test x"${install_sh}" != xset; then
2515   case $am_aux_dir in
2516   *\ * | *\     *)
2517     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2518   *)
2519     install_sh="\${SHELL} $am_aux_dir/install-sh"
2520   esac
2521 fi
2522
2523 # Installed binaries are usually stripped using 'strip' when the user
2524 # run "make install-strip".  However 'strip' might not be the right
2525 # tool to use in cross-compilation environments, therefore Automake
2526 # will honor the 'STRIP' environment variable to overrule this program.
2527 if test "$cross_compiling" != no; then
2528   if test -n "$ac_tool_prefix"; then
2529   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2530 set dummy ${ac_tool_prefix}strip; ac_word=$2
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2532 $as_echo_n "checking for $ac_word... " >&6; }
2533 if ${ac_cv_prog_STRIP+:} false; then :
2534   $as_echo_n "(cached) " >&6
2535 else
2536   if test -n "$STRIP"; then
2537   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2538 else
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540 for as_dir in $PATH
2541 do
2542   IFS=$as_save_IFS
2543   test -z "$as_dir" && as_dir=.
2544     for ac_exec_ext in '' $ac_executable_extensions; do
2545   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2546     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2547     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2548     break 2
2549   fi
2550 done
2551   done
2552 IFS=$as_save_IFS
2553
2554 fi
2555 fi
2556 STRIP=$ac_cv_prog_STRIP
2557 if test -n "$STRIP"; then
2558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2559 $as_echo "$STRIP" >&6; }
2560 else
2561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2562 $as_echo "no" >&6; }
2563 fi
2564
2565
2566 fi
2567 if test -z "$ac_cv_prog_STRIP"; then
2568   ac_ct_STRIP=$STRIP
2569   # Extract the first word of "strip", so it can be a program name with args.
2570 set dummy strip; ac_word=$2
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2572 $as_echo_n "checking for $ac_word... " >&6; }
2573 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2574   $as_echo_n "(cached) " >&6
2575 else
2576   if test -n "$ac_ct_STRIP"; then
2577   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2578 else
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 for as_dir in $PATH
2581 do
2582   IFS=$as_save_IFS
2583   test -z "$as_dir" && as_dir=.
2584     for ac_exec_ext in '' $ac_executable_extensions; do
2585   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2586     ac_cv_prog_ac_ct_STRIP="strip"
2587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588     break 2
2589   fi
2590 done
2591   done
2592 IFS=$as_save_IFS
2593
2594 fi
2595 fi
2596 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2597 if test -n "$ac_ct_STRIP"; then
2598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2599 $as_echo "$ac_ct_STRIP" >&6; }
2600 else
2601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2602 $as_echo "no" >&6; }
2603 fi
2604
2605   if test "x$ac_ct_STRIP" = x; then
2606     STRIP=":"
2607   else
2608     case $cross_compiling:$ac_tool_warned in
2609 yes:)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2612 ac_tool_warned=yes ;;
2613 esac
2614     STRIP=$ac_ct_STRIP
2615   fi
2616 else
2617   STRIP="$ac_cv_prog_STRIP"
2618 fi
2619
2620 fi
2621 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2622
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2624 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2625 if test -z "$MKDIR_P"; then
2626   if ${ac_cv_path_mkdir+:} false; then :
2627   $as_echo_n "(cached) " >&6
2628 else
2629   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2631 do
2632   IFS=$as_save_IFS
2633   test -z "$as_dir" && as_dir=.
2634     for ac_prog in mkdir gmkdir; do
2635          for ac_exec_ext in '' $ac_executable_extensions; do
2636            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2637            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2638              'mkdir (GNU coreutils) '* | \
2639              'mkdir (coreutils) '* | \
2640              'mkdir (fileutils) '4.1*)
2641                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2642                break 3;;
2643            esac
2644          done
2645        done
2646   done
2647 IFS=$as_save_IFS
2648
2649 fi
2650
2651   test -d ./--version && rmdir ./--version
2652   if test "${ac_cv_path_mkdir+set}" = set; then
2653     MKDIR_P="$ac_cv_path_mkdir -p"
2654   else
2655     # As a last resort, use the slow shell script.  Don't cache a
2656     # value for MKDIR_P within a source directory, because that will
2657     # break other packages using the cache if that directory is
2658     # removed, or if the value is a relative name.
2659     MKDIR_P="$ac_install_sh -d"
2660   fi
2661 fi
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2663 $as_echo "$MKDIR_P" >&6; }
2664
2665 for ac_prog in gawk mawk nawk awk
2666 do
2667   # Extract the first word of "$ac_prog", so it can be a program name with args.
2668 set dummy $ac_prog; ac_word=$2
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670 $as_echo_n "checking for $ac_word... " >&6; }
2671 if ${ac_cv_prog_AWK+:} false; then :
2672   $as_echo_n "(cached) " >&6
2673 else
2674   if test -n "$AWK"; then
2675   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2676 else
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   test -z "$as_dir" && as_dir=.
2682     for ac_exec_ext in '' $ac_executable_extensions; do
2683   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684     ac_cv_prog_AWK="$ac_prog"
2685     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686     break 2
2687   fi
2688 done
2689   done
2690 IFS=$as_save_IFS
2691
2692 fi
2693 fi
2694 AWK=$ac_cv_prog_AWK
2695 if test -n "$AWK"; then
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2697 $as_echo "$AWK" >&6; }
2698 else
2699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700 $as_echo "no" >&6; }
2701 fi
2702
2703
2704   test -n "$AWK" && break
2705 done
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2708 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2709 set x ${MAKE-make}
2710 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2711 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2712   $as_echo_n "(cached) " >&6
2713 else
2714   cat >conftest.make <<\_ACEOF
2715 SHELL = /bin/sh
2716 all:
2717         @echo '@@@%%%=$(MAKE)=@@@%%%'
2718 _ACEOF
2719 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2720 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2721   *@@@%%%=?*=@@@%%%*)
2722     eval ac_cv_prog_make_${ac_make}_set=yes;;
2723   *)
2724     eval ac_cv_prog_make_${ac_make}_set=no;;
2725 esac
2726 rm -f conftest.make
2727 fi
2728 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2730 $as_echo "yes" >&6; }
2731   SET_MAKE=
2732 else
2733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2735   SET_MAKE="MAKE=${MAKE-make}"
2736 fi
2737
2738 rm -rf .tst 2>/dev/null
2739 mkdir .tst 2>/dev/null
2740 if test -d .tst; then
2741   am__leading_dot=.
2742 else
2743   am__leading_dot=_
2744 fi
2745 rmdir .tst 2>/dev/null
2746
2747 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2748   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2749   # is not polluted with repeated "-I."
2750   am__isrc=' -I$(srcdir)'
2751   # test to see if srcdir already configured
2752   if test -f $srcdir/config.status; then
2753     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2754   fi
2755 fi
2756
2757 # test whether we have cygpath
2758 if test -z "$CYGPATH_W"; then
2759   if (cygpath --version) >/dev/null 2>/dev/null; then
2760     CYGPATH_W='cygpath -w'
2761   else
2762     CYGPATH_W=echo
2763   fi
2764 fi
2765
2766
2767 # Define the identity of the package.
2768  PACKAGE='pygobject'
2769  VERSION='3.9.91'
2770
2771
2772 cat >>confdefs.h <<_ACEOF
2773 #define PACKAGE "$PACKAGE"
2774 _ACEOF
2775
2776
2777 cat >>confdefs.h <<_ACEOF
2778 #define VERSION "$VERSION"
2779 _ACEOF
2780
2781 # Some tools Automake needs.
2782
2783 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2784
2785
2786 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2787
2788
2789 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2790
2791
2792 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2793
2794
2795 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2796
2797 # For better backward compatibility.  To be removed once Automake 1.9.x
2798 # dies out for good.  For more background, see:
2799 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2801 mkdir_p='$(MKDIR_P)'
2802
2803 # We need awk for the "check" target.  The system "awk" is bad on
2804 # some platforms.
2805 # Always define AMTAR for backward compatibility.  Yes, it's still used
2806 # in the wild :-(  We should find a proper way to deprecate it ...
2807 AMTAR='$${TAR-tar}'
2808
2809
2810 # We'll loop over all known methods to create a tar archive until one works.
2811 _am_tools='gnutar  pax cpio none'
2812
2813 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2814
2815
2816
2817
2818
2819
2820
2821 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2822
2823 # Make sure we can run config.sub.
2824 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2825   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2826
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2828 $as_echo_n "checking build system type... " >&6; }
2829 if ${ac_cv_build+:} false; then :
2830   $as_echo_n "(cached) " >&6
2831 else
2832   ac_build_alias=$build_alias
2833 test "x$ac_build_alias" = x &&
2834   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2835 test "x$ac_build_alias" = x &&
2836   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2837 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2838   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2839
2840 fi
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2842 $as_echo "$ac_cv_build" >&6; }
2843 case $ac_cv_build in
2844 *-*-*) ;;
2845 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2846 esac
2847 build=$ac_cv_build
2848 ac_save_IFS=$IFS; IFS='-'
2849 set x $ac_cv_build
2850 shift
2851 build_cpu=$1
2852 build_vendor=$2
2853 shift; shift
2854 # Remember, the first character of IFS is used to create $*,
2855 # except with old shells:
2856 build_os=$*
2857 IFS=$ac_save_IFS
2858 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2859
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2862 $as_echo_n "checking host system type... " >&6; }
2863 if ${ac_cv_host+:} false; then :
2864   $as_echo_n "(cached) " >&6
2865 else
2866   if test "x$host_alias" = x; then
2867   ac_cv_host=$ac_cv_build
2868 else
2869   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2870     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2871 fi
2872
2873 fi
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2875 $as_echo "$ac_cv_host" >&6; }
2876 case $ac_cv_host in
2877 *-*-*) ;;
2878 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2879 esac
2880 host=$ac_cv_host
2881 ac_save_IFS=$IFS; IFS='-'
2882 set x $ac_cv_host
2883 shift
2884 host_cpu=$1
2885 host_vendor=$2
2886 shift; shift
2887 # Remember, the first character of IFS is used to create $*,
2888 # except with old shells:
2889 host_os=$*
2890 IFS=$ac_save_IFS
2891 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2892
2893
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
2895 $as_echo_n "checking for some Win32 platform... " >&6; }
2896 case "$host" in
2897   *-*-mingw*|*-*-cygwin*)
2898     platform_win32=yes
2899     ;;
2900   *)
2901     platform_win32=no
2902     ;;
2903 esac
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
2905 $as_echo "$platform_win32" >&6; }
2906  if test "$platform_win32" = "yes"; then
2907   PLATFORM_WIN32_TRUE=
2908   PLATFORM_WIN32_FALSE='#'
2909 else
2910   PLATFORM_WIN32_TRUE='#'
2911   PLATFORM_WIN32_FALSE=
2912 fi
2913
2914
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
2916 $as_echo_n "checking for native Win32... " >&6; }
2917 case "$host" in
2918   *-*-mingw*)
2919     os_win32=yes
2920     ;;
2921   *)
2922     os_win32=no
2923     ;;
2924 esac
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
2926 $as_echo "$os_win32" >&6; }
2927  if test "$os_win32" = "yes"; then
2928   OS_WIN32_TRUE=
2929   OS_WIN32_FALSE='#'
2930 else
2931   OS_WIN32_TRUE='#'
2932   OS_WIN32_FALSE=
2933 fi
2934
2935
2936
2937 case `pwd` in
2938   *\ * | *\     *)
2939     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2940 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2941 esac
2942
2943
2944
2945 macro_version='2.4.2'
2946 macro_revision='1.3337'
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960 ltmain="$ac_aux_dir/ltmain.sh"
2961
2962 # Backslashify metacharacters that are still active within
2963 # double-quoted strings.
2964 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2965
2966 # Same as above, but do not quote variable references.
2967 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2968
2969 # Sed substitution to delay expansion of an escaped shell variable in a
2970 # double_quote_subst'ed string.
2971 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2972
2973 # Sed substitution to delay expansion of an escaped single quote.
2974 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2975
2976 # Sed substitution to avoid accidental globbing in evaled expressions
2977 no_glob_subst='s/\*/\\\*/g'
2978
2979 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2980 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2982
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2984 $as_echo_n "checking how to print strings... " >&6; }
2985 # Test print first, because it will be a builtin if present.
2986 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2987    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2988   ECHO='print -r --'
2989 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2990   ECHO='printf %s\n'
2991 else
2992   # Use this function as a fallback that always works.
2993   func_fallback_echo ()
2994   {
2995     eval 'cat <<_LTECHO_EOF
2996 $1
2997 _LTECHO_EOF'
2998   }
2999   ECHO='func_fallback_echo'
3000 fi
3001
3002 # func_echo_all arg...
3003 # Invoke $ECHO with all args, space-separated.
3004 func_echo_all ()
3005 {
3006     $ECHO ""
3007 }
3008
3009 case "$ECHO" in
3010   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3011 $as_echo "printf" >&6; } ;;
3012   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3013 $as_echo "print -r" >&6; } ;;
3014   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3015 $as_echo "cat" >&6; } ;;
3016 esac
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031 DEPDIR="${am__leading_dot}deps"
3032
3033 ac_config_commands="$ac_config_commands depfiles"
3034
3035
3036 am_make=${MAKE-make}
3037 cat > confinc << 'END'
3038 am__doit:
3039         @echo this is the am__doit target
3040 .PHONY: am__doit
3041 END
3042 # If we don't find an include directive, just comment out the code.
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3044 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3045 am__include="#"
3046 am__quote=
3047 _am_result=none
3048 # First try GNU make style include.
3049 echo "include confinc" > confmf
3050 # Ignore all kinds of additional output from 'make'.
3051 case `$am_make -s -f confmf 2> /dev/null` in #(
3052 *the\ am__doit\ target*)
3053   am__include=include
3054   am__quote=
3055   _am_result=GNU
3056   ;;
3057 esac
3058 # Now try BSD make style include.
3059 if test "$am__include" = "#"; then
3060    echo '.include "confinc"' > confmf
3061    case `$am_make -s -f confmf 2> /dev/null` in #(
3062    *the\ am__doit\ target*)
3063      am__include=.include
3064      am__quote="\""
3065      _am_result=BSD
3066      ;;
3067    esac
3068 fi
3069
3070
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3072 $as_echo "$_am_result" >&6; }
3073 rm -f confinc confmf
3074
3075 # Check whether --enable-dependency-tracking was given.
3076 if test "${enable_dependency_tracking+set}" = set; then :
3077   enableval=$enable_dependency_tracking;
3078 fi
3079
3080 if test "x$enable_dependency_tracking" != xno; then
3081   am_depcomp="$ac_aux_dir/depcomp"
3082   AMDEPBACKSLASH='\'
3083   am__nodep='_no'
3084 fi
3085  if test "x$enable_dependency_tracking" != xno; then
3086   AMDEP_TRUE=
3087   AMDEP_FALSE='#'
3088 else
3089   AMDEP_TRUE='#'
3090   AMDEP_FALSE=
3091 fi
3092
3093
3094 ac_ext=c
3095 ac_cpp='$CPP $CPPFLAGS'
3096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3099 if test -n "$ac_tool_prefix"; then
3100   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3101 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105   $as_echo_n "(cached) " >&6
3106 else
3107   if test -n "$CC"; then
3108   ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3112 do
3113   IFS=$as_save_IFS
3114   test -z "$as_dir" && as_dir=.
3115     for ac_exec_ext in '' $ac_executable_extensions; do
3116   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119     break 2
3120   fi
3121 done
3122   done
3123 IFS=$as_save_IFS
3124
3125 fi
3126 fi
3127 CC=$ac_cv_prog_CC
3128 if test -n "$CC"; then
3129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3131 else
3132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3134 fi
3135
3136
3137 fi
3138 if test -z "$ac_cv_prog_CC"; then
3139   ac_ct_CC=$CC
3140   # Extract the first word of "gcc", so it can be a program name with args.
3141 set dummy gcc; ac_word=$2
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3143 $as_echo_n "checking for $ac_word... " >&6; }
3144 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3145   $as_echo_n "(cached) " >&6
3146 else
3147   if test -n "$ac_ct_CC"; then
3148   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149 else
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3152 do
3153   IFS=$as_save_IFS
3154   test -z "$as_dir" && as_dir=.
3155     for ac_exec_ext in '' $ac_executable_extensions; do
3156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157     ac_cv_prog_ac_ct_CC="gcc"
3158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159     break 2
3160   fi
3161 done
3162   done
3163 IFS=$as_save_IFS
3164
3165 fi
3166 fi
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3170 $as_echo "$ac_ct_CC" >&6; }
3171 else
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 $as_echo "no" >&6; }
3174 fi
3175
3176   if test "x$ac_ct_CC" = x; then
3177     CC=""
3178   else
3179     case $cross_compiling:$ac_tool_warned in
3180 yes:)
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3183 ac_tool_warned=yes ;;
3184 esac
3185     CC=$ac_ct_CC
3186   fi
3187 else
3188   CC="$ac_cv_prog_CC"
3189 fi
3190
3191 if test -z "$CC"; then
3192           if test -n "$ac_tool_prefix"; then
3193     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}cc; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_prog_CC+:} false; then :
3198   $as_echo_n "(cached) " >&6
3199 else
3200   if test -n "$CC"; then
3201   ac_cv_prog_CC="$CC" # Let the user override the test.
3202 else
3203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204 for as_dir in $PATH
3205 do
3206   IFS=$as_save_IFS
3207   test -z "$as_dir" && as_dir=.
3208     for ac_exec_ext in '' $ac_executable_extensions; do
3209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210     ac_cv_prog_CC="${ac_tool_prefix}cc"
3211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3212     break 2
3213   fi
3214 done
3215   done
3216 IFS=$as_save_IFS
3217
3218 fi
3219 fi
3220 CC=$ac_cv_prog_CC
3221 if test -n "$CC"; then
3222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3223 $as_echo "$CC" >&6; }
3224 else
3225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3227 fi
3228
3229
3230   fi
3231 fi
3232 if test -z "$CC"; then
3233   # Extract the first word of "cc", so it can be a program name with args.
3234 set dummy cc; ac_word=$2
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3236 $as_echo_n "checking for $ac_word... " >&6; }
3237 if ${ac_cv_prog_CC+:} false; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   if test -n "$CC"; then
3241   ac_cv_prog_CC="$CC" # Let the user override the test.
3242 else
3243   ac_prog_rejected=no
3244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3245 for as_dir in $PATH
3246 do
3247   IFS=$as_save_IFS
3248   test -z "$as_dir" && as_dir=.
3249     for ac_exec_ext in '' $ac_executable_extensions; do
3250   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3251     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3252        ac_prog_rejected=yes
3253        continue
3254      fi
3255     ac_cv_prog_CC="cc"
3256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257     break 2
3258   fi
3259 done
3260   done
3261 IFS=$as_save_IFS
3262
3263 if test $ac_prog_rejected = yes; then
3264   # We found a bogon in the path, so make sure we never use it.
3265   set dummy $ac_cv_prog_CC
3266   shift
3267   if test $# != 0; then
3268     # We chose a different compiler from the bogus one.
3269     # However, it has the same basename, so the bogon will be chosen
3270     # first if we set CC to just the basename; use the full file name.
3271     shift
3272     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3273   fi
3274 fi
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3280 $as_echo "$CC" >&6; }
3281 else
3282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 fi
3285
3286
3287 fi
3288 if test -z "$CC"; then
3289   if test -n "$ac_tool_prefix"; then
3290   for ac_prog in cl.exe
3291   do
3292     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3293 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3295 $as_echo_n "checking for $ac_word... " >&6; }
3296 if ${ac_cv_prog_CC+:} false; then :
3297   $as_echo_n "(cached) " >&6
3298 else
3299   if test -n "$CC"; then
3300   ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305   IFS=$as_save_IFS
3306   test -z "$as_dir" && as_dir=.
3307     for ac_exec_ext in '' $ac_executable_extensions; do
3308   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3309     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3310     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3311     break 2
3312   fi
3313 done
3314   done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3322 $as_echo "$CC" >&6; }
3323 else
3324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 fi
3327
3328
3329     test -n "$CC" && break
3330   done
3331 fi
3332 if test -z "$CC"; then
3333   ac_ct_CC=$CC
3334   for ac_prog in cl.exe
3335 do
3336   # Extract the first word of "$ac_prog", so it can be a program name with args.
3337 set dummy $ac_prog; ac_word=$2
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339 $as_echo_n "checking for $ac_word... " >&6; }
3340 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3341   $as_echo_n "(cached) " >&6
3342 else
3343   if test -n "$ac_ct_CC"; then
3344   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3345 else
3346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347 for as_dir in $PATH
3348 do
3349   IFS=$as_save_IFS
3350   test -z "$as_dir" && as_dir=.
3351     for ac_exec_ext in '' $ac_executable_extensions; do
3352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353     ac_cv_prog_ac_ct_CC="$ac_prog"
3354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355     break 2
3356   fi
3357 done
3358   done
3359 IFS=$as_save_IFS
3360
3361 fi
3362 fi
3363 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3364 if test -n "$ac_ct_CC"; then
3365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3366 $as_echo "$ac_ct_CC" >&6; }
3367 else
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369 $as_echo "no" >&6; }
3370 fi
3371
3372
3373   test -n "$ac_ct_CC" && break
3374 done
3375
3376   if test "x$ac_ct_CC" = x; then
3377     CC=""
3378   else
3379     case $cross_compiling:$ac_tool_warned in
3380 yes:)
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3383 ac_tool_warned=yes ;;
3384 esac
3385     CC=$ac_ct_CC
3386   fi
3387 fi
3388
3389 fi
3390
3391
3392 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3393 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3394 as_fn_error $? "no acceptable C compiler found in \$PATH
3395 See \`config.log' for more details" "$LINENO" 5; }
3396
3397 # Provide some information about the compiler.
3398 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3399 set X $ac_compile
3400 ac_compiler=$2
3401 for ac_option in --version -v -V -qversion; do
3402   { { ac_try="$ac_compiler $ac_option >&5"
3403 case "(($ac_try" in
3404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405   *) ac_try_echo=$ac_try;;
3406 esac
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408 $as_echo "$ac_try_echo"; } >&5
3409   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3410   ac_status=$?
3411   if test -s conftest.err; then
3412     sed '10a\
3413 ... rest of stderr output deleted ...
3414          10q' conftest.err >conftest.er1
3415     cat conftest.er1 >&5
3416   fi
3417   rm -f conftest.er1 conftest.err
3418   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419   test $ac_status = 0; }
3420 done
3421
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 ac_clean_files_save=$ac_clean_files
3434 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3435 # Try to create an executable without -o first, disregard a.out.
3436 # It will help us diagnose broken compilers, and finding out an intuition
3437 # of exeext.
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3439 $as_echo_n "checking whether the C compiler works... " >&6; }
3440 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3441
3442 # The possible output files:
3443 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3444
3445 ac_rmfiles=
3446 for ac_file in $ac_files
3447 do
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3450     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3451   esac
3452 done
3453 rm -f $ac_rmfiles
3454
3455 if { { ac_try="$ac_link_default"
3456 case "(($ac_try" in
3457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458   *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462   (eval "$ac_link_default") 2>&5
3463   ac_status=$?
3464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465   test $ac_status = 0; }; then :
3466   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3467 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3468 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3469 # so that the user can short-circuit this test for compilers unknown to
3470 # Autoconf.
3471 for ac_file in $ac_files ''
3472 do
3473   test -f "$ac_file" || continue
3474   case $ac_file in
3475     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3476         ;;
3477     [ab].out )
3478         # We found the default executable, but exeext='' is most
3479         # certainly right.
3480         break;;
3481     *.* )
3482         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3483         then :; else
3484            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3485         fi
3486         # We set ac_cv_exeext here because the later test for it is not
3487         # safe: cross compilers may not add the suffix if given an `-o'
3488         # argument, so we may need to know it at that point already.
3489         # Even if this section looks crufty: it has the advantage of
3490         # actually working.
3491         break;;
3492     * )
3493         break;;
3494   esac
3495 done
3496 test "$ac_cv_exeext" = no && ac_cv_exeext=
3497
3498 else
3499   ac_file=''
3500 fi
3501 if test -z "$ac_file"; then :
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 $as_echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3506
3507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3509 as_fn_error 77 "C compiler cannot create executables
3510 See \`config.log' for more details" "$LINENO" 5; }
3511 else
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3513 $as_echo "yes" >&6; }
3514 fi
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3516 $as_echo_n "checking for C compiler default output file name... " >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3518 $as_echo "$ac_file" >&6; }
3519 ac_exeext=$ac_cv_exeext
3520
3521 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3522 ac_clean_files=$ac_clean_files_save
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3524 $as_echo_n "checking for suffix of executables... " >&6; }
3525 if { { ac_try="$ac_link"
3526 case "(($ac_try" in
3527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528   *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532   (eval "$ac_link") 2>&5
3533   ac_status=$?
3534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535   test $ac_status = 0; }; then :
3536   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3537 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3538 # work properly (i.e., refer to `conftest.exe'), while it won't with
3539 # `rm'.
3540 for ac_file in conftest.exe conftest conftest.*; do
3541   test -f "$ac_file" || continue
3542   case $ac_file in
3543     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3544     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3545           break;;
3546     * ) break;;
3547   esac
3548 done
3549 else
3550   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3553 See \`config.log' for more details" "$LINENO" 5; }
3554 fi
3555 rm -f conftest conftest$ac_cv_exeext
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3557 $as_echo "$ac_cv_exeext" >&6; }
3558
3559 rm -f conftest.$ac_ext
3560 EXEEXT=$ac_cv_exeext
3561 ac_exeext=$EXEEXT
3562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3563 /* end confdefs.h.  */
3564 #include <stdio.h>
3565 int
3566 main ()
3567 {
3568 FILE *f = fopen ("conftest.out", "w");
3569  return ferror (f) || fclose (f) != 0;
3570
3571   ;
3572   return 0;
3573 }
3574 _ACEOF
3575 ac_clean_files="$ac_clean_files conftest.out"
3576 # Check that the compiler produces executables we can run.  If not, either
3577 # the compiler is broken, or we cross compile.
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3579 $as_echo_n "checking whether we are cross compiling... " >&6; }
3580 if test "$cross_compiling" != yes; then
3581   { { ac_try="$ac_link"
3582 case "(($ac_try" in
3583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3584   *) ac_try_echo=$ac_try;;
3585 esac
3586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3587 $as_echo "$ac_try_echo"; } >&5
3588   (eval "$ac_link") 2>&5
3589   ac_status=$?
3590   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3591   test $ac_status = 0; }
3592   if { ac_try='./conftest$ac_cv_exeext'
3593   { { case "(($ac_try" in
3594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595   *) ac_try_echo=$ac_try;;
3596 esac
3597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598 $as_echo "$ac_try_echo"; } >&5
3599   (eval "$ac_try") 2>&5
3600   ac_status=$?
3601   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602   test $ac_status = 0; }; }; then
3603     cross_compiling=no
3604   else
3605     if test "$cross_compiling" = maybe; then
3606         cross_compiling=yes
3607     else
3608         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3610 as_fn_error $? "cannot run C compiled programs.
3611 If you meant to cross compile, use \`--host'.
3612 See \`config.log' for more details" "$LINENO" 5; }
3613     fi
3614   fi
3615 fi
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3617 $as_echo "$cross_compiling" >&6; }
3618
3619 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3620 ac_clean_files=$ac_clean_files_save
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3622 $as_echo_n "checking for suffix of object files... " >&6; }
3623 if ${ac_cv_objext+:} false; then :
3624   $as_echo_n "(cached) " >&6
3625 else
3626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h.  */
3628
3629 int
3630 main ()
3631 {
3632
3633   ;
3634   return 0;
3635 }
3636 _ACEOF
3637 rm -f conftest.o conftest.obj
3638 if { { ac_try="$ac_compile"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3644 $as_echo "$ac_try_echo"; } >&5
3645   (eval "$ac_compile") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3648   test $ac_status = 0; }; then :
3649   for ac_file in conftest.o conftest.obj conftest.*; do
3650   test -f "$ac_file" || continue;
3651   case $ac_file in
3652     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3653     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3654        break;;
3655   esac
3656 done
3657 else
3658   $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.$ac_ext >&5
3660
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error $? "cannot compute suffix of object files: cannot compile
3664 See \`config.log' for more details" "$LINENO" 5; }
3665 fi
3666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3667 fi
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3669 $as_echo "$ac_cv_objext" >&6; }
3670 OBJEXT=$ac_cv_objext
3671 ac_objext=$OBJEXT
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3674 if ${ac_cv_c_compiler_gnu+:} false; then :
3675   $as_echo_n "(cached) " >&6
3676 else
3677   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h.  */
3679
3680 int
3681 main ()
3682 {
3683 #ifndef __GNUC__
3684        choke me
3685 #endif
3686
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 if ac_fn_c_try_compile "$LINENO"; then :
3692   ac_compiler_gnu=yes
3693 else
3694   ac_compiler_gnu=no
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3698
3699 fi
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3701 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3702 if test $ac_compiler_gnu = yes; then
3703   GCC=yes
3704 else
3705   GCC=
3706 fi
3707 ac_test_CFLAGS=${CFLAGS+set}
3708 ac_save_CFLAGS=$CFLAGS
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3710 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3711 if ${ac_cv_prog_cc_g+:} false; then :
3712   $as_echo_n "(cached) " >&6
3713 else
3714   ac_save_c_werror_flag=$ac_c_werror_flag
3715    ac_c_werror_flag=yes
3716    ac_cv_prog_cc_g=no
3717    CFLAGS="-g"
3718    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h.  */
3720
3721 int
3722 main ()
3723 {
3724
3725   ;
3726   return 0;
3727 }
3728 _ACEOF
3729 if ac_fn_c_try_compile "$LINENO"; then :
3730   ac_cv_prog_cc_g=yes
3731 else
3732   CFLAGS=""
3733       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h.  */
3735
3736 int
3737 main ()
3738 {
3739
3740   ;
3741   return 0;
3742 }
3743 _ACEOF
3744 if ac_fn_c_try_compile "$LINENO"; then :
3745
3746 else
3747   ac_c_werror_flag=$ac_save_c_werror_flag
3748          CFLAGS="-g"
3749          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h.  */
3751
3752 int
3753 main ()
3754 {
3755
3756   ;
3757   return 0;
3758 }
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761   ac_cv_prog_cc_g=yes
3762 fi
3763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3764 fi
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 fi
3767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3768    ac_c_werror_flag=$ac_save_c_werror_flag
3769 fi
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3771 $as_echo "$ac_cv_prog_cc_g" >&6; }
3772 if test "$ac_test_CFLAGS" = set; then
3773   CFLAGS=$ac_save_CFLAGS
3774 elif test $ac_cv_prog_cc_g = yes; then
3775   if test "$GCC" = yes; then
3776     CFLAGS="-g -O2"
3777   else
3778     CFLAGS="-g"
3779   fi
3780 else
3781   if test "$GCC" = yes; then
3782     CFLAGS="-O2"
3783   else
3784     CFLAGS=
3785   fi
3786 fi
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3788 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3789 if ${ac_cv_prog_cc_c89+:} false; then :
3790   $as_echo_n "(cached) " >&6
3791 else
3792   ac_cv_prog_cc_c89=no
3793 ac_save_CC=$CC
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h.  */
3796 #include <stdarg.h>
3797 #include <stdio.h>
3798 struct stat;
3799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3800 struct buf { int x; };
3801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3802 static char *e (p, i)
3803      char **p;
3804      int i;
3805 {
3806   return p[i];
3807 }
3808 static char *f (char * (*g) (char **, int), char **p, ...)
3809 {
3810   char *s;
3811   va_list v;
3812   va_start (v,p);
3813   s = g (p, va_arg (v,int));
3814   va_end (v);
3815   return s;
3816 }
3817
3818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3819    function prototypes and stuff, but not '\xHH' hex character constants.
3820    These don't provoke an error unfortunately, instead are silently treated
3821    as 'x'.  The following induces an error, until -std is added to get
3822    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3823    array size at least.  It's necessary to write '\x00'==0 to get something
3824    that's true only with -std.  */
3825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3826
3827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3828    inside strings and character constants.  */
3829 #define FOO(x) 'x'
3830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3831
3832 int test (int i, double x);
3833 struct s1 {int (*f) (int a);};
3834 struct s2 {int (*f) (double a);};
3835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3836 int argc;
3837 char **argv;
3838 int
3839 main ()
3840 {
3841 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3842   ;
3843   return 0;
3844 }
3845 _ACEOF
3846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3847         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3848 do
3849   CC="$ac_save_CC $ac_arg"
3850   if ac_fn_c_try_compile "$LINENO"; then :
3851   ac_cv_prog_cc_c89=$ac_arg
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext
3854   test "x$ac_cv_prog_cc_c89" != "xno" && break
3855 done
3856 rm -f conftest.$ac_ext
3857 CC=$ac_save_CC
3858
3859 fi
3860 # AC_CACHE_VAL
3861 case "x$ac_cv_prog_cc_c89" in
3862   x)
3863     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3864 $as_echo "none needed" >&6; } ;;
3865   xno)
3866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3867 $as_echo "unsupported" >&6; } ;;
3868   *)
3869     CC="$CC $ac_cv_prog_cc_c89"
3870     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3872 esac
3873 if test "x$ac_cv_prog_cc_c89" != xno; then :
3874
3875 fi
3876
3877 ac_ext=c
3878 ac_cpp='$CPP $CPPFLAGS'
3879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3882
3883 depcc="$CC"   am_compiler_list=
3884
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3886 $as_echo_n "checking dependency style of $depcc... " >&6; }
3887 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3888   $as_echo_n "(cached) " >&6
3889 else
3890   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3891   # We make a subdir and do the tests there.  Otherwise we can end up
3892   # making bogus files that we don't know about and never remove.  For
3893   # instance it was reported that on HP-UX the gcc test will end up
3894   # making a dummy file named 'D' -- because '-MD' means "put the output
3895   # in D".
3896   rm -rf conftest.dir
3897   mkdir conftest.dir
3898   # Copy depcomp to subdir because otherwise we won't find it if we're
3899   # using a relative directory.
3900   cp "$am_depcomp" conftest.dir
3901   cd conftest.dir
3902   # We will build objects and dependencies in a subdirectory because
3903   # it helps to detect inapplicable dependency modes.  For instance
3904   # both Tru64's cc and ICC support -MD to output dependencies as a
3905   # side effect of compilation, but ICC will put the dependencies in
3906   # the current directory while Tru64 will put them in the object
3907   # directory.
3908   mkdir sub
3909
3910   am_cv_CC_dependencies_compiler_type=none
3911   if test "$am_compiler_list" = ""; then
3912      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3913   fi
3914   am__universal=false
3915   case " $depcc " in #(
3916      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3917      esac
3918
3919   for depmode in $am_compiler_list; do
3920     # Setup a source with many dependencies, because some compilers
3921     # like to wrap large dependency lists on column 80 (with \), and
3922     # we should not choose a depcomp mode which is confused by this.
3923     #
3924     # We need to recreate these files for each test, as the compiler may
3925     # overwrite some of them when testing with obscure command lines.
3926     # This happens at least with the AIX C compiler.
3927     : > sub/conftest.c
3928     for i in 1 2 3 4 5 6; do
3929       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3930       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3931       # Solaris 10 /bin/sh.
3932       echo '/* dummy */' > sub/conftst$i.h
3933     done
3934     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3935
3936     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3937     # mode.  It turns out that the SunPro C++ compiler does not properly
3938     # handle '-M -o', and we need to detect this.  Also, some Intel
3939     # versions had trouble with output in subdirs.
3940     am__obj=sub/conftest.${OBJEXT-o}
3941     am__minus_obj="-o $am__obj"
3942     case $depmode in
3943     gcc)
3944       # This depmode causes a compiler race in universal mode.
3945       test "$am__universal" = false || continue
3946       ;;
3947     nosideeffect)
3948       # After this tag, mechanisms are not by side-effect, so they'll
3949       # only be used when explicitly requested.
3950       if test "x$enable_dependency_tracking" = xyes; then
3951         continue
3952       else
3953         break
3954       fi
3955       ;;
3956     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3957       # This compiler won't grok '-c -o', but also, the minuso test has
3958       # not run yet.  These depmodes are late enough in the game, and
3959       # so weak that their functioning should not be impacted.
3960       am__obj=conftest.${OBJEXT-o}
3961       am__minus_obj=
3962       ;;
3963     none) break ;;
3964     esac
3965     if depmode=$depmode \
3966        source=sub/conftest.c object=$am__obj \
3967        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3968        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3969          >/dev/null 2>conftest.err &&
3970        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3971        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3972        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3973        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3974       # icc doesn't choke on unknown options, it will just issue warnings
3975       # or remarks (even with -Werror).  So we grep stderr for any message
3976       # that says an option was ignored or not supported.
3977       # When given -MP, icc 7.0 and 7.1 complain thusly:
3978       #   icc: Command line warning: ignoring option '-M'; no argument required
3979       # The diagnosis changed in icc 8.0:
3980       #   icc: Command line remark: option '-MP' not supported
3981       if (grep 'ignoring option' conftest.err ||
3982           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3983         am_cv_CC_dependencies_compiler_type=$depmode
3984         break
3985       fi
3986     fi
3987   done
3988
3989   cd ..
3990   rm -rf conftest.dir
3991 else
3992   am_cv_CC_dependencies_compiler_type=none
3993 fi
3994
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3997 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3998 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3999
4000  if
4001   test "x$enable_dependency_tracking" != xno \
4002   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4003   am__fastdepCC_TRUE=
4004   am__fastdepCC_FALSE='#'
4005 else
4006   am__fastdepCC_TRUE='#'
4007   am__fastdepCC_FALSE=
4008 fi
4009
4010
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4012 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4013 if ${ac_cv_path_SED+:} false; then :
4014   $as_echo_n "(cached) " >&6
4015 else
4016             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4017      for ac_i in 1 2 3 4 5 6 7; do
4018        ac_script="$ac_script$as_nl$ac_script"
4019      done
4020      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4021      { ac_script=; unset ac_script;}
4022      if test -z "$SED"; then
4023   ac_path_SED_found=false
4024   # Loop through the user's path and test for each of PROGNAME-LIST
4025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028   IFS=$as_save_IFS
4029   test -z "$as_dir" && as_dir=.
4030     for ac_prog in sed gsed; do
4031     for ac_exec_ext in '' $ac_executable_extensions; do
4032       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4033       as_fn_executable_p "$ac_path_SED" || continue
4034 # Check for GNU ac_path_SED and select it if it is found.
4035   # Check for GNU $ac_path_SED
4036 case `"$ac_path_SED" --version 2>&1` in
4037 *GNU*)
4038   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4039 *)
4040   ac_count=0
4041   $as_echo_n 0123456789 >"conftest.in"
4042   while :
4043   do
4044     cat "conftest.in" "conftest.in" >"conftest.tmp"
4045     mv "conftest.tmp" "conftest.in"
4046     cp "conftest.in" "conftest.nl"
4047     $as_echo '' >> "conftest.nl"
4048     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4049     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4050     as_fn_arith $ac_count + 1 && ac_count=$as_val
4051     if test $ac_count -gt ${ac_path_SED_max-0}; then
4052       # Best one so far, save it but keep looking for a better one
4053       ac_cv_path_SED="$ac_path_SED"
4054       ac_path_SED_max=$ac_count
4055     fi
4056     # 10*(2^10) chars as input seems more than enough
4057     test $ac_count -gt 10 && break
4058   done
4059   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 esac
4061
4062       $ac_path_SED_found && break 3
4063     done
4064   done
4065   done
4066 IFS=$as_save_IFS
4067   if test -z "$ac_cv_path_SED"; then
4068     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4069   fi
4070 else
4071   ac_cv_path_SED=$SED
4072 fi
4073
4074 fi
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4076 $as_echo "$ac_cv_path_SED" >&6; }
4077  SED="$ac_cv_path_SED"
4078   rm -f conftest.sed
4079
4080 test -z "$SED" && SED=sed
4081 Xsed="$SED -e 1s/^X//"
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4094 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4095 if ${ac_cv_path_GREP+:} false; then :
4096   $as_echo_n "(cached) " >&6
4097 else
4098   if test -z "$GREP"; then
4099   ac_path_GREP_found=false
4100   # Loop through the user's path and test for each of PROGNAME-LIST
4101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 do
4104   IFS=$as_save_IFS
4105   test -z "$as_dir" && as_dir=.
4106     for ac_prog in grep ggrep; do
4107     for ac_exec_ext in '' $ac_executable_extensions; do
4108       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4109       as_fn_executable_p "$ac_path_GREP" || continue
4110 # Check for GNU ac_path_GREP and select it if it is found.
4111   # Check for GNU $ac_path_GREP
4112 case `"$ac_path_GREP" --version 2>&1` in
4113 *GNU*)
4114   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4115 *)
4116   ac_count=0
4117   $as_echo_n 0123456789 >"conftest.in"
4118   while :
4119   do
4120     cat "conftest.in" "conftest.in" >"conftest.tmp"
4121     mv "conftest.tmp" "conftest.in"
4122     cp "conftest.in" "conftest.nl"
4123     $as_echo 'GREP' >> "conftest.nl"
4124     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126     as_fn_arith $ac_count + 1 && ac_count=$as_val
4127     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4128       # Best one so far, save it but keep looking for a better one
4129       ac_cv_path_GREP="$ac_path_GREP"
4130       ac_path_GREP_max=$ac_count
4131     fi
4132     # 10*(2^10) chars as input seems more than enough
4133     test $ac_count -gt 10 && break
4134   done
4135   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136 esac
4137
4138       $ac_path_GREP_found && break 3
4139     done
4140   done
4141   done
4142 IFS=$as_save_IFS
4143   if test -z "$ac_cv_path_GREP"; then
4144     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145   fi
4146 else
4147   ac_cv_path_GREP=$GREP
4148 fi
4149
4150 fi
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4152 $as_echo "$ac_cv_path_GREP" >&6; }
4153  GREP="$ac_cv_path_GREP"
4154
4155
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4157 $as_echo_n "checking for egrep... " >&6; }
4158 if ${ac_cv_path_EGREP+:} false; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4162    then ac_cv_path_EGREP="$GREP -E"
4163    else
4164      if test -z "$EGREP"; then
4165   ac_path_EGREP_found=false
4166   # Loop through the user's path and test for each of PROGNAME-LIST
4167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4169 do
4170   IFS=$as_save_IFS
4171   test -z "$as_dir" && as_dir=.
4172     for ac_prog in egrep; do
4173     for ac_exec_ext in '' $ac_executable_extensions; do
4174       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4175       as_fn_executable_p "$ac_path_EGREP" || continue
4176 # Check for GNU ac_path_EGREP and select it if it is found.
4177   # Check for GNU $ac_path_EGREP
4178 case `"$ac_path_EGREP" --version 2>&1` in
4179 *GNU*)
4180   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4181 *)
4182   ac_count=0
4183   $as_echo_n 0123456789 >"conftest.in"
4184   while :
4185   do
4186     cat "conftest.in" "conftest.in" >"conftest.tmp"
4187     mv "conftest.tmp" "conftest.in"
4188     cp "conftest.in" "conftest.nl"
4189     $as_echo 'EGREP' >> "conftest.nl"
4190     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4191     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4192     as_fn_arith $ac_count + 1 && ac_count=$as_val
4193     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4194       # Best one so far, save it but keep looking for a better one
4195       ac_cv_path_EGREP="$ac_path_EGREP"
4196       ac_path_EGREP_max=$ac_count
4197     fi
4198     # 10*(2^10) chars as input seems more than enough
4199     test $ac_count -gt 10 && break
4200   done
4201   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4202 esac
4203
4204       $ac_path_EGREP_found && break 3
4205     done
4206   done
4207   done
4208 IFS=$as_save_IFS
4209   if test -z "$ac_cv_path_EGREP"; then
4210     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4211   fi
4212 else
4213   ac_cv_path_EGREP=$EGREP
4214 fi
4215
4216    fi
4217 fi
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4219 $as_echo "$ac_cv_path_EGREP" >&6; }
4220  EGREP="$ac_cv_path_EGREP"
4221
4222
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4224 $as_echo_n "checking for fgrep... " >&6; }
4225 if ${ac_cv_path_FGREP+:} false; then :
4226   $as_echo_n "(cached) " >&6
4227 else
4228   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4229    then ac_cv_path_FGREP="$GREP -F"
4230    else
4231      if test -z "$FGREP"; then
4232   ac_path_FGREP_found=false
4233   # Loop through the user's path and test for each of PROGNAME-LIST
4234   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4236 do
4237   IFS=$as_save_IFS
4238   test -z "$as_dir" && as_dir=.
4239     for ac_prog in fgrep; do
4240     for ac_exec_ext in '' $ac_executable_extensions; do
4241       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4242       as_fn_executable_p "$ac_path_FGREP" || continue
4243 # Check for GNU ac_path_FGREP and select it if it is found.
4244   # Check for GNU $ac_path_FGREP
4245 case `"$ac_path_FGREP" --version 2>&1` in
4246 *GNU*)
4247   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4248 *)
4249   ac_count=0
4250   $as_echo_n 0123456789 >"conftest.in"
4251   while :
4252   do
4253     cat "conftest.in" "conftest.in" >"conftest.tmp"
4254     mv "conftest.tmp" "conftest.in"
4255     cp "conftest.in" "conftest.nl"
4256     $as_echo 'FGREP' >> "conftest.nl"
4257     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4258     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4259     as_fn_arith $ac_count + 1 && ac_count=$as_val
4260     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4261       # Best one so far, save it but keep looking for a better one
4262       ac_cv_path_FGREP="$ac_path_FGREP"
4263       ac_path_FGREP_max=$ac_count
4264     fi
4265     # 10*(2^10) chars as input seems more than enough
4266     test $ac_count -gt 10 && break
4267   done
4268   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4269 esac
4270
4271       $ac_path_FGREP_found && break 3
4272     done
4273   done
4274   done
4275 IFS=$as_save_IFS
4276   if test -z "$ac_cv_path_FGREP"; then
4277     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4278   fi
4279 else
4280   ac_cv_path_FGREP=$FGREP
4281 fi
4282
4283    fi
4284 fi
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4286 $as_echo "$ac_cv_path_FGREP" >&6; }
4287  FGREP="$ac_cv_path_FGREP"
4288
4289
4290 test -z "$GREP" && GREP=grep
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310 # Check whether --with-gnu-ld was given.
4311 if test "${with_gnu_ld+set}" = set; then :
4312   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4313 else
4314   with_gnu_ld=no
4315 fi
4316
4317 ac_prog=ld
4318 if test "$GCC" = yes; then
4319   # Check if gcc -print-prog-name=ld gives a path.
4320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4321 $as_echo_n "checking for ld used by $CC... " >&6; }
4322   case $host in
4323   *-*-mingw*)
4324     # gcc leaves a trailing carriage return which upsets mingw
4325     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4326   *)
4327     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4328   esac
4329   case $ac_prog in
4330     # Accept absolute paths.
4331     [\\/]* | ?:[\\/]*)
4332       re_direlt='/[^/][^/]*/\.\./'
4333       # Canonicalize the pathname of ld
4334       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4335       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4336         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4337       done
4338       test -z "$LD" && LD="$ac_prog"
4339       ;;
4340   "")
4341     # If it fails, then pretend we aren't using GCC.
4342     ac_prog=ld
4343     ;;
4344   *)
4345     # If it is relative, then search for the first ld in PATH.
4346     with_gnu_ld=unknown
4347     ;;
4348   esac
4349 elif test "$with_gnu_ld" = yes; then
4350   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4351 $as_echo_n "checking for GNU ld... " >&6; }
4352 else
4353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4354 $as_echo_n "checking for non-GNU ld... " >&6; }
4355 fi
4356 if ${lt_cv_path_LD+:} false; then :
4357   $as_echo_n "(cached) " >&6
4358 else
4359   if test -z "$LD"; then
4360   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4361   for ac_dir in $PATH; do
4362     IFS="$lt_save_ifs"
4363     test -z "$ac_dir" && ac_dir=.
4364     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4365       lt_cv_path_LD="$ac_dir/$ac_prog"
4366       # Check to see if the program is GNU ld.  I'd rather use --version,
4367       # but apparently some variants of GNU ld only accept -v.
4368       # Break only if it was the GNU/non-GNU ld that we prefer.
4369       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4370       *GNU* | *'with BFD'*)
4371         test "$with_gnu_ld" != no && break
4372         ;;
4373       *)
4374         test "$with_gnu_ld" != yes && break
4375         ;;
4376       esac
4377     fi
4378   done
4379   IFS="$lt_save_ifs"
4380 else
4381   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4382 fi
4383 fi
4384
4385 LD="$lt_cv_path_LD"
4386 if test -n "$LD"; then
4387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4388 $as_echo "$LD" >&6; }
4389 else
4390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4391 $as_echo "no" >&6; }
4392 fi
4393 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4395 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4396 if ${lt_cv_prog_gnu_ld+:} false; then :
4397   $as_echo_n "(cached) " >&6
4398 else
4399   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4400 case `$LD -v 2>&1 </dev/null` in
4401 *GNU* | *'with BFD'*)
4402   lt_cv_prog_gnu_ld=yes
4403   ;;
4404 *)
4405   lt_cv_prog_gnu_ld=no
4406   ;;
4407 esac
4408 fi
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4410 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4411 with_gnu_ld=$lt_cv_prog_gnu_ld
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4422 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4423 if ${lt_cv_path_NM+:} false; then :
4424   $as_echo_n "(cached) " >&6
4425 else
4426   if test -n "$NM"; then
4427   # Let the user override the test.
4428   lt_cv_path_NM="$NM"
4429 else
4430   lt_nm_to_check="${ac_tool_prefix}nm"
4431   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4432     lt_nm_to_check="$lt_nm_to_check nm"
4433   fi
4434   for lt_tmp_nm in $lt_nm_to_check; do
4435     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4436     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4437       IFS="$lt_save_ifs"
4438       test -z "$ac_dir" && ac_dir=.
4439       tmp_nm="$ac_dir/$lt_tmp_nm"
4440       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4441         # Check to see if the nm accepts a BSD-compat flag.
4442         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4443         #   nm: unknown option "B" ignored
4444         # Tru64's nm complains that /dev/null is an invalid object file
4445         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4446         */dev/null* | *'Invalid file or object type'*)
4447           lt_cv_path_NM="$tmp_nm -B"
4448           break
4449           ;;
4450         *)
4451           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4452           */dev/null*)
4453             lt_cv_path_NM="$tmp_nm -p"
4454             break
4455             ;;
4456           *)
4457             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4458             continue # so that we can try to find one that supports BSD flags
4459             ;;
4460           esac
4461           ;;
4462         esac
4463       fi
4464     done
4465     IFS="$lt_save_ifs"
4466   done
4467   : ${lt_cv_path_NM=no}
4468 fi
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4471 $as_echo "$lt_cv_path_NM" >&6; }
4472 if test "$lt_cv_path_NM" != "no"; then
4473   NM="$lt_cv_path_NM"
4474 else
4475   # Didn't find any BSD compatible name lister, look for dumpbin.
4476   if test -n "$DUMPBIN"; then :
4477     # Let the user override the test.
4478   else
4479     if test -n "$ac_tool_prefix"; then
4480   for ac_prog in dumpbin "link -dump"
4481   do
4482     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4483 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4485 $as_echo_n "checking for $ac_word... " >&6; }
4486 if ${ac_cv_prog_DUMPBIN+:} false; then :
4487   $as_echo_n "(cached) " >&6
4488 else
4489   if test -n "$DUMPBIN"; then
4490   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4494 do
4495   IFS=$as_save_IFS
4496   test -z "$as_dir" && as_dir=.
4497     for ac_exec_ext in '' $ac_executable_extensions; do
4498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4499     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4501     break 2
4502   fi
4503 done
4504   done
4505 IFS=$as_save_IFS
4506
4507 fi
4508 fi
4509 DUMPBIN=$ac_cv_prog_DUMPBIN
4510 if test -n "$DUMPBIN"; then
4511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4512 $as_echo "$DUMPBIN" >&6; }
4513 else
4514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4515 $as_echo "no" >&6; }
4516 fi
4517
4518
4519     test -n "$DUMPBIN" && break
4520   done
4521 fi
4522 if test -z "$DUMPBIN"; then
4523   ac_ct_DUMPBIN=$DUMPBIN
4524   for ac_prog in dumpbin "link -dump"
4525 do
4526   # Extract the first word of "$ac_prog", so it can be a program name with args.
4527 set dummy $ac_prog; ac_word=$2
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4529 $as_echo_n "checking for $ac_word... " >&6; }
4530 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4531   $as_echo_n "(cached) " >&6
4532 else
4533   if test -n "$ac_ct_DUMPBIN"; then
4534   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4535 else
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 for as_dir in $PATH
4538 do
4539   IFS=$as_save_IFS
4540   test -z "$as_dir" && as_dir=.
4541     for ac_exec_ext in '' $ac_executable_extensions; do
4542   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4543     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4544     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4545     break 2
4546   fi
4547 done
4548   done
4549 IFS=$as_save_IFS
4550
4551 fi
4552 fi
4553 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4554 if test -n "$ac_ct_DUMPBIN"; then
4555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4556 $as_echo "$ac_ct_DUMPBIN" >&6; }
4557 else
4558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4559 $as_echo "no" >&6; }
4560 fi
4561
4562
4563   test -n "$ac_ct_DUMPBIN" && break
4564 done
4565
4566   if test "x$ac_ct_DUMPBIN" = x; then
4567     DUMPBIN=":"
4568   else
4569     case $cross_compiling:$ac_tool_warned in
4570 yes:)
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4573 ac_tool_warned=yes ;;
4574 esac
4575     DUMPBIN=$ac_ct_DUMPBIN
4576   fi
4577 fi
4578
4579     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4580     *COFF*)
4581       DUMPBIN="$DUMPBIN -symbols"
4582       ;;
4583     *)
4584       DUMPBIN=:
4585       ;;
4586     esac
4587   fi
4588
4589   if test "$DUMPBIN" != ":"; then
4590     NM="$DUMPBIN"
4591   fi
4592 fi
4593 test -z "$NM" && NM=nm
4594
4595
4596
4597
4598
4599
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4601 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4602 if ${lt_cv_nm_interface+:} false; then :
4603   $as_echo_n "(cached) " >&6
4604 else
4605   lt_cv_nm_interface="BSD nm"
4606   echo "int some_variable = 0;" > conftest.$ac_ext
4607   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4608   (eval "$ac_compile" 2>conftest.err)
4609   cat conftest.err >&5
4610   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4611   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4612   cat conftest.err >&5
4613   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4614   cat conftest.out >&5
4615   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4616     lt_cv_nm_interface="MS dumpbin"
4617   fi
4618   rm -f conftest*
4619 fi
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4621 $as_echo "$lt_cv_nm_interface" >&6; }
4622
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4624 $as_echo_n "checking whether ln -s works... " >&6; }
4625 LN_S=$as_ln_s
4626 if test "$LN_S" = "ln -s"; then
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4628 $as_echo "yes" >&6; }
4629 else
4630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4631 $as_echo "no, using $LN_S" >&6; }
4632 fi
4633
4634 # find the maximum length of command line arguments
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4636 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4637 if ${lt_cv_sys_max_cmd_len+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640     i=0
4641   teststring="ABCD"
4642
4643   case $build_os in
4644   msdosdjgpp*)
4645     # On DJGPP, this test can blow up pretty badly due to problems in libc
4646     # (any single argument exceeding 2000 bytes causes a buffer overrun
4647     # during glob expansion).  Even if it were fixed, the result of this
4648     # check would be larger than it should be.
4649     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4650     ;;
4651
4652   gnu*)
4653     # Under GNU Hurd, this test is not required because there is
4654     # no limit to the length of command line arguments.
4655     # Libtool will interpret -1 as no limit whatsoever
4656     lt_cv_sys_max_cmd_len=-1;
4657     ;;
4658
4659   cygwin* | mingw* | cegcc*)
4660     # On Win9x/ME, this test blows up -- it succeeds, but takes
4661     # about 5 minutes as the teststring grows exponentially.
4662     # Worse, since 9x/ME are not pre-emptively multitasking,
4663     # you end up with a "frozen" computer, even though with patience
4664     # the test eventually succeeds (with a max line length of 256k).
4665     # Instead, let's just punt: use the minimum linelength reported by
4666     # all of the supported platforms: 8192 (on NT/2K/XP).
4667     lt_cv_sys_max_cmd_len=8192;
4668     ;;
4669
4670   mint*)
4671     # On MiNT this can take a long time and run out of memory.
4672     lt_cv_sys_max_cmd_len=8192;
4673     ;;
4674
4675   amigaos*)
4676     # On AmigaOS with pdksh, this test takes hours, literally.
4677     # So we just punt and use a minimum line length of 8192.
4678     lt_cv_sys_max_cmd_len=8192;
4679     ;;
4680
4681   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4682     # This has been around since 386BSD, at least.  Likely further.
4683     if test -x /sbin/sysctl; then
4684       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4685     elif test -x /usr/sbin/sysctl; then
4686       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4687     else
4688       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4689     fi
4690     # And add a safety zone
4691     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4692     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4693     ;;
4694
4695   interix*)
4696     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4697     lt_cv_sys_max_cmd_len=196608
4698     ;;
4699
4700   os2*)
4701     # The test takes a long time on OS/2.
4702     lt_cv_sys_max_cmd_len=8192
4703     ;;
4704
4705   osf*)
4706     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4707     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4708     # nice to cause kernel panics so lets avoid the loop below.
4709     # First set a reasonable default.
4710     lt_cv_sys_max_cmd_len=16384
4711     #
4712     if test -x /sbin/sysconfig; then
4713       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4714         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4715       esac
4716     fi
4717     ;;
4718   sco3.2v5*)
4719     lt_cv_sys_max_cmd_len=102400
4720     ;;
4721   sysv5* | sco5v6* | sysv4.2uw2*)
4722     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4723     if test -n "$kargmax"; then
4724       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4725     else
4726       lt_cv_sys_max_cmd_len=32768
4727     fi
4728     ;;
4729   *)
4730     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4731     if test -n "$lt_cv_sys_max_cmd_len" && \
4732         test undefined != "$lt_cv_sys_max_cmd_len"; then
4733       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4734       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4735     else
4736       # Make teststring a little bigger before we do anything with it.
4737       # a 1K string should be a reasonable start.
4738       for i in 1 2 3 4 5 6 7 8 ; do
4739         teststring=$teststring$teststring
4740       done
4741       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4742       # If test is not a shell built-in, we'll probably end up computing a
4743       # maximum length that is only half of the actual maximum length, but
4744       # we can't tell.
4745       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4746                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4747               test $i != 17 # 1/2 MB should be enough
4748       do
4749         i=`expr $i + 1`
4750         teststring=$teststring$teststring
4751       done
4752       # Only check the string length outside the loop.
4753       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4754       teststring=
4755       # Add a significant safety factor because C++ compilers can tack on
4756       # massive amounts of additional arguments before passing them to the
4757       # linker.  It appears as though 1/2 is a usable value.
4758       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4759     fi
4760     ;;
4761   esac
4762
4763 fi
4764
4765 if test -n $lt_cv_sys_max_cmd_len ; then
4766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4767 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4768 else
4769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4770 $as_echo "none" >&6; }
4771 fi
4772 max_cmd_len=$lt_cv_sys_max_cmd_len
4773
4774
4775
4776
4777
4778
4779 : ${CP="cp -f"}
4780 : ${MV="mv -f"}
4781 : ${RM="rm -f"}
4782
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4784 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4785 # Try some XSI features
4786 xsi_shell=no
4787 ( _lt_dummy="a/b/c"
4788   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4789       = c,a/b,b/c, \
4790     && eval 'test $(( 1 + 1 )) -eq 2 \
4791     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4792   && xsi_shell=yes
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4794 $as_echo "$xsi_shell" >&6; }
4795
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4798 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4799 lt_shell_append=no
4800 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4801     >/dev/null 2>&1 \
4802   && lt_shell_append=yes
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4804 $as_echo "$lt_shell_append" >&6; }
4805
4806
4807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4808   lt_unset=unset
4809 else
4810   lt_unset=false
4811 fi
4812
4813
4814
4815
4816
4817 # test EBCDIC or ASCII
4818 case `echo X|tr X '\101'` in
4819  A) # ASCII based system
4820     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4821   lt_SP2NL='tr \040 \012'
4822   lt_NL2SP='tr \015\012 \040\040'
4823   ;;
4824  *) # EBCDIC based system
4825   lt_SP2NL='tr \100 \n'
4826   lt_NL2SP='tr \r\n \100\100'
4827   ;;
4828 esac
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4839 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4840 if ${lt_cv_to_host_file_cmd+:} false; then :
4841   $as_echo_n "(cached) " >&6
4842 else
4843   case $host in
4844   *-*-mingw* )
4845     case $build in
4846       *-*-mingw* ) # actually msys
4847         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4848         ;;
4849       *-*-cygwin* )
4850         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4851         ;;
4852       * ) # otherwise, assume *nix
4853         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4854         ;;
4855     esac
4856     ;;
4857   *-*-cygwin* )
4858     case $build in
4859       *-*-mingw* ) # actually msys
4860         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4861         ;;
4862       *-*-cygwin* )
4863         lt_cv_to_host_file_cmd=func_convert_file_noop
4864         ;;
4865       * ) # otherwise, assume *nix
4866         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4867         ;;
4868     esac
4869     ;;
4870   * ) # unhandled hosts (and "normal" native builds)
4871     lt_cv_to_host_file_cmd=func_convert_file_noop
4872     ;;
4873 esac
4874
4875 fi
4876
4877 to_host_file_cmd=$lt_cv_to_host_file_cmd
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4879 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4880
4881
4882
4883
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4886 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4887 if ${lt_cv_to_tool_file_cmd+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   #assume ordinary cross tools, or native build.
4891 lt_cv_to_tool_file_cmd=func_convert_file_noop
4892 case $host in
4893   *-*-mingw* )
4894     case $build in
4895       *-*-mingw* ) # actually msys
4896         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4897         ;;
4898     esac
4899     ;;
4900 esac
4901
4902 fi
4903
4904 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4906 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4907
4908
4909
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4913 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4914 if ${lt_cv_ld_reload_flag+:} false; then :
4915   $as_echo_n "(cached) " >&6
4916 else
4917   lt_cv_ld_reload_flag='-r'
4918 fi
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4920 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4921 reload_flag=$lt_cv_ld_reload_flag
4922 case $reload_flag in
4923 "" | " "*) ;;
4924 *) reload_flag=" $reload_flag" ;;
4925 esac
4926 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4927 case $host_os in
4928   cygwin* | mingw* | pw32* | cegcc*)
4929     if test "$GCC" != yes; then
4930       reload_cmds=false
4931     fi
4932     ;;
4933   darwin*)
4934     if test "$GCC" = yes; then
4935       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4936     else
4937       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4938     fi
4939     ;;
4940 esac
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950 if test -n "$ac_tool_prefix"; then
4951   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4952 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if ${ac_cv_prog_OBJDUMP+:} false; then :
4956   $as_echo_n "(cached) " >&6
4957 else
4958   if test -n "$OBJDUMP"; then
4959   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4963 do
4964   IFS=$as_save_IFS
4965   test -z "$as_dir" && as_dir=.
4966     for ac_exec_ext in '' $ac_executable_extensions; do
4967   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4968     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4969     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970     break 2
4971   fi
4972 done
4973   done
4974 IFS=$as_save_IFS
4975
4976 fi
4977 fi
4978 OBJDUMP=$ac_cv_prog_OBJDUMP
4979 if test -n "$OBJDUMP"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4981 $as_echo "$OBJDUMP" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 fi
4989 if test -z "$ac_cv_prog_OBJDUMP"; then
4990   ac_ct_OBJDUMP=$OBJDUMP
4991   # Extract the first word of "objdump", so it can be a program name with args.
4992 set dummy objdump; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   if test -n "$ac_ct_OBJDUMP"; then
4999   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006     for ac_exec_ext in '' $ac_executable_extensions; do
5007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013   done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5019 if test -n "$ac_ct_OBJDUMP"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5021 $as_echo "$ac_ct_OBJDUMP" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027   if test "x$ac_ct_OBJDUMP" = x; then
5028     OBJDUMP="false"
5029   else
5030     case $cross_compiling:$ac_tool_warned in
5031 yes:)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5034 ac_tool_warned=yes ;;
5035 esac
5036     OBJDUMP=$ac_ct_OBJDUMP
5037   fi
5038 else
5039   OBJDUMP="$ac_cv_prog_OBJDUMP"
5040 fi
5041
5042 test -z "$OBJDUMP" && OBJDUMP=objdump
5043
5044
5045
5046
5047
5048
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5050 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5051 if ${lt_cv_deplibs_check_method+:} false; then :
5052   $as_echo_n "(cached) " >&6
5053 else
5054   lt_cv_file_magic_cmd='$MAGIC_CMD'
5055 lt_cv_file_magic_test_file=
5056 lt_cv_deplibs_check_method='unknown'
5057 # Need to set the preceding variable on all platforms that support
5058 # interlibrary dependencies.
5059 # 'none' -- dependencies not supported.
5060 # `unknown' -- same as none, but documents that we really don't know.
5061 # 'pass_all' -- all dependencies passed with no checks.
5062 # 'test_compile' -- check by making test program.
5063 # 'file_magic [[regex]]' -- check by looking for files in library path
5064 # which responds to the $file_magic_cmd with a given extended regex.
5065 # If you have `file' or equivalent on your system and you're not sure
5066 # whether `pass_all' will *always* work, you probably want this one.
5067
5068 case $host_os in
5069 aix[4-9]*)
5070   lt_cv_deplibs_check_method=pass_all
5071   ;;
5072
5073 beos*)
5074   lt_cv_deplibs_check_method=pass_all
5075   ;;
5076
5077 bsdi[45]*)
5078   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5079   lt_cv_file_magic_cmd='/usr/bin/file -L'
5080   lt_cv_file_magic_test_file=/shlib/libc.so
5081   ;;
5082
5083 cygwin*)
5084   # func_win32_libid is a shell function defined in ltmain.sh
5085   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5086   lt_cv_file_magic_cmd='func_win32_libid'
5087   ;;
5088
5089 mingw* | pw32*)
5090   # Base MSYS/MinGW do not provide the 'file' command needed by
5091   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5092   # unless we find 'file', for example because we are cross-compiling.
5093   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5094   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5095     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5096     lt_cv_file_magic_cmd='func_win32_libid'
5097   else
5098     # Keep this pattern in sync with the one in func_win32_libid.
5099     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5100     lt_cv_file_magic_cmd='$OBJDUMP -f'
5101   fi
5102   ;;
5103
5104 cegcc*)
5105   # use the weaker test based on 'objdump'. See mingw*.
5106   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5107   lt_cv_file_magic_cmd='$OBJDUMP -f'
5108   ;;
5109
5110 darwin* | rhapsody*)
5111   lt_cv_deplibs_check_method=pass_all
5112   ;;
5113
5114 freebsd* | dragonfly*)
5115   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5116     case $host_cpu in
5117     i*86 )
5118       # Not sure whether the presence of OpenBSD here was a mistake.
5119       # Let's accept both of them until this is cleared up.
5120       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5121       lt_cv_file_magic_cmd=/usr/bin/file
5122       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5123       ;;
5124     esac
5125   else
5126     lt_cv_deplibs_check_method=pass_all
5127   fi
5128   ;;
5129
5130 haiku*)
5131   lt_cv_deplibs_check_method=pass_all
5132   ;;
5133
5134 hpux10.20* | hpux11*)
5135   lt_cv_file_magic_cmd=/usr/bin/file
5136   case $host_cpu in
5137   ia64*)
5138     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5139     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5140     ;;
5141   hppa*64*)
5142     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]'
5143     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5144     ;;
5145   *)
5146     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5147     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5148     ;;
5149   esac
5150   ;;
5151
5152 interix[3-9]*)
5153   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5154   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5155   ;;
5156
5157 irix5* | irix6* | nonstopux*)
5158   case $LD in
5159   *-32|*"-32 ") libmagic=32-bit;;
5160   *-n32|*"-n32 ") libmagic=N32;;
5161   *-64|*"-64 ") libmagic=64-bit;;
5162   *) libmagic=never-match;;
5163   esac
5164   lt_cv_deplibs_check_method=pass_all
5165   ;;
5166
5167 # This must be glibc/ELF.
5168 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5169   lt_cv_deplibs_check_method=pass_all
5170   ;;
5171
5172 netbsd* | netbsdelf*-gnu)
5173   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5174     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5175   else
5176     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5177   fi
5178   ;;
5179
5180 newos6*)
5181   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5182   lt_cv_file_magic_cmd=/usr/bin/file
5183   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5184   ;;
5185
5186 *nto* | *qnx*)
5187   lt_cv_deplibs_check_method=pass_all
5188   ;;
5189
5190 openbsd*)
5191   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5192     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5193   else
5194     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5195   fi
5196   ;;
5197
5198 osf3* | osf4* | osf5*)
5199   lt_cv_deplibs_check_method=pass_all
5200   ;;
5201
5202 rdos*)
5203   lt_cv_deplibs_check_method=pass_all
5204   ;;
5205
5206 solaris*)
5207   lt_cv_deplibs_check_method=pass_all
5208   ;;
5209
5210 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5211   lt_cv_deplibs_check_method=pass_all
5212   ;;
5213
5214 sysv4 | sysv4.3*)
5215   case $host_vendor in
5216   motorola)
5217     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]'
5218     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5219     ;;
5220   ncr)
5221     lt_cv_deplibs_check_method=pass_all
5222     ;;
5223   sequent)
5224     lt_cv_file_magic_cmd='/bin/file'
5225     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5226     ;;
5227   sni)
5228     lt_cv_file_magic_cmd='/bin/file'
5229     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5230     lt_cv_file_magic_test_file=/lib/libc.so
5231     ;;
5232   siemens)
5233     lt_cv_deplibs_check_method=pass_all
5234     ;;
5235   pc)
5236     lt_cv_deplibs_check_method=pass_all
5237     ;;
5238   esac
5239   ;;
5240
5241 tpf*)
5242   lt_cv_deplibs_check_method=pass_all
5243   ;;
5244 esac
5245
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5248 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5249
5250 file_magic_glob=
5251 want_nocaseglob=no
5252 if test "$build" = "$host"; then
5253   case $host_os in
5254   mingw* | pw32*)
5255     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5256       want_nocaseglob=yes
5257     else
5258       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5259     fi
5260     ;;
5261   esac
5262 fi
5263
5264 file_magic_cmd=$lt_cv_file_magic_cmd
5265 deplibs_check_method=$lt_cv_deplibs_check_method
5266 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289 if test -n "$ac_tool_prefix"; then
5290   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5291 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_DLLTOOL+:} false; then :
5295   $as_echo_n "(cached) " >&6
5296 else
5297   if test -n "$DLLTOOL"; then
5298   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303   IFS=$as_save_IFS
5304   test -z "$as_dir" && as_dir=.
5305     for ac_exec_ext in '' $ac_executable_extensions; do
5306   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5308     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309     break 2
5310   fi
5311 done
5312   done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 DLLTOOL=$ac_cv_prog_DLLTOOL
5318 if test -n "$DLLTOOL"; then
5319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5320 $as_echo "$DLLTOOL" >&6; }
5321 else
5322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327 fi
5328 if test -z "$ac_cv_prog_DLLTOOL"; then
5329   ac_ct_DLLTOOL=$DLLTOOL
5330   # Extract the first word of "dlltool", so it can be a program name with args.
5331 set dummy dlltool; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5333 $as_echo_n "checking for $ac_word... " >&6; }
5334 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5335   $as_echo_n "(cached) " >&6
5336 else
5337   if test -n "$ac_ct_DLLTOOL"; then
5338   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5339 else
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 for as_dir in $PATH
5342 do
5343   IFS=$as_save_IFS
5344   test -z "$as_dir" && as_dir=.
5345     for ac_exec_ext in '' $ac_executable_extensions; do
5346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349     break 2
5350   fi
5351 done
5352   done
5353 IFS=$as_save_IFS
5354
5355 fi
5356 fi
5357 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5358 if test -n "$ac_ct_DLLTOOL"; then
5359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5360 $as_echo "$ac_ct_DLLTOOL" >&6; }
5361 else
5362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5363 $as_echo "no" >&6; }
5364 fi
5365
5366   if test "x$ac_ct_DLLTOOL" = x; then
5367     DLLTOOL="false"
5368   else
5369     case $cross_compiling:$ac_tool_warned in
5370 yes:)
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5373 ac_tool_warned=yes ;;
5374 esac
5375     DLLTOOL=$ac_ct_DLLTOOL
5376   fi
5377 else
5378   DLLTOOL="$ac_cv_prog_DLLTOOL"
5379 fi
5380
5381 test -z "$DLLTOOL" && DLLTOOL=dlltool
5382
5383
5384
5385
5386
5387
5388
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5390 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5391 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5392   $as_echo_n "(cached) " >&6
5393 else
5394   lt_cv_sharedlib_from_linklib_cmd='unknown'
5395
5396 case $host_os in
5397 cygwin* | mingw* | pw32* | cegcc*)
5398   # two different shell functions defined in ltmain.sh
5399   # decide which to use based on capabilities of $DLLTOOL
5400   case `$DLLTOOL --help 2>&1` in
5401   *--identify-strict*)
5402     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5403     ;;
5404   *)
5405     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5406     ;;
5407   esac
5408   ;;
5409 *)
5410   # fallback: assume linklib IS sharedlib
5411   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5412   ;;
5413 esac
5414
5415 fi
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5417 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5418 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5419 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5420
5421
5422
5423
5424
5425
5426
5427
5428 if test -n "$ac_tool_prefix"; then
5429   for ac_prog in ar
5430   do
5431     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_AR+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   if test -n "$AR"; then
5439   ac_cv_prog_AR="$AR" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444   IFS=$as_save_IFS
5445   test -z "$as_dir" && as_dir=.
5446     for ac_exec_ext in '' $ac_executable_extensions; do
5447   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5449     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450     break 2
5451   fi
5452 done
5453   done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 AR=$ac_cv_prog_AR
5459 if test -n "$AR"; then
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5461 $as_echo "$AR" >&6; }
5462 else
5463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468     test -n "$AR" && break
5469   done
5470 fi
5471 if test -z "$AR"; then
5472   ac_ct_AR=$AR
5473   for ac_prog in ar
5474 do
5475   # Extract the first word of "$ac_prog", so it can be a program name with args.
5476 set dummy $ac_prog; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5480   $as_echo_n "(cached) " >&6
5481 else
5482   if test -n "$ac_ct_AR"; then
5483   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5487 do
5488   IFS=$as_save_IFS
5489   test -z "$as_dir" && as_dir=.
5490     for ac_exec_ext in '' $ac_executable_extensions; do
5491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492     ac_cv_prog_ac_ct_AR="$ac_prog"
5493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494     break 2
5495   fi
5496 done
5497   done
5498 IFS=$as_save_IFS
5499
5500 fi
5501 fi
5502 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5503 if test -n "$ac_ct_AR"; then
5504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5505 $as_echo "$ac_ct_AR" >&6; }
5506 else
5507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 fi
5510
5511
5512   test -n "$ac_ct_AR" && break
5513 done
5514
5515   if test "x$ac_ct_AR" = x; then
5516     AR="false"
5517   else
5518     case $cross_compiling:$ac_tool_warned in
5519 yes:)
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5521 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5522 ac_tool_warned=yes ;;
5523 esac
5524     AR=$ac_ct_AR
5525   fi
5526 fi
5527
5528 : ${AR=ar}
5529 : ${AR_FLAGS=cru}
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5542 $as_echo_n "checking for archiver @FILE support... " >&6; }
5543 if ${lt_cv_ar_at_file+:} false; then :
5544   $as_echo_n "(cached) " >&6
5545 else
5546   lt_cv_ar_at_file=no
5547    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h.  */
5549
5550 int
5551 main ()
5552 {
5553
5554   ;
5555   return 0;
5556 }
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559   echo conftest.$ac_objext > conftest.lst
5560       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5561       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5562   (eval $lt_ar_try) 2>&5
5563   ac_status=$?
5564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5565   test $ac_status = 0; }
5566       if test "$ac_status" -eq 0; then
5567         # Ensure the archiver fails upon bogus file names.
5568         rm -f conftest.$ac_objext libconftest.a
5569         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5570   (eval $lt_ar_try) 2>&5
5571   ac_status=$?
5572   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5573   test $ac_status = 0; }
5574         if test "$ac_status" -ne 0; then
5575           lt_cv_ar_at_file=@
5576         fi
5577       fi
5578       rm -f conftest.* libconftest.a
5579
5580 fi
5581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5582
5583 fi
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5585 $as_echo "$lt_cv_ar_at_file" >&6; }
5586
5587 if test "x$lt_cv_ar_at_file" = xno; then
5588   archiver_list_spec=
5589 else
5590   archiver_list_spec=$lt_cv_ar_at_file
5591 fi
5592
5593
5594
5595
5596
5597
5598
5599 if test -n "$ac_tool_prefix"; then
5600   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5601 set dummy ${ac_tool_prefix}strip; ac_word=$2
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5603 $as_echo_n "checking for $ac_word... " >&6; }
5604 if ${ac_cv_prog_STRIP+:} false; then :
5605   $as_echo_n "(cached) " >&6
5606 else
5607   if test -n "$STRIP"; then
5608   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5609 else
5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5611 for as_dir in $PATH
5612 do
5613   IFS=$as_save_IFS
5614   test -z "$as_dir" && as_dir=.
5615     for ac_exec_ext in '' $ac_executable_extensions; do
5616   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5617     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5618     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5619     break 2
5620   fi
5621 done
5622   done
5623 IFS=$as_save_IFS
5624
5625 fi
5626 fi
5627 STRIP=$ac_cv_prog_STRIP
5628 if test -n "$STRIP"; then
5629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5630 $as_echo "$STRIP" >&6; }
5631 else
5632   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635
5636
5637 fi
5638 if test -z "$ac_cv_prog_STRIP"; then
5639   ac_ct_STRIP=$STRIP
5640   # Extract the first word of "strip", so it can be a program name with args.
5641 set dummy strip; ac_word=$2
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5643 $as_echo_n "checking for $ac_word... " >&6; }
5644 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5645   $as_echo_n "(cached) " >&6
5646 else
5647   if test -n "$ac_ct_STRIP"; then
5648   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5649 else
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 for as_dir in $PATH
5652 do
5653   IFS=$as_save_IFS
5654   test -z "$as_dir" && as_dir=.
5655     for ac_exec_ext in '' $ac_executable_extensions; do
5656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5657     ac_cv_prog_ac_ct_STRIP="strip"
5658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5659     break 2
5660   fi
5661 done
5662   done
5663 IFS=$as_save_IFS
5664
5665 fi
5666 fi
5667 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5668 if test -n "$ac_ct_STRIP"; then
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5670 $as_echo "$ac_ct_STRIP" >&6; }
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676   if test "x$ac_ct_STRIP" = x; then
5677     STRIP=":"
5678   else
5679     case $cross_compiling:$ac_tool_warned in
5680 yes:)
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5683 ac_tool_warned=yes ;;
5684 esac
5685     STRIP=$ac_ct_STRIP
5686   fi
5687 else
5688   STRIP="$ac_cv_prog_STRIP"
5689 fi
5690
5691 test -z "$STRIP" && STRIP=:
5692
5693
5694
5695
5696
5697
5698 if test -n "$ac_tool_prefix"; then
5699   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5700 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702 $as_echo_n "checking for $ac_word... " >&6; }
5703 if ${ac_cv_prog_RANLIB+:} false; then :
5704   $as_echo_n "(cached) " >&6
5705 else
5706   if test -n "$RANLIB"; then
5707   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5708 else
5709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710 for as_dir in $PATH
5711 do
5712   IFS=$as_save_IFS
5713   test -z "$as_dir" && as_dir=.
5714     for ac_exec_ext in '' $ac_executable_extensions; do
5715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5716     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5718     break 2
5719   fi
5720 done
5721   done
5722 IFS=$as_save_IFS
5723
5724 fi
5725 fi
5726 RANLIB=$ac_cv_prog_RANLIB
5727 if test -n "$RANLIB"; then
5728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5729 $as_echo "$RANLIB" >&6; }
5730 else
5731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732 $as_echo "no" >&6; }
5733 fi
5734
5735
5736 fi
5737 if test -z "$ac_cv_prog_RANLIB"; then
5738   ac_ct_RANLIB=$RANLIB
5739   # Extract the first word of "ranlib", so it can be a program name with args.
5740 set dummy ranlib; ac_word=$2
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5742 $as_echo_n "checking for $ac_word... " >&6; }
5743 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5744   $as_echo_n "(cached) " >&6
5745 else
5746   if test -n "$ac_ct_RANLIB"; then
5747   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5748 else
5749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750 for as_dir in $PATH
5751 do
5752   IFS=$as_save_IFS
5753   test -z "$as_dir" && as_dir=.
5754     for ac_exec_ext in '' $ac_executable_extensions; do
5755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756     ac_cv_prog_ac_ct_RANLIB="ranlib"
5757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5758     break 2
5759   fi
5760 done
5761   done
5762 IFS=$as_save_IFS
5763
5764 fi
5765 fi
5766 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5767 if test -n "$ac_ct_RANLIB"; then
5768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5769 $as_echo "$ac_ct_RANLIB" >&6; }
5770 else
5771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5772 $as_echo "no" >&6; }
5773 fi
5774
5775   if test "x$ac_ct_RANLIB" = x; then
5776     RANLIB=":"
5777   else
5778     case $cross_compiling:$ac_tool_warned in
5779 yes:)
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5782 ac_tool_warned=yes ;;
5783 esac
5784     RANLIB=$ac_ct_RANLIB
5785   fi
5786 else
5787   RANLIB="$ac_cv_prog_RANLIB"
5788 fi
5789
5790 test -z "$RANLIB" && RANLIB=:
5791
5792
5793
5794
5795
5796
5797 # Determine commands to create old-style static archives.
5798 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5799 old_postinstall_cmds='chmod 644 $oldlib'
5800 old_postuninstall_cmds=
5801
5802 if test -n "$RANLIB"; then
5803   case $host_os in
5804   openbsd*)
5805     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5806     ;;
5807   *)
5808     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5809     ;;
5810   esac
5811   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5812 fi
5813
5814 case $host_os in
5815   darwin*)
5816     lock_old_archive_extraction=yes ;;
5817   *)
5818     lock_old_archive_extraction=no ;;
5819 esac
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859 # If no C compiler was specified, use CC.
5860 LTCC=${LTCC-"$CC"}
5861
5862 # If no C compiler flags were specified, use CFLAGS.
5863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5864
5865 # Allow CC to be a program name with arguments.
5866 compiler=$CC
5867
5868
5869 # Check for command to grab the raw symbol name followed by C symbol from nm.
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5871 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5872 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5873   $as_echo_n "(cached) " >&6
5874 else
5875
5876 # These are sane defaults that work on at least a few old systems.
5877 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5878
5879 # Character class describing NM global symbol codes.
5880 symcode='[BCDEGRST]'
5881
5882 # Regexp to match symbols that can be accessed directly from C.
5883 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5884
5885 # Define system-specific variables.
5886 case $host_os in
5887 aix*)
5888   symcode='[BCDT]'
5889   ;;
5890 cygwin* | mingw* | pw32* | cegcc*)
5891   symcode='[ABCDGISTW]'
5892   ;;
5893 hpux*)
5894   if test "$host_cpu" = ia64; then
5895     symcode='[ABCDEGRST]'
5896   fi
5897   ;;
5898 irix* | nonstopux*)
5899   symcode='[BCDEGRST]'
5900   ;;
5901 osf*)
5902   symcode='[BCDEGQRST]'
5903   ;;
5904 solaris*)
5905   symcode='[BDRT]'
5906   ;;
5907 sco3.2v5*)
5908   symcode='[DT]'
5909   ;;
5910 sysv4.2uw2*)
5911   symcode='[DT]'
5912   ;;
5913 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5914   symcode='[ABDT]'
5915   ;;
5916 sysv4)
5917   symcode='[DFNSTU]'
5918   ;;
5919 esac
5920
5921 # If we're using GNU nm, then use its standard symbol codes.
5922 case `$NM -V 2>&1` in
5923 *GNU* | *'with BFD'*)
5924   symcode='[ABCDGIRSTW]' ;;
5925 esac
5926
5927 # Transform an extracted symbol line into a proper C declaration.
5928 # Some systems (esp. on ia64) link data and code symbols differently,
5929 # so use this general approach.
5930 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5931
5932 # Transform an extracted symbol line into symbol name and symbol address
5933 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5934 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
5935
5936 # Handle CRLF in mingw tool chain
5937 opt_cr=
5938 case $build_os in
5939 mingw*)
5940   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5941   ;;
5942 esac
5943
5944 # Try without a prefix underscore, then with it.
5945 for ac_symprfx in "" "_"; do
5946
5947   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5948   symxfrm="\\1 $ac_symprfx\\2 \\2"
5949
5950   # Write the raw and C identifiers.
5951   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5952     # Fake it for dumpbin and say T for any non-static function
5953     # and D for any global variable.
5954     # Also find C++ and __fastcall symbols from MSVC++,
5955     # which start with @ or ?.
5956     lt_cv_sys_global_symbol_pipe="$AWK '"\
5957 "     {last_section=section; section=\$ 3};"\
5958 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5959 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5960 "     \$ 0!~/External *\|/{next};"\
5961 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5962 "     {if(hide[section]) next};"\
5963 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5964 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5965 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5966 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5967 "     ' prfx=^$ac_symprfx"
5968   else
5969     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5970   fi
5971   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5972
5973   # Check to see that the pipe works correctly.
5974   pipe_works=no
5975
5976   rm -f conftest*
5977   cat > conftest.$ac_ext <<_LT_EOF
5978 #ifdef __cplusplus
5979 extern "C" {
5980 #endif
5981 char nm_test_var;
5982 void nm_test_func(void);
5983 void nm_test_func(void){}
5984 #ifdef __cplusplus
5985 }
5986 #endif
5987 int main(){nm_test_var='a';nm_test_func();return(0);}
5988 _LT_EOF
5989
5990   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5991   (eval $ac_compile) 2>&5
5992   ac_status=$?
5993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5994   test $ac_status = 0; }; then
5995     # Now try to grab the symbols.
5996     nlist=conftest.nm
5997     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5998   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5999   ac_status=$?
6000   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001   test $ac_status = 0; } && test -s "$nlist"; then
6002       # Try sorting and uniquifying the output.
6003       if sort "$nlist" | uniq > "$nlist"T; then
6004         mv -f "$nlist"T "$nlist"
6005       else
6006         rm -f "$nlist"T
6007       fi
6008
6009       # Make sure that we snagged all the symbols we need.
6010       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6011         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6012           cat <<_LT_EOF > conftest.$ac_ext
6013 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6014 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6015 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6016    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6017 # define LT_DLSYM_CONST
6018 #elif defined(__osf__)
6019 /* This system does not cope well with relocations in const data.  */
6020 # define LT_DLSYM_CONST
6021 #else
6022 # define LT_DLSYM_CONST const
6023 #endif
6024
6025 #ifdef __cplusplus
6026 extern "C" {
6027 #endif
6028
6029 _LT_EOF
6030           # Now generate the symbol file.
6031           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6032
6033           cat <<_LT_EOF >> conftest.$ac_ext
6034
6035 /* The mapping between symbol names and symbols.  */
6036 LT_DLSYM_CONST struct {
6037   const char *name;
6038   void       *address;
6039 }
6040 lt__PROGRAM__LTX_preloaded_symbols[] =
6041 {
6042   { "@PROGRAM@", (void *) 0 },
6043 _LT_EOF
6044           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6045           cat <<\_LT_EOF >> conftest.$ac_ext
6046   {0, (void *) 0}
6047 };
6048
6049 /* This works around a problem in FreeBSD linker */
6050 #ifdef FREEBSD_WORKAROUND
6051 static const void *lt_preloaded_setup() {
6052   return lt__PROGRAM__LTX_preloaded_symbols;
6053 }
6054 #endif
6055
6056 #ifdef __cplusplus
6057 }
6058 #endif
6059 _LT_EOF
6060           # Now try linking the two files.
6061           mv conftest.$ac_objext conftstm.$ac_objext
6062           lt_globsym_save_LIBS=$LIBS
6063           lt_globsym_save_CFLAGS=$CFLAGS
6064           LIBS="conftstm.$ac_objext"
6065           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6066           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6067   (eval $ac_link) 2>&5
6068   ac_status=$?
6069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6070   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6071             pipe_works=yes
6072           fi
6073           LIBS=$lt_globsym_save_LIBS
6074           CFLAGS=$lt_globsym_save_CFLAGS
6075         else
6076           echo "cannot find nm_test_func in $nlist" >&5
6077         fi
6078       else
6079         echo "cannot find nm_test_var in $nlist" >&5
6080       fi
6081     else
6082       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6083     fi
6084   else
6085     echo "$progname: failed program was:" >&5
6086     cat conftest.$ac_ext >&5
6087   fi
6088   rm -rf conftest* conftst*
6089
6090   # Do not use the global_symbol_pipe unless it works.
6091   if test "$pipe_works" = yes; then
6092     break
6093   else
6094     lt_cv_sys_global_symbol_pipe=
6095   fi
6096 done
6097
6098 fi
6099
6100 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6101   lt_cv_sys_global_symbol_to_cdecl=
6102 fi
6103 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6105 $as_echo "failed" >&6; }
6106 else
6107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6108 $as_echo "ok" >&6; }
6109 fi
6110
6111 # Response file support.
6112 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6113   nm_file_list_spec='@'
6114 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6115   nm_file_list_spec='@'
6116 fi
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6145 $as_echo_n "checking for sysroot... " >&6; }
6146
6147 # Check whether --with-sysroot was given.
6148 if test "${with_sysroot+set}" = set; then :
6149   withval=$with_sysroot;
6150 else
6151   with_sysroot=no
6152 fi
6153
6154
6155 lt_sysroot=
6156 case ${with_sysroot} in #(
6157  yes)
6158    if test "$GCC" = yes; then
6159      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6160    fi
6161    ;; #(
6162  /*)
6163    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6164    ;; #(
6165  no|'')
6166    ;; #(
6167  *)
6168    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6169 $as_echo "${with_sysroot}" >&6; }
6170    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6171    ;;
6172 esac
6173
6174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6175 $as_echo "${lt_sysroot:-no}" >&6; }
6176
6177
6178
6179
6180
6181 # Check whether --enable-libtool-lock was given.
6182 if test "${enable_libtool_lock+set}" = set; then :
6183   enableval=$enable_libtool_lock;
6184 fi
6185
6186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6187
6188 # Some flags need to be propagated to the compiler or linker for good
6189 # libtool support.
6190 case $host in
6191 ia64-*-hpux*)
6192   # Find out which ABI we are using.
6193   echo 'int i;' > conftest.$ac_ext
6194   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195   (eval $ac_compile) 2>&5
6196   ac_status=$?
6197   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198   test $ac_status = 0; }; then
6199     case `/usr/bin/file conftest.$ac_objext` in
6200       *ELF-32*)
6201         HPUX_IA64_MODE="32"
6202         ;;
6203       *ELF-64*)
6204         HPUX_IA64_MODE="64"
6205         ;;
6206     esac
6207   fi
6208   rm -rf conftest*
6209   ;;
6210 *-*-irix6*)
6211   # Find out which ABI we are using.
6212   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6213   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6214   (eval $ac_compile) 2>&5
6215   ac_status=$?
6216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6217   test $ac_status = 0; }; then
6218     if test "$lt_cv_prog_gnu_ld" = yes; then
6219       case `/usr/bin/file conftest.$ac_objext` in
6220         *32-bit*)
6221           LD="${LD-ld} -melf32bsmip"
6222           ;;
6223         *N32*)
6224           LD="${LD-ld} -melf32bmipn32"
6225           ;;
6226         *64-bit*)
6227           LD="${LD-ld} -melf64bmip"
6228         ;;
6229       esac
6230     else
6231       case `/usr/bin/file conftest.$ac_objext` in
6232         *32-bit*)
6233           LD="${LD-ld} -32"
6234           ;;
6235         *N32*)
6236           LD="${LD-ld} -n32"
6237           ;;
6238         *64-bit*)
6239           LD="${LD-ld} -64"
6240           ;;
6241       esac
6242     fi
6243   fi
6244   rm -rf conftest*
6245   ;;
6246
6247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6248 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6249   # Find out which ABI we are using.
6250   echo 'int i;' > conftest.$ac_ext
6251   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6252   (eval $ac_compile) 2>&5
6253   ac_status=$?
6254   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6255   test $ac_status = 0; }; then
6256     case `/usr/bin/file conftest.o` in
6257       *32-bit*)
6258         case $host in
6259           x86_64-*kfreebsd*-gnu)
6260             LD="${LD-ld} -m elf_i386_fbsd"
6261             ;;
6262           x86_64-*linux*)
6263             case `/usr/bin/file conftest.o` in
6264               *x86-64*)
6265                 LD="${LD-ld} -m elf32_x86_64"
6266                 ;;
6267               *)
6268                 LD="${LD-ld} -m elf_i386"
6269                 ;;
6270             esac
6271             ;;
6272           ppc64-*linux*|powerpc64-*linux*)
6273             LD="${LD-ld} -m elf32ppclinux"
6274             ;;
6275           s390x-*linux*)
6276             LD="${LD-ld} -m elf_s390"
6277             ;;
6278           sparc64-*linux*)
6279             LD="${LD-ld} -m elf32_sparc"
6280             ;;
6281         esac
6282         ;;
6283       *64-bit*)
6284         case $host in
6285           x86_64-*kfreebsd*-gnu)
6286             LD="${LD-ld} -m elf_x86_64_fbsd"
6287             ;;
6288           x86_64-*linux*)
6289             LD="${LD-ld} -m elf_x86_64"
6290             ;;
6291           ppc*-*linux*|powerpc*-*linux*)
6292             LD="${LD-ld} -m elf64ppc"
6293             ;;
6294           s390*-*linux*|s390*-*tpf*)
6295             LD="${LD-ld} -m elf64_s390"
6296             ;;
6297           sparc*-*linux*)
6298             LD="${LD-ld} -m elf64_sparc"
6299             ;;
6300         esac
6301         ;;
6302     esac
6303   fi
6304   rm -rf conftest*
6305   ;;
6306
6307 *-*-sco3.2v5*)
6308   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6309   SAVE_CFLAGS="$CFLAGS"
6310   CFLAGS="$CFLAGS -belf"
6311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6312 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6313 if ${lt_cv_cc_needs_belf+:} false; then :
6314   $as_echo_n "(cached) " >&6
6315 else
6316   ac_ext=c
6317 ac_cpp='$CPP $CPPFLAGS'
6318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321
6322      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6323 /* end confdefs.h.  */
6324
6325 int
6326 main ()
6327 {
6328
6329   ;
6330   return 0;
6331 }
6332 _ACEOF
6333 if ac_fn_c_try_link "$LINENO"; then :
6334   lt_cv_cc_needs_belf=yes
6335 else
6336   lt_cv_cc_needs_belf=no
6337 fi
6338 rm -f core conftest.err conftest.$ac_objext \
6339     conftest$ac_exeext conftest.$ac_ext
6340      ac_ext=c
6341 ac_cpp='$CPP $CPPFLAGS'
6342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6345
6346 fi
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6348 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6349   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6350     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6351     CFLAGS="$SAVE_CFLAGS"
6352   fi
6353   ;;
6354 *-*solaris*)
6355   # Find out which ABI we are using.
6356   echo 'int i;' > conftest.$ac_ext
6357   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6358   (eval $ac_compile) 2>&5
6359   ac_status=$?
6360   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6361   test $ac_status = 0; }; then
6362     case `/usr/bin/file conftest.o` in
6363     *64-bit*)
6364       case $lt_cv_prog_gnu_ld in
6365       yes*)
6366         case $host in
6367         i?86-*-solaris*)
6368           LD="${LD-ld} -m elf_x86_64"
6369           ;;
6370         sparc*-*-solaris*)
6371           LD="${LD-ld} -m elf64_sparc"
6372           ;;
6373         esac
6374         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6375         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6376           LD="${LD-ld}_sol2"
6377         fi
6378         ;;
6379       *)
6380         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6381           LD="${LD-ld} -64"
6382         fi
6383         ;;
6384       esac
6385       ;;
6386     esac
6387   fi
6388   rm -rf conftest*
6389   ;;
6390 esac
6391
6392 need_locks="$enable_libtool_lock"
6393
6394 if test -n "$ac_tool_prefix"; then
6395   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6396 set dummy ${ac_tool_prefix}mt; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   if test -n "$MANIFEST_TOOL"; then
6403   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410     for ac_exec_ext in '' $ac_executable_extensions; do
6411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414     break 2
6415   fi
6416 done
6417   done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6423 if test -n "$MANIFEST_TOOL"; then
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6425 $as_echo "$MANIFEST_TOOL" >&6; }
6426 else
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430
6431
6432 fi
6433 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6434   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6435   # Extract the first word of "mt", so it can be a program name with args.
6436 set dummy mt; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6440   $as_echo_n "(cached) " >&6
6441 else
6442   if test -n "$ac_ct_MANIFEST_TOOL"; then
6443   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448   IFS=$as_save_IFS
6449   test -z "$as_dir" && as_dir=.
6450     for ac_exec_ext in '' $ac_executable_extensions; do
6451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6452     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454     break 2
6455   fi
6456 done
6457   done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6463 if test -n "$ac_ct_MANIFEST_TOOL"; then
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6465 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6466 else
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 $as_echo "no" >&6; }
6469 fi
6470
6471   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6472     MANIFEST_TOOL=":"
6473   else
6474     case $cross_compiling:$ac_tool_warned in
6475 yes:)
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6478 ac_tool_warned=yes ;;
6479 esac
6480     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6481   fi
6482 else
6483   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6484 fi
6485
6486 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6488 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6489 if ${lt_cv_path_mainfest_tool+:} false; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   lt_cv_path_mainfest_tool=no
6493   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6494   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6495   cat conftest.err >&5
6496   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6497     lt_cv_path_mainfest_tool=yes
6498   fi
6499   rm -f conftest*
6500 fi
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6502 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6503 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6504   MANIFEST_TOOL=:
6505 fi
6506
6507
6508
6509
6510
6511
6512   case $host_os in
6513     rhapsody* | darwin*)
6514     if test -n "$ac_tool_prefix"; then
6515   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6516 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6518 $as_echo_n "checking for $ac_word... " >&6; }
6519 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6520   $as_echo_n "(cached) " >&6
6521 else
6522   if test -n "$DSYMUTIL"; then
6523   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6524 else
6525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6526 for as_dir in $PATH
6527 do
6528   IFS=$as_save_IFS
6529   test -z "$as_dir" && as_dir=.
6530     for ac_exec_ext in '' $ac_executable_extensions; do
6531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6532     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6534     break 2
6535   fi
6536 done
6537   done
6538 IFS=$as_save_IFS
6539
6540 fi
6541 fi
6542 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6543 if test -n "$DSYMUTIL"; then
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6545 $as_echo "$DSYMUTIL" >&6; }
6546 else
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6548 $as_echo "no" >&6; }
6549 fi
6550
6551
6552 fi
6553 if test -z "$ac_cv_prog_DSYMUTIL"; then
6554   ac_ct_DSYMUTIL=$DSYMUTIL
6555   # Extract the first word of "dsymutil", so it can be a program name with args.
6556 set dummy dsymutil; ac_word=$2
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6558 $as_echo_n "checking for $ac_word... " >&6; }
6559 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6560   $as_echo_n "(cached) " >&6
6561 else
6562   if test -n "$ac_ct_DSYMUTIL"; then
6563   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568   IFS=$as_save_IFS
6569   test -z "$as_dir" && as_dir=.
6570     for ac_exec_ext in '' $ac_executable_extensions; do
6571   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6573     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6574     break 2
6575   fi
6576 done
6577   done
6578 IFS=$as_save_IFS
6579
6580 fi
6581 fi
6582 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6583 if test -n "$ac_ct_DSYMUTIL"; then
6584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6585 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6586 else
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6588 $as_echo "no" >&6; }
6589 fi
6590
6591   if test "x$ac_ct_DSYMUTIL" = x; then
6592     DSYMUTIL=":"
6593   else
6594     case $cross_compiling:$ac_tool_warned in
6595 yes:)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6597 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6598 ac_tool_warned=yes ;;
6599 esac
6600     DSYMUTIL=$ac_ct_DSYMUTIL
6601   fi
6602 else
6603   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6604 fi
6605
6606     if test -n "$ac_tool_prefix"; then
6607   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6608 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6610 $as_echo_n "checking for $ac_word... " >&6; }
6611 if ${ac_cv_prog_NMEDIT+:} false; then :
6612   $as_echo_n "(cached) " >&6
6613 else
6614   if test -n "$NMEDIT"; then
6615   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620   IFS=$as_save_IFS
6621   test -z "$as_dir" && as_dir=.
6622     for ac_exec_ext in '' $ac_executable_extensions; do
6623   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6624     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6625     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6626     break 2
6627   fi
6628 done
6629   done
6630 IFS=$as_save_IFS
6631
6632 fi
6633 fi
6634 NMEDIT=$ac_cv_prog_NMEDIT
6635 if test -n "$NMEDIT"; then
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6637 $as_echo "$NMEDIT" >&6; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6640 $as_echo "no" >&6; }
6641 fi
6642
6643
6644 fi
6645 if test -z "$ac_cv_prog_NMEDIT"; then
6646   ac_ct_NMEDIT=$NMEDIT
6647   # Extract the first word of "nmedit", so it can be a program name with args.
6648 set dummy nmedit; ac_word=$2
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650 $as_echo_n "checking for $ac_word... " >&6; }
6651 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6652   $as_echo_n "(cached) " >&6
6653 else
6654   if test -n "$ac_ct_NMEDIT"; then
6655   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660   IFS=$as_save_IFS
6661   test -z "$as_dir" && as_dir=.
6662     for ac_exec_ext in '' $ac_executable_extensions; do
6663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6664     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666     break 2
6667   fi
6668 done
6669   done
6670 IFS=$as_save_IFS
6671
6672 fi
6673 fi
6674 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6675 if test -n "$ac_ct_NMEDIT"; then
6676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6677 $as_echo "$ac_ct_NMEDIT" >&6; }
6678 else
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680 $as_echo "no" >&6; }
6681 fi
6682
6683   if test "x$ac_ct_NMEDIT" = x; then
6684     NMEDIT=":"
6685   else
6686     case $cross_compiling:$ac_tool_warned in
6687 yes:)
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6690 ac_tool_warned=yes ;;
6691 esac
6692     NMEDIT=$ac_ct_NMEDIT
6693   fi
6694 else
6695   NMEDIT="$ac_cv_prog_NMEDIT"
6696 fi
6697
6698     if test -n "$ac_tool_prefix"; then
6699   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if ${ac_cv_prog_LIPO+:} false; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if test -n "$LIPO"; then
6707   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6716     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 LIPO=$ac_cv_prog_LIPO
6727 if test -n "$LIPO"; then
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6729 $as_echo "$LIPO" >&6; }
6730 else
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_LIPO"; then
6738   ac_ct_LIPO=$LIPO
6739   # Extract the first word of "lipo", so it can be a program name with args.
6740 set dummy lipo; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   if test -n "$ac_ct_LIPO"; then
6747   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6756     ac_cv_prog_ac_ct_LIPO="lipo"
6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761   done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6767 if test -n "$ac_ct_LIPO"; then
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6769 $as_echo "$ac_ct_LIPO" >&6; }
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775   if test "x$ac_ct_LIPO" = x; then
6776     LIPO=":"
6777   else
6778     case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784     LIPO=$ac_ct_LIPO
6785   fi
6786 else
6787   LIPO="$ac_cv_prog_LIPO"
6788 fi
6789
6790     if test -n "$ac_tool_prefix"; then
6791   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6792 set dummy ${ac_tool_prefix}otool; ac_word=$2
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6794 $as_echo_n "checking for $ac_word... " >&6; }
6795 if ${ac_cv_prog_OTOOL+:} false; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   if test -n "$OTOOL"; then
6799   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6800 else
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6802 for as_dir in $PATH
6803 do
6804   IFS=$as_save_IFS
6805   test -z "$as_dir" && as_dir=.
6806     for ac_exec_ext in '' $ac_executable_extensions; do
6807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6808     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6810     break 2
6811   fi
6812 done
6813   done
6814 IFS=$as_save_IFS
6815
6816 fi
6817 fi
6818 OTOOL=$ac_cv_prog_OTOOL
6819 if test -n "$OTOOL"; then
6820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6821 $as_echo "$OTOOL" >&6; }
6822 else
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6825 fi
6826
6827
6828 fi
6829 if test -z "$ac_cv_prog_OTOOL"; then
6830   ac_ct_OTOOL=$OTOOL
6831   # Extract the first word of "otool", so it can be a program name with args.
6832 set dummy otool; ac_word=$2
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6834 $as_echo_n "checking for $ac_word... " >&6; }
6835 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6836   $as_echo_n "(cached) " >&6
6837 else
6838   if test -n "$ac_ct_OTOOL"; then
6839   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6840 else
6841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6842 for as_dir in $PATH
6843 do
6844   IFS=$as_save_IFS
6845   test -z "$as_dir" && as_dir=.
6846     for ac_exec_ext in '' $ac_executable_extensions; do
6847   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6848     ac_cv_prog_ac_ct_OTOOL="otool"
6849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6850     break 2
6851   fi
6852 done
6853   done
6854 IFS=$as_save_IFS
6855
6856 fi
6857 fi
6858 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6859 if test -n "$ac_ct_OTOOL"; then
6860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6861 $as_echo "$ac_ct_OTOOL" >&6; }
6862 else
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6865 fi
6866
6867   if test "x$ac_ct_OTOOL" = x; then
6868     OTOOL=":"
6869   else
6870     case $cross_compiling:$ac_tool_warned in
6871 yes:)
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6874 ac_tool_warned=yes ;;
6875 esac
6876     OTOOL=$ac_ct_OTOOL
6877   fi
6878 else
6879   OTOOL="$ac_cv_prog_OTOOL"
6880 fi
6881
6882     if test -n "$ac_tool_prefix"; then
6883   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6884 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if ${ac_cv_prog_OTOOL64+:} false; then :
6888   $as_echo_n "(cached) " >&6
6889 else
6890   if test -n "$OTOOL64"; then
6891   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6895 do
6896   IFS=$as_save_IFS
6897   test -z "$as_dir" && as_dir=.
6898     for ac_exec_ext in '' $ac_executable_extensions; do
6899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6900     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902     break 2
6903   fi
6904 done
6905   done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 OTOOL64=$ac_cv_prog_OTOOL64
6911 if test -n "$OTOOL64"; then
6912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6913 $as_echo "$OTOOL64" >&6; }
6914 else
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_OTOOL64"; then
6922   ac_ct_OTOOL64=$OTOOL64
6923   # Extract the first word of "otool64", so it can be a program name with args.
6924 set dummy otool64; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6928   $as_echo_n "(cached) " >&6
6929 else
6930   if test -n "$ac_ct_OTOOL64"; then
6931   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938     for ac_exec_ext in '' $ac_executable_extensions; do
6939   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940     ac_cv_prog_ac_ct_OTOOL64="otool64"
6941     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945   done
6946 IFS=$as_save_IFS
6947
6948 fi
6949 fi
6950 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6951 if test -n "$ac_ct_OTOOL64"; then
6952   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6953 $as_echo "$ac_ct_OTOOL64" >&6; }
6954 else
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6957 fi
6958
6959   if test "x$ac_ct_OTOOL64" = x; then
6960     OTOOL64=":"
6961   else
6962     case $cross_compiling:$ac_tool_warned in
6963 yes:)
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6966 ac_tool_warned=yes ;;
6967 esac
6968     OTOOL64=$ac_ct_OTOOL64
6969   fi
6970 else
6971   OTOOL64="$ac_cv_prog_OTOOL64"
6972 fi
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7001 $as_echo_n "checking for -single_module linker flag... " >&6; }
7002 if ${lt_cv_apple_cc_single_mod+:} false; then :
7003   $as_echo_n "(cached) " >&6
7004 else
7005   lt_cv_apple_cc_single_mod=no
7006       if test -z "${LT_MULTI_MODULE}"; then
7007         # By default we will add the -single_module flag. You can override
7008         # by either setting the environment variable LT_MULTI_MODULE
7009         # non-empty at configure time, or by adding -multi_module to the
7010         # link flags.
7011         rm -rf libconftest.dylib*
7012         echo "int foo(void){return 1;}" > conftest.c
7013         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7014 -dynamiclib -Wl,-single_module conftest.c" >&5
7015         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7016           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7017         _lt_result=$?
7018         # If there is a non-empty error log, and "single_module"
7019         # appears in it, assume the flag caused a linker warning
7020         if test -s conftest.err && $GREP single_module conftest.err; then
7021           cat conftest.err >&5
7022         # Otherwise, if the output was created with a 0 exit code from
7023         # the compiler, it worked.
7024         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7025           lt_cv_apple_cc_single_mod=yes
7026         else
7027           cat conftest.err >&5
7028         fi
7029         rm -rf libconftest.dylib*
7030         rm -f conftest.*
7031       fi
7032 fi
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7034 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7035
7036     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7037 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7038 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7039   $as_echo_n "(cached) " >&6
7040 else
7041   lt_cv_ld_exported_symbols_list=no
7042       save_LDFLAGS=$LDFLAGS
7043       echo "_main" > conftest.sym
7044       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7045       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h.  */
7047
7048 int
7049 main ()
7050 {
7051
7052   ;
7053   return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_link "$LINENO"; then :
7057   lt_cv_ld_exported_symbols_list=yes
7058 else
7059   lt_cv_ld_exported_symbols_list=no
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext \
7062     conftest$ac_exeext conftest.$ac_ext
7063         LDFLAGS="$save_LDFLAGS"
7064
7065 fi
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7067 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7068
7069     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7070 $as_echo_n "checking for -force_load linker flag... " >&6; }
7071 if ${lt_cv_ld_force_load+:} false; then :
7072   $as_echo_n "(cached) " >&6
7073 else
7074   lt_cv_ld_force_load=no
7075       cat > conftest.c << _LT_EOF
7076 int forced_loaded() { return 2;}
7077 _LT_EOF
7078       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7079       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7080       echo "$AR cru libconftest.a conftest.o" >&5
7081       $AR cru libconftest.a conftest.o 2>&5
7082       echo "$RANLIB libconftest.a" >&5
7083       $RANLIB libconftest.a 2>&5
7084       cat > conftest.c << _LT_EOF
7085 int main() { return 0;}
7086 _LT_EOF
7087       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7088       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7089       _lt_result=$?
7090       if test -s conftest.err && $GREP force_load conftest.err; then
7091         cat conftest.err >&5
7092       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7093         lt_cv_ld_force_load=yes
7094       else
7095         cat conftest.err >&5
7096       fi
7097         rm -f conftest.err libconftest.a conftest conftest.c
7098         rm -rf conftest.dSYM
7099
7100 fi
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7102 $as_echo "$lt_cv_ld_force_load" >&6; }
7103     case $host_os in
7104     rhapsody* | darwin1.[012])
7105       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7106     darwin1.*)
7107       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7108     darwin*) # darwin 5.x on
7109       # if running on 10.5 or later, the deployment target defaults
7110       # to the OS version, if on x86, and 10.4, the deployment
7111       # target defaults to 10.4. Don't you love it?
7112       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7113         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7114           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7115         10.[012]*)
7116           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7117         10.*)
7118           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7119       esac
7120     ;;
7121   esac
7122     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7123       _lt_dar_single_mod='$single_module'
7124     fi
7125     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7126       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7127     else
7128       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7129     fi
7130     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7131       _lt_dsymutil='~$DSYMUTIL $lib || :'
7132     else
7133       _lt_dsymutil=
7134     fi
7135     ;;
7136   esac
7137
7138 ac_ext=c
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7144 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7145 # On Suns, sometimes $CPP names a directory.
7146 if test -n "$CPP" && test -d "$CPP"; then
7147   CPP=
7148 fi
7149 if test -z "$CPP"; then
7150   if ${ac_cv_prog_CPP+:} false; then :
7151   $as_echo_n "(cached) " >&6
7152 else
7153       # Double quotes because CPP needs to be expanded
7154     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7155     do
7156       ac_preproc_ok=false
7157 for ac_c_preproc_warn_flag in '' yes
7158 do
7159   # Use a header file that comes with gcc, so configuring glibc
7160   # with a fresh cross-compiler works.
7161   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7162   # <limits.h> exists even on freestanding compilers.
7163   # On the NeXT, cc -E runs the code through the compiler's parser,
7164   # not just through cpp. "Syntax error" is here to catch this case.
7165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h.  */
7167 #ifdef __STDC__
7168 # include <limits.h>
7169 #else
7170 # include <assert.h>
7171 #endif
7172                      Syntax error
7173 _ACEOF
7174 if ac_fn_c_try_cpp "$LINENO"; then :
7175
7176 else
7177   # Broken: fails on valid input.
7178 continue
7179 fi
7180 rm -f conftest.err conftest.i conftest.$ac_ext
7181
7182   # OK, works on sane cases.  Now check whether nonexistent headers
7183   # can be detected and how.
7184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 /* end confdefs.h.  */
7186 #include <ac_nonexistent.h>
7187 _ACEOF
7188 if ac_fn_c_try_cpp "$LINENO"; then :
7189   # Broken: success on invalid input.
7190 continue
7191 else
7192   # Passes both tests.
7193 ac_preproc_ok=:
7194 break
7195 fi
7196 rm -f conftest.err conftest.i conftest.$ac_ext
7197
7198 done
7199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7200 rm -f conftest.i conftest.err conftest.$ac_ext
7201 if $ac_preproc_ok; then :
7202   break
7203 fi
7204
7205     done
7206     ac_cv_prog_CPP=$CPP
7207
7208 fi
7209   CPP=$ac_cv_prog_CPP
7210 else
7211   ac_cv_prog_CPP=$CPP
7212 fi
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7214 $as_echo "$CPP" >&6; }
7215 ac_preproc_ok=false
7216 for ac_c_preproc_warn_flag in '' yes
7217 do
7218   # Use a header file that comes with gcc, so configuring glibc
7219   # with a fresh cross-compiler works.
7220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7221   # <limits.h> exists even on freestanding compilers.
7222   # On the NeXT, cc -E runs the code through the compiler's parser,
7223   # not just through cpp. "Syntax error" is here to catch this case.
7224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h.  */
7226 #ifdef __STDC__
7227 # include <limits.h>
7228 #else
7229 # include <assert.h>
7230 #endif
7231                      Syntax error
7232 _ACEOF
7233 if ac_fn_c_try_cpp "$LINENO"; then :
7234
7235 else
7236   # Broken: fails on valid input.
7237 continue
7238 fi
7239 rm -f conftest.err conftest.i conftest.$ac_ext
7240
7241   # OK, works on sane cases.  Now check whether nonexistent headers
7242   # can be detected and how.
7243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h.  */
7245 #include <ac_nonexistent.h>
7246 _ACEOF
7247 if ac_fn_c_try_cpp "$LINENO"; then :
7248   # Broken: success on invalid input.
7249 continue
7250 else
7251   # Passes both tests.
7252 ac_preproc_ok=:
7253 break
7254 fi
7255 rm -f conftest.err conftest.i conftest.$ac_ext
7256
7257 done
7258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7259 rm -f conftest.i conftest.err conftest.$ac_ext
7260 if $ac_preproc_ok; then :
7261
7262 else
7263   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7265 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7266 See \`config.log' for more details" "$LINENO" 5; }
7267 fi
7268
7269 ac_ext=c
7270 ac_cpp='$CPP $CPPFLAGS'
7271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7274
7275
7276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7277 $as_echo_n "checking for ANSI C header files... " >&6; }
7278 if ${ac_cv_header_stdc+:} false; then :
7279   $as_echo_n "(cached) " >&6
7280 else
7281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h.  */
7283 #include <stdlib.h>
7284 #include <stdarg.h>
7285 #include <string.h>
7286 #include <float.h>
7287
7288 int
7289 main ()
7290 {
7291
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 if ac_fn_c_try_compile "$LINENO"; then :
7297   ac_cv_header_stdc=yes
7298 else
7299   ac_cv_header_stdc=no
7300 fi
7301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7302
7303 if test $ac_cv_header_stdc = yes; then
7304   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h.  */
7307 #include <string.h>
7308
7309 _ACEOF
7310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7311   $EGREP "memchr" >/dev/null 2>&1; then :
7312
7313 else
7314   ac_cv_header_stdc=no
7315 fi
7316 rm -f conftest*
7317
7318 fi
7319
7320 if test $ac_cv_header_stdc = yes; then
7321   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h.  */
7324 #include <stdlib.h>
7325
7326 _ACEOF
7327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7328   $EGREP "free" >/dev/null 2>&1; then :
7329
7330 else
7331   ac_cv_header_stdc=no
7332 fi
7333 rm -f conftest*
7334
7335 fi
7336
7337 if test $ac_cv_header_stdc = yes; then
7338   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7339   if test "$cross_compiling" = yes; then :
7340   :
7341 else
7342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343 /* end confdefs.h.  */
7344 #include <ctype.h>
7345 #include <stdlib.h>
7346 #if ((' ' & 0x0FF) == 0x020)
7347 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7348 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7349 #else
7350 # define ISLOWER(c) \
7351                    (('a' <= (c) && (c) <= 'i') \
7352                      || ('j' <= (c) && (c) <= 'r') \
7353                      || ('s' <= (c) && (c) <= 'z'))
7354 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7355 #endif
7356
7357 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7358 int
7359 main ()
7360 {
7361   int i;
7362   for (i = 0; i < 256; i++)
7363     if (XOR (islower (i), ISLOWER (i))
7364         || toupper (i) != TOUPPER (i))
7365       return 2;
7366   return 0;
7367 }
7368 _ACEOF
7369 if ac_fn_c_try_run "$LINENO"; then :
7370
7371 else
7372   ac_cv_header_stdc=no
7373 fi
7374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7375   conftest.$ac_objext conftest.beam conftest.$ac_ext
7376 fi
7377
7378 fi
7379 fi
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7381 $as_echo "$ac_cv_header_stdc" >&6; }
7382 if test $ac_cv_header_stdc = yes; then
7383
7384 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7385
7386 fi
7387
7388 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7389 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7390                   inttypes.h stdint.h unistd.h
7391 do :
7392   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7393 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7394 "
7395 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7396   cat >>confdefs.h <<_ACEOF
7397 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7398 _ACEOF
7399
7400 fi
7401
7402 done
7403
7404
7405 for ac_header in dlfcn.h
7406 do :
7407   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7408 "
7409 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7410   cat >>confdefs.h <<_ACEOF
7411 #define HAVE_DLFCN_H 1
7412 _ACEOF
7413
7414 fi
7415
7416 done
7417
7418
7419
7420
7421
7422 # Set options
7423 enable_dlopen=yes
7424 enable_win32_dll=yes
7425
7426 case $host in
7427 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7428   if test -n "$ac_tool_prefix"; then
7429   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}as; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_AS+:} false; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   if test -n "$AS"; then
7437   ac_cv_prog_AS="$AS" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446     ac_cv_prog_AS="${ac_tool_prefix}as"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 AS=$ac_cv_prog_AS
7457 if test -n "$AS"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7459 $as_echo "$AS" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 fi
7467 if test -z "$ac_cv_prog_AS"; then
7468   ac_ct_AS=$AS
7469   # Extract the first word of "as", so it can be a program name with args.
7470 set dummy as; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7474   $as_echo_n "(cached) " >&6
7475 else
7476   if test -n "$ac_ct_AS"; then
7477   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482   IFS=$as_save_IFS
7483   test -z "$as_dir" && as_dir=.
7484     for ac_exec_ext in '' $ac_executable_extensions; do
7485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486     ac_cv_prog_ac_ct_AS="as"
7487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488     break 2
7489   fi
7490 done
7491   done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7497 if test -n "$ac_ct_AS"; then
7498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7499 $as_echo "$ac_ct_AS" >&6; }
7500 else
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505   if test "x$ac_ct_AS" = x; then
7506     AS="false"
7507   else
7508     case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514     AS=$ac_ct_AS
7515   fi
7516 else
7517   AS="$ac_cv_prog_AS"
7518 fi
7519
7520   if test -n "$ac_tool_prefix"; then
7521   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7522 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7524 $as_echo_n "checking for $ac_word... " >&6; }
7525 if ${ac_cv_prog_DLLTOOL+:} false; then :
7526   $as_echo_n "(cached) " >&6
7527 else
7528   if test -n "$DLLTOOL"; then
7529   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7530 else
7531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 for as_dir in $PATH
7533 do
7534   IFS=$as_save_IFS
7535   test -z "$as_dir" && as_dir=.
7536     for ac_exec_ext in '' $ac_executable_extensions; do
7537   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7538     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7539     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7540     break 2
7541   fi
7542 done
7543   done
7544 IFS=$as_save_IFS
7545
7546 fi
7547 fi
7548 DLLTOOL=$ac_cv_prog_DLLTOOL
7549 if test -n "$DLLTOOL"; then
7550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7551 $as_echo "$DLLTOOL" >&6; }
7552 else
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7554 $as_echo "no" >&6; }
7555 fi
7556
7557
7558 fi
7559 if test -z "$ac_cv_prog_DLLTOOL"; then
7560   ac_ct_DLLTOOL=$DLLTOOL
7561   # Extract the first word of "dlltool", so it can be a program name with args.
7562 set dummy dlltool; ac_word=$2
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7564 $as_echo_n "checking for $ac_word... " >&6; }
7565 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7566   $as_echo_n "(cached) " >&6
7567 else
7568   if test -n "$ac_ct_DLLTOOL"; then
7569   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7570 else
7571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7572 for as_dir in $PATH
7573 do
7574   IFS=$as_save_IFS
7575   test -z "$as_dir" && as_dir=.
7576     for ac_exec_ext in '' $ac_executable_extensions; do
7577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7578     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7580     break 2
7581   fi
7582 done
7583   done
7584 IFS=$as_save_IFS
7585
7586 fi
7587 fi
7588 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7589 if test -n "$ac_ct_DLLTOOL"; then
7590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7591 $as_echo "$ac_ct_DLLTOOL" >&6; }
7592 else
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7594 $as_echo "no" >&6; }
7595 fi
7596
7597   if test "x$ac_ct_DLLTOOL" = x; then
7598     DLLTOOL="false"
7599   else
7600     case $cross_compiling:$ac_tool_warned in
7601 yes:)
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7603 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7604 ac_tool_warned=yes ;;
7605 esac
7606     DLLTOOL=$ac_ct_DLLTOOL
7607   fi
7608 else
7609   DLLTOOL="$ac_cv_prog_DLLTOOL"
7610 fi
7611
7612   if test -n "$ac_tool_prefix"; then
7613   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7614 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_OBJDUMP+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   if test -n "$OBJDUMP"; then
7621   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628     for ac_exec_ext in '' $ac_executable_extensions; do
7629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635   done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 OBJDUMP=$ac_cv_prog_OBJDUMP
7641 if test -n "$OBJDUMP"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7643 $as_echo "$OBJDUMP" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649
7650 fi
7651 if test -z "$ac_cv_prog_OBJDUMP"; then
7652   ac_ct_OBJDUMP=$OBJDUMP
7653   # Extract the first word of "objdump", so it can be a program name with args.
7654 set dummy objdump; ac_word=$2
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7656 $as_echo_n "checking for $ac_word... " >&6; }
7657 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7658   $as_echo_n "(cached) " >&6
7659 else
7660   if test -n "$ac_ct_OBJDUMP"; then
7661   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668     for ac_exec_ext in '' $ac_executable_extensions; do
7669   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675   done
7676 IFS=$as_save_IFS
7677
7678 fi
7679 fi
7680 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7681 if test -n "$ac_ct_OBJDUMP"; then
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7683 $as_echo "$ac_ct_OBJDUMP" >&6; }
7684 else
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7686 $as_echo "no" >&6; }
7687 fi
7688
7689   if test "x$ac_ct_OBJDUMP" = x; then
7690     OBJDUMP="false"
7691   else
7692     case $cross_compiling:$ac_tool_warned in
7693 yes:)
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7696 ac_tool_warned=yes ;;
7697 esac
7698     OBJDUMP=$ac_ct_OBJDUMP
7699   fi
7700 else
7701   OBJDUMP="$ac_cv_prog_OBJDUMP"
7702 fi
7703
7704   ;;
7705 esac
7706
7707 test -z "$AS" && AS=as
7708
7709
7710
7711
7712
7713 test -z "$DLLTOOL" && DLLTOOL=dlltool
7714
7715
7716
7717
7718
7719 test -z "$OBJDUMP" && OBJDUMP=objdump
7720
7721
7722
7723
7724 # Check whether --enable-static was given.
7725 if test "${enable_static+set}" = set; then :
7726   enableval=$enable_static; p=${PACKAGE-default}
7727     case $enableval in
7728     yes) enable_static=yes ;;
7729     no) enable_static=no ;;
7730     *)
7731      enable_static=no
7732       # Look at the argument we got.  We use all the common list separators.
7733       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7734       for pkg in $enableval; do
7735         IFS="$lt_save_ifs"
7736         if test "X$pkg" = "X$p"; then
7737           enable_static=yes
7738         fi
7739       done
7740       IFS="$lt_save_ifs"
7741       ;;
7742     esac
7743 else
7744   enable_static=no
7745 fi
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758             # Check whether --enable-shared was given.
7759 if test "${enable_shared+set}" = set; then :
7760   enableval=$enable_shared; p=${PACKAGE-default}
7761     case $enableval in
7762     yes) enable_shared=yes ;;
7763     no) enable_shared=no ;;
7764     *)
7765       enable_shared=no
7766       # Look at the argument we got.  We use all the common list separators.
7767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7768       for pkg in $enableval; do
7769         IFS="$lt_save_ifs"
7770         if test "X$pkg" = "X$p"; then
7771           enable_shared=yes
7772         fi
7773       done
7774       IFS="$lt_save_ifs"
7775       ;;
7776     esac
7777 else
7778   enable_shared=yes
7779 fi
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791 # Check whether --with-pic was given.
7792 if test "${with_pic+set}" = set; then :
7793   withval=$with_pic; lt_p=${PACKAGE-default}
7794     case $withval in
7795     yes|no) pic_mode=$withval ;;
7796     *)
7797       pic_mode=default
7798       # Look at the argument we got.  We use all the common list separators.
7799       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7800       for lt_pkg in $withval; do
7801         IFS="$lt_save_ifs"
7802         if test "X$lt_pkg" = "X$lt_p"; then
7803           pic_mode=yes
7804         fi
7805       done
7806       IFS="$lt_save_ifs"
7807       ;;
7808     esac
7809 else
7810   pic_mode=default
7811 fi
7812
7813
7814 test -z "$pic_mode" && pic_mode=default
7815
7816
7817
7818
7819
7820
7821
7822   # Check whether --enable-fast-install was given.
7823 if test "${enable_fast_install+set}" = set; then :
7824   enableval=$enable_fast_install; p=${PACKAGE-default}
7825     case $enableval in
7826     yes) enable_fast_install=yes ;;
7827     no) enable_fast_install=no ;;
7828     *)
7829       enable_fast_install=no
7830       # Look at the argument we got.  We use all the common list separators.
7831       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832       for pkg in $enableval; do
7833         IFS="$lt_save_ifs"
7834         if test "X$pkg" = "X$p"; then
7835           enable_fast_install=yes
7836         fi
7837       done
7838       IFS="$lt_save_ifs"
7839       ;;
7840     esac
7841 else
7842   enable_fast_install=yes
7843 fi
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855 # This can be used to rebuild libtool when needed
7856 LIBTOOL_DEPS="$ltmain"
7857
7858 # Always use our own libtool.
7859 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890 test -z "$LN_S" && LN_S="ln -s"
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905 if test -n "${ZSH_VERSION+set}" ; then
7906    setopt NO_GLOB_SUBST
7907 fi
7908
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7910 $as_echo_n "checking for objdir... " >&6; }
7911 if ${lt_cv_objdir+:} false; then :
7912   $as_echo_n "(cached) " >&6
7913 else
7914   rm -f .libs 2>/dev/null
7915 mkdir .libs 2>/dev/null
7916 if test -d .libs; then
7917   lt_cv_objdir=.libs
7918 else
7919   # MS-DOS does not allow filenames that begin with a dot.
7920   lt_cv_objdir=_libs
7921 fi
7922 rmdir .libs 2>/dev/null
7923 fi
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7925 $as_echo "$lt_cv_objdir" >&6; }
7926 objdir=$lt_cv_objdir
7927
7928
7929
7930
7931
7932 cat >>confdefs.h <<_ACEOF
7933 #define LT_OBJDIR "$lt_cv_objdir/"
7934 _ACEOF
7935
7936
7937
7938
7939 case $host_os in
7940 aix3*)
7941   # AIX sometimes has problems with the GCC collect2 program.  For some
7942   # reason, if we set the COLLECT_NAMES environment variable, the problems
7943   # vanish in a puff of smoke.
7944   if test "X${COLLECT_NAMES+set}" != Xset; then
7945     COLLECT_NAMES=
7946     export COLLECT_NAMES
7947   fi
7948   ;;
7949 esac
7950
7951 # Global variables:
7952 ofile=libtool
7953 can_build_shared=yes
7954
7955 # All known linkers require a `.a' archive for static linking (except MSVC,
7956 # which needs '.lib').
7957 libext=a
7958
7959 with_gnu_ld="$lt_cv_prog_gnu_ld"
7960
7961 old_CC="$CC"
7962 old_CFLAGS="$CFLAGS"
7963
7964 # Set sane defaults for various variables
7965 test -z "$CC" && CC=cc
7966 test -z "$LTCC" && LTCC=$CC
7967 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7968 test -z "$LD" && LD=ld
7969 test -z "$ac_objext" && ac_objext=o
7970
7971 for cc_temp in $compiler""; do
7972   case $cc_temp in
7973     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7974     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7975     \-*) ;;
7976     *) break;;
7977   esac
7978 done
7979 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7980
7981
7982 # Only perform the check for file, if the check method requires it
7983 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7984 case $deplibs_check_method in
7985 file_magic*)
7986   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7988 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7989 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7990   $as_echo_n "(cached) " >&6
7991 else
7992   case $MAGIC_CMD in
7993 [\\/*] |  ?:[\\/]*)
7994   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7995   ;;
7996 *)
7997   lt_save_MAGIC_CMD="$MAGIC_CMD"
7998   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7999   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8000   for ac_dir in $ac_dummy; do
8001     IFS="$lt_save_ifs"
8002     test -z "$ac_dir" && ac_dir=.
8003     if test -f $ac_dir/${ac_tool_prefix}file; then
8004       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8005       if test -n "$file_magic_test_file"; then
8006         case $deplibs_check_method in
8007         "file_magic "*)
8008           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8009           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8010           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8011             $EGREP "$file_magic_regex" > /dev/null; then
8012             :
8013           else
8014             cat <<_LT_EOF 1>&2
8015
8016 *** Warning: the command libtool uses to detect shared libraries,
8017 *** $file_magic_cmd, produces output that libtool cannot recognize.
8018 *** The result is that libtool may fail to recognize shared libraries
8019 *** as such.  This will affect the creation of libtool libraries that
8020 *** depend on shared libraries, but programs linked with such libtool
8021 *** libraries will work regardless of this problem.  Nevertheless, you
8022 *** may want to report the problem to your system manager and/or to
8023 *** bug-libtool@gnu.org
8024
8025 _LT_EOF
8026           fi ;;
8027         esac
8028       fi
8029       break
8030     fi
8031   done
8032   IFS="$lt_save_ifs"
8033   MAGIC_CMD="$lt_save_MAGIC_CMD"
8034   ;;
8035 esac
8036 fi
8037
8038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8039 if test -n "$MAGIC_CMD"; then
8040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8041 $as_echo "$MAGIC_CMD" >&6; }
8042 else
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8045 fi
8046
8047
8048
8049
8050
8051 if test -z "$lt_cv_path_MAGIC_CMD"; then
8052   if test -n "$ac_tool_prefix"; then
8053     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8054 $as_echo_n "checking for file... " >&6; }
8055 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8056   $as_echo_n "(cached) " >&6
8057 else
8058   case $MAGIC_CMD in
8059 [\\/*] |  ?:[\\/]*)
8060   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8061   ;;
8062 *)
8063   lt_save_MAGIC_CMD="$MAGIC_CMD"
8064   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8065   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8066   for ac_dir in $ac_dummy; do
8067     IFS="$lt_save_ifs"
8068     test -z "$ac_dir" && ac_dir=.
8069     if test -f $ac_dir/file; then
8070       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8071       if test -n "$file_magic_test_file"; then
8072         case $deplibs_check_method in
8073         "file_magic "*)
8074           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8075           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8076           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8077             $EGREP "$file_magic_regex" > /dev/null; then
8078             :
8079           else
8080             cat <<_LT_EOF 1>&2
8081
8082 *** Warning: the command libtool uses to detect shared libraries,
8083 *** $file_magic_cmd, produces output that libtool cannot recognize.
8084 *** The result is that libtool may fail to recognize shared libraries
8085 *** as such.  This will affect the creation of libtool libraries that
8086 *** depend on shared libraries, but programs linked with such libtool
8087 *** libraries will work regardless of this problem.  Nevertheless, you
8088 *** may want to report the problem to your system manager and/or to
8089 *** bug-libtool@gnu.org
8090
8091 _LT_EOF
8092           fi ;;
8093         esac
8094       fi
8095       break
8096     fi
8097   done
8098   IFS="$lt_save_ifs"
8099   MAGIC_CMD="$lt_save_MAGIC_CMD"
8100   ;;
8101 esac
8102 fi
8103
8104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8105 if test -n "$MAGIC_CMD"; then
8106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8107 $as_echo "$MAGIC_CMD" >&6; }
8108 else
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8111 fi
8112
8113
8114   else
8115     MAGIC_CMD=:
8116   fi
8117 fi
8118
8119   fi
8120   ;;
8121 esac
8122
8123 # Use C for the default configuration in the libtool script
8124
8125 lt_save_CC="$CC"
8126 ac_ext=c
8127 ac_cpp='$CPP $CPPFLAGS'
8128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8131
8132
8133 # Source file extension for C test sources.
8134 ac_ext=c
8135
8136 # Object file extension for compiled C test sources.
8137 objext=o
8138 objext=$objext
8139
8140 # Code to be used in simple compile tests
8141 lt_simple_compile_test_code="int some_variable = 0;"
8142
8143 # Code to be used in simple link tests
8144 lt_simple_link_test_code='int main(){return(0);}'
8145
8146
8147
8148
8149
8150
8151
8152 # If no C compiler was specified, use CC.
8153 LTCC=${LTCC-"$CC"}
8154
8155 # If no C compiler flags were specified, use CFLAGS.
8156 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8157
8158 # Allow CC to be a program name with arguments.
8159 compiler=$CC
8160
8161 # Save the default compiler, since it gets overwritten when the other
8162 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8163 compiler_DEFAULT=$CC
8164
8165 # save warnings/boilerplate of simple test code
8166 ac_outfile=conftest.$ac_objext
8167 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8168 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8169 _lt_compiler_boilerplate=`cat conftest.err`
8170 $RM conftest*
8171
8172 ac_outfile=conftest.$ac_objext
8173 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8174 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8175 _lt_linker_boilerplate=`cat conftest.err`
8176 $RM -r conftest*
8177
8178
8179 ## CAVEAT EMPTOR:
8180 ## There is no encapsulation within the following macros, do not change
8181 ## the running order or otherwise move them around unless you know exactly
8182 ## what you are doing...
8183 if test -n "$compiler"; then
8184
8185 lt_prog_compiler_no_builtin_flag=
8186
8187 if test "$GCC" = yes; then
8188   case $cc_basename in
8189   nvcc*)
8190     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8191   *)
8192     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8193   esac
8194
8195   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8196 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8197 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   lt_cv_prog_compiler_rtti_exceptions=no
8201    ac_outfile=conftest.$ac_objext
8202    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8203    lt_compiler_flag="-fno-rtti -fno-exceptions"
8204    # Insert the option either (1) after the last *FLAGS variable, or
8205    # (2) before a word containing "conftest.", or (3) at the end.
8206    # Note that $ac_compile itself does not contain backslashes and begins
8207    # with a dollar sign (not a hyphen), so the echo should work correctly.
8208    # The option is referenced via a variable to avoid confusing sed.
8209    lt_compile=`echo "$ac_compile" | $SED \
8210    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8211    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8212    -e 's:$: $lt_compiler_flag:'`
8213    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8214    (eval "$lt_compile" 2>conftest.err)
8215    ac_status=$?
8216    cat conftest.err >&5
8217    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218    if (exit $ac_status) && test -s "$ac_outfile"; then
8219      # The compiler can only warn and ignore the option if not recognized
8220      # So say no if there are warnings other than the usual output.
8221      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8222      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8224        lt_cv_prog_compiler_rtti_exceptions=yes
8225      fi
8226    fi
8227    $RM conftest*
8228
8229 fi
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8231 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8232
8233 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8234     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8235 else
8236     :
8237 fi
8238
8239 fi
8240
8241
8242
8243
8244
8245
8246   lt_prog_compiler_wl=
8247 lt_prog_compiler_pic=
8248 lt_prog_compiler_static=
8249
8250
8251   if test "$GCC" = yes; then
8252     lt_prog_compiler_wl='-Wl,'
8253     lt_prog_compiler_static='-static'
8254
8255     case $host_os in
8256       aix*)
8257       # All AIX code is PIC.
8258       if test "$host_cpu" = ia64; then
8259         # AIX 5 now supports IA64 processor
8260         lt_prog_compiler_static='-Bstatic'
8261       fi
8262       ;;
8263
8264     amigaos*)
8265       case $host_cpu in
8266       powerpc)
8267             # see comment about AmigaOS4 .so support
8268             lt_prog_compiler_pic='-fPIC'
8269         ;;
8270       m68k)
8271             # FIXME: we need at least 68020 code to build shared libraries, but
8272             # adding the `-m68020' flag to GCC prevents building anything better,
8273             # like `-m68040'.
8274             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8275         ;;
8276       esac
8277       ;;
8278
8279     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8280       # PIC is the default for these OSes.
8281       ;;
8282
8283     mingw* | cygwin* | pw32* | os2* | cegcc*)
8284       # This hack is so that the source file can tell whether it is being
8285       # built for inclusion in a dll (and should export symbols for example).
8286       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8287       # (--disable-auto-import) libraries
8288       lt_prog_compiler_pic='-DDLL_EXPORT'
8289       ;;
8290
8291     darwin* | rhapsody*)
8292       # PIC is the default on this platform
8293       # Common symbols not allowed in MH_DYLIB files
8294       lt_prog_compiler_pic='-fno-common'
8295       ;;
8296
8297     haiku*)
8298       # PIC is the default for Haiku.
8299       # The "-static" flag exists, but is broken.
8300       lt_prog_compiler_static=
8301       ;;
8302
8303     hpux*)
8304       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8305       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8306       # sets the default TLS model and affects inlining.
8307       case $host_cpu in
8308       hppa*64*)
8309         # +Z the default
8310         ;;
8311       *)
8312         lt_prog_compiler_pic='-fPIC'
8313         ;;
8314       esac
8315       ;;
8316
8317     interix[3-9]*)
8318       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8319       # Instead, we relocate shared libraries at runtime.
8320       ;;
8321
8322     msdosdjgpp*)
8323       # Just because we use GCC doesn't mean we suddenly get shared libraries
8324       # on systems that don't support them.
8325       lt_prog_compiler_can_build_shared=no
8326       enable_shared=no
8327       ;;
8328
8329     *nto* | *qnx*)
8330       # QNX uses GNU C++, but need to define -shared option too, otherwise
8331       # it will coredump.
8332       lt_prog_compiler_pic='-fPIC -shared'
8333       ;;
8334
8335     sysv4*MP*)
8336       if test -d /usr/nec; then
8337         lt_prog_compiler_pic=-Kconform_pic
8338       fi
8339       ;;
8340
8341     *)
8342       lt_prog_compiler_pic='-fPIC'
8343       ;;
8344     esac
8345
8346     case $cc_basename in
8347     nvcc*) # Cuda Compiler Driver 2.2
8348       lt_prog_compiler_wl='-Xlinker '
8349       if test -n "$lt_prog_compiler_pic"; then
8350         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8351       fi
8352       ;;
8353     esac
8354   else
8355     # PORTME Check for flag to pass linker flags through the system compiler.
8356     case $host_os in
8357     aix*)
8358       lt_prog_compiler_wl='-Wl,'
8359       if test "$host_cpu" = ia64; then
8360         # AIX 5 now supports IA64 processor
8361         lt_prog_compiler_static='-Bstatic'
8362       else
8363         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8364       fi
8365       ;;
8366
8367     mingw* | cygwin* | pw32* | os2* | cegcc*)
8368       # This hack is so that the source file can tell whether it is being
8369       # built for inclusion in a dll (and should export symbols for example).
8370       lt_prog_compiler_pic='-DDLL_EXPORT'
8371       ;;
8372
8373     hpux9* | hpux10* | hpux11*)
8374       lt_prog_compiler_wl='-Wl,'
8375       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8376       # not for PA HP-UX.
8377       case $host_cpu in
8378       hppa*64*|ia64*)
8379         # +Z the default
8380         ;;
8381       *)
8382         lt_prog_compiler_pic='+Z'
8383         ;;
8384       esac
8385       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8386       lt_prog_compiler_static='${wl}-a ${wl}archive'
8387       ;;
8388
8389     irix5* | irix6* | nonstopux*)
8390       lt_prog_compiler_wl='-Wl,'
8391       # PIC (with -KPIC) is the default.
8392       lt_prog_compiler_static='-non_shared'
8393       ;;
8394
8395     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8396       case $cc_basename in
8397       # old Intel for x86_64 which still supported -KPIC.
8398       ecc*)
8399         lt_prog_compiler_wl='-Wl,'
8400         lt_prog_compiler_pic='-KPIC'
8401         lt_prog_compiler_static='-static'
8402         ;;
8403       # icc used to be incompatible with GCC.
8404       # ICC 10 doesn't accept -KPIC any more.
8405       icc* | ifort*)
8406         lt_prog_compiler_wl='-Wl,'
8407         lt_prog_compiler_pic='-fPIC'
8408         lt_prog_compiler_static='-static'
8409         ;;
8410       # Lahey Fortran 8.1.
8411       lf95*)
8412         lt_prog_compiler_wl='-Wl,'
8413         lt_prog_compiler_pic='--shared'
8414         lt_prog_compiler_static='--static'
8415         ;;
8416       nagfor*)
8417         # NAG Fortran compiler
8418         lt_prog_compiler_wl='-Wl,-Wl,,'
8419         lt_prog_compiler_pic='-PIC'
8420         lt_prog_compiler_static='-Bstatic'
8421         ;;
8422       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8423         # Portland Group compilers (*not* the Pentium gcc compiler,
8424         # which looks to be a dead project)
8425         lt_prog_compiler_wl='-Wl,'
8426         lt_prog_compiler_pic='-fpic'
8427         lt_prog_compiler_static='-Bstatic'
8428         ;;
8429       ccc*)
8430         lt_prog_compiler_wl='-Wl,'
8431         # All Alpha code is PIC.
8432         lt_prog_compiler_static='-non_shared'
8433         ;;
8434       xl* | bgxl* | bgf* | mpixl*)
8435         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8436         lt_prog_compiler_wl='-Wl,'
8437         lt_prog_compiler_pic='-qpic'
8438         lt_prog_compiler_static='-qstaticlink'
8439         ;;
8440       *)
8441         case `$CC -V 2>&1 | sed 5q` in
8442         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8443           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8444           lt_prog_compiler_pic='-KPIC'
8445           lt_prog_compiler_static='-Bstatic'
8446           lt_prog_compiler_wl=''
8447           ;;
8448         *Sun\ F* | *Sun*Fortran*)
8449           lt_prog_compiler_pic='-KPIC'
8450           lt_prog_compiler_static='-Bstatic'
8451           lt_prog_compiler_wl='-Qoption ld '
8452           ;;
8453         *Sun\ C*)
8454           # Sun C 5.9
8455           lt_prog_compiler_pic='-KPIC'
8456           lt_prog_compiler_static='-Bstatic'
8457           lt_prog_compiler_wl='-Wl,'
8458           ;;
8459         *Intel*\ [CF]*Compiler*)
8460           lt_prog_compiler_wl='-Wl,'
8461           lt_prog_compiler_pic='-fPIC'
8462           lt_prog_compiler_static='-static'
8463           ;;
8464         *Portland\ Group*)
8465           lt_prog_compiler_wl='-Wl,'
8466           lt_prog_compiler_pic='-fpic'
8467           lt_prog_compiler_static='-Bstatic'
8468           ;;
8469         esac
8470         ;;
8471       esac
8472       ;;
8473
8474     newsos6)
8475       lt_prog_compiler_pic='-KPIC'
8476       lt_prog_compiler_static='-Bstatic'
8477       ;;
8478
8479     *nto* | *qnx*)
8480       # QNX uses GNU C++, but need to define -shared option too, otherwise
8481       # it will coredump.
8482       lt_prog_compiler_pic='-fPIC -shared'
8483       ;;
8484
8485     osf3* | osf4* | osf5*)
8486       lt_prog_compiler_wl='-Wl,'
8487       # All OSF/1 code is PIC.
8488       lt_prog_compiler_static='-non_shared'
8489       ;;
8490
8491     rdos*)
8492       lt_prog_compiler_static='-non_shared'
8493       ;;
8494
8495     solaris*)
8496       lt_prog_compiler_pic='-KPIC'
8497       lt_prog_compiler_static='-Bstatic'
8498       case $cc_basename in
8499       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8500         lt_prog_compiler_wl='-Qoption ld ';;
8501       *)
8502         lt_prog_compiler_wl='-Wl,';;
8503       esac
8504       ;;
8505
8506     sunos4*)
8507       lt_prog_compiler_wl='-Qoption ld '
8508       lt_prog_compiler_pic='-PIC'
8509       lt_prog_compiler_static='-Bstatic'
8510       ;;
8511
8512     sysv4 | sysv4.2uw2* | sysv4.3*)
8513       lt_prog_compiler_wl='-Wl,'
8514       lt_prog_compiler_pic='-KPIC'
8515       lt_prog_compiler_static='-Bstatic'
8516       ;;
8517
8518     sysv4*MP*)
8519       if test -d /usr/nec ;then
8520         lt_prog_compiler_pic='-Kconform_pic'
8521         lt_prog_compiler_static='-Bstatic'
8522       fi
8523       ;;
8524
8525     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8526       lt_prog_compiler_wl='-Wl,'
8527       lt_prog_compiler_pic='-KPIC'
8528       lt_prog_compiler_static='-Bstatic'
8529       ;;
8530
8531     unicos*)
8532       lt_prog_compiler_wl='-Wl,'
8533       lt_prog_compiler_can_build_shared=no
8534       ;;
8535
8536     uts4*)
8537       lt_prog_compiler_pic='-pic'
8538       lt_prog_compiler_static='-Bstatic'
8539       ;;
8540
8541     *)
8542       lt_prog_compiler_can_build_shared=no
8543       ;;
8544     esac
8545   fi
8546
8547 case $host_os in
8548   # For platforms which do not support PIC, -DPIC is meaningless:
8549   *djgpp*)
8550     lt_prog_compiler_pic=
8551     ;;
8552   *)
8553     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8554     ;;
8555 esac
8556
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8558 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8559 if ${lt_cv_prog_compiler_pic+:} false; then :
8560   $as_echo_n "(cached) " >&6
8561 else
8562   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8565 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8566 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8567
8568 #
8569 # Check to make sure the PIC flag actually works.
8570 #
8571 if test -n "$lt_prog_compiler_pic"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8573 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8574 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   lt_cv_prog_compiler_pic_works=no
8578    ac_outfile=conftest.$ac_objext
8579    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8580    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8581    # Insert the option either (1) after the last *FLAGS variable, or
8582    # (2) before a word containing "conftest.", or (3) at the end.
8583    # Note that $ac_compile itself does not contain backslashes and begins
8584    # with a dollar sign (not a hyphen), so the echo should work correctly.
8585    # The option is referenced via a variable to avoid confusing sed.
8586    lt_compile=`echo "$ac_compile" | $SED \
8587    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8588    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8589    -e 's:$: $lt_compiler_flag:'`
8590    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8591    (eval "$lt_compile" 2>conftest.err)
8592    ac_status=$?
8593    cat conftest.err >&5
8594    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595    if (exit $ac_status) && test -s "$ac_outfile"; then
8596      # The compiler can only warn and ignore the option if not recognized
8597      # So say no if there are warnings other than the usual output.
8598      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8599      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8600      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8601        lt_cv_prog_compiler_pic_works=yes
8602      fi
8603    fi
8604    $RM conftest*
8605
8606 fi
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8608 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8609
8610 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8611     case $lt_prog_compiler_pic in
8612      "" | " "*) ;;
8613      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8614      esac
8615 else
8616     lt_prog_compiler_pic=
8617      lt_prog_compiler_can_build_shared=no
8618 fi
8619
8620 fi
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 #
8633 # Check to make sure the static flag actually works.
8634 #
8635 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8637 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8638 if ${lt_cv_prog_compiler_static_works+:} false; then :
8639   $as_echo_n "(cached) " >&6
8640 else
8641   lt_cv_prog_compiler_static_works=no
8642    save_LDFLAGS="$LDFLAGS"
8643    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8644    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8645    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8646      # The linker can only warn and ignore the option if not recognized
8647      # So say no if there are warnings
8648      if test -s conftest.err; then
8649        # Append any errors to the config.log.
8650        cat conftest.err 1>&5
8651        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8652        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653        if diff conftest.exp conftest.er2 >/dev/null; then
8654          lt_cv_prog_compiler_static_works=yes
8655        fi
8656      else
8657        lt_cv_prog_compiler_static_works=yes
8658      fi
8659    fi
8660    $RM -r conftest*
8661    LDFLAGS="$save_LDFLAGS"
8662
8663 fi
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8665 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8666
8667 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8668     :
8669 else
8670     lt_prog_compiler_static=
8671 fi
8672
8673
8674
8675
8676
8677
8678
8679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8680 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8681 if ${lt_cv_prog_compiler_c_o+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   lt_cv_prog_compiler_c_o=no
8685    $RM -r conftest 2>/dev/null
8686    mkdir conftest
8687    cd conftest
8688    mkdir out
8689    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8690
8691    lt_compiler_flag="-o out/conftest2.$ac_objext"
8692    # Insert the option either (1) after the last *FLAGS variable, or
8693    # (2) before a word containing "conftest.", or (3) at the end.
8694    # Note that $ac_compile itself does not contain backslashes and begins
8695    # with a dollar sign (not a hyphen), so the echo should work correctly.
8696    lt_compile=`echo "$ac_compile" | $SED \
8697    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8698    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8699    -e 's:$: $lt_compiler_flag:'`
8700    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8701    (eval "$lt_compile" 2>out/conftest.err)
8702    ac_status=$?
8703    cat out/conftest.err >&5
8704    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8706    then
8707      # The compiler can only warn and ignore the option if not recognized
8708      # So say no if there are warnings
8709      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8710      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8711      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8712        lt_cv_prog_compiler_c_o=yes
8713      fi
8714    fi
8715    chmod u+w . 2>&5
8716    $RM conftest*
8717    # SGI C++ compiler will create directory out/ii_files/ for
8718    # template instantiation
8719    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8720    $RM out/* && rmdir out
8721    cd ..
8722    $RM -r conftest
8723    $RM conftest*
8724
8725 fi
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8727 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8728
8729
8730
8731
8732
8733
8734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8735 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8736 if ${lt_cv_prog_compiler_c_o+:} false; then :
8737   $as_echo_n "(cached) " >&6
8738 else
8739   lt_cv_prog_compiler_c_o=no
8740    $RM -r conftest 2>/dev/null
8741    mkdir conftest
8742    cd conftest
8743    mkdir out
8744    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8745
8746    lt_compiler_flag="-o out/conftest2.$ac_objext"
8747    # Insert the option either (1) after the last *FLAGS variable, or
8748    # (2) before a word containing "conftest.", or (3) at the end.
8749    # Note that $ac_compile itself does not contain backslashes and begins
8750    # with a dollar sign (not a hyphen), so the echo should work correctly.
8751    lt_compile=`echo "$ac_compile" | $SED \
8752    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8753    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8754    -e 's:$: $lt_compiler_flag:'`
8755    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8756    (eval "$lt_compile" 2>out/conftest.err)
8757    ac_status=$?
8758    cat out/conftest.err >&5
8759    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8761    then
8762      # The compiler can only warn and ignore the option if not recognized
8763      # So say no if there are warnings
8764      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8765      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8766      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8767        lt_cv_prog_compiler_c_o=yes
8768      fi
8769    fi
8770    chmod u+w . 2>&5
8771    $RM conftest*
8772    # SGI C++ compiler will create directory out/ii_files/ for
8773    # template instantiation
8774    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8775    $RM out/* && rmdir out
8776    cd ..
8777    $RM -r conftest
8778    $RM conftest*
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8782 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8783
8784
8785
8786
8787 hard_links="nottested"
8788 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8789   # do not overwrite the value of need_locks provided by the user
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8791 $as_echo_n "checking if we can lock with hard links... " >&6; }
8792   hard_links=yes
8793   $RM conftest*
8794   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8795   touch conftest.a
8796   ln conftest.a conftest.b 2>&5 || hard_links=no
8797   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8799 $as_echo "$hard_links" >&6; }
8800   if test "$hard_links" = no; then
8801     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8802 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8803     need_locks=warn
8804   fi
8805 else
8806   need_locks=no
8807 fi
8808
8809
8810
8811
8812
8813
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8816
8817   runpath_var=
8818   allow_undefined_flag=
8819   always_export_symbols=no
8820   archive_cmds=
8821   archive_expsym_cmds=
8822   compiler_needs_object=no
8823   enable_shared_with_static_runtimes=no
8824   export_dynamic_flag_spec=
8825   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8826   hardcode_automatic=no
8827   hardcode_direct=no
8828   hardcode_direct_absolute=no
8829   hardcode_libdir_flag_spec=
8830   hardcode_libdir_separator=
8831   hardcode_minus_L=no
8832   hardcode_shlibpath_var=unsupported
8833   inherit_rpath=no
8834   link_all_deplibs=unknown
8835   module_cmds=
8836   module_expsym_cmds=
8837   old_archive_from_new_cmds=
8838   old_archive_from_expsyms_cmds=
8839   thread_safe_flag_spec=
8840   whole_archive_flag_spec=
8841   # include_expsyms should be a list of space-separated symbols to be *always*
8842   # included in the symbol list
8843   include_expsyms=
8844   # exclude_expsyms can be an extended regexp of symbols to exclude
8845   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8846   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8847   # as well as any symbol that contains `d'.
8848   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8849   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8850   # platforms (ab)use it in PIC code, but their linkers get confused if
8851   # the symbol is explicitly referenced.  Since portable code cannot
8852   # rely on this symbol name, it's probably fine to never include it in
8853   # preloaded symbol tables.
8854   # Exclude shared library initialization/finalization symbols.
8855   extract_expsyms_cmds=
8856
8857   case $host_os in
8858   cygwin* | mingw* | pw32* | cegcc*)
8859     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8860     # When not using gcc, we currently assume that we are using
8861     # Microsoft Visual C++.
8862     if test "$GCC" != yes; then
8863       with_gnu_ld=no
8864     fi
8865     ;;
8866   interix*)
8867     # we just hope/assume this is gcc and not c89 (= MSVC++)
8868     with_gnu_ld=yes
8869     ;;
8870   openbsd*)
8871     with_gnu_ld=no
8872     ;;
8873   linux* | k*bsd*-gnu | gnu*)
8874     link_all_deplibs=no
8875     ;;
8876   esac
8877
8878   ld_shlibs=yes
8879
8880   # On some targets, GNU ld is compatible enough with the native linker
8881   # that we're better off using the native interface for both.
8882   lt_use_gnu_ld_interface=no
8883   if test "$with_gnu_ld" = yes; then
8884     case $host_os in
8885       aix*)
8886         # The AIX port of GNU ld has always aspired to compatibility
8887         # with the native linker.  However, as the warning in the GNU ld
8888         # block says, versions before 2.19.5* couldn't really create working
8889         # shared libraries, regardless of the interface used.
8890         case `$LD -v 2>&1` in
8891           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8892           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8893           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8894           *)
8895             lt_use_gnu_ld_interface=yes
8896             ;;
8897         esac
8898         ;;
8899       *)
8900         lt_use_gnu_ld_interface=yes
8901         ;;
8902     esac
8903   fi
8904
8905   if test "$lt_use_gnu_ld_interface" = yes; then
8906     # If archive_cmds runs LD, not CC, wlarc should be empty
8907     wlarc='${wl}'
8908
8909     # Set some defaults for GNU ld with shared library support. These
8910     # are reset later if shared libraries are not supported. Putting them
8911     # here allows them to be overridden if necessary.
8912     runpath_var=LD_RUN_PATH
8913     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914     export_dynamic_flag_spec='${wl}--export-dynamic'
8915     # ancient GNU ld didn't support --whole-archive et. al.
8916     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8917       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8918     else
8919       whole_archive_flag_spec=
8920     fi
8921     supports_anon_versioning=no
8922     case `$LD -v 2>&1` in
8923       *GNU\ gold*) supports_anon_versioning=yes ;;
8924       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8925       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8926       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8927       *\ 2.11.*) ;; # other 2.11 versions
8928       *) supports_anon_versioning=yes ;;
8929     esac
8930
8931     # See if GNU ld supports shared libraries.
8932     case $host_os in
8933     aix[3-9]*)
8934       # On AIX/PPC, the GNU linker is very broken
8935       if test "$host_cpu" != ia64; then
8936         ld_shlibs=no
8937         cat <<_LT_EOF 1>&2
8938
8939 *** Warning: the GNU linker, at least up to release 2.19, is reported
8940 *** to be unable to reliably create shared libraries on AIX.
8941 *** Therefore, libtool is disabling shared libraries support.  If you
8942 *** really care for shared libraries, you may want to install binutils
8943 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8944 *** You will then need to restart the configuration process.
8945
8946 _LT_EOF
8947       fi
8948       ;;
8949
8950     amigaos*)
8951       case $host_cpu in
8952       powerpc)
8953             # see comment about AmigaOS4 .so support
8954             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8955             archive_expsym_cmds=''
8956         ;;
8957       m68k)
8958             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)'
8959             hardcode_libdir_flag_spec='-L$libdir'
8960             hardcode_minus_L=yes
8961         ;;
8962       esac
8963       ;;
8964
8965     beos*)
8966       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8967         allow_undefined_flag=unsupported
8968         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8969         # support --undefined.  This deserves some investigation.  FIXME
8970         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8971       else
8972         ld_shlibs=no
8973       fi
8974       ;;
8975
8976     cygwin* | mingw* | pw32* | cegcc*)
8977       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8978       # as there is no search path for DLLs.
8979       hardcode_libdir_flag_spec='-L$libdir'
8980       export_dynamic_flag_spec='${wl}--export-all-symbols'
8981       allow_undefined_flag=unsupported
8982       always_export_symbols=no
8983       enable_shared_with_static_runtimes=yes
8984       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'
8985       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8986
8987       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8988         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8989         # If the export-symbols file already is a .def file (1st line
8990         # is EXPORTS), use it as is; otherwise, prepend...
8991         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8992           cp $export_symbols $output_objdir/$soname.def;
8993         else
8994           echo EXPORTS > $output_objdir/$soname.def;
8995           cat $export_symbols >> $output_objdir/$soname.def;
8996         fi~
8997         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8998       else
8999         ld_shlibs=no
9000       fi
9001       ;;
9002
9003     haiku*)
9004       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005       link_all_deplibs=yes
9006       ;;
9007
9008     interix[3-9]*)
9009       hardcode_direct=no
9010       hardcode_shlibpath_var=no
9011       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9012       export_dynamic_flag_spec='${wl}-E'
9013       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9014       # Instead, shared libraries are loaded at an image base (0x10000000 by
9015       # default) and relocated if they conflict, which is a slow very memory
9016       # consuming and fragmenting process.  To avoid this, we pick a random,
9017       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9018       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9019       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9020       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'
9021       ;;
9022
9023     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9024       tmp_diet=no
9025       if test "$host_os" = linux-dietlibc; then
9026         case $cc_basename in
9027           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9028         esac
9029       fi
9030       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9031          && test "$tmp_diet" = no
9032       then
9033         tmp_addflag=' $pic_flag'
9034         tmp_sharedflag='-shared'
9035         case $cc_basename,$host_cpu in
9036         pgcc*)                          # Portland Group C compiler
9037           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'
9038           tmp_addflag=' $pic_flag'
9039           ;;
9040         pgf77* | pgf90* | pgf95* | pgfortran*)
9041                                         # Portland Group f77 and f90 compilers
9042           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'
9043           tmp_addflag=' $pic_flag -Mnomain' ;;
9044         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9045           tmp_addflag=' -i_dynamic' ;;
9046         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9047           tmp_addflag=' -i_dynamic -nofor_main' ;;
9048         ifc* | ifort*)                  # Intel Fortran compiler
9049           tmp_addflag=' -nofor_main' ;;
9050         lf95*)                          # Lahey Fortran 8.1
9051           whole_archive_flag_spec=
9052           tmp_sharedflag='--shared' ;;
9053         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9054           tmp_sharedflag='-qmkshrobj'
9055           tmp_addflag= ;;
9056         nvcc*)  # Cuda Compiler Driver 2.2
9057           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'
9058           compiler_needs_object=yes
9059           ;;
9060         esac
9061         case `$CC -V 2>&1 | sed 5q` in
9062         *Sun\ C*)                       # Sun C 5.9
9063           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'
9064           compiler_needs_object=yes
9065           tmp_sharedflag='-G' ;;
9066         *Sun\ F*)                       # Sun Fortran 8.3
9067           tmp_sharedflag='-G' ;;
9068         esac
9069         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9070
9071         if test "x$supports_anon_versioning" = xyes; then
9072           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9073             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9074             echo "local: *; };" >> $output_objdir/$libname.ver~
9075             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9076         fi
9077
9078         case $cc_basename in
9079         xlf* | bgf* | bgxlf* | mpixlf*)
9080           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9081           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9082           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9083           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9084           if test "x$supports_anon_versioning" = xyes; then
9085             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9086               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9087               echo "local: *; };" >> $output_objdir/$libname.ver~
9088               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9089           fi
9090           ;;
9091         esac
9092       else
9093         ld_shlibs=no
9094       fi
9095       ;;
9096
9097     netbsd* | netbsdelf*-gnu)
9098       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9099         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9100         wlarc=
9101       else
9102         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9103         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9104       fi
9105       ;;
9106
9107     solaris*)
9108       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9109         ld_shlibs=no
9110         cat <<_LT_EOF 1>&2
9111
9112 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9113 *** create shared libraries on Solaris systems.  Therefore, libtool
9114 *** is disabling shared libraries support.  We urge you to upgrade GNU
9115 *** binutils to release 2.9.1 or newer.  Another option is to modify
9116 *** your PATH or compiler configuration so that the native linker is
9117 *** used, and then restart.
9118
9119 _LT_EOF
9120       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9121         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9122         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9123       else
9124         ld_shlibs=no
9125       fi
9126       ;;
9127
9128     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9129       case `$LD -v 2>&1` in
9130         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9131         ld_shlibs=no
9132         cat <<_LT_EOF 1>&2
9133
9134 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9135 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9136 *** is disabling shared libraries support.  We urge you to upgrade GNU
9137 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9138 *** your PATH or compiler configuration so that the native linker is
9139 *** used, and then restart.
9140
9141 _LT_EOF
9142         ;;
9143         *)
9144           # For security reasons, it is highly recommended that you always
9145           # use absolute paths for naming shared libraries, and exclude the
9146           # DT_RUNPATH tag from executables and libraries.  But doing so
9147           # requires that you compile everything twice, which is a pain.
9148           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9149             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9150             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9152           else
9153             ld_shlibs=no
9154           fi
9155         ;;
9156       esac
9157       ;;
9158
9159     sunos4*)
9160       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9161       wlarc=
9162       hardcode_direct=yes
9163       hardcode_shlibpath_var=no
9164       ;;
9165
9166     *)
9167       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9168         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9169         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9170       else
9171         ld_shlibs=no
9172       fi
9173       ;;
9174     esac
9175
9176     if test "$ld_shlibs" = no; then
9177       runpath_var=
9178       hardcode_libdir_flag_spec=
9179       export_dynamic_flag_spec=
9180       whole_archive_flag_spec=
9181     fi
9182   else
9183     # PORTME fill in a description of your system's linker (not GNU ld)
9184     case $host_os in
9185     aix3*)
9186       allow_undefined_flag=unsupported
9187       always_export_symbols=yes
9188       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'
9189       # Note: this linker hardcodes the directories in LIBPATH if there
9190       # are no directories specified by -L.
9191       hardcode_minus_L=yes
9192       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9193         # Neither direct hardcoding nor static linking is supported with a
9194         # broken collect2.
9195         hardcode_direct=unsupported
9196       fi
9197       ;;
9198
9199     aix[4-9]*)
9200       if test "$host_cpu" = ia64; then
9201         # On IA64, the linker does run time linking by default, so we don't
9202         # have to do anything special.
9203         aix_use_runtimelinking=no
9204         exp_sym_flag='-Bexport'
9205         no_entry_flag=""
9206       else
9207         # If we're using GNU nm, then we don't want the "-C" option.
9208         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9209         # Also, AIX nm treats weak defined symbols like other global
9210         # defined symbols, whereas GNU nm marks them as "W".
9211         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9212           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9213         else
9214           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9215         fi
9216         aix_use_runtimelinking=no
9217
9218         # Test if we are trying to use run time linking or normal
9219         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9220         # need to do runtime linking.
9221         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9222           for ld_flag in $LDFLAGS; do
9223           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9224             aix_use_runtimelinking=yes
9225             break
9226           fi
9227           done
9228           ;;
9229         esac
9230
9231         exp_sym_flag='-bexport'
9232         no_entry_flag='-bnoentry'
9233       fi
9234
9235       # When large executables or shared objects are built, AIX ld can
9236       # have problems creating the table of contents.  If linking a library
9237       # or program results in "error TOC overflow" add -mminimal-toc to
9238       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9239       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9240
9241       archive_cmds=''
9242       hardcode_direct=yes
9243       hardcode_direct_absolute=yes
9244       hardcode_libdir_separator=':'
9245       link_all_deplibs=yes
9246       file_list_spec='${wl}-f,'
9247
9248       if test "$GCC" = yes; then
9249         case $host_os in aix4.[012]|aix4.[012].*)
9250         # We only want to do this on AIX 4.2 and lower, the check
9251         # below for broken collect2 doesn't work under 4.3+
9252           collect2name=`${CC} -print-prog-name=collect2`
9253           if test -f "$collect2name" &&
9254            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9255           then
9256           # We have reworked collect2
9257           :
9258           else
9259           # We have old collect2
9260           hardcode_direct=unsupported
9261           # It fails to find uninstalled libraries when the uninstalled
9262           # path is not listed in the libpath.  Setting hardcode_minus_L
9263           # to unsupported forces relinking
9264           hardcode_minus_L=yes
9265           hardcode_libdir_flag_spec='-L$libdir'
9266           hardcode_libdir_separator=
9267           fi
9268           ;;
9269         esac
9270         shared_flag='-shared'
9271         if test "$aix_use_runtimelinking" = yes; then
9272           shared_flag="$shared_flag "'${wl}-G'
9273         fi
9274         link_all_deplibs=no
9275       else
9276         # not using gcc
9277         if test "$host_cpu" = ia64; then
9278         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9279         # chokes on -Wl,-G. The following line is correct:
9280           shared_flag='-G'
9281         else
9282           if test "$aix_use_runtimelinking" = yes; then
9283             shared_flag='${wl}-G'
9284           else
9285             shared_flag='${wl}-bM:SRE'
9286           fi
9287         fi
9288       fi
9289
9290       export_dynamic_flag_spec='${wl}-bexpall'
9291       # It seems that -bexpall does not export symbols beginning with
9292       # underscore (_), so it is better to generate a list of symbols to export.
9293       always_export_symbols=yes
9294       if test "$aix_use_runtimelinking" = yes; then
9295         # Warning - without using the other runtime loading flags (-brtl),
9296         # -berok will link without error, but may produce a broken library.
9297         allow_undefined_flag='-berok'
9298         # Determine the default libpath from the value encoded in an
9299         # empty executable.
9300         if test "${lt_cv_aix_libpath+set}" = set; then
9301   aix_libpath=$lt_cv_aix_libpath
9302 else
9303   if ${lt_cv_aix_libpath_+:} false; then :
9304   $as_echo_n "(cached) " >&6
9305 else
9306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9307 /* end confdefs.h.  */
9308
9309 int
9310 main ()
9311 {
9312
9313   ;
9314   return 0;
9315 }
9316 _ACEOF
9317 if ac_fn_c_try_link "$LINENO"; then :
9318
9319   lt_aix_libpath_sed='
9320       /Import File Strings/,/^$/ {
9321           /^0/ {
9322               s/^0  *\([^ ]*\) *$/\1/
9323               p
9324           }
9325       }'
9326   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9327   # Check for a 64-bit object if we didn't find anything.
9328   if test -z "$lt_cv_aix_libpath_"; then
9329     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9330   fi
9331 fi
9332 rm -f core conftest.err conftest.$ac_objext \
9333     conftest$ac_exeext conftest.$ac_ext
9334   if test -z "$lt_cv_aix_libpath_"; then
9335     lt_cv_aix_libpath_="/usr/lib:/lib"
9336   fi
9337
9338 fi
9339
9340   aix_libpath=$lt_cv_aix_libpath_
9341 fi
9342
9343         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9344         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9345       else
9346         if test "$host_cpu" = ia64; then
9347           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9348           allow_undefined_flag="-z nodefs"
9349           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"
9350         else
9351          # Determine the default libpath from the value encoded in an
9352          # empty executable.
9353          if test "${lt_cv_aix_libpath+set}" = set; then
9354   aix_libpath=$lt_cv_aix_libpath
9355 else
9356   if ${lt_cv_aix_libpath_+:} false; then :
9357   $as_echo_n "(cached) " >&6
9358 else
9359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9360 /* end confdefs.h.  */
9361
9362 int
9363 main ()
9364 {
9365
9366   ;
9367   return 0;
9368 }
9369 _ACEOF
9370 if ac_fn_c_try_link "$LINENO"; then :
9371
9372   lt_aix_libpath_sed='
9373       /Import File Strings/,/^$/ {
9374           /^0/ {
9375               s/^0  *\([^ ]*\) *$/\1/
9376               p
9377           }
9378       }'
9379   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9380   # Check for a 64-bit object if we didn't find anything.
9381   if test -z "$lt_cv_aix_libpath_"; then
9382     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9383   fi
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext \
9386     conftest$ac_exeext conftest.$ac_ext
9387   if test -z "$lt_cv_aix_libpath_"; then
9388     lt_cv_aix_libpath_="/usr/lib:/lib"
9389   fi
9390
9391 fi
9392
9393   aix_libpath=$lt_cv_aix_libpath_
9394 fi
9395
9396          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9397           # Warning - without using the other run time loading flags,
9398           # -berok will link without error, but may produce a broken library.
9399           no_undefined_flag=' ${wl}-bernotok'
9400           allow_undefined_flag=' ${wl}-berok'
9401           if test "$with_gnu_ld" = yes; then
9402             # We only use this code for GNU lds that support --whole-archive.
9403             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9404           else
9405             # Exported symbols can be pulled into shared objects from archives
9406             whole_archive_flag_spec='$convenience'
9407           fi
9408           archive_cmds_need_lc=yes
9409           # This is similar to how AIX traditionally builds its shared libraries.
9410           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9411         fi
9412       fi
9413       ;;
9414
9415     amigaos*)
9416       case $host_cpu in
9417       powerpc)
9418             # see comment about AmigaOS4 .so support
9419             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420             archive_expsym_cmds=''
9421         ;;
9422       m68k)
9423             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)'
9424             hardcode_libdir_flag_spec='-L$libdir'
9425             hardcode_minus_L=yes
9426         ;;
9427       esac
9428       ;;
9429
9430     bsdi[45]*)
9431       export_dynamic_flag_spec=-rdynamic
9432       ;;
9433
9434     cygwin* | mingw* | pw32* | cegcc*)
9435       # When not using gcc, we currently assume that we are using
9436       # Microsoft Visual C++.
9437       # hardcode_libdir_flag_spec is actually meaningless, as there is
9438       # no search path for DLLs.
9439       case $cc_basename in
9440       cl*)
9441         # Native MSVC
9442         hardcode_libdir_flag_spec=' '
9443         allow_undefined_flag=unsupported
9444         always_export_symbols=yes
9445         file_list_spec='@'
9446         # Tell ltmain to make .lib files, not .a files.
9447         libext=lib
9448         # Tell ltmain to make .dll files, not .so files.
9449         shrext_cmds=".dll"
9450         # FIXME: Setting linknames here is a bad hack.
9451         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9452         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9453             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9454           else
9455             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9456           fi~
9457           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9458           linknames='
9459         # The linker will not automatically build a static lib if we build a DLL.
9460         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9461         enable_shared_with_static_runtimes=yes
9462         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9463         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9464         # Don't use ranlib
9465         old_postinstall_cmds='chmod 644 $oldlib'
9466         postlink_cmds='lt_outputfile="@OUTPUT@"~
9467           lt_tool_outputfile="@TOOL_OUTPUT@"~
9468           case $lt_outputfile in
9469             *.exe|*.EXE) ;;
9470             *)
9471               lt_outputfile="$lt_outputfile.exe"
9472               lt_tool_outputfile="$lt_tool_outputfile.exe"
9473               ;;
9474           esac~
9475           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9476             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9477             $RM "$lt_outputfile.manifest";
9478           fi'
9479         ;;
9480       *)
9481         # Assume MSVC wrapper
9482         hardcode_libdir_flag_spec=' '
9483         allow_undefined_flag=unsupported
9484         # Tell ltmain to make .lib files, not .a files.
9485         libext=lib
9486         # Tell ltmain to make .dll files, not .so files.
9487         shrext_cmds=".dll"
9488         # FIXME: Setting linknames here is a bad hack.
9489         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9490         # The linker will automatically build a .lib file if we build a DLL.
9491         old_archive_from_new_cmds='true'
9492         # FIXME: Should let the user specify the lib program.
9493         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9494         enable_shared_with_static_runtimes=yes
9495         ;;
9496       esac
9497       ;;
9498
9499     darwin* | rhapsody*)
9500
9501
9502   archive_cmds_need_lc=no
9503   hardcode_direct=no
9504   hardcode_automatic=yes
9505   hardcode_shlibpath_var=unsupported
9506   if test "$lt_cv_ld_force_load" = "yes"; then
9507     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\"`'
9508
9509   else
9510     whole_archive_flag_spec=''
9511   fi
9512   link_all_deplibs=yes
9513   allow_undefined_flag="$_lt_dar_allow_undefined"
9514   case $cc_basename in
9515      ifort*) _lt_dar_can_shared=yes ;;
9516      *) _lt_dar_can_shared=$GCC ;;
9517   esac
9518   if test "$_lt_dar_can_shared" = "yes"; then
9519     output_verbose_link_cmd=func_echo_all
9520     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9521     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9522     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}"
9523     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}"
9524
9525   else
9526   ld_shlibs=no
9527   fi
9528
9529       ;;
9530
9531     dgux*)
9532       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9533       hardcode_libdir_flag_spec='-L$libdir'
9534       hardcode_shlibpath_var=no
9535       ;;
9536
9537     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9538     # support.  Future versions do this automatically, but an explicit c++rt0.o
9539     # does not break anything, and helps significantly (at the cost of a little
9540     # extra space).
9541     freebsd2.2*)
9542       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9543       hardcode_libdir_flag_spec='-R$libdir'
9544       hardcode_direct=yes
9545       hardcode_shlibpath_var=no
9546       ;;
9547
9548     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9549     freebsd2.*)
9550       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9551       hardcode_direct=yes
9552       hardcode_minus_L=yes
9553       hardcode_shlibpath_var=no
9554       ;;
9555
9556     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9557     freebsd* | dragonfly*)
9558       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9559       hardcode_libdir_flag_spec='-R$libdir'
9560       hardcode_direct=yes
9561       hardcode_shlibpath_var=no
9562       ;;
9563
9564     hpux9*)
9565       if test "$GCC" = yes; then
9566         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9567       else
9568         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9569       fi
9570       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9571       hardcode_libdir_separator=:
9572       hardcode_direct=yes
9573
9574       # hardcode_minus_L: Not really in the search PATH,
9575       # but as the default location of the library.
9576       hardcode_minus_L=yes
9577       export_dynamic_flag_spec='${wl}-E'
9578       ;;
9579
9580     hpux10*)
9581       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9582         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9583       else
9584         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9585       fi
9586       if test "$with_gnu_ld" = no; then
9587         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9588         hardcode_libdir_separator=:
9589         hardcode_direct=yes
9590         hardcode_direct_absolute=yes
9591         export_dynamic_flag_spec='${wl}-E'
9592         # hardcode_minus_L: Not really in the search PATH,
9593         # but as the default location of the library.
9594         hardcode_minus_L=yes
9595       fi
9596       ;;
9597
9598     hpux11*)
9599       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9600         case $host_cpu in
9601         hppa*64*)
9602           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9603           ;;
9604         ia64*)
9605           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9606           ;;
9607         *)
9608           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9609           ;;
9610         esac
9611       else
9612         case $host_cpu in
9613         hppa*64*)
9614           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9615           ;;
9616         ia64*)
9617           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9618           ;;
9619         *)
9620
9621           # Older versions of the 11.00 compiler do not understand -b yet
9622           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9623           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9624 $as_echo_n "checking if $CC understands -b... " >&6; }
9625 if ${lt_cv_prog_compiler__b+:} false; then :
9626   $as_echo_n "(cached) " >&6
9627 else
9628   lt_cv_prog_compiler__b=no
9629    save_LDFLAGS="$LDFLAGS"
9630    LDFLAGS="$LDFLAGS -b"
9631    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9632    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9633      # The linker can only warn and ignore the option if not recognized
9634      # So say no if there are warnings
9635      if test -s conftest.err; then
9636        # Append any errors to the config.log.
9637        cat conftest.err 1>&5
9638        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9639        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9640        if diff conftest.exp conftest.er2 >/dev/null; then
9641          lt_cv_prog_compiler__b=yes
9642        fi
9643      else
9644        lt_cv_prog_compiler__b=yes
9645      fi
9646    fi
9647    $RM -r conftest*
9648    LDFLAGS="$save_LDFLAGS"
9649
9650 fi
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9652 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9653
9654 if test x"$lt_cv_prog_compiler__b" = xyes; then
9655     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9656 else
9657     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9658 fi
9659
9660           ;;
9661         esac
9662       fi
9663       if test "$with_gnu_ld" = no; then
9664         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9665         hardcode_libdir_separator=:
9666
9667         case $host_cpu in
9668         hppa*64*|ia64*)
9669           hardcode_direct=no
9670           hardcode_shlibpath_var=no
9671           ;;
9672         *)
9673           hardcode_direct=yes
9674           hardcode_direct_absolute=yes
9675           export_dynamic_flag_spec='${wl}-E'
9676
9677           # hardcode_minus_L: Not really in the search PATH,
9678           # but as the default location of the library.
9679           hardcode_minus_L=yes
9680           ;;
9681         esac
9682       fi
9683       ;;
9684
9685     irix5* | irix6* | nonstopux*)
9686       if test "$GCC" = yes; then
9687         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'
9688         # Try to use the -exported_symbol ld option, if it does not
9689         # work, assume that -exports_file does not work either and
9690         # implicitly export all symbols.
9691         # This should be the same for all languages, so no per-tag cache variable.
9692         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9693 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9694 if ${lt_cv_irix_exported_symbol+:} false; then :
9695   $as_echo_n "(cached) " >&6
9696 else
9697   save_LDFLAGS="$LDFLAGS"
9698            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9699            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700 /* end confdefs.h.  */
9701 int foo (void) { return 0; }
9702 _ACEOF
9703 if ac_fn_c_try_link "$LINENO"; then :
9704   lt_cv_irix_exported_symbol=yes
9705 else
9706   lt_cv_irix_exported_symbol=no
9707 fi
9708 rm -f core conftest.err conftest.$ac_objext \
9709     conftest$ac_exeext conftest.$ac_ext
9710            LDFLAGS="$save_LDFLAGS"
9711 fi
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9713 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9714         if test "$lt_cv_irix_exported_symbol" = yes; then
9715           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'
9716         fi
9717       else
9718         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'
9719         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'
9720       fi
9721       archive_cmds_need_lc='no'
9722       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9723       hardcode_libdir_separator=:
9724       inherit_rpath=yes
9725       link_all_deplibs=yes
9726       ;;
9727
9728     netbsd* | netbsdelf*-gnu)
9729       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9730         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9731       else
9732         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9733       fi
9734       hardcode_libdir_flag_spec='-R$libdir'
9735       hardcode_direct=yes
9736       hardcode_shlibpath_var=no
9737       ;;
9738
9739     newsos6)
9740       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741       hardcode_direct=yes
9742       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9743       hardcode_libdir_separator=:
9744       hardcode_shlibpath_var=no
9745       ;;
9746
9747     *nto* | *qnx*)
9748       ;;
9749
9750     openbsd*)
9751       if test -f /usr/libexec/ld.so; then
9752         hardcode_direct=yes
9753         hardcode_shlibpath_var=no
9754         hardcode_direct_absolute=yes
9755         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9756           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9757           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9758           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9759           export_dynamic_flag_spec='${wl}-E'
9760         else
9761           case $host_os in
9762            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9763              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9764              hardcode_libdir_flag_spec='-R$libdir'
9765              ;;
9766            *)
9767              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9768              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9769              ;;
9770           esac
9771         fi
9772       else
9773         ld_shlibs=no
9774       fi
9775       ;;
9776
9777     os2*)
9778       hardcode_libdir_flag_spec='-L$libdir'
9779       hardcode_minus_L=yes
9780       allow_undefined_flag=unsupported
9781       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9782       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9783       ;;
9784
9785     osf3*)
9786       if test "$GCC" = yes; then
9787         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9788         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'
9789       else
9790         allow_undefined_flag=' -expect_unresolved \*'
9791         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'
9792       fi
9793       archive_cmds_need_lc='no'
9794       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9795       hardcode_libdir_separator=:
9796       ;;
9797
9798     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9799       if test "$GCC" = yes; then
9800         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9801         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'
9802         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9803       else
9804         allow_undefined_flag=' -expect_unresolved \*'
9805         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'
9806         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~
9807         $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'
9808
9809         # Both c and cxx compiler support -rpath directly
9810         hardcode_libdir_flag_spec='-rpath $libdir'
9811       fi
9812       archive_cmds_need_lc='no'
9813       hardcode_libdir_separator=:
9814       ;;
9815
9816     solaris*)
9817       no_undefined_flag=' -z defs'
9818       if test "$GCC" = yes; then
9819         wlarc='${wl}'
9820         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9821         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9822           $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'
9823       else
9824         case `$CC -V 2>&1` in
9825         *"Compilers 5.0"*)
9826           wlarc=''
9827           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9828           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9829           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9830           ;;
9831         *)
9832           wlarc='${wl}'
9833           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9834           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9835           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9836           ;;
9837         esac
9838       fi
9839       hardcode_libdir_flag_spec='-R$libdir'
9840       hardcode_shlibpath_var=no
9841       case $host_os in
9842       solaris2.[0-5] | solaris2.[0-5].*) ;;
9843       *)
9844         # The compiler driver will combine and reorder linker options,
9845         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9846         # but is careful enough not to reorder.
9847         # Supported since Solaris 2.6 (maybe 2.5.1?)
9848         if test "$GCC" = yes; then
9849           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9850         else
9851           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9852         fi
9853         ;;
9854       esac
9855       link_all_deplibs=yes
9856       ;;
9857
9858     sunos4*)
9859       if test "x$host_vendor" = xsequent; then
9860         # Use $CC to link under sequent, because it throws in some extra .o
9861         # files that make .init and .fini sections work.
9862         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9863       else
9864         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9865       fi
9866       hardcode_libdir_flag_spec='-L$libdir'
9867       hardcode_direct=yes
9868       hardcode_minus_L=yes
9869       hardcode_shlibpath_var=no
9870       ;;
9871
9872     sysv4)
9873       case $host_vendor in
9874         sni)
9875           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9876           hardcode_direct=yes # is this really true???
9877         ;;
9878         siemens)
9879           ## LD is ld it makes a PLAMLIB
9880           ## CC just makes a GrossModule.
9881           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9882           reload_cmds='$CC -r -o $output$reload_objs'
9883           hardcode_direct=no
9884         ;;
9885         motorola)
9886           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9888         ;;
9889       esac
9890       runpath_var='LD_RUN_PATH'
9891       hardcode_shlibpath_var=no
9892       ;;
9893
9894     sysv4.3*)
9895       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9896       hardcode_shlibpath_var=no
9897       export_dynamic_flag_spec='-Bexport'
9898       ;;
9899
9900     sysv4*MP*)
9901       if test -d /usr/nec; then
9902         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903         hardcode_shlibpath_var=no
9904         runpath_var=LD_RUN_PATH
9905         hardcode_runpath_var=yes
9906         ld_shlibs=yes
9907       fi
9908       ;;
9909
9910     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9911       no_undefined_flag='${wl}-z,text'
9912       archive_cmds_need_lc=no
9913       hardcode_shlibpath_var=no
9914       runpath_var='LD_RUN_PATH'
9915
9916       if test "$GCC" = yes; then
9917         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919       else
9920         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9922       fi
9923       ;;
9924
9925     sysv5* | sco3.2v5* | sco5v6*)
9926       # Note: We can NOT use -z defs as we might desire, because we do not
9927       # link with -lc, and that would cause any symbols used from libc to
9928       # always be unresolved, which means just about no library would
9929       # ever link correctly.  If we're not using GNU ld we use -z text
9930       # though, which does catch some bad symbols but isn't as heavy-handed
9931       # as -z defs.
9932       no_undefined_flag='${wl}-z,text'
9933       allow_undefined_flag='${wl}-z,nodefs'
9934       archive_cmds_need_lc=no
9935       hardcode_shlibpath_var=no
9936       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9937       hardcode_libdir_separator=':'
9938       link_all_deplibs=yes
9939       export_dynamic_flag_spec='${wl}-Bexport'
9940       runpath_var='LD_RUN_PATH'
9941
9942       if test "$GCC" = yes; then
9943         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9945       else
9946         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948       fi
9949       ;;
9950
9951     uts4*)
9952       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9953       hardcode_libdir_flag_spec='-L$libdir'
9954       hardcode_shlibpath_var=no
9955       ;;
9956
9957     *)
9958       ld_shlibs=no
9959       ;;
9960     esac
9961
9962     if test x$host_vendor = xsni; then
9963       case $host in
9964       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9965         export_dynamic_flag_spec='${wl}-Blargedynsym'
9966         ;;
9967       esac
9968     fi
9969   fi
9970
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9972 $as_echo "$ld_shlibs" >&6; }
9973 test "$ld_shlibs" = no && can_build_shared=no
9974
9975 with_gnu_ld=$with_gnu_ld
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991 #
9992 # Do we need to explicitly link libc?
9993 #
9994 case "x$archive_cmds_need_lc" in
9995 x|xyes)
9996   # Assume -lc should be added
9997   archive_cmds_need_lc=yes
9998
9999   if test "$enable_shared" = yes && test "$GCC" = yes; then
10000     case $archive_cmds in
10001     *'~'*)
10002       # FIXME: we may have to deal with multi-command sequences.
10003       ;;
10004     '$CC '*)
10005       # Test whether the compiler implicitly links with -lc since on some
10006       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10007       # to ld, don't add -lc before -lgcc.
10008       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10009 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10010 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10011   $as_echo_n "(cached) " >&6
10012 else
10013   $RM conftest*
10014         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10015
10016         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10017   (eval $ac_compile) 2>&5
10018   ac_status=$?
10019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020   test $ac_status = 0; } 2>conftest.err; then
10021           soname=conftest
10022           lib=conftest
10023           libobjs=conftest.$ac_objext
10024           deplibs=
10025           wl=$lt_prog_compiler_wl
10026           pic_flag=$lt_prog_compiler_pic
10027           compiler_flags=-v
10028           linker_flags=-v
10029           verstring=
10030           output_objdir=.
10031           libname=conftest
10032           lt_save_allow_undefined_flag=$allow_undefined_flag
10033           allow_undefined_flag=
10034           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10035   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10036   ac_status=$?
10037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038   test $ac_status = 0; }
10039           then
10040             lt_cv_archive_cmds_need_lc=no
10041           else
10042             lt_cv_archive_cmds_need_lc=yes
10043           fi
10044           allow_undefined_flag=$lt_save_allow_undefined_flag
10045         else
10046           cat conftest.err 1>&5
10047         fi
10048         $RM conftest*
10049
10050 fi
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10052 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10053       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10054       ;;
10055     esac
10056   fi
10057   ;;
10058 esac
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10212 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10213
10214 if test "$GCC" = yes; then
10215   case $host_os in
10216     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10217     *) lt_awk_arg="/^libraries:/" ;;
10218   esac
10219   case $host_os in
10220     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10221     *) lt_sed_strip_eq="s,=/,/,g" ;;
10222   esac
10223   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10224   case $lt_search_path_spec in
10225   *\;*)
10226     # if the path contains ";" then we assume it to be the separator
10227     # otherwise default to the standard path separator (i.e. ":") - it is
10228     # assumed that no part of a normal pathname contains ";" but that should
10229     # okay in the real world where ";" in dirpaths is itself problematic.
10230     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10231     ;;
10232   *)
10233     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10234     ;;
10235   esac
10236   # Ok, now we have the path, separated by spaces, we can step through it
10237   # and add multilib dir if necessary.
10238   lt_tmp_lt_search_path_spec=
10239   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10240   for lt_sys_path in $lt_search_path_spec; do
10241     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10242       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10243     else
10244       test -d "$lt_sys_path" && \
10245         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10246     fi
10247   done
10248   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10249 BEGIN {RS=" "; FS="/|\n";} {
10250   lt_foo="";
10251   lt_count=0;
10252   for (lt_i = NF; lt_i > 0; lt_i--) {
10253     if ($lt_i != "" && $lt_i != ".") {
10254       if ($lt_i == "..") {
10255         lt_count++;
10256       } else {
10257         if (lt_count == 0) {
10258           lt_foo="/" $lt_i lt_foo;
10259         } else {
10260           lt_count--;
10261         }
10262       }
10263     }
10264   }
10265   if (lt_foo != "") { lt_freq[lt_foo]++; }
10266   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10267 }'`
10268   # AWK program above erroneously prepends '/' to C:/dos/paths
10269   # for these hosts.
10270   case $host_os in
10271     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10272       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10273   esac
10274   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10275 else
10276   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10277 fi
10278 library_names_spec=
10279 libname_spec='lib$name'
10280 soname_spec=
10281 shrext_cmds=".so"
10282 postinstall_cmds=
10283 postuninstall_cmds=
10284 finish_cmds=
10285 finish_eval=
10286 shlibpath_var=
10287 shlibpath_overrides_runpath=unknown
10288 version_type=none
10289 dynamic_linker="$host_os ld.so"
10290 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10291 need_lib_prefix=unknown
10292 hardcode_into_libs=no
10293
10294 # when you set need_version to no, make sure it does not cause -set_version
10295 # flags to be left without arguments
10296 need_version=unknown
10297
10298 case $host_os in
10299 aix3*)
10300   version_type=linux # correct to gnu/linux during the next big refactor
10301   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10302   shlibpath_var=LIBPATH
10303
10304   # AIX 3 has no versioning support, so we append a major version to the name.
10305   soname_spec='${libname}${release}${shared_ext}$major'
10306   ;;
10307
10308 aix[4-9]*)
10309   version_type=linux # correct to gnu/linux during the next big refactor
10310   need_lib_prefix=no
10311   need_version=no
10312   hardcode_into_libs=yes
10313   if test "$host_cpu" = ia64; then
10314     # AIX 5 supports IA64
10315     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10316     shlibpath_var=LD_LIBRARY_PATH
10317   else
10318     # With GCC up to 2.95.x, collect2 would create an import file
10319     # for dependence libraries.  The import file would start with
10320     # the line `#! .'.  This would cause the generated library to
10321     # depend on `.', always an invalid library.  This was fixed in
10322     # development snapshots of GCC prior to 3.0.
10323     case $host_os in
10324       aix4 | aix4.[01] | aix4.[01].*)
10325       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10326            echo ' yes '
10327            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10328         :
10329       else
10330         can_build_shared=no
10331       fi
10332       ;;
10333     esac
10334     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10335     # soname into executable. Probably we can add versioning support to
10336     # collect2, so additional links can be useful in future.
10337     if test "$aix_use_runtimelinking" = yes; then
10338       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10339       # instead of lib<name>.a to let people know that these are not
10340       # typical AIX shared libraries.
10341       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342     else
10343       # We preserve .a as extension for shared libraries through AIX4.2
10344       # and later when we are not doing run time linking.
10345       library_names_spec='${libname}${release}.a $libname.a'
10346       soname_spec='${libname}${release}${shared_ext}$major'
10347     fi
10348     shlibpath_var=LIBPATH
10349   fi
10350   ;;
10351
10352 amigaos*)
10353   case $host_cpu in
10354   powerpc)
10355     # Since July 2007 AmigaOS4 officially supports .so libraries.
10356     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10357     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358     ;;
10359   m68k)
10360     library_names_spec='$libname.ixlibrary $libname.a'
10361     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10362     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10363     ;;
10364   esac
10365   ;;
10366
10367 beos*)
10368   library_names_spec='${libname}${shared_ext}'
10369   dynamic_linker="$host_os ld.so"
10370   shlibpath_var=LIBRARY_PATH
10371   ;;
10372
10373 bsdi[45]*)
10374   version_type=linux # correct to gnu/linux during the next big refactor
10375   need_version=no
10376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377   soname_spec='${libname}${release}${shared_ext}$major'
10378   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10379   shlibpath_var=LD_LIBRARY_PATH
10380   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10381   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10382   # the default ld.so.conf also contains /usr/contrib/lib and
10383   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10384   # libtool to hard-code these into programs
10385   ;;
10386
10387 cygwin* | mingw* | pw32* | cegcc*)
10388   version_type=windows
10389   shrext_cmds=".dll"
10390   need_version=no
10391   need_lib_prefix=no
10392
10393   case $GCC,$cc_basename in
10394   yes,*)
10395     # gcc
10396     library_names_spec='$libname.dll.a'
10397     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10398     postinstall_cmds='base_file=`basename \${file}`~
10399       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10400       dldir=$destdir/`dirname \$dlpath`~
10401       test -d \$dldir || mkdir -p \$dldir~
10402       $install_prog $dir/$dlname \$dldir/$dlname~
10403       chmod a+x \$dldir/$dlname~
10404       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10405         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10406       fi'
10407     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10408       dlpath=$dir/\$dldll~
10409        $RM \$dlpath'
10410     shlibpath_overrides_runpath=yes
10411
10412     case $host_os in
10413     cygwin*)
10414       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10415       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10416
10417       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10418       ;;
10419     mingw* | cegcc*)
10420       # MinGW DLLs use traditional 'lib' prefix
10421       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10422       ;;
10423     pw32*)
10424       # pw32 DLLs use 'pw' prefix rather than 'lib'
10425       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10426       ;;
10427     esac
10428     dynamic_linker='Win32 ld.exe'
10429     ;;
10430
10431   *,cl*)
10432     # Native MSVC
10433     libname_spec='$name'
10434     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10435     library_names_spec='${libname}.dll.lib'
10436
10437     case $build_os in
10438     mingw*)
10439       sys_lib_search_path_spec=
10440       lt_save_ifs=$IFS
10441       IFS=';'
10442       for lt_path in $LIB
10443       do
10444         IFS=$lt_save_ifs
10445         # Let DOS variable expansion print the short 8.3 style file name.
10446         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10447         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10448       done
10449       IFS=$lt_save_ifs
10450       # Convert to MSYS style.
10451       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10452       ;;
10453     cygwin*)
10454       # Convert to unix form, then to dos form, then back to unix form
10455       # but this time dos style (no spaces!) so that the unix form looks
10456       # like /cygdrive/c/PROGRA~1:/cygdr...
10457       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10458       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10459       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10460       ;;
10461     *)
10462       sys_lib_search_path_spec="$LIB"
10463       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10464         # It is most probably a Windows format PATH.
10465         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10466       else
10467         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10468       fi
10469       # FIXME: find the short name or the path components, as spaces are
10470       # common. (e.g. "Program Files" -> "PROGRA~1")
10471       ;;
10472     esac
10473
10474     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10475     postinstall_cmds='base_file=`basename \${file}`~
10476       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10477       dldir=$destdir/`dirname \$dlpath`~
10478       test -d \$dldir || mkdir -p \$dldir~
10479       $install_prog $dir/$dlname \$dldir/$dlname'
10480     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10481       dlpath=$dir/\$dldll~
10482        $RM \$dlpath'
10483     shlibpath_overrides_runpath=yes
10484     dynamic_linker='Win32 link.exe'
10485     ;;
10486
10487   *)
10488     # Assume MSVC wrapper
10489     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10490     dynamic_linker='Win32 ld.exe'
10491     ;;
10492   esac
10493   # FIXME: first we should search . and the directory the executable is in
10494   shlibpath_var=PATH
10495   ;;
10496
10497 darwin* | rhapsody*)
10498   dynamic_linker="$host_os dyld"
10499   version_type=darwin
10500   need_lib_prefix=no
10501   need_version=no
10502   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10503   soname_spec='${libname}${release}${major}$shared_ext'
10504   shlibpath_overrides_runpath=yes
10505   shlibpath_var=DYLD_LIBRARY_PATH
10506   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10507
10508   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10509   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10510   ;;
10511
10512 dgux*)
10513   version_type=linux # correct to gnu/linux during the next big refactor
10514   need_lib_prefix=no
10515   need_version=no
10516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10517   soname_spec='${libname}${release}${shared_ext}$major'
10518   shlibpath_var=LD_LIBRARY_PATH
10519   ;;
10520
10521 freebsd* | dragonfly*)
10522   # DragonFly does not have aout.  When/if they implement a new
10523   # versioning mechanism, adjust this.
10524   if test -x /usr/bin/objformat; then
10525     objformat=`/usr/bin/objformat`
10526   else
10527     case $host_os in
10528     freebsd[23].*) objformat=aout ;;
10529     *) objformat=elf ;;
10530     esac
10531   fi
10532   version_type=freebsd-$objformat
10533   case $version_type in
10534     freebsd-elf*)
10535       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10536       need_version=no
10537       need_lib_prefix=no
10538       ;;
10539     freebsd-*)
10540       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10541       need_version=yes
10542       ;;
10543   esac
10544   shlibpath_var=LD_LIBRARY_PATH
10545   case $host_os in
10546   freebsd2.*)
10547     shlibpath_overrides_runpath=yes
10548     ;;
10549   freebsd3.[01]* | freebsdelf3.[01]*)
10550     shlibpath_overrides_runpath=yes
10551     hardcode_into_libs=yes
10552     ;;
10553   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10554   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10555     shlibpath_overrides_runpath=no
10556     hardcode_into_libs=yes
10557     ;;
10558   *) # from 4.6 on, and DragonFly
10559     shlibpath_overrides_runpath=yes
10560     hardcode_into_libs=yes
10561     ;;
10562   esac
10563   ;;
10564
10565 haiku*)
10566   version_type=linux # correct to gnu/linux during the next big refactor
10567   need_lib_prefix=no
10568   need_version=no
10569   dynamic_linker="$host_os runtime_loader"
10570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10571   soname_spec='${libname}${release}${shared_ext}$major'
10572   shlibpath_var=LIBRARY_PATH
10573   shlibpath_overrides_runpath=yes
10574   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10575   hardcode_into_libs=yes
10576   ;;
10577
10578 hpux9* | hpux10* | hpux11*)
10579   # Give a soname corresponding to the major version so that dld.sl refuses to
10580   # link against other versions.
10581   version_type=sunos
10582   need_lib_prefix=no
10583   need_version=no
10584   case $host_cpu in
10585   ia64*)
10586     shrext_cmds='.so'
10587     hardcode_into_libs=yes
10588     dynamic_linker="$host_os dld.so"
10589     shlibpath_var=LD_LIBRARY_PATH
10590     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10591     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10592     soname_spec='${libname}${release}${shared_ext}$major'
10593     if test "X$HPUX_IA64_MODE" = X32; then
10594       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10595     else
10596       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10597     fi
10598     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10599     ;;
10600   hppa*64*)
10601     shrext_cmds='.sl'
10602     hardcode_into_libs=yes
10603     dynamic_linker="$host_os dld.sl"
10604     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10605     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10606     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10607     soname_spec='${libname}${release}${shared_ext}$major'
10608     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10609     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10610     ;;
10611   *)
10612     shrext_cmds='.sl'
10613     dynamic_linker="$host_os dld.sl"
10614     shlibpath_var=SHLIB_PATH
10615     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10616     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617     soname_spec='${libname}${release}${shared_ext}$major'
10618     ;;
10619   esac
10620   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10621   postinstall_cmds='chmod 555 $lib'
10622   # or fails outright, so override atomically:
10623   install_override_mode=555
10624   ;;
10625
10626 interix[3-9]*)
10627   version_type=linux # correct to gnu/linux during the next big refactor
10628   need_lib_prefix=no
10629   need_version=no
10630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10631   soname_spec='${libname}${release}${shared_ext}$major'
10632   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10633   shlibpath_var=LD_LIBRARY_PATH
10634   shlibpath_overrides_runpath=no
10635   hardcode_into_libs=yes
10636   ;;
10637
10638 irix5* | irix6* | nonstopux*)
10639   case $host_os in
10640     nonstopux*) version_type=nonstopux ;;
10641     *)
10642         if test "$lt_cv_prog_gnu_ld" = yes; then
10643                 version_type=linux # correct to gnu/linux during the next big refactor
10644         else
10645                 version_type=irix
10646         fi ;;
10647   esac
10648   need_lib_prefix=no
10649   need_version=no
10650   soname_spec='${libname}${release}${shared_ext}$major'
10651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10652   case $host_os in
10653   irix5* | nonstopux*)
10654     libsuff= shlibsuff=
10655     ;;
10656   *)
10657     case $LD in # libtool.m4 will add one of these switches to LD
10658     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10659       libsuff= shlibsuff= libmagic=32-bit;;
10660     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10661       libsuff=32 shlibsuff=N32 libmagic=N32;;
10662     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10663       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10664     *) libsuff= shlibsuff= libmagic=never-match;;
10665     esac
10666     ;;
10667   esac
10668   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10669   shlibpath_overrides_runpath=no
10670   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10671   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10672   hardcode_into_libs=yes
10673   ;;
10674
10675 # No shared lib support for Linux oldld, aout, or coff.
10676 linux*oldld* | linux*aout* | linux*coff*)
10677   dynamic_linker=no
10678   ;;
10679
10680 # This must be glibc/ELF.
10681 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10682   version_type=linux # correct to gnu/linux during the next big refactor
10683   need_lib_prefix=no
10684   need_version=no
10685   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10686   soname_spec='${libname}${release}${shared_ext}$major'
10687   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10688   shlibpath_var=LD_LIBRARY_PATH
10689   shlibpath_overrides_runpath=no
10690
10691   # Some binutils ld are patched to set DT_RUNPATH
10692   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10693   $as_echo_n "(cached) " >&6
10694 else
10695   lt_cv_shlibpath_overrides_runpath=no
10696     save_LDFLAGS=$LDFLAGS
10697     save_libdir=$libdir
10698     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10699          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10700     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10701 /* end confdefs.h.  */
10702
10703 int
10704 main ()
10705 {
10706
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 if ac_fn_c_try_link "$LINENO"; then :
10712   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10713   lt_cv_shlibpath_overrides_runpath=yes
10714 fi
10715 fi
10716 rm -f core conftest.err conftest.$ac_objext \
10717     conftest$ac_exeext conftest.$ac_ext
10718     LDFLAGS=$save_LDFLAGS
10719     libdir=$save_libdir
10720
10721 fi
10722
10723   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10724
10725   # This implies no fast_install, which is unacceptable.
10726   # Some rework will be needed to allow for fast_install
10727   # before this can be enabled.
10728   hardcode_into_libs=yes
10729
10730   # Append ld.so.conf contents to the search path
10731   if test -f /etc/ld.so.conf; then
10732     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' ' '`
10733     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10734   fi
10735
10736   # We used to test for /lib/ld.so.1 and disable shared libraries on
10737   # powerpc, because MkLinux only supported shared libraries with the
10738   # GNU dynamic linker.  Since this was broken with cross compilers,
10739   # most powerpc-linux boxes support dynamic linking these days and
10740   # people can always --disable-shared, the test was removed, and we
10741   # assume the GNU/Linux dynamic linker is in use.
10742   dynamic_linker='GNU/Linux ld.so'
10743   ;;
10744
10745 netbsdelf*-gnu)
10746   version_type=linux
10747   need_lib_prefix=no
10748   need_version=no
10749   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10750   soname_spec='${libname}${release}${shared_ext}$major'
10751   shlibpath_var=LD_LIBRARY_PATH
10752   shlibpath_overrides_runpath=no
10753   hardcode_into_libs=yes
10754   dynamic_linker='NetBSD ld.elf_so'
10755   ;;
10756
10757 netbsd*)
10758   version_type=sunos
10759   need_lib_prefix=no
10760   need_version=no
10761   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10763     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10764     dynamic_linker='NetBSD (a.out) ld.so'
10765   else
10766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10767     soname_spec='${libname}${release}${shared_ext}$major'
10768     dynamic_linker='NetBSD ld.elf_so'
10769   fi
10770   shlibpath_var=LD_LIBRARY_PATH
10771   shlibpath_overrides_runpath=yes
10772   hardcode_into_libs=yes
10773   ;;
10774
10775 newsos6)
10776   version_type=linux # correct to gnu/linux during the next big refactor
10777   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10778   shlibpath_var=LD_LIBRARY_PATH
10779   shlibpath_overrides_runpath=yes
10780   ;;
10781
10782 *nto* | *qnx*)
10783   version_type=qnx
10784   need_lib_prefix=no
10785   need_version=no
10786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10787   soname_spec='${libname}${release}${shared_ext}$major'
10788   shlibpath_var=LD_LIBRARY_PATH
10789   shlibpath_overrides_runpath=no
10790   hardcode_into_libs=yes
10791   dynamic_linker='ldqnx.so'
10792   ;;
10793
10794 openbsd*)
10795   version_type=sunos
10796   sys_lib_dlsearch_path_spec="/usr/lib"
10797   need_lib_prefix=no
10798   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10799   case $host_os in
10800     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10801     *)                          need_version=no  ;;
10802   esac
10803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10804   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10805   shlibpath_var=LD_LIBRARY_PATH
10806   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10807     case $host_os in
10808       openbsd2.[89] | openbsd2.[89].*)
10809         shlibpath_overrides_runpath=no
10810         ;;
10811       *)
10812         shlibpath_overrides_runpath=yes
10813         ;;
10814       esac
10815   else
10816     shlibpath_overrides_runpath=yes
10817   fi
10818   ;;
10819
10820 os2*)
10821   libname_spec='$name'
10822   shrext_cmds=".dll"
10823   need_lib_prefix=no
10824   library_names_spec='$libname${shared_ext} $libname.a'
10825   dynamic_linker='OS/2 ld.exe'
10826   shlibpath_var=LIBPATH
10827   ;;
10828
10829 osf3* | osf4* | osf5*)
10830   version_type=osf
10831   need_lib_prefix=no
10832   need_version=no
10833   soname_spec='${libname}${release}${shared_ext}$major'
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10835   shlibpath_var=LD_LIBRARY_PATH
10836   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10837   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10838   ;;
10839
10840 rdos*)
10841   dynamic_linker=no
10842   ;;
10843
10844 solaris*)
10845   version_type=linux # correct to gnu/linux during the next big refactor
10846   need_lib_prefix=no
10847   need_version=no
10848   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849   soname_spec='${libname}${release}${shared_ext}$major'
10850   shlibpath_var=LD_LIBRARY_PATH
10851   shlibpath_overrides_runpath=yes
10852   hardcode_into_libs=yes
10853   # ldd complains unless libraries are executable
10854   postinstall_cmds='chmod +x $lib'
10855   ;;
10856
10857 sunos4*)
10858   version_type=sunos
10859   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10860   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10861   shlibpath_var=LD_LIBRARY_PATH
10862   shlibpath_overrides_runpath=yes
10863   if test "$with_gnu_ld" = yes; then
10864     need_lib_prefix=no
10865   fi
10866   need_version=yes
10867   ;;
10868
10869 sysv4 | sysv4.3*)
10870   version_type=linux # correct to gnu/linux during the next big refactor
10871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872   soname_spec='${libname}${release}${shared_ext}$major'
10873   shlibpath_var=LD_LIBRARY_PATH
10874   case $host_vendor in
10875     sni)
10876       shlibpath_overrides_runpath=no
10877       need_lib_prefix=no
10878       runpath_var=LD_RUN_PATH
10879       ;;
10880     siemens)
10881       need_lib_prefix=no
10882       ;;
10883     motorola)
10884       need_lib_prefix=no
10885       need_version=no
10886       shlibpath_overrides_runpath=no
10887       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10888       ;;
10889   esac
10890   ;;
10891
10892 sysv4*MP*)
10893   if test -d /usr/nec ;then
10894     version_type=linux # correct to gnu/linux during the next big refactor
10895     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10896     soname_spec='$libname${shared_ext}.$major'
10897     shlibpath_var=LD_LIBRARY_PATH
10898   fi
10899   ;;
10900
10901 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10902   version_type=freebsd-elf
10903   need_lib_prefix=no
10904   need_version=no
10905   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10906   soname_spec='${libname}${release}${shared_ext}$major'
10907   shlibpath_var=LD_LIBRARY_PATH
10908   shlibpath_overrides_runpath=yes
10909   hardcode_into_libs=yes
10910   if test "$with_gnu_ld" = yes; then
10911     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10912   else
10913     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10914     case $host_os in
10915       sco3.2v5*)
10916         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10917         ;;
10918     esac
10919   fi
10920   sys_lib_dlsearch_path_spec='/usr/lib'
10921   ;;
10922
10923 tpf*)
10924   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10925   version_type=linux # correct to gnu/linux during the next big refactor
10926   need_lib_prefix=no
10927   need_version=no
10928   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929   shlibpath_var=LD_LIBRARY_PATH
10930   shlibpath_overrides_runpath=no
10931   hardcode_into_libs=yes
10932   ;;
10933
10934 uts4*)
10935   version_type=linux # correct to gnu/linux during the next big refactor
10936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10937   soname_spec='${libname}${release}${shared_ext}$major'
10938   shlibpath_var=LD_LIBRARY_PATH
10939   ;;
10940
10941 *)
10942   dynamic_linker=no
10943   ;;
10944 esac
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10946 $as_echo "$dynamic_linker" >&6; }
10947 test "$dynamic_linker" = no && can_build_shared=no
10948
10949 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10950 if test "$GCC" = yes; then
10951   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10952 fi
10953
10954 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10955   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10956 fi
10957 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10958   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10959 fi
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11053 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11054 hardcode_action=
11055 if test -n "$hardcode_libdir_flag_spec" ||
11056    test -n "$runpath_var" ||
11057    test "X$hardcode_automatic" = "Xyes" ; then
11058
11059   # We can hardcode non-existent directories.
11060   if test "$hardcode_direct" != no &&
11061      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11062      # have to relink, otherwise we might link with an installed library
11063      # when we should be linking with a yet-to-be-installed one
11064      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11065      test "$hardcode_minus_L" != no; then
11066     # Linking always hardcodes the temporary library directory.
11067     hardcode_action=relink
11068   else
11069     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11070     hardcode_action=immediate
11071   fi
11072 else
11073   # We cannot hardcode anything, or else we can only hardcode existing
11074   # directories.
11075   hardcode_action=unsupported
11076 fi
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11078 $as_echo "$hardcode_action" >&6; }
11079
11080 if test "$hardcode_action" = relink ||
11081    test "$inherit_rpath" = yes; then
11082   # Fast installation is not supported
11083   enable_fast_install=no
11084 elif test "$shlibpath_overrides_runpath" = yes ||
11085      test "$enable_shared" = no; then
11086   # Fast installation is not necessary
11087   enable_fast_install=needless
11088 fi
11089
11090
11091
11092
11093
11094
11095   if test "x$enable_dlopen" != xyes; then
11096   enable_dlopen=unknown
11097   enable_dlopen_self=unknown
11098   enable_dlopen_self_static=unknown
11099 else
11100   lt_cv_dlopen=no
11101   lt_cv_dlopen_libs=
11102
11103   case $host_os in
11104   beos*)
11105     lt_cv_dlopen="load_add_on"
11106     lt_cv_dlopen_libs=
11107     lt_cv_dlopen_self=yes
11108     ;;
11109
11110   mingw* | pw32* | cegcc*)
11111     lt_cv_dlopen="LoadLibrary"
11112     lt_cv_dlopen_libs=
11113     ;;
11114
11115   cygwin*)
11116     lt_cv_dlopen="dlopen"
11117     lt_cv_dlopen_libs=
11118     ;;
11119
11120   darwin*)
11121   # if libdl is installed we need to link against it
11122     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11123 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11124 if ${ac_cv_lib_dl_dlopen+:} false; then :
11125   $as_echo_n "(cached) " >&6
11126 else
11127   ac_check_lib_save_LIBS=$LIBS
11128 LIBS="-ldl  $LIBS"
11129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11130 /* end confdefs.h.  */
11131
11132 /* Override any GCC internal prototype to avoid an error.
11133    Use char because int might match the return type of a GCC
11134    builtin and then its argument prototype would still apply.  */
11135 #ifdef __cplusplus
11136 extern "C"
11137 #endif
11138 char dlopen ();
11139 int
11140 main ()
11141 {
11142 return dlopen ();
11143   ;
11144   return 0;
11145 }
11146 _ACEOF
11147 if ac_fn_c_try_link "$LINENO"; then :
11148   ac_cv_lib_dl_dlopen=yes
11149 else
11150   ac_cv_lib_dl_dlopen=no
11151 fi
11152 rm -f core conftest.err conftest.$ac_objext \
11153     conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11155 fi
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11157 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11158 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11159   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11160 else
11161
11162     lt_cv_dlopen="dyld"
11163     lt_cv_dlopen_libs=
11164     lt_cv_dlopen_self=yes
11165
11166 fi
11167
11168     ;;
11169
11170   *)
11171     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11172 if test "x$ac_cv_func_shl_load" = xyes; then :
11173   lt_cv_dlopen="shl_load"
11174 else
11175   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11176 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11177 if ${ac_cv_lib_dld_shl_load+:} false; then :
11178   $as_echo_n "(cached) " >&6
11179 else
11180   ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-ldld  $LIBS"
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h.  */
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186    Use char because int might match the return type of a GCC
11187    builtin and then its argument prototype would still apply.  */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char shl_load ();
11192 int
11193 main ()
11194 {
11195 return shl_load ();
11196   ;
11197   return 0;
11198 }
11199 _ACEOF
11200 if ac_fn_c_try_link "$LINENO"; then :
11201   ac_cv_lib_dld_shl_load=yes
11202 else
11203   ac_cv_lib_dld_shl_load=no
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext \
11206     conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11210 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11211 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11212   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11213 else
11214   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11215 if test "x$ac_cv_func_dlopen" = xyes; then :
11216   lt_cv_dlopen="dlopen"
11217 else
11218   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11219 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11220 if ${ac_cv_lib_dl_dlopen+:} false; then :
11221   $as_echo_n "(cached) " >&6
11222 else
11223   ac_check_lib_save_LIBS=$LIBS
11224 LIBS="-ldl  $LIBS"
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h.  */
11227
11228 /* Override any GCC internal prototype to avoid an error.
11229    Use char because int might match the return type of a GCC
11230    builtin and then its argument prototype would still apply.  */
11231 #ifdef __cplusplus
11232 extern "C"
11233 #endif
11234 char dlopen ();
11235 int
11236 main ()
11237 {
11238 return dlopen ();
11239   ;
11240   return 0;
11241 }
11242 _ACEOF
11243 if ac_fn_c_try_link "$LINENO"; then :
11244   ac_cv_lib_dl_dlopen=yes
11245 else
11246   ac_cv_lib_dl_dlopen=no
11247 fi
11248 rm -f core conftest.err conftest.$ac_objext \
11249     conftest$ac_exeext conftest.$ac_ext
11250 LIBS=$ac_check_lib_save_LIBS
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11253 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11254 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11255   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256 else
11257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11258 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11259 if ${ac_cv_lib_svld_dlopen+:} false; then :
11260   $as_echo_n "(cached) " >&6
11261 else
11262   ac_check_lib_save_LIBS=$LIBS
11263 LIBS="-lsvld  $LIBS"
11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11265 /* end confdefs.h.  */
11266
11267 /* Override any GCC internal prototype to avoid an error.
11268    Use char because int might match the return type of a GCC
11269    builtin and then its argument prototype would still apply.  */
11270 #ifdef __cplusplus
11271 extern "C"
11272 #endif
11273 char dlopen ();
11274 int
11275 main ()
11276 {
11277 return dlopen ();
11278   ;
11279   return 0;
11280 }
11281 _ACEOF
11282 if ac_fn_c_try_link "$LINENO"; then :
11283   ac_cv_lib_svld_dlopen=yes
11284 else
11285   ac_cv_lib_svld_dlopen=no
11286 fi
11287 rm -f core conftest.err conftest.$ac_objext \
11288     conftest$ac_exeext conftest.$ac_ext
11289 LIBS=$ac_check_lib_save_LIBS
11290 fi
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11292 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11293 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11294   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11295 else
11296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11297 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11298 if ${ac_cv_lib_dld_dld_link+:} false; then :
11299   $as_echo_n "(cached) " >&6
11300 else
11301   ac_check_lib_save_LIBS=$LIBS
11302 LIBS="-ldld  $LIBS"
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h.  */
11305
11306 /* Override any GCC internal prototype to avoid an error.
11307    Use char because int might match the return type of a GCC
11308    builtin and then its argument prototype would still apply.  */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dld_link ();
11313 int
11314 main ()
11315 {
11316 return dld_link ();
11317   ;
11318   return 0;
11319 }
11320 _ACEOF
11321 if ac_fn_c_try_link "$LINENO"; then :
11322   ac_cv_lib_dld_dld_link=yes
11323 else
11324   ac_cv_lib_dld_dld_link=no
11325 fi
11326 rm -f core conftest.err conftest.$ac_objext \
11327     conftest$ac_exeext conftest.$ac_ext
11328 LIBS=$ac_check_lib_save_LIBS
11329 fi
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11331 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11332 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11333   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11334 fi
11335
11336
11337 fi
11338
11339
11340 fi
11341
11342
11343 fi
11344
11345
11346 fi
11347
11348
11349 fi
11350
11351     ;;
11352   esac
11353
11354   if test "x$lt_cv_dlopen" != xno; then
11355     enable_dlopen=yes
11356   else
11357     enable_dlopen=no
11358   fi
11359
11360   case $lt_cv_dlopen in
11361   dlopen)
11362     save_CPPFLAGS="$CPPFLAGS"
11363     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11364
11365     save_LDFLAGS="$LDFLAGS"
11366     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11367
11368     save_LIBS="$LIBS"
11369     LIBS="$lt_cv_dlopen_libs $LIBS"
11370
11371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11372 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11373 if ${lt_cv_dlopen_self+:} false; then :
11374   $as_echo_n "(cached) " >&6
11375 else
11376           if test "$cross_compiling" = yes; then :
11377   lt_cv_dlopen_self=cross
11378 else
11379   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11380   lt_status=$lt_dlunknown
11381   cat > conftest.$ac_ext <<_LT_EOF
11382 #line $LINENO "configure"
11383 #include "confdefs.h"
11384
11385 #if HAVE_DLFCN_H
11386 #include <dlfcn.h>
11387 #endif
11388
11389 #include <stdio.h>
11390
11391 #ifdef RTLD_GLOBAL
11392 #  define LT_DLGLOBAL           RTLD_GLOBAL
11393 #else
11394 #  ifdef DL_GLOBAL
11395 #    define LT_DLGLOBAL         DL_GLOBAL
11396 #  else
11397 #    define LT_DLGLOBAL         0
11398 #  endif
11399 #endif
11400
11401 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11402    find out it does not work in some platform. */
11403 #ifndef LT_DLLAZY_OR_NOW
11404 #  ifdef RTLD_LAZY
11405 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11406 #  else
11407 #    ifdef DL_LAZY
11408 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11409 #    else
11410 #      ifdef RTLD_NOW
11411 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11412 #      else
11413 #        ifdef DL_NOW
11414 #          define LT_DLLAZY_OR_NOW      DL_NOW
11415 #        else
11416 #          define LT_DLLAZY_OR_NOW      0
11417 #        endif
11418 #      endif
11419 #    endif
11420 #  endif
11421 #endif
11422
11423 /* When -fvisbility=hidden is used, assume the code has been annotated
11424    correspondingly for the symbols needed.  */
11425 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11426 int fnord () __attribute__((visibility("default")));
11427 #endif
11428
11429 int fnord () { return 42; }
11430 int main ()
11431 {
11432   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11433   int status = $lt_dlunknown;
11434
11435   if (self)
11436     {
11437       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11438       else
11439         {
11440           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11441           else puts (dlerror ());
11442         }
11443       /* dlclose (self); */
11444     }
11445   else
11446     puts (dlerror ());
11447
11448   return status;
11449 }
11450 _LT_EOF
11451   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11452   (eval $ac_link) 2>&5
11453   ac_status=$?
11454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11455   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11456     (./conftest; exit; ) >&5 2>/dev/null
11457     lt_status=$?
11458     case x$lt_status in
11459       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11460       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11461       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11462     esac
11463   else :
11464     # compilation failed
11465     lt_cv_dlopen_self=no
11466   fi
11467 fi
11468 rm -fr conftest*
11469
11470
11471 fi
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11473 $as_echo "$lt_cv_dlopen_self" >&6; }
11474
11475     if test "x$lt_cv_dlopen_self" = xyes; then
11476       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11477       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11478 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11479 if ${lt_cv_dlopen_self_static+:} false; then :
11480   $as_echo_n "(cached) " >&6
11481 else
11482           if test "$cross_compiling" = yes; then :
11483   lt_cv_dlopen_self_static=cross
11484 else
11485   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11486   lt_status=$lt_dlunknown
11487   cat > conftest.$ac_ext <<_LT_EOF
11488 #line $LINENO "configure"
11489 #include "confdefs.h"
11490
11491 #if HAVE_DLFCN_H
11492 #include <dlfcn.h>
11493 #endif
11494
11495 #include <stdio.h>
11496
11497 #ifdef RTLD_GLOBAL
11498 #  define LT_DLGLOBAL           RTLD_GLOBAL
11499 #else
11500 #  ifdef DL_GLOBAL
11501 #    define LT_DLGLOBAL         DL_GLOBAL
11502 #  else
11503 #    define LT_DLGLOBAL         0
11504 #  endif
11505 #endif
11506
11507 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11508    find out it does not work in some platform. */
11509 #ifndef LT_DLLAZY_OR_NOW
11510 #  ifdef RTLD_LAZY
11511 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11512 #  else
11513 #    ifdef DL_LAZY
11514 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11515 #    else
11516 #      ifdef RTLD_NOW
11517 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11518 #      else
11519 #        ifdef DL_NOW
11520 #          define LT_DLLAZY_OR_NOW      DL_NOW
11521 #        else
11522 #          define LT_DLLAZY_OR_NOW      0
11523 #        endif
11524 #      endif
11525 #    endif
11526 #  endif
11527 #endif
11528
11529 /* When -fvisbility=hidden is used, assume the code has been annotated
11530    correspondingly for the symbols needed.  */
11531 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11532 int fnord () __attribute__((visibility("default")));
11533 #endif
11534
11535 int fnord () { return 42; }
11536 int main ()
11537 {
11538   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11539   int status = $lt_dlunknown;
11540
11541   if (self)
11542     {
11543       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11544       else
11545         {
11546           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11547           else puts (dlerror ());
11548         }
11549       /* dlclose (self); */
11550     }
11551   else
11552     puts (dlerror ());
11553
11554   return status;
11555 }
11556 _LT_EOF
11557   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11558   (eval $ac_link) 2>&5
11559   ac_status=$?
11560   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11561   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11562     (./conftest; exit; ) >&5 2>/dev/null
11563     lt_status=$?
11564     case x$lt_status in
11565       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11566       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11567       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11568     esac
11569   else :
11570     # compilation failed
11571     lt_cv_dlopen_self_static=no
11572   fi
11573 fi
11574 rm -fr conftest*
11575
11576
11577 fi
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11579 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11580     fi
11581
11582     CPPFLAGS="$save_CPPFLAGS"
11583     LDFLAGS="$save_LDFLAGS"
11584     LIBS="$save_LIBS"
11585     ;;
11586   esac
11587
11588   case $lt_cv_dlopen_self in
11589   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11590   *) enable_dlopen_self=unknown ;;
11591   esac
11592
11593   case $lt_cv_dlopen_self_static in
11594   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11595   *) enable_dlopen_self_static=unknown ;;
11596   esac
11597 fi
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615 striplib=
11616 old_striplib=
11617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11618 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11619 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11620   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11621   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11623 $as_echo "yes" >&6; }
11624 else
11625 # FIXME - insert some real tests, host_os isn't really good enough
11626   case $host_os in
11627   darwin*)
11628     if test -n "$STRIP" ; then
11629       striplib="$STRIP -x"
11630       old_striplib="$STRIP -S"
11631       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11632 $as_echo "yes" >&6; }
11633     else
11634       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11635 $as_echo "no" >&6; }
11636     fi
11637     ;;
11638   *)
11639     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11640 $as_echo "no" >&6; }
11641     ;;
11642   esac
11643 fi
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656   # Report which library types will actually be built
11657   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11658 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11659   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11660 $as_echo "$can_build_shared" >&6; }
11661
11662   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11663 $as_echo_n "checking whether to build shared libraries... " >&6; }
11664   test "$can_build_shared" = "no" && enable_shared=no
11665
11666   # On AIX, shared libraries and static libraries use the same namespace, and
11667   # are all built from PIC.
11668   case $host_os in
11669   aix3*)
11670     test "$enable_shared" = yes && enable_static=no
11671     if test -n "$RANLIB"; then
11672       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11673       postinstall_cmds='$RANLIB $lib'
11674     fi
11675     ;;
11676
11677   aix[4-9]*)
11678     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11679       test "$enable_shared" = yes && enable_static=no
11680     fi
11681     ;;
11682   esac
11683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11684 $as_echo "$enable_shared" >&6; }
11685
11686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11687 $as_echo_n "checking whether to build static libraries... " >&6; }
11688   # Make sure either enable_shared or enable_static is yes.
11689   test "$enable_shared" = yes || enable_static=yes
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11691 $as_echo "$enable_static" >&6; }
11692
11693
11694
11695
11696 fi
11697 ac_ext=c
11698 ac_cpp='$CPP $CPPFLAGS'
11699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702
11703 CC="$lt_save_CC"
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719         ac_config_commands="$ac_config_commands libtool"
11720
11721
11722
11723
11724 # Only expand once:
11725
11726
11727
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11729 $as_echo_n "checking for library containing strerror... " >&6; }
11730 if ${ac_cv_search_strerror+:} false; then :
11731   $as_echo_n "(cached) " >&6
11732 else
11733   ac_func_search_save_LIBS=$LIBS
11734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11735 /* end confdefs.h.  */
11736
11737 /* Override any GCC internal prototype to avoid an error.
11738    Use char because int might match the return type of a GCC
11739    builtin and then its argument prototype would still apply.  */
11740 #ifdef __cplusplus
11741 extern "C"
11742 #endif
11743 char strerror ();
11744 int
11745 main ()
11746 {
11747 return strerror ();
11748   ;
11749   return 0;
11750 }
11751 _ACEOF
11752 for ac_lib in '' cposix; do
11753   if test -z "$ac_lib"; then
11754     ac_res="none required"
11755   else
11756     ac_res=-l$ac_lib
11757     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11758   fi
11759   if ac_fn_c_try_link "$LINENO"; then :
11760   ac_cv_search_strerror=$ac_res
11761 fi
11762 rm -f core conftest.err conftest.$ac_objext \
11763     conftest$ac_exeext
11764   if ${ac_cv_search_strerror+:} false; then :
11765   break
11766 fi
11767 done
11768 if ${ac_cv_search_strerror+:} false; then :
11769
11770 else
11771   ac_cv_search_strerror=no
11772 fi
11773 rm conftest.$ac_ext
11774 LIBS=$ac_func_search_save_LIBS
11775 fi
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11777 $as_echo "$ac_cv_search_strerror" >&6; }
11778 ac_res=$ac_cv_search_strerror
11779 if test "$ac_res" != no; then :
11780   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11781
11782 fi
11783
11784 ac_ext=c
11785 ac_cpp='$CPP $CPPFLAGS'
11786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11789 if test -n "$ac_tool_prefix"; then
11790   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11791 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if ${ac_cv_prog_CC+:} false; then :
11795   $as_echo_n "(cached) " >&6
11796 else
11797   if test -n "$CC"; then
11798   ac_cv_prog_CC="$CC" # Let the user override the test.
11799 else
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11802 do
11803   IFS=$as_save_IFS
11804   test -z "$as_dir" && as_dir=.
11805     for ac_exec_ext in '' $ac_executable_extensions; do
11806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11807     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11809     break 2
11810   fi
11811 done
11812   done
11813 IFS=$as_save_IFS
11814
11815 fi
11816 fi
11817 CC=$ac_cv_prog_CC
11818 if test -n "$CC"; then
11819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11820 $as_echo "$CC" >&6; }
11821 else
11822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11824 fi
11825
11826
11827 fi
11828 if test -z "$ac_cv_prog_CC"; then
11829   ac_ct_CC=$CC
11830   # Extract the first word of "gcc", so it can be a program name with args.
11831 set dummy gcc; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11835   $as_echo_n "(cached) " >&6
11836 else
11837   if test -n "$ac_ct_CC"; then
11838   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11839 else
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11842 do
11843   IFS=$as_save_IFS
11844   test -z "$as_dir" && as_dir=.
11845     for ac_exec_ext in '' $ac_executable_extensions; do
11846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11847     ac_cv_prog_ac_ct_CC="gcc"
11848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11849     break 2
11850   fi
11851 done
11852   done
11853 IFS=$as_save_IFS
11854
11855 fi
11856 fi
11857 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11858 if test -n "$ac_ct_CC"; then
11859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11860 $as_echo "$ac_ct_CC" >&6; }
11861 else
11862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11864 fi
11865
11866   if test "x$ac_ct_CC" = x; then
11867     CC=""
11868   else
11869     case $cross_compiling:$ac_tool_warned in
11870 yes:)
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873 ac_tool_warned=yes ;;
11874 esac
11875     CC=$ac_ct_CC
11876   fi
11877 else
11878   CC="$ac_cv_prog_CC"
11879 fi
11880
11881 if test -z "$CC"; then
11882           if test -n "$ac_tool_prefix"; then
11883     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11884 set dummy ${ac_tool_prefix}cc; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11886 $as_echo_n "checking for $ac_word... " >&6; }
11887 if ${ac_cv_prog_CC+:} false; then :
11888   $as_echo_n "(cached) " >&6
11889 else
11890   if test -n "$CC"; then
11891   ac_cv_prog_CC="$CC" # Let the user override the test.
11892 else
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11895 do
11896   IFS=$as_save_IFS
11897   test -z "$as_dir" && as_dir=.
11898     for ac_exec_ext in '' $ac_executable_extensions; do
11899   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900     ac_cv_prog_CC="${ac_tool_prefix}cc"
11901     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11902     break 2
11903   fi
11904 done
11905   done
11906 IFS=$as_save_IFS
11907
11908 fi
11909 fi
11910 CC=$ac_cv_prog_CC
11911 if test -n "$CC"; then
11912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11913 $as_echo "$CC" >&6; }
11914 else
11915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11917 fi
11918
11919
11920   fi
11921 fi
11922 if test -z "$CC"; then
11923   # Extract the first word of "cc", so it can be a program name with args.
11924 set dummy cc; ac_word=$2
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11926 $as_echo_n "checking for $ac_word... " >&6; }
11927 if ${ac_cv_prog_CC+:} false; then :
11928   $as_echo_n "(cached) " >&6
11929 else
11930   if test -n "$CC"; then
11931   ac_cv_prog_CC="$CC" # Let the user override the test.
11932 else
11933   ac_prog_rejected=no
11934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11935 for as_dir in $PATH
11936 do
11937   IFS=$as_save_IFS
11938   test -z "$as_dir" && as_dir=.
11939     for ac_exec_ext in '' $ac_executable_extensions; do
11940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11941     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11942        ac_prog_rejected=yes
11943        continue
11944      fi
11945     ac_cv_prog_CC="cc"
11946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11947     break 2
11948   fi
11949 done
11950   done
11951 IFS=$as_save_IFS
11952
11953 if test $ac_prog_rejected = yes; then
11954   # We found a bogon in the path, so make sure we never use it.
11955   set dummy $ac_cv_prog_CC
11956   shift
11957   if test $# != 0; then
11958     # We chose a different compiler from the bogus one.
11959     # However, it has the same basename, so the bogon will be chosen
11960     # first if we set CC to just the basename; use the full file name.
11961     shift
11962     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11963   fi
11964 fi
11965 fi
11966 fi
11967 CC=$ac_cv_prog_CC
11968 if test -n "$CC"; then
11969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11970 $as_echo "$CC" >&6; }
11971 else
11972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11974 fi
11975
11976
11977 fi
11978 if test -z "$CC"; then
11979   if test -n "$ac_tool_prefix"; then
11980   for ac_prog in cl.exe
11981   do
11982     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985 $as_echo_n "checking for $ac_word... " >&6; }
11986 if ${ac_cv_prog_CC+:} false; then :
11987   $as_echo_n "(cached) " >&6
11988 else
11989   if test -n "$CC"; then
11990   ac_cv_prog_CC="$CC" # Let the user override the test.
11991 else
11992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11993 for as_dir in $PATH
11994 do
11995   IFS=$as_save_IFS
11996   test -z "$as_dir" && as_dir=.
11997     for ac_exec_ext in '' $ac_executable_extensions; do
11998   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11999     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12001     break 2
12002   fi
12003 done
12004   done
12005 IFS=$as_save_IFS
12006
12007 fi
12008 fi
12009 CC=$ac_cv_prog_CC
12010 if test -n "$CC"; then
12011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12012 $as_echo "$CC" >&6; }
12013 else
12014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12015 $as_echo "no" >&6; }
12016 fi
12017
12018
12019     test -n "$CC" && break
12020   done
12021 fi
12022 if test -z "$CC"; then
12023   ac_ct_CC=$CC
12024   for ac_prog in cl.exe
12025 do
12026   # Extract the first word of "$ac_prog", so it can be a program name with args.
12027 set dummy $ac_prog; ac_word=$2
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12029 $as_echo_n "checking for $ac_word... " >&6; }
12030 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12031   $as_echo_n "(cached) " >&6
12032 else
12033   if test -n "$ac_ct_CC"; then
12034   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12035 else
12036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12037 for as_dir in $PATH
12038 do
12039   IFS=$as_save_IFS
12040   test -z "$as_dir" && as_dir=.
12041     for ac_exec_ext in '' $ac_executable_extensions; do
12042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12043     ac_cv_prog_ac_ct_CC="$ac_prog"
12044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12045     break 2
12046   fi
12047 done
12048   done
12049 IFS=$as_save_IFS
12050
12051 fi
12052 fi
12053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12054 if test -n "$ac_ct_CC"; then
12055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12056 $as_echo "$ac_ct_CC" >&6; }
12057 else
12058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12059 $as_echo "no" >&6; }
12060 fi
12061
12062
12063   test -n "$ac_ct_CC" && break
12064 done
12065
12066   if test "x$ac_ct_CC" = x; then
12067     CC=""
12068   else
12069     case $cross_compiling:$ac_tool_warned in
12070 yes:)
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12073 ac_tool_warned=yes ;;
12074 esac
12075     CC=$ac_ct_CC
12076   fi
12077 fi
12078
12079 fi
12080
12081
12082 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12084 as_fn_error $? "no acceptable C compiler found in \$PATH
12085 See \`config.log' for more details" "$LINENO" 5; }
12086
12087 # Provide some information about the compiler.
12088 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12089 set X $ac_compile
12090 ac_compiler=$2
12091 for ac_option in --version -v -V -qversion; do
12092   { { ac_try="$ac_compiler $ac_option >&5"
12093 case "(($ac_try" in
12094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095   *) ac_try_echo=$ac_try;;
12096 esac
12097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12098 $as_echo "$ac_try_echo"; } >&5
12099   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12100   ac_status=$?
12101   if test -s conftest.err; then
12102     sed '10a\
12103 ... rest of stderr output deleted ...
12104          10q' conftest.err >conftest.er1
12105     cat conftest.er1 >&5
12106   fi
12107   rm -f conftest.er1 conftest.err
12108   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12109   test $ac_status = 0; }
12110 done
12111
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12114 if ${ac_cv_c_compiler_gnu+:} false; then :
12115   $as_echo_n "(cached) " >&6
12116 else
12117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h.  */
12119
12120 int
12121 main ()
12122 {
12123 #ifndef __GNUC__
12124        choke me
12125 #endif
12126
12127   ;
12128   return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_compile "$LINENO"; then :
12132   ac_compiler_gnu=yes
12133 else
12134   ac_compiler_gnu=no
12135 fi
12136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12138
12139 fi
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12142 if test $ac_compiler_gnu = yes; then
12143   GCC=yes
12144 else
12145   GCC=
12146 fi
12147 ac_test_CFLAGS=${CFLAGS+set}
12148 ac_save_CFLAGS=$CFLAGS
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12151 if ${ac_cv_prog_cc_g+:} false; then :
12152   $as_echo_n "(cached) " >&6
12153 else
12154   ac_save_c_werror_flag=$ac_c_werror_flag
12155    ac_c_werror_flag=yes
12156    ac_cv_prog_cc_g=no
12157    CFLAGS="-g"
12158    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12159 /* end confdefs.h.  */
12160
12161 int
12162 main ()
12163 {
12164
12165   ;
12166   return 0;
12167 }
12168 _ACEOF
12169 if ac_fn_c_try_compile "$LINENO"; then :
12170   ac_cv_prog_cc_g=yes
12171 else
12172   CFLAGS=""
12173       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174 /* end confdefs.h.  */
12175
12176 int
12177 main ()
12178 {
12179
12180   ;
12181   return 0;
12182 }
12183 _ACEOF
12184 if ac_fn_c_try_compile "$LINENO"; then :
12185
12186 else
12187   ac_c_werror_flag=$ac_save_c_werror_flag
12188          CFLAGS="-g"
12189          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h.  */
12191
12192 int
12193 main ()
12194 {
12195
12196   ;
12197   return 0;
12198 }
12199 _ACEOF
12200 if ac_fn_c_try_compile "$LINENO"; then :
12201   ac_cv_prog_cc_g=yes
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204 fi
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206 fi
12207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12208    ac_c_werror_flag=$ac_save_c_werror_flag
12209 fi
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12211 $as_echo "$ac_cv_prog_cc_g" >&6; }
12212 if test "$ac_test_CFLAGS" = set; then
12213   CFLAGS=$ac_save_CFLAGS
12214 elif test $ac_cv_prog_cc_g = yes; then
12215   if test "$GCC" = yes; then
12216     CFLAGS="-g -O2"
12217   else
12218     CFLAGS="-g"
12219   fi
12220 else
12221   if test "$GCC" = yes; then
12222     CFLAGS="-O2"
12223   else
12224     CFLAGS=
12225   fi
12226 fi
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12229 if ${ac_cv_prog_cc_c89+:} false; then :
12230   $as_echo_n "(cached) " >&6
12231 else
12232   ac_cv_prog_cc_c89=no
12233 ac_save_CC=$CC
12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12235 /* end confdefs.h.  */
12236 #include <stdarg.h>
12237 #include <stdio.h>
12238 struct stat;
12239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12240 struct buf { int x; };
12241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12242 static char *e (p, i)
12243      char **p;
12244      int i;
12245 {
12246   return p[i];
12247 }
12248 static char *f (char * (*g) (char **, int), char **p, ...)
12249 {
12250   char *s;
12251   va_list v;
12252   va_start (v,p);
12253   s = g (p, va_arg (v,int));
12254   va_end (v);
12255   return s;
12256 }
12257
12258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12259    function prototypes and stuff, but not '\xHH' hex character constants.
12260    These don't provoke an error unfortunately, instead are silently treated
12261    as 'x'.  The following induces an error, until -std is added to get
12262    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12263    array size at least.  It's necessary to write '\x00'==0 to get something
12264    that's true only with -std.  */
12265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12266
12267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12268    inside strings and character constants.  */
12269 #define FOO(x) 'x'
12270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12271
12272 int test (int i, double x);
12273 struct s1 {int (*f) (int a);};
12274 struct s2 {int (*f) (double a);};
12275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12276 int argc;
12277 char **argv;
12278 int
12279 main ()
12280 {
12281 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12287         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12288 do
12289   CC="$ac_save_CC $ac_arg"
12290   if ac_fn_c_try_compile "$LINENO"; then :
12291   ac_cv_prog_cc_c89=$ac_arg
12292 fi
12293 rm -f core conftest.err conftest.$ac_objext
12294   test "x$ac_cv_prog_cc_c89" != "xno" && break
12295 done
12296 rm -f conftest.$ac_ext
12297 CC=$ac_save_CC
12298
12299 fi
12300 # AC_CACHE_VAL
12301 case "x$ac_cv_prog_cc_c89" in
12302   x)
12303     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12304 $as_echo "none needed" >&6; } ;;
12305   xno)
12306     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12307 $as_echo "unsupported" >&6; } ;;
12308   *)
12309     CC="$CC $ac_cv_prog_cc_c89"
12310     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12312 esac
12313 if test "x$ac_cv_prog_cc_c89" != xno; then :
12314
12315 fi
12316
12317 ac_ext=c
12318 ac_cpp='$CPP $CPPFLAGS'
12319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322
12323 depcc="$CC"   am_compiler_list=
12324
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12326 $as_echo_n "checking dependency style of $depcc... " >&6; }
12327 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12328   $as_echo_n "(cached) " >&6
12329 else
12330   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12331   # We make a subdir and do the tests there.  Otherwise we can end up
12332   # making bogus files that we don't know about and never remove.  For
12333   # instance it was reported that on HP-UX the gcc test will end up
12334   # making a dummy file named 'D' -- because '-MD' means "put the output
12335   # in D".
12336   rm -rf conftest.dir
12337   mkdir conftest.dir
12338   # Copy depcomp to subdir because otherwise we won't find it if we're
12339   # using a relative directory.
12340   cp "$am_depcomp" conftest.dir
12341   cd conftest.dir
12342   # We will build objects and dependencies in a subdirectory because
12343   # it helps to detect inapplicable dependency modes.  For instance
12344   # both Tru64's cc and ICC support -MD to output dependencies as a
12345   # side effect of compilation, but ICC will put the dependencies in
12346   # the current directory while Tru64 will put them in the object
12347   # directory.
12348   mkdir sub
12349
12350   am_cv_CC_dependencies_compiler_type=none
12351   if test "$am_compiler_list" = ""; then
12352      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12353   fi
12354   am__universal=false
12355   case " $depcc " in #(
12356      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12357      esac
12358
12359   for depmode in $am_compiler_list; do
12360     # Setup a source with many dependencies, because some compilers
12361     # like to wrap large dependency lists on column 80 (with \), and
12362     # we should not choose a depcomp mode which is confused by this.
12363     #
12364     # We need to recreate these files for each test, as the compiler may
12365     # overwrite some of them when testing with obscure command lines.
12366     # This happens at least with the AIX C compiler.
12367     : > sub/conftest.c
12368     for i in 1 2 3 4 5 6; do
12369       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12370       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12371       # Solaris 10 /bin/sh.
12372       echo '/* dummy */' > sub/conftst$i.h
12373     done
12374     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12375
12376     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12377     # mode.  It turns out that the SunPro C++ compiler does not properly
12378     # handle '-M -o', and we need to detect this.  Also, some Intel
12379     # versions had trouble with output in subdirs.
12380     am__obj=sub/conftest.${OBJEXT-o}
12381     am__minus_obj="-o $am__obj"
12382     case $depmode in
12383     gcc)
12384       # This depmode causes a compiler race in universal mode.
12385       test "$am__universal" = false || continue
12386       ;;
12387     nosideeffect)
12388       # After this tag, mechanisms are not by side-effect, so they'll
12389       # only be used when explicitly requested.
12390       if test "x$enable_dependency_tracking" = xyes; then
12391         continue
12392       else
12393         break
12394       fi
12395       ;;
12396     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12397       # This compiler won't grok '-c -o', but also, the minuso test has
12398       # not run yet.  These depmodes are late enough in the game, and
12399       # so weak that their functioning should not be impacted.
12400       am__obj=conftest.${OBJEXT-o}
12401       am__minus_obj=
12402       ;;
12403     none) break ;;
12404     esac
12405     if depmode=$depmode \
12406        source=sub/conftest.c object=$am__obj \
12407        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12408        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12409          >/dev/null 2>conftest.err &&
12410        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12411        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12412        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12413        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12414       # icc doesn't choke on unknown options, it will just issue warnings
12415       # or remarks (even with -Werror).  So we grep stderr for any message
12416       # that says an option was ignored or not supported.
12417       # When given -MP, icc 7.0 and 7.1 complain thusly:
12418       #   icc: Command line warning: ignoring option '-M'; no argument required
12419       # The diagnosis changed in icc 8.0:
12420       #   icc: Command line remark: option '-MP' not supported
12421       if (grep 'ignoring option' conftest.err ||
12422           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12423         am_cv_CC_dependencies_compiler_type=$depmode
12424         break
12425       fi
12426     fi
12427   done
12428
12429   cd ..
12430   rm -rf conftest.dir
12431 else
12432   am_cv_CC_dependencies_compiler_type=none
12433 fi
12434
12435 fi
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12437 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12438 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12439
12440  if
12441   test "x$enable_dependency_tracking" != xno \
12442   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12443   am__fastdepCC_TRUE=
12444   am__fastdepCC_FALSE='#'
12445 else
12446   am__fastdepCC_TRUE='#'
12447   am__fastdepCC_FALSE=
12448 fi
12449
12450
12451 if test "x$CC" != xcc; then
12452   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12453 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12454 else
12455   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12456 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12457 fi
12458 set dummy $CC; ac_cc=`$as_echo "$2" |
12459                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12460 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12461   $as_echo_n "(cached) " >&6
12462 else
12463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12464 /* end confdefs.h.  */
12465
12466 int
12467 main ()
12468 {
12469
12470   ;
12471   return 0;
12472 }
12473 _ACEOF
12474 # Make sure it works both with $CC and with simple cc.
12475 # We do the test twice because some compilers refuse to overwrite an
12476 # existing .o file with -o, though they will create one.
12477 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12478 rm -f conftest2.*
12479 if { { case "(($ac_try" in
12480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481   *) ac_try_echo=$ac_try;;
12482 esac
12483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12484 $as_echo "$ac_try_echo"; } >&5
12485   (eval "$ac_try") 2>&5
12486   ac_status=$?
12487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488   test $ac_status = 0; } &&
12489    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491   *) ac_try_echo=$ac_try;;
12492 esac
12493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12494 $as_echo "$ac_try_echo"; } >&5
12495   (eval "$ac_try") 2>&5
12496   ac_status=$?
12497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12498   test $ac_status = 0; };
12499 then
12500   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12501   if test "x$CC" != xcc; then
12502     # Test first that cc exists at all.
12503     if { ac_try='cc -c conftest.$ac_ext >&5'
12504   { { case "(($ac_try" in
12505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12506   *) ac_try_echo=$ac_try;;
12507 esac
12508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12509 $as_echo "$ac_try_echo"; } >&5
12510   (eval "$ac_try") 2>&5
12511   ac_status=$?
12512   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513   test $ac_status = 0; }; }; then
12514       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12515       rm -f conftest2.*
12516       if { { case "(($ac_try" in
12517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12518   *) ac_try_echo=$ac_try;;
12519 esac
12520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12521 $as_echo "$ac_try_echo"; } >&5
12522   (eval "$ac_try") 2>&5
12523   ac_status=$?
12524   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12525   test $ac_status = 0; } &&
12526          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12528   *) ac_try_echo=$ac_try;;
12529 esac
12530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12531 $as_echo "$ac_try_echo"; } >&5
12532   (eval "$ac_try") 2>&5
12533   ac_status=$?
12534   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12535   test $ac_status = 0; };
12536       then
12537         # cc works too.
12538         :
12539       else
12540         # cc exists but doesn't like -o.
12541         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12542       fi
12543     fi
12544   fi
12545 else
12546   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12547 fi
12548 rm -f core conftest*
12549
12550 fi
12551 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12553 $as_echo "yes" >&6; }
12554 else
12555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556 $as_echo "no" >&6; }
12557
12558 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12559
12560 fi
12561
12562 # FIXME: we rely on the cache variable name because
12563 # there is no other way.
12564 set dummy $CC
12565 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12566 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12567 if test "$am_t" != yes; then
12568    # Losing compiler, so override with the script.
12569    # FIXME: It is wrong to rewrite CC.
12570    # But if we don't then we get into trouble of one sort or another.
12571    # A longer-term fix would be to have automake use am__CC in this case,
12572    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12573    CC="$am_aux_dir/compile $CC"
12574 fi
12575
12576
12577
12578 # option to specify python interpreter to use; this just sets $PYTHON, so that
12579 # we will fallback to reading $PYTHON if --with-python is not given, and
12580 # python.m4 will get the expected input
12581
12582 # Check whether --with-python was given.
12583 if test "${with_python+set}" = set; then :
12584   withval=$with_python; PYTHON="$withval"
12585 fi
12586
12587 if test x"$PYTHON" = xyes; then
12588         as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12589 fi
12590 if test -n "$PYTHON" && ! which "$PYTHON"; then
12591         as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12592 fi
12593
12594 # check that we have the minimum version of python necessary to build
12595
12596
12597
12598
12599         if test -n "$PYTHON"; then
12600       # If the user set $PYTHON, use it and don't search something else.
12601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12602 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12603       prog="import sys
12604 # split strings by '.' and convert to numeric.  Append some zeros
12605 # because we need at least 4 digits for the hex conversion.
12606 # map returns an iterator in Python 3.0 and a list in 2.x
12607 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12608 minverhex = 0
12609 # xrange is not present in Python 3.0 and range returns an iterator
12610 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12611 sys.exit(sys.hexversion < minverhex)"
12612   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12613    ($PYTHON -c "$prog") >&5 2>&5
12614    ac_status=$?
12615    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616    (exit $ac_status); }; then :
12617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 $as_echo "yes" >&6; }
12619 else
12620   as_fn_error $? "too old" "$LINENO" 5
12621 fi
12622       am_display_PYTHON=$PYTHON
12623     else
12624       # Otherwise, try each interpreter until we find one that satisfies
12625       # VERSION.
12626       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12627 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12628 if ${am_cv_pathless_PYTHON+:} false; then :
12629   $as_echo_n "(cached) " >&6
12630 else
12631
12632         for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12633           test "$am_cv_pathless_PYTHON" = none && break
12634           prog="import sys
12635 # split strings by '.' and convert to numeric.  Append some zeros
12636 # because we need at least 4 digits for the hex conversion.
12637 # map returns an iterator in Python 3.0 and a list in 2.x
12638 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12639 minverhex = 0
12640 # xrange is not present in Python 3.0 and range returns an iterator
12641 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12642 sys.exit(sys.hexversion < minverhex)"
12643   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12644    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12645    ac_status=$?
12646    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647    (exit $ac_status); }; then :
12648   break
12649 fi
12650         done
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12653 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12654       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12655       if test "$am_cv_pathless_PYTHON" = none; then
12656         PYTHON=:
12657       else
12658         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12659 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12661 $as_echo_n "checking for $ac_word... " >&6; }
12662 if ${ac_cv_path_PYTHON+:} false; then :
12663   $as_echo_n "(cached) " >&6
12664 else
12665   case $PYTHON in
12666   [\\/]* | ?:[\\/]*)
12667   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12668   ;;
12669   *)
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_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
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   ;;
12686 esac
12687 fi
12688 PYTHON=$ac_cv_path_PYTHON
12689 if test -n "$PYTHON"; then
12690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12691 $as_echo "$PYTHON" >&6; }
12692 else
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fi
12696
12697
12698       fi
12699       am_display_PYTHON=$am_cv_pathless_PYTHON
12700     fi
12701
12702
12703   if test "$PYTHON" = :; then
12704       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12705   else
12706
12707
12708   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12709 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12710 if ${am_cv_python_version+:} false; then :
12711   $as_echo_n "(cached) " >&6
12712 else
12713   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12714 fi
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12716 $as_echo "$am_cv_python_version" >&6; }
12717   PYTHON_VERSION=$am_cv_python_version
12718
12719
12720
12721   PYTHON_PREFIX='${prefix}'
12722
12723   PYTHON_EXEC_PREFIX='${exec_prefix}'
12724
12725
12726
12727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12728 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12729 if ${am_cv_python_platform+:} false; then :
12730   $as_echo_n "(cached) " >&6
12731 else
12732   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12733 fi
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12735 $as_echo "$am_cv_python_platform" >&6; }
12736   PYTHON_PLATFORM=$am_cv_python_platform
12737
12738
12739
12740
12741                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12742 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12743 if ${am_cv_python_pythondir+:} false; then :
12744   $as_echo_n "(cached) " >&6
12745 else
12746   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12747      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12750 $as_echo "$am_cv_python_pythondir" >&6; }
12751   pythondir=$am_cv_python_pythondir
12752
12753
12754
12755   pkgpythondir=\${pythondir}/$PACKAGE
12756
12757
12758             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12759 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12760 if ${am_cv_python_pyexecdir+:} false; then :
12761   $as_echo_n "(cached) " >&6
12762 else
12763   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12764      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12765 fi
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12767 $as_echo "$am_cv_python_pyexecdir" >&6; }
12768   pyexecdir=$am_cv_python_pyexecdir
12769
12770
12771
12772   pkgpyexecdir=\${pyexecdir}/$PACKAGE
12773
12774
12775
12776   fi
12777
12778
12779
12780 # check if we are building for python 3
12781 prog="import sys
12782 # split strings by '.' and convert to numeric.  Append some zeros
12783 # because we need at least 4 digits for the hex conversion.
12784 # map returns an iterator in Python 3.0 and a list in 2.x
12785 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12786 minverhex = 0
12787 # xrange is not present in Python 3.0 and range returns an iterator
12788 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12789 sys.exit(sys.hexversion < minverhex)"
12790   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12791    ($PYTHON -c "$prog") >&5 2>&5
12792    ac_status=$?
12793    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794    (exit $ac_status); }; then :
12795   build_py3k=true
12796 else
12797   build_py3k=false
12798 fi
12799
12800 # if building for python 3 make sure we have the minimum version supported
12801 if test $build_py3k = true ; then
12802   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12803 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12804   prog="import sys
12805 # split strings by '.' and convert to numeric.  Append some zeros
12806 # because we need at least 4 digits for the hex conversion.
12807 # map returns an iterator in Python 3.0 and a list in 2.x
12808 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12809 minverhex = 0
12810 # xrange is not present in Python 3.0 and range returns an iterator
12811 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12812 sys.exit(sys.hexversion < minverhex)"
12813   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12814    ($PYTHON -c "$prog") >&5 2>&5
12815    ac_status=$?
12816    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12817    (exit $ac_status); }; then :
12818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12819 $as_echo "yes" >&6; }
12820 else
12821   as_fn_error $? "too old" "$LINENO" 5
12822 fi
12823 fi
12824
12825 # - 'SO' for PyPy, CPython 2.7-3.2
12826 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12827 # - fallback to '.so'
12828 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');"`
12829
12830
12831
12832
12833
12834
12835
12836
12837         # Find any Python interpreter.
12838     if test -z "$PYTHON"; then
12839       for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12840 do
12841   # Extract the first word of "$ac_prog", so it can be a program name with args.
12842 set dummy $ac_prog; ac_word=$2
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12844 $as_echo_n "checking for $ac_word... " >&6; }
12845 if ${ac_cv_path_PYTHON+:} false; then :
12846   $as_echo_n "(cached) " >&6
12847 else
12848   case $PYTHON in
12849   [\\/]* | ?:[\\/]*)
12850   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12851   ;;
12852   *)
12853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12854 for as_dir in $PATH
12855 do
12856   IFS=$as_save_IFS
12857   test -z "$as_dir" && as_dir=.
12858     for ac_exec_ext in '' $ac_executable_extensions; do
12859   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12860     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12862     break 2
12863   fi
12864 done
12865   done
12866 IFS=$as_save_IFS
12867
12868   ;;
12869 esac
12870 fi
12871 PYTHON=$ac_cv_path_PYTHON
12872 if test -n "$PYTHON"; then
12873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12874 $as_echo "$PYTHON" >&6; }
12875 else
12876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12877 $as_echo "no" >&6; }
12878 fi
12879
12880
12881   test -n "$PYTHON" && break
12882 done
12883 test -n "$PYTHON" || PYTHON=":"
12884
12885     fi
12886     am_display_PYTHON=python
12887
12888
12889   if test "$PYTHON" = :; then
12890       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12891   else
12892
12893
12894   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12895 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12896 if ${am_cv_python_version+:} false; then :
12897   $as_echo_n "(cached) " >&6
12898 else
12899   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12900 fi
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12902 $as_echo "$am_cv_python_version" >&6; }
12903   PYTHON_VERSION=$am_cv_python_version
12904
12905
12906
12907   PYTHON_PREFIX='${prefix}'
12908
12909   PYTHON_EXEC_PREFIX='${exec_prefix}'
12910
12911
12912
12913   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12914 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12915 if ${am_cv_python_platform+:} false; then :
12916   $as_echo_n "(cached) " >&6
12917 else
12918   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12919 fi
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12921 $as_echo "$am_cv_python_platform" >&6; }
12922   PYTHON_PLATFORM=$am_cv_python_platform
12923
12924
12925   # Just factor out some code duplication.
12926   am_python_setup_sysconfig="\
12927 import sys
12928 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12929 # with python 3.x.  See automake bug#10227.
12930 try:
12931     import sysconfig
12932 except ImportError:
12933     can_use_sysconfig = 0
12934 else:
12935     can_use_sysconfig = 1
12936 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12937 # <https://github.com/pypa/virtualenv/issues/118>
12938 try:
12939     from platform import python_implementation
12940     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12941         can_use_sysconfig = 0
12942 except ImportError:
12943     pass"
12944
12945
12946             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12947 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12948 if ${am_cv_python_pythondir+:} false; then :
12949   $as_echo_n "(cached) " >&6
12950 else
12951   if test "x$prefix" = xNONE
12952      then
12953        am_py_prefix=$ac_default_prefix
12954      else
12955        am_py_prefix=$prefix
12956      fi
12957      am_cv_python_pythondir=`$PYTHON -c "
12958 $am_python_setup_sysconfig
12959 if can_use_sysconfig:
12960     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12961 else:
12962     from distutils import sysconfig
12963     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12964 sys.stdout.write(sitedir)"`
12965      case $am_cv_python_pythondir in
12966      $am_py_prefix*)
12967        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12968        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12969        ;;
12970      *)
12971        case $am_py_prefix in
12972          /usr|/System*) ;;
12973          *)
12974           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12975           ;;
12976        esac
12977        ;;
12978      esac
12979
12980 fi
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12982 $as_echo "$am_cv_python_pythondir" >&6; }
12983   pythondir=$am_cv_python_pythondir
12984
12985
12986
12987   pkgpythondir=\${pythondir}/$PACKAGE
12988
12989
12990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12991 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12992 if ${am_cv_python_pyexecdir+:} false; then :
12993   $as_echo_n "(cached) " >&6
12994 else
12995   if test "x$exec_prefix" = xNONE
12996      then
12997        am_py_exec_prefix=$am_py_prefix
12998      else
12999        am_py_exec_prefix=$exec_prefix
13000      fi
13001      am_cv_python_pyexecdir=`$PYTHON -c "
13002 $am_python_setup_sysconfig
13003 if can_use_sysconfig:
13004     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13005 else:
13006     from distutils import sysconfig
13007     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13008 sys.stdout.write(sitedir)"`
13009      case $am_cv_python_pyexecdir in
13010      $am_py_exec_prefix*)
13011        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13012        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13013        ;;
13014      *)
13015        case $am_py_exec_prefix in
13016          /usr|/System*) ;;
13017          *)
13018            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13019            ;;
13020        esac
13021        ;;
13022      esac
13023
13024 fi
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13026 $as_echo "$am_cv_python_pyexecdir" >&6; }
13027   pyexecdir=$am_cv_python_pyexecdir
13028
13029
13030
13031   pkgpyexecdir=\${pyexecdir}/$PACKAGE
13032
13033
13034
13035   fi
13036
13037
13038
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13040 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13041 if test "x$PYTHON_INCLUDES" = x; then
13042   PYTHON_CONFIG=`which $PYTHON`-config
13043   if test -x "$PYTHON_CONFIG"; then
13044     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13045   else
13046     PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13047     PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13048   fi
13049 fi
13050
13051 save_CPPFLAGS="$CPPFLAGS"
13052 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* end confdefs.h.  */
13055 #include <Python.h>
13056 _ACEOF
13057 if ac_fn_c_try_cpp "$LINENO"; then :
13058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13059 $as_echo "found" >&6; }
13060
13061 else
13062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13063 $as_echo "not found" >&6; }
13064 as_fn_error $? "Python headers not found" "$LINENO" 5
13065 fi
13066 rm -f conftest.err conftest.i conftest.$ac_ext
13067 CPPFLAGS="$save_CPPFLAGS"
13068
13069 if test "x$os_win32" = "xyes"; then
13070
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13072 $as_echo_n "checking for libraries required to embed python... " >&6; }
13073 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13074 if test "x$PYTHON_LIBS" = x; then
13075         PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13076 fi
13077 if test "x$PYTHON_LIB_LOC" = x; then
13078         PYTHON_LIB_LOC="${py_prefix}/lib"
13079 fi
13080
13081
13082 save_LIBS="$LIBS"
13083 LIBS="$LIBS $PYTHON_LIBS"
13084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13085 /* end confdefs.h.  */
13086
13087 /* Override any GCC internal prototype to avoid an error.
13088    Use char because int might match the return type of a GCC
13089    builtin and then its argument prototype would still apply.  */
13090 #ifdef __cplusplus
13091 extern "C"
13092 #endif
13093 char Py_Initialize ();
13094 int
13095 main ()
13096 {
13097 return Py_Initialize ();
13098   ;
13099   return 0;
13100 }
13101 _ACEOF
13102 if ac_fn_c_try_link "$LINENO"; then :
13103            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; };
13105 else
13106            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13108 fi
13109 rm -f core conftest.err conftest.$ac_objext \
13110     conftest$ac_exeext conftest.$ac_ext
13111
13112
13113 fi
13114
13115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13116 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13117 old_CPPFLAGS=$CPPFLAGS
13118 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13120 /* end confdefs.h.  */
13121 #include <Python.h>
13122 int
13123 main ()
13124 {
13125 PySignal_SetWakeupFd(0);
13126   ;
13127   return 0;
13128 }
13129 _ACEOF
13130 if ac_fn_c_try_compile "$LINENO"; then :
13131   setwakeupfd_ok=yes
13132 else
13133   setwakeupfd_ok=no
13134 fi
13135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13137 $as_echo "$setwakeupfd_ok" >&6; }
13138 if test "x$setwakeupfd_ok" != xno; then
13139
13140 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13141
13142 fi
13143 CPPFLAGS=$old_CPPFLAGS
13144
13145 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13146
13147
13148 # Check whether --enable-thread was given.
13149 if test "${enable_thread+set}" = set; then :
13150   enableval=$enable_thread;
13151 else
13152   enable_thread=yes
13153 fi
13154
13155
13156
13157 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13159 $as_echo_n "checking for python module thread... " >&6; }
13160 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13161   $as_echo_n "(cached) " >&6
13162 else
13163
13164 prog="
13165 import sys
13166 try:
13167         import thread
13168 except ImportError:
13169         sys.exit(1)
13170 except:
13171         sys.exit(0)
13172 sys.exit(0)"
13173 if $PYTHON -c "$prog" 1>&5 2>&5
13174   then
13175     eval "py_cv_mod_$py_mod_var=yes"
13176   else
13177     eval "py_cv_mod_$py_mod_var=no"
13178   fi
13179
13180 fi
13181
13182 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13183 if test "x$py_val" != xno; then
13184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13186   else
13187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13189   enable_thread=check_for_py3_module
13190 fi
13191
13192 if test "x$enable_thread" = xcheck_for_py3_module; then
13193
13194 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13196 $as_echo_n "checking for python module _thread... " >&6; }
13197 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200
13201 prog="
13202 import sys
13203 try:
13204         import _thread
13205 except ImportError:
13206         sys.exit(1)
13207 except:
13208         sys.exit(0)
13209 sys.exit(0)"
13210 if $PYTHON -c "$prog" 1>&5 2>&5
13211   then
13212     eval "py_cv_mod_$py_mod_var=yes"
13213   else
13214     eval "py_cv_mod_$py_mod_var=no"
13215   fi
13216
13217 fi
13218
13219 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13220 if test "x$py_val" != xno; then
13221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13222 $as_echo "yes" >&6; }
13223   enable_thread=yes
13224 else
13225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13226 $as_echo "no" >&6; }
13227   enable_thread=no
13228 fi
13229
13230 fi
13231
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13233 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13234 if test "x$enable_thread" != xno; then
13235   extra_mods=gthread
13236   THREADING_CFLAGS=
13237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13238 $as_echo "yes" >&6; }
13239 else
13240   extra_mods=
13241   THREADING_CFLAGS="-DDISABLE_THREADING"
13242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13243 $as_echo "no" >&6; }
13244 fi
13245
13246 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13247
13248 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13249
13250 # Check whether --enable-glibtest was given.
13251 if test "${enable_glibtest+set}" = set; then :
13252   enableval=$enable_glibtest;
13253 else
13254   enable_glibtest=yes
13255 fi
13256
13257
13258   pkg_config_args=glib-2.0
13259   for module in . gobject $extra_mods
13260   do
13261       case "$module" in
13262          gmodule)
13263              pkg_config_args="$pkg_config_args gmodule-2.0"
13264          ;;
13265          gmodule-no-export)
13266              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13267          ;;
13268          gobject)
13269              pkg_config_args="$pkg_config_args gobject-2.0"
13270          ;;
13271          gthread)
13272              pkg_config_args="$pkg_config_args gthread-2.0"
13273          ;;
13274          gio*)
13275              pkg_config_args="$pkg_config_args $module-2.0"
13276          ;;
13277       esac
13278   done
13279
13280
13281
13282
13283
13284
13285
13286
13287 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13288         if test -n "$ac_tool_prefix"; then
13289   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13290 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13292 $as_echo_n "checking for $ac_word... " >&6; }
13293 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13294   $as_echo_n "(cached) " >&6
13295 else
13296   case $PKG_CONFIG in
13297   [\\/]* | ?:[\\/]*)
13298   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13299   ;;
13300   *)
13301   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13302 for as_dir in $PATH
13303 do
13304   IFS=$as_save_IFS
13305   test -z "$as_dir" && as_dir=.
13306     for ac_exec_ext in '' $ac_executable_extensions; do
13307   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13308     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13310     break 2
13311   fi
13312 done
13313   done
13314 IFS=$as_save_IFS
13315
13316   ;;
13317 esac
13318 fi
13319 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13320 if test -n "$PKG_CONFIG"; then
13321   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13322 $as_echo "$PKG_CONFIG" >&6; }
13323 else
13324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13326 fi
13327
13328
13329 fi
13330 if test -z "$ac_cv_path_PKG_CONFIG"; then
13331   ac_pt_PKG_CONFIG=$PKG_CONFIG
13332   # Extract the first word of "pkg-config", so it can be a program name with args.
13333 set dummy pkg-config; ac_word=$2
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335 $as_echo_n "checking for $ac_word... " >&6; }
13336 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13337   $as_echo_n "(cached) " >&6
13338 else
13339   case $ac_pt_PKG_CONFIG in
13340   [\\/]* | ?:[\\/]*)
13341   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13342   ;;
13343   *)
13344   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13345 for as_dir in $PATH
13346 do
13347   IFS=$as_save_IFS
13348   test -z "$as_dir" && as_dir=.
13349     for ac_exec_ext in '' $ac_executable_extensions; do
13350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13351     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13353     break 2
13354   fi
13355 done
13356   done
13357 IFS=$as_save_IFS
13358
13359   ;;
13360 esac
13361 fi
13362 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13363 if test -n "$ac_pt_PKG_CONFIG"; then
13364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13365 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13366 else
13367   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369 fi
13370
13371   if test "x$ac_pt_PKG_CONFIG" = x; then
13372     PKG_CONFIG=""
13373   else
13374     case $cross_compiling:$ac_tool_warned in
13375 yes:)
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13378 ac_tool_warned=yes ;;
13379 esac
13380     PKG_CONFIG=$ac_pt_PKG_CONFIG
13381   fi
13382 else
13383   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13384 fi
13385
13386 fi
13387 if test -n "$PKG_CONFIG"; then
13388         _pkg_min_version=0.16
13389         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13390 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13391         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13392                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13393 $as_echo "yes" >&6; }
13394         else
13395                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397                 PKG_CONFIG=""
13398         fi
13399 fi
13400
13401   no_glib=""
13402
13403   if test "x$PKG_CONFIG" = x ; then
13404     no_glib=yes
13405     PKG_CONFIG=no
13406   fi
13407
13408   min_glib_version=2.35.9
13409   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13410 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13411
13412   if test x$PKG_CONFIG != xno ; then
13413     ## don't try to run the test against uninstalled libtool libs
13414     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13415           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13416           enable_glibtest=no
13417     fi
13418
13419     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13420           :
13421     else
13422           no_glib=yes
13423     fi
13424   fi
13425
13426   if test x"$no_glib" = x ; then
13427     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13428     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13429     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13430     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13431
13432     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13433     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13434     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13435            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13436     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13437            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13438     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13439            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13440     if test "x$enable_glibtest" = "xyes" ; then
13441       ac_save_CFLAGS="$CFLAGS"
13442       ac_save_LIBS="$LIBS"
13443       CFLAGS="$CFLAGS $GLIB_CFLAGS"
13444       LIBS="$GLIB_LIBS $LIBS"
13445       rm -f conf.glibtest
13446       if test "$cross_compiling" = yes; then :
13447   echo $ac_n "cross compiling; assumed OK... $ac_c"
13448 else
13449   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13450 /* end confdefs.h.  */
13451
13452 #include <glib.h>
13453 #include <stdio.h>
13454 #include <stdlib.h>
13455
13456 int
13457 main ()
13458 {
13459   unsigned int major, minor, micro;
13460   char *tmp_version;
13461
13462   fclose (fopen ("conf.glibtest", "w"));
13463
13464   /* HP/UX 9 (%@#!) writes to sscanf strings */
13465   tmp_version = g_strdup("$min_glib_version");
13466   if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
13467      printf("%s, bad version string\n", "$min_glib_version");
13468      exit(1);
13469    }
13470
13471   if ((glib_major_version != $glib_config_major_version) ||
13472       (glib_minor_version != $glib_config_minor_version) ||
13473       (glib_micro_version != $glib_config_micro_version))
13474     {
13475       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13476              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13477              glib_major_version, glib_minor_version, glib_micro_version);
13478       printf ("*** was found! If pkg-config was correct, then it is best\n");
13479       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13480       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13481       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13482       printf("*** required on your system.\n");
13483       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13484       printf("*** to point to the correct configuration files\n");
13485     }
13486   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13487            (glib_minor_version != GLIB_MINOR_VERSION) ||
13488            (glib_micro_version != GLIB_MICRO_VERSION))
13489     {
13490       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13491              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13492       printf("*** library (version %d.%d.%d)\n",
13493              glib_major_version, glib_minor_version, glib_micro_version);
13494     }
13495   else
13496     {
13497       if ((glib_major_version > major) ||
13498         ((glib_major_version == major) && (glib_minor_version > minor)) ||
13499         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13500       {
13501         return 0;
13502        }
13503      else
13504       {
13505         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13506                glib_major_version, glib_minor_version, glib_micro_version);
13507         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13508                major, minor, micro);
13509         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13510         printf("***\n");
13511         printf("*** If you have already installed a sufficiently new version, this error\n");
13512         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13513         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13514         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13515         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13516         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13517         printf("*** so that the correct libraries are found at run-time))\n");
13518       }
13519     }
13520   return 1;
13521 }
13522
13523 _ACEOF
13524 if ac_fn_c_try_run "$LINENO"; then :
13525
13526 else
13527   no_glib=yes
13528 fi
13529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13530   conftest.$ac_objext conftest.beam conftest.$ac_ext
13531 fi
13532
13533        CFLAGS="$ac_save_CFLAGS"
13534        LIBS="$ac_save_LIBS"
13535      fi
13536   fi
13537   if test "x$no_glib" = x ; then
13538      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13539 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13540      :
13541   else
13542      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543 $as_echo "no" >&6; }
13544      if test "$PKG_CONFIG" = "no" ; then
13545        echo "*** A new enough version of pkg-config was not found."
13546        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13547      else
13548        if test -f conf.glibtest ; then
13549         :
13550        else
13551           echo "*** Could not run GLIB test program, checking why..."
13552           ac_save_CFLAGS="$CFLAGS"
13553           ac_save_LIBS="$LIBS"
13554           CFLAGS="$CFLAGS $GLIB_CFLAGS"
13555           LIBS="$LIBS $GLIB_LIBS"
13556           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h.  */
13558
13559 #include <glib.h>
13560 #include <stdio.h>
13561
13562 int
13563 main ()
13564 {
13565  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13566   ;
13567   return 0;
13568 }
13569 _ACEOF
13570 if ac_fn_c_try_link "$LINENO"; then :
13571    echo "*** The test program compiled, but did not run. This usually means"
13572           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13573           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13574           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13575           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13576           echo "*** is required on your system"
13577           echo "***"
13578           echo "*** If you have an old version installed, it is best to remove it, although"
13579           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13580 else
13581    echo "*** The test program failed to compile or link. See the file config.log for the"
13582           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext \
13585     conftest$ac_exeext conftest.$ac_ext
13586           CFLAGS="$ac_save_CFLAGS"
13587           LIBS="$ac_save_LIBS"
13588        fi
13589      fi
13590      GLIB_CFLAGS=""
13591      GLIB_LIBS=""
13592      GLIB_GENMARSHAL=""
13593      GOBJECT_QUERY=""
13594      GLIB_MKENUMS=""
13595      GLIB_COMPILE_RESOURCES=""
13596      as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13597   fi
13598
13599
13600
13601
13602
13603
13604   rm -f conf.glibtest
13605
13606 if test -n "$export_dynamic"; then
13607   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13608 fi
13609 PYTHON_BASENAME=`basename $PYTHON`
13610
13611
13612
13613   EXP_VAR=DATADIR
13614   FROM_VAR=$datadir
13615
13616     prefix_save=$prefix
13617   exec_prefix_save=$exec_prefix
13618
13619     if test "x$prefix" = "xNONE"; then
13620     prefix=$ac_default_prefix
13621   fi
13622     if test "x$exec_prefix" = "xNONE"; then
13623     exec_prefix=$prefix
13624   fi
13625
13626   full_var="$FROM_VAR"
13627     while true; do
13628     new_full_var="`eval echo $full_var`"
13629     if test "x$new_full_var"="x$full_var"; then break; fi
13630     full_var=$new_full_var
13631   done
13632
13633     full_var=$new_full_var
13634   DATADIR="$full_var"
13635
13636
13637     prefix=$prefix_save
13638   exec_prefix=$exec_prefix_save
13639
13640
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ffi" >&5
13642 $as_echo_n "checking for ffi... " >&6; }
13643
13644 # Check whether --with-ffi was given.
13645 if test "${with_ffi+set}" = set; then :
13646   withval=$with_ffi; with_libffi=$withval
13647 else
13648   with_libffi=auto
13649 fi
13650
13651 if test x"$with_libffi" = xno ; then
13652   have_libffi=false
13653 else
13654
13655 pkg_failed=no
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13657 $as_echo_n "checking for FFI... " >&6; }
13658
13659 if test -n "$FFI_CFLAGS"; then
13660     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13661  elif test -n "$PKG_CONFIG"; then
13662     if test -n "$PKG_CONFIG" && \
13663     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13664   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13665   ac_status=$?
13666   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13667   test $ac_status = 0; }; then
13668   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13669                       test "x$?" != "x0" && pkg_failed=yes
13670 else
13671   pkg_failed=yes
13672 fi
13673  else
13674     pkg_failed=untried
13675 fi
13676 if test -n "$FFI_LIBS"; then
13677     pkg_cv_FFI_LIBS="$FFI_LIBS"
13678  elif test -n "$PKG_CONFIG"; then
13679     if test -n "$PKG_CONFIG" && \
13680     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13681   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13682   ac_status=$?
13683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13684   test $ac_status = 0; }; then
13685   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13686                       test "x$?" != "x0" && pkg_failed=yes
13687 else
13688   pkg_failed=yes
13689 fi
13690  else
13691     pkg_failed=untried
13692 fi
13693
13694
13695
13696 if test $pkg_failed = yes; then
13697         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13698 $as_echo "no" >&6; }
13699
13700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13701         _pkg_short_errors_supported=yes
13702 else
13703         _pkg_short_errors_supported=no
13704 fi
13705         if test $_pkg_short_errors_supported = yes; then
13706                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13707         else
13708                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13709         fi
13710         # Put the nasty error message in config.log where it belongs
13711         echo "$FFI_PKG_ERRORS" >&5
13712
13713         have_libffi=no
13714 elif test $pkg_failed = untried; then
13715         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13716 $as_echo "no" >&6; }
13717         have_libffi=no
13718 else
13719         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13720         FFI_LIBS=$pkg_cv_FFI_LIBS
13721         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13722 $as_echo "yes" >&6; }
13723         have_libffi=yes
13724 fi
13725 fi
13726 if test x"$with_libffi" = xyes && test x"$have_libffi" = xno ; then
13727   as_fn_error $? "ffi requested, but not found" "$LINENO" 5
13728 fi
13729 if test x"$have_libffi" = xyes; then
13730   LIBFFI_PC=libffi
13731 fi
13732  if test "$have_libffi" = "yes"; then
13733   HAVE_LIBFFI_TRUE=
13734   HAVE_LIBFFI_FALSE='#'
13735 else
13736   HAVE_LIBFFI_TRUE='#'
13737   HAVE_LIBFFI_FALSE=
13738 fi
13739
13740
13741
13742
13743
13744
13745 pkg_failed=no
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13747 $as_echo_n "checking for GIO... " >&6; }
13748
13749 if test -n "$GIO_CFLAGS"; then
13750     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13751  elif test -n "$PKG_CONFIG"; then
13752     if test -n "$PKG_CONFIG" && \
13753     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.35.9\""; } >&5
13754   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.35.9") 2>&5
13755   ac_status=$?
13756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13757   test $ac_status = 0; }; then
13758   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.35.9" 2>/dev/null`
13759                       test "x$?" != "x0" && pkg_failed=yes
13760 else
13761   pkg_failed=yes
13762 fi
13763  else
13764     pkg_failed=untried
13765 fi
13766 if test -n "$GIO_LIBS"; then
13767     pkg_cv_GIO_LIBS="$GIO_LIBS"
13768  elif test -n "$PKG_CONFIG"; then
13769     if test -n "$PKG_CONFIG" && \
13770     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.35.9\""; } >&5
13771   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.35.9") 2>&5
13772   ac_status=$?
13773   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13774   test $ac_status = 0; }; then
13775   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.35.9" 2>/dev/null`
13776                       test "x$?" != "x0" && pkg_failed=yes
13777 else
13778   pkg_failed=yes
13779 fi
13780  else
13781     pkg_failed=untried
13782 fi
13783
13784
13785
13786 if test $pkg_failed = yes; then
13787         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13789
13790 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13791         _pkg_short_errors_supported=yes
13792 else
13793         _pkg_short_errors_supported=no
13794 fi
13795         if test $_pkg_short_errors_supported = yes; then
13796                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.35.9" 2>&1`
13797         else
13798                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.35.9" 2>&1`
13799         fi
13800         # Put the nasty error message in config.log where it belongs
13801         echo "$GIO_PKG_ERRORS" >&5
13802
13803         as_fn_error $? "Package requirements (gio-2.0 >= 2.35.9) were not met:
13804
13805 $GIO_PKG_ERRORS
13806
13807 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13808 installed software in a non-standard prefix.
13809
13810 Alternatively, you may set the environment variables GIO_CFLAGS
13811 and GIO_LIBS to avoid the need to call pkg-config.
13812 See the pkg-config man page for more details." "$LINENO" 5
13813 elif test $pkg_failed = untried; then
13814         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13815 $as_echo "no" >&6; }
13816         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13818 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13819 is in your PATH or set the PKG_CONFIG environment variable to the full
13820 path to pkg-config.
13821
13822 Alternatively, you may set the environment variables GIO_CFLAGS
13823 and GIO_LIBS to avoid the need to call pkg-config.
13824 See the pkg-config man page for more details.
13825
13826 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13827 See \`config.log' for more details" "$LINENO" 5; }
13828 else
13829         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13830         GIO_LIBS=$pkg_cv_GIO_LIBS
13831         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13832 $as_echo "yes" >&6; }
13833
13834 fi
13835
13836 # Check whether --enable-cairo was given.
13837 if test "${enable_cairo+set}" = set; then :
13838   enableval=$enable_cairo; enable_cairo=$enableval
13839 else
13840   enable_cairo=yes
13841 fi
13842
13843
13844
13845 pkg_failed=no
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13847 $as_echo_n "checking for GI... " >&6; }
13848
13849 if test -n "$GI_CFLAGS"; then
13850     pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13851  elif test -n "$PKG_CONFIG"; then
13852     if test -n "$PKG_CONFIG" && \
13853     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.35.9
13854     gobject-introspection-1.0 >= 1.35.9
13855 \""; } >&5
13856   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.35.9
13857     gobject-introspection-1.0 >= 1.35.9
13858 ") 2>&5
13859   ac_status=$?
13860   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13861   test $ac_status = 0; }; then
13862   pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.35.9
13863     gobject-introspection-1.0 >= 1.35.9
13864 " 2>/dev/null`
13865                       test "x$?" != "x0" && pkg_failed=yes
13866 else
13867   pkg_failed=yes
13868 fi
13869  else
13870     pkg_failed=untried
13871 fi
13872 if test -n "$GI_LIBS"; then
13873     pkg_cv_GI_LIBS="$GI_LIBS"
13874  elif test -n "$PKG_CONFIG"; then
13875     if test -n "$PKG_CONFIG" && \
13876     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.35.9
13877     gobject-introspection-1.0 >= 1.35.9
13878 \""; } >&5
13879   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.35.9
13880     gobject-introspection-1.0 >= 1.35.9
13881 ") 2>&5
13882   ac_status=$?
13883   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13884   test $ac_status = 0; }; then
13885   pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.35.9
13886     gobject-introspection-1.0 >= 1.35.9
13887 " 2>/dev/null`
13888                       test "x$?" != "x0" && pkg_failed=yes
13889 else
13890   pkg_failed=yes
13891 fi
13892  else
13893     pkg_failed=untried
13894 fi
13895
13896
13897
13898 if test $pkg_failed = yes; then
13899         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13900 $as_echo "no" >&6; }
13901
13902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13903         _pkg_short_errors_supported=yes
13904 else
13905         _pkg_short_errors_supported=no
13906 fi
13907         if test $_pkg_short_errors_supported = yes; then
13908                 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.35.9
13909     gobject-introspection-1.0 >= 1.35.9
13910 " 2>&1`
13911         else
13912                 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.35.9
13913     gobject-introspection-1.0 >= 1.35.9
13914 " 2>&1`
13915         fi
13916         # Put the nasty error message in config.log where it belongs
13917         echo "$GI_PKG_ERRORS" >&5
13918
13919         as_fn_error $? "Package requirements (glib-2.0 >= 2.35.9
13920     gobject-introspection-1.0 >= 1.35.9
13921 ) were not met:
13922
13923 $GI_PKG_ERRORS
13924
13925 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13926 installed software in a non-standard prefix.
13927
13928 Alternatively, you may set the environment variables GI_CFLAGS
13929 and GI_LIBS to avoid the need to call pkg-config.
13930 See the pkg-config man page for more details." "$LINENO" 5
13931 elif test $pkg_failed = untried; then
13932         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13934         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13936 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13937 is in your PATH or set the PKG_CONFIG environment variable to the full
13938 path to pkg-config.
13939
13940 Alternatively, you may set the environment variables GI_CFLAGS
13941 and GI_LIBS to avoid the need to call pkg-config.
13942 See the pkg-config man page for more details.
13943
13944 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13945 See \`config.log' for more details" "$LINENO" 5; }
13946 else
13947         GI_CFLAGS=$pkg_cv_GI_CFLAGS
13948         GI_LIBS=$pkg_cv_GI_LIBS
13949         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13950 $as_echo "yes" >&6; }
13951
13952 fi
13953
13954 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13955
13956
13957 if test "$enable_cairo" != no; then
13958
13959 pkg_failed=no
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13961 $as_echo_n "checking for CAIRO... " >&6; }
13962
13963 if test -n "$CAIRO_CFLAGS"; then
13964     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13965  elif test -n "$PKG_CONFIG"; then
13966     if test -n "$PKG_CONFIG" && \
13967     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13968   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13969   ac_status=$?
13970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13971   test $ac_status = 0; }; then
13972   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13973                       test "x$?" != "x0" && pkg_failed=yes
13974 else
13975   pkg_failed=yes
13976 fi
13977  else
13978     pkg_failed=untried
13979 fi
13980 if test -n "$CAIRO_LIBS"; then
13981     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13982  elif test -n "$PKG_CONFIG"; then
13983     if test -n "$PKG_CONFIG" && \
13984     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13985   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13986   ac_status=$?
13987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13988   test $ac_status = 0; }; then
13989   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13990                       test "x$?" != "x0" && pkg_failed=yes
13991 else
13992   pkg_failed=yes
13993 fi
13994  else
13995     pkg_failed=untried
13996 fi
13997
13998
13999
14000 if test $pkg_failed = yes; then
14001         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14002 $as_echo "no" >&6; }
14003
14004 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14005         _pkg_short_errors_supported=yes
14006 else
14007         _pkg_short_errors_supported=no
14008 fi
14009         if test $_pkg_short_errors_supported = yes; then
14010                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14011         else
14012                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14013         fi
14014         # Put the nasty error message in config.log where it belongs
14015         echo "$CAIRO_PKG_ERRORS" >&5
14016
14017         as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14018
14019 $CAIRO_PKG_ERRORS
14020
14021 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14022 installed software in a non-standard prefix.
14023
14024 Alternatively, you may set the environment variables CAIRO_CFLAGS
14025 and CAIRO_LIBS to avoid the need to call pkg-config.
14026 See the pkg-config man page for more details." "$LINENO" 5
14027 elif test $pkg_failed = untried; then
14028         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14029 $as_echo "no" >&6; }
14030         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14032 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14033 is in your PATH or set the PKG_CONFIG environment variable to the full
14034 path to pkg-config.
14035
14036 Alternatively, you may set the environment variables CAIRO_CFLAGS
14037 and CAIRO_LIBS to avoid the need to call pkg-config.
14038 See the pkg-config man page for more details.
14039
14040 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14041 See \`config.log' for more details" "$LINENO" 5; }
14042 else
14043         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14044         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14045         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14046 $as_echo "yes" >&6; }
14047
14048 fi
14049
14050     if test $build_py3k = true; then
14051
14052 pkg_failed=no
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14054 $as_echo_n "checking for PYCAIRO... " >&6; }
14055
14056 if test -n "$PYCAIRO_CFLAGS"; then
14057     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14058  elif test -n "$PKG_CONFIG"; then
14059     if test -n "$PKG_CONFIG" && \
14060     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14061         \""; } >&5
14062   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14063         ") 2>&5
14064   ac_status=$?
14065   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066   test $ac_status = 0; }; then
14067   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14068         " 2>/dev/null`
14069                       test "x$?" != "x0" && pkg_failed=yes
14070 else
14071   pkg_failed=yes
14072 fi
14073  else
14074     pkg_failed=untried
14075 fi
14076 if test -n "$PYCAIRO_LIBS"; then
14077     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14078  elif test -n "$PKG_CONFIG"; then
14079     if test -n "$PKG_CONFIG" && \
14080     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14081         \""; } >&5
14082   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14083         ") 2>&5
14084   ac_status=$?
14085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14086   test $ac_status = 0; }; then
14087   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14088         " 2>/dev/null`
14089                       test "x$?" != "x0" && pkg_failed=yes
14090 else
14091   pkg_failed=yes
14092 fi
14093  else
14094     pkg_failed=untried
14095 fi
14096
14097
14098
14099 if test $pkg_failed = yes; then
14100         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14101 $as_echo "no" >&6; }
14102
14103 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14104         _pkg_short_errors_supported=yes
14105 else
14106         _pkg_short_errors_supported=no
14107 fi
14108         if test $_pkg_short_errors_supported = yes; then
14109                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14110         " 2>&1`
14111         else
14112                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14113         " 2>&1`
14114         fi
14115         # Put the nasty error message in config.log where it belongs
14116         echo "$PYCAIRO_PKG_ERRORS" >&5
14117
14118         as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14119         ) were not met:
14120
14121 $PYCAIRO_PKG_ERRORS
14122
14123 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14124 installed software in a non-standard prefix.
14125
14126 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14127 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14128 See the pkg-config man page for more details." "$LINENO" 5
14129 elif test $pkg_failed = untried; then
14130         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14131 $as_echo "no" >&6; }
14132         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14134 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14135 is in your PATH or set the PKG_CONFIG environment variable to the full
14136 path to pkg-config.
14137
14138 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14139 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14140 See the pkg-config man page for more details.
14141
14142 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14143 See \`config.log' for more details" "$LINENO" 5; }
14144 else
14145         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14146         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14147         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14148 $as_echo "yes" >&6; }
14149
14150 fi
14151     else
14152
14153 pkg_failed=no
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14155 $as_echo_n "checking for PYCAIRO... " >&6; }
14156
14157 if test -n "$PYCAIRO_CFLAGS"; then
14158     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14159  elif test -n "$PKG_CONFIG"; then
14160     if test -n "$PKG_CONFIG" && \
14161     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14162         \""; } >&5
14163   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14164         ") 2>&5
14165   ac_status=$?
14166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14167   test $ac_status = 0; }; then
14168   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14169         " 2>/dev/null`
14170                       test "x$?" != "x0" && pkg_failed=yes
14171 else
14172   pkg_failed=yes
14173 fi
14174  else
14175     pkg_failed=untried
14176 fi
14177 if test -n "$PYCAIRO_LIBS"; then
14178     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14179  elif test -n "$PKG_CONFIG"; then
14180     if test -n "$PKG_CONFIG" && \
14181     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14182         \""; } >&5
14183   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14184         ") 2>&5
14185   ac_status=$?
14186   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187   test $ac_status = 0; }; then
14188   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14189         " 2>/dev/null`
14190                       test "x$?" != "x0" && pkg_failed=yes
14191 else
14192   pkg_failed=yes
14193 fi
14194  else
14195     pkg_failed=untried
14196 fi
14197
14198
14199
14200 if test $pkg_failed = yes; then
14201         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14202 $as_echo "no" >&6; }
14203
14204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14205         _pkg_short_errors_supported=yes
14206 else
14207         _pkg_short_errors_supported=no
14208 fi
14209         if test $_pkg_short_errors_supported = yes; then
14210                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14211         " 2>&1`
14212         else
14213                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14214         " 2>&1`
14215         fi
14216         # Put the nasty error message in config.log where it belongs
14217         echo "$PYCAIRO_PKG_ERRORS" >&5
14218
14219         as_fn_error $? "Package requirements (pycairo >= 1.2.0
14220         ) were not met:
14221
14222 $PYCAIRO_PKG_ERRORS
14223
14224 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14225 installed software in a non-standard prefix.
14226
14227 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14228 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14229 See the pkg-config man page for more details." "$LINENO" 5
14230 elif test $pkg_failed = untried; then
14231         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14232 $as_echo "no" >&6; }
14233         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14235 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14236 is in your PATH or set the PKG_CONFIG environment variable to the full
14237 path to pkg-config.
14238
14239 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14240 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14241 See the pkg-config man page for more details.
14242
14243 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14244 See \`config.log' for more details" "$LINENO" 5; }
14245 else
14246         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14247         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14248         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14250
14251 fi
14252     fi
14253 fi
14254  if test "$enable_cairo" = "yes"; then
14255   ENABLE_CAIRO_TRUE=
14256   ENABLE_CAIRO_FALSE='#'
14257 else
14258   ENABLE_CAIRO_TRUE='#'
14259   ENABLE_CAIRO_FALSE=
14260 fi
14261
14262
14263 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14264 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14265
14266
14267
14268
14269 # compiler warnings, errors, required cflags, and code coverage support
14270
14271
14272     # Check whether --enable-compile-warnings was given.
14273 if test "${enable_compile_warnings+set}" = set; then :
14274   enableval=$enable_compile_warnings;
14275 else
14276   enable_compile_warnings="maximum"
14277 fi
14278
14279
14280     if test "x$GCC" != xyes; then
14281         enable_compile_warnings=no
14282     fi
14283
14284     warning_flags=
14285     realsave_CFLAGS="$CFLAGS"
14286
14287             base_warn_flags=" \
14288         -Wall \
14289         -Wstrict-prototypes \
14290         -Wnested-externs \
14291     "
14292
14293                     base_error_flags=" \
14294         -Werror=missing-prototypes \
14295         -Werror=implicit-function-declaration \
14296         -Werror=pointer-arith \
14297         -Werror=init-self \
14298         -Werror=format-security \
14299         -Werror=format=2 \
14300         -Werror=missing-include-dirs \
14301     "
14302
14303     case "$enable_compile_warnings" in
14304     no)
14305         warning_flags=
14306         ;;
14307     minimum)
14308         warning_flags="-Wall"
14309         ;;
14310     yes)
14311         warning_flags="$base_warn_flags $base_error_flags"
14312         ;;
14313     maximum|error)
14314         warning_flags="$base_warn_flags $base_error_flags"
14315         ;;
14316     *)
14317         as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14318         ;;
14319     esac
14320
14321     if test "$enable_compile_warnings" = "error" ; then
14322         warning_flags="$warning_flags -Werror"
14323     fi
14324
14325         for option in $warning_flags; do
14326         save_CFLAGS="$CFLAGS"
14327         CFLAGS="$CFLAGS $option"
14328         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14329 $as_echo_n "checking whether gcc understands $option... " >&6; }
14330         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h.  */
14332
14333 int
14334 main ()
14335 {
14336
14337   ;
14338   return 0;
14339 }
14340 _ACEOF
14341 if ac_fn_c_try_compile "$LINENO"; then :
14342   has_option=yes
14343 else
14344   has_option=no
14345 fi
14346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347         CFLAGS="$save_CFLAGS"
14348         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14349 $as_echo "$has_option" >&6; }
14350         if test $has_option = yes; then
14351             tested_warning_flags="$tested_warning_flags $option"
14352         fi
14353         unset has_option
14354         unset save_CFLAGS
14355     done
14356     unset option
14357     CFLAGS="$realsave_CFLAGS"
14358     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14359 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14360     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14361 $as_echo "$tested_warning_flags" >&6; }
14362
14363     # Check whether --enable-iso-c was given.
14364 if test "${enable_iso_c+set}" = set; then :
14365   enableval=$enable_iso_c;
14366 else
14367   enable_iso_c=no
14368 fi
14369
14370
14371     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14372 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14373     complCFLAGS=
14374     if test "x$enable_iso_c" != "xno"; then
14375         if test "x$GCC" = "xyes"; then
14376         case " $CFLAGS " in
14377             *\ \        -ansi\ \        *) ;;
14378             *) complCFLAGS="$complCFLAGS -ansi" ;;
14379         esac
14380         case " $CFLAGS " in
14381             *\ \        -pedantic\ \    *) ;;
14382             *) complCFLAGS="$complCFLAGS -pedantic" ;;
14383         esac
14384         fi
14385     fi
14386     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14387 $as_echo "$complCFLAGS" >&6; }
14388
14389     WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14390
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14393 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14395 $as_echo "yes" >&6; }
14396
14397                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14398 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14399         # Check whether --enable-code-coverage was given.
14400 if test "${enable_code_coverage+set}" = set; then :
14401   enableval=$enable_code_coverage;
14402 else
14403   enable_code_coverage=no
14404 fi
14405
14406          if test x$enable_code_coverage = xyes; then
14407   CODE_COVERAGE_ENABLED_TRUE=
14408   CODE_COVERAGE_ENABLED_FALSE='#'
14409 else
14410   CODE_COVERAGE_ENABLED_TRUE='#'
14411   CODE_COVERAGE_ENABLED_FALSE=
14412 fi
14413
14414         CODE_COVERAGE_ENABLED=$enable_code_coverage
14415
14416         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14417 $as_echo "$enable_code_coverage" >&6; }
14418
14419         if  test "$enable_code_coverage" = "yes" ; then :
14420
14421                                 if  test "$GCC" = "no" ; then :
14422
14423                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14424
14425 fi
14426
14427                 # List of supported lcov versions.
14428                 lcov_version_list="1.6 1.7 1.8 1.9 1.10"
14429
14430                 # Extract the first word of "lcov", so it can be a program name with args.
14431 set dummy lcov; ac_word=$2
14432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14433 $as_echo_n "checking for $ac_word... " >&6; }
14434 if ${ac_cv_prog_LCOV+:} false; then :
14435   $as_echo_n "(cached) " >&6
14436 else
14437   if test -n "$LCOV"; then
14438   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14439 else
14440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14441 for as_dir in $PATH
14442 do
14443   IFS=$as_save_IFS
14444   test -z "$as_dir" && as_dir=.
14445     for ac_exec_ext in '' $ac_executable_extensions; do
14446   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14447     ac_cv_prog_LCOV="lcov"
14448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14449     break 2
14450   fi
14451 done
14452   done
14453 IFS=$as_save_IFS
14454
14455 fi
14456 fi
14457 LCOV=$ac_cv_prog_LCOV
14458 if test -n "$LCOV"; then
14459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14460 $as_echo "$LCOV" >&6; }
14461 else
14462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463 $as_echo "no" >&6; }
14464 fi
14465
14466
14467                 # Extract the first word of "genhtml", so it can be a program name with args.
14468 set dummy genhtml; ac_word=$2
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14470 $as_echo_n "checking for $ac_word... " >&6; }
14471 if ${ac_cv_prog_GENHTML+:} false; then :
14472   $as_echo_n "(cached) " >&6
14473 else
14474   if test -n "$GENHTML"; then
14475   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14476 else
14477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14478 for as_dir in $PATH
14479 do
14480   IFS=$as_save_IFS
14481   test -z "$as_dir" && as_dir=.
14482     for ac_exec_ext in '' $ac_executable_extensions; do
14483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14484     ac_cv_prog_GENHTML="genhtml"
14485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14486     break 2
14487   fi
14488 done
14489   done
14490 IFS=$as_save_IFS
14491
14492 fi
14493 fi
14494 GENHTML=$ac_cv_prog_GENHTML
14495 if test -n "$GENHTML"; then
14496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14497 $as_echo "$GENHTML" >&6; }
14498 else
14499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14500 $as_echo "no" >&6; }
14501 fi
14502
14503
14504
14505                 if  test "$LCOV" ; then :
14506
14507                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14508 $as_echo_n "checking for lcov version... " >&6; }
14509 if ${gnome_cv_lcov_version+:} false; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512
14513                                 gnome_cv_lcov_version=invalid
14514                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14515                                 for lcov_check_version in $lcov_version_list; do
14516                                         if test "$lcov_version" = "$lcov_check_version"; then
14517                                                 gnome_cv_lcov_version="$lcov_check_version (ok)"
14518                                         fi
14519                                 done
14520
14521 fi
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
14523 $as_echo "$gnome_cv_lcov_version" >&6; }
14524
14525 else
14526
14527                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14528                         as_fn_error $? "$lcov_msg" "$LINENO" 5
14529
14530 fi
14531
14532                 case $gnome_cv_lcov_version in
14533                         ""|invalid)
14534                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14535                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
14536                                 LCOV="exit 0;"
14537                         ;;
14538                 esac
14539
14540                 if  test -z "$GENHTML" ; then :
14541
14542                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14543
14544 fi
14545
14546                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14547                 CODE_COVERAGE_LDFLAGS="-lgcov"
14548
14549
14550
14551
14552 fi
14553
14554 GNOME_CODE_COVERAGE_RULES='
14555 # Code coverage
14556 #
14557 # Optional:
14558 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14559 #    (Default: $(top_builddir))
14560 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14561 #    by lcov for code coverage. (Default:
14562 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14563 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14564 #    reports to be created. (Default:
14565 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14566 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14567 #    (Default: empty)
14568 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14569 #    instance. (Default: empty)
14570 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14571 #
14572 # The generated report will be titled using the $(PACKAGE_NAME) and
14573 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14574 # use the git-version-gen script, available online.
14575
14576 # Optional variables
14577 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14578 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14579 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14580 CODE_COVERAGE_LCOV_OPTIONS ?=
14581 CODE_COVERAGE_GENHTML_OPTIONS ?=
14582 CODE_COVERAGE_IGNORE_PATTERN ?=
14583
14584 code_coverage_quiet = $(code_coverage_quiet_$(V))
14585 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14586 code_coverage_quiet_0 = --quiet
14587
14588 # Use recursive makes in order to ignore errors during check
14589 check-code-coverage:
14590 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14591         -$(MAKE) $(AM_MAKEFLAGS) -k check
14592         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14593 else
14594         @echo "Need to reconfigure with --enable-code-coverage"
14595 endif
14596
14597 # Capture code coverage data
14598 code-coverage-capture: code-coverage-capture-hook
14599 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14600         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(PACKAGE_NAME)-$(PACKAGE_VERSION)" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_OPTIONS)
14601         $(LCOV) $(code_coverage_quiet) --directory $(CODE_COVERAGE_DIRECTORY) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)"
14602         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14603         LANG=C $(GENHTML) $(code_coverage_quiet) --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)
14604         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14605 else
14606         @echo "Need to reconfigure with --enable-code-coverage"
14607 endif
14608
14609 # Hook rule executed before code-coverage-capture, overridable by the user
14610 code-coverage-capture-hook:
14611
14612 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14613 clean: code-coverage-clean
14614 code-coverage-clean:
14615         -$(LCOV) --directory $(top_builddir) -z
14616         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14617         -find . -name "*.gcda" -o -name "*.gcov" -delete
14618 endif
14619
14620 GITIGNOREFILES ?=
14621 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14622
14623 DISTCHECK_CONFIGURE_FLAGS ?=
14624 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14625
14626 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14627 '
14628
14629
14630
14631
14632
14633 if test "x$GCC" = "xyes"; then
14634
14635 case " $CFLAGS " in
14636 *[\     \ ]-Wall[\      \ ]*)
14637   ;;
14638 *)
14639   save_CFLAGS="$CFLAGS"
14640   CFLAGS="$CFLAGS -Wall"
14641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14642 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14644 /* end confdefs.h.  */
14645
14646 int
14647 main ()
14648 {
14649
14650   ;
14651   return 0;
14652 }
14653 _ACEOF
14654 if ac_fn_c_try_compile "$LINENO"; then :
14655   jh_has_option=yes
14656 else
14657   jh_has_option=no
14658 fi
14659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14661 $as_echo "$jh_has_option" >&6; }
14662   if test $jh_has_option = no; then
14663     CFLAGS="$save_CFLAGS"
14664   fi
14665   ;;
14666 esac
14667
14668 case " $CFLAGS " in
14669 *[\     \ ]-Werror=unused-variable[\    \ ]*)
14670   ;;
14671 *)
14672   save_CFLAGS="$CFLAGS"
14673   CFLAGS="$CFLAGS -Werror=unused-variable"
14674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14675 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h.  */
14678
14679 int
14680 main ()
14681 {
14682
14683   ;
14684   return 0;
14685 }
14686 _ACEOF
14687 if ac_fn_c_try_compile "$LINENO"; then :
14688   jh_has_option=yes
14689 else
14690   jh_has_option=no
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14694 $as_echo "$jh_has_option" >&6; }
14695   if test $jh_has_option = no; then
14696     CFLAGS="$save_CFLAGS"
14697   fi
14698   ;;
14699 esac
14700
14701 case " $CFLAGS " in
14702 *[\     \ ]-fno-strict-aliasing[\       \ ]*)
14703   ;;
14704 *)
14705   save_CFLAGS="$CFLAGS"
14706   CFLAGS="$CFLAGS -fno-strict-aliasing"
14707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14708 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14710 /* end confdefs.h.  */
14711
14712 int
14713 main ()
14714 {
14715
14716   ;
14717   return 0;
14718 }
14719 _ACEOF
14720 if ac_fn_c_try_compile "$LINENO"; then :
14721   jh_has_option=yes
14722 else
14723   jh_has_option=no
14724 fi
14725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14727 $as_echo "$jh_has_option" >&6; }
14728   if test $jh_has_option = no; then
14729     CFLAGS="$save_CFLAGS"
14730   fi
14731   ;;
14732 esac
14733
14734   case $host_os in
14735   solaris*)
14736     ;;
14737   *)
14738
14739 case " $CFLAGS " in
14740 *[\     \ ]-std=c9x[\   \ ]*)
14741   ;;
14742 *)
14743   save_CFLAGS="$CFLAGS"
14744   CFLAGS="$CFLAGS -std=c9x"
14745   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c9x" >&5
14746 $as_echo_n "checking whether $CC understands -std=c9x... " >&6; }
14747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14748 /* end confdefs.h.  */
14749
14750 int
14751 main ()
14752 {
14753
14754   ;
14755   return 0;
14756 }
14757 _ACEOF
14758 if ac_fn_c_try_compile "$LINENO"; then :
14759   jh_has_option=yes
14760 else
14761   jh_has_option=no
14762 fi
14763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14765 $as_echo "$jh_has_option" >&6; }
14766   if test $jh_has_option = no; then
14767     CFLAGS="$save_CFLAGS"
14768   fi
14769   ;;
14770 esac
14771     ;;
14772   esac
14773
14774 fi
14775
14776 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14777 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14778
14779 ac_config_files="$ac_config_files Makefile pygobject-3.0.pc pygobject-3.0-uninstalled.pc gi/Makefile gi/repository/Makefile gi/overrides/Makefile gi/_glib/Makefile gi/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
14780
14781 cat >confcache <<\_ACEOF
14782 # This file is a shell script that caches the results of configure
14783 # tests run on this system so they can be shared between configure
14784 # scripts and configure runs, see configure's option --config-cache.
14785 # It is not useful on other systems.  If it contains results you don't
14786 # want to keep, you may remove or edit it.
14787 #
14788 # config.status only pays attention to the cache file if you give it
14789 # the --recheck option to rerun configure.
14790 #
14791 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14792 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14793 # following values.
14794
14795 _ACEOF
14796
14797 # The following way of writing the cache mishandles newlines in values,
14798 # but we know of no workaround that is simple, portable, and efficient.
14799 # So, we kill variables containing newlines.
14800 # Ultrix sh set writes to stderr and can't be redirected directly,
14801 # and sets the high bit in the cache file unless we assign to the vars.
14802 (
14803   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14804     eval ac_val=\$$ac_var
14805     case $ac_val in #(
14806     *${as_nl}*)
14807       case $ac_var in #(
14808       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14809 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14810       esac
14811       case $ac_var in #(
14812       _ | IFS | as_nl) ;; #(
14813       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14814       *) { eval $ac_var=; unset $ac_var;} ;;
14815       esac ;;
14816     esac
14817   done
14818
14819   (set) 2>&1 |
14820     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14821     *${as_nl}ac_space=\ *)
14822       # `set' does not quote correctly, so add quotes: double-quote
14823       # substitution turns \\\\ into \\, and sed turns \\ into \.
14824       sed -n \
14825         "s/'/'\\\\''/g;
14826           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14827       ;; #(
14828     *)
14829       # `set' quotes correctly as required by POSIX, so do not add quotes.
14830       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14831       ;;
14832     esac |
14833     sort
14834 ) |
14835   sed '
14836      /^ac_cv_env_/b end
14837      t clear
14838      :clear
14839      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14840      t end
14841      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14842      :end' >>confcache
14843 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14844   if test -w "$cache_file"; then
14845     if test "x$cache_file" != "x/dev/null"; then
14846       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14847 $as_echo "$as_me: updating cache $cache_file" >&6;}
14848       if test ! -f "$cache_file" || test -h "$cache_file"; then
14849         cat confcache >"$cache_file"
14850       else
14851         case $cache_file in #(
14852         */* | ?:*)
14853           mv -f confcache "$cache_file"$$ &&
14854           mv -f "$cache_file"$$ "$cache_file" ;; #(
14855         *)
14856           mv -f confcache "$cache_file" ;;
14857         esac
14858       fi
14859     fi
14860   else
14861     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14862 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14863   fi
14864 fi
14865 rm -f confcache
14866
14867 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14868 # Let make expand exec_prefix.
14869 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14870
14871 DEFS=-DHAVE_CONFIG_H
14872
14873 ac_libobjs=
14874 ac_ltlibobjs=
14875 U=
14876 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14877   # 1. Remove the extension, and $U if already installed.
14878   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14879   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14880   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14881   #    will be set to the directory where LIBOBJS objects are built.
14882   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14883   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14884 done
14885 LIBOBJS=$ac_libobjs
14886
14887 LTLIBOBJS=$ac_ltlibobjs
14888
14889
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14891 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14892    if test -n "$am_sleep_pid"; then
14893      # Hide warnings about reused PIDs.
14894      wait $am_sleep_pid 2>/dev/null
14895    fi
14896    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14897 $as_echo "done" >&6; }
14898  if test -n "$EXEEXT"; then
14899   am__EXEEXT_TRUE=
14900   am__EXEEXT_FALSE='#'
14901 else
14902   am__EXEEXT_TRUE='#'
14903   am__EXEEXT_FALSE=
14904 fi
14905
14906 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14907   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14909 fi
14910 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14911   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14913 fi
14914 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14915   as_fn_error $? "conditional \"AMDEP\" was never defined.
14916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14917 fi
14918 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14919   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14921 fi
14922 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14923   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14925 fi
14926 if test -z "${HAVE_LIBFFI_TRUE}" && test -z "${HAVE_LIBFFI_FALSE}"; then
14927   as_fn_error $? "conditional \"HAVE_LIBFFI\" was never defined.
14928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14929 fi
14930 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14931   as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14933 fi
14934 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14935   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14937 fi
14938
14939 : "${CONFIG_STATUS=./config.status}"
14940 ac_write_fail=0
14941 ac_clean_files_save=$ac_clean_files
14942 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14944 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14945 as_write_fail=0
14946 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14947 #! $SHELL
14948 # Generated by $as_me.
14949 # Run this file to recreate the current configuration.
14950 # Compiler output produced by configure, useful for debugging
14951 # configure, is in config.log if it exists.
14952
14953 debug=false
14954 ac_cs_recheck=false
14955 ac_cs_silent=false
14956
14957 SHELL=\${CONFIG_SHELL-$SHELL}
14958 export SHELL
14959 _ASEOF
14960 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14961 ## -------------------- ##
14962 ## M4sh Initialization. ##
14963 ## -------------------- ##
14964
14965 # Be more Bourne compatible
14966 DUALCASE=1; export DUALCASE # for MKS sh
14967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14968   emulate sh
14969   NULLCMD=:
14970   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14971   # is contrary to our usage.  Disable this feature.
14972   alias -g '${1+"$@"}'='"$@"'
14973   setopt NO_GLOB_SUBST
14974 else
14975   case `(set -o) 2>/dev/null` in #(
14976   *posix*) :
14977     set -o posix ;; #(
14978   *) :
14979      ;;
14980 esac
14981 fi
14982
14983
14984 as_nl='
14985 '
14986 export as_nl
14987 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14988 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14989 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14990 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14991 # Prefer a ksh shell builtin over an external printf program on Solaris,
14992 # but without wasting forks for bash or zsh.
14993 if test -z "$BASH_VERSION$ZSH_VERSION" \
14994     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14995   as_echo='print -r --'
14996   as_echo_n='print -rn --'
14997 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14998   as_echo='printf %s\n'
14999   as_echo_n='printf %s'
15000 else
15001   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15002     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15003     as_echo_n='/usr/ucb/echo -n'
15004   else
15005     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15006     as_echo_n_body='eval
15007       arg=$1;
15008       case $arg in #(
15009       *"$as_nl"*)
15010         expr "X$arg" : "X\\(.*\\)$as_nl";
15011         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15012       esac;
15013       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15014     '
15015     export as_echo_n_body
15016     as_echo_n='sh -c $as_echo_n_body as_echo'
15017   fi
15018   export as_echo_body
15019   as_echo='sh -c $as_echo_body as_echo'
15020 fi
15021
15022 # The user is always right.
15023 if test "${PATH_SEPARATOR+set}" != set; then
15024   PATH_SEPARATOR=:
15025   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15026     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15027       PATH_SEPARATOR=';'
15028   }
15029 fi
15030
15031
15032 # IFS
15033 # We need space, tab and new line, in precisely that order.  Quoting is
15034 # there to prevent editors from complaining about space-tab.
15035 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15036 # splitting by setting IFS to empty value.)
15037 IFS=" ""        $as_nl"
15038
15039 # Find who we are.  Look in the path if we contain no directory separator.
15040 as_myself=
15041 case $0 in #((
15042   *[\\/]* ) as_myself=$0 ;;
15043   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15044 for as_dir in $PATH
15045 do
15046   IFS=$as_save_IFS
15047   test -z "$as_dir" && as_dir=.
15048     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15049   done
15050 IFS=$as_save_IFS
15051
15052      ;;
15053 esac
15054 # We did not find ourselves, most probably we were run as `sh COMMAND'
15055 # in which case we are not to be found in the path.
15056 if test "x$as_myself" = x; then
15057   as_myself=$0
15058 fi
15059 if test ! -f "$as_myself"; then
15060   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15061   exit 1
15062 fi
15063
15064 # Unset variables that we do not need and which cause bugs (e.g. in
15065 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15066 # suppresses any "Segmentation fault" message there.  '((' could
15067 # trigger a bug in pdksh 5.2.14.
15068 for as_var in BASH_ENV ENV MAIL MAILPATH
15069 do eval test x\${$as_var+set} = xset \
15070   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15071 done
15072 PS1='$ '
15073 PS2='> '
15074 PS4='+ '
15075
15076 # NLS nuisances.
15077 LC_ALL=C
15078 export LC_ALL
15079 LANGUAGE=C
15080 export LANGUAGE
15081
15082 # CDPATH.
15083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15084
15085
15086 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15087 # ----------------------------------------
15088 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15089 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15090 # script with STATUS, using 1 if that was 0.
15091 as_fn_error ()
15092 {
15093   as_status=$1; test $as_status -eq 0 && as_status=1
15094   if test "$4"; then
15095     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15096     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15097   fi
15098   $as_echo "$as_me: error: $2" >&2
15099   as_fn_exit $as_status
15100 } # as_fn_error
15101
15102
15103 # as_fn_set_status STATUS
15104 # -----------------------
15105 # Set $? to STATUS, without forking.
15106 as_fn_set_status ()
15107 {
15108   return $1
15109 } # as_fn_set_status
15110
15111 # as_fn_exit STATUS
15112 # -----------------
15113 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15114 as_fn_exit ()
15115 {
15116   set +e
15117   as_fn_set_status $1
15118   exit $1
15119 } # as_fn_exit
15120
15121 # as_fn_unset VAR
15122 # ---------------
15123 # Portably unset VAR.
15124 as_fn_unset ()
15125 {
15126   { eval $1=; unset $1;}
15127 }
15128 as_unset=as_fn_unset
15129 # as_fn_append VAR VALUE
15130 # ----------------------
15131 # Append the text in VALUE to the end of the definition contained in VAR. Take
15132 # advantage of any shell optimizations that allow amortized linear growth over
15133 # repeated appends, instead of the typical quadratic growth present in naive
15134 # implementations.
15135 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15136   eval 'as_fn_append ()
15137   {
15138     eval $1+=\$2
15139   }'
15140 else
15141   as_fn_append ()
15142   {
15143     eval $1=\$$1\$2
15144   }
15145 fi # as_fn_append
15146
15147 # as_fn_arith ARG...
15148 # ------------------
15149 # Perform arithmetic evaluation on the ARGs, and store the result in the
15150 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15151 # must be portable across $(()) and expr.
15152 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15153   eval 'as_fn_arith ()
15154   {
15155     as_val=$(( $* ))
15156   }'
15157 else
15158   as_fn_arith ()
15159   {
15160     as_val=`expr "$@" || test $? -eq 1`
15161   }
15162 fi # as_fn_arith
15163
15164
15165 if expr a : '\(a\)' >/dev/null 2>&1 &&
15166    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15167   as_expr=expr
15168 else
15169   as_expr=false
15170 fi
15171
15172 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15173   as_basename=basename
15174 else
15175   as_basename=false
15176 fi
15177
15178 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15179   as_dirname=dirname
15180 else
15181   as_dirname=false
15182 fi
15183
15184 as_me=`$as_basename -- "$0" ||
15185 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15186          X"$0" : 'X\(//\)$' \| \
15187          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15188 $as_echo X/"$0" |
15189     sed '/^.*\/\([^/][^/]*\)\/*$/{
15190             s//\1/
15191             q
15192           }
15193           /^X\/\(\/\/\)$/{
15194             s//\1/
15195             q
15196           }
15197           /^X\/\(\/\).*/{
15198             s//\1/
15199             q
15200           }
15201           s/.*/./; q'`
15202
15203 # Avoid depending upon Character Ranges.
15204 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15205 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15206 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15207 as_cr_digits='0123456789'
15208 as_cr_alnum=$as_cr_Letters$as_cr_digits
15209
15210 ECHO_C= ECHO_N= ECHO_T=
15211 case `echo -n x` in #(((((
15212 -n*)
15213   case `echo 'xy\c'` in
15214   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15215   xy)  ECHO_C='\c';;
15216   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15217        ECHO_T=' ';;
15218   esac;;
15219 *)
15220   ECHO_N='-n';;
15221 esac
15222
15223 rm -f conf$$ conf$$.exe conf$$.file
15224 if test -d conf$$.dir; then
15225   rm -f conf$$.dir/conf$$.file
15226 else
15227   rm -f conf$$.dir
15228   mkdir conf$$.dir 2>/dev/null
15229 fi
15230 if (echo >conf$$.file) 2>/dev/null; then
15231   if ln -s conf$$.file conf$$ 2>/dev/null; then
15232     as_ln_s='ln -s'
15233     # ... but there are two gotchas:
15234     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15235     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15236     # In both cases, we have to default to `cp -pR'.
15237     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15238       as_ln_s='cp -pR'
15239   elif ln conf$$.file conf$$ 2>/dev/null; then
15240     as_ln_s=ln
15241   else
15242     as_ln_s='cp -pR'
15243   fi
15244 else
15245   as_ln_s='cp -pR'
15246 fi
15247 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15248 rmdir conf$$.dir 2>/dev/null
15249
15250
15251 # as_fn_mkdir_p
15252 # -------------
15253 # Create "$as_dir" as a directory, including parents if necessary.
15254 as_fn_mkdir_p ()
15255 {
15256
15257   case $as_dir in #(
15258   -*) as_dir=./$as_dir;;
15259   esac
15260   test -d "$as_dir" || eval $as_mkdir_p || {
15261     as_dirs=
15262     while :; do
15263       case $as_dir in #(
15264       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15265       *) as_qdir=$as_dir;;
15266       esac
15267       as_dirs="'$as_qdir' $as_dirs"
15268       as_dir=`$as_dirname -- "$as_dir" ||
15269 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15270          X"$as_dir" : 'X\(//\)[^/]' \| \
15271          X"$as_dir" : 'X\(//\)$' \| \
15272          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15273 $as_echo X"$as_dir" |
15274     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15275             s//\1/
15276             q
15277           }
15278           /^X\(\/\/\)[^/].*/{
15279             s//\1/
15280             q
15281           }
15282           /^X\(\/\/\)$/{
15283             s//\1/
15284             q
15285           }
15286           /^X\(\/\).*/{
15287             s//\1/
15288             q
15289           }
15290           s/.*/./; q'`
15291       test -d "$as_dir" && break
15292     done
15293     test -z "$as_dirs" || eval "mkdir $as_dirs"
15294   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15295
15296
15297 } # as_fn_mkdir_p
15298 if mkdir -p . 2>/dev/null; then
15299   as_mkdir_p='mkdir -p "$as_dir"'
15300 else
15301   test -d ./-p && rmdir ./-p
15302   as_mkdir_p=false
15303 fi
15304
15305
15306 # as_fn_executable_p FILE
15307 # -----------------------
15308 # Test if FILE is an executable regular file.
15309 as_fn_executable_p ()
15310 {
15311   test -f "$1" && test -x "$1"
15312 } # as_fn_executable_p
15313 as_test_x='test -x'
15314 as_executable_p=as_fn_executable_p
15315
15316 # Sed expression to map a string onto a valid CPP name.
15317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15318
15319 # Sed expression to map a string onto a valid variable name.
15320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15321
15322
15323 exec 6>&1
15324 ## ----------------------------------- ##
15325 ## Main body of $CONFIG_STATUS script. ##
15326 ## ----------------------------------- ##
15327 _ASEOF
15328 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15329
15330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15331 # Save the log message, to keep $0 and so on meaningful, and to
15332 # report actual input values of CONFIG_FILES etc. instead of their
15333 # values after options handling.
15334 ac_log="
15335 This file was extended by pygobject $as_me 3.9.91, which was
15336 generated by GNU Autoconf 2.69.  Invocation command line was
15337
15338   CONFIG_FILES    = $CONFIG_FILES
15339   CONFIG_HEADERS  = $CONFIG_HEADERS
15340   CONFIG_LINKS    = $CONFIG_LINKS
15341   CONFIG_COMMANDS = $CONFIG_COMMANDS
15342   $ $0 $@
15343
15344 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15345 "
15346
15347 _ACEOF
15348
15349 case $ac_config_files in *"
15350 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15351 esac
15352
15353 case $ac_config_headers in *"
15354 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15355 esac
15356
15357
15358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15359 # Files that config.status was made for.
15360 config_files="$ac_config_files"
15361 config_headers="$ac_config_headers"
15362 config_commands="$ac_config_commands"
15363
15364 _ACEOF
15365
15366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15367 ac_cs_usage="\
15368 \`$as_me' instantiates files and other configuration actions
15369 from templates according to the current configuration.  Unless the files
15370 and actions are specified as TAGs, all are instantiated by default.
15371
15372 Usage: $0 [OPTION]... [TAG]...
15373
15374   -h, --help       print this help, then exit
15375   -V, --version    print version number and configuration settings, then exit
15376       --config     print configuration, then exit
15377   -q, --quiet, --silent
15378                    do not print progress messages
15379   -d, --debug      don't remove temporary files
15380       --recheck    update $as_me by reconfiguring in the same conditions
15381       --file=FILE[:TEMPLATE]
15382                    instantiate the configuration file FILE
15383       --header=FILE[:TEMPLATE]
15384                    instantiate the configuration header FILE
15385
15386 Configuration files:
15387 $config_files
15388
15389 Configuration headers:
15390 $config_headers
15391
15392 Configuration commands:
15393 $config_commands
15394
15395 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15396 pygobject home page: <https://live.gnome.org/PyGObject/>."
15397
15398 _ACEOF
15399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15400 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15401 ac_cs_version="\\
15402 pygobject config.status 3.9.91
15403 configured by $0, generated by GNU Autoconf 2.69,
15404   with options \\"\$ac_cs_config\\"
15405
15406 Copyright (C) 2012 Free Software Foundation, Inc.
15407 This config.status script is free software; the Free Software Foundation
15408 gives unlimited permission to copy, distribute and modify it."
15409
15410 ac_pwd='$ac_pwd'
15411 srcdir='$srcdir'
15412 INSTALL='$INSTALL'
15413 MKDIR_P='$MKDIR_P'
15414 AWK='$AWK'
15415 test -n "\$AWK" || AWK=awk
15416 _ACEOF
15417
15418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15419 # The default lists apply if the user does not specify any file.
15420 ac_need_defaults=:
15421 while test $# != 0
15422 do
15423   case $1 in
15424   --*=?*)
15425     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15426     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15427     ac_shift=:
15428     ;;
15429   --*=)
15430     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15431     ac_optarg=
15432     ac_shift=:
15433     ;;
15434   *)
15435     ac_option=$1
15436     ac_optarg=$2
15437     ac_shift=shift
15438     ;;
15439   esac
15440
15441   case $ac_option in
15442   # Handling of the options.
15443   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15444     ac_cs_recheck=: ;;
15445   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15446     $as_echo "$ac_cs_version"; exit ;;
15447   --config | --confi | --conf | --con | --co | --c )
15448     $as_echo "$ac_cs_config"; exit ;;
15449   --debug | --debu | --deb | --de | --d | -d )
15450     debug=: ;;
15451   --file | --fil | --fi | --f )
15452     $ac_shift
15453     case $ac_optarg in
15454     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15455     '') as_fn_error $? "missing file argument" ;;
15456     esac
15457     as_fn_append CONFIG_FILES " '$ac_optarg'"
15458     ac_need_defaults=false;;
15459   --header | --heade | --head | --hea )
15460     $ac_shift
15461     case $ac_optarg in
15462     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15463     esac
15464     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15465     ac_need_defaults=false;;
15466   --he | --h)
15467     # Conflict between --help and --header
15468     as_fn_error $? "ambiguous option: \`$1'
15469 Try \`$0 --help' for more information.";;
15470   --help | --hel | -h )
15471     $as_echo "$ac_cs_usage"; exit ;;
15472   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15473   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15474     ac_cs_silent=: ;;
15475
15476   # This is an error.
15477   -*) as_fn_error $? "unrecognized option: \`$1'
15478 Try \`$0 --help' for more information." ;;
15479
15480   *) as_fn_append ac_config_targets " $1"
15481      ac_need_defaults=false ;;
15482
15483   esac
15484   shift
15485 done
15486
15487 ac_configure_extra_args=
15488
15489 if $ac_cs_silent; then
15490   exec 6>/dev/null
15491   ac_configure_extra_args="$ac_configure_extra_args --silent"
15492 fi
15493
15494 _ACEOF
15495 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15496 if \$ac_cs_recheck; then
15497   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15498   shift
15499   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15500   CONFIG_SHELL='$SHELL'
15501   export CONFIG_SHELL
15502   exec "\$@"
15503 fi
15504
15505 _ACEOF
15506 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15507 exec 5>>config.log
15508 {
15509   echo
15510   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15511 ## Running $as_me. ##
15512 _ASBOX
15513   $as_echo "$ac_log"
15514 } >&5
15515
15516 _ACEOF
15517 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15518 #
15519 # INIT-COMMANDS
15520 #
15521 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15522
15523
15524 # The HP-UX ksh and POSIX shell print the target directory to stdout
15525 # if CDPATH is set.
15526 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15527
15528 sed_quote_subst='$sed_quote_subst'
15529 double_quote_subst='$double_quote_subst'
15530 delay_variable_subst='$delay_variable_subst'
15531 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15532 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15533 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15534 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15535 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15536 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15537 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15538 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15539 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15540 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15541 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15542 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15543 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15544 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15545 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15546 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15547 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15548 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15549 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15550 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15551 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15552 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15553 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15554 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15555 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15556 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15557 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15558 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15559 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15560 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15561 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15562 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15563 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15564 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15565 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15566 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15567 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15568 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15569 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15570 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15571 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15572 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15573 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15574 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15575 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15576 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15577 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15578 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15579 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15580 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15581 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15582 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15583 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15584 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15585 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15586 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15587 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15588 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"`'
15589 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15590 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15591 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15592 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15593 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15594 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15595 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15596 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15597 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15598 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15599 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15600 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15601 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15602 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15603 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15604 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15605 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15606 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15607 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15608 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15609 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15610 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15611 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15612 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15613 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15614 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15615 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15616 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15617 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15618 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15619 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15620 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15621 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15622 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15623 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15624 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15625 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15626 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15627 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15628 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15629 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15630 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15631 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15632 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15633 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15634 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15635 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15636 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15637 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15638 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15639 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15640 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15641 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15642 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15643 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15644 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15645 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15646 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15647 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15648 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15649 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15650 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15651 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15652 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15653 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15654 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15655 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15656 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15657 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15658 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15659 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15660 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15661 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15662
15663 LTCC='$LTCC'
15664 LTCFLAGS='$LTCFLAGS'
15665 compiler='$compiler_DEFAULT'
15666
15667 # A function that is used when there is no print builtin or printf.
15668 func_fallback_echo ()
15669 {
15670   eval 'cat <<_LTECHO_EOF
15671 \$1
15672 _LTECHO_EOF'
15673 }
15674
15675 # Quote evaled strings.
15676 for var in AS \
15677 DLLTOOL \
15678 OBJDUMP \
15679 SHELL \
15680 ECHO \
15681 PATH_SEPARATOR \
15682 SED \
15683 GREP \
15684 EGREP \
15685 FGREP \
15686 LD \
15687 NM \
15688 LN_S \
15689 lt_SP2NL \
15690 lt_NL2SP \
15691 reload_flag \
15692 deplibs_check_method \
15693 file_magic_cmd \
15694 file_magic_glob \
15695 want_nocaseglob \
15696 sharedlib_from_linklib_cmd \
15697 AR \
15698 AR_FLAGS \
15699 archiver_list_spec \
15700 STRIP \
15701 RANLIB \
15702 CC \
15703 CFLAGS \
15704 compiler \
15705 lt_cv_sys_global_symbol_pipe \
15706 lt_cv_sys_global_symbol_to_cdecl \
15707 lt_cv_sys_global_symbol_to_c_name_address \
15708 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15709 nm_file_list_spec \
15710 lt_prog_compiler_no_builtin_flag \
15711 lt_prog_compiler_pic \
15712 lt_prog_compiler_wl \
15713 lt_prog_compiler_static \
15714 lt_cv_prog_compiler_c_o \
15715 need_locks \
15716 MANIFEST_TOOL \
15717 DSYMUTIL \
15718 NMEDIT \
15719 LIPO \
15720 OTOOL \
15721 OTOOL64 \
15722 shrext_cmds \
15723 export_dynamic_flag_spec \
15724 whole_archive_flag_spec \
15725 compiler_needs_object \
15726 with_gnu_ld \
15727 allow_undefined_flag \
15728 no_undefined_flag \
15729 hardcode_libdir_flag_spec \
15730 hardcode_libdir_separator \
15731 exclude_expsyms \
15732 include_expsyms \
15733 file_list_spec \
15734 variables_saved_for_relink \
15735 libname_spec \
15736 library_names_spec \
15737 soname_spec \
15738 install_override_mode \
15739 finish_eval \
15740 old_striplib \
15741 striplib; do
15742     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15743     *[\\\\\\\`\\"\\\$]*)
15744       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15745       ;;
15746     *)
15747       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15748       ;;
15749     esac
15750 done
15751
15752 # Double-quote double-evaled strings.
15753 for var in reload_cmds \
15754 old_postinstall_cmds \
15755 old_postuninstall_cmds \
15756 old_archive_cmds \
15757 extract_expsyms_cmds \
15758 old_archive_from_new_cmds \
15759 old_archive_from_expsyms_cmds \
15760 archive_cmds \
15761 archive_expsym_cmds \
15762 module_cmds \
15763 module_expsym_cmds \
15764 export_symbols_cmds \
15765 prelink_cmds \
15766 postlink_cmds \
15767 postinstall_cmds \
15768 postuninstall_cmds \
15769 finish_cmds \
15770 sys_lib_search_path_spec \
15771 sys_lib_dlsearch_path_spec; do
15772     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15773     *[\\\\\\\`\\"\\\$]*)
15774       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15775       ;;
15776     *)
15777       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15778       ;;
15779     esac
15780 done
15781
15782 ac_aux_dir='$ac_aux_dir'
15783 xsi_shell='$xsi_shell'
15784 lt_shell_append='$lt_shell_append'
15785
15786 # See if we are running on zsh, and set the options which allow our
15787 # commands through without removal of \ escapes INIT.
15788 if test -n "\${ZSH_VERSION+set}" ; then
15789    setopt NO_GLOB_SUBST
15790 fi
15791
15792
15793     PACKAGE='$PACKAGE'
15794     VERSION='$VERSION'
15795     TIMESTAMP='$TIMESTAMP'
15796     RM='$RM'
15797     ofile='$ofile'
15798
15799
15800
15801
15802 _ACEOF
15803
15804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15805
15806 # Handling of arguments.
15807 for ac_config_target in $ac_config_targets
15808 do
15809   case $ac_config_target in
15810     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15811     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15812     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15813     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15814     "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15815     "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15816     "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15817     "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15818     "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15819     "gi/_glib/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_glib/Makefile" ;;
15820     "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15821     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15822     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15823     "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15824     "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15825
15826   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15827   esac
15828 done
15829
15830
15831 # If the user did not use the arguments to specify the items to instantiate,
15832 # then the envvar interface is used.  Set only those that are not.
15833 # We use the long form for the default assignment because of an extremely
15834 # bizarre bug on SunOS 4.1.3.
15835 if $ac_need_defaults; then
15836   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15837   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15838   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15839 fi
15840
15841 # Have a temporary directory for convenience.  Make it in the build tree
15842 # simply because there is no reason against having it here, and in addition,
15843 # creating and moving files from /tmp can sometimes cause problems.
15844 # Hook for its removal unless debugging.
15845 # Note that there is a small window in which the directory will not be cleaned:
15846 # after its creation but before its name has been assigned to `$tmp'.
15847 $debug ||
15848 {
15849   tmp= ac_tmp=
15850   trap 'exit_status=$?
15851   : "${ac_tmp:=$tmp}"
15852   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15853 ' 0
15854   trap 'as_fn_exit 1' 1 2 13 15
15855 }
15856 # Create a (secure) tmp directory for tmp files.
15857
15858 {
15859   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15860   test -d "$tmp"
15861 }  ||
15862 {
15863   tmp=./conf$$-$RANDOM
15864   (umask 077 && mkdir "$tmp")
15865 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15866 ac_tmp=$tmp
15867
15868 # Set up the scripts for CONFIG_FILES section.
15869 # No need to generate them if there are no CONFIG_FILES.
15870 # This happens for instance with `./config.status config.h'.
15871 if test -n "$CONFIG_FILES"; then
15872
15873
15874 ac_cr=`echo X | tr X '\015'`
15875 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15876 # But we know of no other shell where ac_cr would be empty at this
15877 # point, so we can use a bashism as a fallback.
15878 if test "x$ac_cr" = x; then
15879   eval ac_cr=\$\'\\r\'
15880 fi
15881 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15882 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15883   ac_cs_awk_cr='\\r'
15884 else
15885   ac_cs_awk_cr=$ac_cr
15886 fi
15887
15888 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15889 _ACEOF
15890
15891
15892 {
15893   echo "cat >conf$$subs.awk <<_ACEOF" &&
15894   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15895   echo "_ACEOF"
15896 } >conf$$subs.sh ||
15897   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15898 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15899 ac_delim='%!_!# '
15900 for ac_last_try in false false false false false :; do
15901   . ./conf$$subs.sh ||
15902     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15903
15904   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15905   if test $ac_delim_n = $ac_delim_num; then
15906     break
15907   elif $ac_last_try; then
15908     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15909   else
15910     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15911   fi
15912 done
15913 rm -f conf$$subs.sh
15914
15915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15916 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15917 _ACEOF
15918 sed -n '
15919 h
15920 s/^/S["/; s/!.*/"]=/
15921 p
15922 g
15923 s/^[^!]*!//
15924 :repl
15925 t repl
15926 s/'"$ac_delim"'$//
15927 t delim
15928 :nl
15929 h
15930 s/\(.\{148\}\)..*/\1/
15931 t more1
15932 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15933 p
15934 n
15935 b repl
15936 :more1
15937 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15938 p
15939 g
15940 s/.\{148\}//
15941 t nl
15942 :delim
15943 h
15944 s/\(.\{148\}\)..*/\1/
15945 t more2
15946 s/["\\]/\\&/g; s/^/"/; s/$/"/
15947 p
15948 b
15949 :more2
15950 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15951 p
15952 g
15953 s/.\{148\}//
15954 t delim
15955 ' <conf$$subs.awk | sed '
15956 /^[^""]/{
15957   N
15958   s/\n//
15959 }
15960 ' >>$CONFIG_STATUS || ac_write_fail=1
15961 rm -f conf$$subs.awk
15962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15963 _ACAWK
15964 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15965   for (key in S) S_is_set[key] = 1
15966   FS = "\a"
15967
15968 }
15969 {
15970   line = $ 0
15971   nfields = split(line, field, "@")
15972   substed = 0
15973   len = length(field[1])
15974   for (i = 2; i < nfields; i++) {
15975     key = field[i]
15976     keylen = length(key)
15977     if (S_is_set[key]) {
15978       value = S[key]
15979       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15980       len += length(value) + length(field[++i])
15981       substed = 1
15982     } else
15983       len += 1 + keylen
15984   }
15985
15986   print line
15987 }
15988
15989 _ACAWK
15990 _ACEOF
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15993   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15994 else
15995   cat
15996 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15997   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15998 _ACEOF
15999
16000 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16001 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16002 # trailing colons and then remove the whole line if VPATH becomes empty
16003 # (actually we leave an empty line to preserve line numbers).
16004 if test "x$srcdir" = x.; then
16005   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16006 h
16007 s///
16008 s/^/:/
16009 s/[      ]*$/:/
16010 s/:\$(srcdir):/:/g
16011 s/:\${srcdir}:/:/g
16012 s/:@srcdir@:/:/g
16013 s/^:*//
16014 s/:*$//
16015 x
16016 s/\(=[   ]*\).*/\1/
16017 G
16018 s/\n//
16019 s/^[^=]*=[       ]*$//
16020 }'
16021 fi
16022
16023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16024 fi # test -n "$CONFIG_FILES"
16025
16026 # Set up the scripts for CONFIG_HEADERS section.
16027 # No need to generate them if there are no CONFIG_HEADERS.
16028 # This happens for instance with `./config.status Makefile'.
16029 if test -n "$CONFIG_HEADERS"; then
16030 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16031 BEGIN {
16032 _ACEOF
16033
16034 # Transform confdefs.h into an awk script `defines.awk', embedded as
16035 # here-document in config.status, that substitutes the proper values into
16036 # config.h.in to produce config.h.
16037
16038 # Create a delimiter string that does not exist in confdefs.h, to ease
16039 # handling of long lines.
16040 ac_delim='%!_!# '
16041 for ac_last_try in false false :; do
16042   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16043   if test -z "$ac_tt"; then
16044     break
16045   elif $ac_last_try; then
16046     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16047   else
16048     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16049   fi
16050 done
16051
16052 # For the awk script, D is an array of macro values keyed by name,
16053 # likewise P contains macro parameters if any.  Preserve backslash
16054 # newline sequences.
16055
16056 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16057 sed -n '
16058 s/.\{148\}/&'"$ac_delim"'/g
16059 t rset
16060 :rset
16061 s/^[     ]*#[    ]*define[       ][      ]*/ /
16062 t def
16063 d
16064 :def
16065 s/\\$//
16066 t bsnl
16067 s/["\\]/\\&/g
16068 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16069 D["\1"]=" \3"/p
16070 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16071 d
16072 :bsnl
16073 s/["\\]/\\&/g
16074 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16075 D["\1"]=" \3\\\\\\n"\\/p
16076 t cont
16077 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16078 t cont
16079 d
16080 :cont
16081 n
16082 s/.\{148\}/&'"$ac_delim"'/g
16083 t clear
16084 :clear
16085 s/\\$//
16086 t bsnlc
16087 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16088 d
16089 :bsnlc
16090 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16091 b cont
16092 ' <confdefs.h | sed '
16093 s/'"$ac_delim"'/"\\\
16094 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16095
16096 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097   for (key in D) D_is_set[key] = 1
16098   FS = "\a"
16099 }
16100 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16101   line = \$ 0
16102   split(line, arg, " ")
16103   if (arg[1] == "#") {
16104     defundef = arg[2]
16105     mac1 = arg[3]
16106   } else {
16107     defundef = substr(arg[1], 2)
16108     mac1 = arg[2]
16109   }
16110   split(mac1, mac2, "(") #)
16111   macro = mac2[1]
16112   prefix = substr(line, 1, index(line, defundef) - 1)
16113   if (D_is_set[macro]) {
16114     # Preserve the white space surrounding the "#".
16115     print prefix "define", macro P[macro] D[macro]
16116     next
16117   } else {
16118     # Replace #undef with comments.  This is necessary, for example,
16119     # in the case of _POSIX_SOURCE, which is predefined and required
16120     # on some systems where configure will not decide to define it.
16121     if (defundef == "undef") {
16122       print "/*", prefix defundef, macro, "*/"
16123       next
16124     }
16125   }
16126 }
16127 { print }
16128 _ACAWK
16129 _ACEOF
16130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16132 fi # test -n "$CONFIG_HEADERS"
16133
16134
16135 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16136 shift
16137 for ac_tag
16138 do
16139   case $ac_tag in
16140   :[FHLC]) ac_mode=$ac_tag; continue;;
16141   esac
16142   case $ac_mode$ac_tag in
16143   :[FHL]*:*);;
16144   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16145   :[FH]-) ac_tag=-:-;;
16146   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16147   esac
16148   ac_save_IFS=$IFS
16149   IFS=:
16150   set x $ac_tag
16151   IFS=$ac_save_IFS
16152   shift
16153   ac_file=$1
16154   shift
16155
16156   case $ac_mode in
16157   :L) ac_source=$1;;
16158   :[FH])
16159     ac_file_inputs=
16160     for ac_f
16161     do
16162       case $ac_f in
16163       -) ac_f="$ac_tmp/stdin";;
16164       *) # Look for the file first in the build tree, then in the source tree
16165          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16166          # because $ac_f cannot contain `:'.
16167          test -f "$ac_f" ||
16168            case $ac_f in
16169            [\\/$]*) false;;
16170            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16171            esac ||
16172            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16173       esac
16174       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16175       as_fn_append ac_file_inputs " '$ac_f'"
16176     done
16177
16178     # Let's still pretend it is `configure' which instantiates (i.e., don't
16179     # use $as_me), people would be surprised to read:
16180     #    /* config.h.  Generated by config.status.  */
16181     configure_input='Generated from '`
16182           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16183         `' by configure.'
16184     if test x"$ac_file" != x-; then
16185       configure_input="$ac_file.  $configure_input"
16186       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16187 $as_echo "$as_me: creating $ac_file" >&6;}
16188     fi
16189     # Neutralize special characters interpreted by sed in replacement strings.
16190     case $configure_input in #(
16191     *\&* | *\|* | *\\* )
16192        ac_sed_conf_input=`$as_echo "$configure_input" |
16193        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16194     *) ac_sed_conf_input=$configure_input;;
16195     esac
16196
16197     case $ac_tag in
16198     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16199       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16200     esac
16201     ;;
16202   esac
16203
16204   ac_dir=`$as_dirname -- "$ac_file" ||
16205 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16206          X"$ac_file" : 'X\(//\)[^/]' \| \
16207          X"$ac_file" : 'X\(//\)$' \| \
16208          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16209 $as_echo X"$ac_file" |
16210     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16211             s//\1/
16212             q
16213           }
16214           /^X\(\/\/\)[^/].*/{
16215             s//\1/
16216             q
16217           }
16218           /^X\(\/\/\)$/{
16219             s//\1/
16220             q
16221           }
16222           /^X\(\/\).*/{
16223             s//\1/
16224             q
16225           }
16226           s/.*/./; q'`
16227   as_dir="$ac_dir"; as_fn_mkdir_p
16228   ac_builddir=.
16229
16230 case "$ac_dir" in
16231 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16232 *)
16233   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16234   # A ".." for each directory in $ac_dir_suffix.
16235   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16236   case $ac_top_builddir_sub in
16237   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16238   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16239   esac ;;
16240 esac
16241 ac_abs_top_builddir=$ac_pwd
16242 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16243 # for backward compatibility:
16244 ac_top_builddir=$ac_top_build_prefix
16245
16246 case $srcdir in
16247   .)  # We are building in place.
16248     ac_srcdir=.
16249     ac_top_srcdir=$ac_top_builddir_sub
16250     ac_abs_top_srcdir=$ac_pwd ;;
16251   [\\/]* | ?:[\\/]* )  # Absolute name.
16252     ac_srcdir=$srcdir$ac_dir_suffix;
16253     ac_top_srcdir=$srcdir
16254     ac_abs_top_srcdir=$srcdir ;;
16255   *) # Relative name.
16256     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16257     ac_top_srcdir=$ac_top_build_prefix$srcdir
16258     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16259 esac
16260 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16261
16262
16263   case $ac_mode in
16264   :F)
16265   #
16266   # CONFIG_FILE
16267   #
16268
16269   case $INSTALL in
16270   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16271   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16272   esac
16273   ac_MKDIR_P=$MKDIR_P
16274   case $MKDIR_P in
16275   [\\/$]* | ?:[\\/]* ) ;;
16276   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16277   esac
16278 _ACEOF
16279
16280 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16281 # If the template does not know about datarootdir, expand it.
16282 # FIXME: This hack should be removed a few years after 2.60.
16283 ac_datarootdir_hack=; ac_datarootdir_seen=
16284 ac_sed_dataroot='
16285 /datarootdir/ {
16286   p
16287   q
16288 }
16289 /@datadir@/p
16290 /@docdir@/p
16291 /@infodir@/p
16292 /@localedir@/p
16293 /@mandir@/p'
16294 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16295 *datarootdir*) ac_datarootdir_seen=yes;;
16296 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16297   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16298 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16299 _ACEOF
16300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16301   ac_datarootdir_hack='
16302   s&@datadir@&$datadir&g
16303   s&@docdir@&$docdir&g
16304   s&@infodir@&$infodir&g
16305   s&@localedir@&$localedir&g
16306   s&@mandir@&$mandir&g
16307   s&\\\${datarootdir}&$datarootdir&g' ;;
16308 esac
16309 _ACEOF
16310
16311 # Neutralize VPATH when `$srcdir' = `.'.
16312 # Shell code in configure.ac might set extrasub.
16313 # FIXME: do we really want to maintain this feature?
16314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16315 ac_sed_extra="$ac_vpsub
16316 $extrasub
16317 _ACEOF
16318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16319 :t
16320 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16321 s|@configure_input@|$ac_sed_conf_input|;t t
16322 s&@top_builddir@&$ac_top_builddir_sub&;t t
16323 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16324 s&@srcdir@&$ac_srcdir&;t t
16325 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16326 s&@top_srcdir@&$ac_top_srcdir&;t t
16327 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16328 s&@builddir@&$ac_builddir&;t t
16329 s&@abs_builddir@&$ac_abs_builddir&;t t
16330 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16331 s&@INSTALL@&$ac_INSTALL&;t t
16332 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16333 $ac_datarootdir_hack
16334 "
16335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16336   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16337
16338 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16339   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16340   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16341       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16342   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16343 which seems to be undefined.  Please make sure it is defined" >&5
16344 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16345 which seems to be undefined.  Please make sure it is defined" >&2;}
16346
16347   rm -f "$ac_tmp/stdin"
16348   case $ac_file in
16349   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16350   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16351   esac \
16352   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16353  ;;
16354   :H)
16355   #
16356   # CONFIG_HEADER
16357   #
16358   if test x"$ac_file" != x-; then
16359     {
16360       $as_echo "/* $configure_input  */" \
16361       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16362     } >"$ac_tmp/config.h" \
16363       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16364     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16365       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16366 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16367     else
16368       rm -f "$ac_file"
16369       mv "$ac_tmp/config.h" "$ac_file" \
16370         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16371     fi
16372   else
16373     $as_echo "/* $configure_input  */" \
16374       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16375       || as_fn_error $? "could not create -" "$LINENO" 5
16376   fi
16377 # Compute "$ac_file"'s index in $config_headers.
16378 _am_arg="$ac_file"
16379 _am_stamp_count=1
16380 for _am_header in $config_headers :; do
16381   case $_am_header in
16382     $_am_arg | $_am_arg:* )
16383       break ;;
16384     * )
16385       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16386   esac
16387 done
16388 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16389 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16390          X"$_am_arg" : 'X\(//\)[^/]' \| \
16391          X"$_am_arg" : 'X\(//\)$' \| \
16392          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16393 $as_echo X"$_am_arg" |
16394     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16395             s//\1/
16396             q
16397           }
16398           /^X\(\/\/\)[^/].*/{
16399             s//\1/
16400             q
16401           }
16402           /^X\(\/\/\)$/{
16403             s//\1/
16404             q
16405           }
16406           /^X\(\/\).*/{
16407             s//\1/
16408             q
16409           }
16410           s/.*/./; q'`/stamp-h$_am_stamp_count
16411  ;;
16412
16413   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16414 $as_echo "$as_me: executing $ac_file commands" >&6;}
16415  ;;
16416   esac
16417
16418
16419   case $ac_file$ac_mode in
16420     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16421   # Older Autoconf quotes --file arguments for eval, but not when files
16422   # are listed without --file.  Let's play safe and only enable the eval
16423   # if we detect the quoting.
16424   case $CONFIG_FILES in
16425   *\'*) eval set x "$CONFIG_FILES" ;;
16426   *)   set x $CONFIG_FILES ;;
16427   esac
16428   shift
16429   for mf
16430   do
16431     # Strip MF so we end up with the name of the file.
16432     mf=`echo "$mf" | sed -e 's/:.*$//'`
16433     # Check whether this is an Automake generated Makefile or not.
16434     # We used to match only the files named 'Makefile.in', but
16435     # some people rename them; so instead we look at the file content.
16436     # Grep'ing the first line is not enough: some people post-process
16437     # each Makefile.in and add a new line on top of each file to say so.
16438     # Grep'ing the whole file is not good either: AIX grep has a line
16439     # limit of 2048, but all sed's we know have understand at least 4000.
16440     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16441       dirpart=`$as_dirname -- "$mf" ||
16442 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16443          X"$mf" : 'X\(//\)[^/]' \| \
16444          X"$mf" : 'X\(//\)$' \| \
16445          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16446 $as_echo X"$mf" |
16447     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16448             s//\1/
16449             q
16450           }
16451           /^X\(\/\/\)[^/].*/{
16452             s//\1/
16453             q
16454           }
16455           /^X\(\/\/\)$/{
16456             s//\1/
16457             q
16458           }
16459           /^X\(\/\).*/{
16460             s//\1/
16461             q
16462           }
16463           s/.*/./; q'`
16464     else
16465       continue
16466     fi
16467     # Extract the definition of DEPDIR, am__include, and am__quote
16468     # from the Makefile without running 'make'.
16469     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16470     test -z "$DEPDIR" && continue
16471     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16472     test -z "$am__include" && continue
16473     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16474     # Find all dependency output files, they are included files with
16475     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16476     # simplest approach to changing $(DEPDIR) to its actual value in the
16477     # expansion.
16478     for file in `sed -n "
16479       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16480          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16481       # Make sure the directory exists.
16482       test -f "$dirpart/$file" && continue
16483       fdir=`$as_dirname -- "$file" ||
16484 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16485          X"$file" : 'X\(//\)[^/]' \| \
16486          X"$file" : 'X\(//\)$' \| \
16487          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16488 $as_echo X"$file" |
16489     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16490             s//\1/
16491             q
16492           }
16493           /^X\(\/\/\)[^/].*/{
16494             s//\1/
16495             q
16496           }
16497           /^X\(\/\/\)$/{
16498             s//\1/
16499             q
16500           }
16501           /^X\(\/\).*/{
16502             s//\1/
16503             q
16504           }
16505           s/.*/./; q'`
16506       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16507       # echo "creating $dirpart/$file"
16508       echo '# dummy' > "$dirpart/$file"
16509     done
16510   done
16511 }
16512  ;;
16513     "libtool":C)
16514
16515     # See if we are running on zsh, and set the options which allow our
16516     # commands through without removal of \ escapes.
16517     if test -n "${ZSH_VERSION+set}" ; then
16518       setopt NO_GLOB_SUBST
16519     fi
16520
16521     cfgfile="${ofile}T"
16522     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16523     $RM "$cfgfile"
16524
16525     cat <<_LT_EOF >> "$cfgfile"
16526 #! $SHELL
16527
16528 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16529 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16530 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16531 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16532 #
16533 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16534 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16535 #                 Foundation, Inc.
16536 #   Written by Gordon Matzigkeit, 1996
16537 #
16538 #   This file is part of GNU Libtool.
16539 #
16540 # GNU Libtool is free software; you can redistribute it and/or
16541 # modify it under the terms of the GNU General Public License as
16542 # published by the Free Software Foundation; either version 2 of
16543 # the License, or (at your option) any later version.
16544 #
16545 # As a special exception to the GNU General Public License,
16546 # if you distribute this file as part of a program or library that
16547 # is built using GNU Libtool, you may include this file under the
16548 # same distribution terms that you use for the rest of that program.
16549 #
16550 # GNU Libtool is distributed in the hope that it will be useful,
16551 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16552 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16553 # GNU General Public License for more details.
16554 #
16555 # You should have received a copy of the GNU General Public License
16556 # along with GNU Libtool; see the file COPYING.  If not, a copy
16557 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16558 # obtained by writing to the Free Software Foundation, Inc.,
16559 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16560
16561
16562 # The names of the tagged configurations supported by this script.
16563 available_tags=""
16564
16565 # ### BEGIN LIBTOOL CONFIG
16566
16567 # Which release of libtool.m4 was used?
16568 macro_version=$macro_version
16569 macro_revision=$macro_revision
16570
16571 # Assembler program.
16572 AS=$lt_AS
16573
16574 # DLL creation program.
16575 DLLTOOL=$lt_DLLTOOL
16576
16577 # Object dumper program.
16578 OBJDUMP=$lt_OBJDUMP
16579
16580 # Whether or not to build static libraries.
16581 build_old_libs=$enable_static
16582
16583 # Whether or not to build shared libraries.
16584 build_libtool_libs=$enable_shared
16585
16586 # What type of objects to build.
16587 pic_mode=$pic_mode
16588
16589 # Whether or not to optimize for fast installation.
16590 fast_install=$enable_fast_install
16591
16592 # Shell to use when invoking shell scripts.
16593 SHELL=$lt_SHELL
16594
16595 # An echo program that protects backslashes.
16596 ECHO=$lt_ECHO
16597
16598 # The PATH separator for the build system.
16599 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16600
16601 # The host system.
16602 host_alias=$host_alias
16603 host=$host
16604 host_os=$host_os
16605
16606 # The build system.
16607 build_alias=$build_alias
16608 build=$build
16609 build_os=$build_os
16610
16611 # A sed program that does not truncate output.
16612 SED=$lt_SED
16613
16614 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16615 Xsed="\$SED -e 1s/^X//"
16616
16617 # A grep program that handles long lines.
16618 GREP=$lt_GREP
16619
16620 # An ERE matcher.
16621 EGREP=$lt_EGREP
16622
16623 # A literal string matcher.
16624 FGREP=$lt_FGREP
16625
16626 # A BSD- or MS-compatible name lister.
16627 NM=$lt_NM
16628
16629 # Whether we need soft or hard links.
16630 LN_S=$lt_LN_S
16631
16632 # What is the maximum length of a command?
16633 max_cmd_len=$max_cmd_len
16634
16635 # Object file suffix (normally "o").
16636 objext=$ac_objext
16637
16638 # Executable file suffix (normally "").
16639 exeext=$exeext
16640
16641 # whether the shell understands "unset".
16642 lt_unset=$lt_unset
16643
16644 # turn spaces into newlines.
16645 SP2NL=$lt_lt_SP2NL
16646
16647 # turn newlines into spaces.
16648 NL2SP=$lt_lt_NL2SP
16649
16650 # convert \$build file names to \$host format.
16651 to_host_file_cmd=$lt_cv_to_host_file_cmd
16652
16653 # convert \$build files to toolchain format.
16654 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16655
16656 # Method to check whether dependent libraries are shared objects.
16657 deplibs_check_method=$lt_deplibs_check_method
16658
16659 # Command to use when deplibs_check_method = "file_magic".
16660 file_magic_cmd=$lt_file_magic_cmd
16661
16662 # How to find potential files when deplibs_check_method = "file_magic".
16663 file_magic_glob=$lt_file_magic_glob
16664
16665 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16666 want_nocaseglob=$lt_want_nocaseglob
16667
16668 # Command to associate shared and link libraries.
16669 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16670
16671 # The archiver.
16672 AR=$lt_AR
16673
16674 # Flags to create an archive.
16675 AR_FLAGS=$lt_AR_FLAGS
16676
16677 # How to feed a file listing to the archiver.
16678 archiver_list_spec=$lt_archiver_list_spec
16679
16680 # A symbol stripping program.
16681 STRIP=$lt_STRIP
16682
16683 # Commands used to install an old-style archive.
16684 RANLIB=$lt_RANLIB
16685 old_postinstall_cmds=$lt_old_postinstall_cmds
16686 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16687
16688 # Whether to use a lock for old archive extraction.
16689 lock_old_archive_extraction=$lock_old_archive_extraction
16690
16691 # A C compiler.
16692 LTCC=$lt_CC
16693
16694 # LTCC compiler flags.
16695 LTCFLAGS=$lt_CFLAGS
16696
16697 # Take the output of nm and produce a listing of raw symbols and C names.
16698 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16699
16700 # Transform the output of nm in a proper C declaration.
16701 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16702
16703 # Transform the output of nm in a C name address pair.
16704 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16705
16706 # Transform the output of nm in a C name address pair when lib prefix is needed.
16707 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16708
16709 # Specify filename containing input files for \$NM.
16710 nm_file_list_spec=$lt_nm_file_list_spec
16711
16712 # The root where to search for dependent libraries,and in which our libraries should be installed.
16713 lt_sysroot=$lt_sysroot
16714
16715 # The name of the directory that contains temporary libtool files.
16716 objdir=$objdir
16717
16718 # Used to examine libraries when file_magic_cmd begins with "file".
16719 MAGIC_CMD=$MAGIC_CMD
16720
16721 # Must we lock files when doing compilation?
16722 need_locks=$lt_need_locks
16723
16724 # Manifest tool.
16725 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16726
16727 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16728 DSYMUTIL=$lt_DSYMUTIL
16729
16730 # Tool to change global to local symbols on Mac OS X.
16731 NMEDIT=$lt_NMEDIT
16732
16733 # Tool to manipulate fat objects and archives on Mac OS X.
16734 LIPO=$lt_LIPO
16735
16736 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16737 OTOOL=$lt_OTOOL
16738
16739 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16740 OTOOL64=$lt_OTOOL64
16741
16742 # Old archive suffix (normally "a").
16743 libext=$libext
16744
16745 # Shared library suffix (normally ".so").
16746 shrext_cmds=$lt_shrext_cmds
16747
16748 # The commands to extract the exported symbol list from a shared archive.
16749 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16750
16751 # Variables whose values should be saved in libtool wrapper scripts and
16752 # restored at link time.
16753 variables_saved_for_relink=$lt_variables_saved_for_relink
16754
16755 # Do we need the "lib" prefix for modules?
16756 need_lib_prefix=$need_lib_prefix
16757
16758 # Do we need a version for libraries?
16759 need_version=$need_version
16760
16761 # Library versioning type.
16762 version_type=$version_type
16763
16764 # Shared library runtime path variable.
16765 runpath_var=$runpath_var
16766
16767 # Shared library path variable.
16768 shlibpath_var=$shlibpath_var
16769
16770 # Is shlibpath searched before the hard-coded library search path?
16771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16772
16773 # Format of library name prefix.
16774 libname_spec=$lt_libname_spec
16775
16776 # List of archive names.  First name is the real one, the rest are links.
16777 # The last name is the one that the linker finds with -lNAME
16778 library_names_spec=$lt_library_names_spec
16779
16780 # The coded name of the library, if different from the real name.
16781 soname_spec=$lt_soname_spec
16782
16783 # Permission mode override for installation of shared libraries.
16784 install_override_mode=$lt_install_override_mode
16785
16786 # Command to use after installation of a shared archive.
16787 postinstall_cmds=$lt_postinstall_cmds
16788
16789 # Command to use after uninstallation of a shared archive.
16790 postuninstall_cmds=$lt_postuninstall_cmds
16791
16792 # Commands used to finish a libtool library installation in a directory.
16793 finish_cmds=$lt_finish_cmds
16794
16795 # As "finish_cmds", except a single script fragment to be evaled but
16796 # not shown.
16797 finish_eval=$lt_finish_eval
16798
16799 # Whether we should hardcode library paths into libraries.
16800 hardcode_into_libs=$hardcode_into_libs
16801
16802 # Compile-time system search path for libraries.
16803 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16804
16805 # Run-time system search path for libraries.
16806 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16807
16808 # Whether dlopen is supported.
16809 dlopen_support=$enable_dlopen
16810
16811 # Whether dlopen of programs is supported.
16812 dlopen_self=$enable_dlopen_self
16813
16814 # Whether dlopen of statically linked programs is supported.
16815 dlopen_self_static=$enable_dlopen_self_static
16816
16817 # Commands to strip libraries.
16818 old_striplib=$lt_old_striplib
16819 striplib=$lt_striplib
16820
16821
16822 # The linker used to build libraries.
16823 LD=$lt_LD
16824
16825 # How to create reloadable object files.
16826 reload_flag=$lt_reload_flag
16827 reload_cmds=$lt_reload_cmds
16828
16829 # Commands used to build an old-style archive.
16830 old_archive_cmds=$lt_old_archive_cmds
16831
16832 # A language specific compiler.
16833 CC=$lt_compiler
16834
16835 # Is the compiler the GNU compiler?
16836 with_gcc=$GCC
16837
16838 # Compiler flag to turn off builtin functions.
16839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16840
16841 # Additional compiler flags for building library objects.
16842 pic_flag=$lt_lt_prog_compiler_pic
16843
16844 # How to pass a linker flag through the compiler.
16845 wl=$lt_lt_prog_compiler_wl
16846
16847 # Compiler flag to prevent dynamic linking.
16848 link_static_flag=$lt_lt_prog_compiler_static
16849
16850 # Does compiler simultaneously support -c and -o options?
16851 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16852
16853 # Whether or not to add -lc for building shared libraries.
16854 build_libtool_need_lc=$archive_cmds_need_lc
16855
16856 # Whether or not to disallow shared libs when runtime libs are static.
16857 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16858
16859 # Compiler flag to allow reflexive dlopens.
16860 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16861
16862 # Compiler flag to generate shared objects directly from archives.
16863 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16864
16865 # Whether the compiler copes with passing no objects directly.
16866 compiler_needs_object=$lt_compiler_needs_object
16867
16868 # Create an old-style archive from a shared archive.
16869 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16870
16871 # Create a temporary old-style archive to link instead of a shared archive.
16872 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16873
16874 # Commands used to build a shared archive.
16875 archive_cmds=$lt_archive_cmds
16876 archive_expsym_cmds=$lt_archive_expsym_cmds
16877
16878 # Commands used to build a loadable module if different from building
16879 # a shared archive.
16880 module_cmds=$lt_module_cmds
16881 module_expsym_cmds=$lt_module_expsym_cmds
16882
16883 # Whether we are building with GNU ld or not.
16884 with_gnu_ld=$lt_with_gnu_ld
16885
16886 # Flag that allows shared libraries with undefined symbols to be built.
16887 allow_undefined_flag=$lt_allow_undefined_flag
16888
16889 # Flag that enforces no undefined symbols.
16890 no_undefined_flag=$lt_no_undefined_flag
16891
16892 # Flag to hardcode \$libdir into a binary during linking.
16893 # This must work even if \$libdir does not exist
16894 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16895
16896 # Whether we need a single "-rpath" flag with a separated argument.
16897 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16898
16899 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16900 # DIR into the resulting binary.
16901 hardcode_direct=$hardcode_direct
16902
16903 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16904 # DIR into the resulting binary and the resulting library dependency is
16905 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16906 # library is relocated.
16907 hardcode_direct_absolute=$hardcode_direct_absolute
16908
16909 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16910 # into the resulting binary.
16911 hardcode_minus_L=$hardcode_minus_L
16912
16913 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16914 # into the resulting binary.
16915 hardcode_shlibpath_var=$hardcode_shlibpath_var
16916
16917 # Set to "yes" if building a shared library automatically hardcodes DIR
16918 # into the library and all subsequent libraries and executables linked
16919 # against it.
16920 hardcode_automatic=$hardcode_automatic
16921
16922 # Set to yes if linker adds runtime paths of dependent libraries
16923 # to runtime path list.
16924 inherit_rpath=$inherit_rpath
16925
16926 # Whether libtool must link a program against all its dependency libraries.
16927 link_all_deplibs=$link_all_deplibs
16928
16929 # Set to "yes" if exported symbols are required.
16930 always_export_symbols=$always_export_symbols
16931
16932 # The commands to list exported symbols.
16933 export_symbols_cmds=$lt_export_symbols_cmds
16934
16935 # Symbols that should not be listed in the preloaded symbols.
16936 exclude_expsyms=$lt_exclude_expsyms
16937
16938 # Symbols that must always be exported.
16939 include_expsyms=$lt_include_expsyms
16940
16941 # Commands necessary for linking programs (against libraries) with templates.
16942 prelink_cmds=$lt_prelink_cmds
16943
16944 # Commands necessary for finishing linking programs.
16945 postlink_cmds=$lt_postlink_cmds
16946
16947 # Specify filename containing input files.
16948 file_list_spec=$lt_file_list_spec
16949
16950 # How to hardcode a shared library path into an executable.
16951 hardcode_action=$hardcode_action
16952
16953 # ### END LIBTOOL CONFIG
16954
16955 _LT_EOF
16956
16957   case $host_os in
16958   aix3*)
16959     cat <<\_LT_EOF >> "$cfgfile"
16960 # AIX sometimes has problems with the GCC collect2 program.  For some
16961 # reason, if we set the COLLECT_NAMES environment variable, the problems
16962 # vanish in a puff of smoke.
16963 if test "X${COLLECT_NAMES+set}" != Xset; then
16964   COLLECT_NAMES=
16965   export COLLECT_NAMES
16966 fi
16967 _LT_EOF
16968     ;;
16969   esac
16970
16971
16972 ltmain="$ac_aux_dir/ltmain.sh"
16973
16974
16975   # We use sed instead of cat because bash on DJGPP gets confused if
16976   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16977   # text mode, it properly converts lines to CR/LF.  This bash problem
16978   # is reportedly fixed, but why not run on old versions too?
16979   sed '$q' "$ltmain" >> "$cfgfile" \
16980      || (rm -f "$cfgfile"; exit 1)
16981
16982   if test x"$xsi_shell" = xyes; then
16983   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16984 func_dirname ()\
16985 {\
16986 \    case ${1} in\
16987 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16988 \      *  ) func_dirname_result="${3}" ;;\
16989 \    esac\
16990 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16991   && mv -f "$cfgfile.tmp" "$cfgfile" \
16992     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16993 test 0 -eq $? || _lt_function_replace_fail=:
16994
16995
16996   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16997 func_basename ()\
16998 {\
16999 \    func_basename_result="${1##*/}"\
17000 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17001   && mv -f "$cfgfile.tmp" "$cfgfile" \
17002     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17003 test 0 -eq $? || _lt_function_replace_fail=:
17004
17005
17006   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17007 func_dirname_and_basename ()\
17008 {\
17009 \    case ${1} in\
17010 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17011 \      *  ) func_dirname_result="${3}" ;;\
17012 \    esac\
17013 \    func_basename_result="${1##*/}"\
17014 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17015   && mv -f "$cfgfile.tmp" "$cfgfile" \
17016     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17017 test 0 -eq $? || _lt_function_replace_fail=:
17018
17019
17020   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17021 func_stripname ()\
17022 {\
17023 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17024 \    # positional parameters, so assign one to ordinary parameter first.\
17025 \    func_stripname_result=${3}\
17026 \    func_stripname_result=${func_stripname_result#"${1}"}\
17027 \    func_stripname_result=${func_stripname_result%"${2}"}\
17028 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17029   && mv -f "$cfgfile.tmp" "$cfgfile" \
17030     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17031 test 0 -eq $? || _lt_function_replace_fail=:
17032
17033
17034   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17035 func_split_long_opt ()\
17036 {\
17037 \    func_split_long_opt_name=${1%%=*}\
17038 \    func_split_long_opt_arg=${1#*=}\
17039 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17040   && mv -f "$cfgfile.tmp" "$cfgfile" \
17041     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17042 test 0 -eq $? || _lt_function_replace_fail=:
17043
17044
17045   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17046 func_split_short_opt ()\
17047 {\
17048 \    func_split_short_opt_arg=${1#??}\
17049 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17050 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17051   && mv -f "$cfgfile.tmp" "$cfgfile" \
17052     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17053 test 0 -eq $? || _lt_function_replace_fail=:
17054
17055
17056   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17057 func_lo2o ()\
17058 {\
17059 \    case ${1} in\
17060 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17061 \      *)    func_lo2o_result=${1} ;;\
17062 \    esac\
17063 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17064   && mv -f "$cfgfile.tmp" "$cfgfile" \
17065     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17066 test 0 -eq $? || _lt_function_replace_fail=:
17067
17068
17069   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17070 func_xform ()\
17071 {\
17072     func_xform_result=${1%.*}.lo\
17073 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17074   && mv -f "$cfgfile.tmp" "$cfgfile" \
17075     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17076 test 0 -eq $? || _lt_function_replace_fail=:
17077
17078
17079   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17080 func_arith ()\
17081 {\
17082     func_arith_result=$(( $* ))\
17083 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17084   && mv -f "$cfgfile.tmp" "$cfgfile" \
17085     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17086 test 0 -eq $? || _lt_function_replace_fail=:
17087
17088
17089   sed -e '/^func_len ()$/,/^} # func_len /c\
17090 func_len ()\
17091 {\
17092     func_len_result=${#1}\
17093 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17094   && mv -f "$cfgfile.tmp" "$cfgfile" \
17095     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17096 test 0 -eq $? || _lt_function_replace_fail=:
17097
17098 fi
17099
17100 if test x"$lt_shell_append" = xyes; then
17101   sed -e '/^func_append ()$/,/^} # func_append /c\
17102 func_append ()\
17103 {\
17104     eval "${1}+=\\${2}"\
17105 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17106   && mv -f "$cfgfile.tmp" "$cfgfile" \
17107     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17108 test 0 -eq $? || _lt_function_replace_fail=:
17109
17110
17111   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17112 func_append_quoted ()\
17113 {\
17114 \    func_quote_for_eval "${2}"\
17115 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17116 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17117   && mv -f "$cfgfile.tmp" "$cfgfile" \
17118     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17119 test 0 -eq $? || _lt_function_replace_fail=:
17120
17121
17122   # Save a `func_append' function call where possible by direct use of '+='
17123   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17124     && mv -f "$cfgfile.tmp" "$cfgfile" \
17125       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17126   test 0 -eq $? || _lt_function_replace_fail=:
17127 else
17128   # Save a `func_append' function call even when '+=' is not available
17129   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17130     && mv -f "$cfgfile.tmp" "$cfgfile" \
17131       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17132   test 0 -eq $? || _lt_function_replace_fail=:
17133 fi
17134
17135 if test x"$_lt_function_replace_fail" = x":"; then
17136   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17137 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17138 fi
17139
17140
17141    mv -f "$cfgfile" "$ofile" ||
17142     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17143   chmod +x "$ofile"
17144
17145  ;;
17146
17147   esac
17148 done # for ac_tag
17149
17150
17151 as_fn_exit 0
17152 _ACEOF
17153 ac_clean_files=$ac_clean_files_save
17154
17155 test $ac_write_fail = 0 ||
17156   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17157
17158
17159 # configure is writing to config.log, and then calls config.status.
17160 # config.status does its own redirection, appending to config.log.
17161 # Unfortunately, on DOS this fails, as config.log is still kept open
17162 # by configure, so config.status won't be able to write to it; its
17163 # output is simply discarded.  So we exec the FD to /dev/null,
17164 # effectively closing config.log, so it can be properly (re)opened and
17165 # appended to by config.status.  When coming back to configure, we
17166 # need to make the FD available again.
17167 if test "$no_create" != yes; then
17168   ac_cs_success=:
17169   ac_config_status_args=
17170   test "$silent" = yes &&
17171     ac_config_status_args="$ac_config_status_args --quiet"
17172   exec 5>/dev/null
17173   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17174   exec 5>>config.log
17175   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17176   # would make configure fail if this is the last instruction.
17177   $ac_cs_success || as_fn_exit 1
17178 fi
17179 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17180   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17181 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17182 fi
17183
17184
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17186         pygobject $VERSION
17187
17188         Using python interpreter:       $PYTHON
17189         libffi support:                 $have_libffi
17190         cairo support:                  $enable_cairo
17191         thread support:                 $enable_thread
17192         code coverage support:          $enable_code_coverage
17193 " >&5
17194 $as_echo "
17195         pygobject $VERSION
17196
17197         Using python interpreter:       $PYTHON
17198         libffi support:                 $have_libffi
17199         cairo support:                  $enable_cairo
17200         thread support:                 $enable_thread
17201         code coverage support:          $enable_code_coverage
17202 " >&6; }
17203