Imported Upstream version 3.13.3
[platform/upstream/pygobject2.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.13.3.
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.13.3'
595 PACKAGE_STRING='pygobject 3.13.3'
596 PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject'
597 PACKAGE_URL='https://wiki.gnome.org/Projects/PyGObject/'
598
599 ac_unique_file="gi/gimodule.c"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 #  include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 #  include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
635
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 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 WITH_COMMON_FALSE
652 WITH_COMMON_TRUE
653 ENABLE_CAIRO_FALSE
654 ENABLE_CAIRO_TRUE
655 PYCAIRO_LIBS
656 PYCAIRO_CFLAGS
657 CAIRO_LIBS
658 CAIRO_CFLAGS
659 GI_DATADIR
660 GI_LIBS
661 GI_CFLAGS
662 GIO_LIBS
663 GIO_CFLAGS
664 LIBFFI_PC
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 enable_cairo
830 with_common
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.13.3 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.13.3:";;
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-common        For package maintainers: do not install Python
1508                           version independent files
1509
1510 Some influential environment variables:
1511   CC          C compiler command
1512   CFLAGS      C compiler flags
1513   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1514               nonstandard directory <lib dir>
1515   LIBS        libraries to pass to the linker, e.g. -l<library>
1516   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1517               you have headers in a nonstandard directory <include dir>
1518   CPP         C preprocessor
1519   PYTHON      the Python interpreter
1520   PKG_CONFIG  path to pkg-config utility
1521   PKG_CONFIG_PATH
1522               directories to add to pkg-config's search path
1523   PKG_CONFIG_LIBDIR
1524               path overriding pkg-config's built-in search path
1525   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1526   FFI_LIBS    linker flags for FFI, overriding pkg-config
1527   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1528   GIO_LIBS    linker flags for GIO, overriding pkg-config
1529   GI_CFLAGS   C compiler flags for GI, overriding pkg-config
1530   GI_LIBS     linker flags for GI, overriding pkg-config
1531   CAIRO_CFLAGS
1532               C compiler flags for CAIRO, overriding pkg-config
1533   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1534   PYCAIRO_CFLAGS
1535               C compiler flags for PYCAIRO, overriding pkg-config
1536   PYCAIRO_LIBS
1537               linker flags for PYCAIRO, overriding pkg-config
1538
1539 Use these variables to override the choices made by `configure' or to help
1540 it to find libraries and programs with nonstandard names/locations.
1541
1542 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1543 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549   # If there are subdirs, report their specific --help.
1550   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551     test -d "$ac_dir" ||
1552       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553       continue
1554     ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560   # A ".." for each directory in $ac_dir_suffix.
1561   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562   case $ac_top_builddir_sub in
1563   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565   esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573   .)  # We are building in place.
1574     ac_srcdir=.
1575     ac_top_srcdir=$ac_top_builddir_sub
1576     ac_abs_top_srcdir=$ac_pwd ;;
1577   [\\/]* | ?:[\\/]* )  # Absolute name.
1578     ac_srcdir=$srcdir$ac_dir_suffix;
1579     ac_top_srcdir=$srcdir
1580     ac_abs_top_srcdir=$srcdir ;;
1581   *) # Relative name.
1582     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583     ac_top_srcdir=$ac_top_build_prefix$srcdir
1584     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588     cd "$ac_dir" || { ac_status=$?; continue; }
1589     # Check for guested configure.
1590     if test -f "$ac_srcdir/configure.gnu"; then
1591       echo &&
1592       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593     elif test -f "$ac_srcdir/configure"; then
1594       echo &&
1595       $SHELL "$ac_srcdir/configure" --help=recursive
1596     else
1597       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598     fi || ac_status=$?
1599     cd "$ac_pwd" || { ac_status=$?; break; }
1600   done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605   cat <<\_ACEOF
1606 pygobject configure 3.13.3
1607 generated by GNU Autoconf 2.69
1608
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613   exit
1614 fi
1615
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1619
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1624 {
1625   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626   rm -f conftest.$ac_objext
1627   if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630   *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634   (eval "$ac_compile") 2>conftest.err
1635   ac_status=$?
1636   if test -s conftest.err; then
1637     grep -v '^ *+' conftest.err >conftest.er1
1638     cat conftest.er1 >&5
1639     mv -f conftest.er1 conftest.err
1640   fi
1641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642   test $ac_status = 0; } && {
1643          test -z "$ac_c_werror_flag" ||
1644          test ! -s conftest.err
1645        } && test -s conftest.$ac_objext; then :
1646   ac_retval=0
1647 else
1648   $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651         ac_retval=1
1652 fi
1653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654   as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_compile
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664   rm -f conftest.$ac_objext conftest$ac_exeext
1665   if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668   *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672   (eval "$ac_link") 2>conftest.err
1673   ac_status=$?
1674   if test -s conftest.err; then
1675     grep -v '^ *+' conftest.err >conftest.er1
1676     cat conftest.er1 >&5
1677     mv -f conftest.er1 conftest.err
1678   fi
1679   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680   test $ac_status = 0; } && {
1681          test -z "$ac_c_werror_flag" ||
1682          test ! -s conftest.err
1683        } && test -s conftest$ac_exeext && {
1684          test "$cross_compiling" = yes ||
1685          test -x conftest$ac_exeext
1686        }; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692         ac_retval=1
1693 fi
1694   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696   # interfere with the next link command; also delete a directory that is
1697   # left behind by Apple's compiler.  We do this before executing the actions.
1698   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700   as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1709 {
1710   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714   $as_echo_n "(cached) " >&6
1715 else
1716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h.  */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722   eval "$3=yes"
1723 else
1724   eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 fi
1728 eval ac_res=\$$3
1729                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_compile
1734
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_cpp ()
1739 {
1740   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741   if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 case "(($ac_try" in
1743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744   *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749   ac_status=$?
1750   if test -s conftest.err; then
1751     grep -v '^ *+' conftest.err >conftest.er1
1752     cat conftest.er1 >&5
1753     mv -f conftest.er1 conftest.err
1754   fi
1755   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756   test $ac_status = 0; } > conftest.i && {
1757          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758          test ! -s conftest.err
1759        }; then :
1760   ac_retval=0
1761 else
1762   $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765     ac_retval=1
1766 fi
1767   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768   as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_cpp
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779   if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782   *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786   (eval "$ac_link") 2>&5
1787   ac_status=$?
1788   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790   { { case "(($ac_try" in
1791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792   *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796   (eval "$ac_try") 2>&5
1797   ac_status=$?
1798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799   test $ac_status = 0; }; }; then :
1800   ac_retval=0
1801 else
1802   $as_echo "$as_me: program exited with status $ac_status" >&5
1803        $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806        ac_retval=$ac_status
1807 fi
1808   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810   as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823   $as_echo_n "(cached) " >&6
1824 else
1825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h.  */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832     which can conflict with char $2 (); below.
1833     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834     <limits.h> exists even on freestanding compilers.  */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845    Use char because int might match the return type of a GCC
1846    builtin and then its argument prototype would still apply.  */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852     to always fail with ENOSYS.  Some functions are actually named
1853     something starting with __ and the normal name is an alias.  */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862   ;
1863   return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867   eval "$3=yes"
1868 else
1869   eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872     conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_func
1880 cat >config.log <<_ACEOF
1881 This file contains any messages produced by compilers while
1882 running configure, to aid debugging if configure makes a mistake.
1883
1884 It was created by pygobject $as_me 3.13.3, which was
1885 generated by GNU Autoconf 2.69.  Invocation command line was
1886
1887   $ $0 $@
1888
1889 _ACEOF
1890 exec 5>>config.log
1891 {
1892 cat <<_ASUNAME
1893 ## --------- ##
1894 ## Platform. ##
1895 ## --------- ##
1896
1897 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1898 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1899 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1900 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1901 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902
1903 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1904 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1905
1906 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1907 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1908 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1909 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1910 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1911 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1912 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1913
1914 _ASUNAME
1915
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921     $as_echo "PATH: $as_dir"
1922   done
1923 IFS=$as_save_IFS
1924
1925 } >&5
1926
1927 cat >&5 <<_ACEOF
1928
1929
1930 ## ----------- ##
1931 ## Core tests. ##
1932 ## ----------- ##
1933
1934 _ACEOF
1935
1936
1937 # Keep a trace of the command line.
1938 # Strip out --no-create and --no-recursion so they do not pile up.
1939 # Strip out --silent because we don't want to record it for future runs.
1940 # Also quote any args containing shell meta-characters.
1941 # Make two passes to allow for proper duplicate-argument suppression.
1942 ac_configure_args=
1943 ac_configure_args0=
1944 ac_configure_args1=
1945 ac_must_keep_next=false
1946 for ac_pass in 1 2
1947 do
1948   for ac_arg
1949   do
1950     case $ac_arg in
1951     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1952     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1953     | -silent | --silent | --silen | --sile | --sil)
1954       continue ;;
1955     *\'*)
1956       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1957     esac
1958     case $ac_pass in
1959     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960     2)
1961       as_fn_append ac_configure_args1 " '$ac_arg'"
1962       if test $ac_must_keep_next = true; then
1963         ac_must_keep_next=false # Got value, back to normal.
1964       else
1965         case $ac_arg in
1966           *=* | --config-cache | -C | -disable-* | --disable-* \
1967           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1968           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1969           | -with-* | --with-* | -without-* | --without-* | --x)
1970             case "$ac_configure_args0 " in
1971               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1972             esac
1973             ;;
1974           -* ) ac_must_keep_next=true ;;
1975         esac
1976       fi
1977       as_fn_append ac_configure_args " '$ac_arg'"
1978       ;;
1979     esac
1980   done
1981 done
1982 { ac_configure_args0=; unset ac_configure_args0;}
1983 { ac_configure_args1=; unset ac_configure_args1;}
1984
1985 # When interrupted or exit'd, cleanup temporary files, and complete
1986 # config.log.  We remove comments because anyway the quotes in there
1987 # would cause problems or look ugly.
1988 # WARNING: Use '\'' to represent an apostrophe within the trap.
1989 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1990 trap 'exit_status=$?
1991   # Save into config.log some information that might help in debugging.
1992   {
1993     echo
1994
1995     $as_echo "## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##"
1998     echo
1999     # The following way of writing the cache mishandles newlines in values,
2000 (
2001   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2002     eval ac_val=\$$ac_var
2003     case $ac_val in #(
2004     *${as_nl}*)
2005       case $ac_var in #(
2006       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2008       esac
2009       case $ac_var in #(
2010       _ | IFS | as_nl) ;; #(
2011       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2012       *) { eval $ac_var=; unset $ac_var;} ;;
2013       esac ;;
2014     esac
2015   done
2016   (set) 2>&1 |
2017     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2018     *${as_nl}ac_space=\ *)
2019       sed -n \
2020         "s/'\''/'\''\\\\'\'''\''/g;
2021           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2022       ;; #(
2023     *)
2024       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2025       ;;
2026     esac |
2027     sort
2028 )
2029     echo
2030
2031     $as_echo "## ----------------- ##
2032 ## Output variables. ##
2033 ## ----------------- ##"
2034     echo
2035     for ac_var in $ac_subst_vars
2036     do
2037       eval ac_val=\$$ac_var
2038       case $ac_val in
2039       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2040       esac
2041       $as_echo "$ac_var='\''$ac_val'\''"
2042     done | sort
2043     echo
2044
2045     if test -n "$ac_subst_files"; then
2046       $as_echo "## ------------------- ##
2047 ## File substitutions. ##
2048 ## ------------------- ##"
2049       echo
2050       for ac_var in $ac_subst_files
2051       do
2052         eval ac_val=\$$ac_var
2053         case $ac_val in
2054         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2055         esac
2056         $as_echo "$ac_var='\''$ac_val'\''"
2057       done | sort
2058       echo
2059     fi
2060
2061     if test -s confdefs.h; then
2062       $as_echo "## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##"
2065       echo
2066       cat confdefs.h
2067       echo
2068     fi
2069     test "$ac_signal" != 0 &&
2070       $as_echo "$as_me: caught signal $ac_signal"
2071     $as_echo "$as_me: exit $exit_status"
2072   } >&5
2073   rm -f core *.core core.conftest.* &&
2074     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075     exit $exit_status
2076 ' 0
2077 for ac_signal in 1 2 13 15; do
2078   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079 done
2080 ac_signal=0
2081
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2084
2085 $as_echo "/* confdefs.h */" > confdefs.h
2086
2087 # Predefined preprocessor variables.
2088
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 _ACEOF
2092
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 _ACEOF
2096
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 _ACEOF
2100
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 _ACEOF
2104
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 _ACEOF
2108
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2111 _ACEOF
2112
2113
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 ac_site_file1=NONE
2117 ac_site_file2=NONE
2118 if test -n "$CONFIG_SITE"; then
2119   # We do not want a PATH search for config.site.
2120   case $CONFIG_SITE in #((
2121     -*)  ac_site_file1=./$CONFIG_SITE;;
2122     */*) ac_site_file1=$CONFIG_SITE;;
2123     *)   ac_site_file1=./$CONFIG_SITE;;
2124   esac
2125 elif test "x$prefix" != xNONE; then
2126   ac_site_file1=$prefix/share/config.site
2127   ac_site_file2=$prefix/etc/config.site
2128 else
2129   ac_site_file1=$ac_default_prefix/share/config.site
2130   ac_site_file2=$ac_default_prefix/etc/config.site
2131 fi
2132 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2133 do
2134   test "x$ac_site_file" = xNONE && continue
2135   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2136     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2137 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2138     sed 's/^/| /' "$ac_site_file" >&5
2139     . "$ac_site_file" \
2140       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2142 as_fn_error $? "failed to load site script $ac_site_file
2143 See \`config.log' for more details" "$LINENO" 5; }
2144   fi
2145 done
2146
2147 if test -r "$cache_file"; then
2148   # Some versions of bash will fail to source /dev/null (special files
2149   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2150   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2151     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2152 $as_echo "$as_me: loading cache $cache_file" >&6;}
2153     case $cache_file in
2154       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2155       *)                      . "./$cache_file";;
2156     esac
2157   fi
2158 else
2159   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2160 $as_echo "$as_me: creating cache $cache_file" >&6;}
2161   >$cache_file
2162 fi
2163
2164 # Check that the precious variables saved in the cache have kept the same
2165 # value.
2166 ac_cache_corrupted=false
2167 for ac_var in $ac_precious_vars; do
2168   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2169   eval ac_new_set=\$ac_env_${ac_var}_set
2170   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2171   eval ac_new_val=\$ac_env_${ac_var}_value
2172   case $ac_old_set,$ac_new_set in
2173     set,)
2174       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2175 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2176       ac_cache_corrupted=: ;;
2177     ,set)
2178       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2179 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2180       ac_cache_corrupted=: ;;
2181     ,);;
2182     *)
2183       if test "x$ac_old_val" != "x$ac_new_val"; then
2184         # differences in whitespace do not lead to failure.
2185         ac_old_val_w=`echo x $ac_old_val`
2186         ac_new_val_w=`echo x $ac_new_val`
2187         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2188           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2189 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2190           ac_cache_corrupted=:
2191         else
2192           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2193 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2194           eval $ac_var=\$ac_old_val
2195         fi
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2197 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2198         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2199 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2200       fi;;
2201   esac
2202   # Pass precious variables to config.status.
2203   if test "$ac_new_set" = set; then
2204     case $ac_new_val in
2205     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2206     *) ac_arg=$ac_var=$ac_new_val ;;
2207     esac
2208     case " $ac_configure_args " in
2209       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2210       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2211     esac
2212   fi
2213 done
2214 if $ac_cache_corrupted; then
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2216 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2217   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2218 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2219   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2220 fi
2221 ## -------------------- ##
2222 ## Main body of script. ##
2223 ## -------------------- ##
2224
2225 ac_ext=c
2226 ac_cpp='$CPP $CPPFLAGS'
2227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
2231
2232 ACLOCAL_AMFLAGS="-I m4 -I ."
2233
2234
2235
2236
2237
2238 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2239
2240 PYGOBJECT_MAJOR_VERSION=3
2241
2242
2243 $as_echo "#define PYGOBJECT_MINOR_VERSION 13" >>confdefs.h
2244
2245 PYGOBJECT_MINOR_VERSION=13
2246
2247
2248 $as_echo "#define PYGOBJECT_MICRO_VERSION 3" >>confdefs.h
2249
2250 PYGOBJECT_MICRO_VERSION=3
2251
2252
2253 ac_config_headers="$ac_config_headers config.h"
2254
2255 # Check whether --enable-silent-rules was given.
2256 if test "${enable_silent_rules+set}" = set; then :
2257   enableval=$enable_silent_rules;
2258 fi
2259
2260 case $enable_silent_rules in # (((
2261   yes) AM_DEFAULT_VERBOSITY=0;;
2262    no) AM_DEFAULT_VERBOSITY=1;;
2263     *) AM_DEFAULT_VERBOSITY=0;;
2264 esac
2265 am_make=${MAKE-make}
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2267 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2268 if ${am_cv_make_support_nested_variables+:} false; then :
2269   $as_echo_n "(cached) " >&6
2270 else
2271   if $as_echo 'TRUE=$(BAR$(V))
2272 BAR0=false
2273 BAR1=true
2274 V=1
2275 am__doit:
2276         @$(TRUE)
2277 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2278   am_cv_make_support_nested_variables=yes
2279 else
2280   am_cv_make_support_nested_variables=no
2281 fi
2282 fi
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2284 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2285 if test $am_cv_make_support_nested_variables = yes; then
2286     AM_V='$(V)'
2287   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2288 else
2289   AM_V=$AM_DEFAULT_VERBOSITY
2290   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2291 fi
2292 AM_BACKSLASH='\'
2293
2294 am__api_version='1.13'
2295
2296 ac_aux_dir=
2297 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2298   if test -f "$ac_dir/install-sh"; then
2299     ac_aux_dir=$ac_dir
2300     ac_install_sh="$ac_aux_dir/install-sh -c"
2301     break
2302   elif test -f "$ac_dir/install.sh"; then
2303     ac_aux_dir=$ac_dir
2304     ac_install_sh="$ac_aux_dir/install.sh -c"
2305     break
2306   elif test -f "$ac_dir/shtool"; then
2307     ac_aux_dir=$ac_dir
2308     ac_install_sh="$ac_aux_dir/shtool install -c"
2309     break
2310   fi
2311 done
2312 if test -z "$ac_aux_dir"; then
2313   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2314 fi
2315
2316 # These three variables are undocumented and unsupported,
2317 # and are intended to be withdrawn in a future Autoconf release.
2318 # They can cause serious problems if a builder's source tree is in a directory
2319 # whose full name contains unusual characters.
2320 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2321 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2322 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2323
2324
2325 # Find a good install program.  We prefer a C program (faster),
2326 # so one script is as good as another.  But avoid the broken or
2327 # incompatible versions:
2328 # SysV /etc/install, /usr/sbin/install
2329 # SunOS /usr/etc/install
2330 # IRIX /sbin/install
2331 # AIX /bin/install
2332 # AmigaOS /C/install, which installs bootblocks on floppy discs
2333 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2334 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2335 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2336 # OS/2's system install, which has a completely different semantic
2337 # ./install, which can be erroneously created by make from ./install.sh.
2338 # Reject install programs that cannot install multiple files.
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2340 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2341 if test -z "$INSTALL"; then
2342 if ${ac_cv_path_install+:} false; then :
2343   $as_echo_n "(cached) " >&6
2344 else
2345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2346 for as_dir in $PATH
2347 do
2348   IFS=$as_save_IFS
2349   test -z "$as_dir" && as_dir=.
2350     # Account for people who put trailing slashes in PATH elements.
2351 case $as_dir/ in #((
2352   ./ | .// | /[cC]/* | \
2353   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2354   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2355   /usr/ucb/* ) ;;
2356   *)
2357     # OSF1 and SCO ODT 3.0 have their own names for install.
2358     # Don't use installbsd from OSF since it installs stuff as root
2359     # by default.
2360     for ac_prog in ginstall scoinst install; do
2361       for ac_exec_ext in '' $ac_executable_extensions; do
2362         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2363           if test $ac_prog = install &&
2364             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365             # AIX install.  It has an incompatible calling convention.
2366             :
2367           elif test $ac_prog = install &&
2368             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2369             # program-specific install script used by HP pwplus--don't use.
2370             :
2371           else
2372             rm -rf conftest.one conftest.two conftest.dir
2373             echo one > conftest.one
2374             echo two > conftest.two
2375             mkdir conftest.dir
2376             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2377               test -s conftest.one && test -s conftest.two &&
2378               test -s conftest.dir/conftest.one &&
2379               test -s conftest.dir/conftest.two
2380             then
2381               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2382               break 3
2383             fi
2384           fi
2385         fi
2386       done
2387     done
2388     ;;
2389 esac
2390
2391   done
2392 IFS=$as_save_IFS
2393
2394 rm -rf conftest.one conftest.two conftest.dir
2395
2396 fi
2397   if test "${ac_cv_path_install+set}" = set; then
2398     INSTALL=$ac_cv_path_install
2399   else
2400     # As a last resort, use the slow shell script.  Don't cache a
2401     # value for INSTALL within a source directory, because that will
2402     # break other packages using the cache if that directory is
2403     # removed, or if the value is a relative name.
2404     INSTALL=$ac_install_sh
2405   fi
2406 fi
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2408 $as_echo "$INSTALL" >&6; }
2409
2410 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2411 # It thinks the first close brace ends the variable substitution.
2412 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2413
2414 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2415
2416 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2417
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2419 $as_echo_n "checking whether build environment is sane... " >&6; }
2420 # Reject unsafe characters in $srcdir or the absolute working directory
2421 # name.  Accept space and tab only in the latter.
2422 am_lf='
2423 '
2424 case `pwd` in
2425   *[\\\"\#\$\&\'\`$am_lf]*)
2426     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2427 esac
2428 case $srcdir in
2429   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2430     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2431 esac
2432
2433 # Do 'set' in a subshell so we don't clobber the current shell's
2434 # arguments.  Must try -L first in case configure is actually a
2435 # symlink; some systems play weird games with the mod time of symlinks
2436 # (eg FreeBSD returns the mod time of the symlink's containing
2437 # directory).
2438 if (
2439    am_has_slept=no
2440    for am_try in 1 2; do
2441      echo "timestamp, slept: $am_has_slept" > conftest.file
2442      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2443      if test "$*" = "X"; then
2444         # -L didn't work.
2445         set X `ls -t "$srcdir/configure" conftest.file`
2446      fi
2447      if test "$*" != "X $srcdir/configure conftest.file" \
2448         && test "$*" != "X conftest.file $srcdir/configure"; then
2449
2450         # If neither matched, then we have a broken ls.  This can happen
2451         # if, for instance, CONFIG_SHELL is bash and it inherits a
2452         # broken ls alias from the environment.  This has actually
2453         # happened.  Such a system could not be considered "sane".
2454         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2455   alias in your environment" "$LINENO" 5
2456      fi
2457      if test "$2" = conftest.file || test $am_try -eq 2; then
2458        break
2459      fi
2460      # Just in case.
2461      sleep 1
2462      am_has_slept=yes
2463    done
2464    test "$2" = conftest.file
2465    )
2466 then
2467    # Ok.
2468    :
2469 else
2470    as_fn_error $? "newly created file is older than distributed files!
2471 Check your system clock" "$LINENO" 5
2472 fi
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2474 $as_echo "yes" >&6; }
2475 # If we didn't sleep, we still need to ensure time stamps of config.status and
2476 # generated files are strictly newer.
2477 am_sleep_pid=
2478 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2479   ( sleep 1 ) &
2480   am_sleep_pid=$!
2481 fi
2482
2483 rm -f conftest.file
2484
2485 test "$program_prefix" != NONE &&
2486   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2487 # Use a double $ so make ignores it.
2488 test "$program_suffix" != NONE &&
2489   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2490 # Double any \ or $.
2491 # By default was `s,x,x', remove it if useless.
2492 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2493 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2494
2495 # expand $ac_aux_dir to an absolute path
2496 am_aux_dir=`cd $ac_aux_dir && pwd`
2497
2498 if test x"${MISSING+set}" != xset; then
2499   case $am_aux_dir in
2500   *\ * | *\     *)
2501     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2502   *)
2503     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2504   esac
2505 fi
2506 # Use eval to expand $SHELL
2507 if eval "$MISSING --is-lightweight"; then
2508   am_missing_run="$MISSING "
2509 else
2510   am_missing_run=
2511   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2512 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2513 fi
2514
2515 if test x"${install_sh}" != xset; then
2516   case $am_aux_dir in
2517   *\ * | *\     *)
2518     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2519   *)
2520     install_sh="\${SHELL} $am_aux_dir/install-sh"
2521   esac
2522 fi
2523
2524 # Installed binaries are usually stripped using 'strip' when the user
2525 # run "make install-strip".  However 'strip' might not be the right
2526 # tool to use in cross-compilation environments, therefore Automake
2527 # will honor the 'STRIP' environment variable to overrule this program.
2528 if test "$cross_compiling" != no; then
2529   if test -n "$ac_tool_prefix"; then
2530   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2531 set dummy ${ac_tool_prefix}strip; ac_word=$2
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2533 $as_echo_n "checking for $ac_word... " >&6; }
2534 if ${ac_cv_prog_STRIP+:} false; then :
2535   $as_echo_n "(cached) " >&6
2536 else
2537   if test -n "$STRIP"; then
2538   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2539 else
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545     for ac_exec_ext in '' $ac_executable_extensions; do
2546   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2547     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2548     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549     break 2
2550   fi
2551 done
2552   done
2553 IFS=$as_save_IFS
2554
2555 fi
2556 fi
2557 STRIP=$ac_cv_prog_STRIP
2558 if test -n "$STRIP"; then
2559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2560 $as_echo "$STRIP" >&6; }
2561 else
2562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2563 $as_echo "no" >&6; }
2564 fi
2565
2566
2567 fi
2568 if test -z "$ac_cv_prog_STRIP"; then
2569   ac_ct_STRIP=$STRIP
2570   # Extract the first word of "strip", so it can be a program name with args.
2571 set dummy strip; ac_word=$2
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2573 $as_echo_n "checking for $ac_word... " >&6; }
2574 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2575   $as_echo_n "(cached) " >&6
2576 else
2577   if test -n "$ac_ct_STRIP"; then
2578   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2579 else
2580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581 for as_dir in $PATH
2582 do
2583   IFS=$as_save_IFS
2584   test -z "$as_dir" && as_dir=.
2585     for ac_exec_ext in '' $ac_executable_extensions; do
2586   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2587     ac_cv_prog_ac_ct_STRIP="strip"
2588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2589     break 2
2590   fi
2591 done
2592   done
2593 IFS=$as_save_IFS
2594
2595 fi
2596 fi
2597 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2598 if test -n "$ac_ct_STRIP"; then
2599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2600 $as_echo "$ac_ct_STRIP" >&6; }
2601 else
2602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2603 $as_echo "no" >&6; }
2604 fi
2605
2606   if test "x$ac_ct_STRIP" = x; then
2607     STRIP=":"
2608   else
2609     case $cross_compiling:$ac_tool_warned in
2610 yes:)
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2613 ac_tool_warned=yes ;;
2614 esac
2615     STRIP=$ac_ct_STRIP
2616   fi
2617 else
2618   STRIP="$ac_cv_prog_STRIP"
2619 fi
2620
2621 fi
2622 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2623
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2625 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2626 if test -z "$MKDIR_P"; then
2627   if ${ac_cv_path_mkdir+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2632 do
2633   IFS=$as_save_IFS
2634   test -z "$as_dir" && as_dir=.
2635     for ac_prog in mkdir gmkdir; do
2636          for ac_exec_ext in '' $ac_executable_extensions; do
2637            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2638            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2639              'mkdir (GNU coreutils) '* | \
2640              'mkdir (coreutils) '* | \
2641              'mkdir (fileutils) '4.1*)
2642                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2643                break 3;;
2644            esac
2645          done
2646        done
2647   done
2648 IFS=$as_save_IFS
2649
2650 fi
2651
2652   test -d ./--version && rmdir ./--version
2653   if test "${ac_cv_path_mkdir+set}" = set; then
2654     MKDIR_P="$ac_cv_path_mkdir -p"
2655   else
2656     # As a last resort, use the slow shell script.  Don't cache a
2657     # value for MKDIR_P within a source directory, because that will
2658     # break other packages using the cache if that directory is
2659     # removed, or if the value is a relative name.
2660     MKDIR_P="$ac_install_sh -d"
2661   fi
2662 fi
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2664 $as_echo "$MKDIR_P" >&6; }
2665
2666 for ac_prog in gawk mawk nawk awk
2667 do
2668   # Extract the first word of "$ac_prog", so it can be a program name with args.
2669 set dummy $ac_prog; ac_word=$2
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2671 $as_echo_n "checking for $ac_word... " >&6; }
2672 if ${ac_cv_prog_AWK+:} false; then :
2673   $as_echo_n "(cached) " >&6
2674 else
2675   if test -n "$AWK"; then
2676   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2677 else
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 for as_dir in $PATH
2680 do
2681   IFS=$as_save_IFS
2682   test -z "$as_dir" && as_dir=.
2683     for ac_exec_ext in '' $ac_executable_extensions; do
2684   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2685     ac_cv_prog_AWK="$ac_prog"
2686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2687     break 2
2688   fi
2689 done
2690   done
2691 IFS=$as_save_IFS
2692
2693 fi
2694 fi
2695 AWK=$ac_cv_prog_AWK
2696 if test -n "$AWK"; then
2697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2698 $as_echo "$AWK" >&6; }
2699 else
2700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2701 $as_echo "no" >&6; }
2702 fi
2703
2704
2705   test -n "$AWK" && break
2706 done
2707
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2709 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2710 set x ${MAKE-make}
2711 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2712 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2713   $as_echo_n "(cached) " >&6
2714 else
2715   cat >conftest.make <<\_ACEOF
2716 SHELL = /bin/sh
2717 all:
2718         @echo '@@@%%%=$(MAKE)=@@@%%%'
2719 _ACEOF
2720 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2722   *@@@%%%=?*=@@@%%%*)
2723     eval ac_cv_prog_make_${ac_make}_set=yes;;
2724   *)
2725     eval ac_cv_prog_make_${ac_make}_set=no;;
2726 esac
2727 rm -f conftest.make
2728 fi
2729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2731 $as_echo "yes" >&6; }
2732   SET_MAKE=
2733 else
2734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2736   SET_MAKE="MAKE=${MAKE-make}"
2737 fi
2738
2739 rm -rf .tst 2>/dev/null
2740 mkdir .tst 2>/dev/null
2741 if test -d .tst; then
2742   am__leading_dot=.
2743 else
2744   am__leading_dot=_
2745 fi
2746 rmdir .tst 2>/dev/null
2747
2748 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2749   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2750   # is not polluted with repeated "-I."
2751   am__isrc=' -I$(srcdir)'
2752   # test to see if srcdir already configured
2753   if test -f $srcdir/config.status; then
2754     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2755   fi
2756 fi
2757
2758 # test whether we have cygpath
2759 if test -z "$CYGPATH_W"; then
2760   if (cygpath --version) >/dev/null 2>/dev/null; then
2761     CYGPATH_W='cygpath -w'
2762   else
2763     CYGPATH_W=echo
2764   fi
2765 fi
2766
2767
2768 # Define the identity of the package.
2769  PACKAGE='pygobject'
2770  VERSION='3.13.3'
2771
2772
2773 cat >>confdefs.h <<_ACEOF
2774 #define PACKAGE "$PACKAGE"
2775 _ACEOF
2776
2777
2778 cat >>confdefs.h <<_ACEOF
2779 #define VERSION "$VERSION"
2780 _ACEOF
2781
2782 # Some tools Automake needs.
2783
2784 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2785
2786
2787 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2788
2789
2790 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2791
2792
2793 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2794
2795
2796 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2797
2798 # For better backward compatibility.  To be removed once Automake 1.9.x
2799 # dies out for good.  For more background, see:
2800 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2801 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2802 mkdir_p='$(MKDIR_P)'
2803
2804 # We need awk for the "check" target.  The system "awk" is bad on
2805 # some platforms.
2806 # Always define AMTAR for backward compatibility.  Yes, it's still used
2807 # in the wild :-(  We should find a proper way to deprecate it ...
2808 AMTAR='$${TAR-tar}'
2809
2810
2811 # We'll loop over all known methods to create a tar archive until one works.
2812 _am_tools='gnutar  pax cpio none'
2813
2814 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2815
2816
2817
2818
2819
2820
2821
2822 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2823
2824 # Make sure we can run config.sub.
2825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2826   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2829 $as_echo_n "checking build system type... " >&6; }
2830 if ${ac_cv_build+:} false; then :
2831   $as_echo_n "(cached) " >&6
2832 else
2833   ac_build_alias=$build_alias
2834 test "x$ac_build_alias" = x &&
2835   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836 test "x$ac_build_alias" = x &&
2837   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2839   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2840
2841 fi
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2843 $as_echo "$ac_cv_build" >&6; }
2844 case $ac_cv_build in
2845 *-*-*) ;;
2846 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2847 esac
2848 build=$ac_cv_build
2849 ac_save_IFS=$IFS; IFS='-'
2850 set x $ac_cv_build
2851 shift
2852 build_cpu=$1
2853 build_vendor=$2
2854 shift; shift
2855 # Remember, the first character of IFS is used to create $*,
2856 # except with old shells:
2857 build_os=$*
2858 IFS=$ac_save_IFS
2859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2860
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2863 $as_echo_n "checking host system type... " >&6; }
2864 if ${ac_cv_host+:} false; then :
2865   $as_echo_n "(cached) " >&6
2866 else
2867   if test "x$host_alias" = x; then
2868   ac_cv_host=$ac_cv_build
2869 else
2870   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2871     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2872 fi
2873
2874 fi
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2876 $as_echo "$ac_cv_host" >&6; }
2877 case $ac_cv_host in
2878 *-*-*) ;;
2879 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2880 esac
2881 host=$ac_cv_host
2882 ac_save_IFS=$IFS; IFS='-'
2883 set x $ac_cv_host
2884 shift
2885 host_cpu=$1
2886 host_vendor=$2
2887 shift; shift
2888 # Remember, the first character of IFS is used to create $*,
2889 # except with old shells:
2890 host_os=$*
2891 IFS=$ac_save_IFS
2892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2893
2894
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for some Win32 platform" >&5
2896 $as_echo_n "checking for some Win32 platform... " >&6; }
2897 case "$host" in
2898   *-*-mingw*|*-*-cygwin*)
2899     platform_win32=yes
2900     ;;
2901   *)
2902     platform_win32=no
2903     ;;
2904 esac
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
2906 $as_echo "$platform_win32" >&6; }
2907  if test "$platform_win32" = "yes"; then
2908   PLATFORM_WIN32_TRUE=
2909   PLATFORM_WIN32_FALSE='#'
2910 else
2911   PLATFORM_WIN32_TRUE='#'
2912   PLATFORM_WIN32_FALSE=
2913 fi
2914
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native Win32" >&5
2917 $as_echo_n "checking for native Win32... " >&6; }
2918 case "$host" in
2919   *-*-mingw*)
2920     os_win32=yes
2921     ;;
2922   *)
2923     os_win32=no
2924     ;;
2925 esac
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
2927 $as_echo "$os_win32" >&6; }
2928  if test "$os_win32" = "yes"; then
2929   OS_WIN32_TRUE=
2930   OS_WIN32_FALSE='#'
2931 else
2932   OS_WIN32_TRUE='#'
2933   OS_WIN32_FALSE=
2934 fi
2935
2936
2937
2938 case `pwd` in
2939   *\ * | *\     *)
2940     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2941 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2942 esac
2943
2944
2945
2946 macro_version='2.4.2'
2947 macro_revision='1.3337'
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961 ltmain="$ac_aux_dir/ltmain.sh"
2962
2963 # Backslashify metacharacters that are still active within
2964 # double-quoted strings.
2965 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2966
2967 # Same as above, but do not quote variable references.
2968 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2969
2970 # Sed substitution to delay expansion of an escaped shell variable in a
2971 # double_quote_subst'ed string.
2972 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2973
2974 # Sed substitution to delay expansion of an escaped single quote.
2975 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2976
2977 # Sed substitution to avoid accidental globbing in evaled expressions
2978 no_glob_subst='s/\*/\\\*/g'
2979
2980 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2981 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2982 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2983
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2985 $as_echo_n "checking how to print strings... " >&6; }
2986 # Test print first, because it will be a builtin if present.
2987 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2988    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2989   ECHO='print -r --'
2990 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2991   ECHO='printf %s\n'
2992 else
2993   # Use this function as a fallback that always works.
2994   func_fallback_echo ()
2995   {
2996     eval 'cat <<_LTECHO_EOF
2997 $1
2998 _LTECHO_EOF'
2999   }
3000   ECHO='func_fallback_echo'
3001 fi
3002
3003 # func_echo_all arg...
3004 # Invoke $ECHO with all args, space-separated.
3005 func_echo_all ()
3006 {
3007     $ECHO ""
3008 }
3009
3010 case "$ECHO" in
3011   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3012 $as_echo "printf" >&6; } ;;
3013   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3014 $as_echo "print -r" >&6; } ;;
3015   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3016 $as_echo "cat" >&6; } ;;
3017 esac
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032 DEPDIR="${am__leading_dot}deps"
3033
3034 ac_config_commands="$ac_config_commands depfiles"
3035
3036
3037 am_make=${MAKE-make}
3038 cat > confinc << 'END'
3039 am__doit:
3040         @echo this is the am__doit target
3041 .PHONY: am__doit
3042 END
3043 # If we don't find an include directive, just comment out the code.
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3045 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3046 am__include="#"
3047 am__quote=
3048 _am_result=none
3049 # First try GNU make style include.
3050 echo "include confinc" > confmf
3051 # Ignore all kinds of additional output from 'make'.
3052 case `$am_make -s -f confmf 2> /dev/null` in #(
3053 *the\ am__doit\ target*)
3054   am__include=include
3055   am__quote=
3056   _am_result=GNU
3057   ;;
3058 esac
3059 # Now try BSD make style include.
3060 if test "$am__include" = "#"; then
3061    echo '.include "confinc"' > confmf
3062    case `$am_make -s -f confmf 2> /dev/null` in #(
3063    *the\ am__doit\ target*)
3064      am__include=.include
3065      am__quote="\""
3066      _am_result=BSD
3067      ;;
3068    esac
3069 fi
3070
3071
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3073 $as_echo "$_am_result" >&6; }
3074 rm -f confinc confmf
3075
3076 # Check whether --enable-dependency-tracking was given.
3077 if test "${enable_dependency_tracking+set}" = set; then :
3078   enableval=$enable_dependency_tracking;
3079 fi
3080
3081 if test "x$enable_dependency_tracking" != xno; then
3082   am_depcomp="$ac_aux_dir/depcomp"
3083   AMDEPBACKSLASH='\'
3084   am__nodep='_no'
3085 fi
3086  if test "x$enable_dependency_tracking" != xno; then
3087   AMDEP_TRUE=
3088   AMDEP_FALSE='#'
3089 else
3090   AMDEP_TRUE='#'
3091   AMDEP_FALSE=
3092 fi
3093
3094
3095 ac_ext=c
3096 ac_cpp='$CPP $CPPFLAGS'
3097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3100 if test -n "$ac_tool_prefix"; then
3101   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_CC+:} false; then :
3106   $as_echo_n "(cached) " >&6
3107 else
3108   if test -n "$CC"; then
3109   ac_cv_prog_CC="$CC" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3113 do
3114   IFS=$as_save_IFS
3115   test -z "$as_dir" && as_dir=.
3116     for ac_exec_ext in '' $ac_executable_extensions; do
3117   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120     break 2
3121   fi
3122 done
3123   done
3124 IFS=$as_save_IFS
3125
3126 fi
3127 fi
3128 CC=$ac_cv_prog_CC
3129 if test -n "$CC"; then
3130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3131 $as_echo "$CC" >&6; }
3132 else
3133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3135 fi
3136
3137
3138 fi
3139 if test -z "$ac_cv_prog_CC"; then
3140   ac_ct_CC=$CC
3141   # Extract the first word of "gcc", so it can be a program name with args.
3142 set dummy gcc; ac_word=$2
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144 $as_echo_n "checking for $ac_word... " >&6; }
3145 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3146   $as_echo_n "(cached) " >&6
3147 else
3148   if test -n "$ac_ct_CC"; then
3149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156     for ac_exec_ext in '' $ac_executable_extensions; do
3157   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158     ac_cv_prog_ac_ct_CC="gcc"
3159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163   done
3164 IFS=$as_save_IFS
3165
3166 fi
3167 fi
3168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169 if test -n "$ac_ct_CC"; then
3170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3171 $as_echo "$ac_ct_CC" >&6; }
3172 else
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3175 fi
3176
3177   if test "x$ac_ct_CC" = x; then
3178     CC=""
3179   else
3180     case $cross_compiling:$ac_tool_warned in
3181 yes:)
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3184 ac_tool_warned=yes ;;
3185 esac
3186     CC=$ac_ct_CC
3187   fi
3188 else
3189   CC="$ac_cv_prog_CC"
3190 fi
3191
3192 if test -z "$CC"; then
3193           if test -n "$ac_tool_prefix"; then
3194     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3195 set dummy ${ac_tool_prefix}cc; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_prog_CC+:} false; then :
3199   $as_echo_n "(cached) " >&6
3200 else
3201   if test -n "$CC"; then
3202   ac_cv_prog_CC="$CC" # Let the user override the test.
3203 else
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3206 do
3207   IFS=$as_save_IFS
3208   test -z "$as_dir" && as_dir=.
3209     for ac_exec_ext in '' $ac_executable_extensions; do
3210   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211     ac_cv_prog_CC="${ac_tool_prefix}cc"
3212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213     break 2
3214   fi
3215 done
3216   done
3217 IFS=$as_save_IFS
3218
3219 fi
3220 fi
3221 CC=$ac_cv_prog_CC
3222 if test -n "$CC"; then
3223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3224 $as_echo "$CC" >&6; }
3225 else
3226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3227 $as_echo "no" >&6; }
3228 fi
3229
3230
3231   fi
3232 fi
3233 if test -z "$CC"; then
3234   # Extract the first word of "cc", so it can be a program name with args.
3235 set dummy cc; ac_word=$2
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3237 $as_echo_n "checking for $ac_word... " >&6; }
3238 if ${ac_cv_prog_CC+:} false; then :
3239   $as_echo_n "(cached) " >&6
3240 else
3241   if test -n "$CC"; then
3242   ac_cv_prog_CC="$CC" # Let the user override the test.
3243 else
3244   ac_prog_rejected=no
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3247 do
3248   IFS=$as_save_IFS
3249   test -z "$as_dir" && as_dir=.
3250     for ac_exec_ext in '' $ac_executable_extensions; do
3251   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3253        ac_prog_rejected=yes
3254        continue
3255      fi
3256     ac_cv_prog_CC="cc"
3257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258     break 2
3259   fi
3260 done
3261   done
3262 IFS=$as_save_IFS
3263
3264 if test $ac_prog_rejected = yes; then
3265   # We found a bogon in the path, so make sure we never use it.
3266   set dummy $ac_cv_prog_CC
3267   shift
3268   if test $# != 0; then
3269     # We chose a different compiler from the bogus one.
3270     # However, it has the same basename, so the bogon will be chosen
3271     # first if we set CC to just the basename; use the full file name.
3272     shift
3273     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3274   fi
3275 fi
3276 fi
3277 fi
3278 CC=$ac_cv_prog_CC
3279 if test -n "$CC"; then
3280   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3281 $as_echo "$CC" >&6; }
3282 else
3283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287
3288 fi
3289 if test -z "$CC"; then
3290   if test -n "$ac_tool_prefix"; then
3291   for ac_prog in cl.exe
3292   do
3293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3296 $as_echo_n "checking for $ac_word... " >&6; }
3297 if ${ac_cv_prog_CC+:} false; then :
3298   $as_echo_n "(cached) " >&6
3299 else
3300   if test -n "$CC"; then
3301   ac_cv_prog_CC="$CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306   IFS=$as_save_IFS
3307   test -z "$as_dir" && as_dir=.
3308     for ac_exec_ext in '' $ac_executable_extensions; do
3309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3310     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312     break 2
3313   fi
3314 done
3315   done
3316 IFS=$as_save_IFS
3317
3318 fi
3319 fi
3320 CC=$ac_cv_prog_CC
3321 if test -n "$CC"; then
3322   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3323 $as_echo "$CC" >&6; }
3324 else
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 fi
3328
3329
3330     test -n "$CC" && break
3331   done
3332 fi
3333 if test -z "$CC"; then
3334   ac_ct_CC=$CC
3335   for ac_prog in cl.exe
3336 do
3337   # Extract the first word of "$ac_prog", so it can be a program name with args.
3338 set dummy $ac_prog; ac_word=$2
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3340 $as_echo_n "checking for $ac_word... " >&6; }
3341 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3342   $as_echo_n "(cached) " >&6
3343 else
3344   if test -n "$ac_ct_CC"; then
3345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3346 else
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in $PATH
3349 do
3350   IFS=$as_save_IFS
3351   test -z "$as_dir" && as_dir=.
3352     for ac_exec_ext in '' $ac_executable_extensions; do
3353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3354     ac_cv_prog_ac_ct_CC="$ac_prog"
3355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3356     break 2
3357   fi
3358 done
3359   done
3360 IFS=$as_save_IFS
3361
3362 fi
3363 fi
3364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3365 if test -n "$ac_ct_CC"; then
3366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3367 $as_echo "$ac_ct_CC" >&6; }
3368 else
3369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3370 $as_echo "no" >&6; }
3371 fi
3372
3373
3374   test -n "$ac_ct_CC" && break
3375 done
3376
3377   if test "x$ac_ct_CC" = x; then
3378     CC=""
3379   else
3380     case $cross_compiling:$ac_tool_warned in
3381 yes:)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384 ac_tool_warned=yes ;;
3385 esac
3386     CC=$ac_ct_CC
3387   fi
3388 fi
3389
3390 fi
3391
3392
3393 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3395 as_fn_error $? "no acceptable C compiler found in \$PATH
3396 See \`config.log' for more details" "$LINENO" 5; }
3397
3398 # Provide some information about the compiler.
3399 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3400 set X $ac_compile
3401 ac_compiler=$2
3402 for ac_option in --version -v -V -qversion; do
3403   { { ac_try="$ac_compiler $ac_option >&5"
3404 case "(($ac_try" in
3405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406   *) ac_try_echo=$ac_try;;
3407 esac
3408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo"; } >&5
3410   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3411   ac_status=$?
3412   if test -s conftest.err; then
3413     sed '10a\
3414 ... rest of stderr output deleted ...
3415          10q' conftest.err >conftest.er1
3416     cat conftest.er1 >&5
3417   fi
3418   rm -f conftest.er1 conftest.err
3419   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420   test $ac_status = 0; }
3421 done
3422
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h.  */
3425
3426 int
3427 main ()
3428 {
3429
3430   ;
3431   return 0;
3432 }
3433 _ACEOF
3434 ac_clean_files_save=$ac_clean_files
3435 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3436 # Try to create an executable without -o first, disregard a.out.
3437 # It will help us diagnose broken compilers, and finding out an intuition
3438 # of exeext.
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3440 $as_echo_n "checking whether the C compiler works... " >&6; }
3441 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3442
3443 # The possible output files:
3444 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3445
3446 ac_rmfiles=
3447 for ac_file in $ac_files
3448 do
3449   case $ac_file in
3450     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3451     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3452   esac
3453 done
3454 rm -f $ac_rmfiles
3455
3456 if { { ac_try="$ac_link_default"
3457 case "(($ac_try" in
3458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459   *) ac_try_echo=$ac_try;;
3460 esac
3461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3462 $as_echo "$ac_try_echo"; } >&5
3463   (eval "$ac_link_default") 2>&5
3464   ac_status=$?
3465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466   test $ac_status = 0; }; then :
3467   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3468 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3469 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3470 # so that the user can short-circuit this test for compilers unknown to
3471 # Autoconf.
3472 for ac_file in $ac_files ''
3473 do
3474   test -f "$ac_file" || continue
3475   case $ac_file in
3476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3477         ;;
3478     [ab].out )
3479         # We found the default executable, but exeext='' is most
3480         # certainly right.
3481         break;;
3482     *.* )
3483         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3484         then :; else
3485            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3486         fi
3487         # We set ac_cv_exeext here because the later test for it is not
3488         # safe: cross compilers may not add the suffix if given an `-o'
3489         # argument, so we may need to know it at that point already.
3490         # Even if this section looks crufty: it has the advantage of
3491         # actually working.
3492         break;;
3493     * )
3494         break;;
3495   esac
3496 done
3497 test "$ac_cv_exeext" = no && ac_cv_exeext=
3498
3499 else
3500   ac_file=''
3501 fi
3502 if test -z "$ac_file"; then :
3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3504 $as_echo "no" >&6; }
3505 $as_echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error 77 "C compiler cannot create executables
3511 See \`config.log' for more details" "$LINENO" 5; }
3512 else
3513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3514 $as_echo "yes" >&6; }
3515 fi
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3517 $as_echo_n "checking for C compiler default output file name... " >&6; }
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3519 $as_echo "$ac_file" >&6; }
3520 ac_exeext=$ac_cv_exeext
3521
3522 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3523 ac_clean_files=$ac_clean_files_save
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3525 $as_echo_n "checking for suffix of executables... " >&6; }
3526 if { { ac_try="$ac_link"
3527 case "(($ac_try" in
3528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529   *) ac_try_echo=$ac_try;;
3530 esac
3531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3532 $as_echo "$ac_try_echo"; } >&5
3533   (eval "$ac_link") 2>&5
3534   ac_status=$?
3535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3536   test $ac_status = 0; }; then :
3537   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3538 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3539 # work properly (i.e., refer to `conftest.exe'), while it won't with
3540 # `rm'.
3541 for ac_file in conftest.exe conftest conftest.*; do
3542   test -f "$ac_file" || continue
3543   case $ac_file in
3544     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3545     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546           break;;
3547     * ) break;;
3548   esac
3549 done
3550 else
3551   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3552 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3553 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3554 See \`config.log' for more details" "$LINENO" 5; }
3555 fi
3556 rm -f conftest conftest$ac_cv_exeext
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3558 $as_echo "$ac_cv_exeext" >&6; }
3559
3560 rm -f conftest.$ac_ext
3561 EXEEXT=$ac_cv_exeext
3562 ac_exeext=$EXEEXT
3563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3564 /* end confdefs.h.  */
3565 #include <stdio.h>
3566 int
3567 main ()
3568 {
3569 FILE *f = fopen ("conftest.out", "w");
3570  return ferror (f) || fclose (f) != 0;
3571
3572   ;
3573   return 0;
3574 }
3575 _ACEOF
3576 ac_clean_files="$ac_clean_files conftest.out"
3577 # Check that the compiler produces executables we can run.  If not, either
3578 # the compiler is broken, or we cross compile.
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3580 $as_echo_n "checking whether we are cross compiling... " >&6; }
3581 if test "$cross_compiling" != yes; then
3582   { { ac_try="$ac_link"
3583 case "(($ac_try" in
3584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585   *) ac_try_echo=$ac_try;;
3586 esac
3587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3588 $as_echo "$ac_try_echo"; } >&5
3589   (eval "$ac_link") 2>&5
3590   ac_status=$?
3591   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592   test $ac_status = 0; }
3593   if { ac_try='./conftest$ac_cv_exeext'
3594   { { case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600   (eval "$ac_try") 2>&5
3601   ac_status=$?
3602   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3603   test $ac_status = 0; }; }; then
3604     cross_compiling=no
3605   else
3606     if test "$cross_compiling" = maybe; then
3607         cross_compiling=yes
3608     else
3609         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3611 as_fn_error $? "cannot run C compiled programs.
3612 If you meant to cross compile, use \`--host'.
3613 See \`config.log' for more details" "$LINENO" 5; }
3614     fi
3615   fi
3616 fi
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3618 $as_echo "$cross_compiling" >&6; }
3619
3620 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3621 ac_clean_files=$ac_clean_files_save
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3623 $as_echo_n "checking for suffix of object files... " >&6; }
3624 if ${ac_cv_objext+:} false; then :
3625   $as_echo_n "(cached) " >&6
3626 else
3627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3628 /* end confdefs.h.  */
3629
3630 int
3631 main ()
3632 {
3633
3634   ;
3635   return 0;
3636 }
3637 _ACEOF
3638 rm -f conftest.o conftest.obj
3639 if { { ac_try="$ac_compile"
3640 case "(($ac_try" in
3641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642   *) ac_try_echo=$ac_try;;
3643 esac
3644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3645 $as_echo "$ac_try_echo"; } >&5
3646   (eval "$ac_compile") 2>&5
3647   ac_status=$?
3648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3649   test $ac_status = 0; }; then :
3650   for ac_file in conftest.o conftest.obj conftest.*; do
3651   test -f "$ac_file" || continue;
3652   case $ac_file in
3653     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3654     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3655        break;;
3656   esac
3657 done
3658 else
3659   $as_echo "$as_me: failed program was:" >&5
3660 sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "cannot compute suffix of object files: cannot compile
3665 See \`config.log' for more details" "$LINENO" 5; }
3666 fi
3667 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3668 fi
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3670 $as_echo "$ac_cv_objext" >&6; }
3671 OBJEXT=$ac_cv_objext
3672 ac_objext=$OBJEXT
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3674 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3675 if ${ac_cv_c_compiler_gnu+:} false; then :
3676   $as_echo_n "(cached) " >&6
3677 else
3678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h.  */
3680
3681 int
3682 main ()
3683 {
3684 #ifndef __GNUC__
3685        choke me
3686 #endif
3687
3688   ;
3689   return 0;
3690 }
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693   ac_compiler_gnu=yes
3694 else
3695   ac_compiler_gnu=no
3696 fi
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3699
3700 fi
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3702 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3703 if test $ac_compiler_gnu = yes; then
3704   GCC=yes
3705 else
3706   GCC=
3707 fi
3708 ac_test_CFLAGS=${CFLAGS+set}
3709 ac_save_CFLAGS=$CFLAGS
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3711 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3712 if ${ac_cv_prog_cc_g+:} false; then :
3713   $as_echo_n "(cached) " >&6
3714 else
3715   ac_save_c_werror_flag=$ac_c_werror_flag
3716    ac_c_werror_flag=yes
3717    ac_cv_prog_cc_g=no
3718    CFLAGS="-g"
3719    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h.  */
3721
3722 int
3723 main ()
3724 {
3725
3726   ;
3727   return 0;
3728 }
3729 _ACEOF
3730 if ac_fn_c_try_compile "$LINENO"; then :
3731   ac_cv_prog_cc_g=yes
3732 else
3733   CFLAGS=""
3734       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h.  */
3736
3737 int
3738 main ()
3739 {
3740
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746
3747 else
3748   ac_c_werror_flag=$ac_save_c_werror_flag
3749          CFLAGS="-g"
3750          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3751 /* end confdefs.h.  */
3752
3753 int
3754 main ()
3755 {
3756
3757   ;
3758   return 0;
3759 }
3760 _ACEOF
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762   ac_cv_prog_cc_g=yes
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3765 fi
3766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3767 fi
3768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769    ac_c_werror_flag=$ac_save_c_werror_flag
3770 fi
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3772 $as_echo "$ac_cv_prog_cc_g" >&6; }
3773 if test "$ac_test_CFLAGS" = set; then
3774   CFLAGS=$ac_save_CFLAGS
3775 elif test $ac_cv_prog_cc_g = yes; then
3776   if test "$GCC" = yes; then
3777     CFLAGS="-g -O2"
3778   else
3779     CFLAGS="-g"
3780   fi
3781 else
3782   if test "$GCC" = yes; then
3783     CFLAGS="-O2"
3784   else
3785     CFLAGS=
3786   fi
3787 fi
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3789 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3790 if ${ac_cv_prog_cc_c89+:} false; then :
3791   $as_echo_n "(cached) " >&6
3792 else
3793   ac_cv_prog_cc_c89=no
3794 ac_save_CC=$CC
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h.  */
3797 #include <stdarg.h>
3798 #include <stdio.h>
3799 struct stat;
3800 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3801 struct buf { int x; };
3802 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3803 static char *e (p, i)
3804      char **p;
3805      int i;
3806 {
3807   return p[i];
3808 }
3809 static char *f (char * (*g) (char **, int), char **p, ...)
3810 {
3811   char *s;
3812   va_list v;
3813   va_start (v,p);
3814   s = g (p, va_arg (v,int));
3815   va_end (v);
3816   return s;
3817 }
3818
3819 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3820    function prototypes and stuff, but not '\xHH' hex character constants.
3821    These don't provoke an error unfortunately, instead are silently treated
3822    as 'x'.  The following induces an error, until -std is added to get
3823    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3824    array size at least.  It's necessary to write '\x00'==0 to get something
3825    that's true only with -std.  */
3826 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3827
3828 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3829    inside strings and character constants.  */
3830 #define FOO(x) 'x'
3831 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3832
3833 int test (int i, double x);
3834 struct s1 {int (*f) (int a);};
3835 struct s2 {int (*f) (double a);};
3836 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3837 int argc;
3838 char **argv;
3839 int
3840 main ()
3841 {
3842 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3843   ;
3844   return 0;
3845 }
3846 _ACEOF
3847 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3848         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3849 do
3850   CC="$ac_save_CC $ac_arg"
3851   if ac_fn_c_try_compile "$LINENO"; then :
3852   ac_cv_prog_cc_c89=$ac_arg
3853 fi
3854 rm -f core conftest.err conftest.$ac_objext
3855   test "x$ac_cv_prog_cc_c89" != "xno" && break
3856 done
3857 rm -f conftest.$ac_ext
3858 CC=$ac_save_CC
3859
3860 fi
3861 # AC_CACHE_VAL
3862 case "x$ac_cv_prog_cc_c89" in
3863   x)
3864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3865 $as_echo "none needed" >&6; } ;;
3866   xno)
3867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3868 $as_echo "unsupported" >&6; } ;;
3869   *)
3870     CC="$CC $ac_cv_prog_cc_c89"
3871     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3872 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3873 esac
3874 if test "x$ac_cv_prog_cc_c89" != xno; then :
3875
3876 fi
3877
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883
3884 depcc="$CC"   am_compiler_list=
3885
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3887 $as_echo_n "checking dependency style of $depcc... " >&6; }
3888 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3889   $as_echo_n "(cached) " >&6
3890 else
3891   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3892   # We make a subdir and do the tests there.  Otherwise we can end up
3893   # making bogus files that we don't know about and never remove.  For
3894   # instance it was reported that on HP-UX the gcc test will end up
3895   # making a dummy file named 'D' -- because '-MD' means "put the output
3896   # in D".
3897   rm -rf conftest.dir
3898   mkdir conftest.dir
3899   # Copy depcomp to subdir because otherwise we won't find it if we're
3900   # using a relative directory.
3901   cp "$am_depcomp" conftest.dir
3902   cd conftest.dir
3903   # We will build objects and dependencies in a subdirectory because
3904   # it helps to detect inapplicable dependency modes.  For instance
3905   # both Tru64's cc and ICC support -MD to output dependencies as a
3906   # side effect of compilation, but ICC will put the dependencies in
3907   # the current directory while Tru64 will put them in the object
3908   # directory.
3909   mkdir sub
3910
3911   am_cv_CC_dependencies_compiler_type=none
3912   if test "$am_compiler_list" = ""; then
3913      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3914   fi
3915   am__universal=false
3916   case " $depcc " in #(
3917      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3918      esac
3919
3920   for depmode in $am_compiler_list; do
3921     # Setup a source with many dependencies, because some compilers
3922     # like to wrap large dependency lists on column 80 (with \), and
3923     # we should not choose a depcomp mode which is confused by this.
3924     #
3925     # We need to recreate these files for each test, as the compiler may
3926     # overwrite some of them when testing with obscure command lines.
3927     # This happens at least with the AIX C compiler.
3928     : > sub/conftest.c
3929     for i in 1 2 3 4 5 6; do
3930       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3931       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3932       # Solaris 10 /bin/sh.
3933       echo '/* dummy */' > sub/conftst$i.h
3934     done
3935     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3936
3937     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3938     # mode.  It turns out that the SunPro C++ compiler does not properly
3939     # handle '-M -o', and we need to detect this.  Also, some Intel
3940     # versions had trouble with output in subdirs.
3941     am__obj=sub/conftest.${OBJEXT-o}
3942     am__minus_obj="-o $am__obj"
3943     case $depmode in
3944     gcc)
3945       # This depmode causes a compiler race in universal mode.
3946       test "$am__universal" = false || continue
3947       ;;
3948     nosideeffect)
3949       # After this tag, mechanisms are not by side-effect, so they'll
3950       # only be used when explicitly requested.
3951       if test "x$enable_dependency_tracking" = xyes; then
3952         continue
3953       else
3954         break
3955       fi
3956       ;;
3957     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3958       # This compiler won't grok '-c -o', but also, the minuso test has
3959       # not run yet.  These depmodes are late enough in the game, and
3960       # so weak that their functioning should not be impacted.
3961       am__obj=conftest.${OBJEXT-o}
3962       am__minus_obj=
3963       ;;
3964     none) break ;;
3965     esac
3966     if depmode=$depmode \
3967        source=sub/conftest.c object=$am__obj \
3968        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3969        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3970          >/dev/null 2>conftest.err &&
3971        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3972        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3973        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3974        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3975       # icc doesn't choke on unknown options, it will just issue warnings
3976       # or remarks (even with -Werror).  So we grep stderr for any message
3977       # that says an option was ignored or not supported.
3978       # When given -MP, icc 7.0 and 7.1 complain thusly:
3979       #   icc: Command line warning: ignoring option '-M'; no argument required
3980       # The diagnosis changed in icc 8.0:
3981       #   icc: Command line remark: option '-MP' not supported
3982       if (grep 'ignoring option' conftest.err ||
3983           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3984         am_cv_CC_dependencies_compiler_type=$depmode
3985         break
3986       fi
3987     fi
3988   done
3989
3990   cd ..
3991   rm -rf conftest.dir
3992 else
3993   am_cv_CC_dependencies_compiler_type=none
3994 fi
3995
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3998 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3999 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4000
4001  if
4002   test "x$enable_dependency_tracking" != xno \
4003   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4004   am__fastdepCC_TRUE=
4005   am__fastdepCC_FALSE='#'
4006 else
4007   am__fastdepCC_TRUE='#'
4008   am__fastdepCC_FALSE=
4009 fi
4010
4011
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4013 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4014 if ${ac_cv_path_SED+:} false; then :
4015   $as_echo_n "(cached) " >&6
4016 else
4017             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4018      for ac_i in 1 2 3 4 5 6 7; do
4019        ac_script="$ac_script$as_nl$ac_script"
4020      done
4021      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4022      { ac_script=; unset ac_script;}
4023      if test -z "$SED"; then
4024   ac_path_SED_found=false
4025   # Loop through the user's path and test for each of PROGNAME-LIST
4026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 for as_dir in $PATH
4028 do
4029   IFS=$as_save_IFS
4030   test -z "$as_dir" && as_dir=.
4031     for ac_prog in sed gsed; do
4032     for ac_exec_ext in '' $ac_executable_extensions; do
4033       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4034       as_fn_executable_p "$ac_path_SED" || continue
4035 # Check for GNU ac_path_SED and select it if it is found.
4036   # Check for GNU $ac_path_SED
4037 case `"$ac_path_SED" --version 2>&1` in
4038 *GNU*)
4039   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4040 *)
4041   ac_count=0
4042   $as_echo_n 0123456789 >"conftest.in"
4043   while :
4044   do
4045     cat "conftest.in" "conftest.in" >"conftest.tmp"
4046     mv "conftest.tmp" "conftest.in"
4047     cp "conftest.in" "conftest.nl"
4048     $as_echo '' >> "conftest.nl"
4049     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051     as_fn_arith $ac_count + 1 && ac_count=$as_val
4052     if test $ac_count -gt ${ac_path_SED_max-0}; then
4053       # Best one so far, save it but keep looking for a better one
4054       ac_cv_path_SED="$ac_path_SED"
4055       ac_path_SED_max=$ac_count
4056     fi
4057     # 10*(2^10) chars as input seems more than enough
4058     test $ac_count -gt 10 && break
4059   done
4060   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 esac
4062
4063       $ac_path_SED_found && break 3
4064     done
4065   done
4066   done
4067 IFS=$as_save_IFS
4068   if test -z "$ac_cv_path_SED"; then
4069     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4070   fi
4071 else
4072   ac_cv_path_SED=$SED
4073 fi
4074
4075 fi
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4077 $as_echo "$ac_cv_path_SED" >&6; }
4078  SED="$ac_cv_path_SED"
4079   rm -f conftest.sed
4080
4081 test -z "$SED" && SED=sed
4082 Xsed="$SED -e 1s/^X//"
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4096 if ${ac_cv_path_GREP+:} false; then :
4097   $as_echo_n "(cached) " >&6
4098 else
4099   if test -z "$GREP"; then
4100   ac_path_GREP_found=false
4101   # Loop through the user's path and test for each of PROGNAME-LIST
4102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4104 do
4105   IFS=$as_save_IFS
4106   test -z "$as_dir" && as_dir=.
4107     for ac_prog in grep ggrep; do
4108     for ac_exec_ext in '' $ac_executable_extensions; do
4109       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4110       as_fn_executable_p "$ac_path_GREP" || continue
4111 # Check for GNU ac_path_GREP and select it if it is found.
4112   # Check for GNU $ac_path_GREP
4113 case `"$ac_path_GREP" --version 2>&1` in
4114 *GNU*)
4115   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4116 *)
4117   ac_count=0
4118   $as_echo_n 0123456789 >"conftest.in"
4119   while :
4120   do
4121     cat "conftest.in" "conftest.in" >"conftest.tmp"
4122     mv "conftest.tmp" "conftest.in"
4123     cp "conftest.in" "conftest.nl"
4124     $as_echo 'GREP' >> "conftest.nl"
4125     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127     as_fn_arith $ac_count + 1 && ac_count=$as_val
4128     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4129       # Best one so far, save it but keep looking for a better one
4130       ac_cv_path_GREP="$ac_path_GREP"
4131       ac_path_GREP_max=$ac_count
4132     fi
4133     # 10*(2^10) chars as input seems more than enough
4134     test $ac_count -gt 10 && break
4135   done
4136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4137 esac
4138
4139       $ac_path_GREP_found && break 3
4140     done
4141   done
4142   done
4143 IFS=$as_save_IFS
4144   if test -z "$ac_cv_path_GREP"; then
4145     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4146   fi
4147 else
4148   ac_cv_path_GREP=$GREP
4149 fi
4150
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4153 $as_echo "$ac_cv_path_GREP" >&6; }
4154  GREP="$ac_cv_path_GREP"
4155
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4158 $as_echo_n "checking for egrep... " >&6; }
4159 if ${ac_cv_path_EGREP+:} false; then :
4160   $as_echo_n "(cached) " >&6
4161 else
4162   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4163    then ac_cv_path_EGREP="$GREP -E"
4164    else
4165      if test -z "$EGREP"; then
4166   ac_path_EGREP_found=false
4167   # Loop through the user's path and test for each of PROGNAME-LIST
4168   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4170 do
4171   IFS=$as_save_IFS
4172   test -z "$as_dir" && as_dir=.
4173     for ac_prog in egrep; do
4174     for ac_exec_ext in '' $ac_executable_extensions; do
4175       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4176       as_fn_executable_p "$ac_path_EGREP" || continue
4177 # Check for GNU ac_path_EGREP and select it if it is found.
4178   # Check for GNU $ac_path_EGREP
4179 case `"$ac_path_EGREP" --version 2>&1` in
4180 *GNU*)
4181   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4182 *)
4183   ac_count=0
4184   $as_echo_n 0123456789 >"conftest.in"
4185   while :
4186   do
4187     cat "conftest.in" "conftest.in" >"conftest.tmp"
4188     mv "conftest.tmp" "conftest.in"
4189     cp "conftest.in" "conftest.nl"
4190     $as_echo 'EGREP' >> "conftest.nl"
4191     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193     as_fn_arith $ac_count + 1 && ac_count=$as_val
4194     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4195       # Best one so far, save it but keep looking for a better one
4196       ac_cv_path_EGREP="$ac_path_EGREP"
4197       ac_path_EGREP_max=$ac_count
4198     fi
4199     # 10*(2^10) chars as input seems more than enough
4200     test $ac_count -gt 10 && break
4201   done
4202   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4203 esac
4204
4205       $ac_path_EGREP_found && break 3
4206     done
4207   done
4208   done
4209 IFS=$as_save_IFS
4210   if test -z "$ac_cv_path_EGREP"; then
4211     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4212   fi
4213 else
4214   ac_cv_path_EGREP=$EGREP
4215 fi
4216
4217    fi
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4220 $as_echo "$ac_cv_path_EGREP" >&6; }
4221  EGREP="$ac_cv_path_EGREP"
4222
4223
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4225 $as_echo_n "checking for fgrep... " >&6; }
4226 if ${ac_cv_path_FGREP+:} false; then :
4227   $as_echo_n "(cached) " >&6
4228 else
4229   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4230    then ac_cv_path_FGREP="$GREP -F"
4231    else
4232      if test -z "$FGREP"; then
4233   ac_path_FGREP_found=false
4234   # Loop through the user's path and test for each of PROGNAME-LIST
4235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4237 do
4238   IFS=$as_save_IFS
4239   test -z "$as_dir" && as_dir=.
4240     for ac_prog in fgrep; do
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4243       as_fn_executable_p "$ac_path_FGREP" || continue
4244 # Check for GNU ac_path_FGREP and select it if it is found.
4245   # Check for GNU $ac_path_FGREP
4246 case `"$ac_path_FGREP" --version 2>&1` in
4247 *GNU*)
4248   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4249 *)
4250   ac_count=0
4251   $as_echo_n 0123456789 >"conftest.in"
4252   while :
4253   do
4254     cat "conftest.in" "conftest.in" >"conftest.tmp"
4255     mv "conftest.tmp" "conftest.in"
4256     cp "conftest.in" "conftest.nl"
4257     $as_echo 'FGREP' >> "conftest.nl"
4258     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260     as_fn_arith $ac_count + 1 && ac_count=$as_val
4261     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4262       # Best one so far, save it but keep looking for a better one
4263       ac_cv_path_FGREP="$ac_path_FGREP"
4264       ac_path_FGREP_max=$ac_count
4265     fi
4266     # 10*(2^10) chars as input seems more than enough
4267     test $ac_count -gt 10 && break
4268   done
4269   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4270 esac
4271
4272       $ac_path_FGREP_found && break 3
4273     done
4274   done
4275   done
4276 IFS=$as_save_IFS
4277   if test -z "$ac_cv_path_FGREP"; then
4278     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4279   fi
4280 else
4281   ac_cv_path_FGREP=$FGREP
4282 fi
4283
4284    fi
4285 fi
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4287 $as_echo "$ac_cv_path_FGREP" >&6; }
4288  FGREP="$ac_cv_path_FGREP"
4289
4290
4291 test -z "$GREP" && GREP=grep
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311 # Check whether --with-gnu-ld was given.
4312 if test "${with_gnu_ld+set}" = set; then :
4313   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4314 else
4315   with_gnu_ld=no
4316 fi
4317
4318 ac_prog=ld
4319 if test "$GCC" = yes; then
4320   # Check if gcc -print-prog-name=ld gives a path.
4321   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4322 $as_echo_n "checking for ld used by $CC... " >&6; }
4323   case $host in
4324   *-*-mingw*)
4325     # gcc leaves a trailing carriage return which upsets mingw
4326     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4327   *)
4328     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4329   esac
4330   case $ac_prog in
4331     # Accept absolute paths.
4332     [\\/]* | ?:[\\/]*)
4333       re_direlt='/[^/][^/]*/\.\./'
4334       # Canonicalize the pathname of ld
4335       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4336       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4337         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4338       done
4339       test -z "$LD" && LD="$ac_prog"
4340       ;;
4341   "")
4342     # If it fails, then pretend we aren't using GCC.
4343     ac_prog=ld
4344     ;;
4345   *)
4346     # If it is relative, then search for the first ld in PATH.
4347     with_gnu_ld=unknown
4348     ;;
4349   esac
4350 elif test "$with_gnu_ld" = yes; then
4351   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4352 $as_echo_n "checking for GNU ld... " >&6; }
4353 else
4354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4355 $as_echo_n "checking for non-GNU ld... " >&6; }
4356 fi
4357 if ${lt_cv_path_LD+:} false; then :
4358   $as_echo_n "(cached) " >&6
4359 else
4360   if test -z "$LD"; then
4361   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4362   for ac_dir in $PATH; do
4363     IFS="$lt_save_ifs"
4364     test -z "$ac_dir" && ac_dir=.
4365     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4366       lt_cv_path_LD="$ac_dir/$ac_prog"
4367       # Check to see if the program is GNU ld.  I'd rather use --version,
4368       # but apparently some variants of GNU ld only accept -v.
4369       # Break only if it was the GNU/non-GNU ld that we prefer.
4370       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4371       *GNU* | *'with BFD'*)
4372         test "$with_gnu_ld" != no && break
4373         ;;
4374       *)
4375         test "$with_gnu_ld" != yes && break
4376         ;;
4377       esac
4378     fi
4379   done
4380   IFS="$lt_save_ifs"
4381 else
4382   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4383 fi
4384 fi
4385
4386 LD="$lt_cv_path_LD"
4387 if test -n "$LD"; then
4388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4389 $as_echo "$LD" >&6; }
4390 else
4391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4393 fi
4394 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4396 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4397 if ${lt_cv_prog_gnu_ld+:} false; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4401 case `$LD -v 2>&1 </dev/null` in
4402 *GNU* | *'with BFD'*)
4403   lt_cv_prog_gnu_ld=yes
4404   ;;
4405 *)
4406   lt_cv_prog_gnu_ld=no
4407   ;;
4408 esac
4409 fi
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4411 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4412 with_gnu_ld=$lt_cv_prog_gnu_ld
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4423 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4424 if ${lt_cv_path_NM+:} false; then :
4425   $as_echo_n "(cached) " >&6
4426 else
4427   if test -n "$NM"; then
4428   # Let the user override the test.
4429   lt_cv_path_NM="$NM"
4430 else
4431   lt_nm_to_check="${ac_tool_prefix}nm"
4432   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4433     lt_nm_to_check="$lt_nm_to_check nm"
4434   fi
4435   for lt_tmp_nm in $lt_nm_to_check; do
4436     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4437     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4438       IFS="$lt_save_ifs"
4439       test -z "$ac_dir" && ac_dir=.
4440       tmp_nm="$ac_dir/$lt_tmp_nm"
4441       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4442         # Check to see if the nm accepts a BSD-compat flag.
4443         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4444         #   nm: unknown option "B" ignored
4445         # Tru64's nm complains that /dev/null is an invalid object file
4446         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4447         */dev/null* | *'Invalid file or object type'*)
4448           lt_cv_path_NM="$tmp_nm -B"
4449           break
4450           ;;
4451         *)
4452           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4453           */dev/null*)
4454             lt_cv_path_NM="$tmp_nm -p"
4455             break
4456             ;;
4457           *)
4458             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4459             continue # so that we can try to find one that supports BSD flags
4460             ;;
4461           esac
4462           ;;
4463         esac
4464       fi
4465     done
4466     IFS="$lt_save_ifs"
4467   done
4468   : ${lt_cv_path_NM=no}
4469 fi
4470 fi
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4472 $as_echo "$lt_cv_path_NM" >&6; }
4473 if test "$lt_cv_path_NM" != "no"; then
4474   NM="$lt_cv_path_NM"
4475 else
4476   # Didn't find any BSD compatible name lister, look for dumpbin.
4477   if test -n "$DUMPBIN"; then :
4478     # Let the user override the test.
4479   else
4480     if test -n "$ac_tool_prefix"; then
4481   for ac_prog in dumpbin "link -dump"
4482   do
4483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486 $as_echo_n "checking for $ac_word... " >&6; }
4487 if ${ac_cv_prog_DUMPBIN+:} false; then :
4488   $as_echo_n "(cached) " >&6
4489 else
4490   if test -n "$DUMPBIN"; then
4491   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4492 else
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496   IFS=$as_save_IFS
4497   test -z "$as_dir" && as_dir=.
4498     for ac_exec_ext in '' $ac_executable_extensions; do
4499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502     break 2
4503   fi
4504 done
4505   done
4506 IFS=$as_save_IFS
4507
4508 fi
4509 fi
4510 DUMPBIN=$ac_cv_prog_DUMPBIN
4511 if test -n "$DUMPBIN"; then
4512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4513 $as_echo "$DUMPBIN" >&6; }
4514 else
4515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516 $as_echo "no" >&6; }
4517 fi
4518
4519
4520     test -n "$DUMPBIN" && break
4521   done
4522 fi
4523 if test -z "$DUMPBIN"; then
4524   ac_ct_DUMPBIN=$DUMPBIN
4525   for ac_prog in dumpbin "link -dump"
4526 do
4527   # Extract the first word of "$ac_prog", so it can be a program name with args.
4528 set dummy $ac_prog; ac_word=$2
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530 $as_echo_n "checking for $ac_word... " >&6; }
4531 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4532   $as_echo_n "(cached) " >&6
4533 else
4534   if test -n "$ac_ct_DUMPBIN"; then
4535   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4539 do
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542     for ac_exec_ext in '' $ac_executable_extensions; do
4543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549   done
4550 IFS=$as_save_IFS
4551
4552 fi
4553 fi
4554 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4555 if test -n "$ac_ct_DUMPBIN"; then
4556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4557 $as_echo "$ac_ct_DUMPBIN" >&6; }
4558 else
4559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 fi
4562
4563
4564   test -n "$ac_ct_DUMPBIN" && break
4565 done
4566
4567   if test "x$ac_ct_DUMPBIN" = x; then
4568     DUMPBIN=":"
4569   else
4570     case $cross_compiling:$ac_tool_warned in
4571 yes:)
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4574 ac_tool_warned=yes ;;
4575 esac
4576     DUMPBIN=$ac_ct_DUMPBIN
4577   fi
4578 fi
4579
4580     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4581     *COFF*)
4582       DUMPBIN="$DUMPBIN -symbols"
4583       ;;
4584     *)
4585       DUMPBIN=:
4586       ;;
4587     esac
4588   fi
4589
4590   if test "$DUMPBIN" != ":"; then
4591     NM="$DUMPBIN"
4592   fi
4593 fi
4594 test -z "$NM" && NM=nm
4595
4596
4597
4598
4599
4600
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4602 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4603 if ${lt_cv_nm_interface+:} false; then :
4604   $as_echo_n "(cached) " >&6
4605 else
4606   lt_cv_nm_interface="BSD nm"
4607   echo "int some_variable = 0;" > conftest.$ac_ext
4608   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4609   (eval "$ac_compile" 2>conftest.err)
4610   cat conftest.err >&5
4611   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4612   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4613   cat conftest.err >&5
4614   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4615   cat conftest.out >&5
4616   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4617     lt_cv_nm_interface="MS dumpbin"
4618   fi
4619   rm -f conftest*
4620 fi
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4622 $as_echo "$lt_cv_nm_interface" >&6; }
4623
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4625 $as_echo_n "checking whether ln -s works... " >&6; }
4626 LN_S=$as_ln_s
4627 if test "$LN_S" = "ln -s"; then
4628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629 $as_echo "yes" >&6; }
4630 else
4631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4632 $as_echo "no, using $LN_S" >&6; }
4633 fi
4634
4635 # find the maximum length of command line arguments
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4637 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4638 if ${lt_cv_sys_max_cmd_len+:} false; then :
4639   $as_echo_n "(cached) " >&6
4640 else
4641     i=0
4642   teststring="ABCD"
4643
4644   case $build_os in
4645   msdosdjgpp*)
4646     # On DJGPP, this test can blow up pretty badly due to problems in libc
4647     # (any single argument exceeding 2000 bytes causes a buffer overrun
4648     # during glob expansion).  Even if it were fixed, the result of this
4649     # check would be larger than it should be.
4650     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4651     ;;
4652
4653   gnu*)
4654     # Under GNU Hurd, this test is not required because there is
4655     # no limit to the length of command line arguments.
4656     # Libtool will interpret -1 as no limit whatsoever
4657     lt_cv_sys_max_cmd_len=-1;
4658     ;;
4659
4660   cygwin* | mingw* | cegcc*)
4661     # On Win9x/ME, this test blows up -- it succeeds, but takes
4662     # about 5 minutes as the teststring grows exponentially.
4663     # Worse, since 9x/ME are not pre-emptively multitasking,
4664     # you end up with a "frozen" computer, even though with patience
4665     # the test eventually succeeds (with a max line length of 256k).
4666     # Instead, let's just punt: use the minimum linelength reported by
4667     # all of the supported platforms: 8192 (on NT/2K/XP).
4668     lt_cv_sys_max_cmd_len=8192;
4669     ;;
4670
4671   mint*)
4672     # On MiNT this can take a long time and run out of memory.
4673     lt_cv_sys_max_cmd_len=8192;
4674     ;;
4675
4676   amigaos*)
4677     # On AmigaOS with pdksh, this test takes hours, literally.
4678     # So we just punt and use a minimum line length of 8192.
4679     lt_cv_sys_max_cmd_len=8192;
4680     ;;
4681
4682   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4683     # This has been around since 386BSD, at least.  Likely further.
4684     if test -x /sbin/sysctl; then
4685       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4686     elif test -x /usr/sbin/sysctl; then
4687       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4688     else
4689       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4690     fi
4691     # And add a safety zone
4692     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4693     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4694     ;;
4695
4696   interix*)
4697     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4698     lt_cv_sys_max_cmd_len=196608
4699     ;;
4700
4701   os2*)
4702     # The test takes a long time on OS/2.
4703     lt_cv_sys_max_cmd_len=8192
4704     ;;
4705
4706   osf*)
4707     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4708     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4709     # nice to cause kernel panics so lets avoid the loop below.
4710     # First set a reasonable default.
4711     lt_cv_sys_max_cmd_len=16384
4712     #
4713     if test -x /sbin/sysconfig; then
4714       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4715         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4716       esac
4717     fi
4718     ;;
4719   sco3.2v5*)
4720     lt_cv_sys_max_cmd_len=102400
4721     ;;
4722   sysv5* | sco5v6* | sysv4.2uw2*)
4723     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4724     if test -n "$kargmax"; then
4725       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4726     else
4727       lt_cv_sys_max_cmd_len=32768
4728     fi
4729     ;;
4730   *)
4731     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4732     if test -n "$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 gnu*)
5131   lt_cv_deplibs_check_method=pass_all
5132   ;;
5133
5134 haiku*)
5135   lt_cv_deplibs_check_method=pass_all
5136   ;;
5137
5138 hpux10.20* | hpux11*)
5139   lt_cv_file_magic_cmd=/usr/bin/file
5140   case $host_cpu in
5141   ia64*)
5142     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5143     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5144     ;;
5145   hppa*64*)
5146     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]'
5147     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5148     ;;
5149   *)
5150     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5151     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5152     ;;
5153   esac
5154   ;;
5155
5156 interix[3-9]*)
5157   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5158   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5159   ;;
5160
5161 irix5* | irix6* | nonstopux*)
5162   case $LD in
5163   *-32|*"-32 ") libmagic=32-bit;;
5164   *-n32|*"-n32 ") libmagic=N32;;
5165   *-64|*"-64 ") libmagic=64-bit;;
5166   *) libmagic=never-match;;
5167   esac
5168   lt_cv_deplibs_check_method=pass_all
5169   ;;
5170
5171 # This must be glibc/ELF.
5172 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5173   lt_cv_deplibs_check_method=pass_all
5174   ;;
5175
5176 netbsd*)
5177   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5178     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5179   else
5180     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5181   fi
5182   ;;
5183
5184 newos6*)
5185   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5186   lt_cv_file_magic_cmd=/usr/bin/file
5187   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5188   ;;
5189
5190 *nto* | *qnx*)
5191   lt_cv_deplibs_check_method=pass_all
5192   ;;
5193
5194 openbsd*)
5195   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5196     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5197   else
5198     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5199   fi
5200   ;;
5201
5202 osf3* | osf4* | osf5*)
5203   lt_cv_deplibs_check_method=pass_all
5204   ;;
5205
5206 rdos*)
5207   lt_cv_deplibs_check_method=pass_all
5208   ;;
5209
5210 solaris*)
5211   lt_cv_deplibs_check_method=pass_all
5212   ;;
5213
5214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5215   lt_cv_deplibs_check_method=pass_all
5216   ;;
5217
5218 sysv4 | sysv4.3*)
5219   case $host_vendor in
5220   motorola)
5221     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]'
5222     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5223     ;;
5224   ncr)
5225     lt_cv_deplibs_check_method=pass_all
5226     ;;
5227   sequent)
5228     lt_cv_file_magic_cmd='/bin/file'
5229     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5230     ;;
5231   sni)
5232     lt_cv_file_magic_cmd='/bin/file'
5233     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5234     lt_cv_file_magic_test_file=/lib/libc.so
5235     ;;
5236   siemens)
5237     lt_cv_deplibs_check_method=pass_all
5238     ;;
5239   pc)
5240     lt_cv_deplibs_check_method=pass_all
5241     ;;
5242   esac
5243   ;;
5244
5245 tpf*)
5246   lt_cv_deplibs_check_method=pass_all
5247   ;;
5248 esac
5249
5250 fi
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5252 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5253
5254 file_magic_glob=
5255 want_nocaseglob=no
5256 if test "$build" = "$host"; then
5257   case $host_os in
5258   mingw* | pw32*)
5259     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5260       want_nocaseglob=yes
5261     else
5262       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5263     fi
5264     ;;
5265   esac
5266 fi
5267
5268 file_magic_cmd=$lt_cv_file_magic_cmd
5269 deplibs_check_method=$lt_cv_deplibs_check_method
5270 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293 if test -n "$ac_tool_prefix"; then
5294   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5295 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_prog_DLLTOOL+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   if test -n "$DLLTOOL"; then
5302   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5303 else
5304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5305 for as_dir in $PATH
5306 do
5307   IFS=$as_save_IFS
5308   test -z "$as_dir" && as_dir=.
5309     for ac_exec_ext in '' $ac_executable_extensions; do
5310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5311     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5313     break 2
5314   fi
5315 done
5316   done
5317 IFS=$as_save_IFS
5318
5319 fi
5320 fi
5321 DLLTOOL=$ac_cv_prog_DLLTOOL
5322 if test -n "$DLLTOOL"; then
5323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5324 $as_echo "$DLLTOOL" >&6; }
5325 else
5326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327 $as_echo "no" >&6; }
5328 fi
5329
5330
5331 fi
5332 if test -z "$ac_cv_prog_DLLTOOL"; then
5333   ac_ct_DLLTOOL=$DLLTOOL
5334   # Extract the first word of "dlltool", so it can be a program name with args.
5335 set dummy dlltool; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5339   $as_echo_n "(cached) " >&6
5340 else
5341   if test -n "$ac_ct_DLLTOOL"; then
5342   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347   IFS=$as_save_IFS
5348   test -z "$as_dir" && as_dir=.
5349     for ac_exec_ext in '' $ac_executable_extensions; do
5350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353     break 2
5354   fi
5355 done
5356   done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5362 if test -n "$ac_ct_DLLTOOL"; then
5363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5364 $as_echo "$ac_ct_DLLTOOL" >&6; }
5365 else
5366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370   if test "x$ac_ct_DLLTOOL" = x; then
5371     DLLTOOL="false"
5372   else
5373     case $cross_compiling:$ac_tool_warned in
5374 yes:)
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5377 ac_tool_warned=yes ;;
5378 esac
5379     DLLTOOL=$ac_ct_DLLTOOL
5380   fi
5381 else
5382   DLLTOOL="$ac_cv_prog_DLLTOOL"
5383 fi
5384
5385 test -z "$DLLTOOL" && DLLTOOL=dlltool
5386
5387
5388
5389
5390
5391
5392
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5394 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5395 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5396   $as_echo_n "(cached) " >&6
5397 else
5398   lt_cv_sharedlib_from_linklib_cmd='unknown'
5399
5400 case $host_os in
5401 cygwin* | mingw* | pw32* | cegcc*)
5402   # two different shell functions defined in ltmain.sh
5403   # decide which to use based on capabilities of $DLLTOOL
5404   case `$DLLTOOL --help 2>&1` in
5405   *--identify-strict*)
5406     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5407     ;;
5408   *)
5409     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5410     ;;
5411   esac
5412   ;;
5413 *)
5414   # fallback: assume linklib IS sharedlib
5415   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5416   ;;
5417 esac
5418
5419 fi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5421 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5422 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5423 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5424
5425
5426
5427
5428
5429
5430
5431
5432 if test -n "$ac_tool_prefix"; then
5433   for ac_prog in ar
5434   do
5435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5438 $as_echo_n "checking for $ac_word... " >&6; }
5439 if ${ac_cv_prog_AR+:} false; then :
5440   $as_echo_n "(cached) " >&6
5441 else
5442   if test -n "$AR"; then
5443   ac_cv_prog_AR="$AR" # Let the user override the test.
5444 else
5445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5446 for as_dir in $PATH
5447 do
5448   IFS=$as_save_IFS
5449   test -z "$as_dir" && as_dir=.
5450     for ac_exec_ext in '' $ac_executable_extensions; do
5451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5452     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5454     break 2
5455   fi
5456 done
5457   done
5458 IFS=$as_save_IFS
5459
5460 fi
5461 fi
5462 AR=$ac_cv_prog_AR
5463 if test -n "$AR"; then
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5465 $as_echo "$AR" >&6; }
5466 else
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471
5472     test -n "$AR" && break
5473   done
5474 fi
5475 if test -z "$AR"; then
5476   ac_ct_AR=$AR
5477   for ac_prog in ar
5478 do
5479   # Extract the first word of "$ac_prog", so it can be a program name with args.
5480 set dummy $ac_prog; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   if test -n "$ac_ct_AR"; then
5487   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5488 else
5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494     for ac_exec_ext in '' $ac_executable_extensions; do
5495   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5496     ac_cv_prog_ac_ct_AR="$ac_prog"
5497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498     break 2
5499   fi
5500 done
5501   done
5502 IFS=$as_save_IFS
5503
5504 fi
5505 fi
5506 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5507 if test -n "$ac_ct_AR"; then
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5509 $as_echo "$ac_ct_AR" >&6; }
5510 else
5511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 fi
5514
5515
5516   test -n "$ac_ct_AR" && break
5517 done
5518
5519   if test "x$ac_ct_AR" = x; then
5520     AR="false"
5521   else
5522     case $cross_compiling:$ac_tool_warned in
5523 yes:)
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526 ac_tool_warned=yes ;;
5527 esac
5528     AR=$ac_ct_AR
5529   fi
5530 fi
5531
5532 : ${AR=ar}
5533 : ${AR_FLAGS=cru}
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5546 $as_echo_n "checking for archiver @FILE support... " >&6; }
5547 if ${lt_cv_ar_at_file+:} false; then :
5548   $as_echo_n "(cached) " >&6
5549 else
5550   lt_cv_ar_at_file=no
5551    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h.  */
5553
5554 int
5555 main ()
5556 {
5557
5558   ;
5559   return 0;
5560 }
5561 _ACEOF
5562 if ac_fn_c_try_compile "$LINENO"; then :
5563   echo conftest.$ac_objext > conftest.lst
5564       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5565       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5566   (eval $lt_ar_try) 2>&5
5567   ac_status=$?
5568   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5569   test $ac_status = 0; }
5570       if test "$ac_status" -eq 0; then
5571         # Ensure the archiver fails upon bogus file names.
5572         rm -f conftest.$ac_objext libconftest.a
5573         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5574   (eval $lt_ar_try) 2>&5
5575   ac_status=$?
5576   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5577   test $ac_status = 0; }
5578         if test "$ac_status" -ne 0; then
5579           lt_cv_ar_at_file=@
5580         fi
5581       fi
5582       rm -f conftest.* libconftest.a
5583
5584 fi
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5589 $as_echo "$lt_cv_ar_at_file" >&6; }
5590
5591 if test "x$lt_cv_ar_at_file" = xno; then
5592   archiver_list_spec=
5593 else
5594   archiver_list_spec=$lt_cv_ar_at_file
5595 fi
5596
5597
5598
5599
5600
5601
5602
5603 if test -n "$ac_tool_prefix"; then
5604   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5605 set dummy ${ac_tool_prefix}strip; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_prog_STRIP+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   if test -n "$STRIP"; then
5612   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5613 else
5614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629 fi
5630 fi
5631 STRIP=$ac_cv_prog_STRIP
5632 if test -n "$STRIP"; then
5633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5634 $as_echo "$STRIP" >&6; }
5635 else
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5637 $as_echo "no" >&6; }
5638 fi
5639
5640
5641 fi
5642 if test -z "$ac_cv_prog_STRIP"; then
5643   ac_ct_STRIP=$STRIP
5644   # Extract the first word of "strip", so it can be a program name with args.
5645 set dummy strip; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   if test -n "$ac_ct_STRIP"; then
5652   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5653 else
5654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 for as_dir in $PATH
5656 do
5657   IFS=$as_save_IFS
5658   test -z "$as_dir" && as_dir=.
5659     for ac_exec_ext in '' $ac_executable_extensions; do
5660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5661     ac_cv_prog_ac_ct_STRIP="strip"
5662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663     break 2
5664   fi
5665 done
5666   done
5667 IFS=$as_save_IFS
5668
5669 fi
5670 fi
5671 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5672 if test -n "$ac_ct_STRIP"; then
5673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5674 $as_echo "$ac_ct_STRIP" >&6; }
5675 else
5676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5677 $as_echo "no" >&6; }
5678 fi
5679
5680   if test "x$ac_ct_STRIP" = x; then
5681     STRIP=":"
5682   else
5683     case $cross_compiling:$ac_tool_warned in
5684 yes:)
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5687 ac_tool_warned=yes ;;
5688 esac
5689     STRIP=$ac_ct_STRIP
5690   fi
5691 else
5692   STRIP="$ac_cv_prog_STRIP"
5693 fi
5694
5695 test -z "$STRIP" && STRIP=:
5696
5697
5698
5699
5700
5701
5702 if test -n "$ac_tool_prefix"; then
5703   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5704 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5706 $as_echo_n "checking for $ac_word... " >&6; }
5707 if ${ac_cv_prog_RANLIB+:} false; then :
5708   $as_echo_n "(cached) " >&6
5709 else
5710   if test -n "$RANLIB"; then
5711   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5712 else
5713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5714 for as_dir in $PATH
5715 do
5716   IFS=$as_save_IFS
5717   test -z "$as_dir" && as_dir=.
5718     for ac_exec_ext in '' $ac_executable_extensions; do
5719   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5720     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5722     break 2
5723   fi
5724 done
5725   done
5726 IFS=$as_save_IFS
5727
5728 fi
5729 fi
5730 RANLIB=$ac_cv_prog_RANLIB
5731 if test -n "$RANLIB"; then
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5733 $as_echo "$RANLIB" >&6; }
5734 else
5735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5736 $as_echo "no" >&6; }
5737 fi
5738
5739
5740 fi
5741 if test -z "$ac_cv_prog_RANLIB"; then
5742   ac_ct_RANLIB=$RANLIB
5743   # Extract the first word of "ranlib", so it can be a program name with args.
5744 set dummy ranlib; ac_word=$2
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5746 $as_echo_n "checking for $ac_word... " >&6; }
5747 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5748   $as_echo_n "(cached) " >&6
5749 else
5750   if test -n "$ac_ct_RANLIB"; then
5751   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5752 else
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5754 for as_dir in $PATH
5755 do
5756   IFS=$as_save_IFS
5757   test -z "$as_dir" && as_dir=.
5758     for ac_exec_ext in '' $ac_executable_extensions; do
5759   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5760     ac_cv_prog_ac_ct_RANLIB="ranlib"
5761     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5762     break 2
5763   fi
5764 done
5765   done
5766 IFS=$as_save_IFS
5767
5768 fi
5769 fi
5770 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5771 if test -n "$ac_ct_RANLIB"; then
5772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5773 $as_echo "$ac_ct_RANLIB" >&6; }
5774 else
5775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 fi
5778
5779   if test "x$ac_ct_RANLIB" = x; then
5780     RANLIB=":"
5781   else
5782     case $cross_compiling:$ac_tool_warned in
5783 yes:)
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5786 ac_tool_warned=yes ;;
5787 esac
5788     RANLIB=$ac_ct_RANLIB
5789   fi
5790 else
5791   RANLIB="$ac_cv_prog_RANLIB"
5792 fi
5793
5794 test -z "$RANLIB" && RANLIB=:
5795
5796
5797
5798
5799
5800
5801 # Determine commands to create old-style static archives.
5802 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5803 old_postinstall_cmds='chmod 644 $oldlib'
5804 old_postuninstall_cmds=
5805
5806 if test -n "$RANLIB"; then
5807   case $host_os in
5808   openbsd*)
5809     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5810     ;;
5811   *)
5812     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5813     ;;
5814   esac
5815   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5816 fi
5817
5818 case $host_os in
5819   darwin*)
5820     lock_old_archive_extraction=yes ;;
5821   *)
5822     lock_old_archive_extraction=no ;;
5823 esac
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
5860
5861
5862
5863 # If no C compiler was specified, use CC.
5864 LTCC=${LTCC-"$CC"}
5865
5866 # If no C compiler flags were specified, use CFLAGS.
5867 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5868
5869 # Allow CC to be a program name with arguments.
5870 compiler=$CC
5871
5872
5873 # Check for command to grab the raw symbol name followed by C symbol from nm.
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5875 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5876 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879
5880 # These are sane defaults that work on at least a few old systems.
5881 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5882
5883 # Character class describing NM global symbol codes.
5884 symcode='[BCDEGRST]'
5885
5886 # Regexp to match symbols that can be accessed directly from C.
5887 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5888
5889 # Define system-specific variables.
5890 case $host_os in
5891 aix*)
5892   symcode='[BCDT]'
5893   ;;
5894 cygwin* | mingw* | pw32* | cegcc*)
5895   symcode='[ABCDGISTW]'
5896   ;;
5897 hpux*)
5898   if test "$host_cpu" = ia64; then
5899     symcode='[ABCDEGRST]'
5900   fi
5901   ;;
5902 irix* | nonstopux*)
5903   symcode='[BCDEGRST]'
5904   ;;
5905 osf*)
5906   symcode='[BCDEGQRST]'
5907   ;;
5908 solaris*)
5909   symcode='[BDRT]'
5910   ;;
5911 sco3.2v5*)
5912   symcode='[DT]'
5913   ;;
5914 sysv4.2uw2*)
5915   symcode='[DT]'
5916   ;;
5917 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5918   symcode='[ABDT]'
5919   ;;
5920 sysv4)
5921   symcode='[DFNSTU]'
5922   ;;
5923 esac
5924
5925 # If we're using GNU nm, then use its standard symbol codes.
5926 case `$NM -V 2>&1` in
5927 *GNU* | *'with BFD'*)
5928   symcode='[ABCDGIRSTW]' ;;
5929 esac
5930
5931 # Transform an extracted symbol line into a proper C declaration.
5932 # Some systems (esp. on ia64) link data and code symbols differently,
5933 # so use this general approach.
5934 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5935
5936 # Transform an extracted symbol line into symbol name and symbol address
5937 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5938 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'"
5939
5940 # Handle CRLF in mingw tool chain
5941 opt_cr=
5942 case $build_os in
5943 mingw*)
5944   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5945   ;;
5946 esac
5947
5948 # Try without a prefix underscore, then with it.
5949 for ac_symprfx in "" "_"; do
5950
5951   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5952   symxfrm="\\1 $ac_symprfx\\2 \\2"
5953
5954   # Write the raw and C identifiers.
5955   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5956     # Fake it for dumpbin and say T for any non-static function
5957     # and D for any global variable.
5958     # Also find C++ and __fastcall symbols from MSVC++,
5959     # which start with @ or ?.
5960     lt_cv_sys_global_symbol_pipe="$AWK '"\
5961 "     {last_section=section; section=\$ 3};"\
5962 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5963 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5964 "     \$ 0!~/External *\|/{next};"\
5965 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5966 "     {if(hide[section]) next};"\
5967 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5968 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5969 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5970 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5971 "     ' prfx=^$ac_symprfx"
5972   else
5973     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5974   fi
5975   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5976
5977   # Check to see that the pipe works correctly.
5978   pipe_works=no
5979
5980   rm -f conftest*
5981   cat > conftest.$ac_ext <<_LT_EOF
5982 #ifdef __cplusplus
5983 extern "C" {
5984 #endif
5985 char nm_test_var;
5986 void nm_test_func(void);
5987 void nm_test_func(void){}
5988 #ifdef __cplusplus
5989 }
5990 #endif
5991 int main(){nm_test_var='a';nm_test_func();return(0);}
5992 _LT_EOF
5993
5994   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5995   (eval $ac_compile) 2>&5
5996   ac_status=$?
5997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998   test $ac_status = 0; }; then
5999     # Now try to grab the symbols.
6000     nlist=conftest.nm
6001     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6002   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6003   ac_status=$?
6004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005   test $ac_status = 0; } && test -s "$nlist"; then
6006       # Try sorting and uniquifying the output.
6007       if sort "$nlist" | uniq > "$nlist"T; then
6008         mv -f "$nlist"T "$nlist"
6009       else
6010         rm -f "$nlist"T
6011       fi
6012
6013       # Make sure that we snagged all the symbols we need.
6014       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6015         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6016           cat <<_LT_EOF > conftest.$ac_ext
6017 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6018 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6019 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6020    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6021 # define LT_DLSYM_CONST
6022 #elif defined(__osf__)
6023 /* This system does not cope well with relocations in const data.  */
6024 # define LT_DLSYM_CONST
6025 #else
6026 # define LT_DLSYM_CONST const
6027 #endif
6028
6029 #ifdef __cplusplus
6030 extern "C" {
6031 #endif
6032
6033 _LT_EOF
6034           # Now generate the symbol file.
6035           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6036
6037           cat <<_LT_EOF >> conftest.$ac_ext
6038
6039 /* The mapping between symbol names and symbols.  */
6040 LT_DLSYM_CONST struct {
6041   const char *name;
6042   void       *address;
6043 }
6044 lt__PROGRAM__LTX_preloaded_symbols[] =
6045 {
6046   { "@PROGRAM@", (void *) 0 },
6047 _LT_EOF
6048           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6049           cat <<\_LT_EOF >> conftest.$ac_ext
6050   {0, (void *) 0}
6051 };
6052
6053 /* This works around a problem in FreeBSD linker */
6054 #ifdef FREEBSD_WORKAROUND
6055 static const void *lt_preloaded_setup() {
6056   return lt__PROGRAM__LTX_preloaded_symbols;
6057 }
6058 #endif
6059
6060 #ifdef __cplusplus
6061 }
6062 #endif
6063 _LT_EOF
6064           # Now try linking the two files.
6065           mv conftest.$ac_objext conftstm.$ac_objext
6066           lt_globsym_save_LIBS=$LIBS
6067           lt_globsym_save_CFLAGS=$CFLAGS
6068           LIBS="conftstm.$ac_objext"
6069           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6070           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6071   (eval $ac_link) 2>&5
6072   ac_status=$?
6073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6075             pipe_works=yes
6076           fi
6077           LIBS=$lt_globsym_save_LIBS
6078           CFLAGS=$lt_globsym_save_CFLAGS
6079         else
6080           echo "cannot find nm_test_func in $nlist" >&5
6081         fi
6082       else
6083         echo "cannot find nm_test_var in $nlist" >&5
6084       fi
6085     else
6086       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6087     fi
6088   else
6089     echo "$progname: failed program was:" >&5
6090     cat conftest.$ac_ext >&5
6091   fi
6092   rm -rf conftest* conftst*
6093
6094   # Do not use the global_symbol_pipe unless it works.
6095   if test "$pipe_works" = yes; then
6096     break
6097   else
6098     lt_cv_sys_global_symbol_pipe=
6099   fi
6100 done
6101
6102 fi
6103
6104 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6105   lt_cv_sys_global_symbol_to_cdecl=
6106 fi
6107 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6109 $as_echo "failed" >&6; }
6110 else
6111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6112 $as_echo "ok" >&6; }
6113 fi
6114
6115 # Response file support.
6116 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6117   nm_file_list_spec='@'
6118 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6119   nm_file_list_spec='@'
6120 fi
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6149 $as_echo_n "checking for sysroot... " >&6; }
6150
6151 # Check whether --with-sysroot was given.
6152 if test "${with_sysroot+set}" = set; then :
6153   withval=$with_sysroot;
6154 else
6155   with_sysroot=no
6156 fi
6157
6158
6159 lt_sysroot=
6160 case ${with_sysroot} in #(
6161  yes)
6162    if test "$GCC" = yes; then
6163      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6164    fi
6165    ;; #(
6166  /*)
6167    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6168    ;; #(
6169  no|'')
6170    ;; #(
6171  *)
6172    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6173 $as_echo "${with_sysroot}" >&6; }
6174    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6175    ;;
6176 esac
6177
6178  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6179 $as_echo "${lt_sysroot:-no}" >&6; }
6180
6181
6182
6183
6184
6185 # Check whether --enable-libtool-lock was given.
6186 if test "${enable_libtool_lock+set}" = set; then :
6187   enableval=$enable_libtool_lock;
6188 fi
6189
6190 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6191
6192 # Some flags need to be propagated to the compiler or linker for good
6193 # libtool support.
6194 case $host in
6195 ia64-*-hpux*)
6196   # Find out which ABI we are using.
6197   echo 'int i;' > conftest.$ac_ext
6198   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199   (eval $ac_compile) 2>&5
6200   ac_status=$?
6201   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202   test $ac_status = 0; }; then
6203     case `/usr/bin/file conftest.$ac_objext` in
6204       *ELF-32*)
6205         HPUX_IA64_MODE="32"
6206         ;;
6207       *ELF-64*)
6208         HPUX_IA64_MODE="64"
6209         ;;
6210     esac
6211   fi
6212   rm -rf conftest*
6213   ;;
6214 *-*-irix6*)
6215   # Find out which ABI we are using.
6216   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6217   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218   (eval $ac_compile) 2>&5
6219   ac_status=$?
6220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221   test $ac_status = 0; }; then
6222     if test "$lt_cv_prog_gnu_ld" = yes; then
6223       case `/usr/bin/file conftest.$ac_objext` in
6224         *32-bit*)
6225           LD="${LD-ld} -melf32bsmip"
6226           ;;
6227         *N32*)
6228           LD="${LD-ld} -melf32bmipn32"
6229           ;;
6230         *64-bit*)
6231           LD="${LD-ld} -melf64bmip"
6232         ;;
6233       esac
6234     else
6235       case `/usr/bin/file conftest.$ac_objext` in
6236         *32-bit*)
6237           LD="${LD-ld} -32"
6238           ;;
6239         *N32*)
6240           LD="${LD-ld} -n32"
6241           ;;
6242         *64-bit*)
6243           LD="${LD-ld} -64"
6244           ;;
6245       esac
6246     fi
6247   fi
6248   rm -rf conftest*
6249   ;;
6250
6251 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6252 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6253   # Find out which ABI we are using.
6254   echo 'int i;' > conftest.$ac_ext
6255   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6256   (eval $ac_compile) 2>&5
6257   ac_status=$?
6258   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259   test $ac_status = 0; }; then
6260     case `/usr/bin/file conftest.o` in
6261       *32-bit*)
6262         case $host in
6263           x86_64-*kfreebsd*-gnu)
6264             LD="${LD-ld} -m elf_i386_fbsd"
6265             ;;
6266           x86_64-*linux*)
6267             LD="${LD-ld} -m elf_i386"
6268             ;;
6269           powerpc64le-*linux*)
6270             LD="${LD-ld} -m elf32lppclinux"
6271             ;;
6272           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           powerpcle-*linux*)
6292             LD="${LD-ld} -m elf64lppc"
6293             ;;
6294           powerpc-*linux*)
6295             LD="${LD-ld} -m elf64ppc"
6296             ;;
6297           s390*-*linux*|s390*-*tpf*)
6298             LD="${LD-ld} -m elf64_s390"
6299             ;;
6300           sparc*-*linux*)
6301             LD="${LD-ld} -m elf64_sparc"
6302             ;;
6303         esac
6304         ;;
6305     esac
6306   fi
6307   rm -rf conftest*
6308   ;;
6309
6310 *-*-sco3.2v5*)
6311   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6312   SAVE_CFLAGS="$CFLAGS"
6313   CFLAGS="$CFLAGS -belf"
6314   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6315 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6316 if ${lt_cv_cc_needs_belf+:} false; then :
6317   $as_echo_n "(cached) " >&6
6318 else
6319   ac_ext=c
6320 ac_cpp='$CPP $CPPFLAGS'
6321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6324
6325      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326 /* end confdefs.h.  */
6327
6328 int
6329 main ()
6330 {
6331
6332   ;
6333   return 0;
6334 }
6335 _ACEOF
6336 if ac_fn_c_try_link "$LINENO"; then :
6337   lt_cv_cc_needs_belf=yes
6338 else
6339   lt_cv_cc_needs_belf=no
6340 fi
6341 rm -f core conftest.err conftest.$ac_objext \
6342     conftest$ac_exeext conftest.$ac_ext
6343      ac_ext=c
6344 ac_cpp='$CPP $CPPFLAGS'
6345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6348
6349 fi
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6351 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6352   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6353     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6354     CFLAGS="$SAVE_CFLAGS"
6355   fi
6356   ;;
6357 *-*solaris*)
6358   # Find out which ABI we are using.
6359   echo 'int i;' > conftest.$ac_ext
6360   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6361   (eval $ac_compile) 2>&5
6362   ac_status=$?
6363   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6364   test $ac_status = 0; }; then
6365     case `/usr/bin/file conftest.o` in
6366     *64-bit*)
6367       case $lt_cv_prog_gnu_ld in
6368       yes*)
6369         case $host in
6370         i?86-*-solaris*)
6371           LD="${LD-ld} -m elf_x86_64"
6372           ;;
6373         sparc*-*-solaris*)
6374           LD="${LD-ld} -m elf64_sparc"
6375           ;;
6376         esac
6377         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6378         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6379           LD="${LD-ld}_sol2"
6380         fi
6381         ;;
6382       *)
6383         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6384           LD="${LD-ld} -64"
6385         fi
6386         ;;
6387       esac
6388       ;;
6389     esac
6390   fi
6391   rm -rf conftest*
6392   ;;
6393 esac
6394
6395 need_locks="$enable_libtool_lock"
6396
6397 if test -n "$ac_tool_prefix"; then
6398   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}mt; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6403   $as_echo_n "(cached) " >&6
6404 else
6405   if test -n "$MANIFEST_TOOL"; then
6406   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411   IFS=$as_save_IFS
6412   test -z "$as_dir" && as_dir=.
6413     for ac_exec_ext in '' $ac_executable_extensions; do
6414   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6416     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417     break 2
6418   fi
6419 done
6420   done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6426 if test -n "$MANIFEST_TOOL"; then
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6428 $as_echo "$MANIFEST_TOOL" >&6; }
6429 else
6430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6437   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6438   # Extract the first word of "mt", so it can be a program name with args.
6439 set dummy mt; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$ac_ct_MANIFEST_TOOL"; then
6446   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6466 if test -n "$ac_ct_MANIFEST_TOOL"; then
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6468 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6469 else
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6475     MANIFEST_TOOL=":"
6476   else
6477     case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6484   fi
6485 else
6486   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6487 fi
6488
6489 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6491 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6492 if ${lt_cv_path_mainfest_tool+:} false; then :
6493   $as_echo_n "(cached) " >&6
6494 else
6495   lt_cv_path_mainfest_tool=no
6496   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6497   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6498   cat conftest.err >&5
6499   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6500     lt_cv_path_mainfest_tool=yes
6501   fi
6502   rm -f conftest*
6503 fi
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6505 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6506 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6507   MANIFEST_TOOL=:
6508 fi
6509
6510
6511
6512
6513
6514
6515   case $host_os in
6516     rhapsody* | darwin*)
6517     if test -n "$ac_tool_prefix"; then
6518   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6519 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6521 $as_echo_n "checking for $ac_word... " >&6; }
6522 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6523   $as_echo_n "(cached) " >&6
6524 else
6525   if test -n "$DSYMUTIL"; then
6526   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6527 else
6528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6529 for as_dir in $PATH
6530 do
6531   IFS=$as_save_IFS
6532   test -z "$as_dir" && as_dir=.
6533     for ac_exec_ext in '' $ac_executable_extensions; do
6534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6535     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6537     break 2
6538   fi
6539 done
6540   done
6541 IFS=$as_save_IFS
6542
6543 fi
6544 fi
6545 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6546 if test -n "$DSYMUTIL"; then
6547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6548 $as_echo "$DSYMUTIL" >&6; }
6549 else
6550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6551 $as_echo "no" >&6; }
6552 fi
6553
6554
6555 fi
6556 if test -z "$ac_cv_prog_DSYMUTIL"; then
6557   ac_ct_DSYMUTIL=$DSYMUTIL
6558   # Extract the first word of "dsymutil", so it can be a program name with args.
6559 set dummy dsymutil; ac_word=$2
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6561 $as_echo_n "checking for $ac_word... " >&6; }
6562 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6563   $as_echo_n "(cached) " >&6
6564 else
6565   if test -n "$ac_ct_DSYMUTIL"; then
6566   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6567 else
6568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6569 for as_dir in $PATH
6570 do
6571   IFS=$as_save_IFS
6572   test -z "$as_dir" && as_dir=.
6573     for ac_exec_ext in '' $ac_executable_extensions; do
6574   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6575     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6577     break 2
6578   fi
6579 done
6580   done
6581 IFS=$as_save_IFS
6582
6583 fi
6584 fi
6585 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6586 if test -n "$ac_ct_DSYMUTIL"; then
6587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6588 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6589 else
6590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6592 fi
6593
6594   if test "x$ac_ct_DSYMUTIL" = x; then
6595     DSYMUTIL=":"
6596   else
6597     case $cross_compiling:$ac_tool_warned in
6598 yes:)
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6601 ac_tool_warned=yes ;;
6602 esac
6603     DSYMUTIL=$ac_ct_DSYMUTIL
6604   fi
6605 else
6606   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6607 fi
6608
6609     if test -n "$ac_tool_prefix"; then
6610   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6611 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_NMEDIT+:} false; then :
6615   $as_echo_n "(cached) " >&6
6616 else
6617   if test -n "$NMEDIT"; then
6618   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623   IFS=$as_save_IFS
6624   test -z "$as_dir" && as_dir=.
6625     for ac_exec_ext in '' $ac_executable_extensions; do
6626   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629     break 2
6630   fi
6631 done
6632   done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 NMEDIT=$ac_cv_prog_NMEDIT
6638 if test -n "$NMEDIT"; then
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6640 $as_echo "$NMEDIT" >&6; }
6641 else
6642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 fi
6648 if test -z "$ac_cv_prog_NMEDIT"; then
6649   ac_ct_NMEDIT=$NMEDIT
6650   # Extract the first word of "nmedit", so it can be a program name with args.
6651 set dummy nmedit; ac_word=$2
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6653 $as_echo_n "checking for $ac_word... " >&6; }
6654 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6655   $as_echo_n "(cached) " >&6
6656 else
6657   if test -n "$ac_ct_NMEDIT"; then
6658   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6659 else
6660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 for as_dir in $PATH
6662 do
6663   IFS=$as_save_IFS
6664   test -z "$as_dir" && as_dir=.
6665     for ac_exec_ext in '' $ac_executable_extensions; do
6666   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6667     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669     break 2
6670   fi
6671 done
6672   done
6673 IFS=$as_save_IFS
6674
6675 fi
6676 fi
6677 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6678 if test -n "$ac_ct_NMEDIT"; then
6679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6680 $as_echo "$ac_ct_NMEDIT" >&6; }
6681 else
6682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683 $as_echo "no" >&6; }
6684 fi
6685
6686   if test "x$ac_ct_NMEDIT" = x; then
6687     NMEDIT=":"
6688   else
6689     case $cross_compiling:$ac_tool_warned in
6690 yes:)
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6693 ac_tool_warned=yes ;;
6694 esac
6695     NMEDIT=$ac_ct_NMEDIT
6696   fi
6697 else
6698   NMEDIT="$ac_cv_prog_NMEDIT"
6699 fi
6700
6701     if test -n "$ac_tool_prefix"; then
6702   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6703 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6705 $as_echo_n "checking for $ac_word... " >&6; }
6706 if ${ac_cv_prog_LIPO+:} false; then :
6707   $as_echo_n "(cached) " >&6
6708 else
6709   if test -n "$LIPO"; then
6710   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6711 else
6712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6713 for as_dir in $PATH
6714 do
6715   IFS=$as_save_IFS
6716   test -z "$as_dir" && as_dir=.
6717     for ac_exec_ext in '' $ac_executable_extensions; do
6718   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6719     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6721     break 2
6722   fi
6723 done
6724   done
6725 IFS=$as_save_IFS
6726
6727 fi
6728 fi
6729 LIPO=$ac_cv_prog_LIPO
6730 if test -n "$LIPO"; then
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6732 $as_echo "$LIPO" >&6; }
6733 else
6734   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6735 $as_echo "no" >&6; }
6736 fi
6737
6738
6739 fi
6740 if test -z "$ac_cv_prog_LIPO"; then
6741   ac_ct_LIPO=$LIPO
6742   # Extract the first word of "lipo", so it can be a program name with args.
6743 set dummy lipo; ac_word=$2
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745 $as_echo_n "checking for $ac_word... " >&6; }
6746 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6747   $as_echo_n "(cached) " >&6
6748 else
6749   if test -n "$ac_ct_LIPO"; then
6750   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6751 else
6752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757     for ac_exec_ext in '' $ac_executable_extensions; do
6758   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6759     ac_cv_prog_ac_ct_LIPO="lipo"
6760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764   done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6770 if test -n "$ac_ct_LIPO"; then
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6772 $as_echo "$ac_ct_LIPO" >&6; }
6773 else
6774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6776 fi
6777
6778   if test "x$ac_ct_LIPO" = x; then
6779     LIPO=":"
6780   else
6781     case $cross_compiling:$ac_tool_warned in
6782 yes:)
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6785 ac_tool_warned=yes ;;
6786 esac
6787     LIPO=$ac_ct_LIPO
6788   fi
6789 else
6790   LIPO="$ac_cv_prog_LIPO"
6791 fi
6792
6793     if test -n "$ac_tool_prefix"; then
6794   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}otool; ac_word=$2
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6797 $as_echo_n "checking for $ac_word... " >&6; }
6798 if ${ac_cv_prog_OTOOL+:} false; then :
6799   $as_echo_n "(cached) " >&6
6800 else
6801   if test -n "$OTOOL"; then
6802   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6803 else
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 for as_dir in $PATH
6806 do
6807   IFS=$as_save_IFS
6808   test -z "$as_dir" && as_dir=.
6809     for ac_exec_ext in '' $ac_executable_extensions; do
6810   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6811     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813     break 2
6814   fi
6815 done
6816   done
6817 IFS=$as_save_IFS
6818
6819 fi
6820 fi
6821 OTOOL=$ac_cv_prog_OTOOL
6822 if test -n "$OTOOL"; then
6823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6824 $as_echo "$OTOOL" >&6; }
6825 else
6826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6827 $as_echo "no" >&6; }
6828 fi
6829
6830
6831 fi
6832 if test -z "$ac_cv_prog_OTOOL"; then
6833   ac_ct_OTOOL=$OTOOL
6834   # Extract the first word of "otool", so it can be a program name with args.
6835 set dummy otool; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6839   $as_echo_n "(cached) " >&6
6840 else
6841   if test -n "$ac_ct_OTOOL"; then
6842   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847   IFS=$as_save_IFS
6848   test -z "$as_dir" && as_dir=.
6849     for ac_exec_ext in '' $ac_executable_extensions; do
6850   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851     ac_cv_prog_ac_ct_OTOOL="otool"
6852     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853     break 2
6854   fi
6855 done
6856   done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6862 if test -n "$ac_ct_OTOOL"; then
6863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6864 $as_echo "$ac_ct_OTOOL" >&6; }
6865 else
6866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870   if test "x$ac_ct_OTOOL" = x; then
6871     OTOOL=":"
6872   else
6873     case $cross_compiling:$ac_tool_warned in
6874 yes:)
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6877 ac_tool_warned=yes ;;
6878 esac
6879     OTOOL=$ac_ct_OTOOL
6880   fi
6881 else
6882   OTOOL="$ac_cv_prog_OTOOL"
6883 fi
6884
6885     if test -n "$ac_tool_prefix"; then
6886   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6887 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_OTOOL64+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   if test -n "$OTOOL64"; then
6894   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 OTOOL64=$ac_cv_prog_OTOOL64
6914 if test -n "$OTOOL64"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6916 $as_echo "$OTOOL64" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922
6923 fi
6924 if test -z "$ac_cv_prog_OTOOL64"; then
6925   ac_ct_OTOOL64=$OTOOL64
6926   # Extract the first word of "otool64", so it can be a program name with args.
6927 set dummy otool64; ac_word=$2
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6929 $as_echo_n "checking for $ac_word... " >&6; }
6930 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6931   $as_echo_n "(cached) " >&6
6932 else
6933   if test -n "$ac_ct_OTOOL64"; then
6934   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6935 else
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6937 for as_dir in $PATH
6938 do
6939   IFS=$as_save_IFS
6940   test -z "$as_dir" && as_dir=.
6941     for ac_exec_ext in '' $ac_executable_extensions; do
6942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6943     ac_cv_prog_ac_ct_OTOOL64="otool64"
6944     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945     break 2
6946   fi
6947 done
6948   done
6949 IFS=$as_save_IFS
6950
6951 fi
6952 fi
6953 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6954 if test -n "$ac_ct_OTOOL64"; then
6955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6956 $as_echo "$ac_ct_OTOOL64" >&6; }
6957 else
6958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6960 fi
6961
6962   if test "x$ac_ct_OTOOL64" = x; then
6963     OTOOL64=":"
6964   else
6965     case $cross_compiling:$ac_tool_warned in
6966 yes:)
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6969 ac_tool_warned=yes ;;
6970 esac
6971     OTOOL64=$ac_ct_OTOOL64
6972   fi
6973 else
6974   OTOOL64="$ac_cv_prog_OTOOL64"
6975 fi
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
7001
7002
7003     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7004 $as_echo_n "checking for -single_module linker flag... " >&6; }
7005 if ${lt_cv_apple_cc_single_mod+:} false; then :
7006   $as_echo_n "(cached) " >&6
7007 else
7008   lt_cv_apple_cc_single_mod=no
7009       if test -z "${LT_MULTI_MODULE}"; then
7010         # By default we will add the -single_module flag. You can override
7011         # by either setting the environment variable LT_MULTI_MODULE
7012         # non-empty at configure time, or by adding -multi_module to the
7013         # link flags.
7014         rm -rf libconftest.dylib*
7015         echo "int foo(void){return 1;}" > conftest.c
7016         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7017 -dynamiclib -Wl,-single_module conftest.c" >&5
7018         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7019           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7020         _lt_result=$?
7021         # If there is a non-empty error log, and "single_module"
7022         # appears in it, assume the flag caused a linker warning
7023         if test -s conftest.err && $GREP single_module conftest.err; then
7024           cat conftest.err >&5
7025         # Otherwise, if the output was created with a 0 exit code from
7026         # the compiler, it worked.
7027         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7028           lt_cv_apple_cc_single_mod=yes
7029         else
7030           cat conftest.err >&5
7031         fi
7032         rm -rf libconftest.dylib*
7033         rm -f conftest.*
7034       fi
7035 fi
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7037 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7038
7039     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7040 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7041 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7042   $as_echo_n "(cached) " >&6
7043 else
7044   lt_cv_ld_exported_symbols_list=no
7045       save_LDFLAGS=$LDFLAGS
7046       echo "_main" > conftest.sym
7047       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7048       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h.  */
7050
7051 int
7052 main ()
7053 {
7054
7055   ;
7056   return 0;
7057 }
7058 _ACEOF
7059 if ac_fn_c_try_link "$LINENO"; then :
7060   lt_cv_ld_exported_symbols_list=yes
7061 else
7062   lt_cv_ld_exported_symbols_list=no
7063 fi
7064 rm -f core conftest.err conftest.$ac_objext \
7065     conftest$ac_exeext conftest.$ac_ext
7066         LDFLAGS="$save_LDFLAGS"
7067
7068 fi
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7070 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7071
7072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7073 $as_echo_n "checking for -force_load linker flag... " >&6; }
7074 if ${lt_cv_ld_force_load+:} false; then :
7075   $as_echo_n "(cached) " >&6
7076 else
7077   lt_cv_ld_force_load=no
7078       cat > conftest.c << _LT_EOF
7079 int forced_loaded() { return 2;}
7080 _LT_EOF
7081       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7082       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7083       echo "$AR cru libconftest.a conftest.o" >&5
7084       $AR cru libconftest.a conftest.o 2>&5
7085       echo "$RANLIB libconftest.a" >&5
7086       $RANLIB libconftest.a 2>&5
7087       cat > conftest.c << _LT_EOF
7088 int main() { return 0;}
7089 _LT_EOF
7090       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7091       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7092       _lt_result=$?
7093       if test -s conftest.err && $GREP force_load conftest.err; then
7094         cat conftest.err >&5
7095       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7096         lt_cv_ld_force_load=yes
7097       else
7098         cat conftest.err >&5
7099       fi
7100         rm -f conftest.err libconftest.a conftest conftest.c
7101         rm -rf conftest.dSYM
7102
7103 fi
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7105 $as_echo "$lt_cv_ld_force_load" >&6; }
7106     case $host_os in
7107     rhapsody* | darwin1.[012])
7108       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7109     darwin1.*)
7110       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7111     darwin*) # darwin 5.x on
7112       # if running on 10.5 or later, the deployment target defaults
7113       # to the OS version, if on x86, and 10.4, the deployment
7114       # target defaults to 10.4. Don't you love it?
7115       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7116         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7117           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7118         10.[012]*)
7119           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7120         10.*)
7121           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7122       esac
7123     ;;
7124   esac
7125     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7126       _lt_dar_single_mod='$single_module'
7127     fi
7128     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7129       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7130     else
7131       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7132     fi
7133     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7134       _lt_dsymutil='~$DSYMUTIL $lib || :'
7135     else
7136       _lt_dsymutil=
7137     fi
7138     ;;
7139   esac
7140
7141 ac_ext=c
7142 ac_cpp='$CPP $CPPFLAGS'
7143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7147 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7148 # On Suns, sometimes $CPP names a directory.
7149 if test -n "$CPP" && test -d "$CPP"; then
7150   CPP=
7151 fi
7152 if test -z "$CPP"; then
7153   if ${ac_cv_prog_CPP+:} false; then :
7154   $as_echo_n "(cached) " >&6
7155 else
7156       # Double quotes because CPP needs to be expanded
7157     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7158     do
7159       ac_preproc_ok=false
7160 for ac_c_preproc_warn_flag in '' yes
7161 do
7162   # Use a header file that comes with gcc, so configuring glibc
7163   # with a fresh cross-compiler works.
7164   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7165   # <limits.h> exists even on freestanding compilers.
7166   # On the NeXT, cc -E runs the code through the compiler's parser,
7167   # not just through cpp. "Syntax error" is here to catch this case.
7168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h.  */
7170 #ifdef __STDC__
7171 # include <limits.h>
7172 #else
7173 # include <assert.h>
7174 #endif
7175                      Syntax error
7176 _ACEOF
7177 if ac_fn_c_try_cpp "$LINENO"; then :
7178
7179 else
7180   # Broken: fails on valid input.
7181 continue
7182 fi
7183 rm -f conftest.err conftest.i conftest.$ac_ext
7184
7185   # OK, works on sane cases.  Now check whether nonexistent headers
7186   # can be detected and how.
7187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7188 /* end confdefs.h.  */
7189 #include <ac_nonexistent.h>
7190 _ACEOF
7191 if ac_fn_c_try_cpp "$LINENO"; then :
7192   # Broken: success on invalid input.
7193 continue
7194 else
7195   # Passes both tests.
7196 ac_preproc_ok=:
7197 break
7198 fi
7199 rm -f conftest.err conftest.i conftest.$ac_ext
7200
7201 done
7202 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7203 rm -f conftest.i conftest.err conftest.$ac_ext
7204 if $ac_preproc_ok; then :
7205   break
7206 fi
7207
7208     done
7209     ac_cv_prog_CPP=$CPP
7210
7211 fi
7212   CPP=$ac_cv_prog_CPP
7213 else
7214   ac_cv_prog_CPP=$CPP
7215 fi
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7217 $as_echo "$CPP" >&6; }
7218 ac_preproc_ok=false
7219 for ac_c_preproc_warn_flag in '' yes
7220 do
7221   # Use a header file that comes with gcc, so configuring glibc
7222   # with a fresh cross-compiler works.
7223   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7224   # <limits.h> exists even on freestanding compilers.
7225   # On the NeXT, cc -E runs the code through the compiler's parser,
7226   # not just through cpp. "Syntax error" is here to catch this case.
7227   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7228 /* end confdefs.h.  */
7229 #ifdef __STDC__
7230 # include <limits.h>
7231 #else
7232 # include <assert.h>
7233 #endif
7234                      Syntax error
7235 _ACEOF
7236 if ac_fn_c_try_cpp "$LINENO"; then :
7237
7238 else
7239   # Broken: fails on valid input.
7240 continue
7241 fi
7242 rm -f conftest.err conftest.i conftest.$ac_ext
7243
7244   # OK, works on sane cases.  Now check whether nonexistent headers
7245   # can be detected and how.
7246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h.  */
7248 #include <ac_nonexistent.h>
7249 _ACEOF
7250 if ac_fn_c_try_cpp "$LINENO"; then :
7251   # Broken: success on invalid input.
7252 continue
7253 else
7254   # Passes both tests.
7255 ac_preproc_ok=:
7256 break
7257 fi
7258 rm -f conftest.err conftest.i conftest.$ac_ext
7259
7260 done
7261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7262 rm -f conftest.i conftest.err conftest.$ac_ext
7263 if $ac_preproc_ok; then :
7264
7265 else
7266   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7268 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7269 See \`config.log' for more details" "$LINENO" 5; }
7270 fi
7271
7272 ac_ext=c
7273 ac_cpp='$CPP $CPPFLAGS'
7274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7277
7278
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7280 $as_echo_n "checking for ANSI C header files... " >&6; }
7281 if ${ac_cv_header_stdc+:} false; then :
7282   $as_echo_n "(cached) " >&6
7283 else
7284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 /* end confdefs.h.  */
7286 #include <stdlib.h>
7287 #include <stdarg.h>
7288 #include <string.h>
7289 #include <float.h>
7290
7291 int
7292 main ()
7293 {
7294
7295   ;
7296   return 0;
7297 }
7298 _ACEOF
7299 if ac_fn_c_try_compile "$LINENO"; then :
7300   ac_cv_header_stdc=yes
7301 else
7302   ac_cv_header_stdc=no
7303 fi
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305
7306 if test $ac_cv_header_stdc = yes; then
7307   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7308   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7309 /* end confdefs.h.  */
7310 #include <string.h>
7311
7312 _ACEOF
7313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7314   $EGREP "memchr" >/dev/null 2>&1; then :
7315
7316 else
7317   ac_cv_header_stdc=no
7318 fi
7319 rm -f conftest*
7320
7321 fi
7322
7323 if test $ac_cv_header_stdc = yes; then
7324   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h.  */
7327 #include <stdlib.h>
7328
7329 _ACEOF
7330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7331   $EGREP "free" >/dev/null 2>&1; then :
7332
7333 else
7334   ac_cv_header_stdc=no
7335 fi
7336 rm -f conftest*
7337
7338 fi
7339
7340 if test $ac_cv_header_stdc = yes; then
7341   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7342   if test "$cross_compiling" = yes; then :
7343   :
7344 else
7345   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h.  */
7347 #include <ctype.h>
7348 #include <stdlib.h>
7349 #if ((' ' & 0x0FF) == 0x020)
7350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7352 #else
7353 # define ISLOWER(c) \
7354                    (('a' <= (c) && (c) <= 'i') \
7355                      || ('j' <= (c) && (c) <= 'r') \
7356                      || ('s' <= (c) && (c) <= 'z'))
7357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7358 #endif
7359
7360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7361 int
7362 main ()
7363 {
7364   int i;
7365   for (i = 0; i < 256; i++)
7366     if (XOR (islower (i), ISLOWER (i))
7367         || toupper (i) != TOUPPER (i))
7368       return 2;
7369   return 0;
7370 }
7371 _ACEOF
7372 if ac_fn_c_try_run "$LINENO"; then :
7373
7374 else
7375   ac_cv_header_stdc=no
7376 fi
7377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7378   conftest.$ac_objext conftest.beam conftest.$ac_ext
7379 fi
7380
7381 fi
7382 fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7384 $as_echo "$ac_cv_header_stdc" >&6; }
7385 if test $ac_cv_header_stdc = yes; then
7386
7387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7388
7389 fi
7390
7391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7393                   inttypes.h stdint.h unistd.h
7394 do :
7395   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7397 "
7398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7399   cat >>confdefs.h <<_ACEOF
7400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7401 _ACEOF
7402
7403 fi
7404
7405 done
7406
7407
7408 for ac_header in dlfcn.h
7409 do :
7410   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7411 "
7412 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7413   cat >>confdefs.h <<_ACEOF
7414 #define HAVE_DLFCN_H 1
7415 _ACEOF
7416
7417 fi
7418
7419 done
7420
7421
7422
7423
7424
7425 # Set options
7426 enable_dlopen=yes
7427 enable_win32_dll=yes
7428
7429 case $host in
7430 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7431   if test -n "$ac_tool_prefix"; then
7432   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7433 set dummy ${ac_tool_prefix}as; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_AS+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   if test -n "$AS"; then
7440   ac_cv_prog_AS="$AS" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7444 do
7445   IFS=$as_save_IFS
7446   test -z "$as_dir" && as_dir=.
7447     for ac_exec_ext in '' $ac_executable_extensions; do
7448   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449     ac_cv_prog_AS="${ac_tool_prefix}as"
7450     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451     break 2
7452   fi
7453 done
7454   done
7455 IFS=$as_save_IFS
7456
7457 fi
7458 fi
7459 AS=$ac_cv_prog_AS
7460 if test -n "$AS"; then
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7462 $as_echo "$AS" >&6; }
7463 else
7464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7466 fi
7467
7468
7469 fi
7470 if test -z "$ac_cv_prog_AS"; then
7471   ac_ct_AS=$AS
7472   # Extract the first word of "as", so it can be a program name with args.
7473 set dummy as; ac_word=$2
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7475 $as_echo_n "checking for $ac_word... " >&6; }
7476 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7477   $as_echo_n "(cached) " >&6
7478 else
7479   if test -n "$ac_ct_AS"; then
7480   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7481 else
7482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7483 for as_dir in $PATH
7484 do
7485   IFS=$as_save_IFS
7486   test -z "$as_dir" && as_dir=.
7487     for ac_exec_ext in '' $ac_executable_extensions; do
7488   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7489     ac_cv_prog_ac_ct_AS="as"
7490     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7491     break 2
7492   fi
7493 done
7494   done
7495 IFS=$as_save_IFS
7496
7497 fi
7498 fi
7499 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7500 if test -n "$ac_ct_AS"; then
7501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7502 $as_echo "$ac_ct_AS" >&6; }
7503 else
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7505 $as_echo "no" >&6; }
7506 fi
7507
7508   if test "x$ac_ct_AS" = x; then
7509     AS="false"
7510   else
7511     case $cross_compiling:$ac_tool_warned in
7512 yes:)
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7515 ac_tool_warned=yes ;;
7516 esac
7517     AS=$ac_ct_AS
7518   fi
7519 else
7520   AS="$ac_cv_prog_AS"
7521 fi
7522
7523   if test -n "$ac_tool_prefix"; then
7524   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7525 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_DLLTOOL+:} false; then :
7529   $as_echo_n "(cached) " >&6
7530 else
7531   if test -n "$DLLTOOL"; then
7532   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7536 do
7537   IFS=$as_save_IFS
7538   test -z "$as_dir" && as_dir=.
7539     for ac_exec_ext in '' $ac_executable_extensions; do
7540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543     break 2
7544   fi
7545 done
7546   done
7547 IFS=$as_save_IFS
7548
7549 fi
7550 fi
7551 DLLTOOL=$ac_cv_prog_DLLTOOL
7552 if test -n "$DLLTOOL"; then
7553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7554 $as_echo "$DLLTOOL" >&6; }
7555 else
7556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 fi
7559
7560
7561 fi
7562 if test -z "$ac_cv_prog_DLLTOOL"; then
7563   ac_ct_DLLTOOL=$DLLTOOL
7564   # Extract the first word of "dlltool", so it can be a program name with args.
7565 set dummy dlltool; ac_word=$2
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7567 $as_echo_n "checking for $ac_word... " >&6; }
7568 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7569   $as_echo_n "(cached) " >&6
7570 else
7571   if test -n "$ac_ct_DLLTOOL"; then
7572   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7573 else
7574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7575 for as_dir in $PATH
7576 do
7577   IFS=$as_save_IFS
7578   test -z "$as_dir" && as_dir=.
7579     for ac_exec_ext in '' $ac_executable_extensions; do
7580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7581     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7583     break 2
7584   fi
7585 done
7586   done
7587 IFS=$as_save_IFS
7588
7589 fi
7590 fi
7591 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7592 if test -n "$ac_ct_DLLTOOL"; then
7593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7594 $as_echo "$ac_ct_DLLTOOL" >&6; }
7595 else
7596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7597 $as_echo "no" >&6; }
7598 fi
7599
7600   if test "x$ac_ct_DLLTOOL" = x; then
7601     DLLTOOL="false"
7602   else
7603     case $cross_compiling:$ac_tool_warned in
7604 yes:)
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7607 ac_tool_warned=yes ;;
7608 esac
7609     DLLTOOL=$ac_ct_DLLTOOL
7610   fi
7611 else
7612   DLLTOOL="$ac_cv_prog_DLLTOOL"
7613 fi
7614
7615   if test -n "$ac_tool_prefix"; then
7616   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_OBJDUMP+:} false; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   if test -n "$OBJDUMP"; then
7624   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 OBJDUMP=$ac_cv_prog_OBJDUMP
7644 if test -n "$OBJDUMP"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7646 $as_echo "$OBJDUMP" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652
7653 fi
7654 if test -z "$ac_cv_prog_OBJDUMP"; then
7655   ac_ct_OBJDUMP=$OBJDUMP
7656   # Extract the first word of "objdump", so it can be a program name with args.
7657 set dummy objdump; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   if test -n "$ac_ct_OBJDUMP"; then
7664   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671     for ac_exec_ext in '' $ac_executable_extensions; do
7672   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7673     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678   done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7684 if test -n "$ac_ct_OBJDUMP"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7686 $as_echo "$ac_ct_OBJDUMP" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692   if test "x$ac_ct_OBJDUMP" = x; then
7693     OBJDUMP="false"
7694   else
7695     case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701     OBJDUMP=$ac_ct_OBJDUMP
7702   fi
7703 else
7704   OBJDUMP="$ac_cv_prog_OBJDUMP"
7705 fi
7706
7707   ;;
7708 esac
7709
7710 test -z "$AS" && AS=as
7711
7712
7713
7714
7715
7716 test -z "$DLLTOOL" && DLLTOOL=dlltool
7717
7718
7719
7720
7721
7722 test -z "$OBJDUMP" && OBJDUMP=objdump
7723
7724
7725
7726
7727 # Check whether --enable-static was given.
7728 if test "${enable_static+set}" = set; then :
7729   enableval=$enable_static; p=${PACKAGE-default}
7730     case $enableval in
7731     yes) enable_static=yes ;;
7732     no) enable_static=no ;;
7733     *)
7734      enable_static=no
7735       # Look at the argument we got.  We use all the common list separators.
7736       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7737       for pkg in $enableval; do
7738         IFS="$lt_save_ifs"
7739         if test "X$pkg" = "X$p"; then
7740           enable_static=yes
7741         fi
7742       done
7743       IFS="$lt_save_ifs"
7744       ;;
7745     esac
7746 else
7747   enable_static=no
7748 fi
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761             # Check whether --enable-shared was given.
7762 if test "${enable_shared+set}" = set; then :
7763   enableval=$enable_shared; p=${PACKAGE-default}
7764     case $enableval in
7765     yes) enable_shared=yes ;;
7766     no) enable_shared=no ;;
7767     *)
7768       enable_shared=no
7769       # Look at the argument we got.  We use all the common list separators.
7770       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7771       for pkg in $enableval; do
7772         IFS="$lt_save_ifs"
7773         if test "X$pkg" = "X$p"; then
7774           enable_shared=yes
7775         fi
7776       done
7777       IFS="$lt_save_ifs"
7778       ;;
7779     esac
7780 else
7781   enable_shared=yes
7782 fi
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794 # Check whether --with-pic was given.
7795 if test "${with_pic+set}" = set; then :
7796   withval=$with_pic; lt_p=${PACKAGE-default}
7797     case $withval in
7798     yes|no) pic_mode=$withval ;;
7799     *)
7800       pic_mode=default
7801       # Look at the argument we got.  We use all the common list separators.
7802       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7803       for lt_pkg in $withval; do
7804         IFS="$lt_save_ifs"
7805         if test "X$lt_pkg" = "X$lt_p"; then
7806           pic_mode=yes
7807         fi
7808       done
7809       IFS="$lt_save_ifs"
7810       ;;
7811     esac
7812 else
7813   pic_mode=default
7814 fi
7815
7816
7817 test -z "$pic_mode" && pic_mode=default
7818
7819
7820
7821
7822
7823
7824
7825   # Check whether --enable-fast-install was given.
7826 if test "${enable_fast_install+set}" = set; then :
7827   enableval=$enable_fast_install; p=${PACKAGE-default}
7828     case $enableval in
7829     yes) enable_fast_install=yes ;;
7830     no) enable_fast_install=no ;;
7831     *)
7832       enable_fast_install=no
7833       # Look at the argument we got.  We use all the common list separators.
7834       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7835       for pkg in $enableval; do
7836         IFS="$lt_save_ifs"
7837         if test "X$pkg" = "X$p"; then
7838           enable_fast_install=yes
7839         fi
7840       done
7841       IFS="$lt_save_ifs"
7842       ;;
7843     esac
7844 else
7845   enable_fast_install=yes
7846 fi
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858 # This can be used to rebuild libtool when needed
7859 LIBTOOL_DEPS="$ltmain"
7860
7861 # Always use our own libtool.
7862 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
7891
7892
7893 test -z "$LN_S" && LN_S="ln -s"
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908 if test -n "${ZSH_VERSION+set}" ; then
7909    setopt NO_GLOB_SUBST
7910 fi
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7913 $as_echo_n "checking for objdir... " >&6; }
7914 if ${lt_cv_objdir+:} false; then :
7915   $as_echo_n "(cached) " >&6
7916 else
7917   rm -f .libs 2>/dev/null
7918 mkdir .libs 2>/dev/null
7919 if test -d .libs; then
7920   lt_cv_objdir=.libs
7921 else
7922   # MS-DOS does not allow filenames that begin with a dot.
7923   lt_cv_objdir=_libs
7924 fi
7925 rmdir .libs 2>/dev/null
7926 fi
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7928 $as_echo "$lt_cv_objdir" >&6; }
7929 objdir=$lt_cv_objdir
7930
7931
7932
7933
7934
7935 cat >>confdefs.h <<_ACEOF
7936 #define LT_OBJDIR "$lt_cv_objdir/"
7937 _ACEOF
7938
7939
7940
7941
7942 case $host_os in
7943 aix3*)
7944   # AIX sometimes has problems with the GCC collect2 program.  For some
7945   # reason, if we set the COLLECT_NAMES environment variable, the problems
7946   # vanish in a puff of smoke.
7947   if test "X${COLLECT_NAMES+set}" != Xset; then
7948     COLLECT_NAMES=
7949     export COLLECT_NAMES
7950   fi
7951   ;;
7952 esac
7953
7954 # Global variables:
7955 ofile=libtool
7956 can_build_shared=yes
7957
7958 # All known linkers require a `.a' archive for static linking (except MSVC,
7959 # which needs '.lib').
7960 libext=a
7961
7962 with_gnu_ld="$lt_cv_prog_gnu_ld"
7963
7964 old_CC="$CC"
7965 old_CFLAGS="$CFLAGS"
7966
7967 # Set sane defaults for various variables
7968 test -z "$CC" && CC=cc
7969 test -z "$LTCC" && LTCC=$CC
7970 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7971 test -z "$LD" && LD=ld
7972 test -z "$ac_objext" && ac_objext=o
7973
7974 for cc_temp in $compiler""; do
7975   case $cc_temp in
7976     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7977     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7978     \-*) ;;
7979     *) break;;
7980   esac
7981 done
7982 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7983
7984
7985 # Only perform the check for file, if the check method requires it
7986 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7987 case $deplibs_check_method in
7988 file_magic*)
7989   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7990     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7991 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7992 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7993   $as_echo_n "(cached) " >&6
7994 else
7995   case $MAGIC_CMD in
7996 [\\/*] |  ?:[\\/]*)
7997   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7998   ;;
7999 *)
8000   lt_save_MAGIC_CMD="$MAGIC_CMD"
8001   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8002   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8003   for ac_dir in $ac_dummy; do
8004     IFS="$lt_save_ifs"
8005     test -z "$ac_dir" && ac_dir=.
8006     if test -f $ac_dir/${ac_tool_prefix}file; then
8007       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8008       if test -n "$file_magic_test_file"; then
8009         case $deplibs_check_method in
8010         "file_magic "*)
8011           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8012           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8013           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8014             $EGREP "$file_magic_regex" > /dev/null; then
8015             :
8016           else
8017             cat <<_LT_EOF 1>&2
8018
8019 *** Warning: the command libtool uses to detect shared libraries,
8020 *** $file_magic_cmd, produces output that libtool cannot recognize.
8021 *** The result is that libtool may fail to recognize shared libraries
8022 *** as such.  This will affect the creation of libtool libraries that
8023 *** depend on shared libraries, but programs linked with such libtool
8024 *** libraries will work regardless of this problem.  Nevertheless, you
8025 *** may want to report the problem to your system manager and/or to
8026 *** bug-libtool@gnu.org
8027
8028 _LT_EOF
8029           fi ;;
8030         esac
8031       fi
8032       break
8033     fi
8034   done
8035   IFS="$lt_save_ifs"
8036   MAGIC_CMD="$lt_save_MAGIC_CMD"
8037   ;;
8038 esac
8039 fi
8040
8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042 if test -n "$MAGIC_CMD"; then
8043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8044 $as_echo "$MAGIC_CMD" >&6; }
8045 else
8046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 $as_echo "no" >&6; }
8048 fi
8049
8050
8051
8052
8053
8054 if test -z "$lt_cv_path_MAGIC_CMD"; then
8055   if test -n "$ac_tool_prefix"; then
8056     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8057 $as_echo_n "checking for file... " >&6; }
8058 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8059   $as_echo_n "(cached) " >&6
8060 else
8061   case $MAGIC_CMD in
8062 [\\/*] |  ?:[\\/]*)
8063   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8064   ;;
8065 *)
8066   lt_save_MAGIC_CMD="$MAGIC_CMD"
8067   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8068   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8069   for ac_dir in $ac_dummy; do
8070     IFS="$lt_save_ifs"
8071     test -z "$ac_dir" && ac_dir=.
8072     if test -f $ac_dir/file; then
8073       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8074       if test -n "$file_magic_test_file"; then
8075         case $deplibs_check_method in
8076         "file_magic "*)
8077           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8078           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8079           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8080             $EGREP "$file_magic_regex" > /dev/null; then
8081             :
8082           else
8083             cat <<_LT_EOF 1>&2
8084
8085 *** Warning: the command libtool uses to detect shared libraries,
8086 *** $file_magic_cmd, produces output that libtool cannot recognize.
8087 *** The result is that libtool may fail to recognize shared libraries
8088 *** as such.  This will affect the creation of libtool libraries that
8089 *** depend on shared libraries, but programs linked with such libtool
8090 *** libraries will work regardless of this problem.  Nevertheless, you
8091 *** may want to report the problem to your system manager and/or to
8092 *** bug-libtool@gnu.org
8093
8094 _LT_EOF
8095           fi ;;
8096         esac
8097       fi
8098       break
8099     fi
8100   done
8101   IFS="$lt_save_ifs"
8102   MAGIC_CMD="$lt_save_MAGIC_CMD"
8103   ;;
8104 esac
8105 fi
8106
8107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8108 if test -n "$MAGIC_CMD"; then
8109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8110 $as_echo "$MAGIC_CMD" >&6; }
8111 else
8112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8113 $as_echo "no" >&6; }
8114 fi
8115
8116
8117   else
8118     MAGIC_CMD=:
8119   fi
8120 fi
8121
8122   fi
8123   ;;
8124 esac
8125
8126 # Use C for the default configuration in the libtool script
8127
8128 lt_save_CC="$CC"
8129 ac_ext=c
8130 ac_cpp='$CPP $CPPFLAGS'
8131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8134
8135
8136 # Source file extension for C test sources.
8137 ac_ext=c
8138
8139 # Object file extension for compiled C test sources.
8140 objext=o
8141 objext=$objext
8142
8143 # Code to be used in simple compile tests
8144 lt_simple_compile_test_code="int some_variable = 0;"
8145
8146 # Code to be used in simple link tests
8147 lt_simple_link_test_code='int main(){return(0);}'
8148
8149
8150
8151
8152
8153
8154
8155 # If no C compiler was specified, use CC.
8156 LTCC=${LTCC-"$CC"}
8157
8158 # If no C compiler flags were specified, use CFLAGS.
8159 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8160
8161 # Allow CC to be a program name with arguments.
8162 compiler=$CC
8163
8164 # Save the default compiler, since it gets overwritten when the other
8165 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8166 compiler_DEFAULT=$CC
8167
8168 # save warnings/boilerplate of simple test code
8169 ac_outfile=conftest.$ac_objext
8170 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8171 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8172 _lt_compiler_boilerplate=`cat conftest.err`
8173 $RM conftest*
8174
8175 ac_outfile=conftest.$ac_objext
8176 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8177 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8178 _lt_linker_boilerplate=`cat conftest.err`
8179 $RM -r conftest*
8180
8181
8182 ## CAVEAT EMPTOR:
8183 ## There is no encapsulation within the following macros, do not change
8184 ## the running order or otherwise move them around unless you know exactly
8185 ## what you are doing...
8186 if test -n "$compiler"; then
8187
8188 lt_prog_compiler_no_builtin_flag=
8189
8190 if test "$GCC" = yes; then
8191   case $cc_basename in
8192   nvcc*)
8193     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8194   *)
8195     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8196   esac
8197
8198   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8199 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8200 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8201   $as_echo_n "(cached) " >&6
8202 else
8203   lt_cv_prog_compiler_rtti_exceptions=no
8204    ac_outfile=conftest.$ac_objext
8205    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8206    lt_compiler_flag="-fno-rtti -fno-exceptions"
8207    # Insert the option either (1) after the last *FLAGS variable, or
8208    # (2) before a word containing "conftest.", or (3) at the end.
8209    # Note that $ac_compile itself does not contain backslashes and begins
8210    # with a dollar sign (not a hyphen), so the echo should work correctly.
8211    # The option is referenced via a variable to avoid confusing sed.
8212    lt_compile=`echo "$ac_compile" | $SED \
8213    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8214    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8215    -e 's:$: $lt_compiler_flag:'`
8216    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8217    (eval "$lt_compile" 2>conftest.err)
8218    ac_status=$?
8219    cat conftest.err >&5
8220    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221    if (exit $ac_status) && test -s "$ac_outfile"; then
8222      # The compiler can only warn and ignore the option if not recognized
8223      # So say no if there are warnings other than the usual output.
8224      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8225      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8226      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8227        lt_cv_prog_compiler_rtti_exceptions=yes
8228      fi
8229    fi
8230    $RM conftest*
8231
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8234 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8235
8236 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8237     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8238 else
8239     :
8240 fi
8241
8242 fi
8243
8244
8245
8246
8247
8248
8249   lt_prog_compiler_wl=
8250 lt_prog_compiler_pic=
8251 lt_prog_compiler_static=
8252
8253
8254   if test "$GCC" = yes; then
8255     lt_prog_compiler_wl='-Wl,'
8256     lt_prog_compiler_static='-static'
8257
8258     case $host_os in
8259       aix*)
8260       # All AIX code is PIC.
8261       if test "$host_cpu" = ia64; then
8262         # AIX 5 now supports IA64 processor
8263         lt_prog_compiler_static='-Bstatic'
8264       fi
8265       ;;
8266
8267     amigaos*)
8268       case $host_cpu in
8269       powerpc)
8270             # see comment about AmigaOS4 .so support
8271             lt_prog_compiler_pic='-fPIC'
8272         ;;
8273       m68k)
8274             # FIXME: we need at least 68020 code to build shared libraries, but
8275             # adding the `-m68020' flag to GCC prevents building anything better,
8276             # like `-m68040'.
8277             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8278         ;;
8279       esac
8280       ;;
8281
8282     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8283       # PIC is the default for these OSes.
8284       ;;
8285
8286     mingw* | cygwin* | pw32* | os2* | cegcc*)
8287       # This hack is so that the source file can tell whether it is being
8288       # built for inclusion in a dll (and should export symbols for example).
8289       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8290       # (--disable-auto-import) libraries
8291       lt_prog_compiler_pic='-DDLL_EXPORT'
8292       ;;
8293
8294     darwin* | rhapsody*)
8295       # PIC is the default on this platform
8296       # Common symbols not allowed in MH_DYLIB files
8297       lt_prog_compiler_pic='-fno-common'
8298       ;;
8299
8300     haiku*)
8301       # PIC is the default for Haiku.
8302       # The "-static" flag exists, but is broken.
8303       lt_prog_compiler_static=
8304       ;;
8305
8306     hpux*)
8307       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8308       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8309       # sets the default TLS model and affects inlining.
8310       case $host_cpu in
8311       hppa*64*)
8312         # +Z the default
8313         ;;
8314       *)
8315         lt_prog_compiler_pic='-fPIC'
8316         ;;
8317       esac
8318       ;;
8319
8320     interix[3-9]*)
8321       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8322       # Instead, we relocate shared libraries at runtime.
8323       ;;
8324
8325     msdosdjgpp*)
8326       # Just because we use GCC doesn't mean we suddenly get shared libraries
8327       # on systems that don't support them.
8328       lt_prog_compiler_can_build_shared=no
8329       enable_shared=no
8330       ;;
8331
8332     *nto* | *qnx*)
8333       # QNX uses GNU C++, but need to define -shared option too, otherwise
8334       # it will coredump.
8335       lt_prog_compiler_pic='-fPIC -shared'
8336       ;;
8337
8338     sysv4*MP*)
8339       if test -d /usr/nec; then
8340         lt_prog_compiler_pic=-Kconform_pic
8341       fi
8342       ;;
8343
8344     *)
8345       lt_prog_compiler_pic='-fPIC'
8346       ;;
8347     esac
8348
8349     case $cc_basename in
8350     nvcc*) # Cuda Compiler Driver 2.2
8351       lt_prog_compiler_wl='-Xlinker '
8352       if test -n "$lt_prog_compiler_pic"; then
8353         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8354       fi
8355       ;;
8356     esac
8357   else
8358     # PORTME Check for flag to pass linker flags through the system compiler.
8359     case $host_os in
8360     aix*)
8361       lt_prog_compiler_wl='-Wl,'
8362       if test "$host_cpu" = ia64; then
8363         # AIX 5 now supports IA64 processor
8364         lt_prog_compiler_static='-Bstatic'
8365       else
8366         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8367       fi
8368       ;;
8369
8370     mingw* | cygwin* | pw32* | os2* | cegcc*)
8371       # This hack is so that the source file can tell whether it is being
8372       # built for inclusion in a dll (and should export symbols for example).
8373       lt_prog_compiler_pic='-DDLL_EXPORT'
8374       ;;
8375
8376     hpux9* | hpux10* | hpux11*)
8377       lt_prog_compiler_wl='-Wl,'
8378       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8379       # not for PA HP-UX.
8380       case $host_cpu in
8381       hppa*64*|ia64*)
8382         # +Z the default
8383         ;;
8384       *)
8385         lt_prog_compiler_pic='+Z'
8386         ;;
8387       esac
8388       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8389       lt_prog_compiler_static='${wl}-a ${wl}archive'
8390       ;;
8391
8392     irix5* | irix6* | nonstopux*)
8393       lt_prog_compiler_wl='-Wl,'
8394       # PIC (with -KPIC) is the default.
8395       lt_prog_compiler_static='-non_shared'
8396       ;;
8397
8398     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8399       case $cc_basename in
8400       # old Intel for x86_64 which still supported -KPIC.
8401       ecc*)
8402         lt_prog_compiler_wl='-Wl,'
8403         lt_prog_compiler_pic='-KPIC'
8404         lt_prog_compiler_static='-static'
8405         ;;
8406       # icc used to be incompatible with GCC.
8407       # ICC 10 doesn't accept -KPIC any more.
8408       icc* | ifort*)
8409         lt_prog_compiler_wl='-Wl,'
8410         lt_prog_compiler_pic='-fPIC'
8411         lt_prog_compiler_static='-static'
8412         ;;
8413       # Lahey Fortran 8.1.
8414       lf95*)
8415         lt_prog_compiler_wl='-Wl,'
8416         lt_prog_compiler_pic='--shared'
8417         lt_prog_compiler_static='--static'
8418         ;;
8419       nagfor*)
8420         # NAG Fortran compiler
8421         lt_prog_compiler_wl='-Wl,-Wl,,'
8422         lt_prog_compiler_pic='-PIC'
8423         lt_prog_compiler_static='-Bstatic'
8424         ;;
8425       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8426         # Portland Group compilers (*not* the Pentium gcc compiler,
8427         # which looks to be a dead project)
8428         lt_prog_compiler_wl='-Wl,'
8429         lt_prog_compiler_pic='-fpic'
8430         lt_prog_compiler_static='-Bstatic'
8431         ;;
8432       ccc*)
8433         lt_prog_compiler_wl='-Wl,'
8434         # All Alpha code is PIC.
8435         lt_prog_compiler_static='-non_shared'
8436         ;;
8437       xl* | bgxl* | bgf* | mpixl*)
8438         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8439         lt_prog_compiler_wl='-Wl,'
8440         lt_prog_compiler_pic='-qpic'
8441         lt_prog_compiler_static='-qstaticlink'
8442         ;;
8443       *)
8444         case `$CC -V 2>&1 | sed 5q` in
8445         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8446           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8447           lt_prog_compiler_pic='-KPIC'
8448           lt_prog_compiler_static='-Bstatic'
8449           lt_prog_compiler_wl=''
8450           ;;
8451         *Sun\ F* | *Sun*Fortran*)
8452           lt_prog_compiler_pic='-KPIC'
8453           lt_prog_compiler_static='-Bstatic'
8454           lt_prog_compiler_wl='-Qoption ld '
8455           ;;
8456         *Sun\ C*)
8457           # Sun C 5.9
8458           lt_prog_compiler_pic='-KPIC'
8459           lt_prog_compiler_static='-Bstatic'
8460           lt_prog_compiler_wl='-Wl,'
8461           ;;
8462         *Intel*\ [CF]*Compiler*)
8463           lt_prog_compiler_wl='-Wl,'
8464           lt_prog_compiler_pic='-fPIC'
8465           lt_prog_compiler_static='-static'
8466           ;;
8467         *Portland\ Group*)
8468           lt_prog_compiler_wl='-Wl,'
8469           lt_prog_compiler_pic='-fpic'
8470           lt_prog_compiler_static='-Bstatic'
8471           ;;
8472         esac
8473         ;;
8474       esac
8475       ;;
8476
8477     newsos6)
8478       lt_prog_compiler_pic='-KPIC'
8479       lt_prog_compiler_static='-Bstatic'
8480       ;;
8481
8482     *nto* | *qnx*)
8483       # QNX uses GNU C++, but need to define -shared option too, otherwise
8484       # it will coredump.
8485       lt_prog_compiler_pic='-fPIC -shared'
8486       ;;
8487
8488     osf3* | osf4* | osf5*)
8489       lt_prog_compiler_wl='-Wl,'
8490       # All OSF/1 code is PIC.
8491       lt_prog_compiler_static='-non_shared'
8492       ;;
8493
8494     rdos*)
8495       lt_prog_compiler_static='-non_shared'
8496       ;;
8497
8498     solaris*)
8499       lt_prog_compiler_pic='-KPIC'
8500       lt_prog_compiler_static='-Bstatic'
8501       case $cc_basename in
8502       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8503         lt_prog_compiler_wl='-Qoption ld ';;
8504       *)
8505         lt_prog_compiler_wl='-Wl,';;
8506       esac
8507       ;;
8508
8509     sunos4*)
8510       lt_prog_compiler_wl='-Qoption ld '
8511       lt_prog_compiler_pic='-PIC'
8512       lt_prog_compiler_static='-Bstatic'
8513       ;;
8514
8515     sysv4 | sysv4.2uw2* | sysv4.3*)
8516       lt_prog_compiler_wl='-Wl,'
8517       lt_prog_compiler_pic='-KPIC'
8518       lt_prog_compiler_static='-Bstatic'
8519       ;;
8520
8521     sysv4*MP*)
8522       if test -d /usr/nec ;then
8523         lt_prog_compiler_pic='-Kconform_pic'
8524         lt_prog_compiler_static='-Bstatic'
8525       fi
8526       ;;
8527
8528     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8529       lt_prog_compiler_wl='-Wl,'
8530       lt_prog_compiler_pic='-KPIC'
8531       lt_prog_compiler_static='-Bstatic'
8532       ;;
8533
8534     unicos*)
8535       lt_prog_compiler_wl='-Wl,'
8536       lt_prog_compiler_can_build_shared=no
8537       ;;
8538
8539     uts4*)
8540       lt_prog_compiler_pic='-pic'
8541       lt_prog_compiler_static='-Bstatic'
8542       ;;
8543
8544     *)
8545       lt_prog_compiler_can_build_shared=no
8546       ;;
8547     esac
8548   fi
8549
8550 case $host_os in
8551   # For platforms which do not support PIC, -DPIC is meaningless:
8552   *djgpp*)
8553     lt_prog_compiler_pic=
8554     ;;
8555   *)
8556     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8557     ;;
8558 esac
8559
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8561 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8562 if ${lt_cv_prog_compiler_pic+:} false; then :
8563   $as_echo_n "(cached) " >&6
8564 else
8565   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8566 fi
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8568 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8569 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8570
8571 #
8572 # Check to make sure the PIC flag actually works.
8573 #
8574 if test -n "$lt_prog_compiler_pic"; then
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8576 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8577 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8578   $as_echo_n "(cached) " >&6
8579 else
8580   lt_cv_prog_compiler_pic_works=no
8581    ac_outfile=conftest.$ac_objext
8582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8583    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8584    # Insert the option either (1) after the last *FLAGS variable, or
8585    # (2) before a word containing "conftest.", or (3) at the end.
8586    # Note that $ac_compile itself does not contain backslashes and begins
8587    # with a dollar sign (not a hyphen), so the echo should work correctly.
8588    # The option is referenced via a variable to avoid confusing sed.
8589    lt_compile=`echo "$ac_compile" | $SED \
8590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592    -e 's:$: $lt_compiler_flag:'`
8593    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8594    (eval "$lt_compile" 2>conftest.err)
8595    ac_status=$?
8596    cat conftest.err >&5
8597    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598    if (exit $ac_status) && test -s "$ac_outfile"; then
8599      # The compiler can only warn and ignore the option if not recognized
8600      # So say no if there are warnings other than the usual output.
8601      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8602      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8603      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8604        lt_cv_prog_compiler_pic_works=yes
8605      fi
8606    fi
8607    $RM conftest*
8608
8609 fi
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8611 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8612
8613 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8614     case $lt_prog_compiler_pic in
8615      "" | " "*) ;;
8616      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8617      esac
8618 else
8619     lt_prog_compiler_pic=
8620      lt_prog_compiler_can_build_shared=no
8621 fi
8622
8623 fi
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635 #
8636 # Check to make sure the static flag actually works.
8637 #
8638 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8640 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8641 if ${lt_cv_prog_compiler_static_works+:} false; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   lt_cv_prog_compiler_static_works=no
8645    save_LDFLAGS="$LDFLAGS"
8646    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8647    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8648    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8649      # The linker can only warn and ignore the option if not recognized
8650      # So say no if there are warnings
8651      if test -s conftest.err; then
8652        # Append any errors to the config.log.
8653        cat conftest.err 1>&5
8654        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8655        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8656        if diff conftest.exp conftest.er2 >/dev/null; then
8657          lt_cv_prog_compiler_static_works=yes
8658        fi
8659      else
8660        lt_cv_prog_compiler_static_works=yes
8661      fi
8662    fi
8663    $RM -r conftest*
8664    LDFLAGS="$save_LDFLAGS"
8665
8666 fi
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8668 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8669
8670 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8671     :
8672 else
8673     lt_prog_compiler_static=
8674 fi
8675
8676
8677
8678
8679
8680
8681
8682   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8683 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8684 if ${lt_cv_prog_compiler_c_o+:} false; then :
8685   $as_echo_n "(cached) " >&6
8686 else
8687   lt_cv_prog_compiler_c_o=no
8688    $RM -r conftest 2>/dev/null
8689    mkdir conftest
8690    cd conftest
8691    mkdir out
8692    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8693
8694    lt_compiler_flag="-o out/conftest2.$ac_objext"
8695    # Insert the option either (1) after the last *FLAGS variable, or
8696    # (2) before a word containing "conftest.", or (3) at the end.
8697    # Note that $ac_compile itself does not contain backslashes and begins
8698    # with a dollar sign (not a hyphen), so the echo should work correctly.
8699    lt_compile=`echo "$ac_compile" | $SED \
8700    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8702    -e 's:$: $lt_compiler_flag:'`
8703    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8704    (eval "$lt_compile" 2>out/conftest.err)
8705    ac_status=$?
8706    cat out/conftest.err >&5
8707    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8709    then
8710      # The compiler can only warn and ignore the option if not recognized
8711      # So say no if there are warnings
8712      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8713      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8714      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8715        lt_cv_prog_compiler_c_o=yes
8716      fi
8717    fi
8718    chmod u+w . 2>&5
8719    $RM conftest*
8720    # SGI C++ compiler will create directory out/ii_files/ for
8721    # template instantiation
8722    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8723    $RM out/* && rmdir out
8724    cd ..
8725    $RM -r conftest
8726    $RM conftest*
8727
8728 fi
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8730 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8731
8732
8733
8734
8735
8736
8737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8738 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8739 if ${lt_cv_prog_compiler_c_o+:} false; then :
8740   $as_echo_n "(cached) " >&6
8741 else
8742   lt_cv_prog_compiler_c_o=no
8743    $RM -r conftest 2>/dev/null
8744    mkdir conftest
8745    cd conftest
8746    mkdir out
8747    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8748
8749    lt_compiler_flag="-o out/conftest2.$ac_objext"
8750    # Insert the option either (1) after the last *FLAGS variable, or
8751    # (2) before a word containing "conftest.", or (3) at the end.
8752    # Note that $ac_compile itself does not contain backslashes and begins
8753    # with a dollar sign (not a hyphen), so the echo should work correctly.
8754    lt_compile=`echo "$ac_compile" | $SED \
8755    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8756    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8757    -e 's:$: $lt_compiler_flag:'`
8758    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8759    (eval "$lt_compile" 2>out/conftest.err)
8760    ac_status=$?
8761    cat out/conftest.err >&5
8762    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8764    then
8765      # The compiler can only warn and ignore the option if not recognized
8766      # So say no if there are warnings
8767      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8768      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8769      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8770        lt_cv_prog_compiler_c_o=yes
8771      fi
8772    fi
8773    chmod u+w . 2>&5
8774    $RM conftest*
8775    # SGI C++ compiler will create directory out/ii_files/ for
8776    # template instantiation
8777    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8778    $RM out/* && rmdir out
8779    cd ..
8780    $RM -r conftest
8781    $RM conftest*
8782
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8785 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8786
8787
8788
8789
8790 hard_links="nottested"
8791 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8792   # do not overwrite the value of need_locks provided by the user
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8794 $as_echo_n "checking if we can lock with hard links... " >&6; }
8795   hard_links=yes
8796   $RM conftest*
8797   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8798   touch conftest.a
8799   ln conftest.a conftest.b 2>&5 || hard_links=no
8800   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8802 $as_echo "$hard_links" >&6; }
8803   if test "$hard_links" = no; then
8804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8805 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8806     need_locks=warn
8807   fi
8808 else
8809   need_locks=no
8810 fi
8811
8812
8813
8814
8815
8816
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8818 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8819
8820   runpath_var=
8821   allow_undefined_flag=
8822   always_export_symbols=no
8823   archive_cmds=
8824   archive_expsym_cmds=
8825   compiler_needs_object=no
8826   enable_shared_with_static_runtimes=no
8827   export_dynamic_flag_spec=
8828   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8829   hardcode_automatic=no
8830   hardcode_direct=no
8831   hardcode_direct_absolute=no
8832   hardcode_libdir_flag_spec=
8833   hardcode_libdir_separator=
8834   hardcode_minus_L=no
8835   hardcode_shlibpath_var=unsupported
8836   inherit_rpath=no
8837   link_all_deplibs=unknown
8838   module_cmds=
8839   module_expsym_cmds=
8840   old_archive_from_new_cmds=
8841   old_archive_from_expsyms_cmds=
8842   thread_safe_flag_spec=
8843   whole_archive_flag_spec=
8844   # include_expsyms should be a list of space-separated symbols to be *always*
8845   # included in the symbol list
8846   include_expsyms=
8847   # exclude_expsyms can be an extended regexp of symbols to exclude
8848   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8849   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8850   # as well as any symbol that contains `d'.
8851   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8852   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8853   # platforms (ab)use it in PIC code, but their linkers get confused if
8854   # the symbol is explicitly referenced.  Since portable code cannot
8855   # rely on this symbol name, it's probably fine to never include it in
8856   # preloaded symbol tables.
8857   # Exclude shared library initialization/finalization symbols.
8858   extract_expsyms_cmds=
8859
8860   case $host_os in
8861   cygwin* | mingw* | pw32* | cegcc*)
8862     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8863     # When not using gcc, we currently assume that we are using
8864     # Microsoft Visual C++.
8865     if test "$GCC" != yes; then
8866       with_gnu_ld=no
8867     fi
8868     ;;
8869   interix*)
8870     # we just hope/assume this is gcc and not c89 (= MSVC++)
8871     with_gnu_ld=yes
8872     ;;
8873   openbsd*)
8874     with_gnu_ld=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*)
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       else
9275         # not using gcc
9276         if test "$host_cpu" = ia64; then
9277         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9278         # chokes on -Wl,-G. The following line is correct:
9279           shared_flag='-G'
9280         else
9281           if test "$aix_use_runtimelinking" = yes; then
9282             shared_flag='${wl}-G'
9283           else
9284             shared_flag='${wl}-bM:SRE'
9285           fi
9286         fi
9287       fi
9288
9289       export_dynamic_flag_spec='${wl}-bexpall'
9290       # It seems that -bexpall does not export symbols beginning with
9291       # underscore (_), so it is better to generate a list of symbols to export.
9292       always_export_symbols=yes
9293       if test "$aix_use_runtimelinking" = yes; then
9294         # Warning - without using the other runtime loading flags (-brtl),
9295         # -berok will link without error, but may produce a broken library.
9296         allow_undefined_flag='-berok'
9297         # Determine the default libpath from the value encoded in an
9298         # empty executable.
9299         if test "${lt_cv_aix_libpath+set}" = set; then
9300   aix_libpath=$lt_cv_aix_libpath
9301 else
9302   if ${lt_cv_aix_libpath_+:} false; then :
9303   $as_echo_n "(cached) " >&6
9304 else
9305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h.  */
9307
9308 int
9309 main ()
9310 {
9311
9312   ;
9313   return 0;
9314 }
9315 _ACEOF
9316 if ac_fn_c_try_link "$LINENO"; then :
9317
9318   lt_aix_libpath_sed='
9319       /Import File Strings/,/^$/ {
9320           /^0/ {
9321               s/^0  *\([^ ]*\) *$/\1/
9322               p
9323           }
9324       }'
9325   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9326   # Check for a 64-bit object if we didn't find anything.
9327   if test -z "$lt_cv_aix_libpath_"; then
9328     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9329   fi
9330 fi
9331 rm -f core conftest.err conftest.$ac_objext \
9332     conftest$ac_exeext conftest.$ac_ext
9333   if test -z "$lt_cv_aix_libpath_"; then
9334     lt_cv_aix_libpath_="/usr/lib:/lib"
9335   fi
9336
9337 fi
9338
9339   aix_libpath=$lt_cv_aix_libpath_
9340 fi
9341
9342         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9343         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"
9344       else
9345         if test "$host_cpu" = ia64; then
9346           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9347           allow_undefined_flag="-z nodefs"
9348           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"
9349         else
9350          # Determine the default libpath from the value encoded in an
9351          # empty executable.
9352          if test "${lt_cv_aix_libpath+set}" = set; then
9353   aix_libpath=$lt_cv_aix_libpath
9354 else
9355   if ${lt_cv_aix_libpath_+:} false; then :
9356   $as_echo_n "(cached) " >&6
9357 else
9358   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359 /* end confdefs.h.  */
9360
9361 int
9362 main ()
9363 {
9364
9365   ;
9366   return 0;
9367 }
9368 _ACEOF
9369 if ac_fn_c_try_link "$LINENO"; then :
9370
9371   lt_aix_libpath_sed='
9372       /Import File Strings/,/^$/ {
9373           /^0/ {
9374               s/^0  *\([^ ]*\) *$/\1/
9375               p
9376           }
9377       }'
9378   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9379   # Check for a 64-bit object if we didn't find anything.
9380   if test -z "$lt_cv_aix_libpath_"; then
9381     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9382   fi
9383 fi
9384 rm -f core conftest.err conftest.$ac_objext \
9385     conftest$ac_exeext conftest.$ac_ext
9386   if test -z "$lt_cv_aix_libpath_"; then
9387     lt_cv_aix_libpath_="/usr/lib:/lib"
9388   fi
9389
9390 fi
9391
9392   aix_libpath=$lt_cv_aix_libpath_
9393 fi
9394
9395          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9396           # Warning - without using the other run time loading flags,
9397           # -berok will link without error, but may produce a broken library.
9398           no_undefined_flag=' ${wl}-bernotok'
9399           allow_undefined_flag=' ${wl}-berok'
9400           if test "$with_gnu_ld" = yes; then
9401             # We only use this code for GNU lds that support --whole-archive.
9402             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9403           else
9404             # Exported symbols can be pulled into shared objects from archives
9405             whole_archive_flag_spec='$convenience'
9406           fi
9407           archive_cmds_need_lc=yes
9408           # This is similar to how AIX traditionally builds its shared libraries.
9409           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'
9410         fi
9411       fi
9412       ;;
9413
9414     amigaos*)
9415       case $host_cpu in
9416       powerpc)
9417             # see comment about AmigaOS4 .so support
9418             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9419             archive_expsym_cmds=''
9420         ;;
9421       m68k)
9422             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)'
9423             hardcode_libdir_flag_spec='-L$libdir'
9424             hardcode_minus_L=yes
9425         ;;
9426       esac
9427       ;;
9428
9429     bsdi[45]*)
9430       export_dynamic_flag_spec=-rdynamic
9431       ;;
9432
9433     cygwin* | mingw* | pw32* | cegcc*)
9434       # When not using gcc, we currently assume that we are using
9435       # Microsoft Visual C++.
9436       # hardcode_libdir_flag_spec is actually meaningless, as there is
9437       # no search path for DLLs.
9438       case $cc_basename in
9439       cl*)
9440         # Native MSVC
9441         hardcode_libdir_flag_spec=' '
9442         allow_undefined_flag=unsupported
9443         always_export_symbols=yes
9444         file_list_spec='@'
9445         # Tell ltmain to make .lib files, not .a files.
9446         libext=lib
9447         # Tell ltmain to make .dll files, not .so files.
9448         shrext_cmds=".dll"
9449         # FIXME: Setting linknames here is a bad hack.
9450         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9451         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9452             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9453           else
9454             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9455           fi~
9456           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9457           linknames='
9458         # The linker will not automatically build a static lib if we build a DLL.
9459         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9460         enable_shared_with_static_runtimes=yes
9461         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9462         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9463         # Don't use ranlib
9464         old_postinstall_cmds='chmod 644 $oldlib'
9465         postlink_cmds='lt_outputfile="@OUTPUT@"~
9466           lt_tool_outputfile="@TOOL_OUTPUT@"~
9467           case $lt_outputfile in
9468             *.exe|*.EXE) ;;
9469             *)
9470               lt_outputfile="$lt_outputfile.exe"
9471               lt_tool_outputfile="$lt_tool_outputfile.exe"
9472               ;;
9473           esac~
9474           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9475             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9476             $RM "$lt_outputfile.manifest";
9477           fi'
9478         ;;
9479       *)
9480         # Assume MSVC wrapper
9481         hardcode_libdir_flag_spec=' '
9482         allow_undefined_flag=unsupported
9483         # Tell ltmain to make .lib files, not .a files.
9484         libext=lib
9485         # Tell ltmain to make .dll files, not .so files.
9486         shrext_cmds=".dll"
9487         # FIXME: Setting linknames here is a bad hack.
9488         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9489         # The linker will automatically build a .lib file if we build a DLL.
9490         old_archive_from_new_cmds='true'
9491         # FIXME: Should let the user specify the lib program.
9492         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9493         enable_shared_with_static_runtimes=yes
9494         ;;
9495       esac
9496       ;;
9497
9498     darwin* | rhapsody*)
9499
9500
9501   archive_cmds_need_lc=no
9502   hardcode_direct=no
9503   hardcode_automatic=yes
9504   hardcode_shlibpath_var=unsupported
9505   if test "$lt_cv_ld_force_load" = "yes"; then
9506     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\"`'
9507
9508   else
9509     whole_archive_flag_spec=''
9510   fi
9511   link_all_deplibs=yes
9512   allow_undefined_flag="$_lt_dar_allow_undefined"
9513   case $cc_basename in
9514      ifort*) _lt_dar_can_shared=yes ;;
9515      *) _lt_dar_can_shared=$GCC ;;
9516   esac
9517   if test "$_lt_dar_can_shared" = "yes"; then
9518     output_verbose_link_cmd=func_echo_all
9519     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9520     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9521     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}"
9522     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}"
9523
9524   else
9525   ld_shlibs=no
9526   fi
9527
9528       ;;
9529
9530     dgux*)
9531       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9532       hardcode_libdir_flag_spec='-L$libdir'
9533       hardcode_shlibpath_var=no
9534       ;;
9535
9536     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9537     # support.  Future versions do this automatically, but an explicit c++rt0.o
9538     # does not break anything, and helps significantly (at the cost of a little
9539     # extra space).
9540     freebsd2.2*)
9541       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9542       hardcode_libdir_flag_spec='-R$libdir'
9543       hardcode_direct=yes
9544       hardcode_shlibpath_var=no
9545       ;;
9546
9547     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9548     freebsd2.*)
9549       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9550       hardcode_direct=yes
9551       hardcode_minus_L=yes
9552       hardcode_shlibpath_var=no
9553       ;;
9554
9555     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9556     freebsd* | dragonfly*)
9557       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9558       hardcode_libdir_flag_spec='-R$libdir'
9559       hardcode_direct=yes
9560       hardcode_shlibpath_var=no
9561       ;;
9562
9563     hpux9*)
9564       if test "$GCC" = yes; then
9565         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'
9566       else
9567         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'
9568       fi
9569       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9570       hardcode_libdir_separator=:
9571       hardcode_direct=yes
9572
9573       # hardcode_minus_L: Not really in the search PATH,
9574       # but as the default location of the library.
9575       hardcode_minus_L=yes
9576       export_dynamic_flag_spec='${wl}-E'
9577       ;;
9578
9579     hpux10*)
9580       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9581         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9582       else
9583         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9584       fi
9585       if test "$with_gnu_ld" = no; then
9586         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9587         hardcode_libdir_separator=:
9588         hardcode_direct=yes
9589         hardcode_direct_absolute=yes
9590         export_dynamic_flag_spec='${wl}-E'
9591         # hardcode_minus_L: Not really in the search PATH,
9592         # but as the default location of the library.
9593         hardcode_minus_L=yes
9594       fi
9595       ;;
9596
9597     hpux11*)
9598       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9599         case $host_cpu in
9600         hppa*64*)
9601           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9602           ;;
9603         ia64*)
9604           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9605           ;;
9606         *)
9607           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9608           ;;
9609         esac
9610       else
9611         case $host_cpu in
9612         hppa*64*)
9613           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9614           ;;
9615         ia64*)
9616           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9617           ;;
9618         *)
9619
9620           # Older versions of the 11.00 compiler do not understand -b yet
9621           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9622           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9623 $as_echo_n "checking if $CC understands -b... " >&6; }
9624 if ${lt_cv_prog_compiler__b+:} false; then :
9625   $as_echo_n "(cached) " >&6
9626 else
9627   lt_cv_prog_compiler__b=no
9628    save_LDFLAGS="$LDFLAGS"
9629    LDFLAGS="$LDFLAGS -b"
9630    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9631    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9632      # The linker can only warn and ignore the option if not recognized
9633      # So say no if there are warnings
9634      if test -s conftest.err; then
9635        # Append any errors to the config.log.
9636        cat conftest.err 1>&5
9637        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9638        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9639        if diff conftest.exp conftest.er2 >/dev/null; then
9640          lt_cv_prog_compiler__b=yes
9641        fi
9642      else
9643        lt_cv_prog_compiler__b=yes
9644      fi
9645    fi
9646    $RM -r conftest*
9647    LDFLAGS="$save_LDFLAGS"
9648
9649 fi
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9651 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9652
9653 if test x"$lt_cv_prog_compiler__b" = xyes; then
9654     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9655 else
9656     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9657 fi
9658
9659           ;;
9660         esac
9661       fi
9662       if test "$with_gnu_ld" = no; then
9663         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9664         hardcode_libdir_separator=:
9665
9666         case $host_cpu in
9667         hppa*64*|ia64*)
9668           hardcode_direct=no
9669           hardcode_shlibpath_var=no
9670           ;;
9671         *)
9672           hardcode_direct=yes
9673           hardcode_direct_absolute=yes
9674           export_dynamic_flag_spec='${wl}-E'
9675
9676           # hardcode_minus_L: Not really in the search PATH,
9677           # but as the default location of the library.
9678           hardcode_minus_L=yes
9679           ;;
9680         esac
9681       fi
9682       ;;
9683
9684     irix5* | irix6* | nonstopux*)
9685       if test "$GCC" = yes; then
9686         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'
9687         # Try to use the -exported_symbol ld option, if it does not
9688         # work, assume that -exports_file does not work either and
9689         # implicitly export all symbols.
9690         # This should be the same for all languages, so no per-tag cache variable.
9691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9692 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9693 if ${lt_cv_irix_exported_symbol+:} false; then :
9694   $as_echo_n "(cached) " >&6
9695 else
9696   save_LDFLAGS="$LDFLAGS"
9697            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9698            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9699 /* end confdefs.h.  */
9700 int foo (void) { return 0; }
9701 _ACEOF
9702 if ac_fn_c_try_link "$LINENO"; then :
9703   lt_cv_irix_exported_symbol=yes
9704 else
9705   lt_cv_irix_exported_symbol=no
9706 fi
9707 rm -f core conftest.err conftest.$ac_objext \
9708     conftest$ac_exeext conftest.$ac_ext
9709            LDFLAGS="$save_LDFLAGS"
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9712 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9713         if test "$lt_cv_irix_exported_symbol" = yes; then
9714           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'
9715         fi
9716       else
9717         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'
9718         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'
9719       fi
9720       archive_cmds_need_lc='no'
9721       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9722       hardcode_libdir_separator=:
9723       inherit_rpath=yes
9724       link_all_deplibs=yes
9725       ;;
9726
9727     netbsd*)
9728       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9729         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9730       else
9731         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9732       fi
9733       hardcode_libdir_flag_spec='-R$libdir'
9734       hardcode_direct=yes
9735       hardcode_shlibpath_var=no
9736       ;;
9737
9738     newsos6)
9739       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9740       hardcode_direct=yes
9741       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9742       hardcode_libdir_separator=:
9743       hardcode_shlibpath_var=no
9744       ;;
9745
9746     *nto* | *qnx*)
9747       ;;
9748
9749     openbsd*)
9750       if test -f /usr/libexec/ld.so; then
9751         hardcode_direct=yes
9752         hardcode_shlibpath_var=no
9753         hardcode_direct_absolute=yes
9754         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9755           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9756           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9757           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9758           export_dynamic_flag_spec='${wl}-E'
9759         else
9760           case $host_os in
9761            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9762              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9763              hardcode_libdir_flag_spec='-R$libdir'
9764              ;;
9765            *)
9766              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9767              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9768              ;;
9769           esac
9770         fi
9771       else
9772         ld_shlibs=no
9773       fi
9774       ;;
9775
9776     os2*)
9777       hardcode_libdir_flag_spec='-L$libdir'
9778       hardcode_minus_L=yes
9779       allow_undefined_flag=unsupported
9780       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'
9781       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9782       ;;
9783
9784     osf3*)
9785       if test "$GCC" = yes; then
9786         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9787         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'
9788       else
9789         allow_undefined_flag=' -expect_unresolved \*'
9790         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'
9791       fi
9792       archive_cmds_need_lc='no'
9793       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9794       hardcode_libdir_separator=:
9795       ;;
9796
9797     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9798       if test "$GCC" = yes; then
9799         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9800         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'
9801         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9802       else
9803         allow_undefined_flag=' -expect_unresolved \*'
9804         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'
9805         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~
9806         $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'
9807
9808         # Both c and cxx compiler support -rpath directly
9809         hardcode_libdir_flag_spec='-rpath $libdir'
9810       fi
9811       archive_cmds_need_lc='no'
9812       hardcode_libdir_separator=:
9813       ;;
9814
9815     solaris*)
9816       no_undefined_flag=' -z defs'
9817       if test "$GCC" = yes; then
9818         wlarc='${wl}'
9819         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9820         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9821           $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'
9822       else
9823         case `$CC -V 2>&1` in
9824         *"Compilers 5.0"*)
9825           wlarc=''
9826           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9827           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9828           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9829           ;;
9830         *)
9831           wlarc='${wl}'
9832           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9833           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9834           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9835           ;;
9836         esac
9837       fi
9838       hardcode_libdir_flag_spec='-R$libdir'
9839       hardcode_shlibpath_var=no
9840       case $host_os in
9841       solaris2.[0-5] | solaris2.[0-5].*) ;;
9842       *)
9843         # The compiler driver will combine and reorder linker options,
9844         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9845         # but is careful enough not to reorder.
9846         # Supported since Solaris 2.6 (maybe 2.5.1?)
9847         if test "$GCC" = yes; then
9848           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9849         else
9850           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9851         fi
9852         ;;
9853       esac
9854       link_all_deplibs=yes
9855       ;;
9856
9857     sunos4*)
9858       if test "x$host_vendor" = xsequent; then
9859         # Use $CC to link under sequent, because it throws in some extra .o
9860         # files that make .init and .fini sections work.
9861         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9862       else
9863         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9864       fi
9865       hardcode_libdir_flag_spec='-L$libdir'
9866       hardcode_direct=yes
9867       hardcode_minus_L=yes
9868       hardcode_shlibpath_var=no
9869       ;;
9870
9871     sysv4)
9872       case $host_vendor in
9873         sni)
9874           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875           hardcode_direct=yes # is this really true???
9876         ;;
9877         siemens)
9878           ## LD is ld it makes a PLAMLIB
9879           ## CC just makes a GrossModule.
9880           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9881           reload_cmds='$CC -r -o $output$reload_objs'
9882           hardcode_direct=no
9883         ;;
9884         motorola)
9885           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9886           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9887         ;;
9888       esac
9889       runpath_var='LD_RUN_PATH'
9890       hardcode_shlibpath_var=no
9891       ;;
9892
9893     sysv4.3*)
9894       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9895       hardcode_shlibpath_var=no
9896       export_dynamic_flag_spec='-Bexport'
9897       ;;
9898
9899     sysv4*MP*)
9900       if test -d /usr/nec; then
9901         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9902         hardcode_shlibpath_var=no
9903         runpath_var=LD_RUN_PATH
9904         hardcode_runpath_var=yes
9905         ld_shlibs=yes
9906       fi
9907       ;;
9908
9909     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9910       no_undefined_flag='${wl}-z,text'
9911       archive_cmds_need_lc=no
9912       hardcode_shlibpath_var=no
9913       runpath_var='LD_RUN_PATH'
9914
9915       if test "$GCC" = yes; then
9916         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9918       else
9919         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9921       fi
9922       ;;
9923
9924     sysv5* | sco3.2v5* | sco5v6*)
9925       # Note: We can NOT use -z defs as we might desire, because we do not
9926       # link with -lc, and that would cause any symbols used from libc to
9927       # always be unresolved, which means just about no library would
9928       # ever link correctly.  If we're not using GNU ld we use -z text
9929       # though, which does catch some bad symbols but isn't as heavy-handed
9930       # as -z defs.
9931       no_undefined_flag='${wl}-z,text'
9932       allow_undefined_flag='${wl}-z,nodefs'
9933       archive_cmds_need_lc=no
9934       hardcode_shlibpath_var=no
9935       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9936       hardcode_libdir_separator=':'
9937       link_all_deplibs=yes
9938       export_dynamic_flag_spec='${wl}-Bexport'
9939       runpath_var='LD_RUN_PATH'
9940
9941       if test "$GCC" = yes; then
9942         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9943         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9944       else
9945         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9947       fi
9948       ;;
9949
9950     uts4*)
9951       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952       hardcode_libdir_flag_spec='-L$libdir'
9953       hardcode_shlibpath_var=no
9954       ;;
9955
9956     *)
9957       ld_shlibs=no
9958       ;;
9959     esac
9960
9961     if test x$host_vendor = xsni; then
9962       case $host in
9963       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9964         export_dynamic_flag_spec='${wl}-Blargedynsym'
9965         ;;
9966       esac
9967     fi
9968   fi
9969
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9971 $as_echo "$ld_shlibs" >&6; }
9972 test "$ld_shlibs" = no && can_build_shared=no
9973
9974 with_gnu_ld=$with_gnu_ld
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990 #
9991 # Do we need to explicitly link libc?
9992 #
9993 case "x$archive_cmds_need_lc" in
9994 x|xyes)
9995   # Assume -lc should be added
9996   archive_cmds_need_lc=yes
9997
9998   if test "$enable_shared" = yes && test "$GCC" = yes; then
9999     case $archive_cmds in
10000     *'~'*)
10001       # FIXME: we may have to deal with multi-command sequences.
10002       ;;
10003     '$CC '*)
10004       # Test whether the compiler implicitly links with -lc since on some
10005       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10006       # to ld, don't add -lc before -lgcc.
10007       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10008 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10009 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10010   $as_echo_n "(cached) " >&6
10011 else
10012   $RM conftest*
10013         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10014
10015         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10016   (eval $ac_compile) 2>&5
10017   ac_status=$?
10018   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10019   test $ac_status = 0; } 2>conftest.err; then
10020           soname=conftest
10021           lib=conftest
10022           libobjs=conftest.$ac_objext
10023           deplibs=
10024           wl=$lt_prog_compiler_wl
10025           pic_flag=$lt_prog_compiler_pic
10026           compiler_flags=-v
10027           linker_flags=-v
10028           verstring=
10029           output_objdir=.
10030           libname=conftest
10031           lt_save_allow_undefined_flag=$allow_undefined_flag
10032           allow_undefined_flag=
10033           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10034   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10035   ac_status=$?
10036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10037   test $ac_status = 0; }
10038           then
10039             lt_cv_archive_cmds_need_lc=no
10040           else
10041             lt_cv_archive_cmds_need_lc=yes
10042           fi
10043           allow_undefined_flag=$lt_save_allow_undefined_flag
10044         else
10045           cat conftest.err 1>&5
10046         fi
10047         $RM conftest*
10048
10049 fi
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10051 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10052       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10053       ;;
10054     esac
10055   fi
10056   ;;
10057 esac
10058
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10211 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10212
10213 if test "$GCC" = yes; then
10214   case $host_os in
10215     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10216     *) lt_awk_arg="/^libraries:/" ;;
10217   esac
10218   case $host_os in
10219     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10220     *) lt_sed_strip_eq="s,=/,/,g" ;;
10221   esac
10222   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10223   case $lt_search_path_spec in
10224   *\;*)
10225     # if the path contains ";" then we assume it to be the separator
10226     # otherwise default to the standard path separator (i.e. ":") - it is
10227     # assumed that no part of a normal pathname contains ";" but that should
10228     # okay in the real world where ";" in dirpaths is itself problematic.
10229     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10230     ;;
10231   *)
10232     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10233     ;;
10234   esac
10235   # Ok, now we have the path, separated by spaces, we can step through it
10236   # and add multilib dir if necessary.
10237   lt_tmp_lt_search_path_spec=
10238   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10239   for lt_sys_path in $lt_search_path_spec; do
10240     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10241       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10242     else
10243       test -d "$lt_sys_path" && \
10244         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10245     fi
10246   done
10247   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10248 BEGIN {RS=" "; FS="/|\n";} {
10249   lt_foo="";
10250   lt_count=0;
10251   for (lt_i = NF; lt_i > 0; lt_i--) {
10252     if ($lt_i != "" && $lt_i != ".") {
10253       if ($lt_i == "..") {
10254         lt_count++;
10255       } else {
10256         if (lt_count == 0) {
10257           lt_foo="/" $lt_i lt_foo;
10258         } else {
10259           lt_count--;
10260         }
10261       }
10262     }
10263   }
10264   if (lt_foo != "") { lt_freq[lt_foo]++; }
10265   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10266 }'`
10267   # AWK program above erroneously prepends '/' to C:/dos/paths
10268   # for these hosts.
10269   case $host_os in
10270     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10271       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10272   esac
10273   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10274 else
10275   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10276 fi
10277 library_names_spec=
10278 libname_spec='lib$name'
10279 soname_spec=
10280 shrext_cmds=".so"
10281 postinstall_cmds=
10282 postuninstall_cmds=
10283 finish_cmds=
10284 finish_eval=
10285 shlibpath_var=
10286 shlibpath_overrides_runpath=unknown
10287 version_type=none
10288 dynamic_linker="$host_os ld.so"
10289 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10290 need_lib_prefix=unknown
10291 hardcode_into_libs=no
10292
10293 # when you set need_version to no, make sure it does not cause -set_version
10294 # flags to be left without arguments
10295 need_version=unknown
10296
10297 case $host_os in
10298 aix3*)
10299   version_type=linux # correct to gnu/linux during the next big refactor
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10301   shlibpath_var=LIBPATH
10302
10303   # AIX 3 has no versioning support, so we append a major version to the name.
10304   soname_spec='${libname}${release}${shared_ext}$major'
10305   ;;
10306
10307 aix[4-9]*)
10308   version_type=linux # correct to gnu/linux during the next big refactor
10309   need_lib_prefix=no
10310   need_version=no
10311   hardcode_into_libs=yes
10312   if test "$host_cpu" = ia64; then
10313     # AIX 5 supports IA64
10314     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10315     shlibpath_var=LD_LIBRARY_PATH
10316   else
10317     # With GCC up to 2.95.x, collect2 would create an import file
10318     # for dependence libraries.  The import file would start with
10319     # the line `#! .'.  This would cause the generated library to
10320     # depend on `.', always an invalid library.  This was fixed in
10321     # development snapshots of GCC prior to 3.0.
10322     case $host_os in
10323       aix4 | aix4.[01] | aix4.[01].*)
10324       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10325            echo ' yes '
10326            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10327         :
10328       else
10329         can_build_shared=no
10330       fi
10331       ;;
10332     esac
10333     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10334     # soname into executable. Probably we can add versioning support to
10335     # collect2, so additional links can be useful in future.
10336     if test "$aix_use_runtimelinking" = yes; then
10337       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10338       # instead of lib<name>.a to let people know that these are not
10339       # typical AIX shared libraries.
10340       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10341     else
10342       # We preserve .a as extension for shared libraries through AIX4.2
10343       # and later when we are not doing run time linking.
10344       library_names_spec='${libname}${release}.a $libname.a'
10345       soname_spec='${libname}${release}${shared_ext}$major'
10346     fi
10347     shlibpath_var=LIBPATH
10348   fi
10349   ;;
10350
10351 amigaos*)
10352   case $host_cpu in
10353   powerpc)
10354     # Since July 2007 AmigaOS4 officially supports .so libraries.
10355     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357     ;;
10358   m68k)
10359     library_names_spec='$libname.ixlibrary $libname.a'
10360     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10361     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'
10362     ;;
10363   esac
10364   ;;
10365
10366 beos*)
10367   library_names_spec='${libname}${shared_ext}'
10368   dynamic_linker="$host_os ld.so"
10369   shlibpath_var=LIBRARY_PATH
10370   ;;
10371
10372 bsdi[45]*)
10373   version_type=linux # correct to gnu/linux during the next big refactor
10374   need_version=no
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10376   soname_spec='${libname}${release}${shared_ext}$major'
10377   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10378   shlibpath_var=LD_LIBRARY_PATH
10379   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10380   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10381   # the default ld.so.conf also contains /usr/contrib/lib and
10382   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10383   # libtool to hard-code these into programs
10384   ;;
10385
10386 cygwin* | mingw* | pw32* | cegcc*)
10387   version_type=windows
10388   shrext_cmds=".dll"
10389   need_version=no
10390   need_lib_prefix=no
10391
10392   case $GCC,$cc_basename in
10393   yes,*)
10394     # gcc
10395     library_names_spec='$libname.dll.a'
10396     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10397     postinstall_cmds='base_file=`basename \${file}`~
10398       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10399       dldir=$destdir/`dirname \$dlpath`~
10400       test -d \$dldir || mkdir -p \$dldir~
10401       $install_prog $dir/$dlname \$dldir/$dlname~
10402       chmod a+x \$dldir/$dlname~
10403       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10404         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10405       fi'
10406     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10407       dlpath=$dir/\$dldll~
10408        $RM \$dlpath'
10409     shlibpath_overrides_runpath=yes
10410
10411     case $host_os in
10412     cygwin*)
10413       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10414       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10415
10416       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10417       ;;
10418     mingw* | cegcc*)
10419       # MinGW DLLs use traditional 'lib' prefix
10420       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10421       ;;
10422     pw32*)
10423       # pw32 DLLs use 'pw' prefix rather than 'lib'
10424       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10425       ;;
10426     esac
10427     dynamic_linker='Win32 ld.exe'
10428     ;;
10429
10430   *,cl*)
10431     # Native MSVC
10432     libname_spec='$name'
10433     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10434     library_names_spec='${libname}.dll.lib'
10435
10436     case $build_os in
10437     mingw*)
10438       sys_lib_search_path_spec=
10439       lt_save_ifs=$IFS
10440       IFS=';'
10441       for lt_path in $LIB
10442       do
10443         IFS=$lt_save_ifs
10444         # Let DOS variable expansion print the short 8.3 style file name.
10445         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10446         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10447       done
10448       IFS=$lt_save_ifs
10449       # Convert to MSYS style.
10450       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10451       ;;
10452     cygwin*)
10453       # Convert to unix form, then to dos form, then back to unix form
10454       # but this time dos style (no spaces!) so that the unix form looks
10455       # like /cygdrive/c/PROGRA~1:/cygdr...
10456       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10457       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10458       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10459       ;;
10460     *)
10461       sys_lib_search_path_spec="$LIB"
10462       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10463         # It is most probably a Windows format PATH.
10464         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10465       else
10466         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10467       fi
10468       # FIXME: find the short name or the path components, as spaces are
10469       # common. (e.g. "Program Files" -> "PROGRA~1")
10470       ;;
10471     esac
10472
10473     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10474     postinstall_cmds='base_file=`basename \${file}`~
10475       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10476       dldir=$destdir/`dirname \$dlpath`~
10477       test -d \$dldir || mkdir -p \$dldir~
10478       $install_prog $dir/$dlname \$dldir/$dlname'
10479     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10480       dlpath=$dir/\$dldll~
10481        $RM \$dlpath'
10482     shlibpath_overrides_runpath=yes
10483     dynamic_linker='Win32 link.exe'
10484     ;;
10485
10486   *)
10487     # Assume MSVC wrapper
10488     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10489     dynamic_linker='Win32 ld.exe'
10490     ;;
10491   esac
10492   # FIXME: first we should search . and the directory the executable is in
10493   shlibpath_var=PATH
10494   ;;
10495
10496 darwin* | rhapsody*)
10497   dynamic_linker="$host_os dyld"
10498   version_type=darwin
10499   need_lib_prefix=no
10500   need_version=no
10501   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10502   soname_spec='${libname}${release}${major}$shared_ext'
10503   shlibpath_overrides_runpath=yes
10504   shlibpath_var=DYLD_LIBRARY_PATH
10505   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10506
10507   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10508   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10509   ;;
10510
10511 dgux*)
10512   version_type=linux # correct to gnu/linux during the next big refactor
10513   need_lib_prefix=no
10514   need_version=no
10515   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10516   soname_spec='${libname}${release}${shared_ext}$major'
10517   shlibpath_var=LD_LIBRARY_PATH
10518   ;;
10519
10520 freebsd* | dragonfly*)
10521   # DragonFly does not have aout.  When/if they implement a new
10522   # versioning mechanism, adjust this.
10523   if test -x /usr/bin/objformat; then
10524     objformat=`/usr/bin/objformat`
10525   else
10526     case $host_os in
10527     freebsd[23].*) objformat=aout ;;
10528     *) objformat=elf ;;
10529     esac
10530   fi
10531   version_type=freebsd-$objformat
10532   case $version_type in
10533     freebsd-elf*)
10534       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10535       need_version=no
10536       need_lib_prefix=no
10537       ;;
10538     freebsd-*)
10539       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10540       need_version=yes
10541       ;;
10542   esac
10543   shlibpath_var=LD_LIBRARY_PATH
10544   case $host_os in
10545   freebsd2.*)
10546     shlibpath_overrides_runpath=yes
10547     ;;
10548   freebsd3.[01]* | freebsdelf3.[01]*)
10549     shlibpath_overrides_runpath=yes
10550     hardcode_into_libs=yes
10551     ;;
10552   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10553   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10554     shlibpath_overrides_runpath=no
10555     hardcode_into_libs=yes
10556     ;;
10557   *) # from 4.6 on, and DragonFly
10558     shlibpath_overrides_runpath=yes
10559     hardcode_into_libs=yes
10560     ;;
10561   esac
10562   ;;
10563
10564 gnu*)
10565   version_type=linux # correct to gnu/linux during the next big refactor
10566   need_lib_prefix=no
10567   need_version=no
10568   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10569   soname_spec='${libname}${release}${shared_ext}$major'
10570   shlibpath_var=LD_LIBRARY_PATH
10571   shlibpath_overrides_runpath=no
10572   hardcode_into_libs=yes
10573   ;;
10574
10575 haiku*)
10576   version_type=linux # correct to gnu/linux during the next big refactor
10577   need_lib_prefix=no
10578   need_version=no
10579   dynamic_linker="$host_os runtime_loader"
10580   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10581   soname_spec='${libname}${release}${shared_ext}$major'
10582   shlibpath_var=LIBRARY_PATH
10583   shlibpath_overrides_runpath=yes
10584   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10585   hardcode_into_libs=yes
10586   ;;
10587
10588 hpux9* | hpux10* | hpux11*)
10589   # Give a soname corresponding to the major version so that dld.sl refuses to
10590   # link against other versions.
10591   version_type=sunos
10592   need_lib_prefix=no
10593   need_version=no
10594   case $host_cpu in
10595   ia64*)
10596     shrext_cmds='.so'
10597     hardcode_into_libs=yes
10598     dynamic_linker="$host_os dld.so"
10599     shlibpath_var=LD_LIBRARY_PATH
10600     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10601     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10602     soname_spec='${libname}${release}${shared_ext}$major'
10603     if test "X$HPUX_IA64_MODE" = X32; then
10604       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10605     else
10606       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10607     fi
10608     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10609     ;;
10610   hppa*64*)
10611     shrext_cmds='.sl'
10612     hardcode_into_libs=yes
10613     dynamic_linker="$host_os dld.sl"
10614     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10615     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10619     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10620     ;;
10621   *)
10622     shrext_cmds='.sl'
10623     dynamic_linker="$host_os dld.sl"
10624     shlibpath_var=SHLIB_PATH
10625     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10626     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10627     soname_spec='${libname}${release}${shared_ext}$major'
10628     ;;
10629   esac
10630   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10631   postinstall_cmds='chmod 555 $lib'
10632   # or fails outright, so override atomically:
10633   install_override_mode=555
10634   ;;
10635
10636 interix[3-9]*)
10637   version_type=linux # correct to gnu/linux during the next big refactor
10638   need_lib_prefix=no
10639   need_version=no
10640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10641   soname_spec='${libname}${release}${shared_ext}$major'
10642   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   shlibpath_overrides_runpath=no
10645   hardcode_into_libs=yes
10646   ;;
10647
10648 irix5* | irix6* | nonstopux*)
10649   case $host_os in
10650     nonstopux*) version_type=nonstopux ;;
10651     *)
10652         if test "$lt_cv_prog_gnu_ld" = yes; then
10653                 version_type=linux # correct to gnu/linux during the next big refactor
10654         else
10655                 version_type=irix
10656         fi ;;
10657   esac
10658   need_lib_prefix=no
10659   need_version=no
10660   soname_spec='${libname}${release}${shared_ext}$major'
10661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10662   case $host_os in
10663   irix5* | nonstopux*)
10664     libsuff= shlibsuff=
10665     ;;
10666   *)
10667     case $LD in # libtool.m4 will add one of these switches to LD
10668     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10669       libsuff= shlibsuff= libmagic=32-bit;;
10670     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10671       libsuff=32 shlibsuff=N32 libmagic=N32;;
10672     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10673       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10674     *) libsuff= shlibsuff= libmagic=never-match;;
10675     esac
10676     ;;
10677   esac
10678   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10679   shlibpath_overrides_runpath=no
10680   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10681   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10682   hardcode_into_libs=yes
10683   ;;
10684
10685 # No shared lib support for Linux oldld, aout, or coff.
10686 linux*oldld* | linux*aout* | linux*coff*)
10687   dynamic_linker=no
10688   ;;
10689
10690 # This must be glibc/ELF.
10691 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10692   version_type=linux # correct to gnu/linux during the next big refactor
10693   need_lib_prefix=no
10694   need_version=no
10695   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10696   soname_spec='${libname}${release}${shared_ext}$major'
10697   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10698   shlibpath_var=LD_LIBRARY_PATH
10699   shlibpath_overrides_runpath=no
10700
10701   # Some binutils ld are patched to set DT_RUNPATH
10702   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10703   $as_echo_n "(cached) " >&6
10704 else
10705   lt_cv_shlibpath_overrides_runpath=no
10706     save_LDFLAGS=$LDFLAGS
10707     save_libdir=$libdir
10708     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10709          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10710     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10711 /* end confdefs.h.  */
10712
10713 int
10714 main ()
10715 {
10716
10717   ;
10718   return 0;
10719 }
10720 _ACEOF
10721 if ac_fn_c_try_link "$LINENO"; then :
10722   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10723   lt_cv_shlibpath_overrides_runpath=yes
10724 fi
10725 fi
10726 rm -f core conftest.err conftest.$ac_objext \
10727     conftest$ac_exeext conftest.$ac_ext
10728     LDFLAGS=$save_LDFLAGS
10729     libdir=$save_libdir
10730
10731 fi
10732
10733   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10734
10735   # This implies no fast_install, which is unacceptable.
10736   # Some rework will be needed to allow for fast_install
10737   # before this can be enabled.
10738   hardcode_into_libs=yes
10739
10740   # Add ABI-specific directories to the system library path.
10741   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10742
10743   # Append ld.so.conf contents to the search path
10744   if test -f /etc/ld.so.conf; then
10745     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' ' '`
10746     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10747
10748   fi
10749
10750   # We used to test for /lib/ld.so.1 and disable shared libraries on
10751   # powerpc, because MkLinux only supported shared libraries with the
10752   # GNU dynamic linker.  Since this was broken with cross compilers,
10753   # most powerpc-linux boxes support dynamic linking these days and
10754   # people can always --disable-shared, the test was removed, and we
10755   # assume the GNU/Linux dynamic linker is in use.
10756   dynamic_linker='GNU/Linux ld.so'
10757   ;;
10758
10759 netbsd*)
10760   version_type=sunos
10761   need_lib_prefix=no
10762   need_version=no
10763   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10765     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10766     dynamic_linker='NetBSD (a.out) ld.so'
10767   else
10768     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10769     soname_spec='${libname}${release}${shared_ext}$major'
10770     dynamic_linker='NetBSD ld.elf_so'
10771   fi
10772   shlibpath_var=LD_LIBRARY_PATH
10773   shlibpath_overrides_runpath=yes
10774   hardcode_into_libs=yes
10775   ;;
10776
10777 newsos6)
10778   version_type=linux # correct to gnu/linux during the next big refactor
10779   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10780   shlibpath_var=LD_LIBRARY_PATH
10781   shlibpath_overrides_runpath=yes
10782   ;;
10783
10784 *nto* | *qnx*)
10785   version_type=qnx
10786   need_lib_prefix=no
10787   need_version=no
10788   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   shlibpath_var=LD_LIBRARY_PATH
10791   shlibpath_overrides_runpath=no
10792   hardcode_into_libs=yes
10793   dynamic_linker='ldqnx.so'
10794   ;;
10795
10796 openbsd*)
10797   version_type=sunos
10798   sys_lib_dlsearch_path_spec="/usr/lib"
10799   need_lib_prefix=no
10800   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10801   case $host_os in
10802     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10803     *)                          need_version=no  ;;
10804   esac
10805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10806   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10807   shlibpath_var=LD_LIBRARY_PATH
10808   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10809     case $host_os in
10810       openbsd2.[89] | openbsd2.[89].*)
10811         shlibpath_overrides_runpath=no
10812         ;;
10813       *)
10814         shlibpath_overrides_runpath=yes
10815         ;;
10816       esac
10817   else
10818     shlibpath_overrides_runpath=yes
10819   fi
10820   ;;
10821
10822 os2*)
10823   libname_spec='$name'
10824   shrext_cmds=".dll"
10825   need_lib_prefix=no
10826   library_names_spec='$libname${shared_ext} $libname.a'
10827   dynamic_linker='OS/2 ld.exe'
10828   shlibpath_var=LIBPATH
10829   ;;
10830
10831 osf3* | osf4* | osf5*)
10832   version_type=osf
10833   need_lib_prefix=no
10834   need_version=no
10835   soname_spec='${libname}${release}${shared_ext}$major'
10836   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10837   shlibpath_var=LD_LIBRARY_PATH
10838   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10839   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10840   ;;
10841
10842 rdos*)
10843   dynamic_linker=no
10844   ;;
10845
10846 solaris*)
10847   version_type=linux # correct to gnu/linux during the next big refactor
10848   need_lib_prefix=no
10849   need_version=no
10850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851   soname_spec='${libname}${release}${shared_ext}$major'
10852   shlibpath_var=LD_LIBRARY_PATH
10853   shlibpath_overrides_runpath=yes
10854   hardcode_into_libs=yes
10855   # ldd complains unless libraries are executable
10856   postinstall_cmds='chmod +x $lib'
10857   ;;
10858
10859 sunos4*)
10860   version_type=sunos
10861   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10862   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10863   shlibpath_var=LD_LIBRARY_PATH
10864   shlibpath_overrides_runpath=yes
10865   if test "$with_gnu_ld" = yes; then
10866     need_lib_prefix=no
10867   fi
10868   need_version=yes
10869   ;;
10870
10871 sysv4 | sysv4.3*)
10872   version_type=linux # correct to gnu/linux during the next big refactor
10873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10874   soname_spec='${libname}${release}${shared_ext}$major'
10875   shlibpath_var=LD_LIBRARY_PATH
10876   case $host_vendor in
10877     sni)
10878       shlibpath_overrides_runpath=no
10879       need_lib_prefix=no
10880       runpath_var=LD_RUN_PATH
10881       ;;
10882     siemens)
10883       need_lib_prefix=no
10884       ;;
10885     motorola)
10886       need_lib_prefix=no
10887       need_version=no
10888       shlibpath_overrides_runpath=no
10889       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10890       ;;
10891   esac
10892   ;;
10893
10894 sysv4*MP*)
10895   if test -d /usr/nec ;then
10896     version_type=linux # correct to gnu/linux during the next big refactor
10897     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10898     soname_spec='$libname${shared_ext}.$major'
10899     shlibpath_var=LD_LIBRARY_PATH
10900   fi
10901   ;;
10902
10903 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10904   version_type=freebsd-elf
10905   need_lib_prefix=no
10906   need_version=no
10907   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10908   soname_spec='${libname}${release}${shared_ext}$major'
10909   shlibpath_var=LD_LIBRARY_PATH
10910   shlibpath_overrides_runpath=yes
10911   hardcode_into_libs=yes
10912   if test "$with_gnu_ld" = yes; then
10913     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10914   else
10915     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10916     case $host_os in
10917       sco3.2v5*)
10918         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10919         ;;
10920     esac
10921   fi
10922   sys_lib_dlsearch_path_spec='/usr/lib'
10923   ;;
10924
10925 tpf*)
10926   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10927   version_type=linux # correct to gnu/linux during the next big refactor
10928   need_lib_prefix=no
10929   need_version=no
10930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10931   shlibpath_var=LD_LIBRARY_PATH
10932   shlibpath_overrides_runpath=no
10933   hardcode_into_libs=yes
10934   ;;
10935
10936 uts4*)
10937   version_type=linux # correct to gnu/linux during the next big refactor
10938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10939   soname_spec='${libname}${release}${shared_ext}$major'
10940   shlibpath_var=LD_LIBRARY_PATH
10941   ;;
10942
10943 *)
10944   dynamic_linker=no
10945   ;;
10946 esac
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10948 $as_echo "$dynamic_linker" >&6; }
10949 test "$dynamic_linker" = no && can_build_shared=no
10950
10951 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10952 if test "$GCC" = yes; then
10953   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10954 fi
10955
10956 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10957   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10958 fi
10959 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10960   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10961 fi
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
11053
11054   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11055 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11056 hardcode_action=
11057 if test -n "$hardcode_libdir_flag_spec" ||
11058    test -n "$runpath_var" ||
11059    test "X$hardcode_automatic" = "Xyes" ; then
11060
11061   # We can hardcode non-existent directories.
11062   if test "$hardcode_direct" != no &&
11063      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11064      # have to relink, otherwise we might link with an installed library
11065      # when we should be linking with a yet-to-be-installed one
11066      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11067      test "$hardcode_minus_L" != no; then
11068     # Linking always hardcodes the temporary library directory.
11069     hardcode_action=relink
11070   else
11071     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11072     hardcode_action=immediate
11073   fi
11074 else
11075   # We cannot hardcode anything, or else we can only hardcode existing
11076   # directories.
11077   hardcode_action=unsupported
11078 fi
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11080 $as_echo "$hardcode_action" >&6; }
11081
11082 if test "$hardcode_action" = relink ||
11083    test "$inherit_rpath" = yes; then
11084   # Fast installation is not supported
11085   enable_fast_install=no
11086 elif test "$shlibpath_overrides_runpath" = yes ||
11087      test "$enable_shared" = no; then
11088   # Fast installation is not necessary
11089   enable_fast_install=needless
11090 fi
11091
11092
11093
11094
11095
11096
11097   if test "x$enable_dlopen" != xyes; then
11098   enable_dlopen=unknown
11099   enable_dlopen_self=unknown
11100   enable_dlopen_self_static=unknown
11101 else
11102   lt_cv_dlopen=no
11103   lt_cv_dlopen_libs=
11104
11105   case $host_os in
11106   beos*)
11107     lt_cv_dlopen="load_add_on"
11108     lt_cv_dlopen_libs=
11109     lt_cv_dlopen_self=yes
11110     ;;
11111
11112   mingw* | pw32* | cegcc*)
11113     lt_cv_dlopen="LoadLibrary"
11114     lt_cv_dlopen_libs=
11115     ;;
11116
11117   cygwin*)
11118     lt_cv_dlopen="dlopen"
11119     lt_cv_dlopen_libs=
11120     ;;
11121
11122   darwin*)
11123   # if libdl is installed we need to link against it
11124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11125 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11126 if ${ac_cv_lib_dl_dlopen+:} false; then :
11127   $as_echo_n "(cached) " >&6
11128 else
11129   ac_check_lib_save_LIBS=$LIBS
11130 LIBS="-ldl  $LIBS"
11131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11132 /* end confdefs.h.  */
11133
11134 /* Override any GCC internal prototype to avoid an error.
11135    Use char because int might match the return type of a GCC
11136    builtin and then its argument prototype would still apply.  */
11137 #ifdef __cplusplus
11138 extern "C"
11139 #endif
11140 char dlopen ();
11141 int
11142 main ()
11143 {
11144 return dlopen ();
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 if ac_fn_c_try_link "$LINENO"; then :
11150   ac_cv_lib_dl_dlopen=yes
11151 else
11152   ac_cv_lib_dl_dlopen=no
11153 fi
11154 rm -f core conftest.err conftest.$ac_objext \
11155     conftest$ac_exeext conftest.$ac_ext
11156 LIBS=$ac_check_lib_save_LIBS
11157 fi
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11159 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11160 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11161   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11162 else
11163
11164     lt_cv_dlopen="dyld"
11165     lt_cv_dlopen_libs=
11166     lt_cv_dlopen_self=yes
11167
11168 fi
11169
11170     ;;
11171
11172   *)
11173     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11174 if test "x$ac_cv_func_shl_load" = xyes; then :
11175   lt_cv_dlopen="shl_load"
11176 else
11177   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11178 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11179 if ${ac_cv_lib_dld_shl_load+:} false; then :
11180   $as_echo_n "(cached) " >&6
11181 else
11182   ac_check_lib_save_LIBS=$LIBS
11183 LIBS="-ldld  $LIBS"
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h.  */
11186
11187 /* Override any GCC internal prototype to avoid an error.
11188    Use char because int might match the return type of a GCC
11189    builtin and then its argument prototype would still apply.  */
11190 #ifdef __cplusplus
11191 extern "C"
11192 #endif
11193 char shl_load ();
11194 int
11195 main ()
11196 {
11197 return shl_load ();
11198   ;
11199   return 0;
11200 }
11201 _ACEOF
11202 if ac_fn_c_try_link "$LINENO"; then :
11203   ac_cv_lib_dld_shl_load=yes
11204 else
11205   ac_cv_lib_dld_shl_load=no
11206 fi
11207 rm -f core conftest.err conftest.$ac_objext \
11208     conftest$ac_exeext conftest.$ac_ext
11209 LIBS=$ac_check_lib_save_LIBS
11210 fi
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11212 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11213 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11214   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11215 else
11216   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11217 if test "x$ac_cv_func_dlopen" = xyes; then :
11218   lt_cv_dlopen="dlopen"
11219 else
11220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11221 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11222 if ${ac_cv_lib_dl_dlopen+:} false; then :
11223   $as_echo_n "(cached) " >&6
11224 else
11225   ac_check_lib_save_LIBS=$LIBS
11226 LIBS="-ldl  $LIBS"
11227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h.  */
11229
11230 /* Override any GCC internal prototype to avoid an error.
11231    Use char because int might match the return type of a GCC
11232    builtin and then its argument prototype would still apply.  */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char dlopen ();
11237 int
11238 main ()
11239 {
11240 return dlopen ();
11241   ;
11242   return 0;
11243 }
11244 _ACEOF
11245 if ac_fn_c_try_link "$LINENO"; then :
11246   ac_cv_lib_dl_dlopen=yes
11247 else
11248   ac_cv_lib_dl_dlopen=no
11249 fi
11250 rm -f core conftest.err conftest.$ac_objext \
11251     conftest$ac_exeext conftest.$ac_ext
11252 LIBS=$ac_check_lib_save_LIBS
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11255 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11256 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11257   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11258 else
11259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11260 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11261 if ${ac_cv_lib_svld_dlopen+:} false; then :
11262   $as_echo_n "(cached) " >&6
11263 else
11264   ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-lsvld  $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h.  */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270    Use char because int might match the return type of a GCC
11271    builtin and then its argument prototype would still apply.  */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char dlopen ();
11276 int
11277 main ()
11278 {
11279 return dlopen ();
11280   ;
11281   return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285   ac_cv_lib_svld_dlopen=yes
11286 else
11287   ac_cv_lib_svld_dlopen=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290     conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11294 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11295 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11296   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11297 else
11298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11299 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11300 if ${ac_cv_lib_dld_dld_link+:} false; then :
11301   $as_echo_n "(cached) " >&6
11302 else
11303   ac_check_lib_save_LIBS=$LIBS
11304 LIBS="-ldld  $LIBS"
11305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11306 /* end confdefs.h.  */
11307
11308 /* Override any GCC internal prototype to avoid an error.
11309    Use char because int might match the return type of a GCC
11310    builtin and then its argument prototype would still apply.  */
11311 #ifdef __cplusplus
11312 extern "C"
11313 #endif
11314 char dld_link ();
11315 int
11316 main ()
11317 {
11318 return dld_link ();
11319   ;
11320   return 0;
11321 }
11322 _ACEOF
11323 if ac_fn_c_try_link "$LINENO"; then :
11324   ac_cv_lib_dld_dld_link=yes
11325 else
11326   ac_cv_lib_dld_dld_link=no
11327 fi
11328 rm -f core conftest.err conftest.$ac_objext \
11329     conftest$ac_exeext conftest.$ac_ext
11330 LIBS=$ac_check_lib_save_LIBS
11331 fi
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11333 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11334 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11335   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11336 fi
11337
11338
11339 fi
11340
11341
11342 fi
11343
11344
11345 fi
11346
11347
11348 fi
11349
11350
11351 fi
11352
11353     ;;
11354   esac
11355
11356   if test "x$lt_cv_dlopen" != xno; then
11357     enable_dlopen=yes
11358   else
11359     enable_dlopen=no
11360   fi
11361
11362   case $lt_cv_dlopen in
11363   dlopen)
11364     save_CPPFLAGS="$CPPFLAGS"
11365     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11366
11367     save_LDFLAGS="$LDFLAGS"
11368     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11369
11370     save_LIBS="$LIBS"
11371     LIBS="$lt_cv_dlopen_libs $LIBS"
11372
11373     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11374 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11375 if ${lt_cv_dlopen_self+:} false; then :
11376   $as_echo_n "(cached) " >&6
11377 else
11378           if test "$cross_compiling" = yes; then :
11379   lt_cv_dlopen_self=cross
11380 else
11381   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11382   lt_status=$lt_dlunknown
11383   cat > conftest.$ac_ext <<_LT_EOF
11384 #line $LINENO "configure"
11385 #include "confdefs.h"
11386
11387 #if HAVE_DLFCN_H
11388 #include <dlfcn.h>
11389 #endif
11390
11391 #include <stdio.h>
11392
11393 #ifdef RTLD_GLOBAL
11394 #  define LT_DLGLOBAL           RTLD_GLOBAL
11395 #else
11396 #  ifdef DL_GLOBAL
11397 #    define LT_DLGLOBAL         DL_GLOBAL
11398 #  else
11399 #    define LT_DLGLOBAL         0
11400 #  endif
11401 #endif
11402
11403 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11404    find out it does not work in some platform. */
11405 #ifndef LT_DLLAZY_OR_NOW
11406 #  ifdef RTLD_LAZY
11407 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11408 #  else
11409 #    ifdef DL_LAZY
11410 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11411 #    else
11412 #      ifdef RTLD_NOW
11413 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11414 #      else
11415 #        ifdef DL_NOW
11416 #          define LT_DLLAZY_OR_NOW      DL_NOW
11417 #        else
11418 #          define LT_DLLAZY_OR_NOW      0
11419 #        endif
11420 #      endif
11421 #    endif
11422 #  endif
11423 #endif
11424
11425 /* When -fvisbility=hidden is used, assume the code has been annotated
11426    correspondingly for the symbols needed.  */
11427 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11428 int fnord () __attribute__((visibility("default")));
11429 #endif
11430
11431 int fnord () { return 42; }
11432 int main ()
11433 {
11434   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11435   int status = $lt_dlunknown;
11436
11437   if (self)
11438     {
11439       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11440       else
11441         {
11442           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11443           else puts (dlerror ());
11444         }
11445       /* dlclose (self); */
11446     }
11447   else
11448     puts (dlerror ());
11449
11450   return status;
11451 }
11452 _LT_EOF
11453   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11454   (eval $ac_link) 2>&5
11455   ac_status=$?
11456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11457   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11458     (./conftest; exit; ) >&5 2>/dev/null
11459     lt_status=$?
11460     case x$lt_status in
11461       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11462       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11463       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11464     esac
11465   else :
11466     # compilation failed
11467     lt_cv_dlopen_self=no
11468   fi
11469 fi
11470 rm -fr conftest*
11471
11472
11473 fi
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11475 $as_echo "$lt_cv_dlopen_self" >&6; }
11476
11477     if test "x$lt_cv_dlopen_self" = xyes; then
11478       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11479       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11480 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11481 if ${lt_cv_dlopen_self_static+:} false; then :
11482   $as_echo_n "(cached) " >&6
11483 else
11484           if test "$cross_compiling" = yes; then :
11485   lt_cv_dlopen_self_static=cross
11486 else
11487   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11488   lt_status=$lt_dlunknown
11489   cat > conftest.$ac_ext <<_LT_EOF
11490 #line $LINENO "configure"
11491 #include "confdefs.h"
11492
11493 #if HAVE_DLFCN_H
11494 #include <dlfcn.h>
11495 #endif
11496
11497 #include <stdio.h>
11498
11499 #ifdef RTLD_GLOBAL
11500 #  define LT_DLGLOBAL           RTLD_GLOBAL
11501 #else
11502 #  ifdef DL_GLOBAL
11503 #    define LT_DLGLOBAL         DL_GLOBAL
11504 #  else
11505 #    define LT_DLGLOBAL         0
11506 #  endif
11507 #endif
11508
11509 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11510    find out it does not work in some platform. */
11511 #ifndef LT_DLLAZY_OR_NOW
11512 #  ifdef RTLD_LAZY
11513 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11514 #  else
11515 #    ifdef DL_LAZY
11516 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11517 #    else
11518 #      ifdef RTLD_NOW
11519 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11520 #      else
11521 #        ifdef DL_NOW
11522 #          define LT_DLLAZY_OR_NOW      DL_NOW
11523 #        else
11524 #          define LT_DLLAZY_OR_NOW      0
11525 #        endif
11526 #      endif
11527 #    endif
11528 #  endif
11529 #endif
11530
11531 /* When -fvisbility=hidden is used, assume the code has been annotated
11532    correspondingly for the symbols needed.  */
11533 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11534 int fnord () __attribute__((visibility("default")));
11535 #endif
11536
11537 int fnord () { return 42; }
11538 int main ()
11539 {
11540   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11541   int status = $lt_dlunknown;
11542
11543   if (self)
11544     {
11545       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11546       else
11547         {
11548           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11549           else puts (dlerror ());
11550         }
11551       /* dlclose (self); */
11552     }
11553   else
11554     puts (dlerror ());
11555
11556   return status;
11557 }
11558 _LT_EOF
11559   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11560   (eval $ac_link) 2>&5
11561   ac_status=$?
11562   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11563   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11564     (./conftest; exit; ) >&5 2>/dev/null
11565     lt_status=$?
11566     case x$lt_status in
11567       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11568       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11569       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11570     esac
11571   else :
11572     # compilation failed
11573     lt_cv_dlopen_self_static=no
11574   fi
11575 fi
11576 rm -fr conftest*
11577
11578
11579 fi
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11581 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11582     fi
11583
11584     CPPFLAGS="$save_CPPFLAGS"
11585     LDFLAGS="$save_LDFLAGS"
11586     LIBS="$save_LIBS"
11587     ;;
11588   esac
11589
11590   case $lt_cv_dlopen_self in
11591   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11592   *) enable_dlopen_self=unknown ;;
11593   esac
11594
11595   case $lt_cv_dlopen_self_static in
11596   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11597   *) enable_dlopen_self_static=unknown ;;
11598   esac
11599 fi
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617 striplib=
11618 old_striplib=
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11620 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11621 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11622   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11623   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11626 else
11627 # FIXME - insert some real tests, host_os isn't really good enough
11628   case $host_os in
11629   darwin*)
11630     if test -n "$STRIP" ; then
11631       striplib="$STRIP -x"
11632       old_striplib="$STRIP -S"
11633       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11635     else
11636       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11638     fi
11639     ;;
11640   *)
11641     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643     ;;
11644   esac
11645 fi
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658   # Report which library types will actually be built
11659   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11660 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11662 $as_echo "$can_build_shared" >&6; }
11663
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11665 $as_echo_n "checking whether to build shared libraries... " >&6; }
11666   test "$can_build_shared" = "no" && enable_shared=no
11667
11668   # On AIX, shared libraries and static libraries use the same namespace, and
11669   # are all built from PIC.
11670   case $host_os in
11671   aix3*)
11672     test "$enable_shared" = yes && enable_static=no
11673     if test -n "$RANLIB"; then
11674       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11675       postinstall_cmds='$RANLIB $lib'
11676     fi
11677     ;;
11678
11679   aix[4-9]*)
11680     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11681       test "$enable_shared" = yes && enable_static=no
11682     fi
11683     ;;
11684   esac
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11686 $as_echo "$enable_shared" >&6; }
11687
11688   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11689 $as_echo_n "checking whether to build static libraries... " >&6; }
11690   # Make sure either enable_shared or enable_static is yes.
11691   test "$enable_shared" = yes || enable_static=yes
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11693 $as_echo "$enable_static" >&6; }
11694
11695
11696
11697
11698 fi
11699 ac_ext=c
11700 ac_cpp='$CPP $CPPFLAGS'
11701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11704
11705 CC="$lt_save_CC"
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721         ac_config_commands="$ac_config_commands libtool"
11722
11723
11724
11725
11726 # Only expand once:
11727
11728
11729
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11731 $as_echo_n "checking for library containing strerror... " >&6; }
11732 if ${ac_cv_search_strerror+:} false; then :
11733   $as_echo_n "(cached) " >&6
11734 else
11735   ac_func_search_save_LIBS=$LIBS
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h.  */
11738
11739 /* Override any GCC internal prototype to avoid an error.
11740    Use char because int might match the return type of a GCC
11741    builtin and then its argument prototype would still apply.  */
11742 #ifdef __cplusplus
11743 extern "C"
11744 #endif
11745 char strerror ();
11746 int
11747 main ()
11748 {
11749 return strerror ();
11750   ;
11751   return 0;
11752 }
11753 _ACEOF
11754 for ac_lib in '' cposix; do
11755   if test -z "$ac_lib"; then
11756     ac_res="none required"
11757   else
11758     ac_res=-l$ac_lib
11759     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11760   fi
11761   if ac_fn_c_try_link "$LINENO"; then :
11762   ac_cv_search_strerror=$ac_res
11763 fi
11764 rm -f core conftest.err conftest.$ac_objext \
11765     conftest$ac_exeext
11766   if ${ac_cv_search_strerror+:} false; then :
11767   break
11768 fi
11769 done
11770 if ${ac_cv_search_strerror+:} false; then :
11771
11772 else
11773   ac_cv_search_strerror=no
11774 fi
11775 rm conftest.$ac_ext
11776 LIBS=$ac_func_search_save_LIBS
11777 fi
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11779 $as_echo "$ac_cv_search_strerror" >&6; }
11780 ac_res=$ac_cv_search_strerror
11781 if test "$ac_res" != no; then :
11782   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11783
11784 fi
11785
11786 ac_ext=c
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791 if test -n "$ac_tool_prefix"; then
11792   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11793 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11795 $as_echo_n "checking for $ac_word... " >&6; }
11796 if ${ac_cv_prog_CC+:} false; then :
11797   $as_echo_n "(cached) " >&6
11798 else
11799   if test -n "$CC"; then
11800   ac_cv_prog_CC="$CC" # Let the user override the test.
11801 else
11802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11803 for as_dir in $PATH
11804 do
11805   IFS=$as_save_IFS
11806   test -z "$as_dir" && as_dir=.
11807     for ac_exec_ext in '' $ac_executable_extensions; do
11808   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11809     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11810     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11811     break 2
11812   fi
11813 done
11814   done
11815 IFS=$as_save_IFS
11816
11817 fi
11818 fi
11819 CC=$ac_cv_prog_CC
11820 if test -n "$CC"; then
11821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11822 $as_echo "$CC" >&6; }
11823 else
11824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11825 $as_echo "no" >&6; }
11826 fi
11827
11828
11829 fi
11830 if test -z "$ac_cv_prog_CC"; then
11831   ac_ct_CC=$CC
11832   # Extract the first word of "gcc", so it can be a program name with args.
11833 set dummy gcc; ac_word=$2
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11835 $as_echo_n "checking for $ac_word... " >&6; }
11836 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11837   $as_echo_n "(cached) " >&6
11838 else
11839   if test -n "$ac_ct_CC"; then
11840   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11841 else
11842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11843 for as_dir in $PATH
11844 do
11845   IFS=$as_save_IFS
11846   test -z "$as_dir" && as_dir=.
11847     for ac_exec_ext in '' $ac_executable_extensions; do
11848   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11849     ac_cv_prog_ac_ct_CC="gcc"
11850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851     break 2
11852   fi
11853 done
11854   done
11855 IFS=$as_save_IFS
11856
11857 fi
11858 fi
11859 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11860 if test -n "$ac_ct_CC"; then
11861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11862 $as_echo "$ac_ct_CC" >&6; }
11863 else
11864   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 $as_echo "no" >&6; }
11866 fi
11867
11868   if test "x$ac_ct_CC" = x; then
11869     CC=""
11870   else
11871     case $cross_compiling:$ac_tool_warned in
11872 yes:)
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11874 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11875 ac_tool_warned=yes ;;
11876 esac
11877     CC=$ac_ct_CC
11878   fi
11879 else
11880   CC="$ac_cv_prog_CC"
11881 fi
11882
11883 if test -z "$CC"; then
11884           if test -n "$ac_tool_prefix"; then
11885     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11886 set dummy ${ac_tool_prefix}cc; ac_word=$2
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11888 $as_echo_n "checking for $ac_word... " >&6; }
11889 if ${ac_cv_prog_CC+:} false; then :
11890   $as_echo_n "(cached) " >&6
11891 else
11892   if test -n "$CC"; then
11893   ac_cv_prog_CC="$CC" # Let the user override the test.
11894 else
11895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11896 for as_dir in $PATH
11897 do
11898   IFS=$as_save_IFS
11899   test -z "$as_dir" && as_dir=.
11900     for ac_exec_ext in '' $ac_executable_extensions; do
11901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11902     ac_cv_prog_CC="${ac_tool_prefix}cc"
11903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904     break 2
11905   fi
11906 done
11907   done
11908 IFS=$as_save_IFS
11909
11910 fi
11911 fi
11912 CC=$ac_cv_prog_CC
11913 if test -n "$CC"; then
11914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11915 $as_echo "$CC" >&6; }
11916 else
11917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11918 $as_echo "no" >&6; }
11919 fi
11920
11921
11922   fi
11923 fi
11924 if test -z "$CC"; then
11925   # Extract the first word of "cc", so it can be a program name with args.
11926 set dummy cc; ac_word=$2
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11928 $as_echo_n "checking for $ac_word... " >&6; }
11929 if ${ac_cv_prog_CC+:} false; then :
11930   $as_echo_n "(cached) " >&6
11931 else
11932   if test -n "$CC"; then
11933   ac_cv_prog_CC="$CC" # Let the user override the test.
11934 else
11935   ac_prog_rejected=no
11936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11937 for as_dir in $PATH
11938 do
11939   IFS=$as_save_IFS
11940   test -z "$as_dir" && as_dir=.
11941     for ac_exec_ext in '' $ac_executable_extensions; do
11942   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11943     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11944        ac_prog_rejected=yes
11945        continue
11946      fi
11947     ac_cv_prog_CC="cc"
11948     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949     break 2
11950   fi
11951 done
11952   done
11953 IFS=$as_save_IFS
11954
11955 if test $ac_prog_rejected = yes; then
11956   # We found a bogon in the path, so make sure we never use it.
11957   set dummy $ac_cv_prog_CC
11958   shift
11959   if test $# != 0; then
11960     # We chose a different compiler from the bogus one.
11961     # However, it has the same basename, so the bogon will be chosen
11962     # first if we set CC to just the basename; use the full file name.
11963     shift
11964     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11965   fi
11966 fi
11967 fi
11968 fi
11969 CC=$ac_cv_prog_CC
11970 if test -n "$CC"; then
11971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11972 $as_echo "$CC" >&6; }
11973 else
11974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975 $as_echo "no" >&6; }
11976 fi
11977
11978
11979 fi
11980 if test -z "$CC"; then
11981   if test -n "$ac_tool_prefix"; then
11982   for ac_prog in cl.exe
11983   do
11984     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11985 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_prog_CC+:} false; then :
11989   $as_echo_n "(cached) " >&6
11990 else
11991   if test -n "$CC"; then
11992   ac_cv_prog_CC="$CC" # Let the user override the test.
11993 else
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11996 do
11997   IFS=$as_save_IFS
11998   test -z "$as_dir" && as_dir=.
11999     for ac_exec_ext in '' $ac_executable_extensions; do
12000   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12002     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003     break 2
12004   fi
12005 done
12006   done
12007 IFS=$as_save_IFS
12008
12009 fi
12010 fi
12011 CC=$ac_cv_prog_CC
12012 if test -n "$CC"; then
12013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12014 $as_echo "$CC" >&6; }
12015 else
12016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 fi
12019
12020
12021     test -n "$CC" && break
12022   done
12023 fi
12024 if test -z "$CC"; then
12025   ac_ct_CC=$CC
12026   for ac_prog in cl.exe
12027 do
12028   # Extract the first word of "$ac_prog", so it can be a program name with args.
12029 set dummy $ac_prog; ac_word=$2
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12031 $as_echo_n "checking for $ac_word... " >&6; }
12032 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12033   $as_echo_n "(cached) " >&6
12034 else
12035   if test -n "$ac_ct_CC"; then
12036   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12037 else
12038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12039 for as_dir in $PATH
12040 do
12041   IFS=$as_save_IFS
12042   test -z "$as_dir" && as_dir=.
12043     for ac_exec_ext in '' $ac_executable_extensions; do
12044   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12045     ac_cv_prog_ac_ct_CC="$ac_prog"
12046     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12047     break 2
12048   fi
12049 done
12050   done
12051 IFS=$as_save_IFS
12052
12053 fi
12054 fi
12055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12056 if test -n "$ac_ct_CC"; then
12057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12058 $as_echo "$ac_ct_CC" >&6; }
12059 else
12060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12061 $as_echo "no" >&6; }
12062 fi
12063
12064
12065   test -n "$ac_ct_CC" && break
12066 done
12067
12068   if test "x$ac_ct_CC" = x; then
12069     CC=""
12070   else
12071     case $cross_compiling:$ac_tool_warned in
12072 yes:)
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12076 esac
12077     CC=$ac_ct_CC
12078   fi
12079 fi
12080
12081 fi
12082
12083
12084 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12086 as_fn_error $? "no acceptable C compiler found in \$PATH
12087 See \`config.log' for more details" "$LINENO" 5; }
12088
12089 # Provide some information about the compiler.
12090 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12091 set X $ac_compile
12092 ac_compiler=$2
12093 for ac_option in --version -v -V -qversion; do
12094   { { ac_try="$ac_compiler $ac_option >&5"
12095 case "(($ac_try" in
12096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12097   *) ac_try_echo=$ac_try;;
12098 esac
12099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12100 $as_echo "$ac_try_echo"; } >&5
12101   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12102   ac_status=$?
12103   if test -s conftest.err; then
12104     sed '10a\
12105 ... rest of stderr output deleted ...
12106          10q' conftest.err >conftest.er1
12107     cat conftest.er1 >&5
12108   fi
12109   rm -f conftest.er1 conftest.err
12110   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12111   test $ac_status = 0; }
12112 done
12113
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12115 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12116 if ${ac_cv_c_compiler_gnu+:} false; then :
12117   $as_echo_n "(cached) " >&6
12118 else
12119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12120 /* end confdefs.h.  */
12121
12122 int
12123 main ()
12124 {
12125 #ifndef __GNUC__
12126        choke me
12127 #endif
12128
12129   ;
12130   return 0;
12131 }
12132 _ACEOF
12133 if ac_fn_c_try_compile "$LINENO"; then :
12134   ac_compiler_gnu=yes
12135 else
12136   ac_compiler_gnu=no
12137 fi
12138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12139 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12140
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12143 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12144 if test $ac_compiler_gnu = yes; then
12145   GCC=yes
12146 else
12147   GCC=
12148 fi
12149 ac_test_CFLAGS=${CFLAGS+set}
12150 ac_save_CFLAGS=$CFLAGS
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12152 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12153 if ${ac_cv_prog_cc_g+:} false; then :
12154   $as_echo_n "(cached) " >&6
12155 else
12156   ac_save_c_werror_flag=$ac_c_werror_flag
12157    ac_c_werror_flag=yes
12158    ac_cv_prog_cc_g=no
12159    CFLAGS="-g"
12160    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h.  */
12162
12163 int
12164 main ()
12165 {
12166
12167   ;
12168   return 0;
12169 }
12170 _ACEOF
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172   ac_cv_prog_cc_g=yes
12173 else
12174   CFLAGS=""
12175       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h.  */
12177
12178 int
12179 main ()
12180 {
12181
12182   ;
12183   return 0;
12184 }
12185 _ACEOF
12186 if ac_fn_c_try_compile "$LINENO"; then :
12187
12188 else
12189   ac_c_werror_flag=$ac_save_c_werror_flag
12190          CFLAGS="-g"
12191          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192 /* end confdefs.h.  */
12193
12194 int
12195 main ()
12196 {
12197
12198   ;
12199   return 0;
12200 }
12201 _ACEOF
12202 if ac_fn_c_try_compile "$LINENO"; then :
12203   ac_cv_prog_cc_g=yes
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 fi
12209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12210    ac_c_werror_flag=$ac_save_c_werror_flag
12211 fi
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12213 $as_echo "$ac_cv_prog_cc_g" >&6; }
12214 if test "$ac_test_CFLAGS" = set; then
12215   CFLAGS=$ac_save_CFLAGS
12216 elif test $ac_cv_prog_cc_g = yes; then
12217   if test "$GCC" = yes; then
12218     CFLAGS="-g -O2"
12219   else
12220     CFLAGS="-g"
12221   fi
12222 else
12223   if test "$GCC" = yes; then
12224     CFLAGS="-O2"
12225   else
12226     CFLAGS=
12227   fi
12228 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12230 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12231 if ${ac_cv_prog_cc_c89+:} false; then :
12232   $as_echo_n "(cached) " >&6
12233 else
12234   ac_cv_prog_cc_c89=no
12235 ac_save_CC=$CC
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h.  */
12238 #include <stdarg.h>
12239 #include <stdio.h>
12240 struct stat;
12241 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12242 struct buf { int x; };
12243 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12244 static char *e (p, i)
12245      char **p;
12246      int i;
12247 {
12248   return p[i];
12249 }
12250 static char *f (char * (*g) (char **, int), char **p, ...)
12251 {
12252   char *s;
12253   va_list v;
12254   va_start (v,p);
12255   s = g (p, va_arg (v,int));
12256   va_end (v);
12257   return s;
12258 }
12259
12260 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12261    function prototypes and stuff, but not '\xHH' hex character constants.
12262    These don't provoke an error unfortunately, instead are silently treated
12263    as 'x'.  The following induces an error, until -std is added to get
12264    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12265    array size at least.  It's necessary to write '\x00'==0 to get something
12266    that's true only with -std.  */
12267 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12268
12269 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12270    inside strings and character constants.  */
12271 #define FOO(x) 'x'
12272 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12273
12274 int test (int i, double x);
12275 struct s1 {int (*f) (int a);};
12276 struct s2 {int (*f) (double a);};
12277 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12278 int argc;
12279 char **argv;
12280 int
12281 main ()
12282 {
12283 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12284   ;
12285   return 0;
12286 }
12287 _ACEOF
12288 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12289         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12290 do
12291   CC="$ac_save_CC $ac_arg"
12292   if ac_fn_c_try_compile "$LINENO"; then :
12293   ac_cv_prog_cc_c89=$ac_arg
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext
12296   test "x$ac_cv_prog_cc_c89" != "xno" && break
12297 done
12298 rm -f conftest.$ac_ext
12299 CC=$ac_save_CC
12300
12301 fi
12302 # AC_CACHE_VAL
12303 case "x$ac_cv_prog_cc_c89" in
12304   x)
12305     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12306 $as_echo "none needed" >&6; } ;;
12307   xno)
12308     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12309 $as_echo "unsupported" >&6; } ;;
12310   *)
12311     CC="$CC $ac_cv_prog_cc_c89"
12312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12313 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12314 esac
12315 if test "x$ac_cv_prog_cc_c89" != xno; then :
12316
12317 fi
12318
12319 ac_ext=c
12320 ac_cpp='$CPP $CPPFLAGS'
12321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325 depcc="$CC"   am_compiler_list=
12326
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12328 $as_echo_n "checking dependency style of $depcc... " >&6; }
12329 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12330   $as_echo_n "(cached) " >&6
12331 else
12332   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12333   # We make a subdir and do the tests there.  Otherwise we can end up
12334   # making bogus files that we don't know about and never remove.  For
12335   # instance it was reported that on HP-UX the gcc test will end up
12336   # making a dummy file named 'D' -- because '-MD' means "put the output
12337   # in D".
12338   rm -rf conftest.dir
12339   mkdir conftest.dir
12340   # Copy depcomp to subdir because otherwise we won't find it if we're
12341   # using a relative directory.
12342   cp "$am_depcomp" conftest.dir
12343   cd conftest.dir
12344   # We will build objects and dependencies in a subdirectory because
12345   # it helps to detect inapplicable dependency modes.  For instance
12346   # both Tru64's cc and ICC support -MD to output dependencies as a
12347   # side effect of compilation, but ICC will put the dependencies in
12348   # the current directory while Tru64 will put them in the object
12349   # directory.
12350   mkdir sub
12351
12352   am_cv_CC_dependencies_compiler_type=none
12353   if test "$am_compiler_list" = ""; then
12354      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12355   fi
12356   am__universal=false
12357   case " $depcc " in #(
12358      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12359      esac
12360
12361   for depmode in $am_compiler_list; do
12362     # Setup a source with many dependencies, because some compilers
12363     # like to wrap large dependency lists on column 80 (with \), and
12364     # we should not choose a depcomp mode which is confused by this.
12365     #
12366     # We need to recreate these files for each test, as the compiler may
12367     # overwrite some of them when testing with obscure command lines.
12368     # This happens at least with the AIX C compiler.
12369     : > sub/conftest.c
12370     for i in 1 2 3 4 5 6; do
12371       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12372       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12373       # Solaris 10 /bin/sh.
12374       echo '/* dummy */' > sub/conftst$i.h
12375     done
12376     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12377
12378     # We check with '-c' and '-o' for the sake of the "dashmstdout"
12379     # mode.  It turns out that the SunPro C++ compiler does not properly
12380     # handle '-M -o', and we need to detect this.  Also, some Intel
12381     # versions had trouble with output in subdirs.
12382     am__obj=sub/conftest.${OBJEXT-o}
12383     am__minus_obj="-o $am__obj"
12384     case $depmode in
12385     gcc)
12386       # This depmode causes a compiler race in universal mode.
12387       test "$am__universal" = false || continue
12388       ;;
12389     nosideeffect)
12390       # After this tag, mechanisms are not by side-effect, so they'll
12391       # only be used when explicitly requested.
12392       if test "x$enable_dependency_tracking" = xyes; then
12393         continue
12394       else
12395         break
12396       fi
12397       ;;
12398     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12399       # This compiler won't grok '-c -o', but also, the minuso test has
12400       # not run yet.  These depmodes are late enough in the game, and
12401       # so weak that their functioning should not be impacted.
12402       am__obj=conftest.${OBJEXT-o}
12403       am__minus_obj=
12404       ;;
12405     none) break ;;
12406     esac
12407     if depmode=$depmode \
12408        source=sub/conftest.c object=$am__obj \
12409        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12410        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12411          >/dev/null 2>conftest.err &&
12412        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12413        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12414        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12415        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12416       # icc doesn't choke on unknown options, it will just issue warnings
12417       # or remarks (even with -Werror).  So we grep stderr for any message
12418       # that says an option was ignored or not supported.
12419       # When given -MP, icc 7.0 and 7.1 complain thusly:
12420       #   icc: Command line warning: ignoring option '-M'; no argument required
12421       # The diagnosis changed in icc 8.0:
12422       #   icc: Command line remark: option '-MP' not supported
12423       if (grep 'ignoring option' conftest.err ||
12424           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12425         am_cv_CC_dependencies_compiler_type=$depmode
12426         break
12427       fi
12428     fi
12429   done
12430
12431   cd ..
12432   rm -rf conftest.dir
12433 else
12434   am_cv_CC_dependencies_compiler_type=none
12435 fi
12436
12437 fi
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12439 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12440 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12441
12442  if
12443   test "x$enable_dependency_tracking" != xno \
12444   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12445   am__fastdepCC_TRUE=
12446   am__fastdepCC_FALSE='#'
12447 else
12448   am__fastdepCC_TRUE='#'
12449   am__fastdepCC_FALSE=
12450 fi
12451
12452
12453 if test "x$CC" != xcc; then
12454   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12455 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12456 else
12457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12458 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12459 fi
12460 set dummy $CC; ac_cc=`$as_echo "$2" |
12461                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12462 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12463   $as_echo_n "(cached) " >&6
12464 else
12465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h.  */
12467
12468 int
12469 main ()
12470 {
12471
12472   ;
12473   return 0;
12474 }
12475 _ACEOF
12476 # Make sure it works both with $CC and with simple cc.
12477 # We do the test twice because some compilers refuse to overwrite an
12478 # existing .o file with -o, though they will create one.
12479 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12480 rm -f conftest2.*
12481 if { { case "(($ac_try" in
12482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483   *) ac_try_echo=$ac_try;;
12484 esac
12485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12486 $as_echo "$ac_try_echo"; } >&5
12487   (eval "$ac_try") 2>&5
12488   ac_status=$?
12489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12490   test $ac_status = 0; } &&
12491    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12493   *) ac_try_echo=$ac_try;;
12494 esac
12495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12496 $as_echo "$ac_try_echo"; } >&5
12497   (eval "$ac_try") 2>&5
12498   ac_status=$?
12499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12500   test $ac_status = 0; };
12501 then
12502   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12503   if test "x$CC" != xcc; then
12504     # Test first that cc exists at all.
12505     if { ac_try='cc -c conftest.$ac_ext >&5'
12506   { { case "(($ac_try" in
12507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12508   *) ac_try_echo=$ac_try;;
12509 esac
12510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12511 $as_echo "$ac_try_echo"; } >&5
12512   (eval "$ac_try") 2>&5
12513   ac_status=$?
12514   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12515   test $ac_status = 0; }; }; then
12516       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12517       rm -f conftest2.*
12518       if { { case "(($ac_try" in
12519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12520   *) ac_try_echo=$ac_try;;
12521 esac
12522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12523 $as_echo "$ac_try_echo"; } >&5
12524   (eval "$ac_try") 2>&5
12525   ac_status=$?
12526   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12527   test $ac_status = 0; } &&
12528          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530   *) ac_try_echo=$ac_try;;
12531 esac
12532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12533 $as_echo "$ac_try_echo"; } >&5
12534   (eval "$ac_try") 2>&5
12535   ac_status=$?
12536   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537   test $ac_status = 0; };
12538       then
12539         # cc works too.
12540         :
12541       else
12542         # cc exists but doesn't like -o.
12543         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12544       fi
12545     fi
12546   fi
12547 else
12548   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12549 fi
12550 rm -f core conftest*
12551
12552 fi
12553 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12555 $as_echo "yes" >&6; }
12556 else
12557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12558 $as_echo "no" >&6; }
12559
12560 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12561
12562 fi
12563
12564 # FIXME: we rely on the cache variable name because
12565 # there is no other way.
12566 set dummy $CC
12567 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12568 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12569 if test "$am_t" != yes; then
12570    # Losing compiler, so override with the script.
12571    # FIXME: It is wrong to rewrite CC.
12572    # But if we don't then we get into trouble of one sort or another.
12573    # A longer-term fix would be to have automake use am__CC in this case,
12574    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12575    CC="$am_aux_dir/compile $CC"
12576 fi
12577
12578
12579
12580 # option to specify python interpreter to use; this just sets $PYTHON, so that
12581 # we will fallback to reading $PYTHON if --with-python is not given, and
12582 # python.m4 will get the expected input
12583
12584 # Check whether --with-python was given.
12585 if test "${with_python+set}" = set; then :
12586   withval=$with_python; PYTHON="$withval"
12587 fi
12588
12589 if test x"$PYTHON" = xyes; then
12590         as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12591 fi
12592 if test -n "$PYTHON" && ! which "$PYTHON"; then
12593         as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12594 fi
12595
12596 # check that we have the minimum version of python necessary to build
12597
12598
12599
12600
12601         if test -n "$PYTHON"; then
12602       # If the user set $PYTHON, use it and don't search something else.
12603       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12604 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12605       prog="import sys
12606 # split strings by '.' and convert to numeric.  Append some zeros
12607 # because we need at least 4 digits for the hex conversion.
12608 # map returns an iterator in Python 3.0 and a list in 2.x
12609 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12610 minverhex = 0
12611 # xrange is not present in Python 3.0 and range returns an iterator
12612 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12613 sys.exit(sys.hexversion < minverhex)"
12614   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12615    ($PYTHON -c "$prog") >&5 2>&5
12616    ac_status=$?
12617    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12618    (exit $ac_status); }; then :
12619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12620 $as_echo "yes" >&6; }
12621 else
12622   as_fn_error $? "too old" "$LINENO" 5
12623 fi
12624       am_display_PYTHON=$PYTHON
12625     else
12626       # Otherwise, try each interpreter until we find one that satisfies
12627       # VERSION.
12628       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12629 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12630 if ${am_cv_pathless_PYTHON+:} false; then :
12631   $as_echo_n "(cached) " >&6
12632 else
12633
12634         for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12635           test "$am_cv_pathless_PYTHON" = none && break
12636           prog="import sys
12637 # split strings by '.' and convert to numeric.  Append some zeros
12638 # because we need at least 4 digits for the hex conversion.
12639 # map returns an iterator in Python 3.0 and a list in 2.x
12640 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12641 minverhex = 0
12642 # xrange is not present in Python 3.0 and range returns an iterator
12643 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12644 sys.exit(sys.hexversion < minverhex)"
12645   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12646    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12647    ac_status=$?
12648    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649    (exit $ac_status); }; then :
12650   break
12651 fi
12652         done
12653 fi
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12655 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12656       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12657       if test "$am_cv_pathless_PYTHON" = none; then
12658         PYTHON=:
12659       else
12660         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12661 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12663 $as_echo_n "checking for $ac_word... " >&6; }
12664 if ${ac_cv_path_PYTHON+:} false; then :
12665   $as_echo_n "(cached) " >&6
12666 else
12667   case $PYTHON in
12668   [\\/]* | ?:[\\/]*)
12669   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12670   ;;
12671   *)
12672   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12674 do
12675   IFS=$as_save_IFS
12676   test -z "$as_dir" && as_dir=.
12677     for ac_exec_ext in '' $ac_executable_extensions; do
12678   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12679     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12680     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681     break 2
12682   fi
12683 done
12684   done
12685 IFS=$as_save_IFS
12686
12687   ;;
12688 esac
12689 fi
12690 PYTHON=$ac_cv_path_PYTHON
12691 if test -n "$PYTHON"; then
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12693 $as_echo "$PYTHON" >&6; }
12694 else
12695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12696 $as_echo "no" >&6; }
12697 fi
12698
12699
12700       fi
12701       am_display_PYTHON=$am_cv_pathless_PYTHON
12702     fi
12703
12704
12705   if test "$PYTHON" = :; then
12706       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12707   else
12708
12709
12710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12711 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12712 if ${am_cv_python_version+:} false; then :
12713   $as_echo_n "(cached) " >&6
12714 else
12715   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12716 fi
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12718 $as_echo "$am_cv_python_version" >&6; }
12719   PYTHON_VERSION=$am_cv_python_version
12720
12721
12722
12723   PYTHON_PREFIX='${prefix}'
12724
12725   PYTHON_EXEC_PREFIX='${exec_prefix}'
12726
12727
12728
12729   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12730 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12731 if ${am_cv_python_platform+:} false; then :
12732   $as_echo_n "(cached) " >&6
12733 else
12734   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12735 fi
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12737 $as_echo "$am_cv_python_platform" >&6; }
12738   PYTHON_PLATFORM=$am_cv_python_platform
12739
12740
12741
12742
12743                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12744 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12745 if ${am_cv_python_pythondir+:} false; then :
12746   $as_echo_n "(cached) " >&6
12747 else
12748   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12749      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12750 fi
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12752 $as_echo "$am_cv_python_pythondir" >&6; }
12753   pythondir=$am_cv_python_pythondir
12754
12755
12756
12757   pkgpythondir=\${pythondir}/$PACKAGE
12758
12759
12760             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12761 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12762 if ${am_cv_python_pyexecdir+:} false; then :
12763   $as_echo_n "(cached) " >&6
12764 else
12765   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12766      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12767 fi
12768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12769 $as_echo "$am_cv_python_pyexecdir" >&6; }
12770   pyexecdir=$am_cv_python_pyexecdir
12771
12772
12773
12774   pkgpyexecdir=\${pyexecdir}/$PACKAGE
12775
12776
12777
12778   fi
12779
12780
12781
12782 # check if we are building for python 3
12783 prog="import sys
12784 # split strings by '.' and convert to numeric.  Append some zeros
12785 # because we need at least 4 digits for the hex conversion.
12786 # map returns an iterator in Python 3.0 and a list in 2.x
12787 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12788 minverhex = 0
12789 # xrange is not present in Python 3.0 and range returns an iterator
12790 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12791 sys.exit(sys.hexversion < minverhex)"
12792   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12793    ($PYTHON -c "$prog") >&5 2>&5
12794    ac_status=$?
12795    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12796    (exit $ac_status); }; then :
12797   build_py3k=true
12798 else
12799   build_py3k=false
12800 fi
12801
12802 # if building for python 3 make sure we have the minimum version supported
12803 if test $build_py3k = true ; then
12804   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12805 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12806   prog="import sys
12807 # split strings by '.' and convert to numeric.  Append some zeros
12808 # because we need at least 4 digits for the hex conversion.
12809 # map returns an iterator in Python 3.0 and a list in 2.x
12810 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12811 minverhex = 0
12812 # xrange is not present in Python 3.0 and range returns an iterator
12813 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12814 sys.exit(sys.hexversion < minverhex)"
12815   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12816    ($PYTHON -c "$prog") >&5 2>&5
12817    ac_status=$?
12818    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819    (exit $ac_status); }; then :
12820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12821 $as_echo "yes" >&6; }
12822 else
12823   as_fn_error $? "too old" "$LINENO" 5
12824 fi
12825 fi
12826
12827 # - 'SO' for PyPy, CPython 2.7-3.2
12828 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12829 # - fallback to '.so'
12830 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');"`
12831
12832
12833
12834
12835
12836
12837
12838
12839         # Find any Python interpreter.
12840     if test -z "$PYTHON"; then
12841       for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12842 do
12843   # Extract the first word of "$ac_prog", so it can be a program name with args.
12844 set dummy $ac_prog; ac_word=$2
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12846 $as_echo_n "checking for $ac_word... " >&6; }
12847 if ${ac_cv_path_PYTHON+:} false; then :
12848   $as_echo_n "(cached) " >&6
12849 else
12850   case $PYTHON in
12851   [\\/]* | ?:[\\/]*)
12852   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12853   ;;
12854   *)
12855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12856 for as_dir in $PATH
12857 do
12858   IFS=$as_save_IFS
12859   test -z "$as_dir" && as_dir=.
12860     for ac_exec_ext in '' $ac_executable_extensions; do
12861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12862     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12864     break 2
12865   fi
12866 done
12867   done
12868 IFS=$as_save_IFS
12869
12870   ;;
12871 esac
12872 fi
12873 PYTHON=$ac_cv_path_PYTHON
12874 if test -n "$PYTHON"; then
12875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12876 $as_echo "$PYTHON" >&6; }
12877 else
12878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12879 $as_echo "no" >&6; }
12880 fi
12881
12882
12883   test -n "$PYTHON" && break
12884 done
12885 test -n "$PYTHON" || PYTHON=":"
12886
12887     fi
12888     am_display_PYTHON=python
12889
12890
12891   if test "$PYTHON" = :; then
12892       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12893   else
12894
12895
12896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12897 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12898 if ${am_cv_python_version+:} false; then :
12899   $as_echo_n "(cached) " >&6
12900 else
12901   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12902 fi
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12904 $as_echo "$am_cv_python_version" >&6; }
12905   PYTHON_VERSION=$am_cv_python_version
12906
12907
12908
12909   PYTHON_PREFIX='${prefix}'
12910
12911   PYTHON_EXEC_PREFIX='${exec_prefix}'
12912
12913
12914
12915   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12916 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12917 if ${am_cv_python_platform+:} false; then :
12918   $as_echo_n "(cached) " >&6
12919 else
12920   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12921 fi
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12923 $as_echo "$am_cv_python_platform" >&6; }
12924   PYTHON_PLATFORM=$am_cv_python_platform
12925
12926
12927   # Just factor out some code duplication.
12928   am_python_setup_sysconfig="\
12929 import sys
12930 # Prefer sysconfig over distutils.sysconfig, for better compatibility
12931 # with python 3.x.  See automake bug#10227.
12932 try:
12933     import sysconfig
12934 except ImportError:
12935     can_use_sysconfig = 0
12936 else:
12937     can_use_sysconfig = 1
12938 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
12939 # <https://github.com/pypa/virtualenv/issues/118>
12940 try:
12941     from platform import python_implementation
12942     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
12943         can_use_sysconfig = 0
12944 except ImportError:
12945     pass"
12946
12947
12948             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12949 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12950 if ${am_cv_python_pythondir+:} false; then :
12951   $as_echo_n "(cached) " >&6
12952 else
12953   if test "x$prefix" = xNONE
12954      then
12955        am_py_prefix=$ac_default_prefix
12956      else
12957        am_py_prefix=$prefix
12958      fi
12959      am_cv_python_pythondir=`$PYTHON -c "
12960 $am_python_setup_sysconfig
12961 if can_use_sysconfig:
12962     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
12963 else:
12964     from distutils import sysconfig
12965     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
12966 sys.stdout.write(sitedir)"`
12967      case $am_cv_python_pythondir in
12968      $am_py_prefix*)
12969        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12970        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12971        ;;
12972      *)
12973        case $am_py_prefix in
12974          /usr|/System*) ;;
12975          *)
12976           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12977           ;;
12978        esac
12979        ;;
12980      esac
12981
12982 fi
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12984 $as_echo "$am_cv_python_pythondir" >&6; }
12985   pythondir=$am_cv_python_pythondir
12986
12987
12988
12989   pkgpythondir=\${pythondir}/$PACKAGE
12990
12991
12992         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12993 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12994 if ${am_cv_python_pyexecdir+:} false; then :
12995   $as_echo_n "(cached) " >&6
12996 else
12997   if test "x$exec_prefix" = xNONE
12998      then
12999        am_py_exec_prefix=$am_py_prefix
13000      else
13001        am_py_exec_prefix=$exec_prefix
13002      fi
13003      am_cv_python_pyexecdir=`$PYTHON -c "
13004 $am_python_setup_sysconfig
13005 if can_use_sysconfig:
13006     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
13007 else:
13008     from distutils import sysconfig
13009     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
13010 sys.stdout.write(sitedir)"`
13011      case $am_cv_python_pyexecdir in
13012      $am_py_exec_prefix*)
13013        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13014        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13015        ;;
13016      *)
13017        case $am_py_exec_prefix in
13018          /usr|/System*) ;;
13019          *)
13020            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13021            ;;
13022        esac
13023        ;;
13024      esac
13025
13026 fi
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13028 $as_echo "$am_cv_python_pyexecdir" >&6; }
13029   pyexecdir=$am_cv_python_pyexecdir
13030
13031
13032
13033   pkgpyexecdir=\${pyexecdir}/$PACKAGE
13034
13035
13036
13037   fi
13038
13039
13040
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13042 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
13043 if test "x$PYTHON_INCLUDES" = x; then
13044   PYTHON_CONFIG=`which $PYTHON`-config
13045   if test -x "$PYTHON_CONFIG"; then
13046     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
13047   else
13048     PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
13049     PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
13050   fi
13051 fi
13052
13053 save_CPPFLAGS="$CPPFLAGS"
13054 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13056 /* end confdefs.h.  */
13057 #include <Python.h>
13058 _ACEOF
13059 if ac_fn_c_try_cpp "$LINENO"; then :
13060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13061 $as_echo "found" >&6; }
13062
13063 else
13064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13065 $as_echo "not found" >&6; }
13066 as_fn_error $? "Python headers not found" "$LINENO" 5
13067 fi
13068 rm -f conftest.err conftest.i conftest.$ac_ext
13069 CPPFLAGS="$save_CPPFLAGS"
13070
13071 if test "x$os_win32" = "xyes"; then
13072
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13074 $as_echo_n "checking for libraries required to embed python... " >&6; }
13075 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13076 if test "x$PYTHON_LIBS" = x; then
13077         PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13078 fi
13079 if test "x$PYTHON_LIB_LOC" = x; then
13080         PYTHON_LIB_LOC="${py_prefix}/lib"
13081 fi
13082
13083
13084 save_LIBS="$LIBS"
13085 LIBS="$LIBS $PYTHON_LIBS"
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h.  */
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090    Use char because int might match the return type of a GCC
13091    builtin and then its argument prototype would still apply.  */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char Py_Initialize ();
13096 int
13097 main ()
13098 {
13099 return Py_Initialize ();
13100   ;
13101   return 0;
13102 }
13103 _ACEOF
13104 if ac_fn_c_try_link "$LINENO"; then :
13105            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13106 $as_echo "yes" >&6; };
13107 else
13108            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows requires Python modules to be explicitly linked to libpython." "$LINENO" 5
13110 fi
13111 rm -f core conftest.err conftest.$ac_objext \
13112     conftest$ac_exeext conftest.$ac_ext
13113
13114
13115 fi
13116
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13118 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13119 old_CPPFLAGS=$CPPFLAGS
13120 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13122 /* end confdefs.h.  */
13123 #include <Python.h>
13124 int
13125 main ()
13126 {
13127 PySignal_SetWakeupFd(0);
13128   ;
13129   return 0;
13130 }
13131 _ACEOF
13132 if ac_fn_c_try_compile "$LINENO"; then :
13133   setwakeupfd_ok=yes
13134 else
13135   setwakeupfd_ok=no
13136 fi
13137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13139 $as_echo "$setwakeupfd_ok" >&6; }
13140 if test "x$setwakeupfd_ok" != xno; then
13141
13142 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13143
13144 fi
13145 CPPFLAGS=$old_CPPFLAGS
13146
13147 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13148
13149
13150 # Check whether --enable-thread was given.
13151 if test "${enable_thread+set}" = set; then :
13152   enableval=$enable_thread;
13153 else
13154   enable_thread=yes
13155 fi
13156
13157
13158
13159 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13161 $as_echo_n "checking for python module thread... " >&6; }
13162 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13163   $as_echo_n "(cached) " >&6
13164 else
13165
13166 prog="
13167 import sys
13168 try:
13169         import thread
13170 except ImportError:
13171         sys.exit(1)
13172 except:
13173         sys.exit(0)
13174 sys.exit(0)"
13175 if $PYTHON -c "$prog" 1>&5 2>&5
13176   then
13177     eval "py_cv_mod_$py_mod_var=yes"
13178   else
13179     eval "py_cv_mod_$py_mod_var=no"
13180   fi
13181
13182 fi
13183
13184 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13185 if test "x$py_val" != xno; then
13186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13188   else
13189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191   enable_thread=check_for_py3_module
13192 fi
13193
13194 if test "x$enable_thread" = xcheck_for_py3_module; then
13195
13196 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13198 $as_echo_n "checking for python module _thread... " >&6; }
13199 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13200   $as_echo_n "(cached) " >&6
13201 else
13202
13203 prog="
13204 import sys
13205 try:
13206         import _thread
13207 except ImportError:
13208         sys.exit(1)
13209 except:
13210         sys.exit(0)
13211 sys.exit(0)"
13212 if $PYTHON -c "$prog" 1>&5 2>&5
13213   then
13214     eval "py_cv_mod_$py_mod_var=yes"
13215   else
13216     eval "py_cv_mod_$py_mod_var=no"
13217   fi
13218
13219 fi
13220
13221 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13222 if test "x$py_val" != xno; then
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13224 $as_echo "yes" >&6; }
13225   enable_thread=yes
13226 else
13227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13229   enable_thread=no
13230 fi
13231
13232 fi
13233
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13235 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13236 if test "x$enable_thread" != xno; then
13237   extra_mods=gthread
13238   THREADING_CFLAGS=
13239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13240 $as_echo "yes" >&6; }
13241 else
13242   extra_mods=
13243   THREADING_CFLAGS="-DDISABLE_THREADING"
13244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13245 $as_echo "no" >&6; }
13246 fi
13247
13248 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13249
13250 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13251
13252 # Check whether --enable-glibtest was given.
13253 if test "${enable_glibtest+set}" = set; then :
13254   enableval=$enable_glibtest;
13255 else
13256   enable_glibtest=yes
13257 fi
13258
13259
13260   pkg_config_args=glib-2.0
13261   for module in . gobject $extra_mods
13262   do
13263       case "$module" in
13264          gmodule)
13265              pkg_config_args="$pkg_config_args gmodule-2.0"
13266          ;;
13267          gmodule-no-export)
13268              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13269          ;;
13270          gobject)
13271              pkg_config_args="$pkg_config_args gobject-2.0"
13272          ;;
13273          gthread)
13274              pkg_config_args="$pkg_config_args gthread-2.0"
13275          ;;
13276          gio*)
13277              pkg_config_args="$pkg_config_args $module-2.0"
13278          ;;
13279       esac
13280   done
13281
13282
13283
13284
13285
13286
13287
13288
13289 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13290         if test -n "$ac_tool_prefix"; then
13291   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13292 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13294 $as_echo_n "checking for $ac_word... " >&6; }
13295 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13296   $as_echo_n "(cached) " >&6
13297 else
13298   case $PKG_CONFIG in
13299   [\\/]* | ?:[\\/]*)
13300   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13301   ;;
13302   *)
13303   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13304 for as_dir in $PATH
13305 do
13306   IFS=$as_save_IFS
13307   test -z "$as_dir" && as_dir=.
13308     for ac_exec_ext in '' $ac_executable_extensions; do
13309   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13310     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13311     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13312     break 2
13313   fi
13314 done
13315   done
13316 IFS=$as_save_IFS
13317
13318   ;;
13319 esac
13320 fi
13321 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13322 if test -n "$PKG_CONFIG"; then
13323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13324 $as_echo "$PKG_CONFIG" >&6; }
13325 else
13326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13327 $as_echo "no" >&6; }
13328 fi
13329
13330
13331 fi
13332 if test -z "$ac_cv_path_PKG_CONFIG"; then
13333   ac_pt_PKG_CONFIG=$PKG_CONFIG
13334   # Extract the first word of "pkg-config", so it can be a program name with args.
13335 set dummy pkg-config; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341   case $ac_pt_PKG_CONFIG in
13342   [\\/]* | ?:[\\/]*)
13343   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13344   ;;
13345   *)
13346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13348 do
13349   IFS=$as_save_IFS
13350   test -z "$as_dir" && as_dir=.
13351     for ac_exec_ext in '' $ac_executable_extensions; do
13352   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13353     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355     break 2
13356   fi
13357 done
13358   done
13359 IFS=$as_save_IFS
13360
13361   ;;
13362 esac
13363 fi
13364 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13365 if test -n "$ac_pt_PKG_CONFIG"; then
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13367 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13368 else
13369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372
13373   if test "x$ac_pt_PKG_CONFIG" = x; then
13374     PKG_CONFIG=""
13375   else
13376     case $cross_compiling:$ac_tool_warned in
13377 yes:)
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13380 ac_tool_warned=yes ;;
13381 esac
13382     PKG_CONFIG=$ac_pt_PKG_CONFIG
13383   fi
13384 else
13385   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13386 fi
13387
13388 fi
13389 if test -n "$PKG_CONFIG"; then
13390         _pkg_min_version=0.16
13391         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13392 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13393         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13394                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13395 $as_echo "yes" >&6; }
13396         else
13397                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13398 $as_echo "no" >&6; }
13399                 PKG_CONFIG=""
13400         fi
13401 fi
13402
13403   no_glib=""
13404
13405   if test "x$PKG_CONFIG" = x ; then
13406     no_glib=yes
13407     PKG_CONFIG=no
13408   fi
13409
13410   min_glib_version=2.38.0
13411   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13412 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13413
13414   if test x$PKG_CONFIG != xno ; then
13415     ## don't try to run the test against uninstalled libtool libs
13416     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13417           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13418           enable_glibtest=no
13419     fi
13420
13421     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13422           :
13423     else
13424           no_glib=yes
13425     fi
13426   fi
13427
13428   if test x"$no_glib" = x ; then
13429     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13430     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13431     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13432     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13433
13434     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13435     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13436     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13437            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13438     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13439            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13440     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13441            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13442     if test "x$enable_glibtest" = "xyes" ; then
13443       ac_save_CFLAGS="$CFLAGS"
13444       ac_save_LIBS="$LIBS"
13445       CFLAGS="$CFLAGS $GLIB_CFLAGS"
13446       LIBS="$GLIB_LIBS $LIBS"
13447       rm -f conf.glibtest
13448       if test "$cross_compiling" = yes; then :
13449   echo $ac_n "cross compiling; assumed OK... $ac_c"
13450 else
13451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13452 /* end confdefs.h.  */
13453
13454 #include <glib.h>
13455 #include <stdio.h>
13456 #include <stdlib.h>
13457
13458 int
13459 main ()
13460 {
13461   unsigned int major, minor, micro;
13462
13463   fclose (fopen ("conf.glibtest", "w"));
13464
13465   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
13466      printf("%s, bad version string\n", "$min_glib_version");
13467      exit(1);
13468    }
13469
13470   if ((glib_major_version != $glib_config_major_version) ||
13471       (glib_minor_version != $glib_config_minor_version) ||
13472       (glib_micro_version != $glib_config_micro_version))
13473     {
13474       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13475              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13476              glib_major_version, glib_minor_version, glib_micro_version);
13477       printf ("*** was found! If pkg-config was correct, then it is best\n");
13478       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13479       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13480       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13481       printf("*** required on your system.\n");
13482       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13483       printf("*** to point to the correct configuration files\n");
13484     }
13485   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13486            (glib_minor_version != GLIB_MINOR_VERSION) ||
13487            (glib_micro_version != GLIB_MICRO_VERSION))
13488     {
13489       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13490              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13491       printf("*** library (version %d.%d.%d)\n",
13492              glib_major_version, glib_minor_version, glib_micro_version);
13493     }
13494   else
13495     {
13496       if ((glib_major_version > major) ||
13497         ((glib_major_version == major) && (glib_minor_version > minor)) ||
13498         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13499       {
13500         return 0;
13501        }
13502      else
13503       {
13504         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13505                glib_major_version, glib_minor_version, glib_micro_version);
13506         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13507                major, minor, micro);
13508         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13509         printf("***\n");
13510         printf("*** If you have already installed a sufficiently new version, this error\n");
13511         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13512         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13513         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13514         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13515         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13516         printf("*** so that the correct libraries are found at run-time))\n");
13517       }
13518     }
13519   return 1;
13520 }
13521
13522 _ACEOF
13523 if ac_fn_c_try_run "$LINENO"; then :
13524
13525 else
13526   no_glib=yes
13527 fi
13528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13529   conftest.$ac_objext conftest.beam conftest.$ac_ext
13530 fi
13531
13532        CFLAGS="$ac_save_CFLAGS"
13533        LIBS="$ac_save_LIBS"
13534      fi
13535   fi
13536   if test "x$no_glib" = x ; then
13537      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13538 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13539      :
13540   else
13541      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13542 $as_echo "no" >&6; }
13543      if test "$PKG_CONFIG" = "no" ; then
13544        echo "*** A new enough version of pkg-config was not found."
13545        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13546      else
13547        if test -f conf.glibtest ; then
13548         :
13549        else
13550           echo "*** Could not run GLIB test program, checking why..."
13551           ac_save_CFLAGS="$CFLAGS"
13552           ac_save_LIBS="$LIBS"
13553           CFLAGS="$CFLAGS $GLIB_CFLAGS"
13554           LIBS="$LIBS $GLIB_LIBS"
13555           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556 /* end confdefs.h.  */
13557
13558 #include <glib.h>
13559 #include <stdio.h>
13560
13561 int
13562 main ()
13563 {
13564  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13565   ;
13566   return 0;
13567 }
13568 _ACEOF
13569 if ac_fn_c_try_link "$LINENO"; then :
13570    echo "*** The test program compiled, but did not run. This usually means"
13571           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13572           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13573           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13574           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13575           echo "*** is required on your system"
13576           echo "***"
13577           echo "*** If you have an old version installed, it is best to remove it, although"
13578           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13579 else
13580    echo "*** The test program failed to compile or link. See the file config.log for the"
13581           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13582 fi
13583 rm -f core conftest.err conftest.$ac_objext \
13584     conftest$ac_exeext conftest.$ac_ext
13585           CFLAGS="$ac_save_CFLAGS"
13586           LIBS="$ac_save_LIBS"
13587        fi
13588      fi
13589      GLIB_CFLAGS=""
13590      GLIB_LIBS=""
13591      GLIB_GENMARSHAL=""
13592      GOBJECT_QUERY=""
13593      GLIB_MKENUMS=""
13594      GLIB_COMPILE_RESOURCES=""
13595      as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13596   fi
13597
13598
13599
13600
13601
13602
13603   rm -f conf.glibtest
13604
13605 if test -n "$export_dynamic"; then
13606   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13607 fi
13608 PYTHON_BASENAME=`basename $PYTHON`
13609
13610
13611
13612   EXP_VAR=DATADIR
13613   FROM_VAR=$datadir
13614
13615     prefix_save=$prefix
13616   exec_prefix_save=$exec_prefix
13617
13618     if test "x$prefix" = "xNONE"; then
13619     prefix=$ac_default_prefix
13620   fi
13621     if test "x$exec_prefix" = "xNONE"; then
13622     exec_prefix=$prefix
13623   fi
13624
13625   full_var="$FROM_VAR"
13626     while true; do
13627     new_full_var="`eval echo $full_var`"
13628     if test "x$new_full_var"="x$full_var"; then break; fi
13629     full_var=$new_full_var
13630   done
13631
13632     full_var=$new_full_var
13633   DATADIR="$full_var"
13634
13635
13636     prefix=$prefix_save
13637   exec_prefix=$exec_prefix_save
13638
13639
13640
13641 pkg_failed=no
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13643 $as_echo_n "checking for FFI... " >&6; }
13644
13645 if test -n "$FFI_CFLAGS"; then
13646     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13647  elif test -n "$PKG_CONFIG"; then
13648     if test -n "$PKG_CONFIG" && \
13649     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13650   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13651   ac_status=$?
13652   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13653   test $ac_status = 0; }; then
13654   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13655                       test "x$?" != "x0" && pkg_failed=yes
13656 else
13657   pkg_failed=yes
13658 fi
13659  else
13660     pkg_failed=untried
13661 fi
13662 if test -n "$FFI_LIBS"; then
13663     pkg_cv_FFI_LIBS="$FFI_LIBS"
13664  elif test -n "$PKG_CONFIG"; then
13665     if test -n "$PKG_CONFIG" && \
13666     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13667   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13668   ac_status=$?
13669   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13670   test $ac_status = 0; }; then
13671   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13672                       test "x$?" != "x0" && pkg_failed=yes
13673 else
13674   pkg_failed=yes
13675 fi
13676  else
13677     pkg_failed=untried
13678 fi
13679
13680
13681
13682 if test $pkg_failed = yes; then
13683         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13684 $as_echo "no" >&6; }
13685
13686 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13687         _pkg_short_errors_supported=yes
13688 else
13689         _pkg_short_errors_supported=no
13690 fi
13691         if test $_pkg_short_errors_supported = yes; then
13692                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13693         else
13694                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13695         fi
13696         # Put the nasty error message in config.log where it belongs
13697         echo "$FFI_PKG_ERRORS" >&5
13698
13699         as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
13700
13701 $FFI_PKG_ERRORS
13702
13703 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13704 installed software in a non-standard prefix.
13705
13706 Alternatively, you may set the environment variables FFI_CFLAGS
13707 and FFI_LIBS to avoid the need to call pkg-config.
13708 See the pkg-config man page for more details." "$LINENO" 5
13709 elif test $pkg_failed = untried; then
13710         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13711 $as_echo "no" >&6; }
13712         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13714 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13715 is in your PATH or set the PKG_CONFIG environment variable to the full
13716 path to pkg-config.
13717
13718 Alternatively, you may set the environment variables FFI_CFLAGS
13719 and FFI_LIBS to avoid the need to call pkg-config.
13720 See the pkg-config man page for more details.
13721
13722 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13723 See \`config.log' for more details" "$LINENO" 5; }
13724 else
13725         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13726         FFI_LIBS=$pkg_cv_FFI_LIBS
13727         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13728 $as_echo "yes" >&6; }
13729
13730 fi
13731 LIBFFI_PC=libffi
13732
13733
13734
13735
13736
13737
13738 pkg_failed=no
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13740 $as_echo_n "checking for GIO... " >&6; }
13741
13742 if test -n "$GIO_CFLAGS"; then
13743     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13744  elif test -n "$PKG_CONFIG"; then
13745     if test -n "$PKG_CONFIG" && \
13746     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13747   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13748   ac_status=$?
13749   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750   test $ac_status = 0; }; then
13751   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
13752                       test "x$?" != "x0" && pkg_failed=yes
13753 else
13754   pkg_failed=yes
13755 fi
13756  else
13757     pkg_failed=untried
13758 fi
13759 if test -n "$GIO_LIBS"; then
13760     pkg_cv_GIO_LIBS="$GIO_LIBS"
13761  elif test -n "$PKG_CONFIG"; then
13762     if test -n "$PKG_CONFIG" && \
13763     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13764   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13765   ac_status=$?
13766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13767   test $ac_status = 0; }; then
13768   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
13769                       test "x$?" != "x0" && pkg_failed=yes
13770 else
13771   pkg_failed=yes
13772 fi
13773  else
13774     pkg_failed=untried
13775 fi
13776
13777
13778
13779 if test $pkg_failed = yes; then
13780         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13781 $as_echo "no" >&6; }
13782
13783 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13784         _pkg_short_errors_supported=yes
13785 else
13786         _pkg_short_errors_supported=no
13787 fi
13788         if test $_pkg_short_errors_supported = yes; then
13789                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13790         else
13791                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13792         fi
13793         # Put the nasty error message in config.log where it belongs
13794         echo "$GIO_PKG_ERRORS" >&5
13795
13796         as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
13797
13798 $GIO_PKG_ERRORS
13799
13800 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13801 installed software in a non-standard prefix.
13802
13803 Alternatively, you may set the environment variables GIO_CFLAGS
13804 and GIO_LIBS to avoid the need to call pkg-config.
13805 See the pkg-config man page for more details." "$LINENO" 5
13806 elif test $pkg_failed = untried; then
13807         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13808 $as_echo "no" >&6; }
13809         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13811 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13812 is in your PATH or set the PKG_CONFIG environment variable to the full
13813 path to pkg-config.
13814
13815 Alternatively, you may set the environment variables GIO_CFLAGS
13816 and GIO_LIBS to avoid the need to call pkg-config.
13817 See the pkg-config man page for more details.
13818
13819 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13820 See \`config.log' for more details" "$LINENO" 5; }
13821 else
13822         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13823         GIO_LIBS=$pkg_cv_GIO_LIBS
13824         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13825 $as_echo "yes" >&6; }
13826
13827 fi
13828
13829 # Check whether --enable-cairo was given.
13830 if test "${enable_cairo+set}" = set; then :
13831   enableval=$enable_cairo; enable_cairo=$enableval
13832 else
13833   enable_cairo=yes
13834 fi
13835
13836
13837
13838 pkg_failed=no
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13840 $as_echo_n "checking for GI... " >&6; }
13841
13842 if test -n "$GI_CFLAGS"; then
13843     pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13844  elif test -n "$PKG_CONFIG"; then
13845     if test -n "$PKG_CONFIG" && \
13846     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13847     gobject-introspection-1.0 >= 1.39.0
13848 \""; } >&5
13849   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13850     gobject-introspection-1.0 >= 1.39.0
13851 ") 2>&5
13852   ac_status=$?
13853   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13854   test $ac_status = 0; }; then
13855   pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
13856     gobject-introspection-1.0 >= 1.39.0
13857 " 2>/dev/null`
13858                       test "x$?" != "x0" && pkg_failed=yes
13859 else
13860   pkg_failed=yes
13861 fi
13862  else
13863     pkg_failed=untried
13864 fi
13865 if test -n "$GI_LIBS"; then
13866     pkg_cv_GI_LIBS="$GI_LIBS"
13867  elif test -n "$PKG_CONFIG"; then
13868     if test -n "$PKG_CONFIG" && \
13869     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13870     gobject-introspection-1.0 >= 1.39.0
13871 \""; } >&5
13872   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13873     gobject-introspection-1.0 >= 1.39.0
13874 ") 2>&5
13875   ac_status=$?
13876   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13877   test $ac_status = 0; }; then
13878   pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
13879     gobject-introspection-1.0 >= 1.39.0
13880 " 2>/dev/null`
13881                       test "x$?" != "x0" && pkg_failed=yes
13882 else
13883   pkg_failed=yes
13884 fi
13885  else
13886     pkg_failed=untried
13887 fi
13888
13889
13890
13891 if test $pkg_failed = yes; then
13892         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13893 $as_echo "no" >&6; }
13894
13895 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13896         _pkg_short_errors_supported=yes
13897 else
13898         _pkg_short_errors_supported=no
13899 fi
13900         if test $_pkg_short_errors_supported = yes; then
13901                 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13902     gobject-introspection-1.0 >= 1.39.0
13903 " 2>&1`
13904         else
13905                 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13906     gobject-introspection-1.0 >= 1.39.0
13907 " 2>&1`
13908         fi
13909         # Put the nasty error message in config.log where it belongs
13910         echo "$GI_PKG_ERRORS" >&5
13911
13912         as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
13913     gobject-introspection-1.0 >= 1.39.0
13914 ) were not met:
13915
13916 $GI_PKG_ERRORS
13917
13918 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13919 installed software in a non-standard prefix.
13920
13921 Alternatively, you may set the environment variables GI_CFLAGS
13922 and GI_LIBS to avoid the need to call pkg-config.
13923 See the pkg-config man page for more details." "$LINENO" 5
13924 elif test $pkg_failed = untried; then
13925         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13926 $as_echo "no" >&6; }
13927         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13929 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13930 is in your PATH or set the PKG_CONFIG environment variable to the full
13931 path to pkg-config.
13932
13933 Alternatively, you may set the environment variables GI_CFLAGS
13934 and GI_LIBS to avoid the need to call pkg-config.
13935 See the pkg-config man page for more details.
13936
13937 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13938 See \`config.log' for more details" "$LINENO" 5; }
13939 else
13940         GI_CFLAGS=$pkg_cv_GI_CFLAGS
13941         GI_LIBS=$pkg_cv_GI_LIBS
13942         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13943 $as_echo "yes" >&6; }
13944
13945 fi
13946
13947 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13948
13949
13950 if test "$enable_cairo" != no; then
13951
13952 pkg_failed=no
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13954 $as_echo_n "checking for CAIRO... " >&6; }
13955
13956 if test -n "$CAIRO_CFLAGS"; then
13957     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13958  elif test -n "$PKG_CONFIG"; then
13959     if test -n "$PKG_CONFIG" && \
13960     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13961   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13962   ac_status=$?
13963   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964   test $ac_status = 0; }; then
13965   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13966                       test "x$?" != "x0" && pkg_failed=yes
13967 else
13968   pkg_failed=yes
13969 fi
13970  else
13971     pkg_failed=untried
13972 fi
13973 if test -n "$CAIRO_LIBS"; then
13974     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13975  elif test -n "$PKG_CONFIG"; then
13976     if test -n "$PKG_CONFIG" && \
13977     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13978   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13979   ac_status=$?
13980   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13981   test $ac_status = 0; }; then
13982   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13983                       test "x$?" != "x0" && pkg_failed=yes
13984 else
13985   pkg_failed=yes
13986 fi
13987  else
13988     pkg_failed=untried
13989 fi
13990
13991
13992
13993 if test $pkg_failed = yes; then
13994         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13995 $as_echo "no" >&6; }
13996
13997 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13998         _pkg_short_errors_supported=yes
13999 else
14000         _pkg_short_errors_supported=no
14001 fi
14002         if test $_pkg_short_errors_supported = yes; then
14003                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14004         else
14005                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
14006         fi
14007         # Put the nasty error message in config.log where it belongs
14008         echo "$CAIRO_PKG_ERRORS" >&5
14009
14010         as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
14011
14012 $CAIRO_PKG_ERRORS
14013
14014 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14015 installed software in a non-standard prefix.
14016
14017 Alternatively, you may set the environment variables CAIRO_CFLAGS
14018 and CAIRO_LIBS to avoid the need to call pkg-config.
14019 See the pkg-config man page for more details." "$LINENO" 5
14020 elif test $pkg_failed = untried; then
14021         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14025 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14026 is in your PATH or set the PKG_CONFIG environment variable to the full
14027 path to pkg-config.
14028
14029 Alternatively, you may set the environment variables CAIRO_CFLAGS
14030 and CAIRO_LIBS to avoid the need to call pkg-config.
14031 See the pkg-config man page for more details.
14032
14033 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14034 See \`config.log' for more details" "$LINENO" 5; }
14035 else
14036         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
14037         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
14038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14039 $as_echo "yes" >&6; }
14040
14041 fi
14042
14043     if test $build_py3k = true; then
14044
14045 pkg_failed=no
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14047 $as_echo_n "checking for PYCAIRO... " >&6; }
14048
14049 if test -n "$PYCAIRO_CFLAGS"; then
14050     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14051  elif test -n "$PKG_CONFIG"; then
14052     if test -n "$PKG_CONFIG" && \
14053     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14054         \""; } >&5
14055   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14056         ") 2>&5
14057   ac_status=$?
14058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14059   test $ac_status = 0; }; then
14060   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14061         " 2>/dev/null`
14062                       test "x$?" != "x0" && pkg_failed=yes
14063 else
14064   pkg_failed=yes
14065 fi
14066  else
14067     pkg_failed=untried
14068 fi
14069 if test -n "$PYCAIRO_LIBS"; then
14070     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14071  elif test -n "$PKG_CONFIG"; then
14072     if test -n "$PKG_CONFIG" && \
14073     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14074         \""; } >&5
14075   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14076         ") 2>&5
14077   ac_status=$?
14078   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079   test $ac_status = 0; }; then
14080   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14081         " 2>/dev/null`
14082                       test "x$?" != "x0" && pkg_failed=yes
14083 else
14084   pkg_failed=yes
14085 fi
14086  else
14087     pkg_failed=untried
14088 fi
14089
14090
14091
14092 if test $pkg_failed = yes; then
14093         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 $as_echo "no" >&6; }
14095
14096 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14097         _pkg_short_errors_supported=yes
14098 else
14099         _pkg_short_errors_supported=no
14100 fi
14101         if test $_pkg_short_errors_supported = yes; then
14102                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14103         " 2>&1`
14104         else
14105                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14106         " 2>&1`
14107         fi
14108         # Put the nasty error message in config.log where it belongs
14109         echo "$PYCAIRO_PKG_ERRORS" >&5
14110
14111         as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14112         ) were not met:
14113
14114 $PYCAIRO_PKG_ERRORS
14115
14116 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14117 installed software in a non-standard prefix.
14118
14119 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14120 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14121 See the pkg-config man page for more details." "$LINENO" 5
14122 elif test $pkg_failed = untried; then
14123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14125         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14127 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14128 is in your PATH or set the PKG_CONFIG environment variable to the full
14129 path to pkg-config.
14130
14131 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14132 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14133 See the pkg-config man page for more details.
14134
14135 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14136 See \`config.log' for more details" "$LINENO" 5; }
14137 else
14138         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14139         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14140         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; }
14142
14143 fi
14144     else
14145
14146 pkg_failed=no
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14148 $as_echo_n "checking for PYCAIRO... " >&6; }
14149
14150 if test -n "$PYCAIRO_CFLAGS"; then
14151     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14152  elif test -n "$PKG_CONFIG"; then
14153     if test -n "$PKG_CONFIG" && \
14154     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14155         \""; } >&5
14156   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14157         ") 2>&5
14158   ac_status=$?
14159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14160   test $ac_status = 0; }; then
14161   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14162         " 2>/dev/null`
14163                       test "x$?" != "x0" && pkg_failed=yes
14164 else
14165   pkg_failed=yes
14166 fi
14167  else
14168     pkg_failed=untried
14169 fi
14170 if test -n "$PYCAIRO_LIBS"; then
14171     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14172  elif test -n "$PKG_CONFIG"; then
14173     if test -n "$PKG_CONFIG" && \
14174     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14175         \""; } >&5
14176   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14177         ") 2>&5
14178   ac_status=$?
14179   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14180   test $ac_status = 0; }; then
14181   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14182         " 2>/dev/null`
14183                       test "x$?" != "x0" && pkg_failed=yes
14184 else
14185   pkg_failed=yes
14186 fi
14187  else
14188     pkg_failed=untried
14189 fi
14190
14191
14192
14193 if test $pkg_failed = yes; then
14194         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14195 $as_echo "no" >&6; }
14196
14197 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14198         _pkg_short_errors_supported=yes
14199 else
14200         _pkg_short_errors_supported=no
14201 fi
14202         if test $_pkg_short_errors_supported = yes; then
14203                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14204         " 2>&1`
14205         else
14206                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14207         " 2>&1`
14208         fi
14209         # Put the nasty error message in config.log where it belongs
14210         echo "$PYCAIRO_PKG_ERRORS" >&5
14211
14212         as_fn_error $? "Package requirements (pycairo >= 1.2.0
14213         ) were not met:
14214
14215 $PYCAIRO_PKG_ERRORS
14216
14217 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14218 installed software in a non-standard prefix.
14219
14220 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14221 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14222 See the pkg-config man page for more details." "$LINENO" 5
14223 elif test $pkg_failed = untried; then
14224         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14225 $as_echo "no" >&6; }
14226         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14228 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14229 is in your PATH or set the PKG_CONFIG environment variable to the full
14230 path to pkg-config.
14231
14232 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14233 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14234 See the pkg-config man page for more details.
14235
14236 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14237 See \`config.log' for more details" "$LINENO" 5; }
14238 else
14239         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14240         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14241         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14242 $as_echo "yes" >&6; }
14243
14244 fi
14245     fi
14246 fi
14247  if test "$enable_cairo" = "yes"; then
14248   ENABLE_CAIRO_TRUE=
14249   ENABLE_CAIRO_FALSE='#'
14250 else
14251   ENABLE_CAIRO_TRUE='#'
14252   ENABLE_CAIRO_FALSE=
14253 fi
14254
14255
14256
14257 # Check whether --with-common was given.
14258 if test "${with_common+set}" = set; then :
14259   withval=$with_common; with_common=$enableval
14260 else
14261   with_common=yes
14262 fi
14263
14264  if test "$with_common" = "yes"; then
14265   WITH_COMMON_TRUE=
14266   WITH_COMMON_FALSE='#'
14267 else
14268   WITH_COMMON_TRUE='#'
14269   WITH_COMMON_FALSE=
14270 fi
14271
14272
14273 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14274 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14275
14276
14277
14278
14279 # compiler warnings, errors, required cflags, and code coverage support
14280
14281
14282     # Check whether --enable-compile-warnings was given.
14283 if test "${enable_compile_warnings+set}" = set; then :
14284   enableval=$enable_compile_warnings;
14285 else
14286   enable_compile_warnings="maximum"
14287 fi
14288
14289
14290     if test "x$GCC" != xyes; then
14291         enable_compile_warnings=no
14292     fi
14293
14294     warning_flags=
14295     realsave_CFLAGS="$CFLAGS"
14296
14297             base_warn_flags=" \
14298         -Wall \
14299         -Wstrict-prototypes \
14300         -Wnested-externs \
14301     "
14302
14303                     base_error_flags=" \
14304         -Werror=missing-prototypes \
14305         -Werror=implicit-function-declaration \
14306         -Werror=pointer-arith \
14307         -Werror=init-self \
14308         -Werror=format-security \
14309         -Werror=format=2 \
14310         -Werror=missing-include-dirs \
14311     "
14312
14313                 additional_flags=""
14314
14315     case "$enable_compile_warnings" in
14316     no)
14317         warning_flags=
14318         ;;
14319     minimum)
14320         warning_flags="-Wall"
14321         ;;
14322     yes|maximum|error)
14323         warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14324         ;;
14325     *)
14326         as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14327         ;;
14328     esac
14329
14330     if test "$enable_compile_warnings" = "error" ; then
14331         warning_flags="$warning_flags -Werror"
14332     fi
14333
14334         for option in $warning_flags; do
14335         save_CFLAGS="$CFLAGS"
14336         CFLAGS="$CFLAGS $option"
14337         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14338 $as_echo_n "checking whether gcc understands $option... " >&6; }
14339         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14340 /* end confdefs.h.  */
14341
14342 int
14343 main ()
14344 {
14345
14346   ;
14347   return 0;
14348 }
14349 _ACEOF
14350 if ac_fn_c_try_compile "$LINENO"; then :
14351   has_option=yes
14352 else
14353   has_option=no
14354 fi
14355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14356         CFLAGS="$save_CFLAGS"
14357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14358 $as_echo "$has_option" >&6; }
14359         if test $has_option = yes; then
14360             tested_warning_flags="$tested_warning_flags $option"
14361         fi
14362         unset has_option
14363         unset save_CFLAGS
14364     done
14365     unset option
14366     CFLAGS="$realsave_CFLAGS"
14367     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14368 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14370 $as_echo "$tested_warning_flags" >&6; }
14371
14372     # Check whether --enable-iso-c was given.
14373 if test "${enable_iso_c+set}" = set; then :
14374   enableval=$enable_iso_c;
14375 else
14376   enable_iso_c=no
14377 fi
14378
14379
14380     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14381 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14382     complCFLAGS=
14383     if test "x$enable_iso_c" != "xno"; then
14384         if test "x$GCC" = "xyes"; then
14385         case " $CFLAGS " in
14386             *\ \        -ansi\ \        *) ;;
14387             *) complCFLAGS="$complCFLAGS -ansi" ;;
14388         esac
14389         case " $CFLAGS " in
14390             *\ \        -pedantic\ \    *) ;;
14391             *) complCFLAGS="$complCFLAGS -pedantic" ;;
14392         esac
14393         fi
14394     fi
14395     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14396 $as_echo "$complCFLAGS" >&6; }
14397
14398     WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14399
14400
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14402 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14404 $as_echo "yes" >&6; }
14405
14406                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14407 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14408         # Check whether --enable-code-coverage was given.
14409 if test "${enable_code_coverage+set}" = set; then :
14410   enableval=$enable_code_coverage;
14411 else
14412   enable_code_coverage=no
14413 fi
14414
14415          if test x$enable_code_coverage = xyes; then
14416   CODE_COVERAGE_ENABLED_TRUE=
14417   CODE_COVERAGE_ENABLED_FALSE='#'
14418 else
14419   CODE_COVERAGE_ENABLED_TRUE='#'
14420   CODE_COVERAGE_ENABLED_FALSE=
14421 fi
14422
14423         CODE_COVERAGE_ENABLED=$enable_code_coverage
14424
14425         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14426 $as_echo "$enable_code_coverage" >&6; }
14427
14428         if  test "$enable_code_coverage" = "yes" ; then :
14429
14430                                 if  test "$GCC" = "no" ; then :
14431
14432                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14433
14434 fi
14435
14436                 # List of supported lcov versions.
14437                 lcov_version_list="1.6 1.7 1.8 1.9 1.10"
14438
14439                 # Extract the first word of "lcov", so it can be a program name with args.
14440 set dummy lcov; ac_word=$2
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14442 $as_echo_n "checking for $ac_word... " >&6; }
14443 if ${ac_cv_prog_LCOV+:} false; then :
14444   $as_echo_n "(cached) " >&6
14445 else
14446   if test -n "$LCOV"; then
14447   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14448 else
14449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14450 for as_dir in $PATH
14451 do
14452   IFS=$as_save_IFS
14453   test -z "$as_dir" && as_dir=.
14454     for ac_exec_ext in '' $ac_executable_extensions; do
14455   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14456     ac_cv_prog_LCOV="lcov"
14457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14458     break 2
14459   fi
14460 done
14461   done
14462 IFS=$as_save_IFS
14463
14464 fi
14465 fi
14466 LCOV=$ac_cv_prog_LCOV
14467 if test -n "$LCOV"; then
14468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14469 $as_echo "$LCOV" >&6; }
14470 else
14471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14472 $as_echo "no" >&6; }
14473 fi
14474
14475
14476                 # Extract the first word of "genhtml", so it can be a program name with args.
14477 set dummy genhtml; ac_word=$2
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14479 $as_echo_n "checking for $ac_word... " >&6; }
14480 if ${ac_cv_prog_GENHTML+:} false; then :
14481   $as_echo_n "(cached) " >&6
14482 else
14483   if test -n "$GENHTML"; then
14484   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14485 else
14486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14487 for as_dir in $PATH
14488 do
14489   IFS=$as_save_IFS
14490   test -z "$as_dir" && as_dir=.
14491     for ac_exec_ext in '' $ac_executable_extensions; do
14492   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14493     ac_cv_prog_GENHTML="genhtml"
14494     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14495     break 2
14496   fi
14497 done
14498   done
14499 IFS=$as_save_IFS
14500
14501 fi
14502 fi
14503 GENHTML=$ac_cv_prog_GENHTML
14504 if test -n "$GENHTML"; then
14505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14506 $as_echo "$GENHTML" >&6; }
14507 else
14508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14509 $as_echo "no" >&6; }
14510 fi
14511
14512
14513
14514                 if  test "$LCOV" ; then :
14515
14516                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14517 $as_echo_n "checking for lcov version... " >&6; }
14518 if ${gnome_cv_lcov_version+:} false; then :
14519   $as_echo_n "(cached) " >&6
14520 else
14521
14522                                 gnome_cv_lcov_version=invalid
14523                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14524                                 for lcov_check_version in $lcov_version_list; do
14525                                         if test "$lcov_version" = "$lcov_check_version"; then
14526                                                 gnome_cv_lcov_version="$lcov_check_version (ok)"
14527                                         fi
14528                                 done
14529
14530 fi
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gnome_cv_lcov_version" >&5
14532 $as_echo "$gnome_cv_lcov_version" >&6; }
14533
14534 else
14535
14536                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14537                         as_fn_error $? "$lcov_msg" "$LINENO" 5
14538
14539 fi
14540
14541                 case $gnome_cv_lcov_version in
14542                         ""|invalid)
14543                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14544                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
14545                                 LCOV="exit 0;"
14546                         ;;
14547                 esac
14548
14549                 if  test -z "$GENHTML" ; then :
14550
14551                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14552
14553 fi
14554
14555                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14556                 CODE_COVERAGE_LDFLAGS="-lgcov"
14557
14558
14559
14560
14561 fi
14562
14563 GNOME_CODE_COVERAGE_RULES='
14564 # Code coverage
14565 #
14566 # Optional:
14567 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14568 #    (Default: $(top_builddir))
14569 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14570 #    by lcov for code coverage. (Default:
14571 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14572 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14573 #    reports to be created. (Default:
14574 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14575 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14576 #    (Default: empty)
14577 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14578 #    instance. (Default: empty)
14579 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14580 #
14581 # The generated report will be titled using the $(PACKAGE_NAME) and
14582 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14583 # use the git-version-gen script, available online.
14584
14585 # Optional variables
14586 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14587 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14588 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14589 CODE_COVERAGE_LCOV_OPTIONS ?=
14590 CODE_COVERAGE_GENHTML_OPTIONS ?=
14591 CODE_COVERAGE_IGNORE_PATTERN ?=
14592
14593 code_coverage_quiet = $(code_coverage_quiet_$(V))
14594 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14595 code_coverage_quiet_0 = --quiet
14596
14597 # Use recursive makes in order to ignore errors during check
14598 check-code-coverage:
14599 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14600         -$(MAKE) $(AM_MAKEFLAGS) -k check
14601         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14602 else
14603         @echo "Need to reconfigure with --enable-code-coverage"
14604 endif
14605
14606 # Capture code coverage data
14607 code-coverage-capture: code-coverage-capture-hook
14608 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14609         $(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)
14610         $(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)"
14611         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14612         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)
14613         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14614 else
14615         @echo "Need to reconfigure with --enable-code-coverage"
14616 endif
14617
14618 # Hook rule executed before code-coverage-capture, overridable by the user
14619 code-coverage-capture-hook:
14620
14621 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14622 clean: code-coverage-clean
14623 code-coverage-clean:
14624         -$(LCOV) --directory $(top_builddir) -z
14625         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14626         -find . -name "*.gcda" -o -name "*.gcov" -delete
14627 endif
14628
14629 GITIGNOREFILES ?=
14630 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14631
14632 DISTCHECK_CONFIGURE_FLAGS ?=
14633 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14634
14635 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14636 '
14637
14638
14639
14640
14641
14642 if test "x$GCC" = "xyes"; then
14643
14644 case " $CFLAGS " in
14645 *[\     \ ]-Wall[\      \ ]*)
14646   ;;
14647 *)
14648   save_CFLAGS="$CFLAGS"
14649   CFLAGS="$CFLAGS -Wall"
14650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14651 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14652   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h.  */
14654
14655 int
14656 main ()
14657 {
14658
14659   ;
14660   return 0;
14661 }
14662 _ACEOF
14663 if ac_fn_c_try_compile "$LINENO"; then :
14664   jh_has_option=yes
14665 else
14666   jh_has_option=no
14667 fi
14668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14670 $as_echo "$jh_has_option" >&6; }
14671   if test $jh_has_option = no; then
14672     CFLAGS="$save_CFLAGS"
14673   fi
14674   ;;
14675 esac
14676
14677 case " $CFLAGS " in
14678 *[\     \ ]-Werror=unused-variable[\    \ ]*)
14679   ;;
14680 *)
14681   save_CFLAGS="$CFLAGS"
14682   CFLAGS="$CFLAGS -Werror=unused-variable"
14683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14684 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h.  */
14687
14688 int
14689 main ()
14690 {
14691
14692   ;
14693   return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_c_try_compile "$LINENO"; then :
14697   jh_has_option=yes
14698 else
14699   jh_has_option=no
14700 fi
14701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14703 $as_echo "$jh_has_option" >&6; }
14704   if test $jh_has_option = no; then
14705     CFLAGS="$save_CFLAGS"
14706   fi
14707   ;;
14708 esac
14709
14710 case " $CFLAGS " in
14711 *[\     \ ]-fno-strict-aliasing[\       \ ]*)
14712   ;;
14713 *)
14714   save_CFLAGS="$CFLAGS"
14715   CFLAGS="$CFLAGS -fno-strict-aliasing"
14716   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14717 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14719 /* end confdefs.h.  */
14720
14721 int
14722 main ()
14723 {
14724
14725   ;
14726   return 0;
14727 }
14728 _ACEOF
14729 if ac_fn_c_try_compile "$LINENO"; then :
14730   jh_has_option=yes
14731 else
14732   jh_has_option=no
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14736 $as_echo "$jh_has_option" >&6; }
14737   if test $jh_has_option = no; then
14738     CFLAGS="$save_CFLAGS"
14739   fi
14740   ;;
14741 esac
14742
14743 case " $CFLAGS " in
14744 *[\     \ ]-Werror=declaration-after-statement[\        \ ]*)
14745   ;;
14746 *)
14747   save_CFLAGS="$CFLAGS"
14748   CFLAGS="$CFLAGS -Werror=declaration-after-statement"
14749   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
14750 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
14751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h.  */
14753
14754 int
14755 main ()
14756 {
14757
14758   ;
14759   return 0;
14760 }
14761 _ACEOF
14762 if ac_fn_c_try_compile "$LINENO"; then :
14763   jh_has_option=yes
14764 else
14765   jh_has_option=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14769 $as_echo "$jh_has_option" >&6; }
14770   if test $jh_has_option = no; then
14771     CFLAGS="$save_CFLAGS"
14772   fi
14773   ;;
14774 esac
14775
14776   case $host_os in
14777   solaris*)
14778     ;;
14779   *)
14780
14781 case " $CFLAGS " in
14782 *[\     \ ]-std=c90[\   \ ]*)
14783   ;;
14784 *)
14785   save_CFLAGS="$CFLAGS"
14786   CFLAGS="$CFLAGS -std=c90"
14787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c90" >&5
14788 $as_echo_n "checking whether $CC understands -std=c90... " >&6; }
14789   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14790 /* end confdefs.h.  */
14791
14792 int
14793 main ()
14794 {
14795
14796   ;
14797   return 0;
14798 }
14799 _ACEOF
14800 if ac_fn_c_try_compile "$LINENO"; then :
14801   jh_has_option=yes
14802 else
14803   jh_has_option=no
14804 fi
14805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14807 $as_echo "$jh_has_option" >&6; }
14808   if test $jh_has_option = no; then
14809     CFLAGS="$save_CFLAGS"
14810   fi
14811   ;;
14812 esac
14813     ;;
14814   esac
14815
14816 fi
14817
14818 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14819 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14820
14821 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/_gobject/Makefile examples/Makefile tests/Makefile pygtkcompat/Makefile PKG-INFO"
14822
14823 cat >confcache <<\_ACEOF
14824 # This file is a shell script that caches the results of configure
14825 # tests run on this system so they can be shared between configure
14826 # scripts and configure runs, see configure's option --config-cache.
14827 # It is not useful on other systems.  If it contains results you don't
14828 # want to keep, you may remove or edit it.
14829 #
14830 # config.status only pays attention to the cache file if you give it
14831 # the --recheck option to rerun configure.
14832 #
14833 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14834 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14835 # following values.
14836
14837 _ACEOF
14838
14839 # The following way of writing the cache mishandles newlines in values,
14840 # but we know of no workaround that is simple, portable, and efficient.
14841 # So, we kill variables containing newlines.
14842 # Ultrix sh set writes to stderr and can't be redirected directly,
14843 # and sets the high bit in the cache file unless we assign to the vars.
14844 (
14845   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14846     eval ac_val=\$$ac_var
14847     case $ac_val in #(
14848     *${as_nl}*)
14849       case $ac_var in #(
14850       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14852       esac
14853       case $ac_var in #(
14854       _ | IFS | as_nl) ;; #(
14855       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14856       *) { eval $ac_var=; unset $ac_var;} ;;
14857       esac ;;
14858     esac
14859   done
14860
14861   (set) 2>&1 |
14862     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14863     *${as_nl}ac_space=\ *)
14864       # `set' does not quote correctly, so add quotes: double-quote
14865       # substitution turns \\\\ into \\, and sed turns \\ into \.
14866       sed -n \
14867         "s/'/'\\\\''/g;
14868           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14869       ;; #(
14870     *)
14871       # `set' quotes correctly as required by POSIX, so do not add quotes.
14872       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14873       ;;
14874     esac |
14875     sort
14876 ) |
14877   sed '
14878      /^ac_cv_env_/b end
14879      t clear
14880      :clear
14881      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14882      t end
14883      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14884      :end' >>confcache
14885 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14886   if test -w "$cache_file"; then
14887     if test "x$cache_file" != "x/dev/null"; then
14888       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14889 $as_echo "$as_me: updating cache $cache_file" >&6;}
14890       if test ! -f "$cache_file" || test -h "$cache_file"; then
14891         cat confcache >"$cache_file"
14892       else
14893         case $cache_file in #(
14894         */* | ?:*)
14895           mv -f confcache "$cache_file"$$ &&
14896           mv -f "$cache_file"$$ "$cache_file" ;; #(
14897         *)
14898           mv -f confcache "$cache_file" ;;
14899         esac
14900       fi
14901     fi
14902   else
14903     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14904 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14905   fi
14906 fi
14907 rm -f confcache
14908
14909 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14910 # Let make expand exec_prefix.
14911 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14912
14913 DEFS=-DHAVE_CONFIG_H
14914
14915 ac_libobjs=
14916 ac_ltlibobjs=
14917 U=
14918 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14919   # 1. Remove the extension, and $U if already installed.
14920   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14921   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14922   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14923   #    will be set to the directory where LIBOBJS objects are built.
14924   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14925   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14926 done
14927 LIBOBJS=$ac_libobjs
14928
14929 LTLIBOBJS=$ac_ltlibobjs
14930
14931
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14933 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14934    if test -n "$am_sleep_pid"; then
14935      # Hide warnings about reused PIDs.
14936      wait $am_sleep_pid 2>/dev/null
14937    fi
14938    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14939 $as_echo "done" >&6; }
14940  if test -n "$EXEEXT"; then
14941   am__EXEEXT_TRUE=
14942   am__EXEEXT_FALSE='#'
14943 else
14944   am__EXEEXT_TRUE='#'
14945   am__EXEEXT_FALSE=
14946 fi
14947
14948 if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14949   as_fn_error $? "conditional \"PLATFORM_WIN32\" was never defined.
14950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14951 fi
14952 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14953   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14955 fi
14956 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14957   as_fn_error $? "conditional \"AMDEP\" was never defined.
14958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 fi
14960 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14961   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 fi
14964 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14965   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 fi
14968 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14969   as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 fi
14972 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
14973   as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
14974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14975 fi
14976 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14977   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14979 fi
14980
14981 : "${CONFIG_STATUS=./config.status}"
14982 ac_write_fail=0
14983 ac_clean_files_save=$ac_clean_files
14984 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14986 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14987 as_write_fail=0
14988 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14989 #! $SHELL
14990 # Generated by $as_me.
14991 # Run this file to recreate the current configuration.
14992 # Compiler output produced by configure, useful for debugging
14993 # configure, is in config.log if it exists.
14994
14995 debug=false
14996 ac_cs_recheck=false
14997 ac_cs_silent=false
14998
14999 SHELL=\${CONFIG_SHELL-$SHELL}
15000 export SHELL
15001 _ASEOF
15002 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15003 ## -------------------- ##
15004 ## M4sh Initialization. ##
15005 ## -------------------- ##
15006
15007 # Be more Bourne compatible
15008 DUALCASE=1; export DUALCASE # for MKS sh
15009 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15010   emulate sh
15011   NULLCMD=:
15012   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15013   # is contrary to our usage.  Disable this feature.
15014   alias -g '${1+"$@"}'='"$@"'
15015   setopt NO_GLOB_SUBST
15016 else
15017   case `(set -o) 2>/dev/null` in #(
15018   *posix*) :
15019     set -o posix ;; #(
15020   *) :
15021      ;;
15022 esac
15023 fi
15024
15025
15026 as_nl='
15027 '
15028 export as_nl
15029 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15030 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15031 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15032 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15033 # Prefer a ksh shell builtin over an external printf program on Solaris,
15034 # but without wasting forks for bash or zsh.
15035 if test -z "$BASH_VERSION$ZSH_VERSION" \
15036     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15037   as_echo='print -r --'
15038   as_echo_n='print -rn --'
15039 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15040   as_echo='printf %s\n'
15041   as_echo_n='printf %s'
15042 else
15043   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15044     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15045     as_echo_n='/usr/ucb/echo -n'
15046   else
15047     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15048     as_echo_n_body='eval
15049       arg=$1;
15050       case $arg in #(
15051       *"$as_nl"*)
15052         expr "X$arg" : "X\\(.*\\)$as_nl";
15053         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15054       esac;
15055       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15056     '
15057     export as_echo_n_body
15058     as_echo_n='sh -c $as_echo_n_body as_echo'
15059   fi
15060   export as_echo_body
15061   as_echo='sh -c $as_echo_body as_echo'
15062 fi
15063
15064 # The user is always right.
15065 if test "${PATH_SEPARATOR+set}" != set; then
15066   PATH_SEPARATOR=:
15067   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15068     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15069       PATH_SEPARATOR=';'
15070   }
15071 fi
15072
15073
15074 # IFS
15075 # We need space, tab and new line, in precisely that order.  Quoting is
15076 # there to prevent editors from complaining about space-tab.
15077 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15078 # splitting by setting IFS to empty value.)
15079 IFS=" ""        $as_nl"
15080
15081 # Find who we are.  Look in the path if we contain no directory separator.
15082 as_myself=
15083 case $0 in #((
15084   *[\\/]* ) as_myself=$0 ;;
15085   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15086 for as_dir in $PATH
15087 do
15088   IFS=$as_save_IFS
15089   test -z "$as_dir" && as_dir=.
15090     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15091   done
15092 IFS=$as_save_IFS
15093
15094      ;;
15095 esac
15096 # We did not find ourselves, most probably we were run as `sh COMMAND'
15097 # in which case we are not to be found in the path.
15098 if test "x$as_myself" = x; then
15099   as_myself=$0
15100 fi
15101 if test ! -f "$as_myself"; then
15102   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15103   exit 1
15104 fi
15105
15106 # Unset variables that we do not need and which cause bugs (e.g. in
15107 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15108 # suppresses any "Segmentation fault" message there.  '((' could
15109 # trigger a bug in pdksh 5.2.14.
15110 for as_var in BASH_ENV ENV MAIL MAILPATH
15111 do eval test x\${$as_var+set} = xset \
15112   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15113 done
15114 PS1='$ '
15115 PS2='> '
15116 PS4='+ '
15117
15118 # NLS nuisances.
15119 LC_ALL=C
15120 export LC_ALL
15121 LANGUAGE=C
15122 export LANGUAGE
15123
15124 # CDPATH.
15125 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15126
15127
15128 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15129 # ----------------------------------------
15130 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15131 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15132 # script with STATUS, using 1 if that was 0.
15133 as_fn_error ()
15134 {
15135   as_status=$1; test $as_status -eq 0 && as_status=1
15136   if test "$4"; then
15137     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15138     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15139   fi
15140   $as_echo "$as_me: error: $2" >&2
15141   as_fn_exit $as_status
15142 } # as_fn_error
15143
15144
15145 # as_fn_set_status STATUS
15146 # -----------------------
15147 # Set $? to STATUS, without forking.
15148 as_fn_set_status ()
15149 {
15150   return $1
15151 } # as_fn_set_status
15152
15153 # as_fn_exit STATUS
15154 # -----------------
15155 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15156 as_fn_exit ()
15157 {
15158   set +e
15159   as_fn_set_status $1
15160   exit $1
15161 } # as_fn_exit
15162
15163 # as_fn_unset VAR
15164 # ---------------
15165 # Portably unset VAR.
15166 as_fn_unset ()
15167 {
15168   { eval $1=; unset $1;}
15169 }
15170 as_unset=as_fn_unset
15171 # as_fn_append VAR VALUE
15172 # ----------------------
15173 # Append the text in VALUE to the end of the definition contained in VAR. Take
15174 # advantage of any shell optimizations that allow amortized linear growth over
15175 # repeated appends, instead of the typical quadratic growth present in naive
15176 # implementations.
15177 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15178   eval 'as_fn_append ()
15179   {
15180     eval $1+=\$2
15181   }'
15182 else
15183   as_fn_append ()
15184   {
15185     eval $1=\$$1\$2
15186   }
15187 fi # as_fn_append
15188
15189 # as_fn_arith ARG...
15190 # ------------------
15191 # Perform arithmetic evaluation on the ARGs, and store the result in the
15192 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15193 # must be portable across $(()) and expr.
15194 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15195   eval 'as_fn_arith ()
15196   {
15197     as_val=$(( $* ))
15198   }'
15199 else
15200   as_fn_arith ()
15201   {
15202     as_val=`expr "$@" || test $? -eq 1`
15203   }
15204 fi # as_fn_arith
15205
15206
15207 if expr a : '\(a\)' >/dev/null 2>&1 &&
15208    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15209   as_expr=expr
15210 else
15211   as_expr=false
15212 fi
15213
15214 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15215   as_basename=basename
15216 else
15217   as_basename=false
15218 fi
15219
15220 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15221   as_dirname=dirname
15222 else
15223   as_dirname=false
15224 fi
15225
15226 as_me=`$as_basename -- "$0" ||
15227 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15228          X"$0" : 'X\(//\)$' \| \
15229          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15230 $as_echo X/"$0" |
15231     sed '/^.*\/\([^/][^/]*\)\/*$/{
15232             s//\1/
15233             q
15234           }
15235           /^X\/\(\/\/\)$/{
15236             s//\1/
15237             q
15238           }
15239           /^X\/\(\/\).*/{
15240             s//\1/
15241             q
15242           }
15243           s/.*/./; q'`
15244
15245 # Avoid depending upon Character Ranges.
15246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15249 as_cr_digits='0123456789'
15250 as_cr_alnum=$as_cr_Letters$as_cr_digits
15251
15252 ECHO_C= ECHO_N= ECHO_T=
15253 case `echo -n x` in #(((((
15254 -n*)
15255   case `echo 'xy\c'` in
15256   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15257   xy)  ECHO_C='\c';;
15258   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15259        ECHO_T=' ';;
15260   esac;;
15261 *)
15262   ECHO_N='-n';;
15263 esac
15264
15265 rm -f conf$$ conf$$.exe conf$$.file
15266 if test -d conf$$.dir; then
15267   rm -f conf$$.dir/conf$$.file
15268 else
15269   rm -f conf$$.dir
15270   mkdir conf$$.dir 2>/dev/null
15271 fi
15272 if (echo >conf$$.file) 2>/dev/null; then
15273   if ln -s conf$$.file conf$$ 2>/dev/null; then
15274     as_ln_s='ln -s'
15275     # ... but there are two gotchas:
15276     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15277     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15278     # In both cases, we have to default to `cp -pR'.
15279     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15280       as_ln_s='cp -pR'
15281   elif ln conf$$.file conf$$ 2>/dev/null; then
15282     as_ln_s=ln
15283   else
15284     as_ln_s='cp -pR'
15285   fi
15286 else
15287   as_ln_s='cp -pR'
15288 fi
15289 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15290 rmdir conf$$.dir 2>/dev/null
15291
15292
15293 # as_fn_mkdir_p
15294 # -------------
15295 # Create "$as_dir" as a directory, including parents if necessary.
15296 as_fn_mkdir_p ()
15297 {
15298
15299   case $as_dir in #(
15300   -*) as_dir=./$as_dir;;
15301   esac
15302   test -d "$as_dir" || eval $as_mkdir_p || {
15303     as_dirs=
15304     while :; do
15305       case $as_dir in #(
15306       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15307       *) as_qdir=$as_dir;;
15308       esac
15309       as_dirs="'$as_qdir' $as_dirs"
15310       as_dir=`$as_dirname -- "$as_dir" ||
15311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15312          X"$as_dir" : 'X\(//\)[^/]' \| \
15313          X"$as_dir" : 'X\(//\)$' \| \
15314          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15315 $as_echo X"$as_dir" |
15316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15317             s//\1/
15318             q
15319           }
15320           /^X\(\/\/\)[^/].*/{
15321             s//\1/
15322             q
15323           }
15324           /^X\(\/\/\)$/{
15325             s//\1/
15326             q
15327           }
15328           /^X\(\/\).*/{
15329             s//\1/
15330             q
15331           }
15332           s/.*/./; q'`
15333       test -d "$as_dir" && break
15334     done
15335     test -z "$as_dirs" || eval "mkdir $as_dirs"
15336   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15337
15338
15339 } # as_fn_mkdir_p
15340 if mkdir -p . 2>/dev/null; then
15341   as_mkdir_p='mkdir -p "$as_dir"'
15342 else
15343   test -d ./-p && rmdir ./-p
15344   as_mkdir_p=false
15345 fi
15346
15347
15348 # as_fn_executable_p FILE
15349 # -----------------------
15350 # Test if FILE is an executable regular file.
15351 as_fn_executable_p ()
15352 {
15353   test -f "$1" && test -x "$1"
15354 } # as_fn_executable_p
15355 as_test_x='test -x'
15356 as_executable_p=as_fn_executable_p
15357
15358 # Sed expression to map a string onto a valid CPP name.
15359 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15360
15361 # Sed expression to map a string onto a valid variable name.
15362 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15363
15364
15365 exec 6>&1
15366 ## ----------------------------------- ##
15367 ## Main body of $CONFIG_STATUS script. ##
15368 ## ----------------------------------- ##
15369 _ASEOF
15370 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15371
15372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15373 # Save the log message, to keep $0 and so on meaningful, and to
15374 # report actual input values of CONFIG_FILES etc. instead of their
15375 # values after options handling.
15376 ac_log="
15377 This file was extended by pygobject $as_me 3.13.3, which was
15378 generated by GNU Autoconf 2.69.  Invocation command line was
15379
15380   CONFIG_FILES    = $CONFIG_FILES
15381   CONFIG_HEADERS  = $CONFIG_HEADERS
15382   CONFIG_LINKS    = $CONFIG_LINKS
15383   CONFIG_COMMANDS = $CONFIG_COMMANDS
15384   $ $0 $@
15385
15386 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15387 "
15388
15389 _ACEOF
15390
15391 case $ac_config_files in *"
15392 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15393 esac
15394
15395 case $ac_config_headers in *"
15396 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15397 esac
15398
15399
15400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15401 # Files that config.status was made for.
15402 config_files="$ac_config_files"
15403 config_headers="$ac_config_headers"
15404 config_commands="$ac_config_commands"
15405
15406 _ACEOF
15407
15408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15409 ac_cs_usage="\
15410 \`$as_me' instantiates files and other configuration actions
15411 from templates according to the current configuration.  Unless the files
15412 and actions are specified as TAGs, all are instantiated by default.
15413
15414 Usage: $0 [OPTION]... [TAG]...
15415
15416   -h, --help       print this help, then exit
15417   -V, --version    print version number and configuration settings, then exit
15418       --config     print configuration, then exit
15419   -q, --quiet, --silent
15420                    do not print progress messages
15421   -d, --debug      don't remove temporary files
15422       --recheck    update $as_me by reconfiguring in the same conditions
15423       --file=FILE[:TEMPLATE]
15424                    instantiate the configuration file FILE
15425       --header=FILE[:TEMPLATE]
15426                    instantiate the configuration header FILE
15427
15428 Configuration files:
15429 $config_files
15430
15431 Configuration headers:
15432 $config_headers
15433
15434 Configuration commands:
15435 $config_commands
15436
15437 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15438 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
15439
15440 _ACEOF
15441 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15442 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15443 ac_cs_version="\\
15444 pygobject config.status 3.13.3
15445 configured by $0, generated by GNU Autoconf 2.69,
15446   with options \\"\$ac_cs_config\\"
15447
15448 Copyright (C) 2012 Free Software Foundation, Inc.
15449 This config.status script is free software; the Free Software Foundation
15450 gives unlimited permission to copy, distribute and modify it."
15451
15452 ac_pwd='$ac_pwd'
15453 srcdir='$srcdir'
15454 INSTALL='$INSTALL'
15455 MKDIR_P='$MKDIR_P'
15456 AWK='$AWK'
15457 test -n "\$AWK" || AWK=awk
15458 _ACEOF
15459
15460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15461 # The default lists apply if the user does not specify any file.
15462 ac_need_defaults=:
15463 while test $# != 0
15464 do
15465   case $1 in
15466   --*=?*)
15467     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15468     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15469     ac_shift=:
15470     ;;
15471   --*=)
15472     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15473     ac_optarg=
15474     ac_shift=:
15475     ;;
15476   *)
15477     ac_option=$1
15478     ac_optarg=$2
15479     ac_shift=shift
15480     ;;
15481   esac
15482
15483   case $ac_option in
15484   # Handling of the options.
15485   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15486     ac_cs_recheck=: ;;
15487   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15488     $as_echo "$ac_cs_version"; exit ;;
15489   --config | --confi | --conf | --con | --co | --c )
15490     $as_echo "$ac_cs_config"; exit ;;
15491   --debug | --debu | --deb | --de | --d | -d )
15492     debug=: ;;
15493   --file | --fil | --fi | --f )
15494     $ac_shift
15495     case $ac_optarg in
15496     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15497     '') as_fn_error $? "missing file argument" ;;
15498     esac
15499     as_fn_append CONFIG_FILES " '$ac_optarg'"
15500     ac_need_defaults=false;;
15501   --header | --heade | --head | --hea )
15502     $ac_shift
15503     case $ac_optarg in
15504     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15505     esac
15506     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15507     ac_need_defaults=false;;
15508   --he | --h)
15509     # Conflict between --help and --header
15510     as_fn_error $? "ambiguous option: \`$1'
15511 Try \`$0 --help' for more information.";;
15512   --help | --hel | -h )
15513     $as_echo "$ac_cs_usage"; exit ;;
15514   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15515   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15516     ac_cs_silent=: ;;
15517
15518   # This is an error.
15519   -*) as_fn_error $? "unrecognized option: \`$1'
15520 Try \`$0 --help' for more information." ;;
15521
15522   *) as_fn_append ac_config_targets " $1"
15523      ac_need_defaults=false ;;
15524
15525   esac
15526   shift
15527 done
15528
15529 ac_configure_extra_args=
15530
15531 if $ac_cs_silent; then
15532   exec 6>/dev/null
15533   ac_configure_extra_args="$ac_configure_extra_args --silent"
15534 fi
15535
15536 _ACEOF
15537 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 if \$ac_cs_recheck; then
15539   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15540   shift
15541   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15542   CONFIG_SHELL='$SHELL'
15543   export CONFIG_SHELL
15544   exec "\$@"
15545 fi
15546
15547 _ACEOF
15548 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15549 exec 5>>config.log
15550 {
15551   echo
15552   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15553 ## Running $as_me. ##
15554 _ASBOX
15555   $as_echo "$ac_log"
15556 } >&5
15557
15558 _ACEOF
15559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15560 #
15561 # INIT-COMMANDS
15562 #
15563 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15564
15565
15566 # The HP-UX ksh and POSIX shell print the target directory to stdout
15567 # if CDPATH is set.
15568 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15569
15570 sed_quote_subst='$sed_quote_subst'
15571 double_quote_subst='$double_quote_subst'
15572 delay_variable_subst='$delay_variable_subst'
15573 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15574 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15575 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15576 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15577 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15578 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15579 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15580 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15581 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15582 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15583 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15584 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15585 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15586 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15587 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15588 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15589 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15590 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15591 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15592 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15593 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15594 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15595 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15596 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15597 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15598 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15599 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15600 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15601 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15602 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15603 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15604 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15605 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15606 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15607 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15608 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15609 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15610 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15611 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15612 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15613 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15614 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15615 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15616 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15617 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15618 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15619 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15620 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15621 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15622 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15623 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15624 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15625 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15626 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15627 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15628 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15629 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15630 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"`'
15631 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15632 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15633 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15634 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15635 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15636 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15637 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15638 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15639 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15640 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15641 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15642 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15643 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15644 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15645 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15646 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15647 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15648 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15649 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15650 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15651 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15652 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15653 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15654 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15655 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15656 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15657 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15658 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15659 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15660 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15661 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15662 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15663 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15664 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15665 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15666 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15667 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15668 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15669 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15670 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15671 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15672 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15673 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15674 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15675 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15676 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15677 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15678 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15679 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15680 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15681 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15682 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15683 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15684 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15685 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15686 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15687 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15688 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15689 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15690 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15691 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15692 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15693 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15694 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15695 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15696 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15697 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15698 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15699 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15700 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15701 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15702 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15703 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15704
15705 LTCC='$LTCC'
15706 LTCFLAGS='$LTCFLAGS'
15707 compiler='$compiler_DEFAULT'
15708
15709 # A function that is used when there is no print builtin or printf.
15710 func_fallback_echo ()
15711 {
15712   eval 'cat <<_LTECHO_EOF
15713 \$1
15714 _LTECHO_EOF'
15715 }
15716
15717 # Quote evaled strings.
15718 for var in AS \
15719 DLLTOOL \
15720 OBJDUMP \
15721 SHELL \
15722 ECHO \
15723 PATH_SEPARATOR \
15724 SED \
15725 GREP \
15726 EGREP \
15727 FGREP \
15728 LD \
15729 NM \
15730 LN_S \
15731 lt_SP2NL \
15732 lt_NL2SP \
15733 reload_flag \
15734 deplibs_check_method \
15735 file_magic_cmd \
15736 file_magic_glob \
15737 want_nocaseglob \
15738 sharedlib_from_linklib_cmd \
15739 AR \
15740 AR_FLAGS \
15741 archiver_list_spec \
15742 STRIP \
15743 RANLIB \
15744 CC \
15745 CFLAGS \
15746 compiler \
15747 lt_cv_sys_global_symbol_pipe \
15748 lt_cv_sys_global_symbol_to_cdecl \
15749 lt_cv_sys_global_symbol_to_c_name_address \
15750 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15751 nm_file_list_spec \
15752 lt_prog_compiler_no_builtin_flag \
15753 lt_prog_compiler_pic \
15754 lt_prog_compiler_wl \
15755 lt_prog_compiler_static \
15756 lt_cv_prog_compiler_c_o \
15757 need_locks \
15758 MANIFEST_TOOL \
15759 DSYMUTIL \
15760 NMEDIT \
15761 LIPO \
15762 OTOOL \
15763 OTOOL64 \
15764 shrext_cmds \
15765 export_dynamic_flag_spec \
15766 whole_archive_flag_spec \
15767 compiler_needs_object \
15768 with_gnu_ld \
15769 allow_undefined_flag \
15770 no_undefined_flag \
15771 hardcode_libdir_flag_spec \
15772 hardcode_libdir_separator \
15773 exclude_expsyms \
15774 include_expsyms \
15775 file_list_spec \
15776 variables_saved_for_relink \
15777 libname_spec \
15778 library_names_spec \
15779 soname_spec \
15780 install_override_mode \
15781 finish_eval \
15782 old_striplib \
15783 striplib; do
15784     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15785     *[\\\\\\\`\\"\\\$]*)
15786       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15787       ;;
15788     *)
15789       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15790       ;;
15791     esac
15792 done
15793
15794 # Double-quote double-evaled strings.
15795 for var in reload_cmds \
15796 old_postinstall_cmds \
15797 old_postuninstall_cmds \
15798 old_archive_cmds \
15799 extract_expsyms_cmds \
15800 old_archive_from_new_cmds \
15801 old_archive_from_expsyms_cmds \
15802 archive_cmds \
15803 archive_expsym_cmds \
15804 module_cmds \
15805 module_expsym_cmds \
15806 export_symbols_cmds \
15807 prelink_cmds \
15808 postlink_cmds \
15809 postinstall_cmds \
15810 postuninstall_cmds \
15811 finish_cmds \
15812 sys_lib_search_path_spec \
15813 sys_lib_dlsearch_path_spec; do
15814     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15815     *[\\\\\\\`\\"\\\$]*)
15816       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15817       ;;
15818     *)
15819       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15820       ;;
15821     esac
15822 done
15823
15824 ac_aux_dir='$ac_aux_dir'
15825 xsi_shell='$xsi_shell'
15826 lt_shell_append='$lt_shell_append'
15827
15828 # See if we are running on zsh, and set the options which allow our
15829 # commands through without removal of \ escapes INIT.
15830 if test -n "\${ZSH_VERSION+set}" ; then
15831    setopt NO_GLOB_SUBST
15832 fi
15833
15834
15835     PACKAGE='$PACKAGE'
15836     VERSION='$VERSION'
15837     TIMESTAMP='$TIMESTAMP'
15838     RM='$RM'
15839     ofile='$ofile'
15840
15841
15842
15843
15844 _ACEOF
15845
15846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15847
15848 # Handling of arguments.
15849 for ac_config_target in $ac_config_targets
15850 do
15851   case $ac_config_target in
15852     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15853     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15854     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15855     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15856     "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15857     "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15858     "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15859     "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15860     "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15861     "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15862     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15863     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15864     "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15865     "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15866
15867   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15868   esac
15869 done
15870
15871
15872 # If the user did not use the arguments to specify the items to instantiate,
15873 # then the envvar interface is used.  Set only those that are not.
15874 # We use the long form for the default assignment because of an extremely
15875 # bizarre bug on SunOS 4.1.3.
15876 if $ac_need_defaults; then
15877   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15878   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15879   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15880 fi
15881
15882 # Have a temporary directory for convenience.  Make it in the build tree
15883 # simply because there is no reason against having it here, and in addition,
15884 # creating and moving files from /tmp can sometimes cause problems.
15885 # Hook for its removal unless debugging.
15886 # Note that there is a small window in which the directory will not be cleaned:
15887 # after its creation but before its name has been assigned to `$tmp'.
15888 $debug ||
15889 {
15890   tmp= ac_tmp=
15891   trap 'exit_status=$?
15892   : "${ac_tmp:=$tmp}"
15893   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15894 ' 0
15895   trap 'as_fn_exit 1' 1 2 13 15
15896 }
15897 # Create a (secure) tmp directory for tmp files.
15898
15899 {
15900   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15901   test -d "$tmp"
15902 }  ||
15903 {
15904   tmp=./conf$$-$RANDOM
15905   (umask 077 && mkdir "$tmp")
15906 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15907 ac_tmp=$tmp
15908
15909 # Set up the scripts for CONFIG_FILES section.
15910 # No need to generate them if there are no CONFIG_FILES.
15911 # This happens for instance with `./config.status config.h'.
15912 if test -n "$CONFIG_FILES"; then
15913
15914
15915 ac_cr=`echo X | tr X '\015'`
15916 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15917 # But we know of no other shell where ac_cr would be empty at this
15918 # point, so we can use a bashism as a fallback.
15919 if test "x$ac_cr" = x; then
15920   eval ac_cr=\$\'\\r\'
15921 fi
15922 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15923 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15924   ac_cs_awk_cr='\\r'
15925 else
15926   ac_cs_awk_cr=$ac_cr
15927 fi
15928
15929 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15930 _ACEOF
15931
15932
15933 {
15934   echo "cat >conf$$subs.awk <<_ACEOF" &&
15935   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15936   echo "_ACEOF"
15937 } >conf$$subs.sh ||
15938   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15939 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15940 ac_delim='%!_!# '
15941 for ac_last_try in false false false false false :; do
15942   . ./conf$$subs.sh ||
15943     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15944
15945   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15946   if test $ac_delim_n = $ac_delim_num; then
15947     break
15948   elif $ac_last_try; then
15949     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15950   else
15951     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15952   fi
15953 done
15954 rm -f conf$$subs.sh
15955
15956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15957 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15958 _ACEOF
15959 sed -n '
15960 h
15961 s/^/S["/; s/!.*/"]=/
15962 p
15963 g
15964 s/^[^!]*!//
15965 :repl
15966 t repl
15967 s/'"$ac_delim"'$//
15968 t delim
15969 :nl
15970 h
15971 s/\(.\{148\}\)..*/\1/
15972 t more1
15973 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15974 p
15975 n
15976 b repl
15977 :more1
15978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15979 p
15980 g
15981 s/.\{148\}//
15982 t nl
15983 :delim
15984 h
15985 s/\(.\{148\}\)..*/\1/
15986 t more2
15987 s/["\\]/\\&/g; s/^/"/; s/$/"/
15988 p
15989 b
15990 :more2
15991 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15992 p
15993 g
15994 s/.\{148\}//
15995 t delim
15996 ' <conf$$subs.awk | sed '
15997 /^[^""]/{
15998   N
15999   s/\n//
16000 }
16001 ' >>$CONFIG_STATUS || ac_write_fail=1
16002 rm -f conf$$subs.awk
16003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 _ACAWK
16005 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16006   for (key in S) S_is_set[key] = 1
16007   FS = "\a"
16008
16009 }
16010 {
16011   line = $ 0
16012   nfields = split(line, field, "@")
16013   substed = 0
16014   len = length(field[1])
16015   for (i = 2; i < nfields; i++) {
16016     key = field[i]
16017     keylen = length(key)
16018     if (S_is_set[key]) {
16019       value = S[key]
16020       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16021       len += length(value) + length(field[++i])
16022       substed = 1
16023     } else
16024       len += 1 + keylen
16025   }
16026
16027   print line
16028 }
16029
16030 _ACAWK
16031 _ACEOF
16032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16033 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16034   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16035 else
16036   cat
16037 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16038   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16039 _ACEOF
16040
16041 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16042 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16043 # trailing colons and then remove the whole line if VPATH becomes empty
16044 # (actually we leave an empty line to preserve line numbers).
16045 if test "x$srcdir" = x.; then
16046   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
16047 h
16048 s///
16049 s/^/:/
16050 s/[      ]*$/:/
16051 s/:\$(srcdir):/:/g
16052 s/:\${srcdir}:/:/g
16053 s/:@srcdir@:/:/g
16054 s/^:*//
16055 s/:*$//
16056 x
16057 s/\(=[   ]*\).*/\1/
16058 G
16059 s/\n//
16060 s/^[^=]*=[       ]*$//
16061 }'
16062 fi
16063
16064 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16065 fi # test -n "$CONFIG_FILES"
16066
16067 # Set up the scripts for CONFIG_HEADERS section.
16068 # No need to generate them if there are no CONFIG_HEADERS.
16069 # This happens for instance with `./config.status Makefile'.
16070 if test -n "$CONFIG_HEADERS"; then
16071 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16072 BEGIN {
16073 _ACEOF
16074
16075 # Transform confdefs.h into an awk script `defines.awk', embedded as
16076 # here-document in config.status, that substitutes the proper values into
16077 # config.h.in to produce config.h.
16078
16079 # Create a delimiter string that does not exist in confdefs.h, to ease
16080 # handling of long lines.
16081 ac_delim='%!_!# '
16082 for ac_last_try in false false :; do
16083   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16084   if test -z "$ac_tt"; then
16085     break
16086   elif $ac_last_try; then
16087     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16088   else
16089     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16090   fi
16091 done
16092
16093 # For the awk script, D is an array of macro values keyed by name,
16094 # likewise P contains macro parameters if any.  Preserve backslash
16095 # newline sequences.
16096
16097 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16098 sed -n '
16099 s/.\{148\}/&'"$ac_delim"'/g
16100 t rset
16101 :rset
16102 s/^[     ]*#[    ]*define[       ][      ]*/ /
16103 t def
16104 d
16105 :def
16106 s/\\$//
16107 t bsnl
16108 s/["\\]/\\&/g
16109 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16110 D["\1"]=" \3"/p
16111 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16112 d
16113 :bsnl
16114 s/["\\]/\\&/g
16115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16116 D["\1"]=" \3\\\\\\n"\\/p
16117 t cont
16118 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16119 t cont
16120 d
16121 :cont
16122 n
16123 s/.\{148\}/&'"$ac_delim"'/g
16124 t clear
16125 :clear
16126 s/\\$//
16127 t bsnlc
16128 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16129 d
16130 :bsnlc
16131 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16132 b cont
16133 ' <confdefs.h | sed '
16134 s/'"$ac_delim"'/"\\\
16135 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16136
16137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16138   for (key in D) D_is_set[key] = 1
16139   FS = "\a"
16140 }
16141 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16142   line = \$ 0
16143   split(line, arg, " ")
16144   if (arg[1] == "#") {
16145     defundef = arg[2]
16146     mac1 = arg[3]
16147   } else {
16148     defundef = substr(arg[1], 2)
16149     mac1 = arg[2]
16150   }
16151   split(mac1, mac2, "(") #)
16152   macro = mac2[1]
16153   prefix = substr(line, 1, index(line, defundef) - 1)
16154   if (D_is_set[macro]) {
16155     # Preserve the white space surrounding the "#".
16156     print prefix "define", macro P[macro] D[macro]
16157     next
16158   } else {
16159     # Replace #undef with comments.  This is necessary, for example,
16160     # in the case of _POSIX_SOURCE, which is predefined and required
16161     # on some systems where configure will not decide to define it.
16162     if (defundef == "undef") {
16163       print "/*", prefix defundef, macro, "*/"
16164       next
16165     }
16166   }
16167 }
16168 { print }
16169 _ACAWK
16170 _ACEOF
16171 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16172   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16173 fi # test -n "$CONFIG_HEADERS"
16174
16175
16176 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16177 shift
16178 for ac_tag
16179 do
16180   case $ac_tag in
16181   :[FHLC]) ac_mode=$ac_tag; continue;;
16182   esac
16183   case $ac_mode$ac_tag in
16184   :[FHL]*:*);;
16185   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16186   :[FH]-) ac_tag=-:-;;
16187   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16188   esac
16189   ac_save_IFS=$IFS
16190   IFS=:
16191   set x $ac_tag
16192   IFS=$ac_save_IFS
16193   shift
16194   ac_file=$1
16195   shift
16196
16197   case $ac_mode in
16198   :L) ac_source=$1;;
16199   :[FH])
16200     ac_file_inputs=
16201     for ac_f
16202     do
16203       case $ac_f in
16204       -) ac_f="$ac_tmp/stdin";;
16205       *) # Look for the file first in the build tree, then in the source tree
16206          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16207          # because $ac_f cannot contain `:'.
16208          test -f "$ac_f" ||
16209            case $ac_f in
16210            [\\/$]*) false;;
16211            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16212            esac ||
16213            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16214       esac
16215       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16216       as_fn_append ac_file_inputs " '$ac_f'"
16217     done
16218
16219     # Let's still pretend it is `configure' which instantiates (i.e., don't
16220     # use $as_me), people would be surprised to read:
16221     #    /* config.h.  Generated by config.status.  */
16222     configure_input='Generated from '`
16223           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16224         `' by configure.'
16225     if test x"$ac_file" != x-; then
16226       configure_input="$ac_file.  $configure_input"
16227       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16228 $as_echo "$as_me: creating $ac_file" >&6;}
16229     fi
16230     # Neutralize special characters interpreted by sed in replacement strings.
16231     case $configure_input in #(
16232     *\&* | *\|* | *\\* )
16233        ac_sed_conf_input=`$as_echo "$configure_input" |
16234        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16235     *) ac_sed_conf_input=$configure_input;;
16236     esac
16237
16238     case $ac_tag in
16239     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16240       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16241     esac
16242     ;;
16243   esac
16244
16245   ac_dir=`$as_dirname -- "$ac_file" ||
16246 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16247          X"$ac_file" : 'X\(//\)[^/]' \| \
16248          X"$ac_file" : 'X\(//\)$' \| \
16249          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16250 $as_echo X"$ac_file" |
16251     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16252             s//\1/
16253             q
16254           }
16255           /^X\(\/\/\)[^/].*/{
16256             s//\1/
16257             q
16258           }
16259           /^X\(\/\/\)$/{
16260             s//\1/
16261             q
16262           }
16263           /^X\(\/\).*/{
16264             s//\1/
16265             q
16266           }
16267           s/.*/./; q'`
16268   as_dir="$ac_dir"; as_fn_mkdir_p
16269   ac_builddir=.
16270
16271 case "$ac_dir" in
16272 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16273 *)
16274   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16275   # A ".." for each directory in $ac_dir_suffix.
16276   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16277   case $ac_top_builddir_sub in
16278   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16279   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16280   esac ;;
16281 esac
16282 ac_abs_top_builddir=$ac_pwd
16283 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16284 # for backward compatibility:
16285 ac_top_builddir=$ac_top_build_prefix
16286
16287 case $srcdir in
16288   .)  # We are building in place.
16289     ac_srcdir=.
16290     ac_top_srcdir=$ac_top_builddir_sub
16291     ac_abs_top_srcdir=$ac_pwd ;;
16292   [\\/]* | ?:[\\/]* )  # Absolute name.
16293     ac_srcdir=$srcdir$ac_dir_suffix;
16294     ac_top_srcdir=$srcdir
16295     ac_abs_top_srcdir=$srcdir ;;
16296   *) # Relative name.
16297     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16298     ac_top_srcdir=$ac_top_build_prefix$srcdir
16299     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16300 esac
16301 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16302
16303
16304   case $ac_mode in
16305   :F)
16306   #
16307   # CONFIG_FILE
16308   #
16309
16310   case $INSTALL in
16311   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16312   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16313   esac
16314   ac_MKDIR_P=$MKDIR_P
16315   case $MKDIR_P in
16316   [\\/$]* | ?:[\\/]* ) ;;
16317   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16318   esac
16319 _ACEOF
16320
16321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16322 # If the template does not know about datarootdir, expand it.
16323 # FIXME: This hack should be removed a few years after 2.60.
16324 ac_datarootdir_hack=; ac_datarootdir_seen=
16325 ac_sed_dataroot='
16326 /datarootdir/ {
16327   p
16328   q
16329 }
16330 /@datadir@/p
16331 /@docdir@/p
16332 /@infodir@/p
16333 /@localedir@/p
16334 /@mandir@/p'
16335 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16336 *datarootdir*) ac_datarootdir_seen=yes;;
16337 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16338   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16339 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16340 _ACEOF
16341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16342   ac_datarootdir_hack='
16343   s&@datadir@&$datadir&g
16344   s&@docdir@&$docdir&g
16345   s&@infodir@&$infodir&g
16346   s&@localedir@&$localedir&g
16347   s&@mandir@&$mandir&g
16348   s&\\\${datarootdir}&$datarootdir&g' ;;
16349 esac
16350 _ACEOF
16351
16352 # Neutralize VPATH when `$srcdir' = `.'.
16353 # Shell code in configure.ac might set extrasub.
16354 # FIXME: do we really want to maintain this feature?
16355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16356 ac_sed_extra="$ac_vpsub
16357 $extrasub
16358 _ACEOF
16359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16360 :t
16361 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16362 s|@configure_input@|$ac_sed_conf_input|;t t
16363 s&@top_builddir@&$ac_top_builddir_sub&;t t
16364 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16365 s&@srcdir@&$ac_srcdir&;t t
16366 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16367 s&@top_srcdir@&$ac_top_srcdir&;t t
16368 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16369 s&@builddir@&$ac_builddir&;t t
16370 s&@abs_builddir@&$ac_abs_builddir&;t t
16371 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16372 s&@INSTALL@&$ac_INSTALL&;t t
16373 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16374 $ac_datarootdir_hack
16375 "
16376 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16377   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16378
16379 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16380   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16381   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16382       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16383   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16384 which seems to be undefined.  Please make sure it is defined" >&5
16385 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16386 which seems to be undefined.  Please make sure it is defined" >&2;}
16387
16388   rm -f "$ac_tmp/stdin"
16389   case $ac_file in
16390   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16391   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16392   esac \
16393   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16394  ;;
16395   :H)
16396   #
16397   # CONFIG_HEADER
16398   #
16399   if test x"$ac_file" != x-; then
16400     {
16401       $as_echo "/* $configure_input  */" \
16402       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16403     } >"$ac_tmp/config.h" \
16404       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16405     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16406       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16407 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16408     else
16409       rm -f "$ac_file"
16410       mv "$ac_tmp/config.h" "$ac_file" \
16411         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16412     fi
16413   else
16414     $as_echo "/* $configure_input  */" \
16415       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16416       || as_fn_error $? "could not create -" "$LINENO" 5
16417   fi
16418 # Compute "$ac_file"'s index in $config_headers.
16419 _am_arg="$ac_file"
16420 _am_stamp_count=1
16421 for _am_header in $config_headers :; do
16422   case $_am_header in
16423     $_am_arg | $_am_arg:* )
16424       break ;;
16425     * )
16426       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16427   esac
16428 done
16429 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16430 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431          X"$_am_arg" : 'X\(//\)[^/]' \| \
16432          X"$_am_arg" : 'X\(//\)$' \| \
16433          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16434 $as_echo X"$_am_arg" |
16435     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16436             s//\1/
16437             q
16438           }
16439           /^X\(\/\/\)[^/].*/{
16440             s//\1/
16441             q
16442           }
16443           /^X\(\/\/\)$/{
16444             s//\1/
16445             q
16446           }
16447           /^X\(\/\).*/{
16448             s//\1/
16449             q
16450           }
16451           s/.*/./; q'`/stamp-h$_am_stamp_count
16452  ;;
16453
16454   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16455 $as_echo "$as_me: executing $ac_file commands" >&6;}
16456  ;;
16457   esac
16458
16459
16460   case $ac_file$ac_mode in
16461     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16462   # Older Autoconf quotes --file arguments for eval, but not when files
16463   # are listed without --file.  Let's play safe and only enable the eval
16464   # if we detect the quoting.
16465   case $CONFIG_FILES in
16466   *\'*) eval set x "$CONFIG_FILES" ;;
16467   *)   set x $CONFIG_FILES ;;
16468   esac
16469   shift
16470   for mf
16471   do
16472     # Strip MF so we end up with the name of the file.
16473     mf=`echo "$mf" | sed -e 's/:.*$//'`
16474     # Check whether this is an Automake generated Makefile or not.
16475     # We used to match only the files named 'Makefile.in', but
16476     # some people rename them; so instead we look at the file content.
16477     # Grep'ing the first line is not enough: some people post-process
16478     # each Makefile.in and add a new line on top of each file to say so.
16479     # Grep'ing the whole file is not good either: AIX grep has a line
16480     # limit of 2048, but all sed's we know have understand at least 4000.
16481     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16482       dirpart=`$as_dirname -- "$mf" ||
16483 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16484          X"$mf" : 'X\(//\)[^/]' \| \
16485          X"$mf" : 'X\(//\)$' \| \
16486          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16487 $as_echo X"$mf" |
16488     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16489             s//\1/
16490             q
16491           }
16492           /^X\(\/\/\)[^/].*/{
16493             s//\1/
16494             q
16495           }
16496           /^X\(\/\/\)$/{
16497             s//\1/
16498             q
16499           }
16500           /^X\(\/\).*/{
16501             s//\1/
16502             q
16503           }
16504           s/.*/./; q'`
16505     else
16506       continue
16507     fi
16508     # Extract the definition of DEPDIR, am__include, and am__quote
16509     # from the Makefile without running 'make'.
16510     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16511     test -z "$DEPDIR" && continue
16512     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16513     test -z "$am__include" && continue
16514     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16515     # Find all dependency output files, they are included files with
16516     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16517     # simplest approach to changing $(DEPDIR) to its actual value in the
16518     # expansion.
16519     for file in `sed -n "
16520       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16521          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16522       # Make sure the directory exists.
16523       test -f "$dirpart/$file" && continue
16524       fdir=`$as_dirname -- "$file" ||
16525 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16526          X"$file" : 'X\(//\)[^/]' \| \
16527          X"$file" : 'X\(//\)$' \| \
16528          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16529 $as_echo X"$file" |
16530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16531             s//\1/
16532             q
16533           }
16534           /^X\(\/\/\)[^/].*/{
16535             s//\1/
16536             q
16537           }
16538           /^X\(\/\/\)$/{
16539             s//\1/
16540             q
16541           }
16542           /^X\(\/\).*/{
16543             s//\1/
16544             q
16545           }
16546           s/.*/./; q'`
16547       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16548       # echo "creating $dirpart/$file"
16549       echo '# dummy' > "$dirpart/$file"
16550     done
16551   done
16552 }
16553  ;;
16554     "libtool":C)
16555
16556     # See if we are running on zsh, and set the options which allow our
16557     # commands through without removal of \ escapes.
16558     if test -n "${ZSH_VERSION+set}" ; then
16559       setopt NO_GLOB_SUBST
16560     fi
16561
16562     cfgfile="${ofile}T"
16563     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16564     $RM "$cfgfile"
16565
16566     cat <<_LT_EOF >> "$cfgfile"
16567 #! $SHELL
16568
16569 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16570 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16571 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16572 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16573 #
16574 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16575 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16576 #                 Foundation, Inc.
16577 #   Written by Gordon Matzigkeit, 1996
16578 #
16579 #   This file is part of GNU Libtool.
16580 #
16581 # GNU Libtool is free software; you can redistribute it and/or
16582 # modify it under the terms of the GNU General Public License as
16583 # published by the Free Software Foundation; either version 2 of
16584 # the License, or (at your option) any later version.
16585 #
16586 # As a special exception to the GNU General Public License,
16587 # if you distribute this file as part of a program or library that
16588 # is built using GNU Libtool, you may include this file under the
16589 # same distribution terms that you use for the rest of that program.
16590 #
16591 # GNU Libtool is distributed in the hope that it will be useful,
16592 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16593 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16594 # GNU General Public License for more details.
16595 #
16596 # You should have received a copy of the GNU General Public License
16597 # along with GNU Libtool; see the file COPYING.  If not, a copy
16598 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16599 # obtained by writing to the Free Software Foundation, Inc.,
16600 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16601
16602
16603 # The names of the tagged configurations supported by this script.
16604 available_tags=""
16605
16606 # ### BEGIN LIBTOOL CONFIG
16607
16608 # Which release of libtool.m4 was used?
16609 macro_version=$macro_version
16610 macro_revision=$macro_revision
16611
16612 # Assembler program.
16613 AS=$lt_AS
16614
16615 # DLL creation program.
16616 DLLTOOL=$lt_DLLTOOL
16617
16618 # Object dumper program.
16619 OBJDUMP=$lt_OBJDUMP
16620
16621 # Whether or not to build static libraries.
16622 build_old_libs=$enable_static
16623
16624 # Whether or not to build shared libraries.
16625 build_libtool_libs=$enable_shared
16626
16627 # What type of objects to build.
16628 pic_mode=$pic_mode
16629
16630 # Whether or not to optimize for fast installation.
16631 fast_install=$enable_fast_install
16632
16633 # Shell to use when invoking shell scripts.
16634 SHELL=$lt_SHELL
16635
16636 # An echo program that protects backslashes.
16637 ECHO=$lt_ECHO
16638
16639 # The PATH separator for the build system.
16640 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16641
16642 # The host system.
16643 host_alias=$host_alias
16644 host=$host
16645 host_os=$host_os
16646
16647 # The build system.
16648 build_alias=$build_alias
16649 build=$build
16650 build_os=$build_os
16651
16652 # A sed program that does not truncate output.
16653 SED=$lt_SED
16654
16655 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16656 Xsed="\$SED -e 1s/^X//"
16657
16658 # A grep program that handles long lines.
16659 GREP=$lt_GREP
16660
16661 # An ERE matcher.
16662 EGREP=$lt_EGREP
16663
16664 # A literal string matcher.
16665 FGREP=$lt_FGREP
16666
16667 # A BSD- or MS-compatible name lister.
16668 NM=$lt_NM
16669
16670 # Whether we need soft or hard links.
16671 LN_S=$lt_LN_S
16672
16673 # What is the maximum length of a command?
16674 max_cmd_len=$max_cmd_len
16675
16676 # Object file suffix (normally "o").
16677 objext=$ac_objext
16678
16679 # Executable file suffix (normally "").
16680 exeext=$exeext
16681
16682 # whether the shell understands "unset".
16683 lt_unset=$lt_unset
16684
16685 # turn spaces into newlines.
16686 SP2NL=$lt_lt_SP2NL
16687
16688 # turn newlines into spaces.
16689 NL2SP=$lt_lt_NL2SP
16690
16691 # convert \$build file names to \$host format.
16692 to_host_file_cmd=$lt_cv_to_host_file_cmd
16693
16694 # convert \$build files to toolchain format.
16695 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16696
16697 # Method to check whether dependent libraries are shared objects.
16698 deplibs_check_method=$lt_deplibs_check_method
16699
16700 # Command to use when deplibs_check_method = "file_magic".
16701 file_magic_cmd=$lt_file_magic_cmd
16702
16703 # How to find potential files when deplibs_check_method = "file_magic".
16704 file_magic_glob=$lt_file_magic_glob
16705
16706 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16707 want_nocaseglob=$lt_want_nocaseglob
16708
16709 # Command to associate shared and link libraries.
16710 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16711
16712 # The archiver.
16713 AR=$lt_AR
16714
16715 # Flags to create an archive.
16716 AR_FLAGS=$lt_AR_FLAGS
16717
16718 # How to feed a file listing to the archiver.
16719 archiver_list_spec=$lt_archiver_list_spec
16720
16721 # A symbol stripping program.
16722 STRIP=$lt_STRIP
16723
16724 # Commands used to install an old-style archive.
16725 RANLIB=$lt_RANLIB
16726 old_postinstall_cmds=$lt_old_postinstall_cmds
16727 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16728
16729 # Whether to use a lock for old archive extraction.
16730 lock_old_archive_extraction=$lock_old_archive_extraction
16731
16732 # A C compiler.
16733 LTCC=$lt_CC
16734
16735 # LTCC compiler flags.
16736 LTCFLAGS=$lt_CFLAGS
16737
16738 # Take the output of nm and produce a listing of raw symbols and C names.
16739 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16740
16741 # Transform the output of nm in a proper C declaration.
16742 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16743
16744 # Transform the output of nm in a C name address pair.
16745 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16746
16747 # Transform the output of nm in a C name address pair when lib prefix is needed.
16748 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16749
16750 # Specify filename containing input files for \$NM.
16751 nm_file_list_spec=$lt_nm_file_list_spec
16752
16753 # The root where to search for dependent libraries,and in which our libraries should be installed.
16754 lt_sysroot=$lt_sysroot
16755
16756 # The name of the directory that contains temporary libtool files.
16757 objdir=$objdir
16758
16759 # Used to examine libraries when file_magic_cmd begins with "file".
16760 MAGIC_CMD=$MAGIC_CMD
16761
16762 # Must we lock files when doing compilation?
16763 need_locks=$lt_need_locks
16764
16765 # Manifest tool.
16766 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16767
16768 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16769 DSYMUTIL=$lt_DSYMUTIL
16770
16771 # Tool to change global to local symbols on Mac OS X.
16772 NMEDIT=$lt_NMEDIT
16773
16774 # Tool to manipulate fat objects and archives on Mac OS X.
16775 LIPO=$lt_LIPO
16776
16777 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16778 OTOOL=$lt_OTOOL
16779
16780 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16781 OTOOL64=$lt_OTOOL64
16782
16783 # Old archive suffix (normally "a").
16784 libext=$libext
16785
16786 # Shared library suffix (normally ".so").
16787 shrext_cmds=$lt_shrext_cmds
16788
16789 # The commands to extract the exported symbol list from a shared archive.
16790 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16791
16792 # Variables whose values should be saved in libtool wrapper scripts and
16793 # restored at link time.
16794 variables_saved_for_relink=$lt_variables_saved_for_relink
16795
16796 # Do we need the "lib" prefix for modules?
16797 need_lib_prefix=$need_lib_prefix
16798
16799 # Do we need a version for libraries?
16800 need_version=$need_version
16801
16802 # Library versioning type.
16803 version_type=$version_type
16804
16805 # Shared library runtime path variable.
16806 runpath_var=$runpath_var
16807
16808 # Shared library path variable.
16809 shlibpath_var=$shlibpath_var
16810
16811 # Is shlibpath searched before the hard-coded library search path?
16812 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16813
16814 # Format of library name prefix.
16815 libname_spec=$lt_libname_spec
16816
16817 # List of archive names.  First name is the real one, the rest are links.
16818 # The last name is the one that the linker finds with -lNAME
16819 library_names_spec=$lt_library_names_spec
16820
16821 # The coded name of the library, if different from the real name.
16822 soname_spec=$lt_soname_spec
16823
16824 # Permission mode override for installation of shared libraries.
16825 install_override_mode=$lt_install_override_mode
16826
16827 # Command to use after installation of a shared archive.
16828 postinstall_cmds=$lt_postinstall_cmds
16829
16830 # Command to use after uninstallation of a shared archive.
16831 postuninstall_cmds=$lt_postuninstall_cmds
16832
16833 # Commands used to finish a libtool library installation in a directory.
16834 finish_cmds=$lt_finish_cmds
16835
16836 # As "finish_cmds", except a single script fragment to be evaled but
16837 # not shown.
16838 finish_eval=$lt_finish_eval
16839
16840 # Whether we should hardcode library paths into libraries.
16841 hardcode_into_libs=$hardcode_into_libs
16842
16843 # Compile-time system search path for libraries.
16844 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16845
16846 # Run-time system search path for libraries.
16847 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16848
16849 # Whether dlopen is supported.
16850 dlopen_support=$enable_dlopen
16851
16852 # Whether dlopen of programs is supported.
16853 dlopen_self=$enable_dlopen_self
16854
16855 # Whether dlopen of statically linked programs is supported.
16856 dlopen_self_static=$enable_dlopen_self_static
16857
16858 # Commands to strip libraries.
16859 old_striplib=$lt_old_striplib
16860 striplib=$lt_striplib
16861
16862
16863 # The linker used to build libraries.
16864 LD=$lt_LD
16865
16866 # How to create reloadable object files.
16867 reload_flag=$lt_reload_flag
16868 reload_cmds=$lt_reload_cmds
16869
16870 # Commands used to build an old-style archive.
16871 old_archive_cmds=$lt_old_archive_cmds
16872
16873 # A language specific compiler.
16874 CC=$lt_compiler
16875
16876 # Is the compiler the GNU compiler?
16877 with_gcc=$GCC
16878
16879 # Compiler flag to turn off builtin functions.
16880 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16881
16882 # Additional compiler flags for building library objects.
16883 pic_flag=$lt_lt_prog_compiler_pic
16884
16885 # How to pass a linker flag through the compiler.
16886 wl=$lt_lt_prog_compiler_wl
16887
16888 # Compiler flag to prevent dynamic linking.
16889 link_static_flag=$lt_lt_prog_compiler_static
16890
16891 # Does compiler simultaneously support -c and -o options?
16892 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16893
16894 # Whether or not to add -lc for building shared libraries.
16895 build_libtool_need_lc=$archive_cmds_need_lc
16896
16897 # Whether or not to disallow shared libs when runtime libs are static.
16898 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16899
16900 # Compiler flag to allow reflexive dlopens.
16901 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16902
16903 # Compiler flag to generate shared objects directly from archives.
16904 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16905
16906 # Whether the compiler copes with passing no objects directly.
16907 compiler_needs_object=$lt_compiler_needs_object
16908
16909 # Create an old-style archive from a shared archive.
16910 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16911
16912 # Create a temporary old-style archive to link instead of a shared archive.
16913 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16914
16915 # Commands used to build a shared archive.
16916 archive_cmds=$lt_archive_cmds
16917 archive_expsym_cmds=$lt_archive_expsym_cmds
16918
16919 # Commands used to build a loadable module if different from building
16920 # a shared archive.
16921 module_cmds=$lt_module_cmds
16922 module_expsym_cmds=$lt_module_expsym_cmds
16923
16924 # Whether we are building with GNU ld or not.
16925 with_gnu_ld=$lt_with_gnu_ld
16926
16927 # Flag that allows shared libraries with undefined symbols to be built.
16928 allow_undefined_flag=$lt_allow_undefined_flag
16929
16930 # Flag that enforces no undefined symbols.
16931 no_undefined_flag=$lt_no_undefined_flag
16932
16933 # Flag to hardcode \$libdir into a binary during linking.
16934 # This must work even if \$libdir does not exist
16935 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16936
16937 # Whether we need a single "-rpath" flag with a separated argument.
16938 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16939
16940 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16941 # DIR into the resulting binary.
16942 hardcode_direct=$hardcode_direct
16943
16944 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16945 # DIR into the resulting binary and the resulting library dependency is
16946 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16947 # library is relocated.
16948 hardcode_direct_absolute=$hardcode_direct_absolute
16949
16950 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16951 # into the resulting binary.
16952 hardcode_minus_L=$hardcode_minus_L
16953
16954 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16955 # into the resulting binary.
16956 hardcode_shlibpath_var=$hardcode_shlibpath_var
16957
16958 # Set to "yes" if building a shared library automatically hardcodes DIR
16959 # into the library and all subsequent libraries and executables linked
16960 # against it.
16961 hardcode_automatic=$hardcode_automatic
16962
16963 # Set to yes if linker adds runtime paths of dependent libraries
16964 # to runtime path list.
16965 inherit_rpath=$inherit_rpath
16966
16967 # Whether libtool must link a program against all its dependency libraries.
16968 link_all_deplibs=$link_all_deplibs
16969
16970 # Set to "yes" if exported symbols are required.
16971 always_export_symbols=$always_export_symbols
16972
16973 # The commands to list exported symbols.
16974 export_symbols_cmds=$lt_export_symbols_cmds
16975
16976 # Symbols that should not be listed in the preloaded symbols.
16977 exclude_expsyms=$lt_exclude_expsyms
16978
16979 # Symbols that must always be exported.
16980 include_expsyms=$lt_include_expsyms
16981
16982 # Commands necessary for linking programs (against libraries) with templates.
16983 prelink_cmds=$lt_prelink_cmds
16984
16985 # Commands necessary for finishing linking programs.
16986 postlink_cmds=$lt_postlink_cmds
16987
16988 # Specify filename containing input files.
16989 file_list_spec=$lt_file_list_spec
16990
16991 # How to hardcode a shared library path into an executable.
16992 hardcode_action=$hardcode_action
16993
16994 # ### END LIBTOOL CONFIG
16995
16996 _LT_EOF
16997
16998   case $host_os in
16999   aix3*)
17000     cat <<\_LT_EOF >> "$cfgfile"
17001 # AIX sometimes has problems with the GCC collect2 program.  For some
17002 # reason, if we set the COLLECT_NAMES environment variable, the problems
17003 # vanish in a puff of smoke.
17004 if test "X${COLLECT_NAMES+set}" != Xset; then
17005   COLLECT_NAMES=
17006   export COLLECT_NAMES
17007 fi
17008 _LT_EOF
17009     ;;
17010   esac
17011
17012
17013 ltmain="$ac_aux_dir/ltmain.sh"
17014
17015
17016   # We use sed instead of cat because bash on DJGPP gets confused if
17017   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17018   # text mode, it properly converts lines to CR/LF.  This bash problem
17019   # is reportedly fixed, but why not run on old versions too?
17020   sed '$q' "$ltmain" >> "$cfgfile" \
17021      || (rm -f "$cfgfile"; exit 1)
17022
17023   if test x"$xsi_shell" = xyes; then
17024   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17025 func_dirname ()\
17026 {\
17027 \    case ${1} in\
17028 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17029 \      *  ) func_dirname_result="${3}" ;;\
17030 \    esac\
17031 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17032   && mv -f "$cfgfile.tmp" "$cfgfile" \
17033     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17034 test 0 -eq $? || _lt_function_replace_fail=:
17035
17036
17037   sed -e '/^func_basename ()$/,/^} # func_basename /c\
17038 func_basename ()\
17039 {\
17040 \    func_basename_result="${1##*/}"\
17041 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17042   && mv -f "$cfgfile.tmp" "$cfgfile" \
17043     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17044 test 0 -eq $? || _lt_function_replace_fail=:
17045
17046
17047   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17048 func_dirname_and_basename ()\
17049 {\
17050 \    case ${1} in\
17051 \      */*) func_dirname_result="${1%/*}${2}" ;;\
17052 \      *  ) func_dirname_result="${3}" ;;\
17053 \    esac\
17054 \    func_basename_result="${1##*/}"\
17055 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17056   && mv -f "$cfgfile.tmp" "$cfgfile" \
17057     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17058 test 0 -eq $? || _lt_function_replace_fail=:
17059
17060
17061   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17062 func_stripname ()\
17063 {\
17064 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17065 \    # positional parameters, so assign one to ordinary parameter first.\
17066 \    func_stripname_result=${3}\
17067 \    func_stripname_result=${func_stripname_result#"${1}"}\
17068 \    func_stripname_result=${func_stripname_result%"${2}"}\
17069 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17070   && mv -f "$cfgfile.tmp" "$cfgfile" \
17071     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17072 test 0 -eq $? || _lt_function_replace_fail=:
17073
17074
17075   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17076 func_split_long_opt ()\
17077 {\
17078 \    func_split_long_opt_name=${1%%=*}\
17079 \    func_split_long_opt_arg=${1#*=}\
17080 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17081   && mv -f "$cfgfile.tmp" "$cfgfile" \
17082     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17083 test 0 -eq $? || _lt_function_replace_fail=:
17084
17085
17086   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17087 func_split_short_opt ()\
17088 {\
17089 \    func_split_short_opt_arg=${1#??}\
17090 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17091 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17092   && mv -f "$cfgfile.tmp" "$cfgfile" \
17093     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17094 test 0 -eq $? || _lt_function_replace_fail=:
17095
17096
17097   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17098 func_lo2o ()\
17099 {\
17100 \    case ${1} in\
17101 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17102 \      *)    func_lo2o_result=${1} ;;\
17103 \    esac\
17104 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17105   && mv -f "$cfgfile.tmp" "$cfgfile" \
17106     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17107 test 0 -eq $? || _lt_function_replace_fail=:
17108
17109
17110   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17111 func_xform ()\
17112 {\
17113     func_xform_result=${1%.*}.lo\
17114 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17115   && mv -f "$cfgfile.tmp" "$cfgfile" \
17116     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17117 test 0 -eq $? || _lt_function_replace_fail=:
17118
17119
17120   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17121 func_arith ()\
17122 {\
17123     func_arith_result=$(( $* ))\
17124 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17125   && mv -f "$cfgfile.tmp" "$cfgfile" \
17126     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17127 test 0 -eq $? || _lt_function_replace_fail=:
17128
17129
17130   sed -e '/^func_len ()$/,/^} # func_len /c\
17131 func_len ()\
17132 {\
17133     func_len_result=${#1}\
17134 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17135   && mv -f "$cfgfile.tmp" "$cfgfile" \
17136     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17137 test 0 -eq $? || _lt_function_replace_fail=:
17138
17139 fi
17140
17141 if test x"$lt_shell_append" = xyes; then
17142   sed -e '/^func_append ()$/,/^} # func_append /c\
17143 func_append ()\
17144 {\
17145     eval "${1}+=\\${2}"\
17146 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17147   && mv -f "$cfgfile.tmp" "$cfgfile" \
17148     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17149 test 0 -eq $? || _lt_function_replace_fail=:
17150
17151
17152   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17153 func_append_quoted ()\
17154 {\
17155 \    func_quote_for_eval "${2}"\
17156 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17157 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17158   && mv -f "$cfgfile.tmp" "$cfgfile" \
17159     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17160 test 0 -eq $? || _lt_function_replace_fail=:
17161
17162
17163   # Save a `func_append' function call where possible by direct use of '+='
17164   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17165     && mv -f "$cfgfile.tmp" "$cfgfile" \
17166       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17167   test 0 -eq $? || _lt_function_replace_fail=:
17168 else
17169   # Save a `func_append' function call even when '+=' is not available
17170   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17171     && mv -f "$cfgfile.tmp" "$cfgfile" \
17172       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17173   test 0 -eq $? || _lt_function_replace_fail=:
17174 fi
17175
17176 if test x"$_lt_function_replace_fail" = x":"; then
17177   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17178 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17179 fi
17180
17181
17182    mv -f "$cfgfile" "$ofile" ||
17183     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17184   chmod +x "$ofile"
17185
17186  ;;
17187
17188   esac
17189 done # for ac_tag
17190
17191
17192 as_fn_exit 0
17193 _ACEOF
17194 ac_clean_files=$ac_clean_files_save
17195
17196 test $ac_write_fail = 0 ||
17197   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17198
17199
17200 # configure is writing to config.log, and then calls config.status.
17201 # config.status does its own redirection, appending to config.log.
17202 # Unfortunately, on DOS this fails, as config.log is still kept open
17203 # by configure, so config.status won't be able to write to it; its
17204 # output is simply discarded.  So we exec the FD to /dev/null,
17205 # effectively closing config.log, so it can be properly (re)opened and
17206 # appended to by config.status.  When coming back to configure, we
17207 # need to make the FD available again.
17208 if test "$no_create" != yes; then
17209   ac_cs_success=:
17210   ac_config_status_args=
17211   test "$silent" = yes &&
17212     ac_config_status_args="$ac_config_status_args --quiet"
17213   exec 5>/dev/null
17214   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17215   exec 5>>config.log
17216   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17217   # would make configure fail if this is the last instruction.
17218   $ac_cs_success || as_fn_exit 1
17219 fi
17220 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17221   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17222 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17223 fi
17224
17225
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17227         pygobject $VERSION
17228
17229         Using python interpreter:       $PYTHON
17230         cairo support:                  $enable_cairo
17231         thread support:                 $enable_thread
17232         code coverage support:          $enable_code_coverage
17233 " >&5
17234 $as_echo "
17235         pygobject $VERSION
17236
17237         Using python interpreter:       $PYTHON
17238         cairo support:                  $enable_cairo
17239         thread support:                 $enable_thread
17240         code coverage support:          $enable_code_coverage
17241 " >&6; }
17242