Imported Upstream version 3.18.1
[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.18.1.
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.18.1'
595 PACKAGE_STRING='pygobject 3.18.1'
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_RULES
642 CODE_COVERAGE_LDFLAGS
643 CODE_COVERAGE_CFLAGS
644 GENHTML
645 LCOV
646 CODE_COVERAGE_ENABLED
647 CODE_COVERAGE_ENABLED_FALSE
648 CODE_COVERAGE_ENABLED_TRUE
649 WARN_CFLAGS
650 INTROSPECTION_COMPILER
651 INTROSPECTION_SCANNER
652 WITH_COMMON_FALSE
653 WITH_COMMON_TRUE
654 ENABLE_CAIRO_FALSE
655 ENABLE_CAIRO_TRUE
656 PYCAIRO_LIBS
657 PYCAIRO_CFLAGS
658 CAIRO_LIBS
659 CAIRO_CFLAGS
660 GI_DATADIR
661 GI_LIBS
662 GI_CFLAGS
663 GIO_LIBS
664 GIO_CFLAGS
665 LIBFFI_PC
666 FFI_LIBS
667 FFI_CFLAGS
668 DATADIR
669 PYTHON_BASENAME
670 GLIB_COMPILE_RESOURCES
671 GLIB_MKENUMS
672 GOBJECT_QUERY
673 GLIB_GENMARSHAL
674 GLIB_LIBS
675 GLIB_CFLAGS
676 PKG_CONFIG_LIBDIR
677 PKG_CONFIG_PATH
678 PKG_CONFIG
679 THREADING_CFLAGS
680 PLATFORM
681 PYTHON_LIB_LOC
682 PYTHON_LIBS
683 PYTHON_INCLUDES
684 PYTHON_SO
685 pkgpyexecdir
686 pyexecdir
687 pkgpythondir
688 pythondir
689 PYTHON_PLATFORM
690 PYTHON_EXEC_PREFIX
691 PYTHON_PREFIX
692 PYTHON_VERSION
693 PYTHON
694 CPP
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 LN_S
705 NM
706 ac_ct_DUMPBIN
707 DUMPBIN
708 LD
709 FGREP
710 EGREP
711 GREP
712 SED
713 am__fastdepCC_FALSE
714 am__fastdepCC_TRUE
715 CCDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__quote
721 am__include
722 DEPDIR
723 OBJEXT
724 EXEEXT
725 ac_ct_CC
726 CPPFLAGS
727 LDFLAGS
728 CFLAGS
729 CC
730 LIBTOOL
731 OBJDUMP
732 DLLTOOL
733 AS
734 OS_EXT
735 OS_WIN32_FALSE
736 OS_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.18.1 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.18.1:";;
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   --disable-dependency-tracking  speeds up one-time build
1483   --enable-dependency-tracking   do not reject slow dependency extractors
1484   --disable-libtool-lock  avoid locking (might break parallel builds)
1485   --disable-thread        Disable pygobject threading support
1486   --disable-glibtest      do not try to compile and run a test GLIB program
1487   --enable-cairo          Enable Cairo bindings using introspection
1488                           information
1489   --enable-compile-warnings=[no/minimum/yes/maximum/error]
1490                           Turn on compiler warnings
1491   --enable-iso-c          Try to warn if code is not ISO C
1492   --enable-code-coverage  Whether to enable code coverage support
1493
1494 Optional Packages:
1495   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1498                           both]
1499   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1500   --with-sysroot=DIR Search for dependent libraries within DIR
1501                         (or the compiler's sysroot if not specified).
1502   --with-python=PATH      Path to Python interpreter; searches $PATH if only a
1503                           program name is given; if not given, searches for a
1504                           few standard names such as "python3" or "python2"
1505   --without-common        For package maintainers: do not install Python
1506                           version independent files
1507
1508 Some influential environment variables:
1509   CC          C compiler command
1510   CFLAGS      C compiler flags
1511   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1512               nonstandard directory <lib dir>
1513   LIBS        libraries to pass to the linker, e.g. -l<library>
1514   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1515               you have headers in a nonstandard directory <include dir>
1516   CPP         C preprocessor
1517   PYTHON      the Python interpreter
1518   PKG_CONFIG  path to pkg-config utility
1519   PKG_CONFIG_PATH
1520               directories to add to pkg-config's search path
1521   PKG_CONFIG_LIBDIR
1522               path overriding pkg-config's built-in search path
1523   FFI_CFLAGS  C compiler flags for FFI, overriding pkg-config
1524   FFI_LIBS    linker flags for FFI, overriding pkg-config
1525   GIO_CFLAGS  C compiler flags for GIO, overriding pkg-config
1526   GIO_LIBS    linker flags for GIO, overriding pkg-config
1527   GI_CFLAGS   C compiler flags for GI, overriding pkg-config
1528   GI_LIBS     linker flags for GI, overriding pkg-config
1529   CAIRO_CFLAGS
1530               C compiler flags for CAIRO, overriding pkg-config
1531   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1532   PYCAIRO_CFLAGS
1533               C compiler flags for PYCAIRO, overriding pkg-config
1534   PYCAIRO_LIBS
1535               linker flags for PYCAIRO, overriding pkg-config
1536
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1539
1540 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
1541 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>.
1542 _ACEOF
1543 ac_status=$?
1544 fi
1545
1546 if test "$ac_init_help" = "recursive"; then
1547   # If there are subdirs, report their specific --help.
1548   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1549     test -d "$ac_dir" ||
1550       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1551       continue
1552     ac_builddir=.
1553
1554 case "$ac_dir" in
1555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *)
1557   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1558   # A ".." for each directory in $ac_dir_suffix.
1559   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1560   case $ac_top_builddir_sub in
1561   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1562   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1563   esac ;;
1564 esac
1565 ac_abs_top_builddir=$ac_pwd
1566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1567 # for backward compatibility:
1568 ac_top_builddir=$ac_top_build_prefix
1569
1570 case $srcdir in
1571   .)  # We are building in place.
1572     ac_srcdir=.
1573     ac_top_srcdir=$ac_top_builddir_sub
1574     ac_abs_top_srcdir=$ac_pwd ;;
1575   [\\/]* | ?:[\\/]* )  # Absolute name.
1576     ac_srcdir=$srcdir$ac_dir_suffix;
1577     ac_top_srcdir=$srcdir
1578     ac_abs_top_srcdir=$srcdir ;;
1579   *) # Relative name.
1580     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1581     ac_top_srcdir=$ac_top_build_prefix$srcdir
1582     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1583 esac
1584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585
1586     cd "$ac_dir" || { ac_status=$?; continue; }
1587     # Check for guested configure.
1588     if test -f "$ac_srcdir/configure.gnu"; then
1589       echo &&
1590       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1591     elif test -f "$ac_srcdir/configure"; then
1592       echo &&
1593       $SHELL "$ac_srcdir/configure" --help=recursive
1594     else
1595       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1596     fi || ac_status=$?
1597     cd "$ac_pwd" || { ac_status=$?; break; }
1598   done
1599 fi
1600
1601 test -n "$ac_init_help" && exit $ac_status
1602 if $ac_init_version; then
1603   cat <<\_ACEOF
1604 pygobject configure 3.18.1
1605 generated by GNU Autoconf 2.69
1606
1607 Copyright (C) 2012 Free Software Foundation, Inc.
1608 This configure script is free software; the Free Software Foundation
1609 gives unlimited permission to copy, distribute and modify it.
1610 _ACEOF
1611   exit
1612 fi
1613
1614 ## ------------------------ ##
1615 ## Autoconf initialization. ##
1616 ## ------------------------ ##
1617
1618 # ac_fn_c_try_compile LINENO
1619 # --------------------------
1620 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_compile ()
1622 {
1623   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624   rm -f conftest.$ac_objext
1625   if { { ac_try="$ac_compile"
1626 case "(($ac_try" in
1627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628   *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632   (eval "$ac_compile") 2>conftest.err
1633   ac_status=$?
1634   if test -s conftest.err; then
1635     grep -v '^ *+' conftest.err >conftest.er1
1636     cat conftest.er1 >&5
1637     mv -f conftest.er1 conftest.err
1638   fi
1639   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640   test $ac_status = 0; } && {
1641          test -z "$ac_c_werror_flag" ||
1642          test ! -s conftest.err
1643        } && test -s conftest.$ac_objext; then :
1644   ac_retval=0
1645 else
1646   $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1648
1649         ac_retval=1
1650 fi
1651   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1652   as_fn_set_status $ac_retval
1653
1654 } # ac_fn_c_try_compile
1655
1656 # ac_fn_c_try_link LINENO
1657 # -----------------------
1658 # Try to link conftest.$ac_ext, and return whether this succeeded.
1659 ac_fn_c_try_link ()
1660 {
1661   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1662   rm -f conftest.$ac_objext conftest$ac_exeext
1663   if { { ac_try="$ac_link"
1664 case "(($ac_try" in
1665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1666   *) ac_try_echo=$ac_try;;
1667 esac
1668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1669 $as_echo "$ac_try_echo"; } >&5
1670   (eval "$ac_link") 2>conftest.err
1671   ac_status=$?
1672   if test -s conftest.err; then
1673     grep -v '^ *+' conftest.err >conftest.er1
1674     cat conftest.er1 >&5
1675     mv -f conftest.er1 conftest.err
1676   fi
1677   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678   test $ac_status = 0; } && {
1679          test -z "$ac_c_werror_flag" ||
1680          test ! -s conftest.err
1681        } && test -s conftest$ac_exeext && {
1682          test "$cross_compiling" = yes ||
1683          test -x conftest$ac_exeext
1684        }; then :
1685   ac_retval=0
1686 else
1687   $as_echo "$as_me: failed program was:" >&5
1688 sed 's/^/| /' conftest.$ac_ext >&5
1689
1690         ac_retval=1
1691 fi
1692   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1693   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1694   # interfere with the next link command; also delete a directory that is
1695   # left behind by Apple's compiler.  We do this before executing the actions.
1696   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1697   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698   as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_link
1701
1702 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists and can be compiled using the include files in
1705 # INCLUDES, setting the cache variable VAR accordingly.
1706 ac_fn_c_check_header_compile ()
1707 {
1708   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if eval \${$3+:} false; then :
1712   $as_echo_n "(cached) " >&6
1713 else
1714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1715 /* end confdefs.h.  */
1716 $4
1717 #include <$2>
1718 _ACEOF
1719 if ac_fn_c_try_compile "$LINENO"; then :
1720   eval "$3=yes"
1721 else
1722   eval "$3=no"
1723 fi
1724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1725 fi
1726 eval ac_res=\$$3
1727                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730
1731 } # ac_fn_c_check_header_compile
1732
1733 # ac_fn_c_try_cpp LINENO
1734 # ----------------------
1735 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1736 ac_fn_c_try_cpp ()
1737 {
1738   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739   if { { ac_try="$ac_cpp conftest.$ac_ext"
1740 case "(($ac_try" in
1741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1742   *) ac_try_echo=$ac_try;;
1743 esac
1744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1747   ac_status=$?
1748   if test -s conftest.err; then
1749     grep -v '^ *+' conftest.err >conftest.er1
1750     cat conftest.er1 >&5
1751     mv -f conftest.er1 conftest.err
1752   fi
1753   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754   test $ac_status = 0; } > conftest.i && {
1755          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1756          test ! -s conftest.err
1757        }; then :
1758   ac_retval=0
1759 else
1760   $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1762
1763     ac_retval=1
1764 fi
1765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766   as_fn_set_status $ac_retval
1767
1768 } # ac_fn_c_try_cpp
1769
1770 # ac_fn_c_try_run LINENO
1771 # ----------------------
1772 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1773 # that executables *can* be run.
1774 ac_fn_c_try_run ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   if { { ac_try="$ac_link"
1778 case "(($ac_try" in
1779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1780   *) ac_try_echo=$ac_try;;
1781 esac
1782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1783 $as_echo "$ac_try_echo"; } >&5
1784   (eval "$ac_link") 2>&5
1785   ac_status=$?
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1788   { { case "(($ac_try" in
1789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790   *) ac_try_echo=$ac_try;;
1791 esac
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794   (eval "$ac_try") 2>&5
1795   ac_status=$?
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; }; }; then :
1798   ac_retval=0
1799 else
1800   $as_echo "$as_me: program exited with status $ac_status" >&5
1801        $as_echo "$as_me: failed program was:" >&5
1802 sed 's/^/| /' conftest.$ac_ext >&5
1803
1804        ac_retval=$ac_status
1805 fi
1806   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808   as_fn_set_status $ac_retval
1809
1810 } # ac_fn_c_try_run
1811
1812 # ac_fn_c_check_func LINENO FUNC VAR
1813 # ----------------------------------
1814 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1815 ac_fn_c_check_func ()
1816 {
1817   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819 $as_echo_n "checking for $2... " >&6; }
1820 if eval \${$3+:} false; then :
1821   $as_echo_n "(cached) " >&6
1822 else
1823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h.  */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1827 #define $2 innocuous_$2
1828
1829 /* System header to define __stub macros and hopefully few prototypes,
1830     which can conflict with char $2 (); below.
1831     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832     <limits.h> exists even on freestanding compilers.  */
1833
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1839
1840 #undef $2
1841
1842 /* Override any GCC internal prototype to avoid an error.
1843    Use char because int might match the return type of a GCC
1844    builtin and then its argument prototype would still apply.  */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850     to always fail with ENOSYS.  Some functions are actually named
1851     something starting with __ and the normal name is an alias.  */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1855
1856 int
1857 main ()
1858 {
1859 return $2 ();
1860   ;
1861   return 0;
1862 }
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865   eval "$3=yes"
1866 else
1867   eval "$3=no"
1868 fi
1869 rm -f core conftest.err conftest.$ac_objext \
1870     conftest$ac_exeext conftest.$ac_ext
1871 fi
1872 eval ac_res=\$$3
1873                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876
1877 } # ac_fn_c_check_func
1878 cat >config.log <<_ACEOF
1879 This file contains any messages produced by compilers while
1880 running configure, to aid debugging if configure makes a mistake.
1881
1882 It was created by pygobject $as_me 3.18.1, which was
1883 generated by GNU Autoconf 2.69.  Invocation command line was
1884
1885   $ $0 $@
1886
1887 _ACEOF
1888 exec 5>>config.log
1889 {
1890 cat <<_ASUNAME
1891 ## --------- ##
1892 ## Platform. ##
1893 ## --------- ##
1894
1895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1900
1901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1902 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1903
1904 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1905 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1907 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1908 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1909 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1910 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1911
1912 _ASUNAME
1913
1914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1915 for as_dir in $PATH
1916 do
1917   IFS=$as_save_IFS
1918   test -z "$as_dir" && as_dir=.
1919     $as_echo "PATH: $as_dir"
1920   done
1921 IFS=$as_save_IFS
1922
1923 } >&5
1924
1925 cat >&5 <<_ACEOF
1926
1927
1928 ## ----------- ##
1929 ## Core tests. ##
1930 ## ----------- ##
1931
1932 _ACEOF
1933
1934
1935 # Keep a trace of the command line.
1936 # Strip out --no-create and --no-recursion so they do not pile up.
1937 # Strip out --silent because we don't want to record it for future runs.
1938 # Also quote any args containing shell meta-characters.
1939 # Make two passes to allow for proper duplicate-argument suppression.
1940 ac_configure_args=
1941 ac_configure_args0=
1942 ac_configure_args1=
1943 ac_must_keep_next=false
1944 for ac_pass in 1 2
1945 do
1946   for ac_arg
1947   do
1948     case $ac_arg in
1949     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1950     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1951     | -silent | --silent | --silen | --sile | --sil)
1952       continue ;;
1953     *\'*)
1954       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1955     esac
1956     case $ac_pass in
1957     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1958     2)
1959       as_fn_append ac_configure_args1 " '$ac_arg'"
1960       if test $ac_must_keep_next = true; then
1961         ac_must_keep_next=false # Got value, back to normal.
1962       else
1963         case $ac_arg in
1964           *=* | --config-cache | -C | -disable-* | --disable-* \
1965           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1966           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1967           | -with-* | --with-* | -without-* | --without-* | --x)
1968             case "$ac_configure_args0 " in
1969               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1970             esac
1971             ;;
1972           -* ) ac_must_keep_next=true ;;
1973         esac
1974       fi
1975       as_fn_append ac_configure_args " '$ac_arg'"
1976       ;;
1977     esac
1978   done
1979 done
1980 { ac_configure_args0=; unset ac_configure_args0;}
1981 { ac_configure_args1=; unset ac_configure_args1;}
1982
1983 # When interrupted or exit'd, cleanup temporary files, and complete
1984 # config.log.  We remove comments because anyway the quotes in there
1985 # would cause problems or look ugly.
1986 # WARNING: Use '\'' to represent an apostrophe within the trap.
1987 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1988 trap 'exit_status=$?
1989   # Save into config.log some information that might help in debugging.
1990   {
1991     echo
1992
1993     $as_echo "## ---------------- ##
1994 ## Cache variables. ##
1995 ## ---------------- ##"
1996     echo
1997     # The following way of writing the cache mishandles newlines in values,
1998 (
1999   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2000     eval ac_val=\$$ac_var
2001     case $ac_val in #(
2002     *${as_nl}*)
2003       case $ac_var in #(
2004       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2006       esac
2007       case $ac_var in #(
2008       _ | IFS | as_nl) ;; #(
2009       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2010       *) { eval $ac_var=; unset $ac_var;} ;;
2011       esac ;;
2012     esac
2013   done
2014   (set) 2>&1 |
2015     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2016     *${as_nl}ac_space=\ *)
2017       sed -n \
2018         "s/'\''/'\''\\\\'\'''\''/g;
2019           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2020       ;; #(
2021     *)
2022       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2023       ;;
2024     esac |
2025     sort
2026 )
2027     echo
2028
2029     $as_echo "## ----------------- ##
2030 ## Output variables. ##
2031 ## ----------------- ##"
2032     echo
2033     for ac_var in $ac_subst_vars
2034     do
2035       eval ac_val=\$$ac_var
2036       case $ac_val in
2037       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2038       esac
2039       $as_echo "$ac_var='\''$ac_val'\''"
2040     done | sort
2041     echo
2042
2043     if test -n "$ac_subst_files"; then
2044       $as_echo "## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##"
2047       echo
2048       for ac_var in $ac_subst_files
2049       do
2050         eval ac_val=\$$ac_var
2051         case $ac_val in
2052         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053         esac
2054         $as_echo "$ac_var='\''$ac_val'\''"
2055       done | sort
2056       echo
2057     fi
2058
2059     if test -s confdefs.h; then
2060       $as_echo "## ----------- ##
2061 ## confdefs.h. ##
2062 ## ----------- ##"
2063       echo
2064       cat confdefs.h
2065       echo
2066     fi
2067     test "$ac_signal" != 0 &&
2068       $as_echo "$as_me: caught signal $ac_signal"
2069     $as_echo "$as_me: exit $exit_status"
2070   } >&5
2071   rm -f core *.core core.conftest.* &&
2072     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2073     exit $exit_status
2074 ' 0
2075 for ac_signal in 1 2 13 15; do
2076   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2077 done
2078 ac_signal=0
2079
2080 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2081 rm -f -r conftest* confdefs.h
2082
2083 $as_echo "/* confdefs.h */" > confdefs.h
2084
2085 # Predefined preprocessor variables.
2086
2087 cat >>confdefs.h <<_ACEOF
2088 #define PACKAGE_NAME "$PACKAGE_NAME"
2089 _ACEOF
2090
2091 cat >>confdefs.h <<_ACEOF
2092 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2093 _ACEOF
2094
2095 cat >>confdefs.h <<_ACEOF
2096 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2097 _ACEOF
2098
2099 cat >>confdefs.h <<_ACEOF
2100 #define PACKAGE_STRING "$PACKAGE_STRING"
2101 _ACEOF
2102
2103 cat >>confdefs.h <<_ACEOF
2104 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2105 _ACEOF
2106
2107 cat >>confdefs.h <<_ACEOF
2108 #define PACKAGE_URL "$PACKAGE_URL"
2109 _ACEOF
2110
2111
2112 # Let the site file select an alternate cache file if it wants to.
2113 # Prefer an explicitly selected file to automatically selected ones.
2114 ac_site_file1=NONE
2115 ac_site_file2=NONE
2116 if test -n "$CONFIG_SITE"; then
2117   # We do not want a PATH search for config.site.
2118   case $CONFIG_SITE in #((
2119     -*)  ac_site_file1=./$CONFIG_SITE;;
2120     */*) ac_site_file1=$CONFIG_SITE;;
2121     *)   ac_site_file1=./$CONFIG_SITE;;
2122   esac
2123 elif test "x$prefix" != xNONE; then
2124   ac_site_file1=$prefix/share/config.site
2125   ac_site_file2=$prefix/etc/config.site
2126 else
2127   ac_site_file1=$ac_default_prefix/share/config.site
2128   ac_site_file2=$ac_default_prefix/etc/config.site
2129 fi
2130 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2131 do
2132   test "x$ac_site_file" = xNONE && continue
2133   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2134     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2135 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2136     sed 's/^/| /' "$ac_site_file" >&5
2137     . "$ac_site_file" \
2138       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2140 as_fn_error $? "failed to load site script $ac_site_file
2141 See \`config.log' for more details" "$LINENO" 5; }
2142   fi
2143 done
2144
2145 if test -r "$cache_file"; then
2146   # Some versions of bash will fail to source /dev/null (special files
2147   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2148   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2149     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151     case $cache_file in
2152       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153       *)                      . "./$cache_file";;
2154     esac
2155   fi
2156 else
2157   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159   >$cache_file
2160 fi
2161
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167   eval ac_new_set=\$ac_env_${ac_var}_set
2168   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169   eval ac_new_val=\$ac_env_${ac_var}_value
2170   case $ac_old_set,$ac_new_set in
2171     set,)
2172       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174       ac_cache_corrupted=: ;;
2175     ,set)
2176       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178       ac_cache_corrupted=: ;;
2179     ,);;
2180     *)
2181       if test "x$ac_old_val" != "x$ac_new_val"; then
2182         # differences in whitespace do not lead to failure.
2183         ac_old_val_w=`echo x $ac_old_val`
2184         ac_new_val_w=`echo x $ac_new_val`
2185         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188           ac_cache_corrupted=:
2189         else
2190           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192           eval $ac_var=\$ac_old_val
2193         fi
2194         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2195 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2196         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2198       fi;;
2199   esac
2200   # Pass precious variables to config.status.
2201   if test "$ac_new_set" = set; then
2202     case $ac_new_val in
2203     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204     *) ac_arg=$ac_var=$ac_new_val ;;
2205     esac
2206     case " $ac_configure_args " in
2207       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2208       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209     esac
2210   fi
2211 done
2212 if $ac_cache_corrupted; then
2213   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2218 fi
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2222
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228
2229
2230 ACLOCAL_AMFLAGS="-I m4 -I ."
2231
2232
2233
2234
2235
2236 $as_echo "#define PYGOBJECT_MAJOR_VERSION 3" >>confdefs.h
2237
2238 PYGOBJECT_MAJOR_VERSION=3
2239
2240
2241 $as_echo "#define PYGOBJECT_MINOR_VERSION 18" >>confdefs.h
2242
2243 PYGOBJECT_MINOR_VERSION=18
2244
2245
2246 $as_echo "#define PYGOBJECT_MICRO_VERSION 1" >>confdefs.h
2247
2248 PYGOBJECT_MICRO_VERSION=1
2249
2250
2251 ac_config_headers="$ac_config_headers config.h"
2252
2253 # Check whether --enable-silent-rules was given.
2254 if test "${enable_silent_rules+set}" = set; then :
2255   enableval=$enable_silent_rules;
2256 fi
2257
2258 case $enable_silent_rules in
2259 yes) AM_DEFAULT_VERBOSITY=0;;
2260 no)  AM_DEFAULT_VERBOSITY=1;;
2261 *)   AM_DEFAULT_VERBOSITY=0;;
2262 esac
2263 am_make=${MAKE-make}
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2265 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2266 if ${am_cv_make_support_nested_variables+:} false; then :
2267   $as_echo_n "(cached) " >&6
2268 else
2269   if $as_echo 'TRUE=$(BAR$(V))
2270 BAR0=false
2271 BAR1=true
2272 V=1
2273 am__doit:
2274         @$(TRUE)
2275 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2276   am_cv_make_support_nested_variables=yes
2277 else
2278   am_cv_make_support_nested_variables=no
2279 fi
2280 fi
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2282 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2283 if test $am_cv_make_support_nested_variables = yes; then
2284     AM_V='$(V)'
2285   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2286 else
2287   AM_V=$AM_DEFAULT_VERBOSITY
2288   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2289 fi
2290 AM_BACKSLASH='\'
2291
2292 am__api_version='1.11'
2293
2294 ac_aux_dir=
2295 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2296   if test -f "$ac_dir/install-sh"; then
2297     ac_aux_dir=$ac_dir
2298     ac_install_sh="$ac_aux_dir/install-sh -c"
2299     break
2300   elif test -f "$ac_dir/install.sh"; then
2301     ac_aux_dir=$ac_dir
2302     ac_install_sh="$ac_aux_dir/install.sh -c"
2303     break
2304   elif test -f "$ac_dir/shtool"; then
2305     ac_aux_dir=$ac_dir
2306     ac_install_sh="$ac_aux_dir/shtool install -c"
2307     break
2308   fi
2309 done
2310 if test -z "$ac_aux_dir"; then
2311   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2312 fi
2313
2314 # These three variables are undocumented and unsupported,
2315 # and are intended to be withdrawn in a future Autoconf release.
2316 # They can cause serious problems if a builder's source tree is in a directory
2317 # whose full name contains unusual characters.
2318 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2319 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2320 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2321
2322
2323 # Find a good install program.  We prefer a C program (faster),
2324 # so one script is as good as another.  But avoid the broken or
2325 # incompatible versions:
2326 # SysV /etc/install, /usr/sbin/install
2327 # SunOS /usr/etc/install
2328 # IRIX /sbin/install
2329 # AIX /bin/install
2330 # AmigaOS /C/install, which installs bootblocks on floppy discs
2331 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2332 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2333 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2334 # OS/2's system install, which has a completely different semantic
2335 # ./install, which can be erroneously created by make from ./install.sh.
2336 # Reject install programs that cannot install multiple files.
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2338 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2339 if test -z "$INSTALL"; then
2340 if ${ac_cv_path_install+:} false; then :
2341   $as_echo_n "(cached) " >&6
2342 else
2343   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2345 do
2346   IFS=$as_save_IFS
2347   test -z "$as_dir" && as_dir=.
2348     # Account for people who put trailing slashes in PATH elements.
2349 case $as_dir/ in #((
2350   ./ | .// | /[cC]/* | \
2351   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2352   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2353   /usr/ucb/* ) ;;
2354   *)
2355     # OSF1 and SCO ODT 3.0 have their own names for install.
2356     # Don't use installbsd from OSF since it installs stuff as root
2357     # by default.
2358     for ac_prog in ginstall scoinst install; do
2359       for ac_exec_ext in '' $ac_executable_extensions; do
2360         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2361           if test $ac_prog = install &&
2362             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2363             # AIX install.  It has an incompatible calling convention.
2364             :
2365           elif test $ac_prog = install &&
2366             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2367             # program-specific install script used by HP pwplus--don't use.
2368             :
2369           else
2370             rm -rf conftest.one conftest.two conftest.dir
2371             echo one > conftest.one
2372             echo two > conftest.two
2373             mkdir conftest.dir
2374             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2375               test -s conftest.one && test -s conftest.two &&
2376               test -s conftest.dir/conftest.one &&
2377               test -s conftest.dir/conftest.two
2378             then
2379               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2380               break 3
2381             fi
2382           fi
2383         fi
2384       done
2385     done
2386     ;;
2387 esac
2388
2389   done
2390 IFS=$as_save_IFS
2391
2392 rm -rf conftest.one conftest.two conftest.dir
2393
2394 fi
2395   if test "${ac_cv_path_install+set}" = set; then
2396     INSTALL=$ac_cv_path_install
2397   else
2398     # As a last resort, use the slow shell script.  Don't cache a
2399     # value for INSTALL within a source directory, because that will
2400     # break other packages using the cache if that directory is
2401     # removed, or if the value is a relative name.
2402     INSTALL=$ac_install_sh
2403   fi
2404 fi
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2406 $as_echo "$INSTALL" >&6; }
2407
2408 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2409 # It thinks the first close brace ends the variable substitution.
2410 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2411
2412 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2413
2414 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2415
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2417 $as_echo_n "checking whether build environment is sane... " >&6; }
2418 # Just in case
2419 sleep 1
2420 echo timestamp > conftest.file
2421 # Reject unsafe characters in $srcdir or the absolute working directory
2422 # name.  Accept space and tab only in the latter.
2423 am_lf='
2424 '
2425 case `pwd` in
2426   *[\\\"\#\$\&\'\`$am_lf]*)
2427     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2428 esac
2429 case $srcdir in
2430   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2431     as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2432 esac
2433
2434 # Do `set' in a subshell so we don't clobber the current shell's
2435 # arguments.  Must try -L first in case configure is actually a
2436 # symlink; some systems play weird games with the mod time of symlinks
2437 # (eg FreeBSD returns the mod time of the symlink's containing
2438 # directory).
2439 if (
2440    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2441    if test "$*" = "X"; then
2442       # -L didn't work.
2443       set X `ls -t "$srcdir/configure" conftest.file`
2444    fi
2445    rm -f conftest.file
2446    if test "$*" != "X $srcdir/configure conftest.file" \
2447       && test "$*" != "X conftest.file $srcdir/configure"; then
2448
2449       # If neither matched, then we have a broken ls.  This can happen
2450       # if, for instance, CONFIG_SHELL is bash and it inherits a
2451       # broken ls alias from the environment.  This has actually
2452       # happened.  Such a system could not be considered "sane".
2453       as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2454 alias in your environment" "$LINENO" 5
2455    fi
2456
2457    test "$2" = conftest.file
2458    )
2459 then
2460    # Ok.
2461    :
2462 else
2463    as_fn_error $? "newly created file is older than distributed files!
2464 Check your system clock" "$LINENO" 5
2465 fi
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2467 $as_echo "yes" >&6; }
2468 test "$program_prefix" != NONE &&
2469   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2470 # Use a double $ so make ignores it.
2471 test "$program_suffix" != NONE &&
2472   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2473 # Double any \ or $.
2474 # By default was `s,x,x', remove it if useless.
2475 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2476 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2477
2478 # expand $ac_aux_dir to an absolute path
2479 am_aux_dir=`cd $ac_aux_dir && pwd`
2480
2481 if test x"${MISSING+set}" != xset; then
2482   case $am_aux_dir in
2483   *\ * | *\     *)
2484     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2485   *)
2486     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2487   esac
2488 fi
2489 # Use eval to expand $SHELL
2490 if eval "$MISSING --run true"; then
2491   am_missing_run="$MISSING --run "
2492 else
2493   am_missing_run=
2494   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2495 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2496 fi
2497
2498 if test x"${install_sh}" != xset; then
2499   case $am_aux_dir in
2500   *\ * | *\     *)
2501     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2502   *)
2503     install_sh="\${SHELL} $am_aux_dir/install-sh"
2504   esac
2505 fi
2506
2507 # Installed binaries are usually stripped using `strip' when the user
2508 # run `make install-strip'.  However `strip' might not be the right
2509 # tool to use in cross-compilation environments, therefore Automake
2510 # will honor the `STRIP' environment variable to overrule this program.
2511 if test "$cross_compiling" != no; then
2512   if test -n "$ac_tool_prefix"; then
2513   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2514 set dummy ${ac_tool_prefix}strip; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_STRIP+:} false; then :
2518   $as_echo_n "(cached) " >&6
2519 else
2520   if test -n "$STRIP"; then
2521   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2522 else
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524 for as_dir in $PATH
2525 do
2526   IFS=$as_save_IFS
2527   test -z "$as_dir" && as_dir=.
2528     for ac_exec_ext in '' $ac_executable_extensions; do
2529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2532     break 2
2533   fi
2534 done
2535   done
2536 IFS=$as_save_IFS
2537
2538 fi
2539 fi
2540 STRIP=$ac_cv_prog_STRIP
2541 if test -n "$STRIP"; then
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2543 $as_echo "$STRIP" >&6; }
2544 else
2545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2547 fi
2548
2549
2550 fi
2551 if test -z "$ac_cv_prog_STRIP"; then
2552   ac_ct_STRIP=$STRIP
2553   # Extract the first word of "strip", so it can be a program name with args.
2554 set dummy strip; ac_word=$2
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2556 $as_echo_n "checking for $ac_word... " >&6; }
2557 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2558   $as_echo_n "(cached) " >&6
2559 else
2560   if test -n "$ac_ct_STRIP"; then
2561   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2562 else
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 for as_dir in $PATH
2565 do
2566   IFS=$as_save_IFS
2567   test -z "$as_dir" && as_dir=.
2568     for ac_exec_ext in '' $ac_executable_extensions; do
2569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2570     ac_cv_prog_ac_ct_STRIP="strip"
2571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2572     break 2
2573   fi
2574 done
2575   done
2576 IFS=$as_save_IFS
2577
2578 fi
2579 fi
2580 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2581 if test -n "$ac_ct_STRIP"; then
2582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2583 $as_echo "$ac_ct_STRIP" >&6; }
2584 else
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2586 $as_echo "no" >&6; }
2587 fi
2588
2589   if test "x$ac_ct_STRIP" = x; then
2590     STRIP=":"
2591   else
2592     case $cross_compiling:$ac_tool_warned in
2593 yes:)
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2596 ac_tool_warned=yes ;;
2597 esac
2598     STRIP=$ac_ct_STRIP
2599   fi
2600 else
2601   STRIP="$ac_cv_prog_STRIP"
2602 fi
2603
2604 fi
2605 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2606
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2608 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2609 if test -z "$MKDIR_P"; then
2610   if ${ac_cv_path_mkdir+:} false; then :
2611   $as_echo_n "(cached) " >&6
2612 else
2613   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2614 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2615 do
2616   IFS=$as_save_IFS
2617   test -z "$as_dir" && as_dir=.
2618     for ac_prog in mkdir gmkdir; do
2619          for ac_exec_ext in '' $ac_executable_extensions; do
2620            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2621            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2622              'mkdir (GNU coreutils) '* | \
2623              'mkdir (coreutils) '* | \
2624              'mkdir (fileutils) '4.1*)
2625                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2626                break 3;;
2627            esac
2628          done
2629        done
2630   done
2631 IFS=$as_save_IFS
2632
2633 fi
2634
2635   test -d ./--version && rmdir ./--version
2636   if test "${ac_cv_path_mkdir+set}" = set; then
2637     MKDIR_P="$ac_cv_path_mkdir -p"
2638   else
2639     # As a last resort, use the slow shell script.  Don't cache a
2640     # value for MKDIR_P within a source directory, because that will
2641     # break other packages using the cache if that directory is
2642     # removed, or if the value is a relative name.
2643     MKDIR_P="$ac_install_sh -d"
2644   fi
2645 fi
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2647 $as_echo "$MKDIR_P" >&6; }
2648
2649 mkdir_p="$MKDIR_P"
2650 case $mkdir_p in
2651   [\\/$]* | ?:[\\/]*) ;;
2652   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2653 esac
2654
2655 for ac_prog in gawk mawk nawk awk
2656 do
2657   # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if ${ac_cv_prog_AWK+:} false; then :
2662   $as_echo_n "(cached) " >&6
2663 else
2664   if test -n "$AWK"; then
2665   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670   IFS=$as_save_IFS
2671   test -z "$as_dir" && as_dir=.
2672     for ac_exec_ext in '' $ac_executable_extensions; do
2673   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2674     ac_cv_prog_AWK="$ac_prog"
2675     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676     break 2
2677   fi
2678 done
2679   done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 AWK=$ac_cv_prog_AWK
2685 if test -n "$AWK"; then
2686   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2687 $as_echo "$AWK" >&6; }
2688 else
2689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694   test -n "$AWK" && break
2695 done
2696
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2698 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2699 set x ${MAKE-make}
2700 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2701 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2702   $as_echo_n "(cached) " >&6
2703 else
2704   cat >conftest.make <<\_ACEOF
2705 SHELL = /bin/sh
2706 all:
2707         @echo '@@@%%%=$(MAKE)=@@@%%%'
2708 _ACEOF
2709 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2710 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2711   *@@@%%%=?*=@@@%%%*)
2712     eval ac_cv_prog_make_${ac_make}_set=yes;;
2713   *)
2714     eval ac_cv_prog_make_${ac_make}_set=no;;
2715 esac
2716 rm -f conftest.make
2717 fi
2718 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2720 $as_echo "yes" >&6; }
2721   SET_MAKE=
2722 else
2723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2724 $as_echo "no" >&6; }
2725   SET_MAKE="MAKE=${MAKE-make}"
2726 fi
2727
2728 rm -rf .tst 2>/dev/null
2729 mkdir .tst 2>/dev/null
2730 if test -d .tst; then
2731   am__leading_dot=.
2732 else
2733   am__leading_dot=_
2734 fi
2735 rmdir .tst 2>/dev/null
2736
2737 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2738   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2739   # is not polluted with repeated "-I."
2740   am__isrc=' -I$(srcdir)'
2741   # test to see if srcdir already configured
2742   if test -f $srcdir/config.status; then
2743     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2744   fi
2745 fi
2746
2747 # test whether we have cygpath
2748 if test -z "$CYGPATH_W"; then
2749   if (cygpath --version) >/dev/null 2>/dev/null; then
2750     CYGPATH_W='cygpath -w'
2751   else
2752     CYGPATH_W=echo
2753   fi
2754 fi
2755
2756
2757 # Define the identity of the package.
2758  PACKAGE='pygobject'
2759  VERSION='3.18.1'
2760
2761
2762 cat >>confdefs.h <<_ACEOF
2763 #define PACKAGE "$PACKAGE"
2764 _ACEOF
2765
2766
2767 cat >>confdefs.h <<_ACEOF
2768 #define VERSION "$VERSION"
2769 _ACEOF
2770
2771 # Some tools Automake needs.
2772
2773 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2774
2775
2776 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2777
2778
2779 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2780
2781
2782 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2783
2784
2785 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2786
2787 # We need awk for the "check" target.  The system "awk" is bad on
2788 # some platforms.
2789 # Always define AMTAR for backward compatibility.  Yes, it's still used
2790 # in the wild :-(  We should find a proper way to deprecate it ...
2791 AMTAR='$${TAR-tar}'
2792
2793 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2794
2795
2796
2797
2798
2799
2800 ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
2801
2802 # Make sure we can run config.sub.
2803 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2804   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2805
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2807 $as_echo_n "checking build system type... " >&6; }
2808 if ${ac_cv_build+:} false; then :
2809   $as_echo_n "(cached) " >&6
2810 else
2811   ac_build_alias=$build_alias
2812 test "x$ac_build_alias" = x &&
2813   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2814 test "x$ac_build_alias" = x &&
2815   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2816 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2817   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2818
2819 fi
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2821 $as_echo "$ac_cv_build" >&6; }
2822 case $ac_cv_build in
2823 *-*-*) ;;
2824 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2825 esac
2826 build=$ac_cv_build
2827 ac_save_IFS=$IFS; IFS='-'
2828 set x $ac_cv_build
2829 shift
2830 build_cpu=$1
2831 build_vendor=$2
2832 shift; shift
2833 # Remember, the first character of IFS is used to create $*,
2834 # except with old shells:
2835 build_os=$*
2836 IFS=$ac_save_IFS
2837 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2838
2839
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841 $as_echo_n "checking host system type... " >&6; }
2842 if ${ac_cv_host+:} false; then :
2843   $as_echo_n "(cached) " >&6
2844 else
2845   if test "x$host_alias" = x; then
2846   ac_cv_host=$ac_cv_build
2847 else
2848   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2850 fi
2851
2852 fi
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854 $as_echo "$ac_cv_host" >&6; }
2855 case $ac_cv_host in
2856 *-*-*) ;;
2857 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2858 esac
2859 host=$ac_cv_host
2860 ac_save_IFS=$IFS; IFS='-'
2861 set x $ac_cv_host
2862 shift
2863 host_cpu=$1
2864 host_vendor=$2
2865 shift; shift
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2868 host_os=$*
2869 IFS=$ac_save_IFS
2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2871
2872
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build time linking with Python (Darwin and Win32)" >&5
2874 $as_echo_n "checking for build time linking with Python (Darwin and Win32)... " >&6; }
2875 case "$host" in
2876   *-*-mingw*|*-*-cygwin*)
2877     os_win32=yes
2878     link_python_libs=yes
2879     OS_EXT=dll
2880     ;;
2881   *-*-darwin*)
2882     os_win32=no
2883     link_python_libs=yes
2884     OS_EXT=dylib
2885     ;;
2886   *)
2887     os_win32=no
2888     link_python_libs=no
2889     OS_EXT=so
2890     ;;
2891 esac
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $link_python_libs" >&5
2893 $as_echo "$link_python_libs" >&6; }
2894  if test "$os_win32" = "yes"; then
2895   OS_WIN32_TRUE=
2896   OS_WIN32_FALSE='#'
2897 else
2898   OS_WIN32_TRUE='#'
2899   OS_WIN32_FALSE=
2900 fi
2901
2902
2903
2904
2905 cat >>confdefs.h <<_ACEOF
2906 #define OS_EXT "$OS_EXT"
2907 _ACEOF
2908
2909
2910
2911 case `pwd` in
2912   *\ * | *\     *)
2913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2914 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2915 esac
2916
2917
2918
2919 macro_version='2.4.2'
2920 macro_revision='1.3337'
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934 ltmain="$ac_aux_dir/ltmain.sh"
2935
2936 # Backslashify metacharacters that are still active within
2937 # double-quoted strings.
2938 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2939
2940 # Same as above, but do not quote variable references.
2941 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2942
2943 # Sed substitution to delay expansion of an escaped shell variable in a
2944 # double_quote_subst'ed string.
2945 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2946
2947 # Sed substitution to delay expansion of an escaped single quote.
2948 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2949
2950 # Sed substitution to avoid accidental globbing in evaled expressions
2951 no_glob_subst='s/\*/\\\*/g'
2952
2953 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2954 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2955 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2956
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2958 $as_echo_n "checking how to print strings... " >&6; }
2959 # Test print first, because it will be a builtin if present.
2960 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2961    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2962   ECHO='print -r --'
2963 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2964   ECHO='printf %s\n'
2965 else
2966   # Use this function as a fallback that always works.
2967   func_fallback_echo ()
2968   {
2969     eval 'cat <<_LTECHO_EOF
2970 $1
2971 _LTECHO_EOF'
2972   }
2973   ECHO='func_fallback_echo'
2974 fi
2975
2976 # func_echo_all arg...
2977 # Invoke $ECHO with all args, space-separated.
2978 func_echo_all ()
2979 {
2980     $ECHO ""
2981 }
2982
2983 case "$ECHO" in
2984   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2985 $as_echo "printf" >&6; } ;;
2986   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2987 $as_echo "print -r" >&6; } ;;
2988   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2989 $as_echo "cat" >&6; } ;;
2990 esac
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005 DEPDIR="${am__leading_dot}deps"
3006
3007 ac_config_commands="$ac_config_commands depfiles"
3008
3009
3010 am_make=${MAKE-make}
3011 cat > confinc << 'END'
3012 am__doit:
3013         @echo this is the am__doit target
3014 .PHONY: am__doit
3015 END
3016 # If we don't find an include directive, just comment out the code.
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3018 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3019 am__include="#"
3020 am__quote=
3021 _am_result=none
3022 # First try GNU make style include.
3023 echo "include confinc" > confmf
3024 # Ignore all kinds of additional output from `make'.
3025 case `$am_make -s -f confmf 2> /dev/null` in #(
3026 *the\ am__doit\ target*)
3027   am__include=include
3028   am__quote=
3029   _am_result=GNU
3030   ;;
3031 esac
3032 # Now try BSD make style include.
3033 if test "$am__include" = "#"; then
3034    echo '.include "confinc"' > confmf
3035    case `$am_make -s -f confmf 2> /dev/null` in #(
3036    *the\ am__doit\ target*)
3037      am__include=.include
3038      am__quote="\""
3039      _am_result=BSD
3040      ;;
3041    esac
3042 fi
3043
3044
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3046 $as_echo "$_am_result" >&6; }
3047 rm -f confinc confmf
3048
3049 # Check whether --enable-dependency-tracking was given.
3050 if test "${enable_dependency_tracking+set}" = set; then :
3051   enableval=$enable_dependency_tracking;
3052 fi
3053
3054 if test "x$enable_dependency_tracking" != xno; then
3055   am_depcomp="$ac_aux_dir/depcomp"
3056   AMDEPBACKSLASH='\'
3057   am__nodep='_no'
3058 fi
3059  if test "x$enable_dependency_tracking" != xno; then
3060   AMDEP_TRUE=
3061   AMDEP_FALSE='#'
3062 else
3063   AMDEP_TRUE='#'
3064   AMDEP_FALSE=
3065 fi
3066
3067
3068 ac_ext=c
3069 ac_cpp='$CPP $CPPFLAGS'
3070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3073 if test -n "$ac_tool_prefix"; then
3074   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3075 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3077 $as_echo_n "checking for $ac_word... " >&6; }
3078 if ${ac_cv_prog_CC+:} false; then :
3079   $as_echo_n "(cached) " >&6
3080 else
3081   if test -n "$CC"; then
3082   ac_cv_prog_CC="$CC" # Let the user override the test.
3083 else
3084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3085 for as_dir in $PATH
3086 do
3087   IFS=$as_save_IFS
3088   test -z "$as_dir" && as_dir=.
3089     for ac_exec_ext in '' $ac_executable_extensions; do
3090   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3092     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093     break 2
3094   fi
3095 done
3096   done
3097 IFS=$as_save_IFS
3098
3099 fi
3100 fi
3101 CC=$ac_cv_prog_CC
3102 if test -n "$CC"; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3104 $as_echo "$CC" >&6; }
3105 else
3106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3107 $as_echo "no" >&6; }
3108 fi
3109
3110
3111 fi
3112 if test -z "$ac_cv_prog_CC"; then
3113   ac_ct_CC=$CC
3114   # Extract the first word of "gcc", so it can be a program name with args.
3115 set dummy gcc; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3119   $as_echo_n "(cached) " >&6
3120 else
3121   if test -n "$ac_ct_CC"; then
3122   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3126 do
3127   IFS=$as_save_IFS
3128   test -z "$as_dir" && as_dir=.
3129     for ac_exec_ext in '' $ac_executable_extensions; do
3130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3131     ac_cv_prog_ac_ct_CC="gcc"
3132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133     break 2
3134   fi
3135 done
3136   done
3137 IFS=$as_save_IFS
3138
3139 fi
3140 fi
3141 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3142 if test -n "$ac_ct_CC"; then
3143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3144 $as_echo "$ac_ct_CC" >&6; }
3145 else
3146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3148 fi
3149
3150   if test "x$ac_ct_CC" = x; then
3151     CC=""
3152   else
3153     case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159     CC=$ac_ct_CC
3160   fi
3161 else
3162   CC="$ac_cv_prog_CC"
3163 fi
3164
3165 if test -z "$CC"; then
3166           if test -n "$ac_tool_prefix"; then
3167     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3168 set dummy ${ac_tool_prefix}cc; ac_word=$2
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3170 $as_echo_n "checking for $ac_word... " >&6; }
3171 if ${ac_cv_prog_CC+:} false; then :
3172   $as_echo_n "(cached) " >&6
3173 else
3174   if test -n "$CC"; then
3175   ac_cv_prog_CC="$CC" # Let the user override the test.
3176 else
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180   IFS=$as_save_IFS
3181   test -z "$as_dir" && as_dir=.
3182     for ac_exec_ext in '' $ac_executable_extensions; do
3183   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3184     ac_cv_prog_CC="${ac_tool_prefix}cc"
3185     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3186     break 2
3187   fi
3188 done
3189   done
3190 IFS=$as_save_IFS
3191
3192 fi
3193 fi
3194 CC=$ac_cv_prog_CC
3195 if test -n "$CC"; then
3196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3197 $as_echo "$CC" >&6; }
3198 else
3199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3201 fi
3202
3203
3204   fi
3205 fi
3206 if test -z "$CC"; then
3207   # Extract the first word of "cc", so it can be a program name with args.
3208 set dummy cc; ac_word=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_prog_CC+:} false; then :
3212   $as_echo_n "(cached) " >&6
3213 else
3214   if test -n "$CC"; then
3215   ac_cv_prog_CC="$CC" # Let the user override the test.
3216 else
3217   ac_prog_rejected=no
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223     for ac_exec_ext in '' $ac_executable_extensions; do
3224   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3225     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3226        ac_prog_rejected=yes
3227        continue
3228      fi
3229     ac_cv_prog_CC="cc"
3230     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231     break 2
3232   fi
3233 done
3234   done
3235 IFS=$as_save_IFS
3236
3237 if test $ac_prog_rejected = yes; then
3238   # We found a bogon in the path, so make sure we never use it.
3239   set dummy $ac_cv_prog_CC
3240   shift
3241   if test $# != 0; then
3242     # We chose a different compiler from the bogus one.
3243     # However, it has the same basename, so the bogon will be chosen
3244     # first if we set CC to just the basename; use the full file name.
3245     shift
3246     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3247   fi
3248 fi
3249 fi
3250 fi
3251 CC=$ac_cv_prog_CC
3252 if test -n "$CC"; then
3253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3254 $as_echo "$CC" >&6; }
3255 else
3256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 fi
3262 if test -z "$CC"; then
3263   if test -n "$ac_tool_prefix"; then
3264   for ac_prog in cl.exe
3265   do
3266     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if ${ac_cv_prog_CC+:} false; then :
3271   $as_echo_n "(cached) " >&6
3272 else
3273   if test -n "$CC"; then
3274   ac_cv_prog_CC="$CC" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279   IFS=$as_save_IFS
3280   test -z "$as_dir" && as_dir=.
3281     for ac_exec_ext in '' $ac_executable_extensions; do
3282   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3284     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285     break 2
3286   fi
3287 done
3288   done
3289 IFS=$as_save_IFS
3290
3291 fi
3292 fi
3293 CC=$ac_cv_prog_CC
3294 if test -n "$CC"; then
3295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3296 $as_echo "$CC" >&6; }
3297 else
3298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 fi
3301
3302
3303     test -n "$CC" && break
3304   done
3305 fi
3306 if test -z "$CC"; then
3307   ac_ct_CC=$CC
3308   for ac_prog in cl.exe
3309 do
3310   # Extract the first word of "$ac_prog", so it can be a program name with args.
3311 set dummy $ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3315   $as_echo_n "(cached) " >&6
3316 else
3317   if test -n "$ac_ct_CC"; then
3318   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323   IFS=$as_save_IFS
3324   test -z "$as_dir" && as_dir=.
3325     for ac_exec_ext in '' $ac_executable_extensions; do
3326   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327     ac_cv_prog_ac_ct_CC="$ac_prog"
3328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329     break 2
3330   fi
3331 done
3332   done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3341 else
3342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346
3347   test -n "$ac_ct_CC" && break
3348 done
3349
3350   if test "x$ac_ct_CC" = x; then
3351     CC=""
3352   else
3353     case $cross_compiling:$ac_tool_warned in
3354 yes:)
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3357 ac_tool_warned=yes ;;
3358 esac
3359     CC=$ac_ct_CC
3360   fi
3361 fi
3362
3363 fi
3364
3365
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details" "$LINENO" 5; }
3370
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373 set X $ac_compile
3374 ac_compiler=$2
3375 for ac_option in --version -v -V -qversion; do
3376   { { ac_try="$ac_compiler $ac_option >&5"
3377 case "(($ac_try" in
3378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379   *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3384   ac_status=$?
3385   if test -s conftest.err; then
3386     sed '10a\
3387 ... rest of stderr output deleted ...
3388          10q' conftest.err >conftest.er1
3389     cat conftest.er1 >&5
3390   fi
3391   rm -f conftest.er1 conftest.err
3392   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393   test $ac_status = 0; }
3394 done
3395
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h.  */
3398
3399 int
3400 main ()
3401 {
3402
3403   ;
3404   return 0;
3405 }
3406 _ACEOF
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3411 # of exeext.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3415
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3418
3419 ac_rmfiles=
3420 for ac_file in $ac_files
3421 do
3422   case $ac_file in
3423     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3425   esac
3426 done
3427 rm -f $ac_rmfiles
3428
3429 if { { ac_try="$ac_link_default"
3430 case "(($ac_try" in
3431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432   *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436   (eval "$ac_link_default") 2>&5
3437   ac_status=$?
3438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439   test $ac_status = 0; }; then :
3440   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3444 # Autoconf.
3445 for ac_file in $ac_files ''
3446 do
3447   test -f "$ac_file" || continue
3448   case $ac_file in
3449     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3450         ;;
3451     [ab].out )
3452         # We found the default executable, but exeext='' is most
3453         # certainly right.
3454         break;;
3455     *.* )
3456         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3457         then :; else
3458            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3459         fi
3460         # We set ac_cv_exeext here because the later test for it is not
3461         # safe: cross compilers may not add the suffix if given an `-o'
3462         # argument, so we may need to know it at that point already.
3463         # Even if this section looks crufty: it has the advantage of
3464         # actually working.
3465         break;;
3466     * )
3467         break;;
3468   esac
3469 done
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3471
3472 else
3473   ac_file=''
3474 fi
3475 if test -z "$ac_file"; then :
3476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3480
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error 77 "C compiler cannot create executables
3484 See \`config.log' for more details" "$LINENO" 5; }
3485 else
3486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3488 fi
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492 $as_echo "$ac_file" >&6; }
3493 ac_exeext=$ac_cv_exeext
3494
3495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3496 ac_clean_files=$ac_clean_files_save
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498 $as_echo_n "checking for suffix of executables... " >&6; }
3499 if { { ac_try="$ac_link"
3500 case "(($ac_try" in
3501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502   *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506   (eval "$ac_link") 2>&5
3507   ac_status=$?
3508   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509   test $ac_status = 0; }; then :
3510   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3511 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3512 # work properly (i.e., refer to `conftest.exe'), while it won't with
3513 # `rm'.
3514 for ac_file in conftest.exe conftest conftest.*; do
3515   test -f "$ac_file" || continue
3516   case $ac_file in
3517     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519           break;;
3520     * ) break;;
3521   esac
3522 done
3523 else
3524   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3527 See \`config.log' for more details" "$LINENO" 5; }
3528 fi
3529 rm -f conftest conftest$ac_cv_exeext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531 $as_echo "$ac_cv_exeext" >&6; }
3532
3533 rm -f conftest.$ac_ext
3534 EXEEXT=$ac_cv_exeext
3535 ac_exeext=$EXEEXT
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h.  */
3538 #include <stdio.h>
3539 int
3540 main ()
3541 {
3542 FILE *f = fopen ("conftest.out", "w");
3543  return ferror (f) || fclose (f) != 0;
3544
3545   ;
3546   return 0;
3547 }
3548 _ACEOF
3549 ac_clean_files="$ac_clean_files conftest.out"
3550 # Check that the compiler produces executables we can run.  If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 if test "$cross_compiling" != yes; then
3555   { { ac_try="$ac_link"
3556 case "(($ac_try" in
3557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558   *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562   (eval "$ac_link") 2>&5
3563   ac_status=$?
3564   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565   test $ac_status = 0; }
3566   if { ac_try='./conftest$ac_cv_exeext'
3567   { { case "(($ac_try" in
3568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569   *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573   (eval "$ac_try") 2>&5
3574   ac_status=$?
3575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576   test $ac_status = 0; }; }; then
3577     cross_compiling=no
3578   else
3579     if test "$cross_compiling" = maybe; then
3580         cross_compiling=yes
3581     else
3582         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details" "$LINENO" 5; }
3587     fi
3588   fi
3589 fi
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3592
3593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if ${ac_cv_objext+:} false; then :
3598   $as_echo_n "(cached) " >&6
3599 else
3600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h.  */
3602
3603 int
3604 main ()
3605 {
3606
3607   ;
3608   return 0;
3609 }
3610 _ACEOF
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
3613 case "(($ac_try" in
3614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615   *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619   (eval "$ac_compile") 2>&5
3620   ac_status=$?
3621   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622   test $ac_status = 0; }; then :
3623   for ac_file in conftest.o conftest.obj conftest.*; do
3624   test -f "$ac_file" || continue;
3625   case $ac_file in
3626     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3628        break;;
3629   esac
3630 done
3631 else
3632   $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3634
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details" "$LINENO" 5; }
3639 fi
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3641 fi
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3645 ac_objext=$OBJEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if ${ac_cv_c_compiler_gnu+:} false; then :
3649   $as_echo_n "(cached) " >&6
3650 else
3651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h.  */
3653
3654 int
3655 main ()
3656 {
3657 #ifndef __GNUC__
3658        choke me
3659 #endif
3660
3661   ;
3662   return 0;
3663 }
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666   ac_compiler_gnu=yes
3667 else
3668   ac_compiler_gnu=no
3669 fi
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3672
3673 fi
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3677   GCC=yes
3678 else
3679   GCC=
3680 fi
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if ${ac_cv_prog_cc_g+:} false; then :
3686   $as_echo_n "(cached) " >&6
3687 else
3688   ac_save_c_werror_flag=$ac_c_werror_flag
3689    ac_c_werror_flag=yes
3690    ac_cv_prog_cc_g=no
3691    CFLAGS="-g"
3692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h.  */
3694
3695 int
3696 main ()
3697 {
3698
3699   ;
3700   return 0;
3701 }
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704   ac_cv_prog_cc_g=yes
3705 else
3706   CFLAGS=""
3707       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h.  */
3709
3710 int
3711 main ()
3712 {
3713
3714   ;
3715   return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3719
3720 else
3721   ac_c_werror_flag=$ac_save_c_werror_flag
3722          CFLAGS="-g"
3723          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h.  */
3725
3726 int
3727 main ()
3728 {
3729
3730   ;
3731   return 0;
3732 }
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735   ac_cv_prog_cc_g=yes
3736 fi
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3738 fi
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3740 fi
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742    ac_c_werror_flag=$ac_save_c_werror_flag
3743 fi
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747   CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749   if test "$GCC" = yes; then
3750     CFLAGS="-g -O2"
3751   else
3752     CFLAGS="-g"
3753   fi
3754 else
3755   if test "$GCC" = yes; then
3756     CFLAGS="-O2"
3757   else
3758     CFLAGS=
3759   fi
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if ${ac_cv_prog_cc_c89+:} false; then :
3764   $as_echo_n "(cached) " >&6
3765 else
3766   ac_cv_prog_cc_c89=no
3767 ac_save_CC=$CC
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h.  */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 struct stat;
3773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3774 struct buf { int x; };
3775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3776 static char *e (p, i)
3777      char **p;
3778      int i;
3779 {
3780   return p[i];
3781 }
3782 static char *f (char * (*g) (char **, int), char **p, ...)
3783 {
3784   char *s;
3785   va_list v;
3786   va_start (v,p);
3787   s = g (p, va_arg (v,int));
3788   va_end (v);
3789   return s;
3790 }
3791
3792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3793    function prototypes and stuff, but not '\xHH' hex character constants.
3794    These don't provoke an error unfortunately, instead are silently treated
3795    as 'x'.  The following induces an error, until -std is added to get
3796    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3797    array size at least.  It's necessary to write '\x00'==0 to get something
3798    that's true only with -std.  */
3799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3800
3801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3802    inside strings and character constants.  */
3803 #define FOO(x) 'x'
3804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3805
3806 int test (int i, double x);
3807 struct s1 {int (*f) (int a);};
3808 struct s2 {int (*f) (double a);};
3809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3810 int argc;
3811 char **argv;
3812 int
3813 main ()
3814 {
3815 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3816   ;
3817   return 0;
3818 }
3819 _ACEOF
3820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3821         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3822 do
3823   CC="$ac_save_CC $ac_arg"
3824   if ac_fn_c_try_compile "$LINENO"; then :
3825   ac_cv_prog_cc_c89=$ac_arg
3826 fi
3827 rm -f core conftest.err conftest.$ac_objext
3828   test "x$ac_cv_prog_cc_c89" != "xno" && break
3829 done
3830 rm -f conftest.$ac_ext
3831 CC=$ac_save_CC
3832
3833 fi
3834 # AC_CACHE_VAL
3835 case "x$ac_cv_prog_cc_c89" in
3836   x)
3837     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3839   xno)
3840     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3842   *)
3843     CC="$CC $ac_cv_prog_cc_c89"
3844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3846 esac
3847 if test "x$ac_cv_prog_cc_c89" != xno; then :
3848
3849 fi
3850
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3856
3857 depcc="$CC"   am_compiler_list=
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3860 $as_echo_n "checking dependency style of $depcc... " >&6; }
3861 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3862   $as_echo_n "(cached) " >&6
3863 else
3864   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3865   # We make a subdir and do the tests there.  Otherwise we can end up
3866   # making bogus files that we don't know about and never remove.  For
3867   # instance it was reported that on HP-UX the gcc test will end up
3868   # making a dummy file named `D' -- because `-MD' means `put the output
3869   # in D'.
3870   rm -rf conftest.dir
3871   mkdir conftest.dir
3872   # Copy depcomp to subdir because otherwise we won't find it if we're
3873   # using a relative directory.
3874   cp "$am_depcomp" conftest.dir
3875   cd conftest.dir
3876   # We will build objects and dependencies in a subdirectory because
3877   # it helps to detect inapplicable dependency modes.  For instance
3878   # both Tru64's cc and ICC support -MD to output dependencies as a
3879   # side effect of compilation, but ICC will put the dependencies in
3880   # the current directory while Tru64 will put them in the object
3881   # directory.
3882   mkdir sub
3883
3884   am_cv_CC_dependencies_compiler_type=none
3885   if test "$am_compiler_list" = ""; then
3886      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3887   fi
3888   am__universal=false
3889   case " $depcc " in #(
3890      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3891      esac
3892
3893   for depmode in $am_compiler_list; do
3894     # Setup a source with many dependencies, because some compilers
3895     # like to wrap large dependency lists on column 80 (with \), and
3896     # we should not choose a depcomp mode which is confused by this.
3897     #
3898     # We need to recreate these files for each test, as the compiler may
3899     # overwrite some of them when testing with obscure command lines.
3900     # This happens at least with the AIX C compiler.
3901     : > sub/conftest.c
3902     for i in 1 2 3 4 5 6; do
3903       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3904       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3905       # Solaris 8's {/usr,}/bin/sh.
3906       touch sub/conftst$i.h
3907     done
3908     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3909
3910     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3911     # mode.  It turns out that the SunPro C++ compiler does not properly
3912     # handle `-M -o', and we need to detect this.  Also, some Intel
3913     # versions had trouble with output in subdirs
3914     am__obj=sub/conftest.${OBJEXT-o}
3915     am__minus_obj="-o $am__obj"
3916     case $depmode in
3917     gcc)
3918       # This depmode causes a compiler race in universal mode.
3919       test "$am__universal" = false || continue
3920       ;;
3921     nosideeffect)
3922       # after this tag, mechanisms are not by side-effect, so they'll
3923       # only be used when explicitly requested
3924       if test "x$enable_dependency_tracking" = xyes; then
3925         continue
3926       else
3927         break
3928       fi
3929       ;;
3930     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3931       # This compiler won't grok `-c -o', but also, the minuso test has
3932       # not run yet.  These depmodes are late enough in the game, and
3933       # so weak that their functioning should not be impacted.
3934       am__obj=conftest.${OBJEXT-o}
3935       am__minus_obj=
3936       ;;
3937     none) break ;;
3938     esac
3939     if depmode=$depmode \
3940        source=sub/conftest.c object=$am__obj \
3941        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3942        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3943          >/dev/null 2>conftest.err &&
3944        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3945        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3946        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3947        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3948       # icc doesn't choke on unknown options, it will just issue warnings
3949       # or remarks (even with -Werror).  So we grep stderr for any message
3950       # that says an option was ignored or not supported.
3951       # When given -MP, icc 7.0 and 7.1 complain thusly:
3952       #   icc: Command line warning: ignoring option '-M'; no argument required
3953       # The diagnosis changed in icc 8.0:
3954       #   icc: Command line remark: option '-MP' not supported
3955       if (grep 'ignoring option' conftest.err ||
3956           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3957         am_cv_CC_dependencies_compiler_type=$depmode
3958         break
3959       fi
3960     fi
3961   done
3962
3963   cd ..
3964   rm -rf conftest.dir
3965 else
3966   am_cv_CC_dependencies_compiler_type=none
3967 fi
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3971 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3972 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3973
3974  if
3975   test "x$enable_dependency_tracking" != xno \
3976   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3977   am__fastdepCC_TRUE=
3978   am__fastdepCC_FALSE='#'
3979 else
3980   am__fastdepCC_TRUE='#'
3981   am__fastdepCC_FALSE=
3982 fi
3983
3984
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3986 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3987 if ${ac_cv_path_SED+:} false; then :
3988   $as_echo_n "(cached) " >&6
3989 else
3990             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3991      for ac_i in 1 2 3 4 5 6 7; do
3992        ac_script="$ac_script$as_nl$ac_script"
3993      done
3994      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3995      { ac_script=; unset ac_script;}
3996      if test -z "$SED"; then
3997   ac_path_SED_found=false
3998   # Loop through the user's path and test for each of PROGNAME-LIST
3999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH
4001 do
4002   IFS=$as_save_IFS
4003   test -z "$as_dir" && as_dir=.
4004     for ac_prog in sed gsed; do
4005     for ac_exec_ext in '' $ac_executable_extensions; do
4006       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4007       as_fn_executable_p "$ac_path_SED" || continue
4008 # Check for GNU ac_path_SED and select it if it is found.
4009   # Check for GNU $ac_path_SED
4010 case `"$ac_path_SED" --version 2>&1` in
4011 *GNU*)
4012   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4013 *)
4014   ac_count=0
4015   $as_echo_n 0123456789 >"conftest.in"
4016   while :
4017   do
4018     cat "conftest.in" "conftest.in" >"conftest.tmp"
4019     mv "conftest.tmp" "conftest.in"
4020     cp "conftest.in" "conftest.nl"
4021     $as_echo '' >> "conftest.nl"
4022     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024     as_fn_arith $ac_count + 1 && ac_count=$as_val
4025     if test $ac_count -gt ${ac_path_SED_max-0}; then
4026       # Best one so far, save it but keep looking for a better one
4027       ac_cv_path_SED="$ac_path_SED"
4028       ac_path_SED_max=$ac_count
4029     fi
4030     # 10*(2^10) chars as input seems more than enough
4031     test $ac_count -gt 10 && break
4032   done
4033   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034 esac
4035
4036       $ac_path_SED_found && break 3
4037     done
4038   done
4039   done
4040 IFS=$as_save_IFS
4041   if test -z "$ac_cv_path_SED"; then
4042     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4043   fi
4044 else
4045   ac_cv_path_SED=$SED
4046 fi
4047
4048 fi
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4050 $as_echo "$ac_cv_path_SED" >&6; }
4051  SED="$ac_cv_path_SED"
4052   rm -f conftest.sed
4053
4054 test -z "$SED" && SED=sed
4055 Xsed="$SED -e 1s/^X//"
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4068 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4069 if ${ac_cv_path_GREP+:} false; then :
4070   $as_echo_n "(cached) " >&6
4071 else
4072   if test -z "$GREP"; then
4073   ac_path_GREP_found=false
4074   # Loop through the user's path and test for each of PROGNAME-LIST
4075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4076 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4077 do
4078   IFS=$as_save_IFS
4079   test -z "$as_dir" && as_dir=.
4080     for ac_prog in grep ggrep; do
4081     for ac_exec_ext in '' $ac_executable_extensions; do
4082       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4083       as_fn_executable_p "$ac_path_GREP" || continue
4084 # Check for GNU ac_path_GREP and select it if it is found.
4085   # Check for GNU $ac_path_GREP
4086 case `"$ac_path_GREP" --version 2>&1` in
4087 *GNU*)
4088   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4089 *)
4090   ac_count=0
4091   $as_echo_n 0123456789 >"conftest.in"
4092   while :
4093   do
4094     cat "conftest.in" "conftest.in" >"conftest.tmp"
4095     mv "conftest.tmp" "conftest.in"
4096     cp "conftest.in" "conftest.nl"
4097     $as_echo 'GREP' >> "conftest.nl"
4098     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4099     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4100     as_fn_arith $ac_count + 1 && ac_count=$as_val
4101     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4102       # Best one so far, save it but keep looking for a better one
4103       ac_cv_path_GREP="$ac_path_GREP"
4104       ac_path_GREP_max=$ac_count
4105     fi
4106     # 10*(2^10) chars as input seems more than enough
4107     test $ac_count -gt 10 && break
4108   done
4109   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4110 esac
4111
4112       $ac_path_GREP_found && break 3
4113     done
4114   done
4115   done
4116 IFS=$as_save_IFS
4117   if test -z "$ac_cv_path_GREP"; then
4118     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4119   fi
4120 else
4121   ac_cv_path_GREP=$GREP
4122 fi
4123
4124 fi
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4126 $as_echo "$ac_cv_path_GREP" >&6; }
4127  GREP="$ac_cv_path_GREP"
4128
4129
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4131 $as_echo_n "checking for egrep... " >&6; }
4132 if ${ac_cv_path_EGREP+:} false; then :
4133   $as_echo_n "(cached) " >&6
4134 else
4135   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4136    then ac_cv_path_EGREP="$GREP -E"
4137    else
4138      if test -z "$EGREP"; then
4139   ac_path_EGREP_found=false
4140   # Loop through the user's path and test for each of PROGNAME-LIST
4141   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4143 do
4144   IFS=$as_save_IFS
4145   test -z "$as_dir" && as_dir=.
4146     for ac_prog in egrep; do
4147     for ac_exec_ext in '' $ac_executable_extensions; do
4148       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4149       as_fn_executable_p "$ac_path_EGREP" || continue
4150 # Check for GNU ac_path_EGREP and select it if it is found.
4151   # Check for GNU $ac_path_EGREP
4152 case `"$ac_path_EGREP" --version 2>&1` in
4153 *GNU*)
4154   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4155 *)
4156   ac_count=0
4157   $as_echo_n 0123456789 >"conftest.in"
4158   while :
4159   do
4160     cat "conftest.in" "conftest.in" >"conftest.tmp"
4161     mv "conftest.tmp" "conftest.in"
4162     cp "conftest.in" "conftest.nl"
4163     $as_echo 'EGREP' >> "conftest.nl"
4164     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4165     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4166     as_fn_arith $ac_count + 1 && ac_count=$as_val
4167     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4168       # Best one so far, save it but keep looking for a better one
4169       ac_cv_path_EGREP="$ac_path_EGREP"
4170       ac_path_EGREP_max=$ac_count
4171     fi
4172     # 10*(2^10) chars as input seems more than enough
4173     test $ac_count -gt 10 && break
4174   done
4175   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4176 esac
4177
4178       $ac_path_EGREP_found && break 3
4179     done
4180   done
4181   done
4182 IFS=$as_save_IFS
4183   if test -z "$ac_cv_path_EGREP"; then
4184     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4185   fi
4186 else
4187   ac_cv_path_EGREP=$EGREP
4188 fi
4189
4190    fi
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4193 $as_echo "$ac_cv_path_EGREP" >&6; }
4194  EGREP="$ac_cv_path_EGREP"
4195
4196
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4198 $as_echo_n "checking for fgrep... " >&6; }
4199 if ${ac_cv_path_FGREP+:} false; then :
4200   $as_echo_n "(cached) " >&6
4201 else
4202   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4203    then ac_cv_path_FGREP="$GREP -F"
4204    else
4205      if test -z "$FGREP"; then
4206   ac_path_FGREP_found=false
4207   # Loop through the user's path and test for each of PROGNAME-LIST
4208   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4210 do
4211   IFS=$as_save_IFS
4212   test -z "$as_dir" && as_dir=.
4213     for ac_prog in fgrep; do
4214     for ac_exec_ext in '' $ac_executable_extensions; do
4215       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4216       as_fn_executable_p "$ac_path_FGREP" || continue
4217 # Check for GNU ac_path_FGREP and select it if it is found.
4218   # Check for GNU $ac_path_FGREP
4219 case `"$ac_path_FGREP" --version 2>&1` in
4220 *GNU*)
4221   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4222 *)
4223   ac_count=0
4224   $as_echo_n 0123456789 >"conftest.in"
4225   while :
4226   do
4227     cat "conftest.in" "conftest.in" >"conftest.tmp"
4228     mv "conftest.tmp" "conftest.in"
4229     cp "conftest.in" "conftest.nl"
4230     $as_echo 'FGREP' >> "conftest.nl"
4231     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4232     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4233     as_fn_arith $ac_count + 1 && ac_count=$as_val
4234     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4235       # Best one so far, save it but keep looking for a better one
4236       ac_cv_path_FGREP="$ac_path_FGREP"
4237       ac_path_FGREP_max=$ac_count
4238     fi
4239     # 10*(2^10) chars as input seems more than enough
4240     test $ac_count -gt 10 && break
4241   done
4242   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4243 esac
4244
4245       $ac_path_FGREP_found && break 3
4246     done
4247   done
4248   done
4249 IFS=$as_save_IFS
4250   if test -z "$ac_cv_path_FGREP"; then
4251     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4252   fi
4253 else
4254   ac_cv_path_FGREP=$FGREP
4255 fi
4256
4257    fi
4258 fi
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4260 $as_echo "$ac_cv_path_FGREP" >&6; }
4261  FGREP="$ac_cv_path_FGREP"
4262
4263
4264 test -z "$GREP" && GREP=grep
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284 # Check whether --with-gnu-ld was given.
4285 if test "${with_gnu_ld+set}" = set; then :
4286   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4287 else
4288   with_gnu_ld=no
4289 fi
4290
4291 ac_prog=ld
4292 if test "$GCC" = yes; then
4293   # Check if gcc -print-prog-name=ld gives a path.
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4295 $as_echo_n "checking for ld used by $CC... " >&6; }
4296   case $host in
4297   *-*-mingw*)
4298     # gcc leaves a trailing carriage return which upsets mingw
4299     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4300   *)
4301     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4302   esac
4303   case $ac_prog in
4304     # Accept absolute paths.
4305     [\\/]* | ?:[\\/]*)
4306       re_direlt='/[^/][^/]*/\.\./'
4307       # Canonicalize the pathname of ld
4308       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4309       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4310         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4311       done
4312       test -z "$LD" && LD="$ac_prog"
4313       ;;
4314   "")
4315     # If it fails, then pretend we aren't using GCC.
4316     ac_prog=ld
4317     ;;
4318   *)
4319     # If it is relative, then search for the first ld in PATH.
4320     with_gnu_ld=unknown
4321     ;;
4322   esac
4323 elif test "$with_gnu_ld" = yes; then
4324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4325 $as_echo_n "checking for GNU ld... " >&6; }
4326 else
4327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4328 $as_echo_n "checking for non-GNU ld... " >&6; }
4329 fi
4330 if ${lt_cv_path_LD+:} false; then :
4331   $as_echo_n "(cached) " >&6
4332 else
4333   if test -z "$LD"; then
4334   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4335   for ac_dir in $PATH; do
4336     IFS="$lt_save_ifs"
4337     test -z "$ac_dir" && ac_dir=.
4338     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4339       lt_cv_path_LD="$ac_dir/$ac_prog"
4340       # Check to see if the program is GNU ld.  I'd rather use --version,
4341       # but apparently some variants of GNU ld only accept -v.
4342       # Break only if it was the GNU/non-GNU ld that we prefer.
4343       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4344       *GNU* | *'with BFD'*)
4345         test "$with_gnu_ld" != no && break
4346         ;;
4347       *)
4348         test "$with_gnu_ld" != yes && break
4349         ;;
4350       esac
4351     fi
4352   done
4353   IFS="$lt_save_ifs"
4354 else
4355   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4356 fi
4357 fi
4358
4359 LD="$lt_cv_path_LD"
4360 if test -n "$LD"; then
4361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4362 $as_echo "$LD" >&6; }
4363 else
4364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4366 fi
4367 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4369 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4370 if ${lt_cv_prog_gnu_ld+:} false; then :
4371   $as_echo_n "(cached) " >&6
4372 else
4373   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4374 case `$LD -v 2>&1 </dev/null` in
4375 *GNU* | *'with BFD'*)
4376   lt_cv_prog_gnu_ld=yes
4377   ;;
4378 *)
4379   lt_cv_prog_gnu_ld=no
4380   ;;
4381 esac
4382 fi
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4384 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4385 with_gnu_ld=$lt_cv_prog_gnu_ld
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4396 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4397 if ${lt_cv_path_NM+:} false; then :
4398   $as_echo_n "(cached) " >&6
4399 else
4400   if test -n "$NM"; then
4401   # Let the user override the test.
4402   lt_cv_path_NM="$NM"
4403 else
4404   lt_nm_to_check="${ac_tool_prefix}nm"
4405   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4406     lt_nm_to_check="$lt_nm_to_check nm"
4407   fi
4408   for lt_tmp_nm in $lt_nm_to_check; do
4409     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4410     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4411       IFS="$lt_save_ifs"
4412       test -z "$ac_dir" && ac_dir=.
4413       tmp_nm="$ac_dir/$lt_tmp_nm"
4414       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4415         # Check to see if the nm accepts a BSD-compat flag.
4416         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4417         #   nm: unknown option "B" ignored
4418         # Tru64's nm complains that /dev/null is an invalid object file
4419         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4420         */dev/null* | *'Invalid file or object type'*)
4421           lt_cv_path_NM="$tmp_nm -B"
4422           break
4423           ;;
4424         *)
4425           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4426           */dev/null*)
4427             lt_cv_path_NM="$tmp_nm -p"
4428             break
4429             ;;
4430           *)
4431             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4432             continue # so that we can try to find one that supports BSD flags
4433             ;;
4434           esac
4435           ;;
4436         esac
4437       fi
4438     done
4439     IFS="$lt_save_ifs"
4440   done
4441   : ${lt_cv_path_NM=no}
4442 fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4445 $as_echo "$lt_cv_path_NM" >&6; }
4446 if test "$lt_cv_path_NM" != "no"; then
4447   NM="$lt_cv_path_NM"
4448 else
4449   # Didn't find any BSD compatible name lister, look for dumpbin.
4450   if test -n "$DUMPBIN"; then :
4451     # Let the user override the test.
4452   else
4453     if test -n "$ac_tool_prefix"; then
4454   for ac_prog in dumpbin "link -dump"
4455   do
4456     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4457 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if ${ac_cv_prog_DUMPBIN+:} false; then :
4461   $as_echo_n "(cached) " >&6
4462 else
4463   if test -n "$DUMPBIN"; then
4464   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471     for ac_exec_ext in '' $ac_executable_extensions; do
4472   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4473     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4474     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478   done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 DUMPBIN=$ac_cv_prog_DUMPBIN
4484 if test -n "$DUMPBIN"; then
4485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4486 $as_echo "$DUMPBIN" >&6; }
4487 else
4488   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491
4492
4493     test -n "$DUMPBIN" && break
4494   done
4495 fi
4496 if test -z "$DUMPBIN"; then
4497   ac_ct_DUMPBIN=$DUMPBIN
4498   for ac_prog in dumpbin "link -dump"
4499 do
4500   # Extract the first word of "$ac_prog", so it can be a program name with args.
4501 set dummy $ac_prog; ac_word=$2
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4503 $as_echo_n "checking for $ac_word... " >&6; }
4504 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4505   $as_echo_n "(cached) " >&6
4506 else
4507   if test -n "$ac_ct_DUMPBIN"; then
4508   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4509 else
4510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 for as_dir in $PATH
4512 do
4513   IFS=$as_save_IFS
4514   test -z "$as_dir" && as_dir=.
4515     for ac_exec_ext in '' $ac_executable_extensions; do
4516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4517     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4519     break 2
4520   fi
4521 done
4522   done
4523 IFS=$as_save_IFS
4524
4525 fi
4526 fi
4527 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4528 if test -n "$ac_ct_DUMPBIN"; then
4529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4530 $as_echo "$ac_ct_DUMPBIN" >&6; }
4531 else
4532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4533 $as_echo "no" >&6; }
4534 fi
4535
4536
4537   test -n "$ac_ct_DUMPBIN" && break
4538 done
4539
4540   if test "x$ac_ct_DUMPBIN" = x; then
4541     DUMPBIN=":"
4542   else
4543     case $cross_compiling:$ac_tool_warned in
4544 yes:)
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4547 ac_tool_warned=yes ;;
4548 esac
4549     DUMPBIN=$ac_ct_DUMPBIN
4550   fi
4551 fi
4552
4553     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4554     *COFF*)
4555       DUMPBIN="$DUMPBIN -symbols"
4556       ;;
4557     *)
4558       DUMPBIN=:
4559       ;;
4560     esac
4561   fi
4562
4563   if test "$DUMPBIN" != ":"; then
4564     NM="$DUMPBIN"
4565   fi
4566 fi
4567 test -z "$NM" && NM=nm
4568
4569
4570
4571
4572
4573
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4575 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4576 if ${lt_cv_nm_interface+:} false; then :
4577   $as_echo_n "(cached) " >&6
4578 else
4579   lt_cv_nm_interface="BSD nm"
4580   echo "int some_variable = 0;" > conftest.$ac_ext
4581   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4582   (eval "$ac_compile" 2>conftest.err)
4583   cat conftest.err >&5
4584   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4585   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4586   cat conftest.err >&5
4587   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4588   cat conftest.out >&5
4589   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4590     lt_cv_nm_interface="MS dumpbin"
4591   fi
4592   rm -f conftest*
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4595 $as_echo "$lt_cv_nm_interface" >&6; }
4596
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4598 $as_echo_n "checking whether ln -s works... " >&6; }
4599 LN_S=$as_ln_s
4600 if test "$LN_S" = "ln -s"; then
4601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 $as_echo "yes" >&6; }
4603 else
4604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4605 $as_echo "no, using $LN_S" >&6; }
4606 fi
4607
4608 # find the maximum length of command line arguments
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4610 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4611 if ${lt_cv_sys_max_cmd_len+:} false; then :
4612   $as_echo_n "(cached) " >&6
4613 else
4614     i=0
4615   teststring="ABCD"
4616
4617   case $build_os in
4618   msdosdjgpp*)
4619     # On DJGPP, this test can blow up pretty badly due to problems in libc
4620     # (any single argument exceeding 2000 bytes causes a buffer overrun
4621     # during glob expansion).  Even if it were fixed, the result of this
4622     # check would be larger than it should be.
4623     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4624     ;;
4625
4626   gnu*)
4627     # Under GNU Hurd, this test is not required because there is
4628     # no limit to the length of command line arguments.
4629     # Libtool will interpret -1 as no limit whatsoever
4630     lt_cv_sys_max_cmd_len=-1;
4631     ;;
4632
4633   cygwin* | mingw* | cegcc*)
4634     # On Win9x/ME, this test blows up -- it succeeds, but takes
4635     # about 5 minutes as the teststring grows exponentially.
4636     # Worse, since 9x/ME are not pre-emptively multitasking,
4637     # you end up with a "frozen" computer, even though with patience
4638     # the test eventually succeeds (with a max line length of 256k).
4639     # Instead, let's just punt: use the minimum linelength reported by
4640     # all of the supported platforms: 8192 (on NT/2K/XP).
4641     lt_cv_sys_max_cmd_len=8192;
4642     ;;
4643
4644   mint*)
4645     # On MiNT this can take a long time and run out of memory.
4646     lt_cv_sys_max_cmd_len=8192;
4647     ;;
4648
4649   amigaos*)
4650     # On AmigaOS with pdksh, this test takes hours, literally.
4651     # So we just punt and use a minimum line length of 8192.
4652     lt_cv_sys_max_cmd_len=8192;
4653     ;;
4654
4655   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4656     # This has been around since 386BSD, at least.  Likely further.
4657     if test -x /sbin/sysctl; then
4658       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4659     elif test -x /usr/sbin/sysctl; then
4660       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4661     else
4662       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4663     fi
4664     # And add a safety zone
4665     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4666     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4667     ;;
4668
4669   interix*)
4670     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4671     lt_cv_sys_max_cmd_len=196608
4672     ;;
4673
4674   os2*)
4675     # The test takes a long time on OS/2.
4676     lt_cv_sys_max_cmd_len=8192
4677     ;;
4678
4679   osf*)
4680     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4681     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4682     # nice to cause kernel panics so lets avoid the loop below.
4683     # First set a reasonable default.
4684     lt_cv_sys_max_cmd_len=16384
4685     #
4686     if test -x /sbin/sysconfig; then
4687       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4688         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4689       esac
4690     fi
4691     ;;
4692   sco3.2v5*)
4693     lt_cv_sys_max_cmd_len=102400
4694     ;;
4695   sysv5* | sco5v6* | sysv4.2uw2*)
4696     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4697     if test -n "$kargmax"; then
4698       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4699     else
4700       lt_cv_sys_max_cmd_len=32768
4701     fi
4702     ;;
4703   *)
4704     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4705     if test -n "$lt_cv_sys_max_cmd_len"; then
4706       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4707       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4708     else
4709       # Make teststring a little bigger before we do anything with it.
4710       # a 1K string should be a reasonable start.
4711       for i in 1 2 3 4 5 6 7 8 ; do
4712         teststring=$teststring$teststring
4713       done
4714       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4715       # If test is not a shell built-in, we'll probably end up computing a
4716       # maximum length that is only half of the actual maximum length, but
4717       # we can't tell.
4718       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4719                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4720               test $i != 17 # 1/2 MB should be enough
4721       do
4722         i=`expr $i + 1`
4723         teststring=$teststring$teststring
4724       done
4725       # Only check the string length outside the loop.
4726       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4727       teststring=
4728       # Add a significant safety factor because C++ compilers can tack on
4729       # massive amounts of additional arguments before passing them to the
4730       # linker.  It appears as though 1/2 is a usable value.
4731       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4732     fi
4733     ;;
4734   esac
4735
4736 fi
4737
4738 if test -n $lt_cv_sys_max_cmd_len ; then
4739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4740 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4741 else
4742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4743 $as_echo "none" >&6; }
4744 fi
4745 max_cmd_len=$lt_cv_sys_max_cmd_len
4746
4747
4748
4749
4750
4751
4752 : ${CP="cp -f"}
4753 : ${MV="mv -f"}
4754 : ${RM="rm -f"}
4755
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4757 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4758 # Try some XSI features
4759 xsi_shell=no
4760 ( _lt_dummy="a/b/c"
4761   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4762       = c,a/b,b/c, \
4763     && eval 'test $(( 1 + 1 )) -eq 2 \
4764     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4765   && xsi_shell=yes
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4767 $as_echo "$xsi_shell" >&6; }
4768
4769
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4771 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4772 lt_shell_append=no
4773 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4774     >/dev/null 2>&1 \
4775   && lt_shell_append=yes
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4777 $as_echo "$lt_shell_append" >&6; }
4778
4779
4780 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4781   lt_unset=unset
4782 else
4783   lt_unset=false
4784 fi
4785
4786
4787
4788
4789
4790 # test EBCDIC or ASCII
4791 case `echo X|tr X '\101'` in
4792  A) # ASCII based system
4793     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4794   lt_SP2NL='tr \040 \012'
4795   lt_NL2SP='tr \015\012 \040\040'
4796   ;;
4797  *) # EBCDIC based system
4798   lt_SP2NL='tr \100 \n'
4799   lt_NL2SP='tr \r\n \100\100'
4800   ;;
4801 esac
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4812 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4813 if ${lt_cv_to_host_file_cmd+:} false; then :
4814   $as_echo_n "(cached) " >&6
4815 else
4816   case $host in
4817   *-*-mingw* )
4818     case $build in
4819       *-*-mingw* ) # actually msys
4820         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4821         ;;
4822       *-*-cygwin* )
4823         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4824         ;;
4825       * ) # otherwise, assume *nix
4826         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4827         ;;
4828     esac
4829     ;;
4830   *-*-cygwin* )
4831     case $build in
4832       *-*-mingw* ) # actually msys
4833         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4834         ;;
4835       *-*-cygwin* )
4836         lt_cv_to_host_file_cmd=func_convert_file_noop
4837         ;;
4838       * ) # otherwise, assume *nix
4839         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4840         ;;
4841     esac
4842     ;;
4843   * ) # unhandled hosts (and "normal" native builds)
4844     lt_cv_to_host_file_cmd=func_convert_file_noop
4845     ;;
4846 esac
4847
4848 fi
4849
4850 to_host_file_cmd=$lt_cv_to_host_file_cmd
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4852 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4853
4854
4855
4856
4857
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4859 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4860 if ${lt_cv_to_tool_file_cmd+:} false; then :
4861   $as_echo_n "(cached) " >&6
4862 else
4863   #assume ordinary cross tools, or native build.
4864 lt_cv_to_tool_file_cmd=func_convert_file_noop
4865 case $host in
4866   *-*-mingw* )
4867     case $build in
4868       *-*-mingw* ) # actually msys
4869         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4870         ;;
4871     esac
4872     ;;
4873 esac
4874
4875 fi
4876
4877 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4879 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4880
4881
4882
4883
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4886 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4887 if ${lt_cv_ld_reload_flag+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   lt_cv_ld_reload_flag='-r'
4891 fi
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4893 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4894 reload_flag=$lt_cv_ld_reload_flag
4895 case $reload_flag in
4896 "" | " "*) ;;
4897 *) reload_flag=" $reload_flag" ;;
4898 esac
4899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4900 case $host_os in
4901   cygwin* | mingw* | pw32* | cegcc*)
4902     if test "$GCC" != yes; then
4903       reload_cmds=false
4904     fi
4905     ;;
4906   darwin*)
4907     if test "$GCC" = yes; then
4908       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4909     else
4910       reload_cmds='$LD$reload_flag -o $output$reload_objs'
4911     fi
4912     ;;
4913 esac
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923 if test -n "$ac_tool_prefix"; then
4924   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4925 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_OBJDUMP+:} false; then :
4929   $as_echo_n "(cached) " >&6
4930 else
4931   if test -n "$OBJDUMP"; then
4932   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937   IFS=$as_save_IFS
4938   test -z "$as_dir" && as_dir=.
4939     for ac_exec_ext in '' $ac_executable_extensions; do
4940   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4941     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4942     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943     break 2
4944   fi
4945 done
4946   done
4947 IFS=$as_save_IFS
4948
4949 fi
4950 fi
4951 OBJDUMP=$ac_cv_prog_OBJDUMP
4952 if test -n "$OBJDUMP"; then
4953   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4954 $as_echo "$OBJDUMP" >&6; }
4955 else
4956   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960
4961 fi
4962 if test -z "$ac_cv_prog_OBJDUMP"; then
4963   ac_ct_OBJDUMP=$OBJDUMP
4964   # Extract the first word of "objdump", so it can be a program name with args.
4965 set dummy objdump; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4969   $as_echo_n "(cached) " >&6
4970 else
4971   if test -n "$ac_ct_OBJDUMP"; then
4972   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4976 do
4977   IFS=$as_save_IFS
4978   test -z "$as_dir" && as_dir=.
4979     for ac_exec_ext in '' $ac_executable_extensions; do
4980   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4981     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4982     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983     break 2
4984   fi
4985 done
4986   done
4987 IFS=$as_save_IFS
4988
4989 fi
4990 fi
4991 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4992 if test -n "$ac_ct_OBJDUMP"; then
4993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4994 $as_echo "$ac_ct_OBJDUMP" >&6; }
4995 else
4996   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
4998 fi
4999
5000   if test "x$ac_ct_OBJDUMP" = x; then
5001     OBJDUMP="false"
5002   else
5003     case $cross_compiling:$ac_tool_warned in
5004 yes:)
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5007 ac_tool_warned=yes ;;
5008 esac
5009     OBJDUMP=$ac_ct_OBJDUMP
5010   fi
5011 else
5012   OBJDUMP="$ac_cv_prog_OBJDUMP"
5013 fi
5014
5015 test -z "$OBJDUMP" && OBJDUMP=objdump
5016
5017
5018
5019
5020
5021
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5023 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5024 if ${lt_cv_deplibs_check_method+:} false; then :
5025   $as_echo_n "(cached) " >&6
5026 else
5027   lt_cv_file_magic_cmd='$MAGIC_CMD'
5028 lt_cv_file_magic_test_file=
5029 lt_cv_deplibs_check_method='unknown'
5030 # Need to set the preceding variable on all platforms that support
5031 # interlibrary dependencies.
5032 # 'none' -- dependencies not supported.
5033 # `unknown' -- same as none, but documents that we really don't know.
5034 # 'pass_all' -- all dependencies passed with no checks.
5035 # 'test_compile' -- check by making test program.
5036 # 'file_magic [[regex]]' -- check by looking for files in library path
5037 # which responds to the $file_magic_cmd with a given extended regex.
5038 # If you have `file' or equivalent on your system and you're not sure
5039 # whether `pass_all' will *always* work, you probably want this one.
5040
5041 case $host_os in
5042 aix[4-9]*)
5043   lt_cv_deplibs_check_method=pass_all
5044   ;;
5045
5046 beos*)
5047   lt_cv_deplibs_check_method=pass_all
5048   ;;
5049
5050 bsdi[45]*)
5051   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5052   lt_cv_file_magic_cmd='/usr/bin/file -L'
5053   lt_cv_file_magic_test_file=/shlib/libc.so
5054   ;;
5055
5056 cygwin*)
5057   # func_win32_libid is a shell function defined in ltmain.sh
5058   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5059   lt_cv_file_magic_cmd='func_win32_libid'
5060   ;;
5061
5062 mingw* | pw32*)
5063   # Base MSYS/MinGW do not provide the 'file' command needed by
5064   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5065   # unless we find 'file', for example because we are cross-compiling.
5066   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5067   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5068     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5069     lt_cv_file_magic_cmd='func_win32_libid'
5070   else
5071     # Keep this pattern in sync with the one in func_win32_libid.
5072     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5073     lt_cv_file_magic_cmd='$OBJDUMP -f'
5074   fi
5075   ;;
5076
5077 cegcc*)
5078   # use the weaker test based on 'objdump'. See mingw*.
5079   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5080   lt_cv_file_magic_cmd='$OBJDUMP -f'
5081   ;;
5082
5083 darwin* | rhapsody*)
5084   lt_cv_deplibs_check_method=pass_all
5085   ;;
5086
5087 freebsd* | dragonfly*)
5088   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5089     case $host_cpu in
5090     i*86 )
5091       # Not sure whether the presence of OpenBSD here was a mistake.
5092       # Let's accept both of them until this is cleared up.
5093       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5094       lt_cv_file_magic_cmd=/usr/bin/file
5095       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5096       ;;
5097     esac
5098   else
5099     lt_cv_deplibs_check_method=pass_all
5100   fi
5101   ;;
5102
5103 gnu*)
5104   lt_cv_deplibs_check_method=pass_all
5105   ;;
5106
5107 haiku*)
5108   lt_cv_deplibs_check_method=pass_all
5109   ;;
5110
5111 hpux10.20* | hpux11*)
5112   lt_cv_file_magic_cmd=/usr/bin/file
5113   case $host_cpu in
5114   ia64*)
5115     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5116     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5117     ;;
5118   hppa*64*)
5119     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]'
5120     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5121     ;;
5122   *)
5123     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5124     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5125     ;;
5126   esac
5127   ;;
5128
5129 interix[3-9]*)
5130   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5131   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5132   ;;
5133
5134 irix5* | irix6* | nonstopux*)
5135   case $LD in
5136   *-32|*"-32 ") libmagic=32-bit;;
5137   *-n32|*"-n32 ") libmagic=N32;;
5138   *-64|*"-64 ") libmagic=64-bit;;
5139   *) libmagic=never-match;;
5140   esac
5141   lt_cv_deplibs_check_method=pass_all
5142   ;;
5143
5144 # This must be glibc/ELF.
5145 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5146   lt_cv_deplibs_check_method=pass_all
5147   ;;
5148
5149 netbsd*)
5150   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5152   else
5153     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5154   fi
5155   ;;
5156
5157 newos6*)
5158   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5159   lt_cv_file_magic_cmd=/usr/bin/file
5160   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5161   ;;
5162
5163 *nto* | *qnx*)
5164   lt_cv_deplibs_check_method=pass_all
5165   ;;
5166
5167 openbsd*)
5168   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5169     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5170   else
5171     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5172   fi
5173   ;;
5174
5175 osf3* | osf4* | osf5*)
5176   lt_cv_deplibs_check_method=pass_all
5177   ;;
5178
5179 rdos*)
5180   lt_cv_deplibs_check_method=pass_all
5181   ;;
5182
5183 solaris*)
5184   lt_cv_deplibs_check_method=pass_all
5185   ;;
5186
5187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5188   lt_cv_deplibs_check_method=pass_all
5189   ;;
5190
5191 sysv4 | sysv4.3*)
5192   case $host_vendor in
5193   motorola)
5194     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]'
5195     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5196     ;;
5197   ncr)
5198     lt_cv_deplibs_check_method=pass_all
5199     ;;
5200   sequent)
5201     lt_cv_file_magic_cmd='/bin/file'
5202     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5203     ;;
5204   sni)
5205     lt_cv_file_magic_cmd='/bin/file'
5206     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5207     lt_cv_file_magic_test_file=/lib/libc.so
5208     ;;
5209   siemens)
5210     lt_cv_deplibs_check_method=pass_all
5211     ;;
5212   pc)
5213     lt_cv_deplibs_check_method=pass_all
5214     ;;
5215   esac
5216   ;;
5217
5218 tpf*)
5219   lt_cv_deplibs_check_method=pass_all
5220   ;;
5221 esac
5222
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5225 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5226
5227 file_magic_glob=
5228 want_nocaseglob=no
5229 if test "$build" = "$host"; then
5230   case $host_os in
5231   mingw* | pw32*)
5232     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5233       want_nocaseglob=yes
5234     else
5235       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5236     fi
5237     ;;
5238   esac
5239 fi
5240
5241 file_magic_cmd=$lt_cv_file_magic_cmd
5242 deplibs_check_method=$lt_cv_deplibs_check_method
5243 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266 if test -n "$ac_tool_prefix"; then
5267   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5268 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_DLLTOOL+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   if test -n "$DLLTOOL"; then
5275   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282     for ac_exec_ext in '' $ac_executable_extensions; do
5283   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289   done
5290 IFS=$as_save_IFS
5291
5292 fi
5293 fi
5294 DLLTOOL=$ac_cv_prog_DLLTOOL
5295 if test -n "$DLLTOOL"; then
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5297 $as_echo "$DLLTOOL" >&6; }
5298 else
5299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5301 fi
5302
5303
5304 fi
5305 if test -z "$ac_cv_prog_DLLTOOL"; then
5306   ac_ct_DLLTOOL=$DLLTOOL
5307   # Extract the first word of "dlltool", so it can be a program name with args.
5308 set dummy dlltool; ac_word=$2
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5310 $as_echo_n "checking for $ac_word... " >&6; }
5311 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5312   $as_echo_n "(cached) " >&6
5313 else
5314   if test -n "$ac_ct_DLLTOOL"; then
5315   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5316 else
5317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5318 for as_dir in $PATH
5319 do
5320   IFS=$as_save_IFS
5321   test -z "$as_dir" && as_dir=.
5322     for ac_exec_ext in '' $ac_executable_extensions; do
5323   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5324     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326     break 2
5327   fi
5328 done
5329   done
5330 IFS=$as_save_IFS
5331
5332 fi
5333 fi
5334 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5335 if test -n "$ac_ct_DLLTOOL"; then
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5337 $as_echo "$ac_ct_DLLTOOL" >&6; }
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342
5343   if test "x$ac_ct_DLLTOOL" = x; then
5344     DLLTOOL="false"
5345   else
5346     case $cross_compiling:$ac_tool_warned in
5347 yes:)
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5350 ac_tool_warned=yes ;;
5351 esac
5352     DLLTOOL=$ac_ct_DLLTOOL
5353   fi
5354 else
5355   DLLTOOL="$ac_cv_prog_DLLTOOL"
5356 fi
5357
5358 test -z "$DLLTOOL" && DLLTOOL=dlltool
5359
5360
5361
5362
5363
5364
5365
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5367 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5368 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5369   $as_echo_n "(cached) " >&6
5370 else
5371   lt_cv_sharedlib_from_linklib_cmd='unknown'
5372
5373 case $host_os in
5374 cygwin* | mingw* | pw32* | cegcc*)
5375   # two different shell functions defined in ltmain.sh
5376   # decide which to use based on capabilities of $DLLTOOL
5377   case `$DLLTOOL --help 2>&1` in
5378   *--identify-strict*)
5379     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5380     ;;
5381   *)
5382     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5383     ;;
5384   esac
5385   ;;
5386 *)
5387   # fallback: assume linklib IS sharedlib
5388   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5389   ;;
5390 esac
5391
5392 fi
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5394 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5395 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5396 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5397
5398
5399
5400
5401
5402
5403
5404
5405 if test -n "$ac_tool_prefix"; then
5406   for ac_prog in ar
5407   do
5408     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411 $as_echo_n "checking for $ac_word... " >&6; }
5412 if ${ac_cv_prog_AR+:} false; then :
5413   $as_echo_n "(cached) " >&6
5414 else
5415   if test -n "$AR"; then
5416   ac_cv_prog_AR="$AR" # Let the user override the test.
5417 else
5418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419 for as_dir in $PATH
5420 do
5421   IFS=$as_save_IFS
5422   test -z "$as_dir" && as_dir=.
5423     for ac_exec_ext in '' $ac_executable_extensions; do
5424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5425     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427     break 2
5428   fi
5429 done
5430   done
5431 IFS=$as_save_IFS
5432
5433 fi
5434 fi
5435 AR=$ac_cv_prog_AR
5436 if test -n "$AR"; then
5437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5438 $as_echo "$AR" >&6; }
5439 else
5440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5442 fi
5443
5444
5445     test -n "$AR" && break
5446   done
5447 fi
5448 if test -z "$AR"; then
5449   ac_ct_AR=$AR
5450   for ac_prog in ar
5451 do
5452   # Extract the first word of "$ac_prog", so it can be a program name with args.
5453 set dummy $ac_prog; ac_word=$2
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455 $as_echo_n "checking for $ac_word... " >&6; }
5456 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5457   $as_echo_n "(cached) " >&6
5458 else
5459   if test -n "$ac_ct_AR"; then
5460   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5461 else
5462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463 for as_dir in $PATH
5464 do
5465   IFS=$as_save_IFS
5466   test -z "$as_dir" && as_dir=.
5467     for ac_exec_ext in '' $ac_executable_extensions; do
5468   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469     ac_cv_prog_ac_ct_AR="$ac_prog"
5470     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471     break 2
5472   fi
5473 done
5474   done
5475 IFS=$as_save_IFS
5476
5477 fi
5478 fi
5479 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5480 if test -n "$ac_ct_AR"; then
5481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5482 $as_echo "$ac_ct_AR" >&6; }
5483 else
5484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; }
5486 fi
5487
5488
5489   test -n "$ac_ct_AR" && break
5490 done
5491
5492   if test "x$ac_ct_AR" = x; then
5493     AR="false"
5494   else
5495     case $cross_compiling:$ac_tool_warned in
5496 yes:)
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5499 ac_tool_warned=yes ;;
5500 esac
5501     AR=$ac_ct_AR
5502   fi
5503 fi
5504
5505 : ${AR=ar}
5506 : ${AR_FLAGS=cru}
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5519 $as_echo_n "checking for archiver @FILE support... " >&6; }
5520 if ${lt_cv_ar_at_file+:} false; then :
5521   $as_echo_n "(cached) " >&6
5522 else
5523   lt_cv_ar_at_file=no
5524    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5525 /* end confdefs.h.  */
5526
5527 int
5528 main ()
5529 {
5530
5531   ;
5532   return 0;
5533 }
5534 _ACEOF
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536   echo conftest.$ac_objext > conftest.lst
5537       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5538       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5539   (eval $lt_ar_try) 2>&5
5540   ac_status=$?
5541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542   test $ac_status = 0; }
5543       if test "$ac_status" -eq 0; then
5544         # Ensure the archiver fails upon bogus file names.
5545         rm -f conftest.$ac_objext libconftest.a
5546         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5547   (eval $lt_ar_try) 2>&5
5548   ac_status=$?
5549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5550   test $ac_status = 0; }
5551         if test "$ac_status" -ne 0; then
5552           lt_cv_ar_at_file=@
5553         fi
5554       fi
5555       rm -f conftest.* libconftest.a
5556
5557 fi
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559
5560 fi
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5562 $as_echo "$lt_cv_ar_at_file" >&6; }
5563
5564 if test "x$lt_cv_ar_at_file" = xno; then
5565   archiver_list_spec=
5566 else
5567   archiver_list_spec=$lt_cv_ar_at_file
5568 fi
5569
5570
5571
5572
5573
5574
5575
5576 if test -n "$ac_tool_prefix"; then
5577   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5578 set dummy ${ac_tool_prefix}strip; ac_word=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_STRIP+:} false; then :
5582   $as_echo_n "(cached) " >&6
5583 else
5584   if test -n "$STRIP"; then
5585   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5586 else
5587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 for as_dir in $PATH
5589 do
5590   IFS=$as_save_IFS
5591   test -z "$as_dir" && as_dir=.
5592     for ac_exec_ext in '' $ac_executable_extensions; do
5593   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5594     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596     break 2
5597   fi
5598 done
5599   done
5600 IFS=$as_save_IFS
5601
5602 fi
5603 fi
5604 STRIP=$ac_cv_prog_STRIP
5605 if test -n "$STRIP"; then
5606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5607 $as_echo "$STRIP" >&6; }
5608 else
5609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611 fi
5612
5613
5614 fi
5615 if test -z "$ac_cv_prog_STRIP"; then
5616   ac_ct_STRIP=$STRIP
5617   # Extract the first word of "strip", so it can be a program name with args.
5618 set dummy strip; ac_word=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5622   $as_echo_n "(cached) " >&6
5623 else
5624   if test -n "$ac_ct_STRIP"; then
5625   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5626 else
5627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 for as_dir in $PATH
5629 do
5630   IFS=$as_save_IFS
5631   test -z "$as_dir" && as_dir=.
5632     for ac_exec_ext in '' $ac_executable_extensions; do
5633   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634     ac_cv_prog_ac_ct_STRIP="strip"
5635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5636     break 2
5637   fi
5638 done
5639   done
5640 IFS=$as_save_IFS
5641
5642 fi
5643 fi
5644 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5645 if test -n "$ac_ct_STRIP"; then
5646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5647 $as_echo "$ac_ct_STRIP" >&6; }
5648 else
5649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5651 fi
5652
5653   if test "x$ac_ct_STRIP" = x; then
5654     STRIP=":"
5655   else
5656     case $cross_compiling:$ac_tool_warned in
5657 yes:)
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5661 esac
5662     STRIP=$ac_ct_STRIP
5663   fi
5664 else
5665   STRIP="$ac_cv_prog_STRIP"
5666 fi
5667
5668 test -z "$STRIP" && STRIP=:
5669
5670
5671
5672
5673
5674
5675 if test -n "$ac_tool_prefix"; then
5676   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5677 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679 $as_echo_n "checking for $ac_word... " >&6; }
5680 if ${ac_cv_prog_RANLIB+:} false; then :
5681   $as_echo_n "(cached) " >&6
5682 else
5683   if test -n "$RANLIB"; then
5684   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5685 else
5686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687 for as_dir in $PATH
5688 do
5689   IFS=$as_save_IFS
5690   test -z "$as_dir" && as_dir=.
5691     for ac_exec_ext in '' $ac_executable_extensions; do
5692   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5693     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5694     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695     break 2
5696   fi
5697 done
5698   done
5699 IFS=$as_save_IFS
5700
5701 fi
5702 fi
5703 RANLIB=$ac_cv_prog_RANLIB
5704 if test -n "$RANLIB"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5706 $as_echo "$RANLIB" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 fi
5714 if test -z "$ac_cv_prog_RANLIB"; then
5715   ac_ct_RANLIB=$RANLIB
5716   # Extract the first word of "ranlib", so it can be a program name with args.
5717 set dummy ranlib; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5721   $as_echo_n "(cached) " >&6
5722 else
5723   if test -n "$ac_ct_RANLIB"; then
5724   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729   IFS=$as_save_IFS
5730   test -z "$as_dir" && as_dir=.
5731     for ac_exec_ext in '' $ac_executable_extensions; do
5732   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5733     ac_cv_prog_ac_ct_RANLIB="ranlib"
5734     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735     break 2
5736   fi
5737 done
5738   done
5739 IFS=$as_save_IFS
5740
5741 fi
5742 fi
5743 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5744 if test -n "$ac_ct_RANLIB"; then
5745   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5746 $as_echo "$ac_ct_RANLIB" >&6; }
5747 else
5748   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5750 fi
5751
5752   if test "x$ac_ct_RANLIB" = x; then
5753     RANLIB=":"
5754   else
5755     case $cross_compiling:$ac_tool_warned in
5756 yes:)
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759 ac_tool_warned=yes ;;
5760 esac
5761     RANLIB=$ac_ct_RANLIB
5762   fi
5763 else
5764   RANLIB="$ac_cv_prog_RANLIB"
5765 fi
5766
5767 test -z "$RANLIB" && RANLIB=:
5768
5769
5770
5771
5772
5773
5774 # Determine commands to create old-style static archives.
5775 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5776 old_postinstall_cmds='chmod 644 $oldlib'
5777 old_postuninstall_cmds=
5778
5779 if test -n "$RANLIB"; then
5780   case $host_os in
5781   openbsd*)
5782     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5783     ;;
5784   *)
5785     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5786     ;;
5787   esac
5788   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5789 fi
5790
5791 case $host_os in
5792   darwin*)
5793     lock_old_archive_extraction=yes ;;
5794   *)
5795     lock_old_archive_extraction=no ;;
5796 esac
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836 # If no C compiler was specified, use CC.
5837 LTCC=${LTCC-"$CC"}
5838
5839 # If no C compiler flags were specified, use CFLAGS.
5840 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5841
5842 # Allow CC to be a program name with arguments.
5843 compiler=$CC
5844
5845
5846 # Check for command to grab the raw symbol name followed by C symbol from nm.
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5848 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5849 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5850   $as_echo_n "(cached) " >&6
5851 else
5852
5853 # These are sane defaults that work on at least a few old systems.
5854 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5855
5856 # Character class describing NM global symbol codes.
5857 symcode='[BCDEGRST]'
5858
5859 # Regexp to match symbols that can be accessed directly from C.
5860 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5861
5862 # Define system-specific variables.
5863 case $host_os in
5864 aix*)
5865   symcode='[BCDT]'
5866   ;;
5867 cygwin* | mingw* | pw32* | cegcc*)
5868   symcode='[ABCDGISTW]'
5869   ;;
5870 hpux*)
5871   if test "$host_cpu" = ia64; then
5872     symcode='[ABCDEGRST]'
5873   fi
5874   ;;
5875 irix* | nonstopux*)
5876   symcode='[BCDEGRST]'
5877   ;;
5878 osf*)
5879   symcode='[BCDEGQRST]'
5880   ;;
5881 solaris*)
5882   symcode='[BDRT]'
5883   ;;
5884 sco3.2v5*)
5885   symcode='[DT]'
5886   ;;
5887 sysv4.2uw2*)
5888   symcode='[DT]'
5889   ;;
5890 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5891   symcode='[ABDT]'
5892   ;;
5893 sysv4)
5894   symcode='[DFNSTU]'
5895   ;;
5896 esac
5897
5898 # If we're using GNU nm, then use its standard symbol codes.
5899 case `$NM -V 2>&1` in
5900 *GNU* | *'with BFD'*)
5901   symcode='[ABCDGIRSTW]' ;;
5902 esac
5903
5904 # Transform an extracted symbol line into a proper C declaration.
5905 # Some systems (esp. on ia64) link data and code symbols differently,
5906 # so use this general approach.
5907 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5908
5909 # Transform an extracted symbol line into symbol name and symbol address
5910 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
5911 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'"
5912
5913 # Handle CRLF in mingw tool chain
5914 opt_cr=
5915 case $build_os in
5916 mingw*)
5917   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5918   ;;
5919 esac
5920
5921 # Try without a prefix underscore, then with it.
5922 for ac_symprfx in "" "_"; do
5923
5924   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5925   symxfrm="\\1 $ac_symprfx\\2 \\2"
5926
5927   # Write the raw and C identifiers.
5928   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5929     # Fake it for dumpbin and say T for any non-static function
5930     # and D for any global variable.
5931     # Also find C++ and __fastcall symbols from MSVC++,
5932     # which start with @ or ?.
5933     lt_cv_sys_global_symbol_pipe="$AWK '"\
5934 "     {last_section=section; section=\$ 3};"\
5935 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5936 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5937 "     \$ 0!~/External *\|/{next};"\
5938 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5939 "     {if(hide[section]) next};"\
5940 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5941 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5942 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
5943 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5944 "     ' prfx=^$ac_symprfx"
5945   else
5946     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5947   fi
5948   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5949
5950   # Check to see that the pipe works correctly.
5951   pipe_works=no
5952
5953   rm -f conftest*
5954   cat > conftest.$ac_ext <<_LT_EOF
5955 #ifdef __cplusplus
5956 extern "C" {
5957 #endif
5958 char nm_test_var;
5959 void nm_test_func(void);
5960 void nm_test_func(void){}
5961 #ifdef __cplusplus
5962 }
5963 #endif
5964 int main(){nm_test_var='a';nm_test_func();return(0);}
5965 _LT_EOF
5966
5967   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5968   (eval $ac_compile) 2>&5
5969   ac_status=$?
5970   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5971   test $ac_status = 0; }; then
5972     # Now try to grab the symbols.
5973     nlist=conftest.nm
5974     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5975   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5976   ac_status=$?
5977   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5978   test $ac_status = 0; } && test -s "$nlist"; then
5979       # Try sorting and uniquifying the output.
5980       if sort "$nlist" | uniq > "$nlist"T; then
5981         mv -f "$nlist"T "$nlist"
5982       else
5983         rm -f "$nlist"T
5984       fi
5985
5986       # Make sure that we snagged all the symbols we need.
5987       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5988         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5989           cat <<_LT_EOF > conftest.$ac_ext
5990 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
5991 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5992 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5993    relocations are performed -- see ld's documentation on pseudo-relocs.  */
5994 # define LT_DLSYM_CONST
5995 #elif defined(__osf__)
5996 /* This system does not cope well with relocations in const data.  */
5997 # define LT_DLSYM_CONST
5998 #else
5999 # define LT_DLSYM_CONST const
6000 #endif
6001
6002 #ifdef __cplusplus
6003 extern "C" {
6004 #endif
6005
6006 _LT_EOF
6007           # Now generate the symbol file.
6008           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6009
6010           cat <<_LT_EOF >> conftest.$ac_ext
6011
6012 /* The mapping between symbol names and symbols.  */
6013 LT_DLSYM_CONST struct {
6014   const char *name;
6015   void       *address;
6016 }
6017 lt__PROGRAM__LTX_preloaded_symbols[] =
6018 {
6019   { "@PROGRAM@", (void *) 0 },
6020 _LT_EOF
6021           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6022           cat <<\_LT_EOF >> conftest.$ac_ext
6023   {0, (void *) 0}
6024 };
6025
6026 /* This works around a problem in FreeBSD linker */
6027 #ifdef FREEBSD_WORKAROUND
6028 static const void *lt_preloaded_setup() {
6029   return lt__PROGRAM__LTX_preloaded_symbols;
6030 }
6031 #endif
6032
6033 #ifdef __cplusplus
6034 }
6035 #endif
6036 _LT_EOF
6037           # Now try linking the two files.
6038           mv conftest.$ac_objext conftstm.$ac_objext
6039           lt_globsym_save_LIBS=$LIBS
6040           lt_globsym_save_CFLAGS=$CFLAGS
6041           LIBS="conftstm.$ac_objext"
6042           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6043           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6044   (eval $ac_link) 2>&5
6045   ac_status=$?
6046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6048             pipe_works=yes
6049           fi
6050           LIBS=$lt_globsym_save_LIBS
6051           CFLAGS=$lt_globsym_save_CFLAGS
6052         else
6053           echo "cannot find nm_test_func in $nlist" >&5
6054         fi
6055       else
6056         echo "cannot find nm_test_var in $nlist" >&5
6057       fi
6058     else
6059       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6060     fi
6061   else
6062     echo "$progname: failed program was:" >&5
6063     cat conftest.$ac_ext >&5
6064   fi
6065   rm -rf conftest* conftst*
6066
6067   # Do not use the global_symbol_pipe unless it works.
6068   if test "$pipe_works" = yes; then
6069     break
6070   else
6071     lt_cv_sys_global_symbol_pipe=
6072   fi
6073 done
6074
6075 fi
6076
6077 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6078   lt_cv_sys_global_symbol_to_cdecl=
6079 fi
6080 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6082 $as_echo "failed" >&6; }
6083 else
6084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6085 $as_echo "ok" >&6; }
6086 fi
6087
6088 # Response file support.
6089 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6090   nm_file_list_spec='@'
6091 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6092   nm_file_list_spec='@'
6093 fi
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6122 $as_echo_n "checking for sysroot... " >&6; }
6123
6124 # Check whether --with-sysroot was given.
6125 if test "${with_sysroot+set}" = set; then :
6126   withval=$with_sysroot;
6127 else
6128   with_sysroot=no
6129 fi
6130
6131
6132 lt_sysroot=
6133 case ${with_sysroot} in #(
6134  yes)
6135    if test "$GCC" = yes; then
6136      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6137    fi
6138    ;; #(
6139  /*)
6140    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6141    ;; #(
6142  no|'')
6143    ;; #(
6144  *)
6145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6146 $as_echo "${with_sysroot}" >&6; }
6147    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6148    ;;
6149 esac
6150
6151  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6152 $as_echo "${lt_sysroot:-no}" >&6; }
6153
6154
6155
6156
6157
6158 # Check whether --enable-libtool-lock was given.
6159 if test "${enable_libtool_lock+set}" = set; then :
6160   enableval=$enable_libtool_lock;
6161 fi
6162
6163 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6164
6165 # Some flags need to be propagated to the compiler or linker for good
6166 # libtool support.
6167 case $host in
6168 ia64-*-hpux*)
6169   # Find out which ABI we are using.
6170   echo 'int i;' > conftest.$ac_ext
6171   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6172   (eval $ac_compile) 2>&5
6173   ac_status=$?
6174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175   test $ac_status = 0; }; then
6176     case `/usr/bin/file conftest.$ac_objext` in
6177       *ELF-32*)
6178         HPUX_IA64_MODE="32"
6179         ;;
6180       *ELF-64*)
6181         HPUX_IA64_MODE="64"
6182         ;;
6183     esac
6184   fi
6185   rm -rf conftest*
6186   ;;
6187 *-*-irix6*)
6188   # Find out which ABI we are using.
6189   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6190   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6191   (eval $ac_compile) 2>&5
6192   ac_status=$?
6193   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6194   test $ac_status = 0; }; then
6195     if test "$lt_cv_prog_gnu_ld" = yes; then
6196       case `/usr/bin/file conftest.$ac_objext` in
6197         *32-bit*)
6198           LD="${LD-ld} -melf32bsmip"
6199           ;;
6200         *N32*)
6201           LD="${LD-ld} -melf32bmipn32"
6202           ;;
6203         *64-bit*)
6204           LD="${LD-ld} -melf64bmip"
6205         ;;
6206       esac
6207     else
6208       case `/usr/bin/file conftest.$ac_objext` in
6209         *32-bit*)
6210           LD="${LD-ld} -32"
6211           ;;
6212         *N32*)
6213           LD="${LD-ld} -n32"
6214           ;;
6215         *64-bit*)
6216           LD="${LD-ld} -64"
6217           ;;
6218       esac
6219     fi
6220   fi
6221   rm -rf conftest*
6222   ;;
6223
6224 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6225 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6226   # Find out which ABI we are using.
6227   echo 'int i;' > conftest.$ac_ext
6228   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6229   (eval $ac_compile) 2>&5
6230   ac_status=$?
6231   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6232   test $ac_status = 0; }; then
6233     case `/usr/bin/file conftest.o` in
6234       *32-bit*)
6235         case $host in
6236           x86_64-*kfreebsd*-gnu)
6237             LD="${LD-ld} -m elf_i386_fbsd"
6238             ;;
6239           x86_64-*linux*)
6240             LD="${LD-ld} -m elf_i386"
6241             ;;
6242           powerpc64le-*linux*)
6243             LD="${LD-ld} -m elf32lppclinux"
6244             ;;
6245           powerpc64-*linux*)
6246             LD="${LD-ld} -m elf32ppclinux"
6247             ;;
6248           s390x-*linux*)
6249             LD="${LD-ld} -m elf_s390"
6250             ;;
6251           sparc64-*linux*)
6252             LD="${LD-ld} -m elf32_sparc"
6253             ;;
6254         esac
6255         ;;
6256       *64-bit*)
6257         case $host in
6258           x86_64-*kfreebsd*-gnu)
6259             LD="${LD-ld} -m elf_x86_64_fbsd"
6260             ;;
6261           x86_64-*linux*)
6262             LD="${LD-ld} -m elf_x86_64"
6263             ;;
6264           powerpcle-*linux*)
6265             LD="${LD-ld} -m elf64lppc"
6266             ;;
6267           powerpc-*linux*)
6268             LD="${LD-ld} -m elf64ppc"
6269             ;;
6270           s390*-*linux*|s390*-*tpf*)
6271             LD="${LD-ld} -m elf64_s390"
6272             ;;
6273           sparc*-*linux*)
6274             LD="${LD-ld} -m elf64_sparc"
6275             ;;
6276         esac
6277         ;;
6278     esac
6279   fi
6280   rm -rf conftest*
6281   ;;
6282
6283 *-*-sco3.2v5*)
6284   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6285   SAVE_CFLAGS="$CFLAGS"
6286   CFLAGS="$CFLAGS -belf"
6287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6288 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6289 if ${lt_cv_cc_needs_belf+:} false; then :
6290   $as_echo_n "(cached) " >&6
6291 else
6292   ac_ext=c
6293 ac_cpp='$CPP $CPPFLAGS'
6294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6297
6298      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6299 /* end confdefs.h.  */
6300
6301 int
6302 main ()
6303 {
6304
6305   ;
6306   return 0;
6307 }
6308 _ACEOF
6309 if ac_fn_c_try_link "$LINENO"; then :
6310   lt_cv_cc_needs_belf=yes
6311 else
6312   lt_cv_cc_needs_belf=no
6313 fi
6314 rm -f core conftest.err conftest.$ac_objext \
6315     conftest$ac_exeext conftest.$ac_ext
6316      ac_ext=c
6317 ac_cpp='$CPP $CPPFLAGS'
6318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6324 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6325   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6326     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6327     CFLAGS="$SAVE_CFLAGS"
6328   fi
6329   ;;
6330 *-*solaris*)
6331   # Find out which ABI we are using.
6332   echo 'int i;' > conftest.$ac_ext
6333   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6334   (eval $ac_compile) 2>&5
6335   ac_status=$?
6336   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337   test $ac_status = 0; }; then
6338     case `/usr/bin/file conftest.o` in
6339     *64-bit*)
6340       case $lt_cv_prog_gnu_ld in
6341       yes*)
6342         case $host in
6343         i?86-*-solaris*)
6344           LD="${LD-ld} -m elf_x86_64"
6345           ;;
6346         sparc*-*-solaris*)
6347           LD="${LD-ld} -m elf64_sparc"
6348           ;;
6349         esac
6350         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6351         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6352           LD="${LD-ld}_sol2"
6353         fi
6354         ;;
6355       *)
6356         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6357           LD="${LD-ld} -64"
6358         fi
6359         ;;
6360       esac
6361       ;;
6362     esac
6363   fi
6364   rm -rf conftest*
6365   ;;
6366 esac
6367
6368 need_locks="$enable_libtool_lock"
6369
6370 if test -n "$ac_tool_prefix"; then
6371   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6372 set dummy ${ac_tool_prefix}mt; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6376   $as_echo_n "(cached) " >&6
6377 else
6378   if test -n "$MANIFEST_TOOL"; then
6379   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384   IFS=$as_save_IFS
6385   test -z "$as_dir" && as_dir=.
6386     for ac_exec_ext in '' $ac_executable_extensions; do
6387   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6389     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390     break 2
6391   fi
6392 done
6393   done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6399 if test -n "$MANIFEST_TOOL"; then
6400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6401 $as_echo "$MANIFEST_TOOL" >&6; }
6402 else
6403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407
6408 fi
6409 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6410   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6411   # Extract the first word of "mt", so it can be a program name with args.
6412 set dummy mt; ac_word=$2
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6414 $as_echo_n "checking for $ac_word... " >&6; }
6415 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6416   $as_echo_n "(cached) " >&6
6417 else
6418   if test -n "$ac_ct_MANIFEST_TOOL"; then
6419   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6420 else
6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6422 for as_dir in $PATH
6423 do
6424   IFS=$as_save_IFS
6425   test -z "$as_dir" && as_dir=.
6426     for ac_exec_ext in '' $ac_executable_extensions; do
6427   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6428     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6430     break 2
6431   fi
6432 done
6433   done
6434 IFS=$as_save_IFS
6435
6436 fi
6437 fi
6438 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6439 if test -n "$ac_ct_MANIFEST_TOOL"; then
6440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6441 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6442 else
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444 $as_echo "no" >&6; }
6445 fi
6446
6447   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6448     MANIFEST_TOOL=":"
6449   else
6450     case $cross_compiling:$ac_tool_warned in
6451 yes:)
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6453 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6454 ac_tool_warned=yes ;;
6455 esac
6456     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6457   fi
6458 else
6459   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6460 fi
6461
6462 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6464 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6465 if ${lt_cv_path_mainfest_tool+:} false; then :
6466   $as_echo_n "(cached) " >&6
6467 else
6468   lt_cv_path_mainfest_tool=no
6469   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6470   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6471   cat conftest.err >&5
6472   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6473     lt_cv_path_mainfest_tool=yes
6474   fi
6475   rm -f conftest*
6476 fi
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6478 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6479 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6480   MANIFEST_TOOL=:
6481 fi
6482
6483
6484
6485
6486
6487
6488   case $host_os in
6489     rhapsody* | darwin*)
6490     if test -n "$ac_tool_prefix"; then
6491   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6492 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6496   $as_echo_n "(cached) " >&6
6497 else
6498   if test -n "$DSYMUTIL"; then
6499   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504   IFS=$as_save_IFS
6505   test -z "$as_dir" && as_dir=.
6506     for ac_exec_ext in '' $ac_executable_extensions; do
6507   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6508     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510     break 2
6511   fi
6512 done
6513   done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6519 if test -n "$DSYMUTIL"; then
6520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6521 $as_echo "$DSYMUTIL" >&6; }
6522 else
6523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527
6528 fi
6529 if test -z "$ac_cv_prog_DSYMUTIL"; then
6530   ac_ct_DSYMUTIL=$DSYMUTIL
6531   # Extract the first word of "dsymutil", so it can be a program name with args.
6532 set dummy dsymutil; ac_word=$2
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534 $as_echo_n "checking for $ac_word... " >&6; }
6535 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6536   $as_echo_n "(cached) " >&6
6537 else
6538   if test -n "$ac_ct_DSYMUTIL"; then
6539   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6540 else
6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542 for as_dir in $PATH
6543 do
6544   IFS=$as_save_IFS
6545   test -z "$as_dir" && as_dir=.
6546     for ac_exec_ext in '' $ac_executable_extensions; do
6547   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6548     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6549     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550     break 2
6551   fi
6552 done
6553   done
6554 IFS=$as_save_IFS
6555
6556 fi
6557 fi
6558 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6559 if test -n "$ac_ct_DSYMUTIL"; then
6560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6561 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6562 else
6563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564 $as_echo "no" >&6; }
6565 fi
6566
6567   if test "x$ac_ct_DSYMUTIL" = x; then
6568     DSYMUTIL=":"
6569   else
6570     case $cross_compiling:$ac_tool_warned in
6571 yes:)
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6574 ac_tool_warned=yes ;;
6575 esac
6576     DSYMUTIL=$ac_ct_DSYMUTIL
6577   fi
6578 else
6579   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6580 fi
6581
6582     if test -n "$ac_tool_prefix"; then
6583   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6584 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_prog_NMEDIT+:} false; then :
6588   $as_echo_n "(cached) " >&6
6589 else
6590   if test -n "$NMEDIT"; then
6591   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596   IFS=$as_save_IFS
6597   test -z "$as_dir" && as_dir=.
6598     for ac_exec_ext in '' $ac_executable_extensions; do
6599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6600     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602     break 2
6603   fi
6604 done
6605   done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 NMEDIT=$ac_cv_prog_NMEDIT
6611 if test -n "$NMEDIT"; then
6612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6613 $as_echo "$NMEDIT" >&6; }
6614 else
6615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619
6620 fi
6621 if test -z "$ac_cv_prog_NMEDIT"; then
6622   ac_ct_NMEDIT=$NMEDIT
6623   # Extract the first word of "nmedit", so it can be a program name with args.
6624 set dummy nmedit; ac_word=$2
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6626 $as_echo_n "checking for $ac_word... " >&6; }
6627 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6628   $as_echo_n "(cached) " >&6
6629 else
6630   if test -n "$ac_ct_NMEDIT"; then
6631   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6632 else
6633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6634 for as_dir in $PATH
6635 do
6636   IFS=$as_save_IFS
6637   test -z "$as_dir" && as_dir=.
6638     for ac_exec_ext in '' $ac_executable_extensions; do
6639   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6640     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6642     break 2
6643   fi
6644 done
6645   done
6646 IFS=$as_save_IFS
6647
6648 fi
6649 fi
6650 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6651 if test -n "$ac_ct_NMEDIT"; then
6652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6653 $as_echo "$ac_ct_NMEDIT" >&6; }
6654 else
6655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6656 $as_echo "no" >&6; }
6657 fi
6658
6659   if test "x$ac_ct_NMEDIT" = x; then
6660     NMEDIT=":"
6661   else
6662     case $cross_compiling:$ac_tool_warned in
6663 yes:)
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6665 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6666 ac_tool_warned=yes ;;
6667 esac
6668     NMEDIT=$ac_ct_NMEDIT
6669   fi
6670 else
6671   NMEDIT="$ac_cv_prog_NMEDIT"
6672 fi
6673
6674     if test -n "$ac_tool_prefix"; then
6675   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_prog_LIPO+:} false; then :
6680   $as_echo_n "(cached) " >&6
6681 else
6682   if test -n "$LIPO"; then
6683   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690     for ac_exec_ext in '' $ac_executable_extensions; do
6691   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6692     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6693     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697   done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 LIPO=$ac_cv_prog_LIPO
6703 if test -n "$LIPO"; then
6704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6705 $as_echo "$LIPO" >&6; }
6706 else
6707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_LIPO"; then
6714   ac_ct_LIPO=$LIPO
6715   # Extract the first word of "lipo", so it can be a program name with args.
6716 set dummy lipo; ac_word=$2
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6718 $as_echo_n "checking for $ac_word... " >&6; }
6719 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6720   $as_echo_n "(cached) " >&6
6721 else
6722   if test -n "$ac_ct_LIPO"; then
6723   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730     for ac_exec_ext in '' $ac_executable_extensions; do
6731   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6732     ac_cv_prog_ac_ct_LIPO="lipo"
6733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737   done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6743 if test -n "$ac_ct_LIPO"; then
6744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6745 $as_echo "$ac_ct_LIPO" >&6; }
6746 else
6747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6748 $as_echo "no" >&6; }
6749 fi
6750
6751   if test "x$ac_ct_LIPO" = x; then
6752     LIPO=":"
6753   else
6754     case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6758 ac_tool_warned=yes ;;
6759 esac
6760     LIPO=$ac_ct_LIPO
6761   fi
6762 else
6763   LIPO="$ac_cv_prog_LIPO"
6764 fi
6765
6766     if test -n "$ac_tool_prefix"; then
6767   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6768 set dummy ${ac_tool_prefix}otool; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_OTOOL+:} false; then :
6772   $as_echo_n "(cached) " >&6
6773 else
6774   if test -n "$OTOOL"; then
6775   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780   IFS=$as_save_IFS
6781   test -z "$as_dir" && as_dir=.
6782     for ac_exec_ext in '' $ac_executable_extensions; do
6783   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6784     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786     break 2
6787   fi
6788 done
6789   done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 OTOOL=$ac_cv_prog_OTOOL
6795 if test -n "$OTOOL"; then
6796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6797 $as_echo "$OTOOL" >&6; }
6798 else
6799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803
6804 fi
6805 if test -z "$ac_cv_prog_OTOOL"; then
6806   ac_ct_OTOOL=$OTOOL
6807   # Extract the first word of "otool", so it can be a program name with args.
6808 set dummy otool; ac_word=$2
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6810 $as_echo_n "checking for $ac_word... " >&6; }
6811 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6812   $as_echo_n "(cached) " >&6
6813 else
6814   if test -n "$ac_ct_OTOOL"; then
6815   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6816 else
6817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 for as_dir in $PATH
6819 do
6820   IFS=$as_save_IFS
6821   test -z "$as_dir" && as_dir=.
6822     for ac_exec_ext in '' $ac_executable_extensions; do
6823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6824     ac_cv_prog_ac_ct_OTOOL="otool"
6825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6826     break 2
6827   fi
6828 done
6829   done
6830 IFS=$as_save_IFS
6831
6832 fi
6833 fi
6834 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6835 if test -n "$ac_ct_OTOOL"; then
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6837 $as_echo "$ac_ct_OTOOL" >&6; }
6838 else
6839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6841 fi
6842
6843   if test "x$ac_ct_OTOOL" = x; then
6844     OTOOL=":"
6845   else
6846     case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852     OTOOL=$ac_ct_OTOOL
6853   fi
6854 else
6855   OTOOL="$ac_cv_prog_OTOOL"
6856 fi
6857
6858     if test -n "$ac_tool_prefix"; then
6859   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_OTOOL64+:} false; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$OTOOL64"; then
6867   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6876     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881   done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 OTOOL64=$ac_cv_prog_OTOOL64
6887 if test -n "$OTOOL64"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6889 $as_echo "$OTOOL64" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_OTOOL64"; then
6898   ac_ct_OTOOL64=$OTOOL64
6899   # Extract the first word of "otool64", so it can be a program name with args.
6900 set dummy otool64; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   if test -n "$ac_ct_OTOOL64"; then
6907   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6916     ac_cv_prog_ac_ct_OTOOL64="otool64"
6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921   done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6927 if test -n "$ac_ct_OTOOL64"; then
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6929 $as_echo "$ac_ct_OTOOL64" >&6; }
6930 else
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935   if test "x$ac_ct_OTOOL64" = x; then
6936     OTOOL64=":"
6937   else
6938     case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944     OTOOL64=$ac_ct_OTOOL64
6945   fi
6946 else
6947   OTOOL64="$ac_cv_prog_OTOOL64"
6948 fi
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6977 $as_echo_n "checking for -single_module linker flag... " >&6; }
6978 if ${lt_cv_apple_cc_single_mod+:} false; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   lt_cv_apple_cc_single_mod=no
6982       if test -z "${LT_MULTI_MODULE}"; then
6983         # By default we will add the -single_module flag. You can override
6984         # by either setting the environment variable LT_MULTI_MODULE
6985         # non-empty at configure time, or by adding -multi_module to the
6986         # link flags.
6987         rm -rf libconftest.dylib*
6988         echo "int foo(void){return 1;}" > conftest.c
6989         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6990 -dynamiclib -Wl,-single_module conftest.c" >&5
6991         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6992           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6993         _lt_result=$?
6994         # If there is a non-empty error log, and "single_module"
6995         # appears in it, assume the flag caused a linker warning
6996         if test -s conftest.err && $GREP single_module conftest.err; then
6997           cat conftest.err >&5
6998         # Otherwise, if the output was created with a 0 exit code from
6999         # the compiler, it worked.
7000         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7001           lt_cv_apple_cc_single_mod=yes
7002         else
7003           cat conftest.err >&5
7004         fi
7005         rm -rf libconftest.dylib*
7006         rm -f conftest.*
7007       fi
7008 fi
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7010 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7011
7012     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7013 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7014 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7015   $as_echo_n "(cached) " >&6
7016 else
7017   lt_cv_ld_exported_symbols_list=no
7018       save_LDFLAGS=$LDFLAGS
7019       echo "_main" > conftest.sym
7020       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h.  */
7023
7024 int
7025 main ()
7026 {
7027
7028   ;
7029   return 0;
7030 }
7031 _ACEOF
7032 if ac_fn_c_try_link "$LINENO"; then :
7033   lt_cv_ld_exported_symbols_list=yes
7034 else
7035   lt_cv_ld_exported_symbols_list=no
7036 fi
7037 rm -f core conftest.err conftest.$ac_objext \
7038     conftest$ac_exeext conftest.$ac_ext
7039         LDFLAGS="$save_LDFLAGS"
7040
7041 fi
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7043 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7044
7045     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7046 $as_echo_n "checking for -force_load linker flag... " >&6; }
7047 if ${lt_cv_ld_force_load+:} false; then :
7048   $as_echo_n "(cached) " >&6
7049 else
7050   lt_cv_ld_force_load=no
7051       cat > conftest.c << _LT_EOF
7052 int forced_loaded() { return 2;}
7053 _LT_EOF
7054       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7055       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7056       echo "$AR cru libconftest.a conftest.o" >&5
7057       $AR cru libconftest.a conftest.o 2>&5
7058       echo "$RANLIB libconftest.a" >&5
7059       $RANLIB libconftest.a 2>&5
7060       cat > conftest.c << _LT_EOF
7061 int main() { return 0;}
7062 _LT_EOF
7063       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7064       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7065       _lt_result=$?
7066       if test -s conftest.err && $GREP force_load conftest.err; then
7067         cat conftest.err >&5
7068       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7069         lt_cv_ld_force_load=yes
7070       else
7071         cat conftest.err >&5
7072       fi
7073         rm -f conftest.err libconftest.a conftest conftest.c
7074         rm -rf conftest.dSYM
7075
7076 fi
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7078 $as_echo "$lt_cv_ld_force_load" >&6; }
7079     case $host_os in
7080     rhapsody* | darwin1.[012])
7081       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7082     darwin1.*)
7083       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7084     darwin*) # darwin 5.x on
7085       # if running on 10.5 or later, the deployment target defaults
7086       # to the OS version, if on x86, and 10.4, the deployment
7087       # target defaults to 10.4. Don't you love it?
7088       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7089         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7090           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7091         10.[012]*)
7092           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7093         10.*)
7094           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7095       esac
7096     ;;
7097   esac
7098     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7099       _lt_dar_single_mod='$single_module'
7100     fi
7101     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7102       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7103     else
7104       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7105     fi
7106     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7107       _lt_dsymutil='~$DSYMUTIL $lib || :'
7108     else
7109       _lt_dsymutil=
7110     fi
7111     ;;
7112   esac
7113
7114 ac_ext=c
7115 ac_cpp='$CPP $CPPFLAGS'
7116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7120 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7121 # On Suns, sometimes $CPP names a directory.
7122 if test -n "$CPP" && test -d "$CPP"; then
7123   CPP=
7124 fi
7125 if test -z "$CPP"; then
7126   if ${ac_cv_prog_CPP+:} false; then :
7127   $as_echo_n "(cached) " >&6
7128 else
7129       # Double quotes because CPP needs to be expanded
7130     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7131     do
7132       ac_preproc_ok=false
7133 for ac_c_preproc_warn_flag in '' yes
7134 do
7135   # Use a header file that comes with gcc, so configuring glibc
7136   # with a fresh cross-compiler works.
7137   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7138   # <limits.h> exists even on freestanding compilers.
7139   # On the NeXT, cc -E runs the code through the compiler's parser,
7140   # not just through cpp. "Syntax error" is here to catch this case.
7141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h.  */
7143 #ifdef __STDC__
7144 # include <limits.h>
7145 #else
7146 # include <assert.h>
7147 #endif
7148                      Syntax error
7149 _ACEOF
7150 if ac_fn_c_try_cpp "$LINENO"; then :
7151
7152 else
7153   # Broken: fails on valid input.
7154 continue
7155 fi
7156 rm -f conftest.err conftest.i conftest.$ac_ext
7157
7158   # OK, works on sane cases.  Now check whether nonexistent headers
7159   # can be detected and how.
7160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h.  */
7162 #include <ac_nonexistent.h>
7163 _ACEOF
7164 if ac_fn_c_try_cpp "$LINENO"; then :
7165   # Broken: success on invalid input.
7166 continue
7167 else
7168   # Passes both tests.
7169 ac_preproc_ok=:
7170 break
7171 fi
7172 rm -f conftest.err conftest.i conftest.$ac_ext
7173
7174 done
7175 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7176 rm -f conftest.i conftest.err conftest.$ac_ext
7177 if $ac_preproc_ok; then :
7178   break
7179 fi
7180
7181     done
7182     ac_cv_prog_CPP=$CPP
7183
7184 fi
7185   CPP=$ac_cv_prog_CPP
7186 else
7187   ac_cv_prog_CPP=$CPP
7188 fi
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7190 $as_echo "$CPP" >&6; }
7191 ac_preproc_ok=false
7192 for ac_c_preproc_warn_flag in '' yes
7193 do
7194   # Use a header file that comes with gcc, so configuring glibc
7195   # with a fresh cross-compiler works.
7196   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7197   # <limits.h> exists even on freestanding compilers.
7198   # On the NeXT, cc -E runs the code through the compiler's parser,
7199   # not just through cpp. "Syntax error" is here to catch this case.
7200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h.  */
7202 #ifdef __STDC__
7203 # include <limits.h>
7204 #else
7205 # include <assert.h>
7206 #endif
7207                      Syntax error
7208 _ACEOF
7209 if ac_fn_c_try_cpp "$LINENO"; then :
7210
7211 else
7212   # Broken: fails on valid input.
7213 continue
7214 fi
7215 rm -f conftest.err conftest.i conftest.$ac_ext
7216
7217   # OK, works on sane cases.  Now check whether nonexistent headers
7218   # can be detected and how.
7219   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h.  */
7221 #include <ac_nonexistent.h>
7222 _ACEOF
7223 if ac_fn_c_try_cpp "$LINENO"; then :
7224   # Broken: success on invalid input.
7225 continue
7226 else
7227   # Passes both tests.
7228 ac_preproc_ok=:
7229 break
7230 fi
7231 rm -f conftest.err conftest.i conftest.$ac_ext
7232
7233 done
7234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7235 rm -f conftest.i conftest.err conftest.$ac_ext
7236 if $ac_preproc_ok; then :
7237
7238 else
7239   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7240 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7241 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7242 See \`config.log' for more details" "$LINENO" 5; }
7243 fi
7244
7245 ac_ext=c
7246 ac_cpp='$CPP $CPPFLAGS'
7247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7250
7251
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7253 $as_echo_n "checking for ANSI C header files... " >&6; }
7254 if ${ac_cv_header_stdc+:} false; then :
7255   $as_echo_n "(cached) " >&6
7256 else
7257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h.  */
7259 #include <stdlib.h>
7260 #include <stdarg.h>
7261 #include <string.h>
7262 #include <float.h>
7263
7264 int
7265 main ()
7266 {
7267
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 if ac_fn_c_try_compile "$LINENO"; then :
7273   ac_cv_header_stdc=yes
7274 else
7275   ac_cv_header_stdc=no
7276 fi
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278
7279 if test $ac_cv_header_stdc = yes; then
7280   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7282 /* end confdefs.h.  */
7283 #include <string.h>
7284
7285 _ACEOF
7286 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287   $EGREP "memchr" >/dev/null 2>&1; then :
7288
7289 else
7290   ac_cv_header_stdc=no
7291 fi
7292 rm -f conftest*
7293
7294 fi
7295
7296 if test $ac_cv_header_stdc = yes; then
7297   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7299 /* end confdefs.h.  */
7300 #include <stdlib.h>
7301
7302 _ACEOF
7303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7304   $EGREP "free" >/dev/null 2>&1; then :
7305
7306 else
7307   ac_cv_header_stdc=no
7308 fi
7309 rm -f conftest*
7310
7311 fi
7312
7313 if test $ac_cv_header_stdc = yes; then
7314   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7315   if test "$cross_compiling" = yes; then :
7316   :
7317 else
7318   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7319 /* end confdefs.h.  */
7320 #include <ctype.h>
7321 #include <stdlib.h>
7322 #if ((' ' & 0x0FF) == 0x020)
7323 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7324 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7325 #else
7326 # define ISLOWER(c) \
7327                    (('a' <= (c) && (c) <= 'i') \
7328                      || ('j' <= (c) && (c) <= 'r') \
7329                      || ('s' <= (c) && (c) <= 'z'))
7330 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7331 #endif
7332
7333 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7334 int
7335 main ()
7336 {
7337   int i;
7338   for (i = 0; i < 256; i++)
7339     if (XOR (islower (i), ISLOWER (i))
7340         || toupper (i) != TOUPPER (i))
7341       return 2;
7342   return 0;
7343 }
7344 _ACEOF
7345 if ac_fn_c_try_run "$LINENO"; then :
7346
7347 else
7348   ac_cv_header_stdc=no
7349 fi
7350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7351   conftest.$ac_objext conftest.beam conftest.$ac_ext
7352 fi
7353
7354 fi
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7357 $as_echo "$ac_cv_header_stdc" >&6; }
7358 if test $ac_cv_header_stdc = yes; then
7359
7360 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7361
7362 fi
7363
7364 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7366                   inttypes.h stdint.h unistd.h
7367 do :
7368   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7369 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7370 "
7371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7372   cat >>confdefs.h <<_ACEOF
7373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7374 _ACEOF
7375
7376 fi
7377
7378 done
7379
7380
7381 for ac_header in dlfcn.h
7382 do :
7383   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7384 "
7385 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7386   cat >>confdefs.h <<_ACEOF
7387 #define HAVE_DLFCN_H 1
7388 _ACEOF
7389
7390 fi
7391
7392 done
7393
7394
7395
7396
7397
7398 # Set options
7399 enable_dlopen=yes
7400 enable_win32_dll=yes
7401
7402 case $host in
7403 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7404   if test -n "$ac_tool_prefix"; then
7405   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7406 set dummy ${ac_tool_prefix}as; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if ${ac_cv_prog_AS+:} false; then :
7410   $as_echo_n "(cached) " >&6
7411 else
7412   if test -n "$AS"; then
7413   ac_cv_prog_AS="$AS" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418   IFS=$as_save_IFS
7419   test -z "$as_dir" && as_dir=.
7420     for ac_exec_ext in '' $ac_executable_extensions; do
7421   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422     ac_cv_prog_AS="${ac_tool_prefix}as"
7423     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424     break 2
7425   fi
7426 done
7427   done
7428 IFS=$as_save_IFS
7429
7430 fi
7431 fi
7432 AS=$ac_cv_prog_AS
7433 if test -n "$AS"; then
7434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7435 $as_echo "$AS" >&6; }
7436 else
7437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7440
7441
7442 fi
7443 if test -z "$ac_cv_prog_AS"; then
7444   ac_ct_AS=$AS
7445   # Extract the first word of "as", so it can be a program name with args.
7446 set dummy as; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7450   $as_echo_n "(cached) " >&6
7451 else
7452   if test -n "$ac_ct_AS"; then
7453   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458   IFS=$as_save_IFS
7459   test -z "$as_dir" && as_dir=.
7460     for ac_exec_ext in '' $ac_executable_extensions; do
7461   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462     ac_cv_prog_ac_ct_AS="as"
7463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464     break 2
7465   fi
7466 done
7467   done
7468 IFS=$as_save_IFS
7469
7470 fi
7471 fi
7472 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7473 if test -n "$ac_ct_AS"; then
7474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7475 $as_echo "$ac_ct_AS" >&6; }
7476 else
7477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7480
7481   if test "x$ac_ct_AS" = x; then
7482     AS="false"
7483   else
7484     case $cross_compiling:$ac_tool_warned in
7485 yes:)
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488 ac_tool_warned=yes ;;
7489 esac
7490     AS=$ac_ct_AS
7491   fi
7492 else
7493   AS="$ac_cv_prog_AS"
7494 fi
7495
7496   if test -n "$ac_tool_prefix"; then
7497   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if ${ac_cv_prog_DLLTOOL+:} false; then :
7502   $as_echo_n "(cached) " >&6
7503 else
7504   if test -n "$DLLTOOL"; then
7505   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7509 do
7510   IFS=$as_save_IFS
7511   test -z "$as_dir" && as_dir=.
7512     for ac_exec_ext in '' $ac_executable_extensions; do
7513   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7514     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7515     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516     break 2
7517   fi
7518 done
7519   done
7520 IFS=$as_save_IFS
7521
7522 fi
7523 fi
7524 DLLTOOL=$ac_cv_prog_DLLTOOL
7525 if test -n "$DLLTOOL"; then
7526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7527 $as_echo "$DLLTOOL" >&6; }
7528 else
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7531 fi
7532
7533
7534 fi
7535 if test -z "$ac_cv_prog_DLLTOOL"; then
7536   ac_ct_DLLTOOL=$DLLTOOL
7537   # Extract the first word of "dlltool", so it can be a program name with args.
7538 set dummy dlltool; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7542   $as_echo_n "(cached) " >&6
7543 else
7544   if test -n "$ac_ct_DLLTOOL"; then
7545   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7549 do
7550   IFS=$as_save_IFS
7551   test -z "$as_dir" && as_dir=.
7552     for ac_exec_ext in '' $ac_executable_extensions; do
7553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7554     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556     break 2
7557   fi
7558 done
7559   done
7560 IFS=$as_save_IFS
7561
7562 fi
7563 fi
7564 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7565 if test -n "$ac_ct_DLLTOOL"; then
7566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7567 $as_echo "$ac_ct_DLLTOOL" >&6; }
7568 else
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7571 fi
7572
7573   if test "x$ac_ct_DLLTOOL" = x; then
7574     DLLTOOL="false"
7575   else
7576     case $cross_compiling:$ac_tool_warned in
7577 yes:)
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580 ac_tool_warned=yes ;;
7581 esac
7582     DLLTOOL=$ac_ct_DLLTOOL
7583   fi
7584 else
7585   DLLTOOL="$ac_cv_prog_DLLTOOL"
7586 fi
7587
7588   if test -n "$ac_tool_prefix"; then
7589   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7590 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592 $as_echo_n "checking for $ac_word... " >&6; }
7593 if ${ac_cv_prog_OBJDUMP+:} false; then :
7594   $as_echo_n "(cached) " >&6
7595 else
7596   if test -n "$OBJDUMP"; then
7597   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7598 else
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600 for as_dir in $PATH
7601 do
7602   IFS=$as_save_IFS
7603   test -z "$as_dir" && as_dir=.
7604     for ac_exec_ext in '' $ac_executable_extensions; do
7605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7606     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608     break 2
7609   fi
7610 done
7611   done
7612 IFS=$as_save_IFS
7613
7614 fi
7615 fi
7616 OBJDUMP=$ac_cv_prog_OBJDUMP
7617 if test -n "$OBJDUMP"; then
7618   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7619 $as_echo "$OBJDUMP" >&6; }
7620 else
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 $as_echo "no" >&6; }
7623 fi
7624
7625
7626 fi
7627 if test -z "$ac_cv_prog_OBJDUMP"; then
7628   ac_ct_OBJDUMP=$OBJDUMP
7629   # Extract the first word of "objdump", so it can be a program name with args.
7630 set dummy objdump; ac_word=$2
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632 $as_echo_n "checking for $ac_word... " >&6; }
7633 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7634   $as_echo_n "(cached) " >&6
7635 else
7636   if test -n "$ac_ct_OBJDUMP"; then
7637   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642   IFS=$as_save_IFS
7643   test -z "$as_dir" && as_dir=.
7644     for ac_exec_ext in '' $ac_executable_extensions; do
7645   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7646     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648     break 2
7649   fi
7650 done
7651   done
7652 IFS=$as_save_IFS
7653
7654 fi
7655 fi
7656 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7657 if test -n "$ac_ct_OBJDUMP"; then
7658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7659 $as_echo "$ac_ct_OBJDUMP" >&6; }
7660 else
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7663 fi
7664
7665   if test "x$ac_ct_OBJDUMP" = x; then
7666     OBJDUMP="false"
7667   else
7668     case $cross_compiling:$ac_tool_warned in
7669 yes:)
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672 ac_tool_warned=yes ;;
7673 esac
7674     OBJDUMP=$ac_ct_OBJDUMP
7675   fi
7676 else
7677   OBJDUMP="$ac_cv_prog_OBJDUMP"
7678 fi
7679
7680   ;;
7681 esac
7682
7683 test -z "$AS" && AS=as
7684
7685
7686
7687
7688
7689 test -z "$DLLTOOL" && DLLTOOL=dlltool
7690
7691
7692
7693
7694
7695 test -z "$OBJDUMP" && OBJDUMP=objdump
7696
7697
7698
7699
7700 # Check whether --enable-static was given.
7701 if test "${enable_static+set}" = set; then :
7702   enableval=$enable_static; p=${PACKAGE-default}
7703     case $enableval in
7704     yes) enable_static=yes ;;
7705     no) enable_static=no ;;
7706     *)
7707      enable_static=no
7708       # Look at the argument we got.  We use all the common list separators.
7709       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7710       for pkg in $enableval; do
7711         IFS="$lt_save_ifs"
7712         if test "X$pkg" = "X$p"; then
7713           enable_static=yes
7714         fi
7715       done
7716       IFS="$lt_save_ifs"
7717       ;;
7718     esac
7719 else
7720   enable_static=no
7721 fi
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734             # Check whether --enable-shared was given.
7735 if test "${enable_shared+set}" = set; then :
7736   enableval=$enable_shared; p=${PACKAGE-default}
7737     case $enableval in
7738     yes) enable_shared=yes ;;
7739     no) enable_shared=no ;;
7740     *)
7741       enable_shared=no
7742       # Look at the argument we got.  We use all the common list separators.
7743       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7744       for pkg in $enableval; do
7745         IFS="$lt_save_ifs"
7746         if test "X$pkg" = "X$p"; then
7747           enable_shared=yes
7748         fi
7749       done
7750       IFS="$lt_save_ifs"
7751       ;;
7752     esac
7753 else
7754   enable_shared=yes
7755 fi
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767 # Check whether --with-pic was given.
7768 if test "${with_pic+set}" = set; then :
7769   withval=$with_pic; lt_p=${PACKAGE-default}
7770     case $withval in
7771     yes|no) pic_mode=$withval ;;
7772     *)
7773       pic_mode=default
7774       # Look at the argument we got.  We use all the common list separators.
7775       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7776       for lt_pkg in $withval; do
7777         IFS="$lt_save_ifs"
7778         if test "X$lt_pkg" = "X$lt_p"; then
7779           pic_mode=yes
7780         fi
7781       done
7782       IFS="$lt_save_ifs"
7783       ;;
7784     esac
7785 else
7786   pic_mode=default
7787 fi
7788
7789
7790 test -z "$pic_mode" && pic_mode=default
7791
7792
7793
7794
7795
7796
7797
7798   # Check whether --enable-fast-install was given.
7799 if test "${enable_fast_install+set}" = set; then :
7800   enableval=$enable_fast_install; p=${PACKAGE-default}
7801     case $enableval in
7802     yes) enable_fast_install=yes ;;
7803     no) enable_fast_install=no ;;
7804     *)
7805       enable_fast_install=no
7806       # Look at the argument we got.  We use all the common list separators.
7807       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7808       for pkg in $enableval; do
7809         IFS="$lt_save_ifs"
7810         if test "X$pkg" = "X$p"; then
7811           enable_fast_install=yes
7812         fi
7813       done
7814       IFS="$lt_save_ifs"
7815       ;;
7816     esac
7817 else
7818   enable_fast_install=yes
7819 fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831 # This can be used to rebuild libtool when needed
7832 LIBTOOL_DEPS="$ltmain"
7833
7834 # Always use our own libtool.
7835 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866 test -z "$LN_S" && LN_S="ln -s"
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881 if test -n "${ZSH_VERSION+set}" ; then
7882    setopt NO_GLOB_SUBST
7883 fi
7884
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7886 $as_echo_n "checking for objdir... " >&6; }
7887 if ${lt_cv_objdir+:} false; then :
7888   $as_echo_n "(cached) " >&6
7889 else
7890   rm -f .libs 2>/dev/null
7891 mkdir .libs 2>/dev/null
7892 if test -d .libs; then
7893   lt_cv_objdir=.libs
7894 else
7895   # MS-DOS does not allow filenames that begin with a dot.
7896   lt_cv_objdir=_libs
7897 fi
7898 rmdir .libs 2>/dev/null
7899 fi
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7901 $as_echo "$lt_cv_objdir" >&6; }
7902 objdir=$lt_cv_objdir
7903
7904
7905
7906
7907
7908 cat >>confdefs.h <<_ACEOF
7909 #define LT_OBJDIR "$lt_cv_objdir/"
7910 _ACEOF
7911
7912
7913
7914
7915 case $host_os in
7916 aix3*)
7917   # AIX sometimes has problems with the GCC collect2 program.  For some
7918   # reason, if we set the COLLECT_NAMES environment variable, the problems
7919   # vanish in a puff of smoke.
7920   if test "X${COLLECT_NAMES+set}" != Xset; then
7921     COLLECT_NAMES=
7922     export COLLECT_NAMES
7923   fi
7924   ;;
7925 esac
7926
7927 # Global variables:
7928 ofile=libtool
7929 can_build_shared=yes
7930
7931 # All known linkers require a `.a' archive for static linking (except MSVC,
7932 # which needs '.lib').
7933 libext=a
7934
7935 with_gnu_ld="$lt_cv_prog_gnu_ld"
7936
7937 old_CC="$CC"
7938 old_CFLAGS="$CFLAGS"
7939
7940 # Set sane defaults for various variables
7941 test -z "$CC" && CC=cc
7942 test -z "$LTCC" && LTCC=$CC
7943 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7944 test -z "$LD" && LD=ld
7945 test -z "$ac_objext" && ac_objext=o
7946
7947 for cc_temp in $compiler""; do
7948   case $cc_temp in
7949     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7950     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7951     \-*) ;;
7952     *) break;;
7953   esac
7954 done
7955 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7956
7957
7958 # Only perform the check for file, if the check method requires it
7959 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7960 case $deplibs_check_method in
7961 file_magic*)
7962   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7963     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7964 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7965 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7966   $as_echo_n "(cached) " >&6
7967 else
7968   case $MAGIC_CMD in
7969 [\\/*] |  ?:[\\/]*)
7970   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7971   ;;
7972 *)
7973   lt_save_MAGIC_CMD="$MAGIC_CMD"
7974   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7975   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7976   for ac_dir in $ac_dummy; do
7977     IFS="$lt_save_ifs"
7978     test -z "$ac_dir" && ac_dir=.
7979     if test -f $ac_dir/${ac_tool_prefix}file; then
7980       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7981       if test -n "$file_magic_test_file"; then
7982         case $deplibs_check_method in
7983         "file_magic "*)
7984           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7985           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7986           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7987             $EGREP "$file_magic_regex" > /dev/null; then
7988             :
7989           else
7990             cat <<_LT_EOF 1>&2
7991
7992 *** Warning: the command libtool uses to detect shared libraries,
7993 *** $file_magic_cmd, produces output that libtool cannot recognize.
7994 *** The result is that libtool may fail to recognize shared libraries
7995 *** as such.  This will affect the creation of libtool libraries that
7996 *** depend on shared libraries, but programs linked with such libtool
7997 *** libraries will work regardless of this problem.  Nevertheless, you
7998 *** may want to report the problem to your system manager and/or to
7999 *** bug-libtool@gnu.org
8000
8001 _LT_EOF
8002           fi ;;
8003         esac
8004       fi
8005       break
8006     fi
8007   done
8008   IFS="$lt_save_ifs"
8009   MAGIC_CMD="$lt_save_MAGIC_CMD"
8010   ;;
8011 esac
8012 fi
8013
8014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8015 if test -n "$MAGIC_CMD"; then
8016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8017 $as_echo "$MAGIC_CMD" >&6; }
8018 else
8019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8020 $as_echo "no" >&6; }
8021 fi
8022
8023
8024
8025
8026
8027 if test -z "$lt_cv_path_MAGIC_CMD"; then
8028   if test -n "$ac_tool_prefix"; then
8029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8030 $as_echo_n "checking for file... " >&6; }
8031 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   case $MAGIC_CMD in
8035 [\\/*] |  ?:[\\/]*)
8036   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8037   ;;
8038 *)
8039   lt_save_MAGIC_CMD="$MAGIC_CMD"
8040   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8041   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8042   for ac_dir in $ac_dummy; do
8043     IFS="$lt_save_ifs"
8044     test -z "$ac_dir" && ac_dir=.
8045     if test -f $ac_dir/file; then
8046       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8047       if test -n "$file_magic_test_file"; then
8048         case $deplibs_check_method in
8049         "file_magic "*)
8050           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8051           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8052           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8053             $EGREP "$file_magic_regex" > /dev/null; then
8054             :
8055           else
8056             cat <<_LT_EOF 1>&2
8057
8058 *** Warning: the command libtool uses to detect shared libraries,
8059 *** $file_magic_cmd, produces output that libtool cannot recognize.
8060 *** The result is that libtool may fail to recognize shared libraries
8061 *** as such.  This will affect the creation of libtool libraries that
8062 *** depend on shared libraries, but programs linked with such libtool
8063 *** libraries will work regardless of this problem.  Nevertheless, you
8064 *** may want to report the problem to your system manager and/or to
8065 *** bug-libtool@gnu.org
8066
8067 _LT_EOF
8068           fi ;;
8069         esac
8070       fi
8071       break
8072     fi
8073   done
8074   IFS="$lt_save_ifs"
8075   MAGIC_CMD="$lt_save_MAGIC_CMD"
8076   ;;
8077 esac
8078 fi
8079
8080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8081 if test -n "$MAGIC_CMD"; then
8082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8083 $as_echo "$MAGIC_CMD" >&6; }
8084 else
8085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }
8087 fi
8088
8089
8090   else
8091     MAGIC_CMD=:
8092   fi
8093 fi
8094
8095   fi
8096   ;;
8097 esac
8098
8099 # Use C for the default configuration in the libtool script
8100
8101 lt_save_CC="$CC"
8102 ac_ext=c
8103 ac_cpp='$CPP $CPPFLAGS'
8104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8107
8108
8109 # Source file extension for C test sources.
8110 ac_ext=c
8111
8112 # Object file extension for compiled C test sources.
8113 objext=o
8114 objext=$objext
8115
8116 # Code to be used in simple compile tests
8117 lt_simple_compile_test_code="int some_variable = 0;"
8118
8119 # Code to be used in simple link tests
8120 lt_simple_link_test_code='int main(){return(0);}'
8121
8122
8123
8124
8125
8126
8127
8128 # If no C compiler was specified, use CC.
8129 LTCC=${LTCC-"$CC"}
8130
8131 # If no C compiler flags were specified, use CFLAGS.
8132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8133
8134 # Allow CC to be a program name with arguments.
8135 compiler=$CC
8136
8137 # Save the default compiler, since it gets overwritten when the other
8138 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8139 compiler_DEFAULT=$CC
8140
8141 # save warnings/boilerplate of simple test code
8142 ac_outfile=conftest.$ac_objext
8143 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8144 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8145 _lt_compiler_boilerplate=`cat conftest.err`
8146 $RM conftest*
8147
8148 ac_outfile=conftest.$ac_objext
8149 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8150 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8151 _lt_linker_boilerplate=`cat conftest.err`
8152 $RM -r conftest*
8153
8154
8155 ## CAVEAT EMPTOR:
8156 ## There is no encapsulation within the following macros, do not change
8157 ## the running order or otherwise move them around unless you know exactly
8158 ## what you are doing...
8159 if test -n "$compiler"; then
8160
8161 lt_prog_compiler_no_builtin_flag=
8162
8163 if test "$GCC" = yes; then
8164   case $cc_basename in
8165   nvcc*)
8166     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8167   *)
8168     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8169   esac
8170
8171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8172 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8173 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8174   $as_echo_n "(cached) " >&6
8175 else
8176   lt_cv_prog_compiler_rtti_exceptions=no
8177    ac_outfile=conftest.$ac_objext
8178    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8179    lt_compiler_flag="-fno-rtti -fno-exceptions"
8180    # Insert the option either (1) after the last *FLAGS variable, or
8181    # (2) before a word containing "conftest.", or (3) at the end.
8182    # Note that $ac_compile itself does not contain backslashes and begins
8183    # with a dollar sign (not a hyphen), so the echo should work correctly.
8184    # The option is referenced via a variable to avoid confusing sed.
8185    lt_compile=`echo "$ac_compile" | $SED \
8186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8188    -e 's:$: $lt_compiler_flag:'`
8189    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8190    (eval "$lt_compile" 2>conftest.err)
8191    ac_status=$?
8192    cat conftest.err >&5
8193    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194    if (exit $ac_status) && test -s "$ac_outfile"; then
8195      # The compiler can only warn and ignore the option if not recognized
8196      # So say no if there are warnings other than the usual output.
8197      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8198      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8199      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8200        lt_cv_prog_compiler_rtti_exceptions=yes
8201      fi
8202    fi
8203    $RM conftest*
8204
8205 fi
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8207 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8208
8209 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8210     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8211 else
8212     :
8213 fi
8214
8215 fi
8216
8217
8218
8219
8220
8221
8222   lt_prog_compiler_wl=
8223 lt_prog_compiler_pic=
8224 lt_prog_compiler_static=
8225
8226
8227   if test "$GCC" = yes; then
8228     lt_prog_compiler_wl='-Wl,'
8229     lt_prog_compiler_static='-static'
8230
8231     case $host_os in
8232       aix*)
8233       # All AIX code is PIC.
8234       if test "$host_cpu" = ia64; then
8235         # AIX 5 now supports IA64 processor
8236         lt_prog_compiler_static='-Bstatic'
8237       fi
8238       ;;
8239
8240     amigaos*)
8241       case $host_cpu in
8242       powerpc)
8243             # see comment about AmigaOS4 .so support
8244             lt_prog_compiler_pic='-fPIC'
8245         ;;
8246       m68k)
8247             # FIXME: we need at least 68020 code to build shared libraries, but
8248             # adding the `-m68020' flag to GCC prevents building anything better,
8249             # like `-m68040'.
8250             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8251         ;;
8252       esac
8253       ;;
8254
8255     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8256       # PIC is the default for these OSes.
8257       ;;
8258
8259     mingw* | cygwin* | pw32* | os2* | cegcc*)
8260       # This hack is so that the source file can tell whether it is being
8261       # built for inclusion in a dll (and should export symbols for example).
8262       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8263       # (--disable-auto-import) libraries
8264       lt_prog_compiler_pic='-DDLL_EXPORT'
8265       ;;
8266
8267     darwin* | rhapsody*)
8268       # PIC is the default on this platform
8269       # Common symbols not allowed in MH_DYLIB files
8270       lt_prog_compiler_pic='-fno-common'
8271       ;;
8272
8273     haiku*)
8274       # PIC is the default for Haiku.
8275       # The "-static" flag exists, but is broken.
8276       lt_prog_compiler_static=
8277       ;;
8278
8279     hpux*)
8280       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8281       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8282       # sets the default TLS model and affects inlining.
8283       case $host_cpu in
8284       hppa*64*)
8285         # +Z the default
8286         ;;
8287       *)
8288         lt_prog_compiler_pic='-fPIC'
8289         ;;
8290       esac
8291       ;;
8292
8293     interix[3-9]*)
8294       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8295       # Instead, we relocate shared libraries at runtime.
8296       ;;
8297
8298     msdosdjgpp*)
8299       # Just because we use GCC doesn't mean we suddenly get shared libraries
8300       # on systems that don't support them.
8301       lt_prog_compiler_can_build_shared=no
8302       enable_shared=no
8303       ;;
8304
8305     *nto* | *qnx*)
8306       # QNX uses GNU C++, but need to define -shared option too, otherwise
8307       # it will coredump.
8308       lt_prog_compiler_pic='-fPIC -shared'
8309       ;;
8310
8311     sysv4*MP*)
8312       if test -d /usr/nec; then
8313         lt_prog_compiler_pic=-Kconform_pic
8314       fi
8315       ;;
8316
8317     *)
8318       lt_prog_compiler_pic='-fPIC'
8319       ;;
8320     esac
8321
8322     case $cc_basename in
8323     nvcc*) # Cuda Compiler Driver 2.2
8324       lt_prog_compiler_wl='-Xlinker '
8325       if test -n "$lt_prog_compiler_pic"; then
8326         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8327       fi
8328       ;;
8329     esac
8330   else
8331     # PORTME Check for flag to pass linker flags through the system compiler.
8332     case $host_os in
8333     aix*)
8334       lt_prog_compiler_wl='-Wl,'
8335       if test "$host_cpu" = ia64; then
8336         # AIX 5 now supports IA64 processor
8337         lt_prog_compiler_static='-Bstatic'
8338       else
8339         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8340       fi
8341       ;;
8342
8343     mingw* | cygwin* | pw32* | os2* | cegcc*)
8344       # This hack is so that the source file can tell whether it is being
8345       # built for inclusion in a dll (and should export symbols for example).
8346       lt_prog_compiler_pic='-DDLL_EXPORT'
8347       ;;
8348
8349     hpux9* | hpux10* | hpux11*)
8350       lt_prog_compiler_wl='-Wl,'
8351       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8352       # not for PA HP-UX.
8353       case $host_cpu in
8354       hppa*64*|ia64*)
8355         # +Z the default
8356         ;;
8357       *)
8358         lt_prog_compiler_pic='+Z'
8359         ;;
8360       esac
8361       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8362       lt_prog_compiler_static='${wl}-a ${wl}archive'
8363       ;;
8364
8365     irix5* | irix6* | nonstopux*)
8366       lt_prog_compiler_wl='-Wl,'
8367       # PIC (with -KPIC) is the default.
8368       lt_prog_compiler_static='-non_shared'
8369       ;;
8370
8371     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8372       case $cc_basename in
8373       # old Intel for x86_64 which still supported -KPIC.
8374       ecc*)
8375         lt_prog_compiler_wl='-Wl,'
8376         lt_prog_compiler_pic='-KPIC'
8377         lt_prog_compiler_static='-static'
8378         ;;
8379       # icc used to be incompatible with GCC.
8380       # ICC 10 doesn't accept -KPIC any more.
8381       icc* | ifort*)
8382         lt_prog_compiler_wl='-Wl,'
8383         lt_prog_compiler_pic='-fPIC'
8384         lt_prog_compiler_static='-static'
8385         ;;
8386       # Lahey Fortran 8.1.
8387       lf95*)
8388         lt_prog_compiler_wl='-Wl,'
8389         lt_prog_compiler_pic='--shared'
8390         lt_prog_compiler_static='--static'
8391         ;;
8392       nagfor*)
8393         # NAG Fortran compiler
8394         lt_prog_compiler_wl='-Wl,-Wl,,'
8395         lt_prog_compiler_pic='-PIC'
8396         lt_prog_compiler_static='-Bstatic'
8397         ;;
8398       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8399         # Portland Group compilers (*not* the Pentium gcc compiler,
8400         # which looks to be a dead project)
8401         lt_prog_compiler_wl='-Wl,'
8402         lt_prog_compiler_pic='-fpic'
8403         lt_prog_compiler_static='-Bstatic'
8404         ;;
8405       ccc*)
8406         lt_prog_compiler_wl='-Wl,'
8407         # All Alpha code is PIC.
8408         lt_prog_compiler_static='-non_shared'
8409         ;;
8410       xl* | bgxl* | bgf* | mpixl*)
8411         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8412         lt_prog_compiler_wl='-Wl,'
8413         lt_prog_compiler_pic='-qpic'
8414         lt_prog_compiler_static='-qstaticlink'
8415         ;;
8416       *)
8417         case `$CC -V 2>&1 | sed 5q` in
8418         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8419           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8420           lt_prog_compiler_pic='-KPIC'
8421           lt_prog_compiler_static='-Bstatic'
8422           lt_prog_compiler_wl=''
8423           ;;
8424         *Sun\ F* | *Sun*Fortran*)
8425           lt_prog_compiler_pic='-KPIC'
8426           lt_prog_compiler_static='-Bstatic'
8427           lt_prog_compiler_wl='-Qoption ld '
8428           ;;
8429         *Sun\ C*)
8430           # Sun C 5.9
8431           lt_prog_compiler_pic='-KPIC'
8432           lt_prog_compiler_static='-Bstatic'
8433           lt_prog_compiler_wl='-Wl,'
8434           ;;
8435         *Intel*\ [CF]*Compiler*)
8436           lt_prog_compiler_wl='-Wl,'
8437           lt_prog_compiler_pic='-fPIC'
8438           lt_prog_compiler_static='-static'
8439           ;;
8440         *Portland\ Group*)
8441           lt_prog_compiler_wl='-Wl,'
8442           lt_prog_compiler_pic='-fpic'
8443           lt_prog_compiler_static='-Bstatic'
8444           ;;
8445         esac
8446         ;;
8447       esac
8448       ;;
8449
8450     newsos6)
8451       lt_prog_compiler_pic='-KPIC'
8452       lt_prog_compiler_static='-Bstatic'
8453       ;;
8454
8455     *nto* | *qnx*)
8456       # QNX uses GNU C++, but need to define -shared option too, otherwise
8457       # it will coredump.
8458       lt_prog_compiler_pic='-fPIC -shared'
8459       ;;
8460
8461     osf3* | osf4* | osf5*)
8462       lt_prog_compiler_wl='-Wl,'
8463       # All OSF/1 code is PIC.
8464       lt_prog_compiler_static='-non_shared'
8465       ;;
8466
8467     rdos*)
8468       lt_prog_compiler_static='-non_shared'
8469       ;;
8470
8471     solaris*)
8472       lt_prog_compiler_pic='-KPIC'
8473       lt_prog_compiler_static='-Bstatic'
8474       case $cc_basename in
8475       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8476         lt_prog_compiler_wl='-Qoption ld ';;
8477       *)
8478         lt_prog_compiler_wl='-Wl,';;
8479       esac
8480       ;;
8481
8482     sunos4*)
8483       lt_prog_compiler_wl='-Qoption ld '
8484       lt_prog_compiler_pic='-PIC'
8485       lt_prog_compiler_static='-Bstatic'
8486       ;;
8487
8488     sysv4 | sysv4.2uw2* | sysv4.3*)
8489       lt_prog_compiler_wl='-Wl,'
8490       lt_prog_compiler_pic='-KPIC'
8491       lt_prog_compiler_static='-Bstatic'
8492       ;;
8493
8494     sysv4*MP*)
8495       if test -d /usr/nec ;then
8496         lt_prog_compiler_pic='-Kconform_pic'
8497         lt_prog_compiler_static='-Bstatic'
8498       fi
8499       ;;
8500
8501     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8502       lt_prog_compiler_wl='-Wl,'
8503       lt_prog_compiler_pic='-KPIC'
8504       lt_prog_compiler_static='-Bstatic'
8505       ;;
8506
8507     unicos*)
8508       lt_prog_compiler_wl='-Wl,'
8509       lt_prog_compiler_can_build_shared=no
8510       ;;
8511
8512     uts4*)
8513       lt_prog_compiler_pic='-pic'
8514       lt_prog_compiler_static='-Bstatic'
8515       ;;
8516
8517     *)
8518       lt_prog_compiler_can_build_shared=no
8519       ;;
8520     esac
8521   fi
8522
8523 case $host_os in
8524   # For platforms which do not support PIC, -DPIC is meaningless:
8525   *djgpp*)
8526     lt_prog_compiler_pic=
8527     ;;
8528   *)
8529     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8530     ;;
8531 esac
8532
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8534 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8535 if ${lt_cv_prog_compiler_pic+:} false; then :
8536   $as_echo_n "(cached) " >&6
8537 else
8538   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8539 fi
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8541 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8542 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8543
8544 #
8545 # Check to make sure the PIC flag actually works.
8546 #
8547 if test -n "$lt_prog_compiler_pic"; then
8548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8549 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8550 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8551   $as_echo_n "(cached) " >&6
8552 else
8553   lt_cv_prog_compiler_pic_works=no
8554    ac_outfile=conftest.$ac_objext
8555    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8556    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8557    # Insert the option either (1) after the last *FLAGS variable, or
8558    # (2) before a word containing "conftest.", or (3) at the end.
8559    # Note that $ac_compile itself does not contain backslashes and begins
8560    # with a dollar sign (not a hyphen), so the echo should work correctly.
8561    # The option is referenced via a variable to avoid confusing sed.
8562    lt_compile=`echo "$ac_compile" | $SED \
8563    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8564    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8565    -e 's:$: $lt_compiler_flag:'`
8566    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8567    (eval "$lt_compile" 2>conftest.err)
8568    ac_status=$?
8569    cat conftest.err >&5
8570    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8571    if (exit $ac_status) && test -s "$ac_outfile"; then
8572      # The compiler can only warn and ignore the option if not recognized
8573      # So say no if there are warnings other than the usual output.
8574      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8575      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8576      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8577        lt_cv_prog_compiler_pic_works=yes
8578      fi
8579    fi
8580    $RM conftest*
8581
8582 fi
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8584 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8585
8586 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8587     case $lt_prog_compiler_pic in
8588      "" | " "*) ;;
8589      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8590      esac
8591 else
8592     lt_prog_compiler_pic=
8593      lt_prog_compiler_can_build_shared=no
8594 fi
8595
8596 fi
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608 #
8609 # Check to make sure the static flag actually works.
8610 #
8611 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8613 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8614 if ${lt_cv_prog_compiler_static_works+:} false; then :
8615   $as_echo_n "(cached) " >&6
8616 else
8617   lt_cv_prog_compiler_static_works=no
8618    save_LDFLAGS="$LDFLAGS"
8619    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8620    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8621    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8622      # The linker can only warn and ignore the option if not recognized
8623      # So say no if there are warnings
8624      if test -s conftest.err; then
8625        # Append any errors to the config.log.
8626        cat conftest.err 1>&5
8627        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8628        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8629        if diff conftest.exp conftest.er2 >/dev/null; then
8630          lt_cv_prog_compiler_static_works=yes
8631        fi
8632      else
8633        lt_cv_prog_compiler_static_works=yes
8634      fi
8635    fi
8636    $RM -r conftest*
8637    LDFLAGS="$save_LDFLAGS"
8638
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8641 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8642
8643 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8644     :
8645 else
8646     lt_prog_compiler_static=
8647 fi
8648
8649
8650
8651
8652
8653
8654
8655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8656 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8657 if ${lt_cv_prog_compiler_c_o+:} false; then :
8658   $as_echo_n "(cached) " >&6
8659 else
8660   lt_cv_prog_compiler_c_o=no
8661    $RM -r conftest 2>/dev/null
8662    mkdir conftest
8663    cd conftest
8664    mkdir out
8665    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8666
8667    lt_compiler_flag="-o out/conftest2.$ac_objext"
8668    # Insert the option either (1) after the last *FLAGS variable, or
8669    # (2) before a word containing "conftest.", or (3) at the end.
8670    # Note that $ac_compile itself does not contain backslashes and begins
8671    # with a dollar sign (not a hyphen), so the echo should work correctly.
8672    lt_compile=`echo "$ac_compile" | $SED \
8673    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8674    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8675    -e 's:$: $lt_compiler_flag:'`
8676    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8677    (eval "$lt_compile" 2>out/conftest.err)
8678    ac_status=$?
8679    cat out/conftest.err >&5
8680    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8681    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8682    then
8683      # The compiler can only warn and ignore the option if not recognized
8684      # So say no if there are warnings
8685      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8686      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8687      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8688        lt_cv_prog_compiler_c_o=yes
8689      fi
8690    fi
8691    chmod u+w . 2>&5
8692    $RM conftest*
8693    # SGI C++ compiler will create directory out/ii_files/ for
8694    # template instantiation
8695    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8696    $RM out/* && rmdir out
8697    cd ..
8698    $RM -r conftest
8699    $RM conftest*
8700
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8703 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8704
8705
8706
8707
8708
8709
8710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8711 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8712 if ${lt_cv_prog_compiler_c_o+:} false; then :
8713   $as_echo_n "(cached) " >&6
8714 else
8715   lt_cv_prog_compiler_c_o=no
8716    $RM -r conftest 2>/dev/null
8717    mkdir conftest
8718    cd conftest
8719    mkdir out
8720    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8721
8722    lt_compiler_flag="-o out/conftest2.$ac_objext"
8723    # Insert the option either (1) after the last *FLAGS variable, or
8724    # (2) before a word containing "conftest.", or (3) at the end.
8725    # Note that $ac_compile itself does not contain backslashes and begins
8726    # with a dollar sign (not a hyphen), so the echo should work correctly.
8727    lt_compile=`echo "$ac_compile" | $SED \
8728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8730    -e 's:$: $lt_compiler_flag:'`
8731    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8732    (eval "$lt_compile" 2>out/conftest.err)
8733    ac_status=$?
8734    cat out/conftest.err >&5
8735    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8737    then
8738      # The compiler can only warn and ignore the option if not recognized
8739      # So say no if there are warnings
8740      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8741      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8742      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8743        lt_cv_prog_compiler_c_o=yes
8744      fi
8745    fi
8746    chmod u+w . 2>&5
8747    $RM conftest*
8748    # SGI C++ compiler will create directory out/ii_files/ for
8749    # template instantiation
8750    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8751    $RM out/* && rmdir out
8752    cd ..
8753    $RM -r conftest
8754    $RM conftest*
8755
8756 fi
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8758 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8759
8760
8761
8762
8763 hard_links="nottested"
8764 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8765   # do not overwrite the value of need_locks provided by the user
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8767 $as_echo_n "checking if we can lock with hard links... " >&6; }
8768   hard_links=yes
8769   $RM conftest*
8770   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8771   touch conftest.a
8772   ln conftest.a conftest.b 2>&5 || hard_links=no
8773   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8774   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8775 $as_echo "$hard_links" >&6; }
8776   if test "$hard_links" = no; then
8777     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8778 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8779     need_locks=warn
8780   fi
8781 else
8782   need_locks=no
8783 fi
8784
8785
8786
8787
8788
8789
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8792
8793   runpath_var=
8794   allow_undefined_flag=
8795   always_export_symbols=no
8796   archive_cmds=
8797   archive_expsym_cmds=
8798   compiler_needs_object=no
8799   enable_shared_with_static_runtimes=no
8800   export_dynamic_flag_spec=
8801   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8802   hardcode_automatic=no
8803   hardcode_direct=no
8804   hardcode_direct_absolute=no
8805   hardcode_libdir_flag_spec=
8806   hardcode_libdir_separator=
8807   hardcode_minus_L=no
8808   hardcode_shlibpath_var=unsupported
8809   inherit_rpath=no
8810   link_all_deplibs=unknown
8811   module_cmds=
8812   module_expsym_cmds=
8813   old_archive_from_new_cmds=
8814   old_archive_from_expsyms_cmds=
8815   thread_safe_flag_spec=
8816   whole_archive_flag_spec=
8817   # include_expsyms should be a list of space-separated symbols to be *always*
8818   # included in the symbol list
8819   include_expsyms=
8820   # exclude_expsyms can be an extended regexp of symbols to exclude
8821   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8822   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8823   # as well as any symbol that contains `d'.
8824   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8825   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8826   # platforms (ab)use it in PIC code, but their linkers get confused if
8827   # the symbol is explicitly referenced.  Since portable code cannot
8828   # rely on this symbol name, it's probably fine to never include it in
8829   # preloaded symbol tables.
8830   # Exclude shared library initialization/finalization symbols.
8831   extract_expsyms_cmds=
8832
8833   case $host_os in
8834   cygwin* | mingw* | pw32* | cegcc*)
8835     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8836     # When not using gcc, we currently assume that we are using
8837     # Microsoft Visual C++.
8838     if test "$GCC" != yes; then
8839       with_gnu_ld=no
8840     fi
8841     ;;
8842   interix*)
8843     # we just hope/assume this is gcc and not c89 (= MSVC++)
8844     with_gnu_ld=yes
8845     ;;
8846   openbsd*)
8847     with_gnu_ld=no
8848     ;;
8849   esac
8850
8851   ld_shlibs=yes
8852
8853   # On some targets, GNU ld is compatible enough with the native linker
8854   # that we're better off using the native interface for both.
8855   lt_use_gnu_ld_interface=no
8856   if test "$with_gnu_ld" = yes; then
8857     case $host_os in
8858       aix*)
8859         # The AIX port of GNU ld has always aspired to compatibility
8860         # with the native linker.  However, as the warning in the GNU ld
8861         # block says, versions before 2.19.5* couldn't really create working
8862         # shared libraries, regardless of the interface used.
8863         case `$LD -v 2>&1` in
8864           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8865           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8866           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8867           *)
8868             lt_use_gnu_ld_interface=yes
8869             ;;
8870         esac
8871         ;;
8872       *)
8873         lt_use_gnu_ld_interface=yes
8874         ;;
8875     esac
8876   fi
8877
8878   if test "$lt_use_gnu_ld_interface" = yes; then
8879     # If archive_cmds runs LD, not CC, wlarc should be empty
8880     wlarc='${wl}'
8881
8882     # Set some defaults for GNU ld with shared library support. These
8883     # are reset later if shared libraries are not supported. Putting them
8884     # here allows them to be overridden if necessary.
8885     runpath_var=LD_RUN_PATH
8886     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8887     export_dynamic_flag_spec='${wl}--export-dynamic'
8888     # ancient GNU ld didn't support --whole-archive et. al.
8889     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8890       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8891     else
8892       whole_archive_flag_spec=
8893     fi
8894     supports_anon_versioning=no
8895     case `$LD -v 2>&1` in
8896       *GNU\ gold*) supports_anon_versioning=yes ;;
8897       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8898       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8899       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8900       *\ 2.11.*) ;; # other 2.11 versions
8901       *) supports_anon_versioning=yes ;;
8902     esac
8903
8904     # See if GNU ld supports shared libraries.
8905     case $host_os in
8906     aix[3-9]*)
8907       # On AIX/PPC, the GNU linker is very broken
8908       if test "$host_cpu" != ia64; then
8909         ld_shlibs=no
8910         cat <<_LT_EOF 1>&2
8911
8912 *** Warning: the GNU linker, at least up to release 2.19, is reported
8913 *** to be unable to reliably create shared libraries on AIX.
8914 *** Therefore, libtool is disabling shared libraries support.  If you
8915 *** really care for shared libraries, you may want to install binutils
8916 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8917 *** You will then need to restart the configuration process.
8918
8919 _LT_EOF
8920       fi
8921       ;;
8922
8923     amigaos*)
8924       case $host_cpu in
8925       powerpc)
8926             # see comment about AmigaOS4 .so support
8927             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8928             archive_expsym_cmds=''
8929         ;;
8930       m68k)
8931             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)'
8932             hardcode_libdir_flag_spec='-L$libdir'
8933             hardcode_minus_L=yes
8934         ;;
8935       esac
8936       ;;
8937
8938     beos*)
8939       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8940         allow_undefined_flag=unsupported
8941         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8942         # support --undefined.  This deserves some investigation.  FIXME
8943         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8944       else
8945         ld_shlibs=no
8946       fi
8947       ;;
8948
8949     cygwin* | mingw* | pw32* | cegcc*)
8950       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8951       # as there is no search path for DLLs.
8952       hardcode_libdir_flag_spec='-L$libdir'
8953       export_dynamic_flag_spec='${wl}--export-all-symbols'
8954       allow_undefined_flag=unsupported
8955       always_export_symbols=no
8956       enable_shared_with_static_runtimes=yes
8957       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'
8958       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8959
8960       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8961         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8962         # If the export-symbols file already is a .def file (1st line
8963         # is EXPORTS), use it as is; otherwise, prepend...
8964         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8965           cp $export_symbols $output_objdir/$soname.def;
8966         else
8967           echo EXPORTS > $output_objdir/$soname.def;
8968           cat $export_symbols >> $output_objdir/$soname.def;
8969         fi~
8970         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8971       else
8972         ld_shlibs=no
8973       fi
8974       ;;
8975
8976     haiku*)
8977       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8978       link_all_deplibs=yes
8979       ;;
8980
8981     interix[3-9]*)
8982       hardcode_direct=no
8983       hardcode_shlibpath_var=no
8984       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8985       export_dynamic_flag_spec='${wl}-E'
8986       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8987       # Instead, shared libraries are loaded at an image base (0x10000000 by
8988       # default) and relocated if they conflict, which is a slow very memory
8989       # consuming and fragmenting process.  To avoid this, we pick a random,
8990       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8991       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8992       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8993       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'
8994       ;;
8995
8996     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8997       tmp_diet=no
8998       if test "$host_os" = linux-dietlibc; then
8999         case $cc_basename in
9000           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9001         esac
9002       fi
9003       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9004          && test "$tmp_diet" = no
9005       then
9006         tmp_addflag=' $pic_flag'
9007         tmp_sharedflag='-shared'
9008         case $cc_basename,$host_cpu in
9009         pgcc*)                          # Portland Group C compiler
9010           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'
9011           tmp_addflag=' $pic_flag'
9012           ;;
9013         pgf77* | pgf90* | pgf95* | pgfortran*)
9014                                         # Portland Group f77 and f90 compilers
9015           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'
9016           tmp_addflag=' $pic_flag -Mnomain' ;;
9017         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9018           tmp_addflag=' -i_dynamic' ;;
9019         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9020           tmp_addflag=' -i_dynamic -nofor_main' ;;
9021         ifc* | ifort*)                  # Intel Fortran compiler
9022           tmp_addflag=' -nofor_main' ;;
9023         lf95*)                          # Lahey Fortran 8.1
9024           whole_archive_flag_spec=
9025           tmp_sharedflag='--shared' ;;
9026         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9027           tmp_sharedflag='-qmkshrobj'
9028           tmp_addflag= ;;
9029         nvcc*)  # Cuda Compiler Driver 2.2
9030           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'
9031           compiler_needs_object=yes
9032           ;;
9033         esac
9034         case `$CC -V 2>&1 | sed 5q` in
9035         *Sun\ C*)                       # Sun C 5.9
9036           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'
9037           compiler_needs_object=yes
9038           tmp_sharedflag='-G' ;;
9039         *Sun\ F*)                       # Sun Fortran 8.3
9040           tmp_sharedflag='-G' ;;
9041         esac
9042         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9043
9044         if test "x$supports_anon_versioning" = xyes; then
9045           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9046             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9047             echo "local: *; };" >> $output_objdir/$libname.ver~
9048             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9049         fi
9050
9051         case $cc_basename in
9052         xlf* | bgf* | bgxlf* | mpixlf*)
9053           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9054           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9055           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9056           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9057           if test "x$supports_anon_versioning" = xyes; then
9058             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9059               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9060               echo "local: *; };" >> $output_objdir/$libname.ver~
9061               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9062           fi
9063           ;;
9064         esac
9065       else
9066         ld_shlibs=no
9067       fi
9068       ;;
9069
9070     netbsd*)
9071       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9072         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9073         wlarc=
9074       else
9075         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9076         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9077       fi
9078       ;;
9079
9080     solaris*)
9081       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9082         ld_shlibs=no
9083         cat <<_LT_EOF 1>&2
9084
9085 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9086 *** create shared libraries on Solaris systems.  Therefore, libtool
9087 *** is disabling shared libraries support.  We urge you to upgrade GNU
9088 *** binutils to release 2.9.1 or newer.  Another option is to modify
9089 *** your PATH or compiler configuration so that the native linker is
9090 *** used, and then restart.
9091
9092 _LT_EOF
9093       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9094         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9095         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9096       else
9097         ld_shlibs=no
9098       fi
9099       ;;
9100
9101     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9102       case `$LD -v 2>&1` in
9103         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9104         ld_shlibs=no
9105         cat <<_LT_EOF 1>&2
9106
9107 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9108 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9109 *** is disabling shared libraries support.  We urge you to upgrade GNU
9110 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9111 *** your PATH or compiler configuration so that the native linker is
9112 *** used, and then restart.
9113
9114 _LT_EOF
9115         ;;
9116         *)
9117           # For security reasons, it is highly recommended that you always
9118           # use absolute paths for naming shared libraries, and exclude the
9119           # DT_RUNPATH tag from executables and libraries.  But doing so
9120           # requires that you compile everything twice, which is a pain.
9121           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9122             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9123             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125           else
9126             ld_shlibs=no
9127           fi
9128         ;;
9129       esac
9130       ;;
9131
9132     sunos4*)
9133       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134       wlarc=
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     *)
9140       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9141         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9143       else
9144         ld_shlibs=no
9145       fi
9146       ;;
9147     esac
9148
9149     if test "$ld_shlibs" = no; then
9150       runpath_var=
9151       hardcode_libdir_flag_spec=
9152       export_dynamic_flag_spec=
9153       whole_archive_flag_spec=
9154     fi
9155   else
9156     # PORTME fill in a description of your system's linker (not GNU ld)
9157     case $host_os in
9158     aix3*)
9159       allow_undefined_flag=unsupported
9160       always_export_symbols=yes
9161       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'
9162       # Note: this linker hardcodes the directories in LIBPATH if there
9163       # are no directories specified by -L.
9164       hardcode_minus_L=yes
9165       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9166         # Neither direct hardcoding nor static linking is supported with a
9167         # broken collect2.
9168         hardcode_direct=unsupported
9169       fi
9170       ;;
9171
9172     aix[4-9]*)
9173       if test "$host_cpu" = ia64; then
9174         # On IA64, the linker does run time linking by default, so we don't
9175         # have to do anything special.
9176         aix_use_runtimelinking=no
9177         exp_sym_flag='-Bexport'
9178         no_entry_flag=""
9179       else
9180         # If we're using GNU nm, then we don't want the "-C" option.
9181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9182         # Also, AIX nm treats weak defined symbols like other global
9183         # defined symbols, whereas GNU nm marks them as "W".
9184         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9185           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'
9186         else
9187           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'
9188         fi
9189         aix_use_runtimelinking=no
9190
9191         # Test if we are trying to use run time linking or normal
9192         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9193         # need to do runtime linking.
9194         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9195           for ld_flag in $LDFLAGS; do
9196           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9197             aix_use_runtimelinking=yes
9198             break
9199           fi
9200           done
9201           ;;
9202         esac
9203
9204         exp_sym_flag='-bexport'
9205         no_entry_flag='-bnoentry'
9206       fi
9207
9208       # When large executables or shared objects are built, AIX ld can
9209       # have problems creating the table of contents.  If linking a library
9210       # or program results in "error TOC overflow" add -mminimal-toc to
9211       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9212       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9213
9214       archive_cmds=''
9215       hardcode_direct=yes
9216       hardcode_direct_absolute=yes
9217       hardcode_libdir_separator=':'
9218       link_all_deplibs=yes
9219       file_list_spec='${wl}-f,'
9220
9221       if test "$GCC" = yes; then
9222         case $host_os in aix4.[012]|aix4.[012].*)
9223         # We only want to do this on AIX 4.2 and lower, the check
9224         # below for broken collect2 doesn't work under 4.3+
9225           collect2name=`${CC} -print-prog-name=collect2`
9226           if test -f "$collect2name" &&
9227            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9228           then
9229           # We have reworked collect2
9230           :
9231           else
9232           # We have old collect2
9233           hardcode_direct=unsupported
9234           # It fails to find uninstalled libraries when the uninstalled
9235           # path is not listed in the libpath.  Setting hardcode_minus_L
9236           # to unsupported forces relinking
9237           hardcode_minus_L=yes
9238           hardcode_libdir_flag_spec='-L$libdir'
9239           hardcode_libdir_separator=
9240           fi
9241           ;;
9242         esac
9243         shared_flag='-shared'
9244         if test "$aix_use_runtimelinking" = yes; then
9245           shared_flag="$shared_flag "'${wl}-G'
9246         fi
9247       else
9248         # not using gcc
9249         if test "$host_cpu" = ia64; then
9250         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9251         # chokes on -Wl,-G. The following line is correct:
9252           shared_flag='-G'
9253         else
9254           if test "$aix_use_runtimelinking" = yes; then
9255             shared_flag='${wl}-G'
9256           else
9257             shared_flag='${wl}-bM:SRE'
9258           fi
9259         fi
9260       fi
9261
9262       export_dynamic_flag_spec='${wl}-bexpall'
9263       # It seems that -bexpall does not export symbols beginning with
9264       # underscore (_), so it is better to generate a list of symbols to export.
9265       always_export_symbols=yes
9266       if test "$aix_use_runtimelinking" = yes; then
9267         # Warning - without using the other runtime loading flags (-brtl),
9268         # -berok will link without error, but may produce a broken library.
9269         allow_undefined_flag='-berok'
9270         # Determine the default libpath from the value encoded in an
9271         # empty executable.
9272         if test "${lt_cv_aix_libpath+set}" = set; then
9273   aix_libpath=$lt_cv_aix_libpath
9274 else
9275   if ${lt_cv_aix_libpath_+:} false; then :
9276   $as_echo_n "(cached) " >&6
9277 else
9278   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9279 /* end confdefs.h.  */
9280
9281 int
9282 main ()
9283 {
9284
9285   ;
9286   return 0;
9287 }
9288 _ACEOF
9289 if ac_fn_c_try_link "$LINENO"; then :
9290
9291   lt_aix_libpath_sed='
9292       /Import File Strings/,/^$/ {
9293           /^0/ {
9294               s/^0  *\([^ ]*\) *$/\1/
9295               p
9296           }
9297       }'
9298   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9299   # Check for a 64-bit object if we didn't find anything.
9300   if test -z "$lt_cv_aix_libpath_"; then
9301     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9302   fi
9303 fi
9304 rm -f core conftest.err conftest.$ac_objext \
9305     conftest$ac_exeext conftest.$ac_ext
9306   if test -z "$lt_cv_aix_libpath_"; then
9307     lt_cv_aix_libpath_="/usr/lib:/lib"
9308   fi
9309
9310 fi
9311
9312   aix_libpath=$lt_cv_aix_libpath_
9313 fi
9314
9315         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9316         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"
9317       else
9318         if test "$host_cpu" = ia64; then
9319           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9320           allow_undefined_flag="-z nodefs"
9321           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"
9322         else
9323          # Determine the default libpath from the value encoded in an
9324          # empty executable.
9325          if test "${lt_cv_aix_libpath+set}" = set; then
9326   aix_libpath=$lt_cv_aix_libpath
9327 else
9328   if ${lt_cv_aix_libpath_+:} false; then :
9329   $as_echo_n "(cached) " >&6
9330 else
9331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h.  */
9333
9334 int
9335 main ()
9336 {
9337
9338   ;
9339   return 0;
9340 }
9341 _ACEOF
9342 if ac_fn_c_try_link "$LINENO"; then :
9343
9344   lt_aix_libpath_sed='
9345       /Import File Strings/,/^$/ {
9346           /^0/ {
9347               s/^0  *\([^ ]*\) *$/\1/
9348               p
9349           }
9350       }'
9351   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9352   # Check for a 64-bit object if we didn't find anything.
9353   if test -z "$lt_cv_aix_libpath_"; then
9354     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9355   fi
9356 fi
9357 rm -f core conftest.err conftest.$ac_objext \
9358     conftest$ac_exeext conftest.$ac_ext
9359   if test -z "$lt_cv_aix_libpath_"; then
9360     lt_cv_aix_libpath_="/usr/lib:/lib"
9361   fi
9362
9363 fi
9364
9365   aix_libpath=$lt_cv_aix_libpath_
9366 fi
9367
9368          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9369           # Warning - without using the other run time loading flags,
9370           # -berok will link without error, but may produce a broken library.
9371           no_undefined_flag=' ${wl}-bernotok'
9372           allow_undefined_flag=' ${wl}-berok'
9373           if test "$with_gnu_ld" = yes; then
9374             # We only use this code for GNU lds that support --whole-archive.
9375             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9376           else
9377             # Exported symbols can be pulled into shared objects from archives
9378             whole_archive_flag_spec='$convenience'
9379           fi
9380           archive_cmds_need_lc=yes
9381           # This is similar to how AIX traditionally builds its shared libraries.
9382           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'
9383         fi
9384       fi
9385       ;;
9386
9387     amigaos*)
9388       case $host_cpu in
9389       powerpc)
9390             # see comment about AmigaOS4 .so support
9391             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9392             archive_expsym_cmds=''
9393         ;;
9394       m68k)
9395             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)'
9396             hardcode_libdir_flag_spec='-L$libdir'
9397             hardcode_minus_L=yes
9398         ;;
9399       esac
9400       ;;
9401
9402     bsdi[45]*)
9403       export_dynamic_flag_spec=-rdynamic
9404       ;;
9405
9406     cygwin* | mingw* | pw32* | cegcc*)
9407       # When not using gcc, we currently assume that we are using
9408       # Microsoft Visual C++.
9409       # hardcode_libdir_flag_spec is actually meaningless, as there is
9410       # no search path for DLLs.
9411       case $cc_basename in
9412       cl*)
9413         # Native MSVC
9414         hardcode_libdir_flag_spec=' '
9415         allow_undefined_flag=unsupported
9416         always_export_symbols=yes
9417         file_list_spec='@'
9418         # Tell ltmain to make .lib files, not .a files.
9419         libext=lib
9420         # Tell ltmain to make .dll files, not .so files.
9421         shrext_cmds=".dll"
9422         # FIXME: Setting linknames here is a bad hack.
9423         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9424         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9425             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9426           else
9427             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9428           fi~
9429           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9430           linknames='
9431         # The linker will not automatically build a static lib if we build a DLL.
9432         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9433         enable_shared_with_static_runtimes=yes
9434         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9435         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9436         # Don't use ranlib
9437         old_postinstall_cmds='chmod 644 $oldlib'
9438         postlink_cmds='lt_outputfile="@OUTPUT@"~
9439           lt_tool_outputfile="@TOOL_OUTPUT@"~
9440           case $lt_outputfile in
9441             *.exe|*.EXE) ;;
9442             *)
9443               lt_outputfile="$lt_outputfile.exe"
9444               lt_tool_outputfile="$lt_tool_outputfile.exe"
9445               ;;
9446           esac~
9447           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9448             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9449             $RM "$lt_outputfile.manifest";
9450           fi'
9451         ;;
9452       *)
9453         # Assume MSVC wrapper
9454         hardcode_libdir_flag_spec=' '
9455         allow_undefined_flag=unsupported
9456         # Tell ltmain to make .lib files, not .a files.
9457         libext=lib
9458         # Tell ltmain to make .dll files, not .so files.
9459         shrext_cmds=".dll"
9460         # FIXME: Setting linknames here is a bad hack.
9461         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9462         # The linker will automatically build a .lib file if we build a DLL.
9463         old_archive_from_new_cmds='true'
9464         # FIXME: Should let the user specify the lib program.
9465         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9466         enable_shared_with_static_runtimes=yes
9467         ;;
9468       esac
9469       ;;
9470
9471     darwin* | rhapsody*)
9472
9473
9474   archive_cmds_need_lc=no
9475   hardcode_direct=no
9476   hardcode_automatic=yes
9477   hardcode_shlibpath_var=unsupported
9478   if test "$lt_cv_ld_force_load" = "yes"; then
9479     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\"`'
9480
9481   else
9482     whole_archive_flag_spec=''
9483   fi
9484   link_all_deplibs=yes
9485   allow_undefined_flag="$_lt_dar_allow_undefined"
9486   case $cc_basename in
9487      ifort*) _lt_dar_can_shared=yes ;;
9488      *) _lt_dar_can_shared=$GCC ;;
9489   esac
9490   if test "$_lt_dar_can_shared" = "yes"; then
9491     output_verbose_link_cmd=func_echo_all
9492     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9493     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9494     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}"
9495     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}"
9496
9497   else
9498   ld_shlibs=no
9499   fi
9500
9501       ;;
9502
9503     dgux*)
9504       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505       hardcode_libdir_flag_spec='-L$libdir'
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9510     # support.  Future versions do this automatically, but an explicit c++rt0.o
9511     # does not break anything, and helps significantly (at the cost of a little
9512     # extra space).
9513     freebsd2.2*)
9514       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9515       hardcode_libdir_flag_spec='-R$libdir'
9516       hardcode_direct=yes
9517       hardcode_shlibpath_var=no
9518       ;;
9519
9520     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9521     freebsd2.*)
9522       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9523       hardcode_direct=yes
9524       hardcode_minus_L=yes
9525       hardcode_shlibpath_var=no
9526       ;;
9527
9528     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9529     freebsd* | dragonfly*)
9530       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9531       hardcode_libdir_flag_spec='-R$libdir'
9532       hardcode_direct=yes
9533       hardcode_shlibpath_var=no
9534       ;;
9535
9536     hpux9*)
9537       if test "$GCC" = yes; then
9538         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'
9539       else
9540         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'
9541       fi
9542       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9543       hardcode_libdir_separator=:
9544       hardcode_direct=yes
9545
9546       # hardcode_minus_L: Not really in the search PATH,
9547       # but as the default location of the library.
9548       hardcode_minus_L=yes
9549       export_dynamic_flag_spec='${wl}-E'
9550       ;;
9551
9552     hpux10*)
9553       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9554         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9555       else
9556         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9557       fi
9558       if test "$with_gnu_ld" = no; then
9559         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9560         hardcode_libdir_separator=:
9561         hardcode_direct=yes
9562         hardcode_direct_absolute=yes
9563         export_dynamic_flag_spec='${wl}-E'
9564         # hardcode_minus_L: Not really in the search PATH,
9565         # but as the default location of the library.
9566         hardcode_minus_L=yes
9567       fi
9568       ;;
9569
9570     hpux11*)
9571       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9572         case $host_cpu in
9573         hppa*64*)
9574           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9575           ;;
9576         ia64*)
9577           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9578           ;;
9579         *)
9580           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9581           ;;
9582         esac
9583       else
9584         case $host_cpu in
9585         hppa*64*)
9586           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9587           ;;
9588         ia64*)
9589           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9590           ;;
9591         *)
9592
9593           # Older versions of the 11.00 compiler do not understand -b yet
9594           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9595           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9596 $as_echo_n "checking if $CC understands -b... " >&6; }
9597 if ${lt_cv_prog_compiler__b+:} false; then :
9598   $as_echo_n "(cached) " >&6
9599 else
9600   lt_cv_prog_compiler__b=no
9601    save_LDFLAGS="$LDFLAGS"
9602    LDFLAGS="$LDFLAGS -b"
9603    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9604    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9605      # The linker can only warn and ignore the option if not recognized
9606      # So say no if there are warnings
9607      if test -s conftest.err; then
9608        # Append any errors to the config.log.
9609        cat conftest.err 1>&5
9610        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9611        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9612        if diff conftest.exp conftest.er2 >/dev/null; then
9613          lt_cv_prog_compiler__b=yes
9614        fi
9615      else
9616        lt_cv_prog_compiler__b=yes
9617      fi
9618    fi
9619    $RM -r conftest*
9620    LDFLAGS="$save_LDFLAGS"
9621
9622 fi
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9624 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9625
9626 if test x"$lt_cv_prog_compiler__b" = xyes; then
9627     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9628 else
9629     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9630 fi
9631
9632           ;;
9633         esac
9634       fi
9635       if test "$with_gnu_ld" = no; then
9636         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9637         hardcode_libdir_separator=:
9638
9639         case $host_cpu in
9640         hppa*64*|ia64*)
9641           hardcode_direct=no
9642           hardcode_shlibpath_var=no
9643           ;;
9644         *)
9645           hardcode_direct=yes
9646           hardcode_direct_absolute=yes
9647           export_dynamic_flag_spec='${wl}-E'
9648
9649           # hardcode_minus_L: Not really in the search PATH,
9650           # but as the default location of the library.
9651           hardcode_minus_L=yes
9652           ;;
9653         esac
9654       fi
9655       ;;
9656
9657     irix5* | irix6* | nonstopux*)
9658       if test "$GCC" = yes; then
9659         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'
9660         # Try to use the -exported_symbol ld option, if it does not
9661         # work, assume that -exports_file does not work either and
9662         # implicitly export all symbols.
9663         # This should be the same for all languages, so no per-tag cache variable.
9664         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9665 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9666 if ${lt_cv_irix_exported_symbol+:} false; then :
9667   $as_echo_n "(cached) " >&6
9668 else
9669   save_LDFLAGS="$LDFLAGS"
9670            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9671            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9672 /* end confdefs.h.  */
9673 int foo (void) { return 0; }
9674 _ACEOF
9675 if ac_fn_c_try_link "$LINENO"; then :
9676   lt_cv_irix_exported_symbol=yes
9677 else
9678   lt_cv_irix_exported_symbol=no
9679 fi
9680 rm -f core conftest.err conftest.$ac_objext \
9681     conftest$ac_exeext conftest.$ac_ext
9682            LDFLAGS="$save_LDFLAGS"
9683 fi
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9685 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9686         if test "$lt_cv_irix_exported_symbol" = yes; then
9687           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'
9688         fi
9689       else
9690         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'
9691         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'
9692       fi
9693       archive_cmds_need_lc='no'
9694       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9695       hardcode_libdir_separator=:
9696       inherit_rpath=yes
9697       link_all_deplibs=yes
9698       ;;
9699
9700     netbsd*)
9701       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9702         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9703       else
9704         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9705       fi
9706       hardcode_libdir_flag_spec='-R$libdir'
9707       hardcode_direct=yes
9708       hardcode_shlibpath_var=no
9709       ;;
9710
9711     newsos6)
9712       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9713       hardcode_direct=yes
9714       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9715       hardcode_libdir_separator=:
9716       hardcode_shlibpath_var=no
9717       ;;
9718
9719     *nto* | *qnx*)
9720       ;;
9721
9722     openbsd*)
9723       if test -f /usr/libexec/ld.so; then
9724         hardcode_direct=yes
9725         hardcode_shlibpath_var=no
9726         hardcode_direct_absolute=yes
9727         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9728           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9729           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9730           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9731           export_dynamic_flag_spec='${wl}-E'
9732         else
9733           case $host_os in
9734            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9735              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9736              hardcode_libdir_flag_spec='-R$libdir'
9737              ;;
9738            *)
9739              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9741              ;;
9742           esac
9743         fi
9744       else
9745         ld_shlibs=no
9746       fi
9747       ;;
9748
9749     os2*)
9750       hardcode_libdir_flag_spec='-L$libdir'
9751       hardcode_minus_L=yes
9752       allow_undefined_flag=unsupported
9753       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'
9754       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9755       ;;
9756
9757     osf3*)
9758       if test "$GCC" = yes; then
9759         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9760         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'
9761       else
9762         allow_undefined_flag=' -expect_unresolved \*'
9763         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'
9764       fi
9765       archive_cmds_need_lc='no'
9766       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9767       hardcode_libdir_separator=:
9768       ;;
9769
9770     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9771       if test "$GCC" = yes; then
9772         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9773         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'
9774         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775       else
9776         allow_undefined_flag=' -expect_unresolved \*'
9777         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'
9778         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~
9779         $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'
9780
9781         # Both c and cxx compiler support -rpath directly
9782         hardcode_libdir_flag_spec='-rpath $libdir'
9783       fi
9784       archive_cmds_need_lc='no'
9785       hardcode_libdir_separator=:
9786       ;;
9787
9788     solaris*)
9789       no_undefined_flag=' -z defs'
9790       if test "$GCC" = yes; then
9791         wlarc='${wl}'
9792         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9793         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9794           $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'
9795       else
9796         case `$CC -V 2>&1` in
9797         *"Compilers 5.0"*)
9798           wlarc=''
9799           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9801           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9802           ;;
9803         *)
9804           wlarc='${wl}'
9805           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9806           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9807           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9808           ;;
9809         esac
9810       fi
9811       hardcode_libdir_flag_spec='-R$libdir'
9812       hardcode_shlibpath_var=no
9813       case $host_os in
9814       solaris2.[0-5] | solaris2.[0-5].*) ;;
9815       *)
9816         # The compiler driver will combine and reorder linker options,
9817         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9818         # but is careful enough not to reorder.
9819         # Supported since Solaris 2.6 (maybe 2.5.1?)
9820         if test "$GCC" = yes; then
9821           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9822         else
9823           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9824         fi
9825         ;;
9826       esac
9827       link_all_deplibs=yes
9828       ;;
9829
9830     sunos4*)
9831       if test "x$host_vendor" = xsequent; then
9832         # Use $CC to link under sequent, because it throws in some extra .o
9833         # files that make .init and .fini sections work.
9834         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9835       else
9836         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9837       fi
9838       hardcode_libdir_flag_spec='-L$libdir'
9839       hardcode_direct=yes
9840       hardcode_minus_L=yes
9841       hardcode_shlibpath_var=no
9842       ;;
9843
9844     sysv4)
9845       case $host_vendor in
9846         sni)
9847           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9848           hardcode_direct=yes # is this really true???
9849         ;;
9850         siemens)
9851           ## LD is ld it makes a PLAMLIB
9852           ## CC just makes a GrossModule.
9853           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9854           reload_cmds='$CC -r -o $output$reload_objs'
9855           hardcode_direct=no
9856         ;;
9857         motorola)
9858           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9859           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9860         ;;
9861       esac
9862       runpath_var='LD_RUN_PATH'
9863       hardcode_shlibpath_var=no
9864       ;;
9865
9866     sysv4.3*)
9867       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868       hardcode_shlibpath_var=no
9869       export_dynamic_flag_spec='-Bexport'
9870       ;;
9871
9872     sysv4*MP*)
9873       if test -d /usr/nec; then
9874         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9875         hardcode_shlibpath_var=no
9876         runpath_var=LD_RUN_PATH
9877         hardcode_runpath_var=yes
9878         ld_shlibs=yes
9879       fi
9880       ;;
9881
9882     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9883       no_undefined_flag='${wl}-z,text'
9884       archive_cmds_need_lc=no
9885       hardcode_shlibpath_var=no
9886       runpath_var='LD_RUN_PATH'
9887
9888       if test "$GCC" = yes; then
9889         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9891       else
9892         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9893         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9894       fi
9895       ;;
9896
9897     sysv5* | sco3.2v5* | sco5v6*)
9898       # Note: We can NOT use -z defs as we might desire, because we do not
9899       # link with -lc, and that would cause any symbols used from libc to
9900       # always be unresolved, which means just about no library would
9901       # ever link correctly.  If we're not using GNU ld we use -z text
9902       # though, which does catch some bad symbols but isn't as heavy-handed
9903       # as -z defs.
9904       no_undefined_flag='${wl}-z,text'
9905       allow_undefined_flag='${wl}-z,nodefs'
9906       archive_cmds_need_lc=no
9907       hardcode_shlibpath_var=no
9908       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9909       hardcode_libdir_separator=':'
9910       link_all_deplibs=yes
9911       export_dynamic_flag_spec='${wl}-Bexport'
9912       runpath_var='LD_RUN_PATH'
9913
9914       if test "$GCC" = yes; then
9915         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9916         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9917       else
9918         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9919         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9920       fi
9921       ;;
9922
9923     uts4*)
9924       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925       hardcode_libdir_flag_spec='-L$libdir'
9926       hardcode_shlibpath_var=no
9927       ;;
9928
9929     *)
9930       ld_shlibs=no
9931       ;;
9932     esac
9933
9934     if test x$host_vendor = xsni; then
9935       case $host in
9936       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9937         export_dynamic_flag_spec='${wl}-Blargedynsym'
9938         ;;
9939       esac
9940     fi
9941   fi
9942
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9944 $as_echo "$ld_shlibs" >&6; }
9945 test "$ld_shlibs" = no && can_build_shared=no
9946
9947 with_gnu_ld=$with_gnu_ld
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963 #
9964 # Do we need to explicitly link libc?
9965 #
9966 case "x$archive_cmds_need_lc" in
9967 x|xyes)
9968   # Assume -lc should be added
9969   archive_cmds_need_lc=yes
9970
9971   if test "$enable_shared" = yes && test "$GCC" = yes; then
9972     case $archive_cmds in
9973     *'~'*)
9974       # FIXME: we may have to deal with multi-command sequences.
9975       ;;
9976     '$CC '*)
9977       # Test whether the compiler implicitly links with -lc since on some
9978       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9979       # to ld, don't add -lc before -lgcc.
9980       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9981 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9982 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9983   $as_echo_n "(cached) " >&6
9984 else
9985   $RM conftest*
9986         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9987
9988         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9989   (eval $ac_compile) 2>&5
9990   ac_status=$?
9991   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9992   test $ac_status = 0; } 2>conftest.err; then
9993           soname=conftest
9994           lib=conftest
9995           libobjs=conftest.$ac_objext
9996           deplibs=
9997           wl=$lt_prog_compiler_wl
9998           pic_flag=$lt_prog_compiler_pic
9999           compiler_flags=-v
10000           linker_flags=-v
10001           verstring=
10002           output_objdir=.
10003           libname=conftest
10004           lt_save_allow_undefined_flag=$allow_undefined_flag
10005           allow_undefined_flag=
10006           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10007   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10008   ac_status=$?
10009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10010   test $ac_status = 0; }
10011           then
10012             lt_cv_archive_cmds_need_lc=no
10013           else
10014             lt_cv_archive_cmds_need_lc=yes
10015           fi
10016           allow_undefined_flag=$lt_save_allow_undefined_flag
10017         else
10018           cat conftest.err 1>&5
10019         fi
10020         $RM conftest*
10021
10022 fi
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10024 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10025       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10026       ;;
10027     esac
10028   fi
10029   ;;
10030 esac
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10184 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10185
10186 if test "$GCC" = yes; then
10187   case $host_os in
10188     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10189     *) lt_awk_arg="/^libraries:/" ;;
10190   esac
10191   case $host_os in
10192     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10193     *) lt_sed_strip_eq="s,=/,/,g" ;;
10194   esac
10195   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10196   case $lt_search_path_spec in
10197   *\;*)
10198     # if the path contains ";" then we assume it to be the separator
10199     # otherwise default to the standard path separator (i.e. ":") - it is
10200     # assumed that no part of a normal pathname contains ";" but that should
10201     # okay in the real world where ";" in dirpaths is itself problematic.
10202     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10203     ;;
10204   *)
10205     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10206     ;;
10207   esac
10208   # Ok, now we have the path, separated by spaces, we can step through it
10209   # and add multilib dir if necessary.
10210   lt_tmp_lt_search_path_spec=
10211   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10212   for lt_sys_path in $lt_search_path_spec; do
10213     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10214       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10215     else
10216       test -d "$lt_sys_path" && \
10217         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10218     fi
10219   done
10220   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10221 BEGIN {RS=" "; FS="/|\n";} {
10222   lt_foo="";
10223   lt_count=0;
10224   for (lt_i = NF; lt_i > 0; lt_i--) {
10225     if ($lt_i != "" && $lt_i != ".") {
10226       if ($lt_i == "..") {
10227         lt_count++;
10228       } else {
10229         if (lt_count == 0) {
10230           lt_foo="/" $lt_i lt_foo;
10231         } else {
10232           lt_count--;
10233         }
10234       }
10235     }
10236   }
10237   if (lt_foo != "") { lt_freq[lt_foo]++; }
10238   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10239 }'`
10240   # AWK program above erroneously prepends '/' to C:/dos/paths
10241   # for these hosts.
10242   case $host_os in
10243     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10244       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10245   esac
10246   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10247 else
10248   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10249 fi
10250 library_names_spec=
10251 libname_spec='lib$name'
10252 soname_spec=
10253 shrext_cmds=".so"
10254 postinstall_cmds=
10255 postuninstall_cmds=
10256 finish_cmds=
10257 finish_eval=
10258 shlibpath_var=
10259 shlibpath_overrides_runpath=unknown
10260 version_type=none
10261 dynamic_linker="$host_os ld.so"
10262 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10263 need_lib_prefix=unknown
10264 hardcode_into_libs=no
10265
10266 # when you set need_version to no, make sure it does not cause -set_version
10267 # flags to be left without arguments
10268 need_version=unknown
10269
10270 case $host_os in
10271 aix3*)
10272   version_type=linux # correct to gnu/linux during the next big refactor
10273   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10274   shlibpath_var=LIBPATH
10275
10276   # AIX 3 has no versioning support, so we append a major version to the name.
10277   soname_spec='${libname}${release}${shared_ext}$major'
10278   ;;
10279
10280 aix[4-9]*)
10281   version_type=linux # correct to gnu/linux during the next big refactor
10282   need_lib_prefix=no
10283   need_version=no
10284   hardcode_into_libs=yes
10285   if test "$host_cpu" = ia64; then
10286     # AIX 5 supports IA64
10287     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10288     shlibpath_var=LD_LIBRARY_PATH
10289   else
10290     # With GCC up to 2.95.x, collect2 would create an import file
10291     # for dependence libraries.  The import file would start with
10292     # the line `#! .'.  This would cause the generated library to
10293     # depend on `.', always an invalid library.  This was fixed in
10294     # development snapshots of GCC prior to 3.0.
10295     case $host_os in
10296       aix4 | aix4.[01] | aix4.[01].*)
10297       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10298            echo ' yes '
10299            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10300         :
10301       else
10302         can_build_shared=no
10303       fi
10304       ;;
10305     esac
10306     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10307     # soname into executable. Probably we can add versioning support to
10308     # collect2, so additional links can be useful in future.
10309     if test "$aix_use_runtimelinking" = yes; then
10310       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10311       # instead of lib<name>.a to let people know that these are not
10312       # typical AIX shared libraries.
10313       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10314     else
10315       # We preserve .a as extension for shared libraries through AIX4.2
10316       # and later when we are not doing run time linking.
10317       library_names_spec='${libname}${release}.a $libname.a'
10318       soname_spec='${libname}${release}${shared_ext}$major'
10319     fi
10320     shlibpath_var=LIBPATH
10321   fi
10322   ;;
10323
10324 amigaos*)
10325   case $host_cpu in
10326   powerpc)
10327     # Since July 2007 AmigaOS4 officially supports .so libraries.
10328     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10329     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330     ;;
10331   m68k)
10332     library_names_spec='$libname.ixlibrary $libname.a'
10333     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10334     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'
10335     ;;
10336   esac
10337   ;;
10338
10339 beos*)
10340   library_names_spec='${libname}${shared_ext}'
10341   dynamic_linker="$host_os ld.so"
10342   shlibpath_var=LIBRARY_PATH
10343   ;;
10344
10345 bsdi[45]*)
10346   version_type=linux # correct to gnu/linux during the next big refactor
10347   need_version=no
10348   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10349   soname_spec='${libname}${release}${shared_ext}$major'
10350   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10351   shlibpath_var=LD_LIBRARY_PATH
10352   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10353   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10354   # the default ld.so.conf also contains /usr/contrib/lib and
10355   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10356   # libtool to hard-code these into programs
10357   ;;
10358
10359 cygwin* | mingw* | pw32* | cegcc*)
10360   version_type=windows
10361   shrext_cmds=".dll"
10362   need_version=no
10363   need_lib_prefix=no
10364
10365   case $GCC,$cc_basename in
10366   yes,*)
10367     # gcc
10368     library_names_spec='$libname.dll.a'
10369     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10370     postinstall_cmds='base_file=`basename \${file}`~
10371       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10372       dldir=$destdir/`dirname \$dlpath`~
10373       test -d \$dldir || mkdir -p \$dldir~
10374       $install_prog $dir/$dlname \$dldir/$dlname~
10375       chmod a+x \$dldir/$dlname~
10376       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10377         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10378       fi'
10379     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10380       dlpath=$dir/\$dldll~
10381        $RM \$dlpath'
10382     shlibpath_overrides_runpath=yes
10383
10384     case $host_os in
10385     cygwin*)
10386       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10387       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10388
10389       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10390       ;;
10391     mingw* | cegcc*)
10392       # MinGW DLLs use traditional 'lib' prefix
10393       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10394       ;;
10395     pw32*)
10396       # pw32 DLLs use 'pw' prefix rather than 'lib'
10397       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10398       ;;
10399     esac
10400     dynamic_linker='Win32 ld.exe'
10401     ;;
10402
10403   *,cl*)
10404     # Native MSVC
10405     libname_spec='$name'
10406     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10407     library_names_spec='${libname}.dll.lib'
10408
10409     case $build_os in
10410     mingw*)
10411       sys_lib_search_path_spec=
10412       lt_save_ifs=$IFS
10413       IFS=';'
10414       for lt_path in $LIB
10415       do
10416         IFS=$lt_save_ifs
10417         # Let DOS variable expansion print the short 8.3 style file name.
10418         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10419         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10420       done
10421       IFS=$lt_save_ifs
10422       # Convert to MSYS style.
10423       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10424       ;;
10425     cygwin*)
10426       # Convert to unix form, then to dos form, then back to unix form
10427       # but this time dos style (no spaces!) so that the unix form looks
10428       # like /cygdrive/c/PROGRA~1:/cygdr...
10429       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10430       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10431       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10432       ;;
10433     *)
10434       sys_lib_search_path_spec="$LIB"
10435       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10436         # It is most probably a Windows format PATH.
10437         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10438       else
10439         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10440       fi
10441       # FIXME: find the short name or the path components, as spaces are
10442       # common. (e.g. "Program Files" -> "PROGRA~1")
10443       ;;
10444     esac
10445
10446     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10447     postinstall_cmds='base_file=`basename \${file}`~
10448       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10449       dldir=$destdir/`dirname \$dlpath`~
10450       test -d \$dldir || mkdir -p \$dldir~
10451       $install_prog $dir/$dlname \$dldir/$dlname'
10452     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10453       dlpath=$dir/\$dldll~
10454        $RM \$dlpath'
10455     shlibpath_overrides_runpath=yes
10456     dynamic_linker='Win32 link.exe'
10457     ;;
10458
10459   *)
10460     # Assume MSVC wrapper
10461     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10462     dynamic_linker='Win32 ld.exe'
10463     ;;
10464   esac
10465   # FIXME: first we should search . and the directory the executable is in
10466   shlibpath_var=PATH
10467   ;;
10468
10469 darwin* | rhapsody*)
10470   dynamic_linker="$host_os dyld"
10471   version_type=darwin
10472   need_lib_prefix=no
10473   need_version=no
10474   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10475   soname_spec='${libname}${release}${major}$shared_ext'
10476   shlibpath_overrides_runpath=yes
10477   shlibpath_var=DYLD_LIBRARY_PATH
10478   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10479
10480   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10481   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10482   ;;
10483
10484 dgux*)
10485   version_type=linux # correct to gnu/linux during the next big refactor
10486   need_lib_prefix=no
10487   need_version=no
10488   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10489   soname_spec='${libname}${release}${shared_ext}$major'
10490   shlibpath_var=LD_LIBRARY_PATH
10491   ;;
10492
10493 freebsd* | dragonfly*)
10494   # DragonFly does not have aout.  When/if they implement a new
10495   # versioning mechanism, adjust this.
10496   if test -x /usr/bin/objformat; then
10497     objformat=`/usr/bin/objformat`
10498   else
10499     case $host_os in
10500     freebsd[23].*) objformat=aout ;;
10501     *) objformat=elf ;;
10502     esac
10503   fi
10504   version_type=freebsd-$objformat
10505   case $version_type in
10506     freebsd-elf*)
10507       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10508       need_version=no
10509       need_lib_prefix=no
10510       ;;
10511     freebsd-*)
10512       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10513       need_version=yes
10514       ;;
10515   esac
10516   shlibpath_var=LD_LIBRARY_PATH
10517   case $host_os in
10518   freebsd2.*)
10519     shlibpath_overrides_runpath=yes
10520     ;;
10521   freebsd3.[01]* | freebsdelf3.[01]*)
10522     shlibpath_overrides_runpath=yes
10523     hardcode_into_libs=yes
10524     ;;
10525   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10526   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10527     shlibpath_overrides_runpath=no
10528     hardcode_into_libs=yes
10529     ;;
10530   *) # from 4.6 on, and DragonFly
10531     shlibpath_overrides_runpath=yes
10532     hardcode_into_libs=yes
10533     ;;
10534   esac
10535   ;;
10536
10537 gnu*)
10538   version_type=linux # correct to gnu/linux during the next big refactor
10539   need_lib_prefix=no
10540   need_version=no
10541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10542   soname_spec='${libname}${release}${shared_ext}$major'
10543   shlibpath_var=LD_LIBRARY_PATH
10544   shlibpath_overrides_runpath=no
10545   hardcode_into_libs=yes
10546   ;;
10547
10548 haiku*)
10549   version_type=linux # correct to gnu/linux during the next big refactor
10550   need_lib_prefix=no
10551   need_version=no
10552   dynamic_linker="$host_os runtime_loader"
10553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10554   soname_spec='${libname}${release}${shared_ext}$major'
10555   shlibpath_var=LIBRARY_PATH
10556   shlibpath_overrides_runpath=yes
10557   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10558   hardcode_into_libs=yes
10559   ;;
10560
10561 hpux9* | hpux10* | hpux11*)
10562   # Give a soname corresponding to the major version so that dld.sl refuses to
10563   # link against other versions.
10564   version_type=sunos
10565   need_lib_prefix=no
10566   need_version=no
10567   case $host_cpu in
10568   ia64*)
10569     shrext_cmds='.so'
10570     hardcode_into_libs=yes
10571     dynamic_linker="$host_os dld.so"
10572     shlibpath_var=LD_LIBRARY_PATH
10573     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10574     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10575     soname_spec='${libname}${release}${shared_ext}$major'
10576     if test "X$HPUX_IA64_MODE" = X32; then
10577       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10578     else
10579       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10580     fi
10581     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10582     ;;
10583   hppa*64*)
10584     shrext_cmds='.sl'
10585     hardcode_into_libs=yes
10586     dynamic_linker="$host_os dld.sl"
10587     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10588     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10589     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10590     soname_spec='${libname}${release}${shared_ext}$major'
10591     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10592     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10593     ;;
10594   *)
10595     shrext_cmds='.sl'
10596     dynamic_linker="$host_os dld.sl"
10597     shlibpath_var=SHLIB_PATH
10598     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10600     soname_spec='${libname}${release}${shared_ext}$major'
10601     ;;
10602   esac
10603   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10604   postinstall_cmds='chmod 555 $lib'
10605   # or fails outright, so override atomically:
10606   install_override_mode=555
10607   ;;
10608
10609 interix[3-9]*)
10610   version_type=linux # correct to gnu/linux during the next big refactor
10611   need_lib_prefix=no
10612   need_version=no
10613   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10614   soname_spec='${libname}${release}${shared_ext}$major'
10615   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10616   shlibpath_var=LD_LIBRARY_PATH
10617   shlibpath_overrides_runpath=no
10618   hardcode_into_libs=yes
10619   ;;
10620
10621 irix5* | irix6* | nonstopux*)
10622   case $host_os in
10623     nonstopux*) version_type=nonstopux ;;
10624     *)
10625         if test "$lt_cv_prog_gnu_ld" = yes; then
10626                 version_type=linux # correct to gnu/linux during the next big refactor
10627         else
10628                 version_type=irix
10629         fi ;;
10630   esac
10631   need_lib_prefix=no
10632   need_version=no
10633   soname_spec='${libname}${release}${shared_ext}$major'
10634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10635   case $host_os in
10636   irix5* | nonstopux*)
10637     libsuff= shlibsuff=
10638     ;;
10639   *)
10640     case $LD in # libtool.m4 will add one of these switches to LD
10641     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10642       libsuff= shlibsuff= libmagic=32-bit;;
10643     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10644       libsuff=32 shlibsuff=N32 libmagic=N32;;
10645     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10646       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10647     *) libsuff= shlibsuff= libmagic=never-match;;
10648     esac
10649     ;;
10650   esac
10651   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10652   shlibpath_overrides_runpath=no
10653   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10654   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10655   hardcode_into_libs=yes
10656   ;;
10657
10658 # No shared lib support for Linux oldld, aout, or coff.
10659 linux*oldld* | linux*aout* | linux*coff*)
10660   dynamic_linker=no
10661   ;;
10662
10663 # This must be glibc/ELF.
10664 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10665   version_type=linux # correct to gnu/linux during the next big refactor
10666   need_lib_prefix=no
10667   need_version=no
10668   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669   soname_spec='${libname}${release}${shared_ext}$major'
10670   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10671   shlibpath_var=LD_LIBRARY_PATH
10672   shlibpath_overrides_runpath=no
10673
10674   # Some binutils ld are patched to set DT_RUNPATH
10675   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10676   $as_echo_n "(cached) " >&6
10677 else
10678   lt_cv_shlibpath_overrides_runpath=no
10679     save_LDFLAGS=$LDFLAGS
10680     save_libdir=$libdir
10681     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10682          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10683     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h.  */
10685
10686 int
10687 main ()
10688 {
10689
10690   ;
10691   return 0;
10692 }
10693 _ACEOF
10694 if ac_fn_c_try_link "$LINENO"; then :
10695   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10696   lt_cv_shlibpath_overrides_runpath=yes
10697 fi
10698 fi
10699 rm -f core conftest.err conftest.$ac_objext \
10700     conftest$ac_exeext conftest.$ac_ext
10701     LDFLAGS=$save_LDFLAGS
10702     libdir=$save_libdir
10703
10704 fi
10705
10706   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10707
10708   # This implies no fast_install, which is unacceptable.
10709   # Some rework will be needed to allow for fast_install
10710   # before this can be enabled.
10711   hardcode_into_libs=yes
10712
10713   # Add ABI-specific directories to the system library path.
10714   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10715
10716   # Append ld.so.conf contents to the search path
10717   if test -f /etc/ld.so.conf; then
10718     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' ' '`
10719     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10720
10721   fi
10722
10723   # We used to test for /lib/ld.so.1 and disable shared libraries on
10724   # powerpc, because MkLinux only supported shared libraries with the
10725   # GNU dynamic linker.  Since this was broken with cross compilers,
10726   # most powerpc-linux boxes support dynamic linking these days and
10727   # people can always --disable-shared, the test was removed, and we
10728   # assume the GNU/Linux dynamic linker is in use.
10729   dynamic_linker='GNU/Linux ld.so'
10730   ;;
10731
10732 netbsd*)
10733   version_type=sunos
10734   need_lib_prefix=no
10735   need_version=no
10736   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10737     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10738     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10739     dynamic_linker='NetBSD (a.out) ld.so'
10740   else
10741     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10742     soname_spec='${libname}${release}${shared_ext}$major'
10743     dynamic_linker='NetBSD ld.elf_so'
10744   fi
10745   shlibpath_var=LD_LIBRARY_PATH
10746   shlibpath_overrides_runpath=yes
10747   hardcode_into_libs=yes
10748   ;;
10749
10750 newsos6)
10751   version_type=linux # correct to gnu/linux during the next big refactor
10752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10753   shlibpath_var=LD_LIBRARY_PATH
10754   shlibpath_overrides_runpath=yes
10755   ;;
10756
10757 *nto* | *qnx*)
10758   version_type=qnx
10759   need_lib_prefix=no
10760   need_version=no
10761   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10762   soname_spec='${libname}${release}${shared_ext}$major'
10763   shlibpath_var=LD_LIBRARY_PATH
10764   shlibpath_overrides_runpath=no
10765   hardcode_into_libs=yes
10766   dynamic_linker='ldqnx.so'
10767   ;;
10768
10769 openbsd*)
10770   version_type=sunos
10771   sys_lib_dlsearch_path_spec="/usr/lib"
10772   need_lib_prefix=no
10773   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10774   case $host_os in
10775     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10776     *)                          need_version=no  ;;
10777   esac
10778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10779   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10780   shlibpath_var=LD_LIBRARY_PATH
10781   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10782     case $host_os in
10783       openbsd2.[89] | openbsd2.[89].*)
10784         shlibpath_overrides_runpath=no
10785         ;;
10786       *)
10787         shlibpath_overrides_runpath=yes
10788         ;;
10789       esac
10790   else
10791     shlibpath_overrides_runpath=yes
10792   fi
10793   ;;
10794
10795 os2*)
10796   libname_spec='$name'
10797   shrext_cmds=".dll"
10798   need_lib_prefix=no
10799   library_names_spec='$libname${shared_ext} $libname.a'
10800   dynamic_linker='OS/2 ld.exe'
10801   shlibpath_var=LIBPATH
10802   ;;
10803
10804 osf3* | osf4* | osf5*)
10805   version_type=osf
10806   need_lib_prefix=no
10807   need_version=no
10808   soname_spec='${libname}${release}${shared_ext}$major'
10809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810   shlibpath_var=LD_LIBRARY_PATH
10811   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10812   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10813   ;;
10814
10815 rdos*)
10816   dynamic_linker=no
10817   ;;
10818
10819 solaris*)
10820   version_type=linux # correct to gnu/linux during the next big refactor
10821   need_lib_prefix=no
10822   need_version=no
10823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10824   soname_spec='${libname}${release}${shared_ext}$major'
10825   shlibpath_var=LD_LIBRARY_PATH
10826   shlibpath_overrides_runpath=yes
10827   hardcode_into_libs=yes
10828   # ldd complains unless libraries are executable
10829   postinstall_cmds='chmod +x $lib'
10830   ;;
10831
10832 sunos4*)
10833   version_type=sunos
10834   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10835   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10836   shlibpath_var=LD_LIBRARY_PATH
10837   shlibpath_overrides_runpath=yes
10838   if test "$with_gnu_ld" = yes; then
10839     need_lib_prefix=no
10840   fi
10841   need_version=yes
10842   ;;
10843
10844 sysv4 | sysv4.3*)
10845   version_type=linux # correct to gnu/linux during the next big refactor
10846   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10847   soname_spec='${libname}${release}${shared_ext}$major'
10848   shlibpath_var=LD_LIBRARY_PATH
10849   case $host_vendor in
10850     sni)
10851       shlibpath_overrides_runpath=no
10852       need_lib_prefix=no
10853       runpath_var=LD_RUN_PATH
10854       ;;
10855     siemens)
10856       need_lib_prefix=no
10857       ;;
10858     motorola)
10859       need_lib_prefix=no
10860       need_version=no
10861       shlibpath_overrides_runpath=no
10862       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10863       ;;
10864   esac
10865   ;;
10866
10867 sysv4*MP*)
10868   if test -d /usr/nec ;then
10869     version_type=linux # correct to gnu/linux during the next big refactor
10870     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10871     soname_spec='$libname${shared_ext}.$major'
10872     shlibpath_var=LD_LIBRARY_PATH
10873   fi
10874   ;;
10875
10876 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10877   version_type=freebsd-elf
10878   need_lib_prefix=no
10879   need_version=no
10880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10881   soname_spec='${libname}${release}${shared_ext}$major'
10882   shlibpath_var=LD_LIBRARY_PATH
10883   shlibpath_overrides_runpath=yes
10884   hardcode_into_libs=yes
10885   if test "$with_gnu_ld" = yes; then
10886     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10887   else
10888     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10889     case $host_os in
10890       sco3.2v5*)
10891         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10892         ;;
10893     esac
10894   fi
10895   sys_lib_dlsearch_path_spec='/usr/lib'
10896   ;;
10897
10898 tpf*)
10899   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10900   version_type=linux # correct to gnu/linux during the next big refactor
10901   need_lib_prefix=no
10902   need_version=no
10903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904   shlibpath_var=LD_LIBRARY_PATH
10905   shlibpath_overrides_runpath=no
10906   hardcode_into_libs=yes
10907   ;;
10908
10909 uts4*)
10910   version_type=linux # correct to gnu/linux during the next big refactor
10911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10912   soname_spec='${libname}${release}${shared_ext}$major'
10913   shlibpath_var=LD_LIBRARY_PATH
10914   ;;
10915
10916 *)
10917   dynamic_linker=no
10918   ;;
10919 esac
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10921 $as_echo "$dynamic_linker" >&6; }
10922 test "$dynamic_linker" = no && can_build_shared=no
10923
10924 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10925 if test "$GCC" = yes; then
10926   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10927 fi
10928
10929 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10930   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10931 fi
10932 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10933   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10934 fi
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11028 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11029 hardcode_action=
11030 if test -n "$hardcode_libdir_flag_spec" ||
11031    test -n "$runpath_var" ||
11032    test "X$hardcode_automatic" = "Xyes" ; then
11033
11034   # We can hardcode non-existent directories.
11035   if test "$hardcode_direct" != no &&
11036      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11037      # have to relink, otherwise we might link with an installed library
11038      # when we should be linking with a yet-to-be-installed one
11039      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11040      test "$hardcode_minus_L" != no; then
11041     # Linking always hardcodes the temporary library directory.
11042     hardcode_action=relink
11043   else
11044     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11045     hardcode_action=immediate
11046   fi
11047 else
11048   # We cannot hardcode anything, or else we can only hardcode existing
11049   # directories.
11050   hardcode_action=unsupported
11051 fi
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11053 $as_echo "$hardcode_action" >&6; }
11054
11055 if test "$hardcode_action" = relink ||
11056    test "$inherit_rpath" = yes; then
11057   # Fast installation is not supported
11058   enable_fast_install=no
11059 elif test "$shlibpath_overrides_runpath" = yes ||
11060      test "$enable_shared" = no; then
11061   # Fast installation is not necessary
11062   enable_fast_install=needless
11063 fi
11064
11065
11066
11067
11068
11069
11070   if test "x$enable_dlopen" != xyes; then
11071   enable_dlopen=unknown
11072   enable_dlopen_self=unknown
11073   enable_dlopen_self_static=unknown
11074 else
11075   lt_cv_dlopen=no
11076   lt_cv_dlopen_libs=
11077
11078   case $host_os in
11079   beos*)
11080     lt_cv_dlopen="load_add_on"
11081     lt_cv_dlopen_libs=
11082     lt_cv_dlopen_self=yes
11083     ;;
11084
11085   mingw* | pw32* | cegcc*)
11086     lt_cv_dlopen="LoadLibrary"
11087     lt_cv_dlopen_libs=
11088     ;;
11089
11090   cygwin*)
11091     lt_cv_dlopen="dlopen"
11092     lt_cv_dlopen_libs=
11093     ;;
11094
11095   darwin*)
11096   # if libdl is installed we need to link against it
11097     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11098 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11099 if ${ac_cv_lib_dl_dlopen+:} false; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   ac_check_lib_save_LIBS=$LIBS
11103 LIBS="-ldl  $LIBS"
11104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105 /* end confdefs.h.  */
11106
11107 /* Override any GCC internal prototype to avoid an error.
11108    Use char because int might match the return type of a GCC
11109    builtin and then its argument prototype would still apply.  */
11110 #ifdef __cplusplus
11111 extern "C"
11112 #endif
11113 char dlopen ();
11114 int
11115 main ()
11116 {
11117 return dlopen ();
11118   ;
11119   return 0;
11120 }
11121 _ACEOF
11122 if ac_fn_c_try_link "$LINENO"; then :
11123   ac_cv_lib_dl_dlopen=yes
11124 else
11125   ac_cv_lib_dl_dlopen=no
11126 fi
11127 rm -f core conftest.err conftest.$ac_objext \
11128     conftest$ac_exeext conftest.$ac_ext
11129 LIBS=$ac_check_lib_save_LIBS
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11132 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11133 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11134   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11135 else
11136
11137     lt_cv_dlopen="dyld"
11138     lt_cv_dlopen_libs=
11139     lt_cv_dlopen_self=yes
11140
11141 fi
11142
11143     ;;
11144
11145   *)
11146     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11147 if test "x$ac_cv_func_shl_load" = xyes; then :
11148   lt_cv_dlopen="shl_load"
11149 else
11150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11151 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11152 if ${ac_cv_lib_dld_shl_load+:} false; then :
11153   $as_echo_n "(cached) " >&6
11154 else
11155   ac_check_lib_save_LIBS=$LIBS
11156 LIBS="-ldld  $LIBS"
11157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11158 /* end confdefs.h.  */
11159
11160 /* Override any GCC internal prototype to avoid an error.
11161    Use char because int might match the return type of a GCC
11162    builtin and then its argument prototype would still apply.  */
11163 #ifdef __cplusplus
11164 extern "C"
11165 #endif
11166 char shl_load ();
11167 int
11168 main ()
11169 {
11170 return shl_load ();
11171   ;
11172   return 0;
11173 }
11174 _ACEOF
11175 if ac_fn_c_try_link "$LINENO"; then :
11176   ac_cv_lib_dld_shl_load=yes
11177 else
11178   ac_cv_lib_dld_shl_load=no
11179 fi
11180 rm -f core conftest.err conftest.$ac_objext \
11181     conftest$ac_exeext conftest.$ac_ext
11182 LIBS=$ac_check_lib_save_LIBS
11183 fi
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11185 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11186 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11187   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11188 else
11189   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11190 if test "x$ac_cv_func_dlopen" = xyes; then :
11191   lt_cv_dlopen="dlopen"
11192 else
11193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11194 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11195 if ${ac_cv_lib_dl_dlopen+:} false; then :
11196   $as_echo_n "(cached) " >&6
11197 else
11198   ac_check_lib_save_LIBS=$LIBS
11199 LIBS="-ldl  $LIBS"
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h.  */
11202
11203 /* Override any GCC internal prototype to avoid an error.
11204    Use char because int might match the return type of a GCC
11205    builtin and then its argument prototype would still apply.  */
11206 #ifdef __cplusplus
11207 extern "C"
11208 #endif
11209 char dlopen ();
11210 int
11211 main ()
11212 {
11213 return dlopen ();
11214   ;
11215   return 0;
11216 }
11217 _ACEOF
11218 if ac_fn_c_try_link "$LINENO"; then :
11219   ac_cv_lib_dl_dlopen=yes
11220 else
11221   ac_cv_lib_dl_dlopen=no
11222 fi
11223 rm -f core conftest.err conftest.$ac_objext \
11224     conftest$ac_exeext conftest.$ac_ext
11225 LIBS=$ac_check_lib_save_LIBS
11226 fi
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11228 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11229 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11230   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11231 else
11232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11233 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11234 if ${ac_cv_lib_svld_dlopen+:} false; then :
11235   $as_echo_n "(cached) " >&6
11236 else
11237   ac_check_lib_save_LIBS=$LIBS
11238 LIBS="-lsvld  $LIBS"
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h.  */
11241
11242 /* Override any GCC internal prototype to avoid an error.
11243    Use char because int might match the return type of a GCC
11244    builtin and then its argument prototype would still apply.  */
11245 #ifdef __cplusplus
11246 extern "C"
11247 #endif
11248 char dlopen ();
11249 int
11250 main ()
11251 {
11252 return dlopen ();
11253   ;
11254   return 0;
11255 }
11256 _ACEOF
11257 if ac_fn_c_try_link "$LINENO"; then :
11258   ac_cv_lib_svld_dlopen=yes
11259 else
11260   ac_cv_lib_svld_dlopen=no
11261 fi
11262 rm -f core conftest.err conftest.$ac_objext \
11263     conftest$ac_exeext conftest.$ac_ext
11264 LIBS=$ac_check_lib_save_LIBS
11265 fi
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11267 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11268 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11269   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11270 else
11271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11272 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11273 if ${ac_cv_lib_dld_dld_link+:} false; then :
11274   $as_echo_n "(cached) " >&6
11275 else
11276   ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldld  $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h.  */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282    Use char because int might match the return type of a GCC
11283    builtin and then its argument prototype would still apply.  */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char dld_link ();
11288 int
11289 main ()
11290 {
11291 return dld_link ();
11292   ;
11293   return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297   ac_cv_lib_dld_dld_link=yes
11298 else
11299   ac_cv_lib_dld_dld_link=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302     conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11306 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11307 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11308   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11309 fi
11310
11311
11312 fi
11313
11314
11315 fi
11316
11317
11318 fi
11319
11320
11321 fi
11322
11323
11324 fi
11325
11326     ;;
11327   esac
11328
11329   if test "x$lt_cv_dlopen" != xno; then
11330     enable_dlopen=yes
11331   else
11332     enable_dlopen=no
11333   fi
11334
11335   case $lt_cv_dlopen in
11336   dlopen)
11337     save_CPPFLAGS="$CPPFLAGS"
11338     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11339
11340     save_LDFLAGS="$LDFLAGS"
11341     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11342
11343     save_LIBS="$LIBS"
11344     LIBS="$lt_cv_dlopen_libs $LIBS"
11345
11346     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11347 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11348 if ${lt_cv_dlopen_self+:} false; then :
11349   $as_echo_n "(cached) " >&6
11350 else
11351           if test "$cross_compiling" = yes; then :
11352   lt_cv_dlopen_self=cross
11353 else
11354   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11355   lt_status=$lt_dlunknown
11356   cat > conftest.$ac_ext <<_LT_EOF
11357 #line $LINENO "configure"
11358 #include "confdefs.h"
11359
11360 #if HAVE_DLFCN_H
11361 #include <dlfcn.h>
11362 #endif
11363
11364 #include <stdio.h>
11365
11366 #ifdef RTLD_GLOBAL
11367 #  define LT_DLGLOBAL           RTLD_GLOBAL
11368 #else
11369 #  ifdef DL_GLOBAL
11370 #    define LT_DLGLOBAL         DL_GLOBAL
11371 #  else
11372 #    define LT_DLGLOBAL         0
11373 #  endif
11374 #endif
11375
11376 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11377    find out it does not work in some platform. */
11378 #ifndef LT_DLLAZY_OR_NOW
11379 #  ifdef RTLD_LAZY
11380 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11381 #  else
11382 #    ifdef DL_LAZY
11383 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11384 #    else
11385 #      ifdef RTLD_NOW
11386 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11387 #      else
11388 #        ifdef DL_NOW
11389 #          define LT_DLLAZY_OR_NOW      DL_NOW
11390 #        else
11391 #          define LT_DLLAZY_OR_NOW      0
11392 #        endif
11393 #      endif
11394 #    endif
11395 #  endif
11396 #endif
11397
11398 /* When -fvisbility=hidden is used, assume the code has been annotated
11399    correspondingly for the symbols needed.  */
11400 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11401 int fnord () __attribute__((visibility("default")));
11402 #endif
11403
11404 int fnord () { return 42; }
11405 int main ()
11406 {
11407   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11408   int status = $lt_dlunknown;
11409
11410   if (self)
11411     {
11412       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11413       else
11414         {
11415           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11416           else puts (dlerror ());
11417         }
11418       /* dlclose (self); */
11419     }
11420   else
11421     puts (dlerror ());
11422
11423   return status;
11424 }
11425 _LT_EOF
11426   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11427   (eval $ac_link) 2>&5
11428   ac_status=$?
11429   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11430   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11431     (./conftest; exit; ) >&5 2>/dev/null
11432     lt_status=$?
11433     case x$lt_status in
11434       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11435       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11436       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11437     esac
11438   else :
11439     # compilation failed
11440     lt_cv_dlopen_self=no
11441   fi
11442 fi
11443 rm -fr conftest*
11444
11445
11446 fi
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11448 $as_echo "$lt_cv_dlopen_self" >&6; }
11449
11450     if test "x$lt_cv_dlopen_self" = xyes; then
11451       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11452       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11453 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11454 if ${lt_cv_dlopen_self_static+:} false; then :
11455   $as_echo_n "(cached) " >&6
11456 else
11457           if test "$cross_compiling" = yes; then :
11458   lt_cv_dlopen_self_static=cross
11459 else
11460   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11461   lt_status=$lt_dlunknown
11462   cat > conftest.$ac_ext <<_LT_EOF
11463 #line $LINENO "configure"
11464 #include "confdefs.h"
11465
11466 #if HAVE_DLFCN_H
11467 #include <dlfcn.h>
11468 #endif
11469
11470 #include <stdio.h>
11471
11472 #ifdef RTLD_GLOBAL
11473 #  define LT_DLGLOBAL           RTLD_GLOBAL
11474 #else
11475 #  ifdef DL_GLOBAL
11476 #    define LT_DLGLOBAL         DL_GLOBAL
11477 #  else
11478 #    define LT_DLGLOBAL         0
11479 #  endif
11480 #endif
11481
11482 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11483    find out it does not work in some platform. */
11484 #ifndef LT_DLLAZY_OR_NOW
11485 #  ifdef RTLD_LAZY
11486 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11487 #  else
11488 #    ifdef DL_LAZY
11489 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11490 #    else
11491 #      ifdef RTLD_NOW
11492 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11493 #      else
11494 #        ifdef DL_NOW
11495 #          define LT_DLLAZY_OR_NOW      DL_NOW
11496 #        else
11497 #          define LT_DLLAZY_OR_NOW      0
11498 #        endif
11499 #      endif
11500 #    endif
11501 #  endif
11502 #endif
11503
11504 /* When -fvisbility=hidden is used, assume the code has been annotated
11505    correspondingly for the symbols needed.  */
11506 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11507 int fnord () __attribute__((visibility("default")));
11508 #endif
11509
11510 int fnord () { return 42; }
11511 int main ()
11512 {
11513   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11514   int status = $lt_dlunknown;
11515
11516   if (self)
11517     {
11518       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11519       else
11520         {
11521           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11522           else puts (dlerror ());
11523         }
11524       /* dlclose (self); */
11525     }
11526   else
11527     puts (dlerror ());
11528
11529   return status;
11530 }
11531 _LT_EOF
11532   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11533   (eval $ac_link) 2>&5
11534   ac_status=$?
11535   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11536   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11537     (./conftest; exit; ) >&5 2>/dev/null
11538     lt_status=$?
11539     case x$lt_status in
11540       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11541       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11542       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11543     esac
11544   else :
11545     # compilation failed
11546     lt_cv_dlopen_self_static=no
11547   fi
11548 fi
11549 rm -fr conftest*
11550
11551
11552 fi
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11554 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11555     fi
11556
11557     CPPFLAGS="$save_CPPFLAGS"
11558     LDFLAGS="$save_LDFLAGS"
11559     LIBS="$save_LIBS"
11560     ;;
11561   esac
11562
11563   case $lt_cv_dlopen_self in
11564   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11565   *) enable_dlopen_self=unknown ;;
11566   esac
11567
11568   case $lt_cv_dlopen_self_static in
11569   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11570   *) enable_dlopen_self_static=unknown ;;
11571   esac
11572 fi
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590 striplib=
11591 old_striplib=
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11593 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11594 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11595   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11596   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11598 $as_echo "yes" >&6; }
11599 else
11600 # FIXME - insert some real tests, host_os isn't really good enough
11601   case $host_os in
11602   darwin*)
11603     if test -n "$STRIP" ; then
11604       striplib="$STRIP -x"
11605       old_striplib="$STRIP -S"
11606       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11608     else
11609       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11611     fi
11612     ;;
11613   *)
11614     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615 $as_echo "no" >&6; }
11616     ;;
11617   esac
11618 fi
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631   # Report which library types will actually be built
11632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11633 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11635 $as_echo "$can_build_shared" >&6; }
11636
11637   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11638 $as_echo_n "checking whether to build shared libraries... " >&6; }
11639   test "$can_build_shared" = "no" && enable_shared=no
11640
11641   # On AIX, shared libraries and static libraries use the same namespace, and
11642   # are all built from PIC.
11643   case $host_os in
11644   aix3*)
11645     test "$enable_shared" = yes && enable_static=no
11646     if test -n "$RANLIB"; then
11647       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11648       postinstall_cmds='$RANLIB $lib'
11649     fi
11650     ;;
11651
11652   aix[4-9]*)
11653     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11654       test "$enable_shared" = yes && enable_static=no
11655     fi
11656     ;;
11657   esac
11658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11659 $as_echo "$enable_shared" >&6; }
11660
11661   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11662 $as_echo_n "checking whether to build static libraries... " >&6; }
11663   # Make sure either enable_shared or enable_static is yes.
11664   test "$enable_shared" = yes || enable_static=yes
11665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11666 $as_echo "$enable_static" >&6; }
11667
11668
11669
11670
11671 fi
11672 ac_ext=c
11673 ac_cpp='$CPP $CPPFLAGS'
11674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11677
11678 CC="$lt_save_CC"
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694         ac_config_commands="$ac_config_commands libtool"
11695
11696
11697
11698
11699 # Only expand once:
11700
11701
11702
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
11704 $as_echo_n "checking for library containing strerror... " >&6; }
11705 if ${ac_cv_search_strerror+:} false; then :
11706   $as_echo_n "(cached) " >&6
11707 else
11708   ac_func_search_save_LIBS=$LIBS
11709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710 /* end confdefs.h.  */
11711
11712 /* Override any GCC internal prototype to avoid an error.
11713    Use char because int might match the return type of a GCC
11714    builtin and then its argument prototype would still apply.  */
11715 #ifdef __cplusplus
11716 extern "C"
11717 #endif
11718 char strerror ();
11719 int
11720 main ()
11721 {
11722 return strerror ();
11723   ;
11724   return 0;
11725 }
11726 _ACEOF
11727 for ac_lib in '' cposix; do
11728   if test -z "$ac_lib"; then
11729     ac_res="none required"
11730   else
11731     ac_res=-l$ac_lib
11732     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
11733   fi
11734   if ac_fn_c_try_link "$LINENO"; then :
11735   ac_cv_search_strerror=$ac_res
11736 fi
11737 rm -f core conftest.err conftest.$ac_objext \
11738     conftest$ac_exeext
11739   if ${ac_cv_search_strerror+:} false; then :
11740   break
11741 fi
11742 done
11743 if ${ac_cv_search_strerror+:} false; then :
11744
11745 else
11746   ac_cv_search_strerror=no
11747 fi
11748 rm conftest.$ac_ext
11749 LIBS=$ac_func_search_save_LIBS
11750 fi
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
11752 $as_echo "$ac_cv_search_strerror" >&6; }
11753 ac_res=$ac_cv_search_strerror
11754 if test "$ac_res" != no; then :
11755   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11756
11757 fi
11758
11759 ac_ext=c
11760 ac_cpp='$CPP $CPPFLAGS'
11761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11764 if test -n "$ac_tool_prefix"; then
11765   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11766 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11768 $as_echo_n "checking for $ac_word... " >&6; }
11769 if ${ac_cv_prog_CC+:} false; then :
11770   $as_echo_n "(cached) " >&6
11771 else
11772   if test -n "$CC"; then
11773   ac_cv_prog_CC="$CC" # Let the user override the test.
11774 else
11775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11776 for as_dir in $PATH
11777 do
11778   IFS=$as_save_IFS
11779   test -z "$as_dir" && as_dir=.
11780     for ac_exec_ext in '' $ac_executable_extensions; do
11781   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11782     ac_cv_prog_CC="${ac_tool_prefix}gcc"
11783     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11784     break 2
11785   fi
11786 done
11787   done
11788 IFS=$as_save_IFS
11789
11790 fi
11791 fi
11792 CC=$ac_cv_prog_CC
11793 if test -n "$CC"; then
11794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11795 $as_echo "$CC" >&6; }
11796 else
11797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11798 $as_echo "no" >&6; }
11799 fi
11800
11801
11802 fi
11803 if test -z "$ac_cv_prog_CC"; then
11804   ac_ct_CC=$CC
11805   # Extract the first word of "gcc", so it can be a program name with args.
11806 set dummy gcc; ac_word=$2
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808 $as_echo_n "checking for $ac_word... " >&6; }
11809 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11810   $as_echo_n "(cached) " >&6
11811 else
11812   if test -n "$ac_ct_CC"; then
11813   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11814 else
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816 for as_dir in $PATH
11817 do
11818   IFS=$as_save_IFS
11819   test -z "$as_dir" && as_dir=.
11820     for ac_exec_ext in '' $ac_executable_extensions; do
11821   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11822     ac_cv_prog_ac_ct_CC="gcc"
11823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824     break 2
11825   fi
11826 done
11827   done
11828 IFS=$as_save_IFS
11829
11830 fi
11831 fi
11832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11833 if test -n "$ac_ct_CC"; then
11834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11835 $as_echo "$ac_ct_CC" >&6; }
11836 else
11837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838 $as_echo "no" >&6; }
11839 fi
11840
11841   if test "x$ac_ct_CC" = x; then
11842     CC=""
11843   else
11844     case $cross_compiling:$ac_tool_warned in
11845 yes:)
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11848 ac_tool_warned=yes ;;
11849 esac
11850     CC=$ac_ct_CC
11851   fi
11852 else
11853   CC="$ac_cv_prog_CC"
11854 fi
11855
11856 if test -z "$CC"; then
11857           if test -n "$ac_tool_prefix"; then
11858     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11859 set dummy ${ac_tool_prefix}cc; ac_word=$2
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11861 $as_echo_n "checking for $ac_word... " >&6; }
11862 if ${ac_cv_prog_CC+:} false; then :
11863   $as_echo_n "(cached) " >&6
11864 else
11865   if test -n "$CC"; then
11866   ac_cv_prog_CC="$CC" # Let the user override the test.
11867 else
11868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11869 for as_dir in $PATH
11870 do
11871   IFS=$as_save_IFS
11872   test -z "$as_dir" && as_dir=.
11873     for ac_exec_ext in '' $ac_executable_extensions; do
11874   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11875     ac_cv_prog_CC="${ac_tool_prefix}cc"
11876     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11877     break 2
11878   fi
11879 done
11880   done
11881 IFS=$as_save_IFS
11882
11883 fi
11884 fi
11885 CC=$ac_cv_prog_CC
11886 if test -n "$CC"; then
11887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11888 $as_echo "$CC" >&6; }
11889 else
11890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11891 $as_echo "no" >&6; }
11892 fi
11893
11894
11895   fi
11896 fi
11897 if test -z "$CC"; then
11898   # Extract the first word of "cc", so it can be a program name with args.
11899 set dummy cc; ac_word=$2
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11901 $as_echo_n "checking for $ac_word... " >&6; }
11902 if ${ac_cv_prog_CC+:} false; then :
11903   $as_echo_n "(cached) " >&6
11904 else
11905   if test -n "$CC"; then
11906   ac_cv_prog_CC="$CC" # Let the user override the test.
11907 else
11908   ac_prog_rejected=no
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11911 do
11912   IFS=$as_save_IFS
11913   test -z "$as_dir" && as_dir=.
11914     for ac_exec_ext in '' $ac_executable_extensions; do
11915   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11917        ac_prog_rejected=yes
11918        continue
11919      fi
11920     ac_cv_prog_CC="cc"
11921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11922     break 2
11923   fi
11924 done
11925   done
11926 IFS=$as_save_IFS
11927
11928 if test $ac_prog_rejected = yes; then
11929   # We found a bogon in the path, so make sure we never use it.
11930   set dummy $ac_cv_prog_CC
11931   shift
11932   if test $# != 0; then
11933     # We chose a different compiler from the bogus one.
11934     # However, it has the same basename, so the bogon will be chosen
11935     # first if we set CC to just the basename; use the full file name.
11936     shift
11937     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11938   fi
11939 fi
11940 fi
11941 fi
11942 CC=$ac_cv_prog_CC
11943 if test -n "$CC"; then
11944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11945 $as_echo "$CC" >&6; }
11946 else
11947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11948 $as_echo "no" >&6; }
11949 fi
11950
11951
11952 fi
11953 if test -z "$CC"; then
11954   if test -n "$ac_tool_prefix"; then
11955   for ac_prog in cl.exe
11956   do
11957     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11958 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11960 $as_echo_n "checking for $ac_word... " >&6; }
11961 if ${ac_cv_prog_CC+:} false; then :
11962   $as_echo_n "(cached) " >&6
11963 else
11964   if test -n "$CC"; then
11965   ac_cv_prog_CC="$CC" # Let the user override the test.
11966 else
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11969 do
11970   IFS=$as_save_IFS
11971   test -z "$as_dir" && as_dir=.
11972     for ac_exec_ext in '' $ac_executable_extensions; do
11973   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11975     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976     break 2
11977   fi
11978 done
11979   done
11980 IFS=$as_save_IFS
11981
11982 fi
11983 fi
11984 CC=$ac_cv_prog_CC
11985 if test -n "$CC"; then
11986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11987 $as_echo "$CC" >&6; }
11988 else
11989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990 $as_echo "no" >&6; }
11991 fi
11992
11993
11994     test -n "$CC" && break
11995   done
11996 fi
11997 if test -z "$CC"; then
11998   ac_ct_CC=$CC
11999   for ac_prog in cl.exe
12000 do
12001   # Extract the first word of "$ac_prog", so it can be a program name with args.
12002 set dummy $ac_prog; ac_word=$2
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12004 $as_echo_n "checking for $ac_word... " >&6; }
12005 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12006   $as_echo_n "(cached) " >&6
12007 else
12008   if test -n "$ac_ct_CC"; then
12009   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12010 else
12011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12012 for as_dir in $PATH
12013 do
12014   IFS=$as_save_IFS
12015   test -z "$as_dir" && as_dir=.
12016     for ac_exec_ext in '' $ac_executable_extensions; do
12017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12018     ac_cv_prog_ac_ct_CC="$ac_prog"
12019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12020     break 2
12021   fi
12022 done
12023   done
12024 IFS=$as_save_IFS
12025
12026 fi
12027 fi
12028 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12029 if test -n "$ac_ct_CC"; then
12030   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12031 $as_echo "$ac_ct_CC" >&6; }
12032 else
12033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12034 $as_echo "no" >&6; }
12035 fi
12036
12037
12038   test -n "$ac_ct_CC" && break
12039 done
12040
12041   if test "x$ac_ct_CC" = x; then
12042     CC=""
12043   else
12044     case $cross_compiling:$ac_tool_warned in
12045 yes:)
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12048 ac_tool_warned=yes ;;
12049 esac
12050     CC=$ac_ct_CC
12051   fi
12052 fi
12053
12054 fi
12055
12056
12057 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12058 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12059 as_fn_error $? "no acceptable C compiler found in \$PATH
12060 See \`config.log' for more details" "$LINENO" 5; }
12061
12062 # Provide some information about the compiler.
12063 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12064 set X $ac_compile
12065 ac_compiler=$2
12066 for ac_option in --version -v -V -qversion; do
12067   { { ac_try="$ac_compiler $ac_option >&5"
12068 case "(($ac_try" in
12069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070   *) ac_try_echo=$ac_try;;
12071 esac
12072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12073 $as_echo "$ac_try_echo"; } >&5
12074   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12075   ac_status=$?
12076   if test -s conftest.err; then
12077     sed '10a\
12078 ... rest of stderr output deleted ...
12079          10q' conftest.err >conftest.er1
12080     cat conftest.er1 >&5
12081   fi
12082   rm -f conftest.er1 conftest.err
12083   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12084   test $ac_status = 0; }
12085 done
12086
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12088 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12089 if ${ac_cv_c_compiler_gnu+:} false; then :
12090   $as_echo_n "(cached) " >&6
12091 else
12092   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12093 /* end confdefs.h.  */
12094
12095 int
12096 main ()
12097 {
12098 #ifndef __GNUC__
12099        choke me
12100 #endif
12101
12102   ;
12103   return 0;
12104 }
12105 _ACEOF
12106 if ac_fn_c_try_compile "$LINENO"; then :
12107   ac_compiler_gnu=yes
12108 else
12109   ac_compiler_gnu=no
12110 fi
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12113
12114 fi
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12116 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12117 if test $ac_compiler_gnu = yes; then
12118   GCC=yes
12119 else
12120   GCC=
12121 fi
12122 ac_test_CFLAGS=${CFLAGS+set}
12123 ac_save_CFLAGS=$CFLAGS
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12125 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12126 if ${ac_cv_prog_cc_g+:} false; then :
12127   $as_echo_n "(cached) " >&6
12128 else
12129   ac_save_c_werror_flag=$ac_c_werror_flag
12130    ac_c_werror_flag=yes
12131    ac_cv_prog_cc_g=no
12132    CFLAGS="-g"
12133    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12134 /* end confdefs.h.  */
12135
12136 int
12137 main ()
12138 {
12139
12140   ;
12141   return 0;
12142 }
12143 _ACEOF
12144 if ac_fn_c_try_compile "$LINENO"; then :
12145   ac_cv_prog_cc_g=yes
12146 else
12147   CFLAGS=""
12148       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12149 /* end confdefs.h.  */
12150
12151 int
12152 main ()
12153 {
12154
12155   ;
12156   return 0;
12157 }
12158 _ACEOF
12159 if ac_fn_c_try_compile "$LINENO"; then :
12160
12161 else
12162   ac_c_werror_flag=$ac_save_c_werror_flag
12163          CFLAGS="-g"
12164          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h.  */
12166
12167 int
12168 main ()
12169 {
12170
12171   ;
12172   return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"; then :
12176   ac_cv_prog_cc_g=yes
12177 fi
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179 fi
12180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12181 fi
12182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12183    ac_c_werror_flag=$ac_save_c_werror_flag
12184 fi
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12186 $as_echo "$ac_cv_prog_cc_g" >&6; }
12187 if test "$ac_test_CFLAGS" = set; then
12188   CFLAGS=$ac_save_CFLAGS
12189 elif test $ac_cv_prog_cc_g = yes; then
12190   if test "$GCC" = yes; then
12191     CFLAGS="-g -O2"
12192   else
12193     CFLAGS="-g"
12194   fi
12195 else
12196   if test "$GCC" = yes; then
12197     CFLAGS="-O2"
12198   else
12199     CFLAGS=
12200   fi
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12203 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12204 if ${ac_cv_prog_cc_c89+:} false; then :
12205   $as_echo_n "(cached) " >&6
12206 else
12207   ac_cv_prog_cc_c89=no
12208 ac_save_CC=$CC
12209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210 /* end confdefs.h.  */
12211 #include <stdarg.h>
12212 #include <stdio.h>
12213 struct stat;
12214 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12215 struct buf { int x; };
12216 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12217 static char *e (p, i)
12218      char **p;
12219      int i;
12220 {
12221   return p[i];
12222 }
12223 static char *f (char * (*g) (char **, int), char **p, ...)
12224 {
12225   char *s;
12226   va_list v;
12227   va_start (v,p);
12228   s = g (p, va_arg (v,int));
12229   va_end (v);
12230   return s;
12231 }
12232
12233 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12234    function prototypes and stuff, but not '\xHH' hex character constants.
12235    These don't provoke an error unfortunately, instead are silently treated
12236    as 'x'.  The following induces an error, until -std is added to get
12237    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12238    array size at least.  It's necessary to write '\x00'==0 to get something
12239    that's true only with -std.  */
12240 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12241
12242 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12243    inside strings and character constants.  */
12244 #define FOO(x) 'x'
12245 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12246
12247 int test (int i, double x);
12248 struct s1 {int (*f) (int a);};
12249 struct s2 {int (*f) (double a);};
12250 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12251 int argc;
12252 char **argv;
12253 int
12254 main ()
12255 {
12256 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12257   ;
12258   return 0;
12259 }
12260 _ACEOF
12261 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12262         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12263 do
12264   CC="$ac_save_CC $ac_arg"
12265   if ac_fn_c_try_compile "$LINENO"; then :
12266   ac_cv_prog_cc_c89=$ac_arg
12267 fi
12268 rm -f core conftest.err conftest.$ac_objext
12269   test "x$ac_cv_prog_cc_c89" != "xno" && break
12270 done
12271 rm -f conftest.$ac_ext
12272 CC=$ac_save_CC
12273
12274 fi
12275 # AC_CACHE_VAL
12276 case "x$ac_cv_prog_cc_c89" in
12277   x)
12278     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12279 $as_echo "none needed" >&6; } ;;
12280   xno)
12281     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12282 $as_echo "unsupported" >&6; } ;;
12283   *)
12284     CC="$CC $ac_cv_prog_cc_c89"
12285     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12286 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12287 esac
12288 if test "x$ac_cv_prog_cc_c89" != xno; then :
12289
12290 fi
12291
12292 ac_ext=c
12293 ac_cpp='$CPP $CPPFLAGS'
12294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12297
12298 depcc="$CC"   am_compiler_list=
12299
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12301 $as_echo_n "checking dependency style of $depcc... " >&6; }
12302 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12303   $as_echo_n "(cached) " >&6
12304 else
12305   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12306   # We make a subdir and do the tests there.  Otherwise we can end up
12307   # making bogus files that we don't know about and never remove.  For
12308   # instance it was reported that on HP-UX the gcc test will end up
12309   # making a dummy file named `D' -- because `-MD' means `put the output
12310   # in D'.
12311   rm -rf conftest.dir
12312   mkdir conftest.dir
12313   # Copy depcomp to subdir because otherwise we won't find it if we're
12314   # using a relative directory.
12315   cp "$am_depcomp" conftest.dir
12316   cd conftest.dir
12317   # We will build objects and dependencies in a subdirectory because
12318   # it helps to detect inapplicable dependency modes.  For instance
12319   # both Tru64's cc and ICC support -MD to output dependencies as a
12320   # side effect of compilation, but ICC will put the dependencies in
12321   # the current directory while Tru64 will put them in the object
12322   # directory.
12323   mkdir sub
12324
12325   am_cv_CC_dependencies_compiler_type=none
12326   if test "$am_compiler_list" = ""; then
12327      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12328   fi
12329   am__universal=false
12330   case " $depcc " in #(
12331      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12332      esac
12333
12334   for depmode in $am_compiler_list; do
12335     # Setup a source with many dependencies, because some compilers
12336     # like to wrap large dependency lists on column 80 (with \), and
12337     # we should not choose a depcomp mode which is confused by this.
12338     #
12339     # We need to recreate these files for each test, as the compiler may
12340     # overwrite some of them when testing with obscure command lines.
12341     # This happens at least with the AIX C compiler.
12342     : > sub/conftest.c
12343     for i in 1 2 3 4 5 6; do
12344       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12345       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12346       # Solaris 8's {/usr,}/bin/sh.
12347       touch sub/conftst$i.h
12348     done
12349     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12350
12351     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12352     # mode.  It turns out that the SunPro C++ compiler does not properly
12353     # handle `-M -o', and we need to detect this.  Also, some Intel
12354     # versions had trouble with output in subdirs
12355     am__obj=sub/conftest.${OBJEXT-o}
12356     am__minus_obj="-o $am__obj"
12357     case $depmode in
12358     gcc)
12359       # This depmode causes a compiler race in universal mode.
12360       test "$am__universal" = false || continue
12361       ;;
12362     nosideeffect)
12363       # after this tag, mechanisms are not by side-effect, so they'll
12364       # only be used when explicitly requested
12365       if test "x$enable_dependency_tracking" = xyes; then
12366         continue
12367       else
12368         break
12369       fi
12370       ;;
12371     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12372       # This compiler won't grok `-c -o', but also, the minuso test has
12373       # not run yet.  These depmodes are late enough in the game, and
12374       # so weak that their functioning should not be impacted.
12375       am__obj=conftest.${OBJEXT-o}
12376       am__minus_obj=
12377       ;;
12378     none) break ;;
12379     esac
12380     if depmode=$depmode \
12381        source=sub/conftest.c object=$am__obj \
12382        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12383        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12384          >/dev/null 2>conftest.err &&
12385        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12386        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12387        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12388        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12389       # icc doesn't choke on unknown options, it will just issue warnings
12390       # or remarks (even with -Werror).  So we grep stderr for any message
12391       # that says an option was ignored or not supported.
12392       # When given -MP, icc 7.0 and 7.1 complain thusly:
12393       #   icc: Command line warning: ignoring option '-M'; no argument required
12394       # The diagnosis changed in icc 8.0:
12395       #   icc: Command line remark: option '-MP' not supported
12396       if (grep 'ignoring option' conftest.err ||
12397           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12398         am_cv_CC_dependencies_compiler_type=$depmode
12399         break
12400       fi
12401     fi
12402   done
12403
12404   cd ..
12405   rm -rf conftest.dir
12406 else
12407   am_cv_CC_dependencies_compiler_type=none
12408 fi
12409
12410 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12412 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12413 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12414
12415  if
12416   test "x$enable_dependency_tracking" != xno \
12417   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12418   am__fastdepCC_TRUE=
12419   am__fastdepCC_FALSE='#'
12420 else
12421   am__fastdepCC_TRUE='#'
12422   am__fastdepCC_FALSE=
12423 fi
12424
12425
12426 if test "x$CC" != xcc; then
12427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12428 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12429 else
12430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12431 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12432 fi
12433 set dummy $CC; ac_cc=`$as_echo "$2" |
12434                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12435 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
12436   $as_echo_n "(cached) " >&6
12437 else
12438   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 /* end confdefs.h.  */
12440
12441 int
12442 main ()
12443 {
12444
12445   ;
12446   return 0;
12447 }
12448 _ACEOF
12449 # Make sure it works both with $CC and with simple cc.
12450 # We do the test twice because some compilers refuse to overwrite an
12451 # existing .o file with -o, though they will create one.
12452 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12453 rm -f conftest2.*
12454 if { { case "(($ac_try" in
12455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12456   *) ac_try_echo=$ac_try;;
12457 esac
12458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12459 $as_echo "$ac_try_echo"; } >&5
12460   (eval "$ac_try") 2>&5
12461   ac_status=$?
12462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12463   test $ac_status = 0; } &&
12464    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466   *) ac_try_echo=$ac_try;;
12467 esac
12468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12469 $as_echo "$ac_try_echo"; } >&5
12470   (eval "$ac_try") 2>&5
12471   ac_status=$?
12472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12473   test $ac_status = 0; };
12474 then
12475   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12476   if test "x$CC" != xcc; then
12477     # Test first that cc exists at all.
12478     if { ac_try='cc -c conftest.$ac_ext >&5'
12479   { { case "(($ac_try" in
12480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12481   *) ac_try_echo=$ac_try;;
12482 esac
12483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12484 $as_echo "$ac_try_echo"; } >&5
12485   (eval "$ac_try") 2>&5
12486   ac_status=$?
12487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12488   test $ac_status = 0; }; }; then
12489       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12490       rm -f conftest2.*
12491       if { { 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          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12503   *) ac_try_echo=$ac_try;;
12504 esac
12505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12506 $as_echo "$ac_try_echo"; } >&5
12507   (eval "$ac_try") 2>&5
12508   ac_status=$?
12509   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12510   test $ac_status = 0; };
12511       then
12512         # cc works too.
12513         :
12514       else
12515         # cc exists but doesn't like -o.
12516         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12517       fi
12518     fi
12519   fi
12520 else
12521   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12522 fi
12523 rm -f core conftest*
12524
12525 fi
12526 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12528 $as_echo "yes" >&6; }
12529 else
12530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12531 $as_echo "no" >&6; }
12532
12533 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12534
12535 fi
12536
12537 # FIXME: we rely on the cache variable name because
12538 # there is no other way.
12539 set dummy $CC
12540 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12541 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12542 if test "$am_t" != yes; then
12543    # Losing compiler, so override with the script.
12544    # FIXME: It is wrong to rewrite CC.
12545    # But if we don't then we get into trouble of one sort or another.
12546    # A longer-term fix would be to have automake use am__CC in this case,
12547    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12548    CC="$am_aux_dir/compile $CC"
12549 fi
12550
12551
12552
12553 # option to specify python interpreter to use; this just sets $PYTHON, so that
12554 # we will fallback to reading $PYTHON if --with-python is not given, and
12555 # python.m4 will get the expected input
12556
12557 # Check whether --with-python was given.
12558 if test "${with_python+set}" = set; then :
12559   withval=$with_python; PYTHON="$withval"
12560 fi
12561
12562 if test x"$PYTHON" = xyes; then
12563         as_fn_error $? "--with-python option requires a path or program argument" "$LINENO" 5
12564 fi
12565 if test -n "$PYTHON" && ! which "$PYTHON"; then
12566         as_fn_error $? "Python interpreter $PYTHON does not exist" "$LINENO" 5
12567 fi
12568
12569 # check that we have the minimum version of python necessary to build
12570
12571
12572
12573
12574         if test -n "$PYTHON"; then
12575       # If the user set $PYTHON, use it and don't search something else.
12576       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.7" >&5
12577 $as_echo_n "checking whether $PYTHON version >= 2.7... " >&6; }
12578       prog="import sys
12579 # split strings by '.' and convert to numeric.  Append some zeros
12580 # because we need at least 4 digits for the hex conversion.
12581 # map returns an iterator in Python 3.0 and a list in 2.x
12582 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12583 minverhex = 0
12584 # xrange is not present in Python 3.0 and range returns an iterator
12585 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12586 sys.exit(sys.hexversion < minverhex)"
12587   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12588    ($PYTHON -c "$prog") >&5 2>&5
12589    ac_status=$?
12590    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591    (exit $ac_status); }; then :
12592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12593 $as_echo "yes" >&6; }
12594 else
12595   as_fn_error $? "too old" "$LINENO" 5
12596 fi
12597       am_display_PYTHON=$PYTHON
12598     else
12599       # Otherwise, try each interpreter until we find one that satisfies
12600       # VERSION.
12601       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.7" >&5
12602 $as_echo_n "checking for a Python interpreter with version >= 2.7... " >&6; }
12603 if ${am_cv_pathless_PYTHON+:} false; then :
12604   $as_echo_n "(cached) " >&6
12605 else
12606
12607         for am_cv_pathless_PYTHON in python3 python3.3 python3.2 python3.1 python2 python2.7 python none; do
12608           test "$am_cv_pathless_PYTHON" = none && break
12609           prog="import sys
12610 # split strings by '.' and convert to numeric.  Append some zeros
12611 # because we need at least 4 digits for the hex conversion.
12612 # map returns an iterator in Python 3.0 and a list in 2.x
12613 minver = list(map(int, '2.7'.split('.'))) + [0, 0, 0]
12614 minverhex = 0
12615 # xrange is not present in Python 3.0 and range returns an iterator
12616 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12617 sys.exit(sys.hexversion < minverhex)"
12618   if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
12619    ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
12620    ac_status=$?
12621    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622    (exit $ac_status); }; then :
12623   break
12624 fi
12625         done
12626 fi
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
12628 $as_echo "$am_cv_pathless_PYTHON" >&6; }
12629       # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
12630       if test "$am_cv_pathless_PYTHON" = none; then
12631         PYTHON=:
12632       else
12633         # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
12634 set dummy $am_cv_pathless_PYTHON; ac_word=$2
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; }
12637 if ${ac_cv_path_PYTHON+:} false; then :
12638   $as_echo_n "(cached) " >&6
12639 else
12640   case $PYTHON in
12641   [\\/]* | ?:[\\/]*)
12642   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12643   ;;
12644   *)
12645   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH
12647 do
12648   IFS=$as_save_IFS
12649   test -z "$as_dir" && as_dir=.
12650     for ac_exec_ext in '' $ac_executable_extensions; do
12651   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12652     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654     break 2
12655   fi
12656 done
12657   done
12658 IFS=$as_save_IFS
12659
12660   ;;
12661 esac
12662 fi
12663 PYTHON=$ac_cv_path_PYTHON
12664 if test -n "$PYTHON"; then
12665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12666 $as_echo "$PYTHON" >&6; }
12667 else
12668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12669 $as_echo "no" >&6; }
12670 fi
12671
12672
12673       fi
12674       am_display_PYTHON=$am_cv_pathless_PYTHON
12675     fi
12676
12677
12678   if test "$PYTHON" = :; then
12679       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12680   else
12681
12682
12683   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12684 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12685 if ${am_cv_python_version+:} false; then :
12686   $as_echo_n "(cached) " >&6
12687 else
12688   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12689 fi
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12691 $as_echo "$am_cv_python_version" >&6; }
12692   PYTHON_VERSION=$am_cv_python_version
12693
12694
12695
12696   PYTHON_PREFIX='${prefix}'
12697
12698   PYTHON_EXEC_PREFIX='${exec_prefix}'
12699
12700
12701
12702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12703 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12704 if ${am_cv_python_platform+:} false; then :
12705   $as_echo_n "(cached) " >&6
12706 else
12707   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12708 fi
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12710 $as_echo "$am_cv_python_platform" >&6; }
12711   PYTHON_PLATFORM=$am_cv_python_platform
12712
12713
12714
12715
12716                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12717 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12718 if ${am_cv_python_pythondir+:} false; then :
12719   $as_echo_n "(cached) " >&6
12720 else
12721   am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX'))" 2>/dev/null ||
12722      echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12725 $as_echo "$am_cv_python_pythondir" >&6; }
12726   pythondir=$am_cv_python_pythondir
12727
12728
12729
12730   pkgpythondir=\${pythondir}/$PACKAGE
12731
12732
12733             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12734 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12735 if ${am_cv_python_pyexecdir+:} false; then :
12736   $as_echo_n "(cached) " >&6
12737 else
12738   am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX'))" 2>/dev/null ||
12739      echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
12740 fi
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12742 $as_echo "$am_cv_python_pyexecdir" >&6; }
12743   pyexecdir=$am_cv_python_pyexecdir
12744
12745
12746
12747   pkgpyexecdir=\${pyexecdir}/$PACKAGE
12748
12749
12750
12751   fi
12752
12753
12754
12755 # check if we are building for python 3
12756 prog="import sys
12757 # split strings by '.' and convert to numeric.  Append some zeros
12758 # because we need at least 4 digits for the hex conversion.
12759 # map returns an iterator in Python 3.0 and a list in 2.x
12760 minver = list(map(int, '3.0'.split('.'))) + [0, 0, 0]
12761 minverhex = 0
12762 # xrange is not present in Python 3.0 and range returns an iterator
12763 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12764 sys.exit(sys.hexversion < minverhex)"
12765   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12766    ($PYTHON -c "$prog") >&5 2>&5
12767    ac_status=$?
12768    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769    (exit $ac_status); }; then :
12770   build_py3k=true
12771 else
12772   build_py3k=false
12773 fi
12774
12775 # if building for python 3 make sure we have the minimum version supported
12776 if test $build_py3k = true ; then
12777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PYTHON >= 3.1" >&5
12778 $as_echo_n "checking for $PYTHON >= 3.1... " >&6; }
12779   prog="import sys
12780 # split strings by '.' and convert to numeric.  Append some zeros
12781 # because we need at least 4 digits for the hex conversion.
12782 # map returns an iterator in Python 3.0 and a list in 2.x
12783 minver = list(map(int, '3.1'.split('.'))) + [0, 0, 0]
12784 minverhex = 0
12785 # xrange is not present in Python 3.0 and range returns an iterator
12786 for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
12787 sys.exit(sys.hexversion < minverhex)"
12788   if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
12789    ($PYTHON -c "$prog") >&5 2>&5
12790    ac_status=$?
12791    echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792    (exit $ac_status); }; then :
12793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12794 $as_echo "yes" >&6; }
12795 else
12796   as_fn_error $? "too old" "$LINENO" 5
12797 fi
12798 fi
12799
12800 # - 'SO' for PyPy, CPython 2.7-3.2
12801 # - 'EXT_SUFFIX' for CPython3.3+ (http://bugs.python.org/issue16754)
12802 # - fallback to '.so'
12803 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');"`
12804
12805
12806
12807
12808
12809
12810
12811
12812         # Find any Python interpreter.
12813     if test -z "$PYTHON"; then
12814       for ac_prog in python3 python3.3 python3.2 python3.1 python2 python2.7 python
12815 do
12816   # Extract the first word of "$ac_prog", so it can be a program name with args.
12817 set dummy $ac_prog; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12819 $as_echo_n "checking for $ac_word... " >&6; }
12820 if ${ac_cv_path_PYTHON+:} false; then :
12821   $as_echo_n "(cached) " >&6
12822 else
12823   case $PYTHON in
12824   [\\/]* | ?:[\\/]*)
12825   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12826   ;;
12827   *)
12828   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12829 for as_dir in $PATH
12830 do
12831   IFS=$as_save_IFS
12832   test -z "$as_dir" && as_dir=.
12833     for ac_exec_ext in '' $ac_executable_extensions; do
12834   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12835     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12836     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12837     break 2
12838   fi
12839 done
12840   done
12841 IFS=$as_save_IFS
12842
12843   ;;
12844 esac
12845 fi
12846 PYTHON=$ac_cv_path_PYTHON
12847 if test -n "$PYTHON"; then
12848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
12849 $as_echo "$PYTHON" >&6; }
12850 else
12851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12853 fi
12854
12855
12856   test -n "$PYTHON" && break
12857 done
12858 test -n "$PYTHON" || PYTHON=":"
12859
12860     fi
12861     am_display_PYTHON=python
12862
12863
12864   if test "$PYTHON" = :; then
12865       as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
12866   else
12867
12868
12869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
12870 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
12871 if ${am_cv_python_version+:} false; then :
12872   $as_echo_n "(cached) " >&6
12873 else
12874   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
12875 fi
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
12877 $as_echo "$am_cv_python_version" >&6; }
12878   PYTHON_VERSION=$am_cv_python_version
12879
12880
12881
12882   PYTHON_PREFIX='${prefix}'
12883
12884   PYTHON_EXEC_PREFIX='${exec_prefix}'
12885
12886
12887
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
12889 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
12890 if ${am_cv_python_platform+:} false; then :
12891   $as_echo_n "(cached) " >&6
12892 else
12893   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
12894 fi
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
12896 $as_echo "$am_cv_python_platform" >&6; }
12897   PYTHON_PLATFORM=$am_cv_python_platform
12898
12899
12900
12901
12902             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
12903 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
12904 if ${am_cv_python_pythondir+:} false; then :
12905   $as_echo_n "(cached) " >&6
12906 else
12907   if test "x$prefix" = xNONE
12908      then
12909        am_py_prefix=$ac_default_prefix
12910      else
12911        am_py_prefix=$prefix
12912      fi
12913      am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null`
12914      case $am_cv_python_pythondir in
12915      $am_py_prefix*)
12916        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
12917        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
12918        ;;
12919      *)
12920        case $am_py_prefix in
12921          /usr|/System*) ;;
12922          *)
12923           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
12924           ;;
12925        esac
12926        ;;
12927      esac
12928
12929 fi
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
12931 $as_echo "$am_cv_python_pythondir" >&6; }
12932   pythondir=$am_cv_python_pythondir
12933
12934
12935
12936   pkgpythondir=\${pythondir}/$PACKAGE
12937
12938
12939         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
12940 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
12941 if ${am_cv_python_pyexecdir+:} false; then :
12942   $as_echo_n "(cached) " >&6
12943 else
12944   if test "x$exec_prefix" = xNONE
12945      then
12946        am_py_exec_prefix=$am_py_prefix
12947      else
12948        am_py_exec_prefix=$exec_prefix
12949      fi
12950      am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null`
12951      case $am_cv_python_pyexecdir in
12952      $am_py_exec_prefix*)
12953        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
12954        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
12955        ;;
12956      *)
12957        case $am_py_exec_prefix in
12958          /usr|/System*) ;;
12959          *)
12960            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
12961            ;;
12962        esac
12963        ;;
12964      esac
12965
12966 fi
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
12968 $as_echo "$am_cv_python_pyexecdir" >&6; }
12969   pyexecdir=$am_cv_python_pyexecdir
12970
12971
12972
12973   pkgpyexecdir=\${pyexecdir}/$PACKAGE
12974
12975
12976
12977   fi
12978
12979
12980
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
12982 $as_echo_n "checking for headers required to compile python extensions... " >&6; }
12983 if test "x$PYTHON_INCLUDES" = x; then
12984   PYTHON_CONFIG=`which $PYTHON`-config
12985   if test -x "$PYTHON_CONFIG"; then
12986     PYTHON_INCLUDES=`$PYTHON_CONFIG --includes 2>/dev/null`
12987   else
12988     PYTHON_INCLUDES=`$PYTHON -c "import distutils.sysconfig, sys; sys.stdout.write(distutils.sysconfig.get_python_inc(True))"`
12989     PYTHON_INCLUDES="-I$PYTHON_INCLUDES"
12990   fi
12991 fi
12992
12993 save_CPPFLAGS="$CPPFLAGS"
12994 CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
12995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12996 /* end confdefs.h.  */
12997 #include <Python.h>
12998 _ACEOF
12999 if ac_fn_c_try_cpp "$LINENO"; then :
13000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13001 $as_echo "found" >&6; }
13002
13003 else
13004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13005 $as_echo "not found" >&6; }
13006 as_fn_error $? "Python headers not found" "$LINENO" 5
13007 fi
13008 rm -f conftest.err conftest.i conftest.$ac_ext
13009 CPPFLAGS="$save_CPPFLAGS"
13010
13011 if test "x$link_python_libs" = "xyes"; then
13012
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libraries required to embed python" >&5
13014 $as_echo_n "checking for libraries required to embed python... " >&6; }
13015 py_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"`
13016 if test "x$PYTHON_LIBS" = x; then
13017   PYTHON_CONFIG=`which $PYTHON`-config
13018   if test -x "$PYTHON_CONFIG"; then
13019     PYTHON_LIBS=`$PYTHON_CONFIG --ldflags 2>/dev/null`
13020   else
13021     PYTHON_LIBS="-L${py_prefix}/lib -lpython${PYTHON_VERSION}"
13022   fi
13023 fi
13024 if test "x$PYTHON_LIB_LOC" = x; then
13025         PYTHON_LIB_LOC="${py_prefix}/lib"
13026 fi
13027
13028
13029 save_LIBS="$LIBS"
13030 LIBS="$LIBS $PYTHON_LIBS"
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h.  */
13033
13034 /* Override any GCC internal prototype to avoid an error.
13035    Use char because int might match the return type of a GCC
13036    builtin and then its argument prototype would still apply.  */
13037 #ifdef __cplusplus
13038 extern "C"
13039 #endif
13040 char Py_Initialize ();
13041 int
13042 main ()
13043 {
13044 return Py_Initialize ();
13045   ;
13046   return 0;
13047 }
13048 _ACEOF
13049 if ac_fn_c_try_link "$LINENO"; then :
13050            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13051 $as_echo "yes" >&6; };
13052 else
13053            LIBS="$save_LIBS"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13054 $as_echo "no" >&6; }; as_fn_error $? "Python libs not found. Windows and Darwin require Python modules to be explicitly linked to libpython." "$LINENO" 5
13055 fi
13056 rm -f core conftest.err conftest.$ac_objext \
13057     conftest$ac_exeext conftest.$ac_ext
13058
13059
13060 fi
13061
13062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PySignal_SetWakeupFd in Python.h" >&5
13063 $as_echo_n "checking for PySignal_SetWakeupFd in Python.h... " >&6; }
13064 old_CPPFLAGS=$CPPFLAGS
13065 CPPFLAGS="-Wall -Werror $PYTHON_INCLUDES"
13066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13067 /* end confdefs.h.  */
13068 #include <Python.h>
13069 int
13070 main ()
13071 {
13072 PySignal_SetWakeupFd(0);
13073   ;
13074   return 0;
13075 }
13076 _ACEOF
13077 if ac_fn_c_try_compile "$LINENO"; then :
13078   setwakeupfd_ok=yes
13079 else
13080   setwakeupfd_ok=no
13081 fi
13082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $setwakeupfd_ok" >&5
13084 $as_echo "$setwakeupfd_ok" >&6; }
13085 if test "x$setwakeupfd_ok" != xno; then
13086
13087 $as_echo "#define HAVE_PYSIGNAL_SETWAKEUPFD 1" >>confdefs.h
13088
13089 fi
13090 CPPFLAGS=$old_CPPFLAGS
13091
13092 PLATFORM=`$PYTHON -c "import sys; from distutils import util; sys.stdout.write(util.get_platform())"`
13093
13094
13095 # Check whether --enable-thread was given.
13096 if test "${enable_thread+set}" = set; then :
13097   enableval=$enable_thread;
13098 else
13099   enable_thread=yes
13100 fi
13101
13102
13103
13104 py_mod_var=`echo thread'_' | sed 'y%./+-%__p_%'`
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module thread" >&5
13106 $as_echo_n "checking for python module thread... " >&6; }
13107 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13108   $as_echo_n "(cached) " >&6
13109 else
13110
13111 prog="
13112 import sys
13113 try:
13114         import thread
13115 except ImportError:
13116         sys.exit(1)
13117 except:
13118         sys.exit(0)
13119 sys.exit(0)"
13120 if $PYTHON -c "$prog" 1>&5 2>&5
13121   then
13122     eval "py_cv_mod_$py_mod_var=yes"
13123   else
13124     eval "py_cv_mod_$py_mod_var=no"
13125   fi
13126
13127 fi
13128
13129 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13130 if test "x$py_val" != xno; then
13131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13132 $as_echo "yes" >&6; }
13133   else
13134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13135 $as_echo "no" >&6; }
13136   enable_thread=check_for_py3_module
13137 fi
13138
13139 if test "x$enable_thread" = xcheck_for_py3_module; then
13140
13141 py_mod_var=`echo _thread'_' | sed 'y%./+-%__p_%'`
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python module _thread" >&5
13143 $as_echo_n "checking for python module _thread... " >&6; }
13144 if eval \${py_cv_mod_$py_mod_var+:} false; then :
13145   $as_echo_n "(cached) " >&6
13146 else
13147
13148 prog="
13149 import sys
13150 try:
13151         import _thread
13152 except ImportError:
13153         sys.exit(1)
13154 except:
13155         sys.exit(0)
13156 sys.exit(0)"
13157 if $PYTHON -c "$prog" 1>&5 2>&5
13158   then
13159     eval "py_cv_mod_$py_mod_var=yes"
13160   else
13161     eval "py_cv_mod_$py_mod_var=no"
13162   fi
13163
13164 fi
13165
13166 py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
13167 if test "x$py_val" != xno; then
13168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13169 $as_echo "yes" >&6; }
13170   enable_thread=yes
13171 else
13172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13173 $as_echo "no" >&6; }
13174   enable_thread=no
13175 fi
13176
13177 fi
13178
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable threading in pygobject" >&5
13180 $as_echo_n "checking whether to enable threading in pygobject... " >&6; }
13181 if test "x$enable_thread" != xno; then
13182   extra_mods=gthread
13183   THREADING_CFLAGS=
13184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13185 $as_echo "yes" >&6; }
13186 else
13187   extra_mods=
13188   THREADING_CFLAGS="-DDISABLE_THREADING"
13189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13190 $as_echo "no" >&6; }
13191 fi
13192
13193 CPPFLAGS="${CPPFLAGS} $THREADING_CFLAGS"
13194
13195 export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
13196
13197 # Check whether --enable-glibtest was given.
13198 if test "${enable_glibtest+set}" = set; then :
13199   enableval=$enable_glibtest;
13200 else
13201   enable_glibtest=yes
13202 fi
13203
13204
13205   pkg_config_args=glib-2.0
13206   for module in . gobject $extra_mods
13207   do
13208       case "$module" in
13209          gmodule)
13210              pkg_config_args="$pkg_config_args gmodule-2.0"
13211          ;;
13212          gmodule-no-export)
13213              pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
13214          ;;
13215          gobject)
13216              pkg_config_args="$pkg_config_args gobject-2.0"
13217          ;;
13218          gthread)
13219              pkg_config_args="$pkg_config_args gthread-2.0"
13220          ;;
13221          gio*)
13222              pkg_config_args="$pkg_config_args $module-2.0"
13223          ;;
13224       esac
13225   done
13226
13227
13228
13229
13230
13231
13232
13233
13234 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13235         if test -n "$ac_tool_prefix"; then
13236   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13237 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13239 $as_echo_n "checking for $ac_word... " >&6; }
13240 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13241   $as_echo_n "(cached) " >&6
13242 else
13243   case $PKG_CONFIG in
13244   [\\/]* | ?:[\\/]*)
13245   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13246   ;;
13247   *)
13248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13250 do
13251   IFS=$as_save_IFS
13252   test -z "$as_dir" && as_dir=.
13253     for ac_exec_ext in '' $ac_executable_extensions; do
13254   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13255     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13257     break 2
13258   fi
13259 done
13260   done
13261 IFS=$as_save_IFS
13262
13263   ;;
13264 esac
13265 fi
13266 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13267 if test -n "$PKG_CONFIG"; then
13268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13269 $as_echo "$PKG_CONFIG" >&6; }
13270 else
13271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13272 $as_echo "no" >&6; }
13273 fi
13274
13275
13276 fi
13277 if test -z "$ac_cv_path_PKG_CONFIG"; then
13278   ac_pt_PKG_CONFIG=$PKG_CONFIG
13279   # Extract the first word of "pkg-config", so it can be a program name with args.
13280 set dummy pkg-config; ac_word=$2
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13282 $as_echo_n "checking for $ac_word... " >&6; }
13283 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13284   $as_echo_n "(cached) " >&6
13285 else
13286   case $ac_pt_PKG_CONFIG in
13287   [\\/]* | ?:[\\/]*)
13288   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13289   ;;
13290   *)
13291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13292 for as_dir in $PATH
13293 do
13294   IFS=$as_save_IFS
13295   test -z "$as_dir" && as_dir=.
13296     for ac_exec_ext in '' $ac_executable_extensions; do
13297   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13298     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13300     break 2
13301   fi
13302 done
13303   done
13304 IFS=$as_save_IFS
13305
13306   ;;
13307 esac
13308 fi
13309 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13310 if test -n "$ac_pt_PKG_CONFIG"; then
13311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13312 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13313 else
13314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13316 fi
13317
13318   if test "x$ac_pt_PKG_CONFIG" = x; then
13319     PKG_CONFIG=""
13320   else
13321     case $cross_compiling:$ac_tool_warned in
13322 yes:)
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13325 ac_tool_warned=yes ;;
13326 esac
13327     PKG_CONFIG=$ac_pt_PKG_CONFIG
13328   fi
13329 else
13330   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13331 fi
13332
13333 fi
13334 if test -n "$PKG_CONFIG"; then
13335         _pkg_min_version=0.16
13336         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13337 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13338         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13339                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13340 $as_echo "yes" >&6; }
13341         else
13342                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13344                 PKG_CONFIG=""
13345         fi
13346 fi
13347
13348   no_glib=""
13349
13350   if test "x$PKG_CONFIG" = x ; then
13351     no_glib=yes
13352     PKG_CONFIG=no
13353   fi
13354
13355   min_glib_version=2.38.0
13356   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
13357 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
13358
13359   if test x$PKG_CONFIG != xno ; then
13360     ## don't try to run the test against uninstalled libtool libs
13361     if $PKG_CONFIG --uninstalled $pkg_config_args; then
13362           echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
13363           enable_glibtest=no
13364     fi
13365
13366     if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
13367           :
13368     else
13369           no_glib=yes
13370     fi
13371   fi
13372
13373   if test x"$no_glib" = x ; then
13374     GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
13375     GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
13376     GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
13377     GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
13378
13379     GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
13380     GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
13381     glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
13382            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
13383     glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
13384            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
13385     glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
13386            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
13387     if test "x$enable_glibtest" = "xyes" ; then
13388       ac_save_CFLAGS="$CFLAGS"
13389       ac_save_LIBS="$LIBS"
13390       CFLAGS="$CFLAGS $GLIB_CFLAGS"
13391       LIBS="$GLIB_LIBS $LIBS"
13392       rm -f conf.glibtest
13393       if test "$cross_compiling" = yes; then :
13394   echo $ac_n "cross compiling; assumed OK... $ac_c"
13395 else
13396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13397 /* end confdefs.h.  */
13398
13399 #include <glib.h>
13400 #include <stdio.h>
13401 #include <stdlib.h>
13402
13403 int
13404 main ()
13405 {
13406   unsigned int major, minor, micro;
13407
13408   fclose (fopen ("conf.glibtest", "w"));
13409
13410   if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
13411      printf("%s, bad version string\n", "$min_glib_version");
13412      exit(1);
13413    }
13414
13415   if ((glib_major_version != $glib_config_major_version) ||
13416       (glib_minor_version != $glib_config_minor_version) ||
13417       (glib_micro_version != $glib_config_micro_version))
13418     {
13419       printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
13420              $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
13421              glib_major_version, glib_minor_version, glib_micro_version);
13422       printf ("*** was found! If pkg-config was correct, then it is best\n");
13423       printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
13424       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
13425       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
13426       printf("*** required on your system.\n");
13427       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
13428       printf("*** to point to the correct configuration files\n");
13429     }
13430   else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
13431            (glib_minor_version != GLIB_MINOR_VERSION) ||
13432            (glib_micro_version != GLIB_MICRO_VERSION))
13433     {
13434       printf("*** GLIB header files (version %d.%d.%d) do not match\n",
13435              GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
13436       printf("*** library (version %d.%d.%d)\n",
13437              glib_major_version, glib_minor_version, glib_micro_version);
13438     }
13439   else
13440     {
13441       if ((glib_major_version > major) ||
13442         ((glib_major_version == major) && (glib_minor_version > minor)) ||
13443         ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
13444       {
13445         return 0;
13446        }
13447      else
13448       {
13449         printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
13450                glib_major_version, glib_minor_version, glib_micro_version);
13451         printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
13452                major, minor, micro);
13453         printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
13454         printf("***\n");
13455         printf("*** If you have already installed a sufficiently new version, this error\n");
13456         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
13457         printf("*** being found. The easiest way to fix this is to remove the old version\n");
13458         printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
13459         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
13460         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
13461         printf("*** so that the correct libraries are found at run-time))\n");
13462       }
13463     }
13464   return 1;
13465 }
13466
13467 _ACEOF
13468 if ac_fn_c_try_run "$LINENO"; then :
13469
13470 else
13471   no_glib=yes
13472 fi
13473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13474   conftest.$ac_objext conftest.beam conftest.$ac_ext
13475 fi
13476
13477        CFLAGS="$ac_save_CFLAGS"
13478        LIBS="$ac_save_LIBS"
13479      fi
13480   fi
13481   if test "x$no_glib" = x ; then
13482      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
13483 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
13484      :
13485   else
13486      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13487 $as_echo "no" >&6; }
13488      if test "$PKG_CONFIG" = "no" ; then
13489        echo "*** A new enough version of pkg-config was not found."
13490        echo "*** See http://www.freedesktop.org/software/pkgconfig/"
13491      else
13492        if test -f conf.glibtest ; then
13493         :
13494        else
13495           echo "*** Could not run GLIB test program, checking why..."
13496           ac_save_CFLAGS="$CFLAGS"
13497           ac_save_LIBS="$LIBS"
13498           CFLAGS="$CFLAGS $GLIB_CFLAGS"
13499           LIBS="$LIBS $GLIB_LIBS"
13500           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13501 /* end confdefs.h.  */
13502
13503 #include <glib.h>
13504 #include <stdio.h>
13505
13506 int
13507 main ()
13508 {
13509  return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
13510   ;
13511   return 0;
13512 }
13513 _ACEOF
13514 if ac_fn_c_try_link "$LINENO"; then :
13515    echo "*** The test program compiled, but did not run. This usually means"
13516           echo "*** that the run-time linker is not finding GLIB or finding the wrong"
13517           echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
13518           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
13519           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
13520           echo "*** is required on your system"
13521           echo "***"
13522           echo "*** If you have an old version installed, it is best to remove it, although"
13523           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
13524 else
13525    echo "*** The test program failed to compile or link. See the file config.log for the"
13526           echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
13527 fi
13528 rm -f core conftest.err conftest.$ac_objext \
13529     conftest$ac_exeext conftest.$ac_ext
13530           CFLAGS="$ac_save_CFLAGS"
13531           LIBS="$ac_save_LIBS"
13532        fi
13533      fi
13534      GLIB_CFLAGS=""
13535      GLIB_LIBS=""
13536      GLIB_GENMARSHAL=""
13537      GOBJECT_QUERY=""
13538      GLIB_MKENUMS=""
13539      GLIB_COMPILE_RESOURCES=""
13540      as_fn_error $? "maybe you want the pygobject-2-4 branch?" "$LINENO" 5
13541   fi
13542
13543
13544
13545
13546
13547
13548   rm -f conf.glibtest
13549
13550 if test -n "$export_dynamic"; then
13551   GLIB_LIBS=`echo $GLIB_LIBS | sed -e "s/$export_dynamic//"`
13552 fi
13553 PYTHON_BASENAME=`basename $PYTHON`
13554
13555
13556
13557   EXP_VAR=DATADIR
13558   FROM_VAR=$datadir
13559
13560     prefix_save=$prefix
13561   exec_prefix_save=$exec_prefix
13562
13563     if test "x$prefix" = "xNONE"; then
13564     prefix=$ac_default_prefix
13565   fi
13566     if test "x$exec_prefix" = "xNONE"; then
13567     exec_prefix=$prefix
13568   fi
13569
13570   full_var="$FROM_VAR"
13571     while true; do
13572     new_full_var="`eval echo $full_var`"
13573     if test "x$new_full_var"="x$full_var"; then break; fi
13574     full_var=$new_full_var
13575   done
13576
13577     full_var=$new_full_var
13578   DATADIR="$full_var"
13579
13580
13581     prefix=$prefix_save
13582   exec_prefix=$exec_prefix_save
13583
13584
13585
13586 pkg_failed=no
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFI" >&5
13588 $as_echo_n "checking for FFI... " >&6; }
13589
13590 if test -n "$FFI_CFLAGS"; then
13591     pkg_cv_FFI_CFLAGS="$FFI_CFLAGS"
13592  elif test -n "$PKG_CONFIG"; then
13593     if test -n "$PKG_CONFIG" && \
13594     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13595   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13596   ac_status=$?
13597   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13598   test $ac_status = 0; }; then
13599   pkg_cv_FFI_CFLAGS=`$PKG_CONFIG --cflags "libffi >= 3.0" 2>/dev/null`
13600                       test "x$?" != "x0" && pkg_failed=yes
13601 else
13602   pkg_failed=yes
13603 fi
13604  else
13605     pkg_failed=untried
13606 fi
13607 if test -n "$FFI_LIBS"; then
13608     pkg_cv_FFI_LIBS="$FFI_LIBS"
13609  elif test -n "$PKG_CONFIG"; then
13610     if test -n "$PKG_CONFIG" && \
13611     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi >= 3.0\""; } >&5
13612   ($PKG_CONFIG --exists --print-errors "libffi >= 3.0") 2>&5
13613   ac_status=$?
13614   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13615   test $ac_status = 0; }; then
13616   pkg_cv_FFI_LIBS=`$PKG_CONFIG --libs "libffi >= 3.0" 2>/dev/null`
13617                       test "x$?" != "x0" && pkg_failed=yes
13618 else
13619   pkg_failed=yes
13620 fi
13621  else
13622     pkg_failed=untried
13623 fi
13624
13625
13626
13627 if test $pkg_failed = yes; then
13628         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13630
13631 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13632         _pkg_short_errors_supported=yes
13633 else
13634         _pkg_short_errors_supported=no
13635 fi
13636         if test $_pkg_short_errors_supported = yes; then
13637                 FFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13638         else
13639                 FFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi >= 3.0" 2>&1`
13640         fi
13641         # Put the nasty error message in config.log where it belongs
13642         echo "$FFI_PKG_ERRORS" >&5
13643
13644         as_fn_error $? "Package requirements (libffi >= 3.0) were not met:
13645
13646 $FFI_PKG_ERRORS
13647
13648 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13649 installed software in a non-standard prefix.
13650
13651 Alternatively, you may set the environment variables FFI_CFLAGS
13652 and FFI_LIBS to avoid the need to call pkg-config.
13653 See the pkg-config man page for more details." "$LINENO" 5
13654 elif test $pkg_failed = untried; then
13655         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13656 $as_echo "no" >&6; }
13657         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13659 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13660 is in your PATH or set the PKG_CONFIG environment variable to the full
13661 path to pkg-config.
13662
13663 Alternatively, you may set the environment variables FFI_CFLAGS
13664 and FFI_LIBS to avoid the need to call pkg-config.
13665 See the pkg-config man page for more details.
13666
13667 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13668 See \`config.log' for more details" "$LINENO" 5; }
13669 else
13670         FFI_CFLAGS=$pkg_cv_FFI_CFLAGS
13671         FFI_LIBS=$pkg_cv_FFI_LIBS
13672         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13673 $as_echo "yes" >&6; }
13674
13675 fi
13676 LIBFFI_PC=libffi
13677
13678
13679
13680
13681
13682
13683 pkg_failed=no
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GIO" >&5
13685 $as_echo_n "checking for GIO... " >&6; }
13686
13687 if test -n "$GIO_CFLAGS"; then
13688     pkg_cv_GIO_CFLAGS="$GIO_CFLAGS"
13689  elif test -n "$PKG_CONFIG"; then
13690     if test -n "$PKG_CONFIG" && \
13691     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13692   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13693   ac_status=$?
13694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13695   test $ac_status = 0; }; then
13696   pkg_cv_GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 >= 2.38.0" 2>/dev/null`
13697                       test "x$?" != "x0" && pkg_failed=yes
13698 else
13699   pkg_failed=yes
13700 fi
13701  else
13702     pkg_failed=untried
13703 fi
13704 if test -n "$GIO_LIBS"; then
13705     pkg_cv_GIO_LIBS="$GIO_LIBS"
13706  elif test -n "$PKG_CONFIG"; then
13707     if test -n "$PKG_CONFIG" && \
13708     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-2.0 >= 2.38.0\""; } >&5
13709   ($PKG_CONFIG --exists --print-errors "gio-2.0 >= 2.38.0") 2>&5
13710   ac_status=$?
13711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13712   test $ac_status = 0; }; then
13713   pkg_cv_GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 >= 2.38.0" 2>/dev/null`
13714                       test "x$?" != "x0" && pkg_failed=yes
13715 else
13716   pkg_failed=yes
13717 fi
13718  else
13719     pkg_failed=untried
13720 fi
13721
13722
13723
13724 if test $pkg_failed = yes; then
13725         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13726 $as_echo "no" >&6; }
13727
13728 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13729         _pkg_short_errors_supported=yes
13730 else
13731         _pkg_short_errors_supported=no
13732 fi
13733         if test $_pkg_short_errors_supported = yes; then
13734                 GIO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13735         else
13736                 GIO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-2.0 >= 2.38.0" 2>&1`
13737         fi
13738         # Put the nasty error message in config.log where it belongs
13739         echo "$GIO_PKG_ERRORS" >&5
13740
13741         as_fn_error $? "Package requirements (gio-2.0 >= 2.38.0) were not met:
13742
13743 $GIO_PKG_ERRORS
13744
13745 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13746 installed software in a non-standard prefix.
13747
13748 Alternatively, you may set the environment variables GIO_CFLAGS
13749 and GIO_LIBS to avoid the need to call pkg-config.
13750 See the pkg-config man page for more details." "$LINENO" 5
13751 elif test $pkg_failed = untried; then
13752         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13753 $as_echo "no" >&6; }
13754         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13756 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13757 is in your PATH or set the PKG_CONFIG environment variable to the full
13758 path to pkg-config.
13759
13760 Alternatively, you may set the environment variables GIO_CFLAGS
13761 and GIO_LIBS to avoid the need to call pkg-config.
13762 See the pkg-config man page for more details.
13763
13764 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13765 See \`config.log' for more details" "$LINENO" 5; }
13766 else
13767         GIO_CFLAGS=$pkg_cv_GIO_CFLAGS
13768         GIO_LIBS=$pkg_cv_GIO_LIBS
13769         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13770 $as_echo "yes" >&6; }
13771
13772 fi
13773
13774 # Check whether --enable-cairo was given.
13775 if test "${enable_cairo+set}" = set; then :
13776   enableval=$enable_cairo; enable_cairo=$enableval
13777 else
13778   enable_cairo=yes
13779 fi
13780
13781
13782
13783 pkg_failed=no
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GI" >&5
13785 $as_echo_n "checking for GI... " >&6; }
13786
13787 if test -n "$GI_CFLAGS"; then
13788     pkg_cv_GI_CFLAGS="$GI_CFLAGS"
13789  elif test -n "$PKG_CONFIG"; then
13790     if test -n "$PKG_CONFIG" && \
13791     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13792     gobject-introspection-1.0 >= 1.39.0
13793 \""; } >&5
13794   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13795     gobject-introspection-1.0 >= 1.39.0
13796 ") 2>&5
13797   ac_status=$?
13798   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13799   test $ac_status = 0; }; then
13800   pkg_cv_GI_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.38.0
13801     gobject-introspection-1.0 >= 1.39.0
13802 " 2>/dev/null`
13803                       test "x$?" != "x0" && pkg_failed=yes
13804 else
13805   pkg_failed=yes
13806 fi
13807  else
13808     pkg_failed=untried
13809 fi
13810 if test -n "$GI_LIBS"; then
13811     pkg_cv_GI_LIBS="$GI_LIBS"
13812  elif test -n "$PKG_CONFIG"; then
13813     if test -n "$PKG_CONFIG" && \
13814     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.38.0
13815     gobject-introspection-1.0 >= 1.39.0
13816 \""; } >&5
13817   ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.38.0
13818     gobject-introspection-1.0 >= 1.39.0
13819 ") 2>&5
13820   ac_status=$?
13821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13822   test $ac_status = 0; }; then
13823   pkg_cv_GI_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.38.0
13824     gobject-introspection-1.0 >= 1.39.0
13825 " 2>/dev/null`
13826                       test "x$?" != "x0" && pkg_failed=yes
13827 else
13828   pkg_failed=yes
13829 fi
13830  else
13831     pkg_failed=untried
13832 fi
13833
13834
13835
13836 if test $pkg_failed = yes; then
13837         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13838 $as_echo "no" >&6; }
13839
13840 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13841         _pkg_short_errors_supported=yes
13842 else
13843         _pkg_short_errors_supported=no
13844 fi
13845         if test $_pkg_short_errors_supported = yes; then
13846                 GI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13847     gobject-introspection-1.0 >= 1.39.0
13848 " 2>&1`
13849         else
13850                 GI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.38.0
13851     gobject-introspection-1.0 >= 1.39.0
13852 " 2>&1`
13853         fi
13854         # Put the nasty error message in config.log where it belongs
13855         echo "$GI_PKG_ERRORS" >&5
13856
13857         as_fn_error $? "Package requirements (glib-2.0 >= 2.38.0
13858     gobject-introspection-1.0 >= 1.39.0
13859 ) were not met:
13860
13861 $GI_PKG_ERRORS
13862
13863 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13864 installed software in a non-standard prefix.
13865
13866 Alternatively, you may set the environment variables GI_CFLAGS
13867 and GI_LIBS to avoid the need to call pkg-config.
13868 See the pkg-config man page for more details." "$LINENO" 5
13869 elif test $pkg_failed = untried; then
13870         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13871 $as_echo "no" >&6; }
13872         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13874 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13875 is in your PATH or set the PKG_CONFIG environment variable to the full
13876 path to pkg-config.
13877
13878 Alternatively, you may set the environment variables GI_CFLAGS
13879 and GI_LIBS to avoid the need to call pkg-config.
13880 See the pkg-config man page for more details.
13881
13882 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13883 See \`config.log' for more details" "$LINENO" 5; }
13884 else
13885         GI_CFLAGS=$pkg_cv_GI_CFLAGS
13886         GI_LIBS=$pkg_cv_GI_LIBS
13887         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13888 $as_echo "yes" >&6; }
13889
13890 fi
13891
13892 GI_DATADIR=$($PKG_CONFIG --variable=gidatadir gobject-introspection-1.0)
13893
13894
13895 if test "$enable_cairo" != no; then
13896
13897 pkg_failed=no
13898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO" >&5
13899 $as_echo_n "checking for CAIRO... " >&6; }
13900
13901 if test -n "$CAIRO_CFLAGS"; then
13902     pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
13903  elif test -n "$PKG_CONFIG"; then
13904     if test -n "$PKG_CONFIG" && \
13905     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13906   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13907   ac_status=$?
13908   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13909   test $ac_status = 0; }; then
13910   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo cairo-gobject" 2>/dev/null`
13911                       test "x$?" != "x0" && pkg_failed=yes
13912 else
13913   pkg_failed=yes
13914 fi
13915  else
13916     pkg_failed=untried
13917 fi
13918 if test -n "$CAIRO_LIBS"; then
13919     pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
13920  elif test -n "$PKG_CONFIG"; then
13921     if test -n "$PKG_CONFIG" && \
13922     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo cairo-gobject\""; } >&5
13923   ($PKG_CONFIG --exists --print-errors "cairo cairo-gobject") 2>&5
13924   ac_status=$?
13925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13926   test $ac_status = 0; }; then
13927   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo cairo-gobject" 2>/dev/null`
13928                       test "x$?" != "x0" && pkg_failed=yes
13929 else
13930   pkg_failed=yes
13931 fi
13932  else
13933     pkg_failed=untried
13934 fi
13935
13936
13937
13938 if test $pkg_failed = yes; then
13939         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13940 $as_echo "no" >&6; }
13941
13942 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13943         _pkg_short_errors_supported=yes
13944 else
13945         _pkg_short_errors_supported=no
13946 fi
13947         if test $_pkg_short_errors_supported = yes; then
13948                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13949         else
13950                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo cairo-gobject" 2>&1`
13951         fi
13952         # Put the nasty error message in config.log where it belongs
13953         echo "$CAIRO_PKG_ERRORS" >&5
13954
13955         as_fn_error $? "Package requirements (cairo cairo-gobject) were not met:
13956
13957 $CAIRO_PKG_ERRORS
13958
13959 Consider adjusting the PKG_CONFIG_PATH environment variable if you
13960 installed software in a non-standard prefix.
13961
13962 Alternatively, you may set the environment variables CAIRO_CFLAGS
13963 and CAIRO_LIBS to avoid the need to call pkg-config.
13964 See the pkg-config man page for more details." "$LINENO" 5
13965 elif test $pkg_failed = untried; then
13966         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13967 $as_echo "no" >&6; }
13968         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13970 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
13971 is in your PATH or set the PKG_CONFIG environment variable to the full
13972 path to pkg-config.
13973
13974 Alternatively, you may set the environment variables CAIRO_CFLAGS
13975 and CAIRO_LIBS to avoid the need to call pkg-config.
13976 See the pkg-config man page for more details.
13977
13978 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13979 See \`config.log' for more details" "$LINENO" 5; }
13980 else
13981         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
13982         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
13983         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13984 $as_echo "yes" >&6; }
13985
13986 fi
13987
13988     if test $build_py3k = true; then
13989
13990 pkg_failed=no
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
13992 $as_echo_n "checking for PYCAIRO... " >&6; }
13993
13994 if test -n "$PYCAIRO_CFLAGS"; then
13995     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
13996  elif test -n "$PKG_CONFIG"; then
13997     if test -n "$PKG_CONFIG" && \
13998     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
13999         \""; } >&5
14000   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14001         ") 2>&5
14002   ac_status=$?
14003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14004   test $ac_status = 0; }; then
14005   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "py3cairo >= 1.10.0
14006         " 2>/dev/null`
14007                       test "x$?" != "x0" && pkg_failed=yes
14008 else
14009   pkg_failed=yes
14010 fi
14011  else
14012     pkg_failed=untried
14013 fi
14014 if test -n "$PYCAIRO_LIBS"; then
14015     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14016  elif test -n "$PKG_CONFIG"; then
14017     if test -n "$PKG_CONFIG" && \
14018     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"py3cairo >= 1.10.0
14019         \""; } >&5
14020   ($PKG_CONFIG --exists --print-errors "py3cairo >= 1.10.0
14021         ") 2>&5
14022   ac_status=$?
14023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14024   test $ac_status = 0; }; then
14025   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "py3cairo >= 1.10.0
14026         " 2>/dev/null`
14027                       test "x$?" != "x0" && pkg_failed=yes
14028 else
14029   pkg_failed=yes
14030 fi
14031  else
14032     pkg_failed=untried
14033 fi
14034
14035
14036
14037 if test $pkg_failed = yes; then
14038         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14039 $as_echo "no" >&6; }
14040
14041 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14042         _pkg_short_errors_supported=yes
14043 else
14044         _pkg_short_errors_supported=no
14045 fi
14046         if test $_pkg_short_errors_supported = yes; then
14047                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "py3cairo >= 1.10.0
14048         " 2>&1`
14049         else
14050                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "py3cairo >= 1.10.0
14051         " 2>&1`
14052         fi
14053         # Put the nasty error message in config.log where it belongs
14054         echo "$PYCAIRO_PKG_ERRORS" >&5
14055
14056         as_fn_error $? "Package requirements (py3cairo >= 1.10.0
14057         ) were not met:
14058
14059 $PYCAIRO_PKG_ERRORS
14060
14061 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14062 installed software in a non-standard prefix.
14063
14064 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14065 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14066 See the pkg-config man page for more details." "$LINENO" 5
14067 elif test $pkg_failed = untried; then
14068         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14070         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14072 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14073 is in your PATH or set the PKG_CONFIG environment variable to the full
14074 path to pkg-config.
14075
14076 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14077 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14078 See the pkg-config man page for more details.
14079
14080 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14081 See \`config.log' for more details" "$LINENO" 5; }
14082 else
14083         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14084         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14085         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14086 $as_echo "yes" >&6; }
14087
14088 fi
14089     else
14090
14091 pkg_failed=no
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYCAIRO" >&5
14093 $as_echo_n "checking for PYCAIRO... " >&6; }
14094
14095 if test -n "$PYCAIRO_CFLAGS"; then
14096     pkg_cv_PYCAIRO_CFLAGS="$PYCAIRO_CFLAGS"
14097  elif test -n "$PKG_CONFIG"; then
14098     if test -n "$PKG_CONFIG" && \
14099     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14100         \""; } >&5
14101   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14102         ") 2>&5
14103   ac_status=$?
14104   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14105   test $ac_status = 0; }; then
14106   pkg_cv_PYCAIRO_CFLAGS=`$PKG_CONFIG --cflags "pycairo >= 1.2.0
14107         " 2>/dev/null`
14108                       test "x$?" != "x0" && pkg_failed=yes
14109 else
14110   pkg_failed=yes
14111 fi
14112  else
14113     pkg_failed=untried
14114 fi
14115 if test -n "$PYCAIRO_LIBS"; then
14116     pkg_cv_PYCAIRO_LIBS="$PYCAIRO_LIBS"
14117  elif test -n "$PKG_CONFIG"; then
14118     if test -n "$PKG_CONFIG" && \
14119     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pycairo >= 1.2.0
14120         \""; } >&5
14121   ($PKG_CONFIG --exists --print-errors "pycairo >= 1.2.0
14122         ") 2>&5
14123   ac_status=$?
14124   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14125   test $ac_status = 0; }; then
14126   pkg_cv_PYCAIRO_LIBS=`$PKG_CONFIG --libs "pycairo >= 1.2.0
14127         " 2>/dev/null`
14128                       test "x$?" != "x0" && pkg_failed=yes
14129 else
14130   pkg_failed=yes
14131 fi
14132  else
14133     pkg_failed=untried
14134 fi
14135
14136
14137
14138 if test $pkg_failed = yes; then
14139         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14140 $as_echo "no" >&6; }
14141
14142 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14143         _pkg_short_errors_supported=yes
14144 else
14145         _pkg_short_errors_supported=no
14146 fi
14147         if test $_pkg_short_errors_supported = yes; then
14148                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pycairo >= 1.2.0
14149         " 2>&1`
14150         else
14151                 PYCAIRO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pycairo >= 1.2.0
14152         " 2>&1`
14153         fi
14154         # Put the nasty error message in config.log where it belongs
14155         echo "$PYCAIRO_PKG_ERRORS" >&5
14156
14157         as_fn_error $? "Package requirements (pycairo >= 1.2.0
14158         ) were not met:
14159
14160 $PYCAIRO_PKG_ERRORS
14161
14162 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14163 installed software in a non-standard prefix.
14164
14165 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14166 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14167 See the pkg-config man page for more details." "$LINENO" 5
14168 elif test $pkg_failed = untried; then
14169         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14170 $as_echo "no" >&6; }
14171         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14173 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
14174 is in your PATH or set the PKG_CONFIG environment variable to the full
14175 path to pkg-config.
14176
14177 Alternatively, you may set the environment variables PYCAIRO_CFLAGS
14178 and PYCAIRO_LIBS to avoid the need to call pkg-config.
14179 See the pkg-config man page for more details.
14180
14181 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14182 See \`config.log' for more details" "$LINENO" 5; }
14183 else
14184         PYCAIRO_CFLAGS=$pkg_cv_PYCAIRO_CFLAGS
14185         PYCAIRO_LIBS=$pkg_cv_PYCAIRO_LIBS
14186         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14187 $as_echo "yes" >&6; }
14188
14189 fi
14190     fi
14191 fi
14192  if test "$enable_cairo" = "yes"; then
14193   ENABLE_CAIRO_TRUE=
14194   ENABLE_CAIRO_FALSE='#'
14195 else
14196   ENABLE_CAIRO_TRUE='#'
14197   ENABLE_CAIRO_FALSE=
14198 fi
14199
14200
14201
14202 # Check whether --with-common was given.
14203 if test "${with_common+set}" = set; then :
14204   withval=$with_common; with_common=$enableval
14205 else
14206   with_common=yes
14207 fi
14208
14209  if test "$with_common" = "yes"; then
14210   WITH_COMMON_TRUE=
14211   WITH_COMMON_FALSE='#'
14212 else
14213   WITH_COMMON_TRUE='#'
14214   WITH_COMMON_FALSE=
14215 fi
14216
14217
14218 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14219 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14220
14221
14222
14223
14224 # compiler warnings, errors, required cflags, and code coverage support
14225
14226
14227     # Check whether --enable-compile-warnings was given.
14228 if test "${enable_compile_warnings+set}" = set; then :
14229   enableval=$enable_compile_warnings;
14230 else
14231   enable_compile_warnings="maximum"
14232 fi
14233
14234
14235     if test "x$GCC" != xyes; then
14236         enable_compile_warnings=no
14237     fi
14238
14239     warning_flags=
14240     realsave_CFLAGS="$CFLAGS"
14241
14242             base_warn_flags=" \
14243         -Wall \
14244         -Wstrict-prototypes \
14245         -Wnested-externs \
14246     "
14247
14248                     base_error_flags=" \
14249         -Werror=missing-prototypes \
14250         -Werror=implicit-function-declaration \
14251         -Werror=pointer-arith \
14252         -Werror=init-self \
14253         -Werror=format-security \
14254         -Werror=format=2 \
14255         -Werror=missing-include-dirs \
14256         -Werror=return-type \
14257     "
14258
14259                 additional_flags=""
14260
14261     case "$enable_compile_warnings" in
14262     no)
14263         warning_flags="-w"
14264         ;;
14265     minimum)
14266         warning_flags="-Wall"
14267         ;;
14268     yes|maximum|error)
14269         warning_flags="$base_warn_flags $base_error_flags $additional_flags"
14270         ;;
14271     *)
14272         as_fn_error $? "Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" "$LINENO" 5
14273         ;;
14274     esac
14275
14276     if test "$enable_compile_warnings" = "error" ; then
14277         warning_flags="$warning_flags -Werror"
14278     fi
14279
14280         for option in $warning_flags; do
14281         save_CFLAGS="$CFLAGS"
14282         CFLAGS="$CFLAGS $option"
14283         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands $option" >&5
14284 $as_echo_n "checking whether gcc understands $option... " >&6; }
14285         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h.  */
14287
14288 int
14289 main ()
14290 {
14291
14292   ;
14293   return 0;
14294 }
14295 _ACEOF
14296 if ac_fn_c_try_compile "$LINENO"; then :
14297   has_option=yes
14298 else
14299   has_option=no
14300 fi
14301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302         CFLAGS="$save_CFLAGS"
14303         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
14304 $as_echo "$has_option" >&6; }
14305         if test $has_option = yes; then
14306             tested_warning_flags="$tested_warning_flags $option"
14307         fi
14308         unset has_option
14309         unset save_CFLAGS
14310     done
14311     unset option
14312     CFLAGS="$realsave_CFLAGS"
14313     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what warning flags to pass to the C compiler" >&5
14314 $as_echo_n "checking what warning flags to pass to the C compiler... " >&6; }
14315     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tested_warning_flags" >&5
14316 $as_echo "$tested_warning_flags" >&6; }
14317
14318     # Check whether --enable-iso-c was given.
14319 if test "${enable_iso_c+set}" = set; then :
14320   enableval=$enable_iso_c;
14321 else
14322   enable_iso_c=no
14323 fi
14324
14325
14326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking what language compliance flags to pass to the C compiler" >&5
14327 $as_echo_n "checking what language compliance flags to pass to the C compiler... " >&6; }
14328     complCFLAGS=
14329     if test "x$enable_iso_c" != "xno"; then
14330         if test "x$GCC" = "xyes"; then
14331         case " $CFLAGS " in
14332             *\ \        -ansi\ \        *) ;;
14333             *) complCFLAGS="$complCFLAGS -ansi" ;;
14334         esac
14335         case " $CFLAGS " in
14336             *\ \        -pedantic\ \    *) ;;
14337             *) complCFLAGS="$complCFLAGS -pedantic" ;;
14338         esac
14339         fi
14340     fi
14341     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $complCFLAGS" >&5
14342 $as_echo "$complCFLAGS" >&6; }
14343
14344     WARN_CFLAGS="$tested_warning_flags $complCFLAGS"
14345
14346
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gnome code coverage support" >&5
14348 $as_echo_n "checking for Gnome code coverage support... " >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14350 $as_echo "yes" >&6; }
14351
14352
14353                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
14354 $as_echo_n "checking whether to build with code coverage support... " >&6; }
14355         # Check whether --enable-code-coverage was given.
14356 if test "${enable_code_coverage+set}" = set; then :
14357   enableval=$enable_code_coverage;
14358 else
14359   enable_code_coverage=no
14360 fi
14361
14362          if test x$enable_code_coverage = xyes; then
14363   CODE_COVERAGE_ENABLED_TRUE=
14364   CODE_COVERAGE_ENABLED_FALSE='#'
14365 else
14366   CODE_COVERAGE_ENABLED_TRUE='#'
14367   CODE_COVERAGE_ENABLED_FALSE=
14368 fi
14369
14370         CODE_COVERAGE_ENABLED=$enable_code_coverage
14371
14372         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
14373 $as_echo "$enable_code_coverage" >&6; }
14374
14375         if  test "$enable_code_coverage" = "yes" ; then :
14376
14377                                 if  test "$GCC" = "no" ; then :
14378
14379                         as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
14380
14381 fi
14382
14383                 # List of supported lcov versions.
14384                 lcov_version_list="1.6 1.7 1.8 1.9 1.10 1.11"
14385
14386                 # Extract the first word of "lcov", so it can be a program name with args.
14387 set dummy lcov; ac_word=$2
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14389 $as_echo_n "checking for $ac_word... " >&6; }
14390 if ${ac_cv_prog_LCOV+:} false; then :
14391   $as_echo_n "(cached) " >&6
14392 else
14393   if test -n "$LCOV"; then
14394   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
14395 else
14396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14397 for as_dir in $PATH
14398 do
14399   IFS=$as_save_IFS
14400   test -z "$as_dir" && as_dir=.
14401     for ac_exec_ext in '' $ac_executable_extensions; do
14402   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14403     ac_cv_prog_LCOV="lcov"
14404     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14405     break 2
14406   fi
14407 done
14408   done
14409 IFS=$as_save_IFS
14410
14411 fi
14412 fi
14413 LCOV=$ac_cv_prog_LCOV
14414 if test -n "$LCOV"; then
14415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
14416 $as_echo "$LCOV" >&6; }
14417 else
14418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14419 $as_echo "no" >&6; }
14420 fi
14421
14422
14423                 # Extract the first word of "genhtml", so it can be a program name with args.
14424 set dummy genhtml; ac_word=$2
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14426 $as_echo_n "checking for $ac_word... " >&6; }
14427 if ${ac_cv_prog_GENHTML+:} false; then :
14428   $as_echo_n "(cached) " >&6
14429 else
14430   if test -n "$GENHTML"; then
14431   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
14432 else
14433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14434 for as_dir in $PATH
14435 do
14436   IFS=$as_save_IFS
14437   test -z "$as_dir" && as_dir=.
14438     for ac_exec_ext in '' $ac_executable_extensions; do
14439   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14440     ac_cv_prog_GENHTML="genhtml"
14441     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14442     break 2
14443   fi
14444 done
14445   done
14446 IFS=$as_save_IFS
14447
14448 fi
14449 fi
14450 GENHTML=$ac_cv_prog_GENHTML
14451 if test -n "$GENHTML"; then
14452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
14453 $as_echo "$GENHTML" >&6; }
14454 else
14455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14456 $as_echo "no" >&6; }
14457 fi
14458
14459
14460
14461                 if  test "$LCOV" ; then :
14462
14463                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lcov version" >&5
14464 $as_echo_n "checking for lcov version... " >&6; }
14465 if ${ax_cv_lcov_version+:} false; then :
14466   $as_echo_n "(cached) " >&6
14467 else
14468
14469                                 ax_cv_lcov_version=invalid
14470                                 lcov_version=`$LCOV -v 2>/dev/null | $SED -e 's/^.* //'`
14471                                 for lcov_check_version in $lcov_version_list; do
14472                                         if test "$lcov_version" = "$lcov_check_version"; then
14473                                                 ax_cv_lcov_version="$lcov_check_version (ok)"
14474                                         fi
14475                                 done
14476
14477 fi
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_lcov_version" >&5
14479 $as_echo "$ax_cv_lcov_version" >&6; }
14480
14481 else
14482
14483                         lcov_msg="To enable code coverage reporting you must have one of the following lcov versions installed: $lcov_version_list"
14484                         as_fn_error $? "$lcov_msg" "$LINENO" 5
14485
14486 fi
14487
14488                 case $ax_cv_lcov_version in
14489                         ""|invalid)
14490                                 lcov_msg="You must have one of the following versions of lcov: $lcov_version_list (found: $lcov_version)."
14491                                 as_fn_error $? "$lcov_msg" "$LINENO" 5
14492                                 LCOV="exit 0;"
14493                         ;;
14494                 esac
14495
14496                 if  test -z "$GENHTML" ; then :
14497
14498                         as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
14499
14500 fi
14501
14502                                 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
14503                 CODE_COVERAGE_LDFLAGS="-lgcov"
14504
14505
14506
14507
14508 fi
14509
14510 CODE_COVERAGE_RULES='
14511 # Code coverage
14512 #
14513 # Optional:
14514 #  - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
14515 #    (Default: $(top_builddir))
14516 #  - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
14517 #    by lcov for code coverage. (Default:
14518 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
14519 #  - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
14520 #    reports to be created. (Default:
14521 #    $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
14522 #  - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the lcov instance.
14523 #    (Default: empty)
14524 #  - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
14525 #    instance. (Default: empty)
14526 #  - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
14527 #
14528 # The generated report will be titled using the $(PACKAGE_NAME) and
14529 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
14530 # use the git-version-gen script, available online.
14531
14532 # Optional variables
14533 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
14534 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
14535 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
14536 CODE_COVERAGE_LCOV_OPTIONS ?=
14537 CODE_COVERAGE_GENHTML_OPTIONS ?=
14538 CODE_COVERAGE_IGNORE_PATTERN ?=
14539
14540 code_coverage_quiet = $(code_coverage_quiet_$(V))
14541 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
14542 code_coverage_quiet_0 = --quiet
14543
14544 # Use recursive makes in order to ignore errors during check
14545 check-code-coverage:
14546 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14547         -$(MAKE) $(AM_MAKEFLAGS) -k check
14548         $(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
14549 else
14550         @echo "Need to reconfigure with --enable-code-coverage"
14551 endif
14552
14553 # Capture code coverage data
14554 code-coverage-capture: code-coverage-capture-hook
14555 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14556         $(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)
14557         $(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)"
14558         -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
14559         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)
14560         @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
14561 else
14562         @echo "Need to reconfigure with --enable-code-coverage"
14563 endif
14564
14565 # Hook rule executed before code-coverage-capture, overridable by the user
14566 code-coverage-capture-hook:
14567
14568 ifeq ($(CODE_COVERAGE_ENABLED),yes)
14569 clean: code-coverage-clean
14570 code-coverage-clean:
14571         -$(LCOV) --directory $(top_builddir) -z
14572         -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14573         -find . -name "*.gcda" -o -name "*.gcov" -delete
14574 endif
14575
14576 GITIGNOREFILES ?=
14577 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
14578
14579 DISTCHECK_CONFIGURE_FLAGS ?=
14580 DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
14581
14582 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
14583 '
14584
14585
14586
14587
14588         GNOME_CODE_COVERAGE_RULES=$CODE_COVERAGE_RULES
14589
14590
14591
14592
14593
14594 if test "x$GCC" = "xyes"; then
14595
14596 case " $CFLAGS " in
14597 *[\     \ ]-Wall[\      \ ]*)
14598   ;;
14599 *)
14600   save_CFLAGS="$CFLAGS"
14601   CFLAGS="$CFLAGS -Wall"
14602   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Wall" >&5
14603 $as_echo_n "checking whether $CC understands -Wall... " >&6; }
14604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14605 /* end confdefs.h.  */
14606
14607 int
14608 main ()
14609 {
14610
14611   ;
14612   return 0;
14613 }
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"; then :
14616   jh_has_option=yes
14617 else
14618   jh_has_option=no
14619 fi
14620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14622 $as_echo "$jh_has_option" >&6; }
14623   if test $jh_has_option = no; then
14624     CFLAGS="$save_CFLAGS"
14625   fi
14626   ;;
14627 esac
14628
14629 case " $CFLAGS " in
14630 *[\     \ ]-Werror=unused-variable[\    \ ]*)
14631   ;;
14632 *)
14633   save_CFLAGS="$CFLAGS"
14634   CFLAGS="$CFLAGS -Werror=unused-variable"
14635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=unused-variable" >&5
14636 $as_echo_n "checking whether $CC understands -Werror=unused-variable... " >&6; }
14637   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h.  */
14639
14640 int
14641 main ()
14642 {
14643
14644   ;
14645   return 0;
14646 }
14647 _ACEOF
14648 if ac_fn_c_try_compile "$LINENO"; then :
14649   jh_has_option=yes
14650 else
14651   jh_has_option=no
14652 fi
14653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14655 $as_echo "$jh_has_option" >&6; }
14656   if test $jh_has_option = no; then
14657     CFLAGS="$save_CFLAGS"
14658   fi
14659   ;;
14660 esac
14661
14662 case " $CFLAGS " in
14663 *[\     \ ]-fno-strict-aliasing[\       \ ]*)
14664   ;;
14665 *)
14666   save_CFLAGS="$CFLAGS"
14667   CFLAGS="$CFLAGS -fno-strict-aliasing"
14668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -fno-strict-aliasing" >&5
14669 $as_echo_n "checking whether $CC understands -fno-strict-aliasing... " >&6; }
14670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h.  */
14672
14673 int
14674 main ()
14675 {
14676
14677   ;
14678   return 0;
14679 }
14680 _ACEOF
14681 if ac_fn_c_try_compile "$LINENO"; then :
14682   jh_has_option=yes
14683 else
14684   jh_has_option=no
14685 fi
14686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14688 $as_echo "$jh_has_option" >&6; }
14689   if test $jh_has_option = no; then
14690     CFLAGS="$save_CFLAGS"
14691   fi
14692   ;;
14693 esac
14694
14695 case " $CFLAGS " in
14696 *[\     \ ]-Werror=declaration-after-statement[\        \ ]*)
14697   ;;
14698 *)
14699   save_CFLAGS="$CFLAGS"
14700   CFLAGS="$CFLAGS -Werror=declaration-after-statement"
14701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -Werror=declaration-after-statement" >&5
14702 $as_echo_n "checking whether $CC understands -Werror=declaration-after-statement... " >&6; }
14703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14704 /* end confdefs.h.  */
14705
14706 int
14707 main ()
14708 {
14709
14710   ;
14711   return 0;
14712 }
14713 _ACEOF
14714 if ac_fn_c_try_compile "$LINENO"; then :
14715   jh_has_option=yes
14716 else
14717   jh_has_option=no
14718 fi
14719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14721 $as_echo "$jh_has_option" >&6; }
14722   if test $jh_has_option = no; then
14723     CFLAGS="$save_CFLAGS"
14724   fi
14725   ;;
14726 esac
14727
14728   case $host_os in
14729   solaris*)
14730     ;;
14731   *)
14732
14733 case " $CFLAGS " in
14734 *[\     \ ]-std=c90[\   \ ]*)
14735   ;;
14736 *)
14737   save_CFLAGS="$CFLAGS"
14738   CFLAGS="$CFLAGS -std=c90"
14739   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -std=c90" >&5
14740 $as_echo_n "checking whether $CC understands -std=c90... " >&6; }
14741   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14742 /* end confdefs.h.  */
14743
14744 int
14745 main ()
14746 {
14747
14748   ;
14749   return 0;
14750 }
14751 _ACEOF
14752 if ac_fn_c_try_compile "$LINENO"; then :
14753   jh_has_option=yes
14754 else
14755   jh_has_option=no
14756 fi
14757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jh_has_option" >&5
14759 $as_echo "$jh_has_option" >&6; }
14760   if test $jh_has_option = no; then
14761     CFLAGS="$save_CFLAGS"
14762   fi
14763   ;;
14764 esac
14765     ;;
14766   esac
14767
14768 fi
14769
14770 CFLAGS="$CFLAGS $WARN_CFLAGS $CODE_COVERAGE_CFLAGS"
14771 LDFLAGS="$LDFLAGS $CODE_COVERAGE_CFLAGS"
14772
14773 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"
14774
14775 cat >confcache <<\_ACEOF
14776 # This file is a shell script that caches the results of configure
14777 # tests run on this system so they can be shared between configure
14778 # scripts and configure runs, see configure's option --config-cache.
14779 # It is not useful on other systems.  If it contains results you don't
14780 # want to keep, you may remove or edit it.
14781 #
14782 # config.status only pays attention to the cache file if you give it
14783 # the --recheck option to rerun configure.
14784 #
14785 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14786 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14787 # following values.
14788
14789 _ACEOF
14790
14791 # The following way of writing the cache mishandles newlines in values,
14792 # but we know of no workaround that is simple, portable, and efficient.
14793 # So, we kill variables containing newlines.
14794 # Ultrix sh set writes to stderr and can't be redirected directly,
14795 # and sets the high bit in the cache file unless we assign to the vars.
14796 (
14797   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14798     eval ac_val=\$$ac_var
14799     case $ac_val in #(
14800     *${as_nl}*)
14801       case $ac_var in #(
14802       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14804       esac
14805       case $ac_var in #(
14806       _ | IFS | as_nl) ;; #(
14807       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14808       *) { eval $ac_var=; unset $ac_var;} ;;
14809       esac ;;
14810     esac
14811   done
14812
14813   (set) 2>&1 |
14814     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14815     *${as_nl}ac_space=\ *)
14816       # `set' does not quote correctly, so add quotes: double-quote
14817       # substitution turns \\\\ into \\, and sed turns \\ into \.
14818       sed -n \
14819         "s/'/'\\\\''/g;
14820           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14821       ;; #(
14822     *)
14823       # `set' quotes correctly as required by POSIX, so do not add quotes.
14824       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14825       ;;
14826     esac |
14827     sort
14828 ) |
14829   sed '
14830      /^ac_cv_env_/b end
14831      t clear
14832      :clear
14833      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14834      t end
14835      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14836      :end' >>confcache
14837 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14838   if test -w "$cache_file"; then
14839     if test "x$cache_file" != "x/dev/null"; then
14840       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14841 $as_echo "$as_me: updating cache $cache_file" >&6;}
14842       if test ! -f "$cache_file" || test -h "$cache_file"; then
14843         cat confcache >"$cache_file"
14844       else
14845         case $cache_file in #(
14846         */* | ?:*)
14847           mv -f confcache "$cache_file"$$ &&
14848           mv -f "$cache_file"$$ "$cache_file" ;; #(
14849         *)
14850           mv -f confcache "$cache_file" ;;
14851         esac
14852       fi
14853     fi
14854   else
14855     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14856 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14857   fi
14858 fi
14859 rm -f confcache
14860
14861 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14862 # Let make expand exec_prefix.
14863 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14864
14865 DEFS=-DHAVE_CONFIG_H
14866
14867 ac_libobjs=
14868 ac_ltlibobjs=
14869 U=
14870 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14871   # 1. Remove the extension, and $U if already installed.
14872   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14873   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14874   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14875   #    will be set to the directory where LIBOBJS objects are built.
14876   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14877   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14878 done
14879 LIBOBJS=$ac_libobjs
14880
14881 LTLIBOBJS=$ac_ltlibobjs
14882
14883
14884  if test -n "$EXEEXT"; then
14885   am__EXEEXT_TRUE=
14886   am__EXEEXT_FALSE='#'
14887 else
14888   am__EXEEXT_TRUE='#'
14889   am__EXEEXT_FALSE=
14890 fi
14891
14892 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14893   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
14894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14895 fi
14896 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14897   as_fn_error $? "conditional \"AMDEP\" was never defined.
14898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14899 fi
14900 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14901   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14903 fi
14904 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14905   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14907 fi
14908 if test -z "${ENABLE_CAIRO_TRUE}" && test -z "${ENABLE_CAIRO_FALSE}"; then
14909   as_fn_error $? "conditional \"ENABLE_CAIRO\" was never defined.
14910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14911 fi
14912 if test -z "${WITH_COMMON_TRUE}" && test -z "${WITH_COMMON_FALSE}"; then
14913   as_fn_error $? "conditional \"WITH_COMMON\" was never defined.
14914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14915 fi
14916 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
14917   as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
14918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14919 fi
14920
14921 : "${CONFIG_STATUS=./config.status}"
14922 ac_write_fail=0
14923 ac_clean_files_save=$ac_clean_files
14924 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14926 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14927 as_write_fail=0
14928 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14929 #! $SHELL
14930 # Generated by $as_me.
14931 # Run this file to recreate the current configuration.
14932 # Compiler output produced by configure, useful for debugging
14933 # configure, is in config.log if it exists.
14934
14935 debug=false
14936 ac_cs_recheck=false
14937 ac_cs_silent=false
14938
14939 SHELL=\${CONFIG_SHELL-$SHELL}
14940 export SHELL
14941 _ASEOF
14942 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14943 ## -------------------- ##
14944 ## M4sh Initialization. ##
14945 ## -------------------- ##
14946
14947 # Be more Bourne compatible
14948 DUALCASE=1; export DUALCASE # for MKS sh
14949 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14950   emulate sh
14951   NULLCMD=:
14952   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14953   # is contrary to our usage.  Disable this feature.
14954   alias -g '${1+"$@"}'='"$@"'
14955   setopt NO_GLOB_SUBST
14956 else
14957   case `(set -o) 2>/dev/null` in #(
14958   *posix*) :
14959     set -o posix ;; #(
14960   *) :
14961      ;;
14962 esac
14963 fi
14964
14965
14966 as_nl='
14967 '
14968 export as_nl
14969 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14970 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14971 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14972 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14973 # Prefer a ksh shell builtin over an external printf program on Solaris,
14974 # but without wasting forks for bash or zsh.
14975 if test -z "$BASH_VERSION$ZSH_VERSION" \
14976     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14977   as_echo='print -r --'
14978   as_echo_n='print -rn --'
14979 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14980   as_echo='printf %s\n'
14981   as_echo_n='printf %s'
14982 else
14983   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14984     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14985     as_echo_n='/usr/ucb/echo -n'
14986   else
14987     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14988     as_echo_n_body='eval
14989       arg=$1;
14990       case $arg in #(
14991       *"$as_nl"*)
14992         expr "X$arg" : "X\\(.*\\)$as_nl";
14993         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14994       esac;
14995       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14996     '
14997     export as_echo_n_body
14998     as_echo_n='sh -c $as_echo_n_body as_echo'
14999   fi
15000   export as_echo_body
15001   as_echo='sh -c $as_echo_body as_echo'
15002 fi
15003
15004 # The user is always right.
15005 if test "${PATH_SEPARATOR+set}" != set; then
15006   PATH_SEPARATOR=:
15007   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15008     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15009       PATH_SEPARATOR=';'
15010   }
15011 fi
15012
15013
15014 # IFS
15015 # We need space, tab and new line, in precisely that order.  Quoting is
15016 # there to prevent editors from complaining about space-tab.
15017 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15018 # splitting by setting IFS to empty value.)
15019 IFS=" ""        $as_nl"
15020
15021 # Find who we are.  Look in the path if we contain no directory separator.
15022 as_myself=
15023 case $0 in #((
15024   *[\\/]* ) as_myself=$0 ;;
15025   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $PATH
15027 do
15028   IFS=$as_save_IFS
15029   test -z "$as_dir" && as_dir=.
15030     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15031   done
15032 IFS=$as_save_IFS
15033
15034      ;;
15035 esac
15036 # We did not find ourselves, most probably we were run as `sh COMMAND'
15037 # in which case we are not to be found in the path.
15038 if test "x$as_myself" = x; then
15039   as_myself=$0
15040 fi
15041 if test ! -f "$as_myself"; then
15042   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15043   exit 1
15044 fi
15045
15046 # Unset variables that we do not need and which cause bugs (e.g. in
15047 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15048 # suppresses any "Segmentation fault" message there.  '((' could
15049 # trigger a bug in pdksh 5.2.14.
15050 for as_var in BASH_ENV ENV MAIL MAILPATH
15051 do eval test x\${$as_var+set} = xset \
15052   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15053 done
15054 PS1='$ '
15055 PS2='> '
15056 PS4='+ '
15057
15058 # NLS nuisances.
15059 LC_ALL=C
15060 export LC_ALL
15061 LANGUAGE=C
15062 export LANGUAGE
15063
15064 # CDPATH.
15065 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15066
15067
15068 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15069 # ----------------------------------------
15070 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15071 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15072 # script with STATUS, using 1 if that was 0.
15073 as_fn_error ()
15074 {
15075   as_status=$1; test $as_status -eq 0 && as_status=1
15076   if test "$4"; then
15077     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15078     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15079   fi
15080   $as_echo "$as_me: error: $2" >&2
15081   as_fn_exit $as_status
15082 } # as_fn_error
15083
15084
15085 # as_fn_set_status STATUS
15086 # -----------------------
15087 # Set $? to STATUS, without forking.
15088 as_fn_set_status ()
15089 {
15090   return $1
15091 } # as_fn_set_status
15092
15093 # as_fn_exit STATUS
15094 # -----------------
15095 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15096 as_fn_exit ()
15097 {
15098   set +e
15099   as_fn_set_status $1
15100   exit $1
15101 } # as_fn_exit
15102
15103 # as_fn_unset VAR
15104 # ---------------
15105 # Portably unset VAR.
15106 as_fn_unset ()
15107 {
15108   { eval $1=; unset $1;}
15109 }
15110 as_unset=as_fn_unset
15111 # as_fn_append VAR VALUE
15112 # ----------------------
15113 # Append the text in VALUE to the end of the definition contained in VAR. Take
15114 # advantage of any shell optimizations that allow amortized linear growth over
15115 # repeated appends, instead of the typical quadratic growth present in naive
15116 # implementations.
15117 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15118   eval 'as_fn_append ()
15119   {
15120     eval $1+=\$2
15121   }'
15122 else
15123   as_fn_append ()
15124   {
15125     eval $1=\$$1\$2
15126   }
15127 fi # as_fn_append
15128
15129 # as_fn_arith ARG...
15130 # ------------------
15131 # Perform arithmetic evaluation on the ARGs, and store the result in the
15132 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15133 # must be portable across $(()) and expr.
15134 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15135   eval 'as_fn_arith ()
15136   {
15137     as_val=$(( $* ))
15138   }'
15139 else
15140   as_fn_arith ()
15141   {
15142     as_val=`expr "$@" || test $? -eq 1`
15143   }
15144 fi # as_fn_arith
15145
15146
15147 if expr a : '\(a\)' >/dev/null 2>&1 &&
15148    test "X`expr 00001 : '.*\(...\)'`" = X001; then
15149   as_expr=expr
15150 else
15151   as_expr=false
15152 fi
15153
15154 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15155   as_basename=basename
15156 else
15157   as_basename=false
15158 fi
15159
15160 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15161   as_dirname=dirname
15162 else
15163   as_dirname=false
15164 fi
15165
15166 as_me=`$as_basename -- "$0" ||
15167 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15168          X"$0" : 'X\(//\)$' \| \
15169          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15170 $as_echo X/"$0" |
15171     sed '/^.*\/\([^/][^/]*\)\/*$/{
15172             s//\1/
15173             q
15174           }
15175           /^X\/\(\/\/\)$/{
15176             s//\1/
15177             q
15178           }
15179           /^X\/\(\/\).*/{
15180             s//\1/
15181             q
15182           }
15183           s/.*/./; q'`
15184
15185 # Avoid depending upon Character Ranges.
15186 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15187 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15188 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15189 as_cr_digits='0123456789'
15190 as_cr_alnum=$as_cr_Letters$as_cr_digits
15191
15192 ECHO_C= ECHO_N= ECHO_T=
15193 case `echo -n x` in #(((((
15194 -n*)
15195   case `echo 'xy\c'` in
15196   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
15197   xy)  ECHO_C='\c';;
15198   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15199        ECHO_T=' ';;
15200   esac;;
15201 *)
15202   ECHO_N='-n';;
15203 esac
15204
15205 rm -f conf$$ conf$$.exe conf$$.file
15206 if test -d conf$$.dir; then
15207   rm -f conf$$.dir/conf$$.file
15208 else
15209   rm -f conf$$.dir
15210   mkdir conf$$.dir 2>/dev/null
15211 fi
15212 if (echo >conf$$.file) 2>/dev/null; then
15213   if ln -s conf$$.file conf$$ 2>/dev/null; then
15214     as_ln_s='ln -s'
15215     # ... but there are two gotchas:
15216     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15217     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15218     # In both cases, we have to default to `cp -pR'.
15219     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15220       as_ln_s='cp -pR'
15221   elif ln conf$$.file conf$$ 2>/dev/null; then
15222     as_ln_s=ln
15223   else
15224     as_ln_s='cp -pR'
15225   fi
15226 else
15227   as_ln_s='cp -pR'
15228 fi
15229 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15230 rmdir conf$$.dir 2>/dev/null
15231
15232
15233 # as_fn_mkdir_p
15234 # -------------
15235 # Create "$as_dir" as a directory, including parents if necessary.
15236 as_fn_mkdir_p ()
15237 {
15238
15239   case $as_dir in #(
15240   -*) as_dir=./$as_dir;;
15241   esac
15242   test -d "$as_dir" || eval $as_mkdir_p || {
15243     as_dirs=
15244     while :; do
15245       case $as_dir in #(
15246       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15247       *) as_qdir=$as_dir;;
15248       esac
15249       as_dirs="'$as_qdir' $as_dirs"
15250       as_dir=`$as_dirname -- "$as_dir" ||
15251 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15252          X"$as_dir" : 'X\(//\)[^/]' \| \
15253          X"$as_dir" : 'X\(//\)$' \| \
15254          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15255 $as_echo X"$as_dir" |
15256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15257             s//\1/
15258             q
15259           }
15260           /^X\(\/\/\)[^/].*/{
15261             s//\1/
15262             q
15263           }
15264           /^X\(\/\/\)$/{
15265             s//\1/
15266             q
15267           }
15268           /^X\(\/\).*/{
15269             s//\1/
15270             q
15271           }
15272           s/.*/./; q'`
15273       test -d "$as_dir" && break
15274     done
15275     test -z "$as_dirs" || eval "mkdir $as_dirs"
15276   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15277
15278
15279 } # as_fn_mkdir_p
15280 if mkdir -p . 2>/dev/null; then
15281   as_mkdir_p='mkdir -p "$as_dir"'
15282 else
15283   test -d ./-p && rmdir ./-p
15284   as_mkdir_p=false
15285 fi
15286
15287
15288 # as_fn_executable_p FILE
15289 # -----------------------
15290 # Test if FILE is an executable regular file.
15291 as_fn_executable_p ()
15292 {
15293   test -f "$1" && test -x "$1"
15294 } # as_fn_executable_p
15295 as_test_x='test -x'
15296 as_executable_p=as_fn_executable_p
15297
15298 # Sed expression to map a string onto a valid CPP name.
15299 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15300
15301 # Sed expression to map a string onto a valid variable name.
15302 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15303
15304
15305 exec 6>&1
15306 ## ----------------------------------- ##
15307 ## Main body of $CONFIG_STATUS script. ##
15308 ## ----------------------------------- ##
15309 _ASEOF
15310 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15311
15312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15313 # Save the log message, to keep $0 and so on meaningful, and to
15314 # report actual input values of CONFIG_FILES etc. instead of their
15315 # values after options handling.
15316 ac_log="
15317 This file was extended by pygobject $as_me 3.18.1, which was
15318 generated by GNU Autoconf 2.69.  Invocation command line was
15319
15320   CONFIG_FILES    = $CONFIG_FILES
15321   CONFIG_HEADERS  = $CONFIG_HEADERS
15322   CONFIG_LINKS    = $CONFIG_LINKS
15323   CONFIG_COMMANDS = $CONFIG_COMMANDS
15324   $ $0 $@
15325
15326 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15327 "
15328
15329 _ACEOF
15330
15331 case $ac_config_files in *"
15332 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15333 esac
15334
15335 case $ac_config_headers in *"
15336 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15337 esac
15338
15339
15340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15341 # Files that config.status was made for.
15342 config_files="$ac_config_files"
15343 config_headers="$ac_config_headers"
15344 config_commands="$ac_config_commands"
15345
15346 _ACEOF
15347
15348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15349 ac_cs_usage="\
15350 \`$as_me' instantiates files and other configuration actions
15351 from templates according to the current configuration.  Unless the files
15352 and actions are specified as TAGs, all are instantiated by default.
15353
15354 Usage: $0 [OPTION]... [TAG]...
15355
15356   -h, --help       print this help, then exit
15357   -V, --version    print version number and configuration settings, then exit
15358       --config     print configuration, then exit
15359   -q, --quiet, --silent
15360                    do not print progress messages
15361   -d, --debug      don't remove temporary files
15362       --recheck    update $as_me by reconfiguring in the same conditions
15363       --file=FILE[:TEMPLATE]
15364                    instantiate the configuration file FILE
15365       --header=FILE[:TEMPLATE]
15366                    instantiate the configuration header FILE
15367
15368 Configuration files:
15369 $config_files
15370
15371 Configuration headers:
15372 $config_headers
15373
15374 Configuration commands:
15375 $config_commands
15376
15377 Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=pygobject>.
15378 pygobject home page: <https://wiki.gnome.org/Projects/PyGObject/>."
15379
15380 _ACEOF
15381 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15382 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15383 ac_cs_version="\\
15384 pygobject config.status 3.18.1
15385 configured by $0, generated by GNU Autoconf 2.69,
15386   with options \\"\$ac_cs_config\\"
15387
15388 Copyright (C) 2012 Free Software Foundation, Inc.
15389 This config.status script is free software; the Free Software Foundation
15390 gives unlimited permission to copy, distribute and modify it."
15391
15392 ac_pwd='$ac_pwd'
15393 srcdir='$srcdir'
15394 INSTALL='$INSTALL'
15395 MKDIR_P='$MKDIR_P'
15396 AWK='$AWK'
15397 test -n "\$AWK" || AWK=awk
15398 _ACEOF
15399
15400 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15401 # The default lists apply if the user does not specify any file.
15402 ac_need_defaults=:
15403 while test $# != 0
15404 do
15405   case $1 in
15406   --*=?*)
15407     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15408     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15409     ac_shift=:
15410     ;;
15411   --*=)
15412     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15413     ac_optarg=
15414     ac_shift=:
15415     ;;
15416   *)
15417     ac_option=$1
15418     ac_optarg=$2
15419     ac_shift=shift
15420     ;;
15421   esac
15422
15423   case $ac_option in
15424   # Handling of the options.
15425   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15426     ac_cs_recheck=: ;;
15427   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15428     $as_echo "$ac_cs_version"; exit ;;
15429   --config | --confi | --conf | --con | --co | --c )
15430     $as_echo "$ac_cs_config"; exit ;;
15431   --debug | --debu | --deb | --de | --d | -d )
15432     debug=: ;;
15433   --file | --fil | --fi | --f )
15434     $ac_shift
15435     case $ac_optarg in
15436     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15437     '') as_fn_error $? "missing file argument" ;;
15438     esac
15439     as_fn_append CONFIG_FILES " '$ac_optarg'"
15440     ac_need_defaults=false;;
15441   --header | --heade | --head | --hea )
15442     $ac_shift
15443     case $ac_optarg in
15444     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15445     esac
15446     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15447     ac_need_defaults=false;;
15448   --he | --h)
15449     # Conflict between --help and --header
15450     as_fn_error $? "ambiguous option: \`$1'
15451 Try \`$0 --help' for more information.";;
15452   --help | --hel | -h )
15453     $as_echo "$ac_cs_usage"; exit ;;
15454   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15455   | -silent | --silent | --silen | --sile | --sil | --si | --s)
15456     ac_cs_silent=: ;;
15457
15458   # This is an error.
15459   -*) as_fn_error $? "unrecognized option: \`$1'
15460 Try \`$0 --help' for more information." ;;
15461
15462   *) as_fn_append ac_config_targets " $1"
15463      ac_need_defaults=false ;;
15464
15465   esac
15466   shift
15467 done
15468
15469 ac_configure_extra_args=
15470
15471 if $ac_cs_silent; then
15472   exec 6>/dev/null
15473   ac_configure_extra_args="$ac_configure_extra_args --silent"
15474 fi
15475
15476 _ACEOF
15477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15478 if \$ac_cs_recheck; then
15479   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15480   shift
15481   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15482   CONFIG_SHELL='$SHELL'
15483   export CONFIG_SHELL
15484   exec "\$@"
15485 fi
15486
15487 _ACEOF
15488 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15489 exec 5>>config.log
15490 {
15491   echo
15492   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15493 ## Running $as_me. ##
15494 _ASBOX
15495   $as_echo "$ac_log"
15496 } >&5
15497
15498 _ACEOF
15499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15500 #
15501 # INIT-COMMANDS
15502 #
15503 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15504
15505
15506 # The HP-UX ksh and POSIX shell print the target directory to stdout
15507 # if CDPATH is set.
15508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15509
15510 sed_quote_subst='$sed_quote_subst'
15511 double_quote_subst='$double_quote_subst'
15512 delay_variable_subst='$delay_variable_subst'
15513 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15514 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15515 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
15516 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15517 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15518 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15519 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15520 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15521 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15522 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15523 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15524 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15525 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15526 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15527 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15528 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15529 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15530 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15531 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15532 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15533 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15534 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15535 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15536 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15537 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15538 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15539 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15540 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15541 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15542 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15543 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15544 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15545 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15546 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15547 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15548 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15549 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15550 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15551 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15552 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15553 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15554 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15555 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15556 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15557 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15558 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15559 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15560 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15561 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15562 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15563 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15564 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15565 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15566 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15567 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15568 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15569 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15570 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"`'
15571 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15572 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15573 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15574 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15575 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15576 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15577 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15578 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15579 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15580 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15581 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15582 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15583 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15584 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15585 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15586 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15587 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15588 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15589 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15590 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15591 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15592 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15593 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15594 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15595 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15596 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15597 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15598 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15599 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15600 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15601 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15602 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15603 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15604 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15605 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15606 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15607 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15608 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15609 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15610 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15611 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15612 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15613 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15614 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15615 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15616 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15617 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15618 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15619 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15620 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15621 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15622 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15623 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15624 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15625 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15626 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15627 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15628 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15629 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15630 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15631 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15632 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15633 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15634 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15635 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15636 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15637 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15638 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15639 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15640 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15641 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15642 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15643 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15644
15645 LTCC='$LTCC'
15646 LTCFLAGS='$LTCFLAGS'
15647 compiler='$compiler_DEFAULT'
15648
15649 # A function that is used when there is no print builtin or printf.
15650 func_fallback_echo ()
15651 {
15652   eval 'cat <<_LTECHO_EOF
15653 \$1
15654 _LTECHO_EOF'
15655 }
15656
15657 # Quote evaled strings.
15658 for var in AS \
15659 DLLTOOL \
15660 OBJDUMP \
15661 SHELL \
15662 ECHO \
15663 PATH_SEPARATOR \
15664 SED \
15665 GREP \
15666 EGREP \
15667 FGREP \
15668 LD \
15669 NM \
15670 LN_S \
15671 lt_SP2NL \
15672 lt_NL2SP \
15673 reload_flag \
15674 deplibs_check_method \
15675 file_magic_cmd \
15676 file_magic_glob \
15677 want_nocaseglob \
15678 sharedlib_from_linklib_cmd \
15679 AR \
15680 AR_FLAGS \
15681 archiver_list_spec \
15682 STRIP \
15683 RANLIB \
15684 CC \
15685 CFLAGS \
15686 compiler \
15687 lt_cv_sys_global_symbol_pipe \
15688 lt_cv_sys_global_symbol_to_cdecl \
15689 lt_cv_sys_global_symbol_to_c_name_address \
15690 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15691 nm_file_list_spec \
15692 lt_prog_compiler_no_builtin_flag \
15693 lt_prog_compiler_pic \
15694 lt_prog_compiler_wl \
15695 lt_prog_compiler_static \
15696 lt_cv_prog_compiler_c_o \
15697 need_locks \
15698 MANIFEST_TOOL \
15699 DSYMUTIL \
15700 NMEDIT \
15701 LIPO \
15702 OTOOL \
15703 OTOOL64 \
15704 shrext_cmds \
15705 export_dynamic_flag_spec \
15706 whole_archive_flag_spec \
15707 compiler_needs_object \
15708 with_gnu_ld \
15709 allow_undefined_flag \
15710 no_undefined_flag \
15711 hardcode_libdir_flag_spec \
15712 hardcode_libdir_separator \
15713 exclude_expsyms \
15714 include_expsyms \
15715 file_list_spec \
15716 variables_saved_for_relink \
15717 libname_spec \
15718 library_names_spec \
15719 soname_spec \
15720 install_override_mode \
15721 finish_eval \
15722 old_striplib \
15723 striplib; do
15724     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15725     *[\\\\\\\`\\"\\\$]*)
15726       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15727       ;;
15728     *)
15729       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15730       ;;
15731     esac
15732 done
15733
15734 # Double-quote double-evaled strings.
15735 for var in reload_cmds \
15736 old_postinstall_cmds \
15737 old_postuninstall_cmds \
15738 old_archive_cmds \
15739 extract_expsyms_cmds \
15740 old_archive_from_new_cmds \
15741 old_archive_from_expsyms_cmds \
15742 archive_cmds \
15743 archive_expsym_cmds \
15744 module_cmds \
15745 module_expsym_cmds \
15746 export_symbols_cmds \
15747 prelink_cmds \
15748 postlink_cmds \
15749 postinstall_cmds \
15750 postuninstall_cmds \
15751 finish_cmds \
15752 sys_lib_search_path_spec \
15753 sys_lib_dlsearch_path_spec; do
15754     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15755     *[\\\\\\\`\\"\\\$]*)
15756       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15757       ;;
15758     *)
15759       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15760       ;;
15761     esac
15762 done
15763
15764 ac_aux_dir='$ac_aux_dir'
15765 xsi_shell='$xsi_shell'
15766 lt_shell_append='$lt_shell_append'
15767
15768 # See if we are running on zsh, and set the options which allow our
15769 # commands through without removal of \ escapes INIT.
15770 if test -n "\${ZSH_VERSION+set}" ; then
15771    setopt NO_GLOB_SUBST
15772 fi
15773
15774
15775     PACKAGE='$PACKAGE'
15776     VERSION='$VERSION'
15777     TIMESTAMP='$TIMESTAMP'
15778     RM='$RM'
15779     ofile='$ofile'
15780
15781
15782
15783
15784 _ACEOF
15785
15786 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15787
15788 # Handling of arguments.
15789 for ac_config_target in $ac_config_targets
15790 do
15791   case $ac_config_target in
15792     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15793     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15794     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15795     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15796     "pygobject-3.0.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0.pc" ;;
15797     "pygobject-3.0-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pygobject-3.0-uninstalled.pc" ;;
15798     "gi/Makefile") CONFIG_FILES="$CONFIG_FILES gi/Makefile" ;;
15799     "gi/repository/Makefile") CONFIG_FILES="$CONFIG_FILES gi/repository/Makefile" ;;
15800     "gi/overrides/Makefile") CONFIG_FILES="$CONFIG_FILES gi/overrides/Makefile" ;;
15801     "gi/_gobject/Makefile") CONFIG_FILES="$CONFIG_FILES gi/_gobject/Makefile" ;;
15802     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
15803     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
15804     "pygtkcompat/Makefile") CONFIG_FILES="$CONFIG_FILES pygtkcompat/Makefile" ;;
15805     "PKG-INFO") CONFIG_FILES="$CONFIG_FILES PKG-INFO" ;;
15806
15807   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15808   esac
15809 done
15810
15811
15812 # If the user did not use the arguments to specify the items to instantiate,
15813 # then the envvar interface is used.  Set only those that are not.
15814 # We use the long form for the default assignment because of an extremely
15815 # bizarre bug on SunOS 4.1.3.
15816 if $ac_need_defaults; then
15817   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15818   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15819   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15820 fi
15821
15822 # Have a temporary directory for convenience.  Make it in the build tree
15823 # simply because there is no reason against having it here, and in addition,
15824 # creating and moving files from /tmp can sometimes cause problems.
15825 # Hook for its removal unless debugging.
15826 # Note that there is a small window in which the directory will not be cleaned:
15827 # after its creation but before its name has been assigned to `$tmp'.
15828 $debug ||
15829 {
15830   tmp= ac_tmp=
15831   trap 'exit_status=$?
15832   : "${ac_tmp:=$tmp}"
15833   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15834 ' 0
15835   trap 'as_fn_exit 1' 1 2 13 15
15836 }
15837 # Create a (secure) tmp directory for tmp files.
15838
15839 {
15840   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15841   test -d "$tmp"
15842 }  ||
15843 {
15844   tmp=./conf$$-$RANDOM
15845   (umask 077 && mkdir "$tmp")
15846 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15847 ac_tmp=$tmp
15848
15849 # Set up the scripts for CONFIG_FILES section.
15850 # No need to generate them if there are no CONFIG_FILES.
15851 # This happens for instance with `./config.status config.h'.
15852 if test -n "$CONFIG_FILES"; then
15853
15854
15855 ac_cr=`echo X | tr X '\015'`
15856 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15857 # But we know of no other shell where ac_cr would be empty at this
15858 # point, so we can use a bashism as a fallback.
15859 if test "x$ac_cr" = x; then
15860   eval ac_cr=\$\'\\r\'
15861 fi
15862 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15863 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15864   ac_cs_awk_cr='\\r'
15865 else
15866   ac_cs_awk_cr=$ac_cr
15867 fi
15868
15869 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15870 _ACEOF
15871
15872
15873 {
15874   echo "cat >conf$$subs.awk <<_ACEOF" &&
15875   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15876   echo "_ACEOF"
15877 } >conf$$subs.sh ||
15878   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15879 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15880 ac_delim='%!_!# '
15881 for ac_last_try in false false false false false :; do
15882   . ./conf$$subs.sh ||
15883     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15884
15885   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15886   if test $ac_delim_n = $ac_delim_num; then
15887     break
15888   elif $ac_last_try; then
15889     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15890   else
15891     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15892   fi
15893 done
15894 rm -f conf$$subs.sh
15895
15896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15897 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15898 _ACEOF
15899 sed -n '
15900 h
15901 s/^/S["/; s/!.*/"]=/
15902 p
15903 g
15904 s/^[^!]*!//
15905 :repl
15906 t repl
15907 s/'"$ac_delim"'$//
15908 t delim
15909 :nl
15910 h
15911 s/\(.\{148\}\)..*/\1/
15912 t more1
15913 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15914 p
15915 n
15916 b repl
15917 :more1
15918 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15919 p
15920 g
15921 s/.\{148\}//
15922 t nl
15923 :delim
15924 h
15925 s/\(.\{148\}\)..*/\1/
15926 t more2
15927 s/["\\]/\\&/g; s/^/"/; s/$/"/
15928 p
15929 b
15930 :more2
15931 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15932 p
15933 g
15934 s/.\{148\}//
15935 t delim
15936 ' <conf$$subs.awk | sed '
15937 /^[^""]/{
15938   N
15939   s/\n//
15940 }
15941 ' >>$CONFIG_STATUS || ac_write_fail=1
15942 rm -f conf$$subs.awk
15943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15944 _ACAWK
15945 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15946   for (key in S) S_is_set[key] = 1
15947   FS = "\a"
15948
15949 }
15950 {
15951   line = $ 0
15952   nfields = split(line, field, "@")
15953   substed = 0
15954   len = length(field[1])
15955   for (i = 2; i < nfields; i++) {
15956     key = field[i]
15957     keylen = length(key)
15958     if (S_is_set[key]) {
15959       value = S[key]
15960       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15961       len += length(value) + length(field[++i])
15962       substed = 1
15963     } else
15964       len += 1 + keylen
15965   }
15966
15967   print line
15968 }
15969
15970 _ACAWK
15971 _ACEOF
15972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15973 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15974   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15975 else
15976   cat
15977 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15978   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15979 _ACEOF
15980
15981 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15982 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15983 # trailing colons and then remove the whole line if VPATH becomes empty
15984 # (actually we leave an empty line to preserve line numbers).
15985 if test "x$srcdir" = x.; then
15986   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
15987 h
15988 s///
15989 s/^/:/
15990 s/[      ]*$/:/
15991 s/:\$(srcdir):/:/g
15992 s/:\${srcdir}:/:/g
15993 s/:@srcdir@:/:/g
15994 s/^:*//
15995 s/:*$//
15996 x
15997 s/\(=[   ]*\).*/\1/
15998 G
15999 s/\n//
16000 s/^[^=]*=[       ]*$//
16001 }'
16002 fi
16003
16004 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16005 fi # test -n "$CONFIG_FILES"
16006
16007 # Set up the scripts for CONFIG_HEADERS section.
16008 # No need to generate them if there are no CONFIG_HEADERS.
16009 # This happens for instance with `./config.status Makefile'.
16010 if test -n "$CONFIG_HEADERS"; then
16011 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16012 BEGIN {
16013 _ACEOF
16014
16015 # Transform confdefs.h into an awk script `defines.awk', embedded as
16016 # here-document in config.status, that substitutes the proper values into
16017 # config.h.in to produce config.h.
16018
16019 # Create a delimiter string that does not exist in confdefs.h, to ease
16020 # handling of long lines.
16021 ac_delim='%!_!# '
16022 for ac_last_try in false false :; do
16023   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16024   if test -z "$ac_tt"; then
16025     break
16026   elif $ac_last_try; then
16027     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16028   else
16029     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16030   fi
16031 done
16032
16033 # For the awk script, D is an array of macro values keyed by name,
16034 # likewise P contains macro parameters if any.  Preserve backslash
16035 # newline sequences.
16036
16037 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16038 sed -n '
16039 s/.\{148\}/&'"$ac_delim"'/g
16040 t rset
16041 :rset
16042 s/^[     ]*#[    ]*define[       ][      ]*/ /
16043 t def
16044 d
16045 :def
16046 s/\\$//
16047 t bsnl
16048 s/["\\]/\\&/g
16049 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16050 D["\1"]=" \3"/p
16051 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
16052 d
16053 :bsnl
16054 s/["\\]/\\&/g
16055 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
16056 D["\1"]=" \3\\\\\\n"\\/p
16057 t cont
16058 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16059 t cont
16060 d
16061 :cont
16062 n
16063 s/.\{148\}/&'"$ac_delim"'/g
16064 t clear
16065 :clear
16066 s/\\$//
16067 t bsnlc
16068 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16069 d
16070 :bsnlc
16071 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16072 b cont
16073 ' <confdefs.h | sed '
16074 s/'"$ac_delim"'/"\\\
16075 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16076
16077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16078   for (key in D) D_is_set[key] = 1
16079   FS = "\a"
16080 }
16081 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16082   line = \$ 0
16083   split(line, arg, " ")
16084   if (arg[1] == "#") {
16085     defundef = arg[2]
16086     mac1 = arg[3]
16087   } else {
16088     defundef = substr(arg[1], 2)
16089     mac1 = arg[2]
16090   }
16091   split(mac1, mac2, "(") #)
16092   macro = mac2[1]
16093   prefix = substr(line, 1, index(line, defundef) - 1)
16094   if (D_is_set[macro]) {
16095     # Preserve the white space surrounding the "#".
16096     print prefix "define", macro P[macro] D[macro]
16097     next
16098   } else {
16099     # Replace #undef with comments.  This is necessary, for example,
16100     # in the case of _POSIX_SOURCE, which is predefined and required
16101     # on some systems where configure will not decide to define it.
16102     if (defundef == "undef") {
16103       print "/*", prefix defundef, macro, "*/"
16104       next
16105     }
16106   }
16107 }
16108 { print }
16109 _ACAWK
16110 _ACEOF
16111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16112   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16113 fi # test -n "$CONFIG_HEADERS"
16114
16115
16116 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16117 shift
16118 for ac_tag
16119 do
16120   case $ac_tag in
16121   :[FHLC]) ac_mode=$ac_tag; continue;;
16122   esac
16123   case $ac_mode$ac_tag in
16124   :[FHL]*:*);;
16125   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16126   :[FH]-) ac_tag=-:-;;
16127   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16128   esac
16129   ac_save_IFS=$IFS
16130   IFS=:
16131   set x $ac_tag
16132   IFS=$ac_save_IFS
16133   shift
16134   ac_file=$1
16135   shift
16136
16137   case $ac_mode in
16138   :L) ac_source=$1;;
16139   :[FH])
16140     ac_file_inputs=
16141     for ac_f
16142     do
16143       case $ac_f in
16144       -) ac_f="$ac_tmp/stdin";;
16145       *) # Look for the file first in the build tree, then in the source tree
16146          # (if the path is not absolute).  The absolute path cannot be DOS-style,
16147          # because $ac_f cannot contain `:'.
16148          test -f "$ac_f" ||
16149            case $ac_f in
16150            [\\/$]*) false;;
16151            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16152            esac ||
16153            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16154       esac
16155       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16156       as_fn_append ac_file_inputs " '$ac_f'"
16157     done
16158
16159     # Let's still pretend it is `configure' which instantiates (i.e., don't
16160     # use $as_me), people would be surprised to read:
16161     #    /* config.h.  Generated by config.status.  */
16162     configure_input='Generated from '`
16163           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16164         `' by configure.'
16165     if test x"$ac_file" != x-; then
16166       configure_input="$ac_file.  $configure_input"
16167       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16168 $as_echo "$as_me: creating $ac_file" >&6;}
16169     fi
16170     # Neutralize special characters interpreted by sed in replacement strings.
16171     case $configure_input in #(
16172     *\&* | *\|* | *\\* )
16173        ac_sed_conf_input=`$as_echo "$configure_input" |
16174        sed 's/[\\\\&|]/\\\\&/g'`;; #(
16175     *) ac_sed_conf_input=$configure_input;;
16176     esac
16177
16178     case $ac_tag in
16179     *:-:* | *:-) cat >"$ac_tmp/stdin" \
16180       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16181     esac
16182     ;;
16183   esac
16184
16185   ac_dir=`$as_dirname -- "$ac_file" ||
16186 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16187          X"$ac_file" : 'X\(//\)[^/]' \| \
16188          X"$ac_file" : 'X\(//\)$' \| \
16189          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16190 $as_echo X"$ac_file" |
16191     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16192             s//\1/
16193             q
16194           }
16195           /^X\(\/\/\)[^/].*/{
16196             s//\1/
16197             q
16198           }
16199           /^X\(\/\/\)$/{
16200             s//\1/
16201             q
16202           }
16203           /^X\(\/\).*/{
16204             s//\1/
16205             q
16206           }
16207           s/.*/./; q'`
16208   as_dir="$ac_dir"; as_fn_mkdir_p
16209   ac_builddir=.
16210
16211 case "$ac_dir" in
16212 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16213 *)
16214   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16215   # A ".." for each directory in $ac_dir_suffix.
16216   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16217   case $ac_top_builddir_sub in
16218   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16219   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16220   esac ;;
16221 esac
16222 ac_abs_top_builddir=$ac_pwd
16223 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16224 # for backward compatibility:
16225 ac_top_builddir=$ac_top_build_prefix
16226
16227 case $srcdir in
16228   .)  # We are building in place.
16229     ac_srcdir=.
16230     ac_top_srcdir=$ac_top_builddir_sub
16231     ac_abs_top_srcdir=$ac_pwd ;;
16232   [\\/]* | ?:[\\/]* )  # Absolute name.
16233     ac_srcdir=$srcdir$ac_dir_suffix;
16234     ac_top_srcdir=$srcdir
16235     ac_abs_top_srcdir=$srcdir ;;
16236   *) # Relative name.
16237     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16238     ac_top_srcdir=$ac_top_build_prefix$srcdir
16239     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16240 esac
16241 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16242
16243
16244   case $ac_mode in
16245   :F)
16246   #
16247   # CONFIG_FILE
16248   #
16249
16250   case $INSTALL in
16251   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16252   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16253   esac
16254   ac_MKDIR_P=$MKDIR_P
16255   case $MKDIR_P in
16256   [\\/$]* | ?:[\\/]* ) ;;
16257   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16258   esac
16259 _ACEOF
16260
16261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16262 # If the template does not know about datarootdir, expand it.
16263 # FIXME: This hack should be removed a few years after 2.60.
16264 ac_datarootdir_hack=; ac_datarootdir_seen=
16265 ac_sed_dataroot='
16266 /datarootdir/ {
16267   p
16268   q
16269 }
16270 /@datadir@/p
16271 /@docdir@/p
16272 /@infodir@/p
16273 /@localedir@/p
16274 /@mandir@/p'
16275 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16276 *datarootdir*) ac_datarootdir_seen=yes;;
16277 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16278   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16279 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16280 _ACEOF
16281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16282   ac_datarootdir_hack='
16283   s&@datadir@&$datadir&g
16284   s&@docdir@&$docdir&g
16285   s&@infodir@&$infodir&g
16286   s&@localedir@&$localedir&g
16287   s&@mandir@&$mandir&g
16288   s&\\\${datarootdir}&$datarootdir&g' ;;
16289 esac
16290 _ACEOF
16291
16292 # Neutralize VPATH when `$srcdir' = `.'.
16293 # Shell code in configure.ac might set extrasub.
16294 # FIXME: do we really want to maintain this feature?
16295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16296 ac_sed_extra="$ac_vpsub
16297 $extrasub
16298 _ACEOF
16299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16300 :t
16301 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16302 s|@configure_input@|$ac_sed_conf_input|;t t
16303 s&@top_builddir@&$ac_top_builddir_sub&;t t
16304 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16305 s&@srcdir@&$ac_srcdir&;t t
16306 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16307 s&@top_srcdir@&$ac_top_srcdir&;t t
16308 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16309 s&@builddir@&$ac_builddir&;t t
16310 s&@abs_builddir@&$ac_abs_builddir&;t t
16311 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16312 s&@INSTALL@&$ac_INSTALL&;t t
16313 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16314 $ac_datarootdir_hack
16315 "
16316 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16317   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16318
16319 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16320   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16321   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
16322       "$ac_tmp/out"`; test -z "$ac_out"; } &&
16323   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16324 which seems to be undefined.  Please make sure it is defined" >&5
16325 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16326 which seems to be undefined.  Please make sure it is defined" >&2;}
16327
16328   rm -f "$ac_tmp/stdin"
16329   case $ac_file in
16330   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16331   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16332   esac \
16333   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16334  ;;
16335   :H)
16336   #
16337   # CONFIG_HEADER
16338   #
16339   if test x"$ac_file" != x-; then
16340     {
16341       $as_echo "/* $configure_input  */" \
16342       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16343     } >"$ac_tmp/config.h" \
16344       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16345     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16346       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16347 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16348     else
16349       rm -f "$ac_file"
16350       mv "$ac_tmp/config.h" "$ac_file" \
16351         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16352     fi
16353   else
16354     $as_echo "/* $configure_input  */" \
16355       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16356       || as_fn_error $? "could not create -" "$LINENO" 5
16357   fi
16358 # Compute "$ac_file"'s index in $config_headers.
16359 _am_arg="$ac_file"
16360 _am_stamp_count=1
16361 for _am_header in $config_headers :; do
16362   case $_am_header in
16363     $_am_arg | $_am_arg:* )
16364       break ;;
16365     * )
16366       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16367   esac
16368 done
16369 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16370 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16371          X"$_am_arg" : 'X\(//\)[^/]' \| \
16372          X"$_am_arg" : 'X\(//\)$' \| \
16373          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16374 $as_echo X"$_am_arg" |
16375     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16376             s//\1/
16377             q
16378           }
16379           /^X\(\/\/\)[^/].*/{
16380             s//\1/
16381             q
16382           }
16383           /^X\(\/\/\)$/{
16384             s//\1/
16385             q
16386           }
16387           /^X\(\/\).*/{
16388             s//\1/
16389             q
16390           }
16391           s/.*/./; q'`/stamp-h$_am_stamp_count
16392  ;;
16393
16394   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16395 $as_echo "$as_me: executing $ac_file commands" >&6;}
16396  ;;
16397   esac
16398
16399
16400   case $ac_file$ac_mode in
16401     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16402   # Autoconf 2.62 quotes --file arguments for eval, but not when files
16403   # are listed without --file.  Let's play safe and only enable the eval
16404   # if we detect the quoting.
16405   case $CONFIG_FILES in
16406   *\'*) eval set x "$CONFIG_FILES" ;;
16407   *)   set x $CONFIG_FILES ;;
16408   esac
16409   shift
16410   for mf
16411   do
16412     # Strip MF so we end up with the name of the file.
16413     mf=`echo "$mf" | sed -e 's/:.*$//'`
16414     # Check whether this is an Automake generated Makefile or not.
16415     # We used to match only the files named `Makefile.in', but
16416     # some people rename them; so instead we look at the file content.
16417     # Grep'ing the first line is not enough: some people post-process
16418     # each Makefile.in and add a new line on top of each file to say so.
16419     # Grep'ing the whole file is not good either: AIX grep has a line
16420     # limit of 2048, but all sed's we know have understand at least 4000.
16421     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16422       dirpart=`$as_dirname -- "$mf" ||
16423 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16424          X"$mf" : 'X\(//\)[^/]' \| \
16425          X"$mf" : 'X\(//\)$' \| \
16426          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16427 $as_echo X"$mf" |
16428     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16429             s//\1/
16430             q
16431           }
16432           /^X\(\/\/\)[^/].*/{
16433             s//\1/
16434             q
16435           }
16436           /^X\(\/\/\)$/{
16437             s//\1/
16438             q
16439           }
16440           /^X\(\/\).*/{
16441             s//\1/
16442             q
16443           }
16444           s/.*/./; q'`
16445     else
16446       continue
16447     fi
16448     # Extract the definition of DEPDIR, am__include, and am__quote
16449     # from the Makefile without running `make'.
16450     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16451     test -z "$DEPDIR" && continue
16452     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16453     test -z "am__include" && continue
16454     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16455     # When using ansi2knr, U may be empty or an underscore; expand it
16456     U=`sed -n 's/^U = //p' < "$mf"`
16457     # Find all dependency output files, they are included files with
16458     # $(DEPDIR) in their names.  We invoke sed twice because it is the
16459     # simplest approach to changing $(DEPDIR) to its actual value in the
16460     # expansion.
16461     for file in `sed -n "
16462       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16463          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16464       # Make sure the directory exists.
16465       test -f "$dirpart/$file" && continue
16466       fdir=`$as_dirname -- "$file" ||
16467 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16468          X"$file" : 'X\(//\)[^/]' \| \
16469          X"$file" : 'X\(//\)$' \| \
16470          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16471 $as_echo X"$file" |
16472     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16473             s//\1/
16474             q
16475           }
16476           /^X\(\/\/\)[^/].*/{
16477             s//\1/
16478             q
16479           }
16480           /^X\(\/\/\)$/{
16481             s//\1/
16482             q
16483           }
16484           /^X\(\/\).*/{
16485             s//\1/
16486             q
16487           }
16488           s/.*/./; q'`
16489       as_dir=$dirpart/$fdir; as_fn_mkdir_p
16490       # echo "creating $dirpart/$file"
16491       echo '# dummy' > "$dirpart/$file"
16492     done
16493   done
16494 }
16495  ;;
16496     "libtool":C)
16497
16498     # See if we are running on zsh, and set the options which allow our
16499     # commands through without removal of \ escapes.
16500     if test -n "${ZSH_VERSION+set}" ; then
16501       setopt NO_GLOB_SUBST
16502     fi
16503
16504     cfgfile="${ofile}T"
16505     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16506     $RM "$cfgfile"
16507
16508     cat <<_LT_EOF >> "$cfgfile"
16509 #! $SHELL
16510
16511 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16512 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16513 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16514 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16515 #
16516 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16517 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16518 #                 Foundation, Inc.
16519 #   Written by Gordon Matzigkeit, 1996
16520 #
16521 #   This file is part of GNU Libtool.
16522 #
16523 # GNU Libtool is free software; you can redistribute it and/or
16524 # modify it under the terms of the GNU General Public License as
16525 # published by the Free Software Foundation; either version 2 of
16526 # the License, or (at your option) any later version.
16527 #
16528 # As a special exception to the GNU General Public License,
16529 # if you distribute this file as part of a program or library that
16530 # is built using GNU Libtool, you may include this file under the
16531 # same distribution terms that you use for the rest of that program.
16532 #
16533 # GNU Libtool is distributed in the hope that it will be useful,
16534 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16535 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16536 # GNU General Public License for more details.
16537 #
16538 # You should have received a copy of the GNU General Public License
16539 # along with GNU Libtool; see the file COPYING.  If not, a copy
16540 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16541 # obtained by writing to the Free Software Foundation, Inc.,
16542 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16543
16544
16545 # The names of the tagged configurations supported by this script.
16546 available_tags=""
16547
16548 # ### BEGIN LIBTOOL CONFIG
16549
16550 # Which release of libtool.m4 was used?
16551 macro_version=$macro_version
16552 macro_revision=$macro_revision
16553
16554 # Assembler program.
16555 AS=$lt_AS
16556
16557 # DLL creation program.
16558 DLLTOOL=$lt_DLLTOOL
16559
16560 # Object dumper program.
16561 OBJDUMP=$lt_OBJDUMP
16562
16563 # Whether or not to build static libraries.
16564 build_old_libs=$enable_static
16565
16566 # Whether or not to build shared libraries.
16567 build_libtool_libs=$enable_shared
16568
16569 # What type of objects to build.
16570 pic_mode=$pic_mode
16571
16572 # Whether or not to optimize for fast installation.
16573 fast_install=$enable_fast_install
16574
16575 # Shell to use when invoking shell scripts.
16576 SHELL=$lt_SHELL
16577
16578 # An echo program that protects backslashes.
16579 ECHO=$lt_ECHO
16580
16581 # The PATH separator for the build system.
16582 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16583
16584 # The host system.
16585 host_alias=$host_alias
16586 host=$host
16587 host_os=$host_os
16588
16589 # The build system.
16590 build_alias=$build_alias
16591 build=$build
16592 build_os=$build_os
16593
16594 # A sed program that does not truncate output.
16595 SED=$lt_SED
16596
16597 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16598 Xsed="\$SED -e 1s/^X//"
16599
16600 # A grep program that handles long lines.
16601 GREP=$lt_GREP
16602
16603 # An ERE matcher.
16604 EGREP=$lt_EGREP
16605
16606 # A literal string matcher.
16607 FGREP=$lt_FGREP
16608
16609 # A BSD- or MS-compatible name lister.
16610 NM=$lt_NM
16611
16612 # Whether we need soft or hard links.
16613 LN_S=$lt_LN_S
16614
16615 # What is the maximum length of a command?
16616 max_cmd_len=$max_cmd_len
16617
16618 # Object file suffix (normally "o").
16619 objext=$ac_objext
16620
16621 # Executable file suffix (normally "").
16622 exeext=$exeext
16623
16624 # whether the shell understands "unset".
16625 lt_unset=$lt_unset
16626
16627 # turn spaces into newlines.
16628 SP2NL=$lt_lt_SP2NL
16629
16630 # turn newlines into spaces.
16631 NL2SP=$lt_lt_NL2SP
16632
16633 # convert \$build file names to \$host format.
16634 to_host_file_cmd=$lt_cv_to_host_file_cmd
16635
16636 # convert \$build files to toolchain format.
16637 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16638
16639 # Method to check whether dependent libraries are shared objects.
16640 deplibs_check_method=$lt_deplibs_check_method
16641
16642 # Command to use when deplibs_check_method = "file_magic".
16643 file_magic_cmd=$lt_file_magic_cmd
16644
16645 # How to find potential files when deplibs_check_method = "file_magic".
16646 file_magic_glob=$lt_file_magic_glob
16647
16648 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16649 want_nocaseglob=$lt_want_nocaseglob
16650
16651 # Command to associate shared and link libraries.
16652 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16653
16654 # The archiver.
16655 AR=$lt_AR
16656
16657 # Flags to create an archive.
16658 AR_FLAGS=$lt_AR_FLAGS
16659
16660 # How to feed a file listing to the archiver.
16661 archiver_list_spec=$lt_archiver_list_spec
16662
16663 # A symbol stripping program.
16664 STRIP=$lt_STRIP
16665
16666 # Commands used to install an old-style archive.
16667 RANLIB=$lt_RANLIB
16668 old_postinstall_cmds=$lt_old_postinstall_cmds
16669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16670
16671 # Whether to use a lock for old archive extraction.
16672 lock_old_archive_extraction=$lock_old_archive_extraction
16673
16674 # A C compiler.
16675 LTCC=$lt_CC
16676
16677 # LTCC compiler flags.
16678 LTCFLAGS=$lt_CFLAGS
16679
16680 # Take the output of nm and produce a listing of raw symbols and C names.
16681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16682
16683 # Transform the output of nm in a proper C declaration.
16684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16685
16686 # Transform the output of nm in a C name address pair.
16687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16688
16689 # Transform the output of nm in a C name address pair when lib prefix is needed.
16690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16691
16692 # Specify filename containing input files for \$NM.
16693 nm_file_list_spec=$lt_nm_file_list_spec
16694
16695 # The root where to search for dependent libraries,and in which our libraries should be installed.
16696 lt_sysroot=$lt_sysroot
16697
16698 # The name of the directory that contains temporary libtool files.
16699 objdir=$objdir
16700
16701 # Used to examine libraries when file_magic_cmd begins with "file".
16702 MAGIC_CMD=$MAGIC_CMD
16703
16704 # Must we lock files when doing compilation?
16705 need_locks=$lt_need_locks
16706
16707 # Manifest tool.
16708 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16709
16710 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16711 DSYMUTIL=$lt_DSYMUTIL
16712
16713 # Tool to change global to local symbols on Mac OS X.
16714 NMEDIT=$lt_NMEDIT
16715
16716 # Tool to manipulate fat objects and archives on Mac OS X.
16717 LIPO=$lt_LIPO
16718
16719 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16720 OTOOL=$lt_OTOOL
16721
16722 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16723 OTOOL64=$lt_OTOOL64
16724
16725 # Old archive suffix (normally "a").
16726 libext=$libext
16727
16728 # Shared library suffix (normally ".so").
16729 shrext_cmds=$lt_shrext_cmds
16730
16731 # The commands to extract the exported symbol list from a shared archive.
16732 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16733
16734 # Variables whose values should be saved in libtool wrapper scripts and
16735 # restored at link time.
16736 variables_saved_for_relink=$lt_variables_saved_for_relink
16737
16738 # Do we need the "lib" prefix for modules?
16739 need_lib_prefix=$need_lib_prefix
16740
16741 # Do we need a version for libraries?
16742 need_version=$need_version
16743
16744 # Library versioning type.
16745 version_type=$version_type
16746
16747 # Shared library runtime path variable.
16748 runpath_var=$runpath_var
16749
16750 # Shared library path variable.
16751 shlibpath_var=$shlibpath_var
16752
16753 # Is shlibpath searched before the hard-coded library search path?
16754 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16755
16756 # Format of library name prefix.
16757 libname_spec=$lt_libname_spec
16758
16759 # List of archive names.  First name is the real one, the rest are links.
16760 # The last name is the one that the linker finds with -lNAME
16761 library_names_spec=$lt_library_names_spec
16762
16763 # The coded name of the library, if different from the real name.
16764 soname_spec=$lt_soname_spec
16765
16766 # Permission mode override for installation of shared libraries.
16767 install_override_mode=$lt_install_override_mode
16768
16769 # Command to use after installation of a shared archive.
16770 postinstall_cmds=$lt_postinstall_cmds
16771
16772 # Command to use after uninstallation of a shared archive.
16773 postuninstall_cmds=$lt_postuninstall_cmds
16774
16775 # Commands used to finish a libtool library installation in a directory.
16776 finish_cmds=$lt_finish_cmds
16777
16778 # As "finish_cmds", except a single script fragment to be evaled but
16779 # not shown.
16780 finish_eval=$lt_finish_eval
16781
16782 # Whether we should hardcode library paths into libraries.
16783 hardcode_into_libs=$hardcode_into_libs
16784
16785 # Compile-time system search path for libraries.
16786 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16787
16788 # Run-time system search path for libraries.
16789 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16790
16791 # Whether dlopen is supported.
16792 dlopen_support=$enable_dlopen
16793
16794 # Whether dlopen of programs is supported.
16795 dlopen_self=$enable_dlopen_self
16796
16797 # Whether dlopen of statically linked programs is supported.
16798 dlopen_self_static=$enable_dlopen_self_static
16799
16800 # Commands to strip libraries.
16801 old_striplib=$lt_old_striplib
16802 striplib=$lt_striplib
16803
16804
16805 # The linker used to build libraries.
16806 LD=$lt_LD
16807
16808 # How to create reloadable object files.
16809 reload_flag=$lt_reload_flag
16810 reload_cmds=$lt_reload_cmds
16811
16812 # Commands used to build an old-style archive.
16813 old_archive_cmds=$lt_old_archive_cmds
16814
16815 # A language specific compiler.
16816 CC=$lt_compiler
16817
16818 # Is the compiler the GNU compiler?
16819 with_gcc=$GCC
16820
16821 # Compiler flag to turn off builtin functions.
16822 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16823
16824 # Additional compiler flags for building library objects.
16825 pic_flag=$lt_lt_prog_compiler_pic
16826
16827 # How to pass a linker flag through the compiler.
16828 wl=$lt_lt_prog_compiler_wl
16829
16830 # Compiler flag to prevent dynamic linking.
16831 link_static_flag=$lt_lt_prog_compiler_static
16832
16833 # Does compiler simultaneously support -c and -o options?
16834 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16835
16836 # Whether or not to add -lc for building shared libraries.
16837 build_libtool_need_lc=$archive_cmds_need_lc
16838
16839 # Whether or not to disallow shared libs when runtime libs are static.
16840 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16841
16842 # Compiler flag to allow reflexive dlopens.
16843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16844
16845 # Compiler flag to generate shared objects directly from archives.
16846 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16847
16848 # Whether the compiler copes with passing no objects directly.
16849 compiler_needs_object=$lt_compiler_needs_object
16850
16851 # Create an old-style archive from a shared archive.
16852 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16853
16854 # Create a temporary old-style archive to link instead of a shared archive.
16855 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16856
16857 # Commands used to build a shared archive.
16858 archive_cmds=$lt_archive_cmds
16859 archive_expsym_cmds=$lt_archive_expsym_cmds
16860
16861 # Commands used to build a loadable module if different from building
16862 # a shared archive.
16863 module_cmds=$lt_module_cmds
16864 module_expsym_cmds=$lt_module_expsym_cmds
16865
16866 # Whether we are building with GNU ld or not.
16867 with_gnu_ld=$lt_with_gnu_ld
16868
16869 # Flag that allows shared libraries with undefined symbols to be built.
16870 allow_undefined_flag=$lt_allow_undefined_flag
16871
16872 # Flag that enforces no undefined symbols.
16873 no_undefined_flag=$lt_no_undefined_flag
16874
16875 # Flag to hardcode \$libdir into a binary during linking.
16876 # This must work even if \$libdir does not exist
16877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16878
16879 # Whether we need a single "-rpath" flag with a separated argument.
16880 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16881
16882 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16883 # DIR into the resulting binary.
16884 hardcode_direct=$hardcode_direct
16885
16886 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16887 # DIR into the resulting binary and the resulting library dependency is
16888 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16889 # library is relocated.
16890 hardcode_direct_absolute=$hardcode_direct_absolute
16891
16892 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16893 # into the resulting binary.
16894 hardcode_minus_L=$hardcode_minus_L
16895
16896 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16897 # into the resulting binary.
16898 hardcode_shlibpath_var=$hardcode_shlibpath_var
16899
16900 # Set to "yes" if building a shared library automatically hardcodes DIR
16901 # into the library and all subsequent libraries and executables linked
16902 # against it.
16903 hardcode_automatic=$hardcode_automatic
16904
16905 # Set to yes if linker adds runtime paths of dependent libraries
16906 # to runtime path list.
16907 inherit_rpath=$inherit_rpath
16908
16909 # Whether libtool must link a program against all its dependency libraries.
16910 link_all_deplibs=$link_all_deplibs
16911
16912 # Set to "yes" if exported symbols are required.
16913 always_export_symbols=$always_export_symbols
16914
16915 # The commands to list exported symbols.
16916 export_symbols_cmds=$lt_export_symbols_cmds
16917
16918 # Symbols that should not be listed in the preloaded symbols.
16919 exclude_expsyms=$lt_exclude_expsyms
16920
16921 # Symbols that must always be exported.
16922 include_expsyms=$lt_include_expsyms
16923
16924 # Commands necessary for linking programs (against libraries) with templates.
16925 prelink_cmds=$lt_prelink_cmds
16926
16927 # Commands necessary for finishing linking programs.
16928 postlink_cmds=$lt_postlink_cmds
16929
16930 # Specify filename containing input files.
16931 file_list_spec=$lt_file_list_spec
16932
16933 # How to hardcode a shared library path into an executable.
16934 hardcode_action=$hardcode_action
16935
16936 # ### END LIBTOOL CONFIG
16937
16938 _LT_EOF
16939
16940   case $host_os in
16941   aix3*)
16942     cat <<\_LT_EOF >> "$cfgfile"
16943 # AIX sometimes has problems with the GCC collect2 program.  For some
16944 # reason, if we set the COLLECT_NAMES environment variable, the problems
16945 # vanish in a puff of smoke.
16946 if test "X${COLLECT_NAMES+set}" != Xset; then
16947   COLLECT_NAMES=
16948   export COLLECT_NAMES
16949 fi
16950 _LT_EOF
16951     ;;
16952   esac
16953
16954
16955 ltmain="$ac_aux_dir/ltmain.sh"
16956
16957
16958   # We use sed instead of cat because bash on DJGPP gets confused if
16959   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16960   # text mode, it properly converts lines to CR/LF.  This bash problem
16961   # is reportedly fixed, but why not run on old versions too?
16962   sed '$q' "$ltmain" >> "$cfgfile" \
16963      || (rm -f "$cfgfile"; exit 1)
16964
16965   if test x"$xsi_shell" = xyes; then
16966   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16967 func_dirname ()\
16968 {\
16969 \    case ${1} in\
16970 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16971 \      *  ) func_dirname_result="${3}" ;;\
16972 \    esac\
16973 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16974   && mv -f "$cfgfile.tmp" "$cfgfile" \
16975     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16976 test 0 -eq $? || _lt_function_replace_fail=:
16977
16978
16979   sed -e '/^func_basename ()$/,/^} # func_basename /c\
16980 func_basename ()\
16981 {\
16982 \    func_basename_result="${1##*/}"\
16983 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16984   && mv -f "$cfgfile.tmp" "$cfgfile" \
16985     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16986 test 0 -eq $? || _lt_function_replace_fail=:
16987
16988
16989   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16990 func_dirname_and_basename ()\
16991 {\
16992 \    case ${1} in\
16993 \      */*) func_dirname_result="${1%/*}${2}" ;;\
16994 \      *  ) func_dirname_result="${3}" ;;\
16995 \    esac\
16996 \    func_basename_result="${1##*/}"\
16997 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16998   && mv -f "$cfgfile.tmp" "$cfgfile" \
16999     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17000 test 0 -eq $? || _lt_function_replace_fail=:
17001
17002
17003   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17004 func_stripname ()\
17005 {\
17006 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17007 \    # positional parameters, so assign one to ordinary parameter first.\
17008 \    func_stripname_result=${3}\
17009 \    func_stripname_result=${func_stripname_result#"${1}"}\
17010 \    func_stripname_result=${func_stripname_result%"${2}"}\
17011 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17012   && mv -f "$cfgfile.tmp" "$cfgfile" \
17013     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17014 test 0 -eq $? || _lt_function_replace_fail=:
17015
17016
17017   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17018 func_split_long_opt ()\
17019 {\
17020 \    func_split_long_opt_name=${1%%=*}\
17021 \    func_split_long_opt_arg=${1#*=}\
17022 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17023   && mv -f "$cfgfile.tmp" "$cfgfile" \
17024     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17025 test 0 -eq $? || _lt_function_replace_fail=:
17026
17027
17028   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17029 func_split_short_opt ()\
17030 {\
17031 \    func_split_short_opt_arg=${1#??}\
17032 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17033 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17034   && mv -f "$cfgfile.tmp" "$cfgfile" \
17035     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17036 test 0 -eq $? || _lt_function_replace_fail=:
17037
17038
17039   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17040 func_lo2o ()\
17041 {\
17042 \    case ${1} in\
17043 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17044 \      *)    func_lo2o_result=${1} ;;\
17045 \    esac\
17046 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17047   && mv -f "$cfgfile.tmp" "$cfgfile" \
17048     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17049 test 0 -eq $? || _lt_function_replace_fail=:
17050
17051
17052   sed -e '/^func_xform ()$/,/^} # func_xform /c\
17053 func_xform ()\
17054 {\
17055     func_xform_result=${1%.*}.lo\
17056 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17057   && mv -f "$cfgfile.tmp" "$cfgfile" \
17058     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17059 test 0 -eq $? || _lt_function_replace_fail=:
17060
17061
17062   sed -e '/^func_arith ()$/,/^} # func_arith /c\
17063 func_arith ()\
17064 {\
17065     func_arith_result=$(( $* ))\
17066 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17067   && mv -f "$cfgfile.tmp" "$cfgfile" \
17068     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17069 test 0 -eq $? || _lt_function_replace_fail=:
17070
17071
17072   sed -e '/^func_len ()$/,/^} # func_len /c\
17073 func_len ()\
17074 {\
17075     func_len_result=${#1}\
17076 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17077   && mv -f "$cfgfile.tmp" "$cfgfile" \
17078     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17079 test 0 -eq $? || _lt_function_replace_fail=:
17080
17081 fi
17082
17083 if test x"$lt_shell_append" = xyes; then
17084   sed -e '/^func_append ()$/,/^} # func_append /c\
17085 func_append ()\
17086 {\
17087     eval "${1}+=\\${2}"\
17088 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17089   && mv -f "$cfgfile.tmp" "$cfgfile" \
17090     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17091 test 0 -eq $? || _lt_function_replace_fail=:
17092
17093
17094   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17095 func_append_quoted ()\
17096 {\
17097 \    func_quote_for_eval "${2}"\
17098 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17099 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17100   && mv -f "$cfgfile.tmp" "$cfgfile" \
17101     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17102 test 0 -eq $? || _lt_function_replace_fail=:
17103
17104
17105   # Save a `func_append' function call where possible by direct use of '+='
17106   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17107     && mv -f "$cfgfile.tmp" "$cfgfile" \
17108       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17109   test 0 -eq $? || _lt_function_replace_fail=:
17110 else
17111   # Save a `func_append' function call even when '+=' is not available
17112   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17113     && mv -f "$cfgfile.tmp" "$cfgfile" \
17114       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17115   test 0 -eq $? || _lt_function_replace_fail=:
17116 fi
17117
17118 if test x"$_lt_function_replace_fail" = x":"; then
17119   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17120 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17121 fi
17122
17123
17124    mv -f "$cfgfile" "$ofile" ||
17125     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17126   chmod +x "$ofile"
17127
17128  ;;
17129
17130   esac
17131 done # for ac_tag
17132
17133
17134 as_fn_exit 0
17135 _ACEOF
17136 ac_clean_files=$ac_clean_files_save
17137
17138 test $ac_write_fail = 0 ||
17139   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17140
17141
17142 # configure is writing to config.log, and then calls config.status.
17143 # config.status does its own redirection, appending to config.log.
17144 # Unfortunately, on DOS this fails, as config.log is still kept open
17145 # by configure, so config.status won't be able to write to it; its
17146 # output is simply discarded.  So we exec the FD to /dev/null,
17147 # effectively closing config.log, so it can be properly (re)opened and
17148 # appended to by config.status.  When coming back to configure, we
17149 # need to make the FD available again.
17150 if test "$no_create" != yes; then
17151   ac_cs_success=:
17152   ac_config_status_args=
17153   test "$silent" = yes &&
17154     ac_config_status_args="$ac_config_status_args --quiet"
17155   exec 5>/dev/null
17156   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17157   exec 5>>config.log
17158   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17159   # would make configure fail if this is the last instruction.
17160   $ac_cs_success || as_fn_exit 1
17161 fi
17162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17163   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17165 fi
17166
17167
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
17169         pygobject $VERSION
17170
17171         Using python interpreter:       $PYTHON
17172         cairo support:                  $enable_cairo
17173         thread support:                 $enable_thread
17174         code coverage support:          $enable_code_coverage
17175 " >&5
17176 $as_echo "
17177         pygobject $VERSION
17178
17179         Using python interpreter:       $PYTHON
17180         cairo support:                  $enable_cairo
17181         thread support:                 $enable_thread
17182         code coverage support:          $enable_code_coverage
17183 " >&6; }
17184